Thanks for using Compiler Explorer
Sponsors
Jakt
C++
Ada
Analysis
Android Java
Android Kotlin
Assembly
C
C3
Carbon
C++ (Circle)
CIRCT
Clean
CMake
CMakeScript
COBOL
C++ for OpenCL
MLIR
Cppx
Cppx-Blue
Cppx-Gold
Cpp2-cppfront
Crystal
C#
CUDA C++
D
Dart
Elixir
Erlang
Fortran
F#
Go
Haskell
HLSL
Hook
Hylo
ispc
Java
Julia
Kotlin
LLVM IR
LLVM MIR
Modula-2
Nim
Objective-C
Objective-C++
OCaml
OpenCL C
Pascal
Pony
Python
Racket
Ruby
Rust
Snowball
Scala
Solidity
Spice
Swift
LLVM TableGen
Toit
TypeScript Native
V
Vala
Visual Basic
WASM
Zig
Javascript
GIMPLE
c++ source #1
Output
Compile to binary object
Link to binary
Execute the code
Intel asm syntax
Demangle identifiers
Verbose demangling
Filters
Unused labels
Library functions
Directives
Comments
Horizontal whitespace
Debug intrinsics
Compiler
6502-c++ 11.1.0
ARM GCC 10.2.0
ARM GCC 10.3.0
ARM GCC 10.4.0
ARM GCC 10.5.0
ARM GCC 11.1.0
ARM GCC 11.2.0
ARM GCC 11.3.0
ARM GCC 11.4.0
ARM GCC 12.1.0
ARM GCC 12.2.0
ARM GCC 12.3.0
ARM GCC 12.4.0
ARM GCC 13.1.0
ARM GCC 13.2.0
ARM GCC 13.2.0 (unknown-eabi)
ARM GCC 13.3.0
ARM GCC 14.1.0
ARM GCC 4.5.4
ARM GCC 4.6.4
ARM GCC 5.4
ARM GCC 6.3.0
ARM GCC 6.4.0
ARM GCC 7.3.0
ARM GCC 7.5.0
ARM GCC 8.2.0
ARM GCC 8.5.0
ARM GCC 9.3.0
ARM GCC 9.4.0
ARM GCC 9.5.0
ARM GCC trunk
ARM gcc 10.2.1 (none)
ARM gcc 10.3.1 (2021.07 none)
ARM gcc 10.3.1 (2021.10 none)
ARM gcc 11.2.1 (none)
ARM gcc 5.4.1 (none)
ARM gcc 7.2.1 (none)
ARM gcc 8.2 (WinCE)
ARM gcc 8.3.1 (none)
ARM gcc 9.2.1 (none)
ARM msvc v19.0 (WINE)
ARM msvc v19.10 (WINE)
ARM msvc v19.14 (WINE)
ARM64 Morello gcc 10.1 Alpha 2
ARM64 gcc 10.2
ARM64 gcc 10.3
ARM64 gcc 10.4
ARM64 gcc 10.5.0
ARM64 gcc 11.1
ARM64 gcc 11.2
ARM64 gcc 11.3
ARM64 gcc 11.4.0
ARM64 gcc 12.1
ARM64 gcc 12.2.0
ARM64 gcc 12.3.0
ARM64 gcc 12.4.0
ARM64 gcc 13.1.0
ARM64 gcc 13.2.0
ARM64 gcc 13.3.0
ARM64 gcc 14.1.0
ARM64 gcc 4.9.4
ARM64 gcc 5.4
ARM64 gcc 5.5.0
ARM64 gcc 6.3
ARM64 gcc 6.4
ARM64 gcc 7.3
ARM64 gcc 7.5
ARM64 gcc 8.2
ARM64 gcc 8.5
ARM64 gcc 9.3
ARM64 gcc 9.4
ARM64 gcc 9.5
ARM64 gcc trunk
ARM64 msvc v19.14 (WINE)
AVR gcc 10.3.0
AVR gcc 11.1.0
AVR gcc 12.1.0
AVR gcc 12.2.0
AVR gcc 12.3.0
AVR gcc 12.4.0
AVR gcc 13.1.0
AVR gcc 13.2.0
AVR gcc 13.3.0
AVR gcc 14.1.0
AVR gcc 4.5.4
AVR gcc 4.6.4
AVR gcc 5.4.0
AVR gcc 9.2.0
AVR gcc 9.3.0
Arduino Mega (1.8.9)
Arduino Uno (1.8.9)
BPF clang (trunk)
BPF clang 13.0.0
BPF clang 14.0.0
BPF clang 15.0.0
BPF clang 16.0.0
BPF clang 17.0.1
BPF clang 18.1.0
BPF gcc 13.1.0
BPF gcc 13.2.0
BPF gcc 13.3.0
BPF gcc trunk
EDG (experimental reflection)
EDG 6.5
EDG 6.5 (GNU mode gcc 13)
EDG 6.6
EDG 6.6 (GNU mode gcc 13)
FRC 2019
FRC 2020
FRC 2023
KVX ACB 4.1.0 (GCC 7.5.0)
KVX ACB 4.1.0-cd1 (GCC 7.5.0)
KVX ACB 4.10.0 (GCC 10.3.1)
KVX ACB 4.11.1 (GCC 10.3.1)
KVX ACB 4.12.0 (GCC 11.3.0)
KVX ACB 4.2.0 (GCC 7.5.0)
KVX ACB 4.3.0 (GCC 7.5.0)
KVX ACB 4.4.0 (GCC 7.5.0)
KVX ACB 4.6.0 (GCC 9.4.1)
KVX ACB 4.8.0 (GCC 9.4.1)
KVX ACB 4.9.0 (GCC 9.4.1)
KVX ACB 5.0.0 (GCC 12.2.1)
M68K gcc 13.1.0
M68K gcc 13.2.0
M68K gcc 13.3.0
M68K gcc 14.1.0
M68k clang (trunk)
MRISC32 gcc (trunk)
MSP430 gcc 4.5.3
MSP430 gcc 5.3.0
MSP430 gcc 6.2.1
MinGW clang 14.0.3
MinGW clang 14.0.6
MinGW clang 15.0.7
MinGW clang 16.0.0
MinGW clang 16.0.2
MinGW gcc 11.3.0
MinGW gcc 12.1.0
MinGW gcc 12.2.0
MinGW gcc 13.1.0
RISC-V (32-bits) gcc (trunk)
RISC-V (32-bits) gcc 10.2.0
RISC-V (32-bits) gcc 10.3.0
RISC-V (32-bits) gcc 11.2.0
RISC-V (32-bits) gcc 11.3.0
RISC-V (32-bits) gcc 11.4.0
RISC-V (32-bits) gcc 12.1.0
RISC-V (32-bits) gcc 12.2.0
RISC-V (32-bits) gcc 12.3.0
RISC-V (32-bits) gcc 12.4.0
RISC-V (32-bits) gcc 13.1.0
RISC-V (32-bits) gcc 13.2.0
RISC-V (32-bits) gcc 13.3.0
RISC-V (32-bits) gcc 14.1.0
RISC-V (32-bits) gcc 8.2.0
RISC-V (32-bits) gcc 8.5.0
RISC-V (32-bits) gcc 9.4.0
RISC-V (64-bits) gcc (trunk)
RISC-V (64-bits) gcc 10.2.0
RISC-V (64-bits) gcc 10.3.0
RISC-V (64-bits) gcc 11.2.0
RISC-V (64-bits) gcc 11.3.0
RISC-V (64-bits) gcc 11.4.0
RISC-V (64-bits) gcc 12.1.0
RISC-V (64-bits) gcc 12.2.0
RISC-V (64-bits) gcc 12.3.0
RISC-V (64-bits) gcc 12.4.0
RISC-V (64-bits) gcc 13.1.0
RISC-V (64-bits) gcc 13.2.0
RISC-V (64-bits) gcc 13.3.0
RISC-V (64-bits) gcc 14.1.0
RISC-V (64-bits) gcc 8.2.0
RISC-V (64-bits) gcc 8.5.0
RISC-V (64-bits) gcc 9.4.0
RISC-V rv32gc clang (trunk)
RISC-V rv32gc clang 10.0.0
RISC-V rv32gc clang 10.0.1
RISC-V rv32gc clang 11.0.0
RISC-V rv32gc clang 11.0.1
RISC-V rv32gc clang 12.0.0
RISC-V rv32gc clang 12.0.1
RISC-V rv32gc clang 13.0.0
RISC-V rv32gc clang 13.0.1
RISC-V rv32gc clang 14.0.0
RISC-V rv32gc clang 15.0.0
RISC-V rv32gc clang 16.0.0
RISC-V rv32gc clang 17.0.1
RISC-V rv32gc clang 18.1.0
RISC-V rv32gc clang 9.0.0
RISC-V rv32gc clang 9.0.1
RISC-V rv64gc clang (trunk)
RISC-V rv64gc clang 10.0.0
RISC-V rv64gc clang 10.0.1
RISC-V rv64gc clang 11.0.0
RISC-V rv64gc clang 11.0.1
RISC-V rv64gc clang 12.0.0
RISC-V rv64gc clang 12.0.1
RISC-V rv64gc clang 13.0.0
RISC-V rv64gc clang 13.0.1
RISC-V rv64gc clang 14.0.0
RISC-V rv64gc clang 15.0.0
RISC-V rv64gc clang 16.0.0
RISC-V rv64gc clang 17.0.1
RISC-V rv64gc clang 18.1.0
RISC-V rv64gc clang 9.0.0
RISC-V rv64gc clang 9.0.1
Raspbian Buster
Raspbian Stretch
SPARC LEON gcc 12.2.0
SPARC LEON gcc 12.3.0
SPARC LEON gcc 12.4.0
SPARC LEON gcc 13.1.0
SPARC LEON gcc 13.2.0
SPARC LEON gcc 13.3.0
SPARC LEON gcc 14.1.0
SPARC gcc 12.2.0
SPARC gcc 12.3.0
SPARC gcc 12.4.0
SPARC gcc 13.1.0
SPARC gcc 13.2.0
SPARC gcc 13.3.0
SPARC gcc 14.1.0
SPARC64 gcc 12.2.0
SPARC64 gcc 12.3.0
SPARC64 gcc 12.4.0
SPARC64 gcc 13.1.0
SPARC64 gcc 13.2.0
SPARC64 gcc 13.3.0
SPARC64 gcc 14.1.0
TI C6x gcc 12.2.0
TI C6x gcc 12.3.0
TI C6x gcc 12.4.0
TI C6x gcc 13.1.0
TI C6x gcc 13.2.0
TI C6x gcc 13.3.0
TI C6x gcc 14.1.0
TI CL430 21.6.1
VAX gcc NetBSDELF 10.4.0
VAX gcc NetBSDELF 10.5.0 (Nov 15 03:50:22 2023)
WebAssembly clang (trunk)
Xtensa ESP32 gcc 11.2.0 (2022r1)
Xtensa ESP32 gcc 12.2.0 (20230208)
Xtensa ESP32 gcc 8.2.0 (2019r2)
Xtensa ESP32 gcc 8.2.0 (2020r1)
Xtensa ESP32 gcc 8.2.0 (2020r2)
Xtensa ESP32 gcc 8.4.0 (2020r3)
Xtensa ESP32 gcc 8.4.0 (2021r1)
Xtensa ESP32 gcc 8.4.0 (2021r2)
Xtensa ESP32-S2 gcc 11.2.0 (2022r1)
Xtensa ESP32-S2 gcc 12.2.0 (20230208)
Xtensa ESP32-S2 gcc 8.2.0 (2019r2)
Xtensa ESP32-S2 gcc 8.2.0 (2020r1)
Xtensa ESP32-S2 gcc 8.2.0 (2020r2)
Xtensa ESP32-S2 gcc 8.4.0 (2020r3)
Xtensa ESP32-S2 gcc 8.4.0 (2021r1)
Xtensa ESP32-S2 gcc 8.4.0 (2021r2)
Xtensa ESP32-S3 gcc 11.2.0 (2022r1)
Xtensa ESP32-S3 gcc 12.2.0 (20230208)
Xtensa ESP32-S3 gcc 8.4.0 (2020r3)
Xtensa ESP32-S3 gcc 8.4.0 (2021r1)
Xtensa ESP32-S3 gcc 8.4.0 (2021r2)
arm64 msvc v19.20 VS16.0
arm64 msvc v19.21 VS16.1
arm64 msvc v19.22 VS16.2
arm64 msvc v19.23 VS16.3
arm64 msvc v19.24 VS16.4
arm64 msvc v19.25 VS16.5
arm64 msvc v19.27 VS16.7
arm64 msvc v19.28 VS16.8
arm64 msvc v19.28 VS16.9
arm64 msvc v19.29 VS16.10
arm64 msvc v19.29 VS16.11
arm64 msvc v19.30 VS17.0
arm64 msvc v19.31 VS17.1
arm64 msvc v19.32 VS17.2
arm64 msvc v19.33 VS17.3
arm64 msvc v19.34 VS17.4
arm64 msvc v19.35 VS17.5
arm64 msvc v19.36 VS17.6
arm64 msvc v19.37 VS17.7
arm64 msvc v19.38 VS17.8
armv7-a clang (trunk)
armv7-a clang 10.0.0
armv7-a clang 10.0.1
armv7-a clang 11.0.0
armv7-a clang 11.0.1
armv7-a clang 12.0.0
armv7-a clang 12.0.1
armv7-a clang 13.0.0
armv7-a clang 13.0.1
armv7-a clang 14.0.0
armv7-a clang 15.0.0
armv7-a clang 16.0.0
armv7-a clang 17.0.1
armv7-a clang 18.1.0
armv7-a clang 9.0.0
armv7-a clang 9.0.1
armv8-a clang (all architectural features, trunk)
armv8-a clang (trunk)
armv8-a clang 10.0.0
armv8-a clang 10.0.1
armv8-a clang 11.0.0
armv8-a clang 11.0.1
armv8-a clang 12.0.0
armv8-a clang 13.0.0
armv8-a clang 14.0.0
armv8-a clang 15.0.0
armv8-a clang 16.0.0
armv8-a clang 17.0.1
armv8-a clang 18.1.0
armv8-a clang 9.0.0
armv8-a clang 9.0.1
ellcc 0.1.33
ellcc 0.1.34
ellcc 2017-07-16
hexagon-clang 16.0.5
llvm-mos atari2600-3e
llvm-mos atari2600-4k
llvm-mos atari2600-common
llvm-mos atari5200-supercart
llvm-mos atari8-cart-megacart
llvm-mos atari8-cart-std
llvm-mos atari8-cart-xegs
llvm-mos atari8-common
llvm-mos atari8-dos
llvm-mos c128
llvm-mos c64
llvm-mos commodore
llvm-mos cpm65
llvm-mos cx16
llvm-mos dodo
llvm-mos eater
llvm-mos mega65
llvm-mos nes
llvm-mos nes-action53
llvm-mos nes-cnrom
llvm-mos nes-gtrom
llvm-mos nes-mmc1
llvm-mos nes-mmc3
llvm-mos nes-nrom
llvm-mos nes-unrom
llvm-mos nes-unrom-512
llvm-mos osi-c1p
llvm-mos pce
llvm-mos pce-cd
llvm-mos pce-common
llvm-mos pet
llvm-mos rp6502
llvm-mos rpc8e
llvm-mos supervision
llvm-mos vic20
loongarch64 gcc 12.2.0
loongarch64 gcc 12.3.0
loongarch64 gcc 12.4.0
loongarch64 gcc 13.1.0
loongarch64 gcc 13.2.0
loongarch64 gcc 13.3.0
loongarch64 gcc 14.1.0
mips clang 13.0.0
mips clang 14.0.0
mips clang 15.0.0
mips clang 16.0.0
mips clang 17.0.1
mips clang 18.1.0
mips gcc 11.2.0
mips gcc 12.1.0
mips gcc 12.2.0
mips gcc 12.3.0
mips gcc 12.4.0
mips gcc 13.1.0
mips gcc 13.2.0
mips gcc 13.3.0
mips gcc 14.1.0
mips gcc 4.9.4
mips gcc 5.4
mips gcc 5.5.0
mips gcc 9.3.0 (codescape)
mips gcc 9.5.0
mips64 (el) gcc 12.1.0
mips64 (el) gcc 12.2.0
mips64 (el) gcc 12.3.0
mips64 (el) gcc 12.4.0
mips64 (el) gcc 13.1.0
mips64 (el) gcc 13.2.0
mips64 (el) gcc 13.3.0
mips64 (el) gcc 14.1.0
mips64 (el) gcc 4.9.4
mips64 (el) gcc 5.4.0
mips64 (el) gcc 5.5.0
mips64 (el) gcc 9.5.0
mips64 clang 13.0.0
mips64 clang 14.0.0
mips64 clang 15.0.0
mips64 clang 16.0.0
mips64 clang 17.0.1
mips64 clang 18.1.0
mips64 gcc 11.2.0
mips64 gcc 12.1.0
mips64 gcc 12.2.0
mips64 gcc 12.3.0
mips64 gcc 12.4.0
mips64 gcc 13.1.0
mips64 gcc 13.2.0
mips64 gcc 13.3.0
mips64 gcc 14.1.0
mips64 gcc 4.9.4
mips64 gcc 5.4.0
mips64 gcc 5.5.0
mips64 gcc 9.5.0
mips64el clang 13.0.0
mips64el clang 14.0.0
mips64el clang 15.0.0
mips64el clang 16.0.0
mips64el clang 17.0.1
mips64el clang 18.1.0
mipsel clang 13.0.0
mipsel clang 14.0.0
mipsel clang 15.0.0
mipsel clang 16.0.0
mipsel clang 17.0.1
mipsel clang 18.1.0
mipsel gcc 12.1.0
mipsel gcc 12.2.0
mipsel gcc 12.3.0
mipsel gcc 12.4.0
mipsel gcc 13.1.0
mipsel gcc 13.2.0
mipsel gcc 13.3.0
mipsel gcc 14.1.0
mipsel gcc 4.9.4
mipsel gcc 5.4.0
mipsel gcc 5.5.0
mipsel gcc 9.5.0
nanoMIPS gcc 6.3.0 (mtk)
power gcc 11.2.0
power gcc 12.1.0
power gcc 12.2.0
power gcc 12.3.0
power gcc 12.4.0
power gcc 13.1.0
power gcc 13.2.0
power gcc 13.3.0
power gcc 14.1.0
power gcc 4.8.5
power64 AT12.0 (gcc8)
power64 AT13.0 (gcc9)
power64 gcc 11.2.0
power64 gcc 12.1.0
power64 gcc 12.2.0
power64 gcc 12.3.0
power64 gcc 12.4.0
power64 gcc 13.1.0
power64 gcc 13.2.0
power64 gcc 13.3.0
power64 gcc 14.1.0
power64 gcc trunk
power64le AT12.0 (gcc8)
power64le AT13.0 (gcc9)
power64le clang (trunk)
power64le gcc 11.2.0
power64le gcc 12.1.0
power64le gcc 12.2.0
power64le gcc 12.3.0
power64le gcc 12.4.0
power64le gcc 13.1.0
power64le gcc 13.2.0
power64le gcc 13.3.0
power64le gcc 14.1.0
power64le gcc 6.3.0
power64le gcc trunk
powerpc64 clang (trunk)
s390x gcc 11.2.0
s390x gcc 12.1.0
s390x gcc 12.2.0
s390x gcc 12.3.0
s390x gcc 12.4.0
s390x gcc 13.1.0
s390x gcc 13.2.0
s390x gcc 13.3.0
s390x gcc 14.1.0
sh gcc 12.2.0
sh gcc 12.3.0
sh gcc 12.4.0
sh gcc 13.1.0
sh gcc 13.2.0
sh gcc 13.3.0
sh gcc 14.1.0
sh gcc 4.9.4
sh gcc 9.5.0
vast (trunk)
x64 msvc v19.0 (WINE)
x64 msvc v19.10 (WINE)
x64 msvc v19.14 (WINE)
x64 msvc v19.20 VS16.0
x64 msvc v19.21 VS16.1
x64 msvc v19.22 VS16.2
x64 msvc v19.23 VS16.3
x64 msvc v19.24 VS16.4
x64 msvc v19.25 VS16.5
x64 msvc v19.27 VS16.7
x64 msvc v19.28 VS16.8
x64 msvc v19.28 VS16.9
x64 msvc v19.29 VS16.10
x64 msvc v19.29 VS16.11
x64 msvc v19.30 VS17.0
x64 msvc v19.31 VS17.1
x64 msvc v19.32 VS17.2
x64 msvc v19.33 VS17.3
x64 msvc v19.34 VS17.4
x64 msvc v19.35 VS17.5
x64 msvc v19.36 VS17.6
x64 msvc v19.37 VS17.7
x64 msvc v19.38 VS17.8
x86 djgpp 4.9.4
x86 djgpp 5.5.0
x86 djgpp 6.4.0
x86 djgpp 7.2.0
x86 msvc v19.0 (WINE)
x86 msvc v19.10 (WINE)
x86 msvc v19.14 (WINE)
x86 msvc v19.20 VS16.0
x86 msvc v19.21 VS16.1
x86 msvc v19.22 VS16.2
x86 msvc v19.23 VS16.3
x86 msvc v19.24 VS16.4
x86 msvc v19.25 VS16.5
x86 msvc v19.27 VS16.7
x86 msvc v19.28 VS16.8
x86 msvc v19.28 VS16.9
x86 msvc v19.29 VS16.10
x86 msvc v19.29 VS16.11
x86 msvc v19.30 VS17.0
x86 msvc v19.31 VS17.1
x86 msvc v19.32 VS17.2
x86 msvc v19.33 VS17.3
x86 msvc v19.34 VS17.4
x86 msvc v19.35 VS17.5
x86 msvc v19.36 VS17.6
x86 msvc v19.37 VS17.7
x86 msvc v19.38 VS17.8
x86 nvc++ 22.11
x86 nvc++ 22.7
x86 nvc++ 22.9
x86 nvc++ 23.1
x86 nvc++ 23.11
x86 nvc++ 23.3
x86 nvc++ 23.5
x86 nvc++ 23.7
x86 nvc++ 23.9
x86 nvc++ 24.1
x86 nvc++ 24.3
x86 nvc++ 24.5
x86-64 Zapcc 190308
x86-64 clang (amd-staging)
x86-64 clang (assertions trunk)
x86-64 clang (clangir)
x86-64 clang (dascandy contracts)
x86-64 clang (experimental -Wlifetime)
x86-64 clang (experimental P1061)
x86-64 clang (experimental P1144)
x86-64 clang (experimental P1221)
x86-64 clang (experimental P2996)
x86-64 clang (experimental P3068)
x86-64 clang (experimental metaprogramming - P2632)
x86-64 clang (experimental pattern matching)
x86-64 clang (old concepts branch)
x86-64 clang (p1974)
x86-64 clang (reflection)
x86-64 clang (resugar)
x86-64 clang (thephd.dev)
x86-64 clang (trunk)
x86-64 clang (variadic friends - P2893)
x86-64 clang (widberg)
x86-64 clang 10.0.0
x86-64 clang 10.0.0 (assertions)
x86-64 clang 10.0.1
x86-64 clang 11.0.0
x86-64 clang 11.0.0 (assertions)
x86-64 clang 11.0.1
x86-64 clang 12.0.0
x86-64 clang 12.0.0 (assertions)
x86-64 clang 12.0.1
x86-64 clang 13.0.0
x86-64 clang 13.0.0 (assertions)
x86-64 clang 13.0.1
x86-64 clang 14.0.0
x86-64 clang 14.0.0 (assertions)
x86-64 clang 15.0.0
x86-64 clang 15.0.0 (assertions)
x86-64 clang 16.0.0
x86-64 clang 16.0.0 (assertions)
x86-64 clang 17.0.1
x86-64 clang 17.0.1 (assertions)
x86-64 clang 18.1.0
x86-64 clang 18.1.0 (assertions)
x86-64 clang 2.6.0 (assertions)
x86-64 clang 2.7.0 (assertions)
x86-64 clang 2.8.0 (assertions)
x86-64 clang 2.9.0 (assertions)
x86-64 clang 3.0.0
x86-64 clang 3.0.0 (assertions)
x86-64 clang 3.1
x86-64 clang 3.1 (assertions)
x86-64 clang 3.2
x86-64 clang 3.2 (assertions)
x86-64 clang 3.3
x86-64 clang 3.3 (assertions)
x86-64 clang 3.4 (assertions)
x86-64 clang 3.4.1
x86-64 clang 3.5
x86-64 clang 3.5 (assertions)
x86-64 clang 3.5.1
x86-64 clang 3.5.2
x86-64 clang 3.6
x86-64 clang 3.6 (assertions)
x86-64 clang 3.7
x86-64 clang 3.7 (assertions)
x86-64 clang 3.7.1
x86-64 clang 3.8
x86-64 clang 3.8 (assertions)
x86-64 clang 3.8.1
x86-64 clang 3.9.0
x86-64 clang 3.9.0 (assertions)
x86-64 clang 3.9.1
x86-64 clang 4.0.0
x86-64 clang 4.0.0 (assertions)
x86-64 clang 4.0.1
x86-64 clang 5.0.0
x86-64 clang 5.0.0 (assertions)
x86-64 clang 5.0.1
x86-64 clang 5.0.2
x86-64 clang 6.0.0
x86-64 clang 6.0.0 (assertions)
x86-64 clang 6.0.1
x86-64 clang 7.0.0
x86-64 clang 7.0.0 (assertions)
x86-64 clang 7.0.1
x86-64 clang 7.1.0
x86-64 clang 8.0.0
x86-64 clang 8.0.0 (assertions)
x86-64 clang 8.0.1
x86-64 clang 9.0.0
x86-64 clang 9.0.0 (assertions)
x86-64 clang 9.0.1
x86-64 clang rocm-4.5.2
x86-64 clang rocm-5.0.2
x86-64 clang rocm-5.1.3
x86-64 clang rocm-5.2.3
x86-64 clang rocm-5.3.3
x86-64 clang rocm-5.7.0
x86-64 clang rocm-6.0.2
x86-64 clang rocm-6.1.2
x86-64 gcc (contract labels)
x86-64 gcc (contracts natural syntax)
x86-64 gcc (contracts)
x86-64 gcc (coroutines)
x86-64 gcc (modules)
x86-64 gcc (trunk)
x86-64 gcc 10.1
x86-64 gcc 10.2
x86-64 gcc 10.3
x86-64 gcc 10.4
x86-64 gcc 10.5
x86-64 gcc 11.1
x86-64 gcc 11.2
x86-64 gcc 11.3
x86-64 gcc 11.4
x86-64 gcc 12.1
x86-64 gcc 12.2
x86-64 gcc 12.3
x86-64 gcc 12.4
x86-64 gcc 13.1
x86-64 gcc 13.2
x86-64 gcc 13.3
x86-64 gcc 14.1
x86-64 gcc 3.4.6
x86-64 gcc 4.0.4
x86-64 gcc 4.1.2
x86-64 gcc 4.4.7
x86-64 gcc 4.5.3
x86-64 gcc 4.6.4
x86-64 gcc 4.7.1
x86-64 gcc 4.7.2
x86-64 gcc 4.7.3
x86-64 gcc 4.7.4
x86-64 gcc 4.8.1
x86-64 gcc 4.8.2
x86-64 gcc 4.8.3
x86-64 gcc 4.8.4
x86-64 gcc 4.8.5
x86-64 gcc 4.9.0
x86-64 gcc 4.9.1
x86-64 gcc 4.9.2
x86-64 gcc 4.9.3
x86-64 gcc 4.9.4
x86-64 gcc 5.1
x86-64 gcc 5.2
x86-64 gcc 5.3
x86-64 gcc 5.4
x86-64 gcc 5.5
x86-64 gcc 6.1
x86-64 gcc 6.2
x86-64 gcc 6.3
x86-64 gcc 6.4
x86-64 gcc 6.5
x86-64 gcc 7.1
x86-64 gcc 7.2
x86-64 gcc 7.3
x86-64 gcc 7.4
x86-64 gcc 7.5
x86-64 gcc 8.1
x86-64 gcc 8.2
x86-64 gcc 8.3
x86-64 gcc 8.4
x86-64 gcc 8.5
x86-64 gcc 9.1
x86-64 gcc 9.2
x86-64 gcc 9.3
x86-64 gcc 9.4
x86-64 gcc 9.5
x86-64 icc 13.0.1
x86-64 icc 16.0.3
x86-64 icc 17.0.0
x86-64 icc 18.0.0
x86-64 icc 19.0.0
x86-64 icc 19.0.1
x86-64 icc 2021.1.2
x86-64 icc 2021.10.0
x86-64 icc 2021.2.0
x86-64 icc 2021.3.0
x86-64 icc 2021.4.0
x86-64 icc 2021.5.0
x86-64 icc 2021.6.0
x86-64 icc 2021.7.0
x86-64 icc 2021.7.1
x86-64 icc 2021.8.0
x86-64 icc 2021.9.0
x86-64 icx (latest)
x86-64 icx 2021.1.2
x86-64 icx 2021.2.0
x86-64 icx 2021.3.0
x86-64 icx 2021.4.0
x86-64 icx 2022.0.0
x86-64 icx 2022.1.0
x86-64 icx 2022.2.0
x86-64 icx 2022.2.1
x86-64 icx 2023.0.0
x86-64 icx 2023.1.0
x86-64 icx 2023.2.1
x86-64 icx 2024.0.0
zig c++ 0.10.0
zig c++ 0.11.0
zig c++ 0.12.0
zig c++ 0.6.0
zig c++ 0.7.0
zig c++ 0.7.1
zig c++ 0.8.0
zig c++ 0.9.0
zig c++ trunk
Options
Source code
// Target: x86_64-linux-gnu // Configured with: ../src/configure -v --with-pkgversion='Ubuntu 13.1.0-8ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-13/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2,rust --prefix=/usr --with-gcc-major-version-only --program-suffix=-13 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/libexec --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-13-IvzKaI/gcc-13-13.1.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-13-IvzKaI/gcc-13-13.1.0/debian/tmp-gcn/usr --enable-offload-defaulted --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2 // Thread model: posix // Supported LTO compression algorithms: zlib zstd // gcc version 13.1.0 (Ubuntu 13.1.0-8ubuntu1~22.04) // // /home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp: In static member function ‘static boost::asio::awaitable<std::unique_ptr<LP::DTrackDebugDataListener::Impl> > LP::DTrackDebugDataListener::Impl::start(const LP::ArtController&)’: // /home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp:696:5: internal compiler error: in build_special_member_call, at cp/call.cc:11085 // 696 | } // | ^ // 0x85a411 build_special_member_call(tree_node*, tree_node*, vec<tree_node*, va_gc, vl_embed>**, tree_node*, int, int) // ../../src/gcc/cp/call.cc:11085 // 0xbe851b maybe_promote_temps // ../../src/gcc/cp/coroutines.cc:3146 // 0xbe851b await_statement_walker // ../../src/gcc/cp/coroutines.cc:3757 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // 0xbe7c4e await_statement_walker // ../../src/gcc/cp/coroutines.cc:3428 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // 0x126b23c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11558 // 0xbe7c4e await_statement_walker // ../../src/gcc/cp/coroutines.cc:3428 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // 0x126b23c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11558 // 0xbe7c4e await_statement_walker // ../../src/gcc/cp/coroutines.cc:3428 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // 0x126b23c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11558 // 0xbe7c4e await_statement_walker // ../../src/gcc/cp/coroutines.cc:3428 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // 0x126b23c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11558 // 0xbe7c4e await_statement_walker // ../../src/gcc/cp/coroutines.cc:3428 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // 0xbe7bfd await_statement_walker // ../../src/gcc/cp/coroutines.cc:3417 // 0x126b106 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) // ../../src/gcc/tree.cc:11327 // Please submit a full bug report, with preprocessed source. // Please include the complete backtrace with any bug report. // See <file:///usr/share/doc/gcc-13/README.Bugs> for instructions. // /usr/libexec/gcc/x86_64-linux-gnu/13/cc1plus -quiet -I /home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include -I /home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools -imultiarch x86_64-linux-gnu -MD CMakeFiles/ArtTools.dir/ArtTools.cpp.d -MF CMakeFiles/ArtTools.dir/ArtTools.cpp.o.d -MT calibration_tools/CMakeFiles/ArtTools.dir/ArtTools.cpp.o -D_GNU_SOURCE -D EIGEN_MPL2_ONLY -D SPDLOG_COMPILED_LIB -D SPDLOG_FMT_EXTERNAL -isystem /home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include -isystem /home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3 -isystem /home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include -isystem /home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include -isystem /home/lpresearch/.conan/data/spdlog/1.12.0/_/_/package/17da8a8753b9f1e2e594e9ec31ee01c6fcb2c8f9/include /home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp -quiet -dumpdir CMakeFiles/ArtTools.dir/ -dumpbase ArtTools.cpp.cpp -dumpbase-ext .cpp -mtune=generic -march=x86-64 -g -std=gnu++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -freport-bug -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -fcf-protection -o - -frandom-seed=0 -fdump-noaddr # 0 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/build/calibration_tools//" # 0 "<built-in>" # 0 "<command-line>" # 1 "/usr/include/stdc-predef.h" 1 3 4 # 0 "<command-line>" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" # 11 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 1 # 1 "/usr/include/c++/13/optional" 1 3 # 33 "/usr/include/c++/13/optional" 3 # 34 "/usr/include/c++/13/optional" 3 # 1 "/usr/include/c++/13/type_traits" 1 3 # 32 "/usr/include/c++/13/type_traits" 3 # 33 "/usr/include/c++/13/type_traits" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 1 3 # 306 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 3 # 306 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 3 namespace std { typedef long unsigned int size_t; typedef long int ptrdiff_t; typedef decltype(nullptr) nullptr_t; #pragma GCC visibility push(default) extern "C++" __attribute__ ((__noreturn__, __always_inline__)) inline void __terminate() noexcept { void terminate() noexcept __attribute__ ((__noreturn__)); terminate(); } #pragma GCC visibility pop } # 339 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 3 namespace std { inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } } namespace __gnu_cxx { inline namespace __cxx11 __attribute__((__abi_tag__ ("cxx11"))) { } } # 532 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 3 namespace std { #pragma GCC visibility push(default) constexpr inline bool __is_constant_evaluated() noexcept { return __builtin_is_constant_evaluated(); } #pragma GCC visibility pop } # 679 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h" 1 3 # 39 "/usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h" 3 # 1 "/usr/include/features.h" 1 3 4 # 392 "/usr/include/features.h" 3 4 # 1 "/usr/include/features-time64.h" 1 3 4 # 20 "/usr/include/features-time64.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 21 "/usr/include/features-time64.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 1 3 4 # 19 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 2 3 4 # 22 "/usr/include/features-time64.h" 2 3 4 # 393 "/usr/include/features.h" 2 3 4 # 486 "/usr/include/features.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 1 3 4 # 559 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 560 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/long-double.h" 1 3 4 # 561 "/usr/include/x86_64-linux-gnu/sys/cdefs.h" 2 3 4 # 487 "/usr/include/features.h" 2 3 4 # 510 "/usr/include/features.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/gnu/stubs-64.h" 1 3 4 # 11 "/usr/include/x86_64-linux-gnu/gnu/stubs.h" 2 3 4 # 511 "/usr/include/features.h" 2 3 4 # 40 "/usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h" 2 3 # 680 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 2 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/cpu_defines.h" 1 3 # 683 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 2 3 # 882 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 3 # 1 "/usr/include/c++/13/pstl/pstl_config.h" 1 3 # 883 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h" 2 3 # 39 "/usr/include/c++/13/type_traits" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> class reference_wrapper; # 61 "/usr/include/c++/13/type_traits" 3 template<typename _Tp, _Tp __v> struct integral_constant { static constexpr _Tp value = __v; typedef _Tp value_type; typedef integral_constant<_Tp, __v> type; constexpr operator value_type() const noexcept { return value; } constexpr value_type operator()() const noexcept { return value; } }; using true_type = integral_constant<bool, true>; using false_type = integral_constant<bool, false>; template<bool __v> using __bool_constant = integral_constant<bool, __v>; template<bool __v> using bool_constant = integral_constant<bool, __v>; template<bool, typename _Tp = void> struct enable_if { }; template<typename _Tp> struct enable_if<true, _Tp> { typedef _Tp type; }; template<bool _Cond, typename _Tp = void> using __enable_if_t = typename enable_if<_Cond, _Tp>::type; template<bool> struct __conditional { template<typename _Tp, typename> using type = _Tp; }; template<> struct __conditional<false> { template<typename, typename _Up> using type = _Up; }; template<bool _Cond, typename _If, typename _Else> using __conditional_t = typename __conditional<_Cond>::template type<_If, _Else>; template <typename _Type> struct __type_identity { using type = _Type; }; template<typename _Tp> using __type_identity_t = typename __type_identity<_Tp>::type; namespace __detail { template<typename _Tp, typename...> using __first_t = _Tp; template<typename... _Bn> auto __or_fn(int) -> __first_t<false_type, __enable_if_t<!bool(_Bn::value)>...>; template<typename... _Bn> auto __or_fn(...) -> true_type; template<typename... _Bn> auto __and_fn(int) -> __first_t<true_type, __enable_if_t<bool(_Bn::value)>...>; template<typename... _Bn> auto __and_fn(...) -> false_type; } template<typename... _Bn> struct __or_ : decltype(__detail::__or_fn<_Bn...>(0)) { }; template<typename... _Bn> struct __and_ : decltype(__detail::__and_fn<_Bn...>(0)) { }; template<typename _Pp> struct __not_ : __bool_constant<!bool(_Pp::value)> { }; template<typename... _Bn> inline constexpr bool __or_v = __or_<_Bn...>::value; template<typename... _Bn> inline constexpr bool __and_v = __and_<_Bn...>::value; namespace __detail { template<typename , typename _B1, typename... _Bn> struct __disjunction_impl { using type = _B1; }; template<typename _B1, typename _B2, typename... _Bn> struct __disjunction_impl<__enable_if_t<!bool(_B1::value)>, _B1, _B2, _Bn...> { using type = typename __disjunction_impl<void, _B2, _Bn...>::type; }; template<typename , typename _B1, typename... _Bn> struct __conjunction_impl { using type = _B1; }; template<typename _B1, typename _B2, typename... _Bn> struct __conjunction_impl<__enable_if_t<bool(_B1::value)>, _B1, _B2, _Bn...> { using type = typename __conjunction_impl<void, _B2, _Bn...>::type; }; } template<typename... _Bn> struct conjunction : __detail::__conjunction_impl<void, _Bn...>::type { }; template<> struct conjunction<> : true_type { }; template<typename... _Bn> struct disjunction : __detail::__disjunction_impl<void, _Bn...>::type { }; template<> struct disjunction<> : false_type { }; template<typename _Pp> struct negation : __not_<_Pp>::type { }; template<typename... _Bn> inline constexpr bool conjunction_v = conjunction<_Bn...>::value; template<typename... _Bn> inline constexpr bool disjunction_v = disjunction<_Bn...>::value; template<typename _Pp> inline constexpr bool negation_v = negation<_Pp>::value; template<typename> struct is_reference; template<typename> struct is_function; template<typename> struct is_void; template<typename> struct remove_cv; template<typename> struct is_const; template<typename> struct __is_array_unknown_bounds; template <typename _Tp, size_t = sizeof(_Tp)> constexpr true_type __is_complete_or_unbounded(__type_identity<_Tp>) { return {}; } template <typename _TypeIdentity, typename _NestedType = typename _TypeIdentity::type> constexpr typename __or_< is_reference<_NestedType>, is_function<_NestedType>, is_void<_NestedType>, __is_array_unknown_bounds<_NestedType> >::type __is_complete_or_unbounded(_TypeIdentity) { return {}; } template<typename _Tp> using __remove_cv_t = typename remove_cv<_Tp>::type; template<typename _Tp> struct is_void : public false_type { }; template<> struct is_void<void> : public true_type { }; template<> struct is_void<const void> : public true_type { }; template<> struct is_void<volatile void> : public true_type { }; template<> struct is_void<const volatile void> : public true_type { }; template<typename> struct __is_integral_helper : public false_type { }; template<> struct __is_integral_helper<bool> : public true_type { }; template<> struct __is_integral_helper<char> : public true_type { }; template<> struct __is_integral_helper<signed char> : public true_type { }; template<> struct __is_integral_helper<unsigned char> : public true_type { }; template<> struct __is_integral_helper<wchar_t> : public true_type { }; template<> struct __is_integral_helper<char8_t> : public true_type { }; template<> struct __is_integral_helper<char16_t> : public true_type { }; template<> struct __is_integral_helper<char32_t> : public true_type { }; template<> struct __is_integral_helper<short> : public true_type { }; template<> struct __is_integral_helper<unsigned short> : public true_type { }; template<> struct __is_integral_helper<int> : public true_type { }; template<> struct __is_integral_helper<unsigned int> : public true_type { }; template<> struct __is_integral_helper<long> : public true_type { }; template<> struct __is_integral_helper<unsigned long> : public true_type { }; template<> struct __is_integral_helper<long long> : public true_type { }; template<> struct __is_integral_helper<unsigned long long> : public true_type { }; __extension__ template<> struct __is_integral_helper<__int128> : public true_type { }; __extension__ template<> struct __is_integral_helper<unsigned __int128> : public true_type { }; # 440 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct is_integral : public __is_integral_helper<__remove_cv_t<_Tp>>::type { }; template<typename> struct __is_floating_point_helper : public false_type { }; template<> struct __is_floating_point_helper<float> : public true_type { }; template<> struct __is_floating_point_helper<double> : public true_type { }; template<> struct __is_floating_point_helper<long double> : public true_type { }; # 493 "/usr/include/c++/13/type_traits" 3 template<> struct __is_floating_point_helper<__float128> : public true_type { }; template<typename _Tp> struct is_floating_point : public __is_floating_point_helper<__remove_cv_t<_Tp>>::type { }; template<typename> struct is_array : public false_type { }; template<typename _Tp, std::size_t _Size> struct is_array<_Tp[_Size]> : public true_type { }; template<typename _Tp> struct is_array<_Tp[]> : public true_type { }; template<typename> struct __is_pointer_helper : public false_type { }; template<typename _Tp> struct __is_pointer_helper<_Tp*> : public true_type { }; template<typename _Tp> struct is_pointer : public __is_pointer_helper<__remove_cv_t<_Tp>>::type { }; template<typename> struct is_lvalue_reference : public false_type { }; template<typename _Tp> struct is_lvalue_reference<_Tp&> : public true_type { }; template<typename> struct is_rvalue_reference : public false_type { }; template<typename _Tp> struct is_rvalue_reference<_Tp&&> : public true_type { }; template<typename> struct __is_member_object_pointer_helper : public false_type { }; template<typename _Tp, typename _Cp> struct __is_member_object_pointer_helper<_Tp _Cp::*> : public __not_<is_function<_Tp>>::type { }; template<typename _Tp> struct is_member_object_pointer : public __is_member_object_pointer_helper<__remove_cv_t<_Tp>>::type { }; template<typename> struct __is_member_function_pointer_helper : public false_type { }; template<typename _Tp, typename _Cp> struct __is_member_function_pointer_helper<_Tp _Cp::*> : public is_function<_Tp>::type { }; template<typename _Tp> struct is_member_function_pointer : public __is_member_function_pointer_helper<__remove_cv_t<_Tp>>::type { }; template<typename _Tp> struct is_enum : public integral_constant<bool, __is_enum(_Tp)> { }; template<typename _Tp> struct is_union : public integral_constant<bool, __is_union(_Tp)> { }; template<typename _Tp> struct is_class : public integral_constant<bool, __is_class(_Tp)> { }; template<typename _Tp> struct is_function : public __bool_constant<!is_const<const _Tp>::value> { }; template<typename _Tp> struct is_function<_Tp&> : public false_type { }; template<typename _Tp> struct is_function<_Tp&&> : public false_type { }; template<typename _Tp> struct is_null_pointer : public false_type { }; template<> struct is_null_pointer<std::nullptr_t> : public true_type { }; template<> struct is_null_pointer<const std::nullptr_t> : public true_type { }; template<> struct is_null_pointer<volatile std::nullptr_t> : public true_type { }; template<> struct is_null_pointer<const volatile std::nullptr_t> : public true_type { }; template<typename _Tp> struct __is_nullptr_t : public is_null_pointer<_Tp> { } __attribute__ ((__deprecated__ ("use '" "std::is_null_pointer" "' instead"))); template<typename _Tp> struct is_reference : public false_type { }; template<typename _Tp> struct is_reference<_Tp&> : public true_type { }; template<typename _Tp> struct is_reference<_Tp&&> : public true_type { }; template<typename _Tp> struct is_arithmetic : public __or_<is_integral<_Tp>, is_floating_point<_Tp>>::type { }; template<typename _Tp> struct is_fundamental : public __or_<is_arithmetic<_Tp>, is_void<_Tp>, is_null_pointer<_Tp>>::type { }; template<typename _Tp> struct is_object : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>, is_void<_Tp>>>::type { }; template<typename> struct is_member_pointer; template<typename _Tp> struct is_scalar : public __or_<is_arithmetic<_Tp>, is_enum<_Tp>, is_pointer<_Tp>, is_member_pointer<_Tp>, is_null_pointer<_Tp>>::type { }; template<typename _Tp> struct is_compound : public __not_<is_fundamental<_Tp>>::type { }; template<typename _Tp> struct __is_member_pointer_helper : public false_type { }; template<typename _Tp, typename _Cp> struct __is_member_pointer_helper<_Tp _Cp::*> : public true_type { }; template<typename _Tp> struct is_member_pointer : public __is_member_pointer_helper<__remove_cv_t<_Tp>>::type { }; template<typename, typename> struct is_same; template<typename _Tp, typename... _Types> using __is_one_of = __or_<is_same<_Tp, _Types>...>; __extension__ template<typename _Tp> using __is_signed_integer = __is_one_of<__remove_cv_t<_Tp>, signed char, signed short, signed int, signed long, signed long long , signed __int128 # 733 "/usr/include/c++/13/type_traits" 3 >; __extension__ template<typename _Tp> using __is_unsigned_integer = __is_one_of<__remove_cv_t<_Tp>, unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long , unsigned __int128 # 753 "/usr/include/c++/13/type_traits" 3 >; template<typename _Tp> using __is_standard_integer = __or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>>; template<typename...> using __void_t = void; template<typename> struct is_const : public false_type { }; template<typename _Tp> struct is_const<_Tp const> : public true_type { }; template<typename> struct is_volatile : public false_type { }; template<typename _Tp> struct is_volatile<_Tp volatile> : public true_type { }; template<typename _Tp> struct is_trivial : public integral_constant<bool, __is_trivial(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_trivially_copyable : public integral_constant<bool, __is_trivially_copyable(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_standard_layout : public integral_constant<bool, __is_standard_layout(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct __attribute__ ((__deprecated__ ("use '" "is_standard_layout && is_trivial" "' instead"))) is_pod : public integral_constant<bool, __is_pod(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct [[__deprecated__]] is_literal_type : public integral_constant<bool, __is_literal_type(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_empty : public integral_constant<bool, __is_empty(_Tp)> { }; template<typename _Tp> struct is_polymorphic : public integral_constant<bool, __is_polymorphic(_Tp)> { }; template<typename _Tp> struct is_final : public integral_constant<bool, __is_final(_Tp)> { }; template<typename _Tp> struct is_abstract : public integral_constant<bool, __is_abstract(_Tp)> { }; template<typename _Tp, bool = is_arithmetic<_Tp>::value> struct __is_signed_helper : public false_type { }; template<typename _Tp> struct __is_signed_helper<_Tp, true> : public integral_constant<bool, _Tp(-1) < _Tp(0)> { }; template<typename _Tp> struct is_signed : public __is_signed_helper<_Tp>::type { }; template<typename _Tp> struct is_unsigned : public __and_<is_arithmetic<_Tp>, __not_<is_signed<_Tp>>>::type { }; template<typename _Tp, typename _Up = _Tp&&> _Up __declval(int); template<typename _Tp> _Tp __declval(long); template<typename _Tp> auto declval() noexcept -> decltype(__declval<_Tp>(0)); template<typename> struct remove_all_extents; template<typename _Tp> struct __is_array_known_bounds : public false_type { }; template<typename _Tp, size_t _Size> struct __is_array_known_bounds<_Tp[_Size]> : public true_type { }; template<typename _Tp> struct __is_array_unknown_bounds : public false_type { }; template<typename _Tp> struct __is_array_unknown_bounds<_Tp[]> : public true_type { }; # 936 "/usr/include/c++/13/type_traits" 3 struct __do_is_destructible_impl { template<typename _Tp, typename = decltype(declval<_Tp&>().~_Tp())> static true_type __test(int); template<typename> static false_type __test(...); }; template<typename _Tp> struct __is_destructible_impl : public __do_is_destructible_impl { typedef decltype(__test<_Tp>(0)) type; }; template<typename _Tp, bool = __or_<is_void<_Tp>, __is_array_unknown_bounds<_Tp>, is_function<_Tp>>::value, bool = __or_<is_reference<_Tp>, is_scalar<_Tp>>::value> struct __is_destructible_safe; template<typename _Tp> struct __is_destructible_safe<_Tp, false, false> : public __is_destructible_impl<typename remove_all_extents<_Tp>::type>::type { }; template<typename _Tp> struct __is_destructible_safe<_Tp, true, false> : public false_type { }; template<typename _Tp> struct __is_destructible_safe<_Tp, false, true> : public true_type { }; template<typename _Tp> struct is_destructible : public __is_destructible_safe<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; struct __do_is_nt_destructible_impl { template<typename _Tp> static __bool_constant<noexcept(declval<_Tp&>().~_Tp())> __test(int); template<typename> static false_type __test(...); }; template<typename _Tp> struct __is_nt_destructible_impl : public __do_is_nt_destructible_impl { typedef decltype(__test<_Tp>(0)) type; }; template<typename _Tp, bool = __or_<is_void<_Tp>, __is_array_unknown_bounds<_Tp>, is_function<_Tp>>::value, bool = __or_<is_reference<_Tp>, is_scalar<_Tp>>::value> struct __is_nt_destructible_safe; template<typename _Tp> struct __is_nt_destructible_safe<_Tp, false, false> : public __is_nt_destructible_impl<typename remove_all_extents<_Tp>::type>::type { }; template<typename _Tp> struct __is_nt_destructible_safe<_Tp, true, false> : public false_type { }; template<typename _Tp> struct __is_nt_destructible_safe<_Tp, false, true> : public true_type { }; template<typename _Tp> struct is_nothrow_destructible : public __is_nt_destructible_safe<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename... _Args> using __is_constructible_impl = __bool_constant<__is_constructible(_Tp, _Args...)>; template<typename _Tp, typename... _Args> struct is_constructible : public __is_constructible_impl<_Tp, _Args...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_default_constructible : public __is_constructible_impl<_Tp> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename = void> struct __add_lvalue_reference_helper { using type = _Tp; }; template<typename _Tp> struct __add_lvalue_reference_helper<_Tp, __void_t<_Tp&>> { using type = _Tp&; }; template<typename _Tp> using __add_lval_ref_t = typename __add_lvalue_reference_helper<_Tp>::type; template<typename _Tp> struct is_copy_constructible : public __is_constructible_impl<_Tp, __add_lval_ref_t<const _Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename = void> struct __add_rvalue_reference_helper { using type = _Tp; }; template<typename _Tp> struct __add_rvalue_reference_helper<_Tp, __void_t<_Tp&&>> { using type = _Tp&&; }; template<typename _Tp> using __add_rval_ref_t = typename __add_rvalue_reference_helper<_Tp>::type; template<typename _Tp> struct is_move_constructible : public __is_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename... _Args> using __is_nothrow_constructible_impl = __bool_constant<__is_nothrow_constructible(_Tp, _Args...)>; template<typename _Tp, typename... _Args> struct is_nothrow_constructible : public __is_nothrow_constructible_impl<_Tp, _Args...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_nothrow_default_constructible : public __is_nothrow_constructible_impl<_Tp> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_nothrow_copy_constructible : public __is_nothrow_constructible_impl<_Tp, __add_lval_ref_t<const _Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_nothrow_move_constructible : public __is_nothrow_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename _Up> using __is_assignable_impl = __bool_constant<__is_assignable(_Tp, _Up)>; template<typename _Tp, typename _Up> struct is_assignable : public __is_assignable_impl<_Tp, _Up> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_copy_assignable : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_move_assignable : public __is_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename _Up> using __is_nothrow_assignable_impl = __bool_constant<__is_nothrow_assignable(_Tp, _Up)>; template<typename _Tp, typename _Up> struct is_nothrow_assignable : public __is_nothrow_assignable_impl<_Tp, _Up> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_nothrow_copy_assignable : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_nothrow_move_assignable : public __is_nothrow_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename... _Args> using __is_trivially_constructible_impl = __bool_constant<__is_trivially_constructible(_Tp, _Args...)>; template<typename _Tp, typename... _Args> struct is_trivially_constructible : public __is_trivially_constructible_impl<_Tp, _Args...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_trivially_default_constructible : public __is_trivially_constructible_impl<_Tp> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; struct __do_is_implicitly_default_constructible_impl { template <typename _Tp> static void __helper(const _Tp&); template <typename _Tp> static true_type __test(const _Tp&, decltype(__helper<const _Tp&>({}))* = 0); static false_type __test(...); }; template<typename _Tp> struct __is_implicitly_default_constructible_impl : public __do_is_implicitly_default_constructible_impl { typedef decltype(__test(declval<_Tp>())) type; }; template<typename _Tp> struct __is_implicitly_default_constructible_safe : public __is_implicitly_default_constructible_impl<_Tp>::type { }; template <typename _Tp> struct __is_implicitly_default_constructible : public __and_<__is_constructible_impl<_Tp>, __is_implicitly_default_constructible_safe<_Tp>>::type { }; template<typename _Tp> struct is_trivially_copy_constructible : public __is_trivially_constructible_impl<_Tp, __add_lval_ref_t<const _Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_trivially_move_constructible : public __is_trivially_constructible_impl<_Tp, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename _Up> using __is_trivially_assignable_impl = __bool_constant<__is_trivially_assignable(_Tp, _Up)>; template<typename _Tp, typename _Up> struct is_trivially_assignable : public __is_trivially_assignable_impl<_Tp, _Up> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_trivially_copy_assignable : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_trivially_move_assignable : public __is_trivially_assignable_impl<__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_trivially_destructible : public __and_<__is_destructible_safe<_Tp>, __bool_constant<__has_trivial_destructor(_Tp)>>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct has_virtual_destructor : public integral_constant<bool, __has_virtual_destructor(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct alignment_of : public integral_constant<std::size_t, alignof(_Tp)> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename> struct rank : public integral_constant<std::size_t, 0> { }; template<typename _Tp, std::size_t _Size> struct rank<_Tp[_Size]> : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; template<typename _Tp> struct rank<_Tp[]> : public integral_constant<std::size_t, 1 + rank<_Tp>::value> { }; template<typename, unsigned _Uint = 0> struct extent : public integral_constant<size_t, 0> { }; template<typename _Tp, size_t _Size> struct extent<_Tp[_Size], 0> : public integral_constant<size_t, _Size> { }; template<typename _Tp, unsigned _Uint, size_t _Size> struct extent<_Tp[_Size], _Uint> : public extent<_Tp, _Uint - 1>::type { }; template<typename _Tp> struct extent<_Tp[], 0> : public integral_constant<size_t, 0> { }; template<typename _Tp, unsigned _Uint> struct extent<_Tp[], _Uint> : public extent<_Tp, _Uint - 1>::type { }; template<typename _Tp, typename _Up> struct is_same : public integral_constant<bool, __is_same(_Tp, _Up)> { }; # 1409 "/usr/include/c++/13/type_traits" 3 template<typename _Base, typename _Derived> struct is_base_of : public integral_constant<bool, __is_base_of(_Base, _Derived)> { }; template<typename _From, typename _To> struct is_convertible : public __bool_constant<__is_convertible(_From, _To)> { }; # 1458 "/usr/include/c++/13/type_traits" 3 template<typename _ToElementType, typename _FromElementType> using __is_array_convertible = is_convertible<_FromElementType(*)[], _ToElementType(*)[]>; template<typename _From, typename _To> inline constexpr bool is_nothrow_convertible_v = __is_nothrow_convertible(_From, _To); template<typename _From, typename _To> struct is_nothrow_convertible : public bool_constant<is_nothrow_convertible_v<_From, _To>> { }; # 1522 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct remove_const { typedef _Tp type; }; template<typename _Tp> struct remove_const<_Tp const> { typedef _Tp type; }; template<typename _Tp> struct remove_volatile { typedef _Tp type; }; template<typename _Tp> struct remove_volatile<_Tp volatile> { typedef _Tp type; }; template<typename _Tp> struct remove_cv { using type = __remove_cv(_Tp); }; # 1563 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct add_const { using type = _Tp const; }; template<typename _Tp> struct add_volatile { using type = _Tp volatile; }; template<typename _Tp> struct add_cv { using type = _Tp const volatile; }; template<typename _Tp> using remove_const_t = typename remove_const<_Tp>::type; template<typename _Tp> using remove_volatile_t = typename remove_volatile<_Tp>::type; template<typename _Tp> using remove_cv_t = typename remove_cv<_Tp>::type; template<typename _Tp> using add_const_t = typename add_const<_Tp>::type; template<typename _Tp> using add_volatile_t = typename add_volatile<_Tp>::type; template<typename _Tp> using add_cv_t = typename add_cv<_Tp>::type; template<typename _Tp> struct remove_reference { using type = __remove_reference(_Tp); }; # 1628 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct add_lvalue_reference { using type = __add_lval_ref_t<_Tp>; }; template<typename _Tp> struct add_rvalue_reference { using type = __add_rval_ref_t<_Tp>; }; template<typename _Tp> using remove_reference_t = typename remove_reference<_Tp>::type; template<typename _Tp> using add_lvalue_reference_t = typename add_lvalue_reference<_Tp>::type; template<typename _Tp> using add_rvalue_reference_t = typename add_rvalue_reference<_Tp>::type; template<typename _Unqualified, bool _IsConst, bool _IsVol> struct __cv_selector; template<typename _Unqualified> struct __cv_selector<_Unqualified, false, false> { typedef _Unqualified __type; }; template<typename _Unqualified> struct __cv_selector<_Unqualified, false, true> { typedef volatile _Unqualified __type; }; template<typename _Unqualified> struct __cv_selector<_Unqualified, true, false> { typedef const _Unqualified __type; }; template<typename _Unqualified> struct __cv_selector<_Unqualified, true, true> { typedef const volatile _Unqualified __type; }; template<typename _Qualified, typename _Unqualified, bool _IsConst = is_const<_Qualified>::value, bool _IsVol = is_volatile<_Qualified>::value> class __match_cv_qualifiers { typedef __cv_selector<_Unqualified, _IsConst, _IsVol> __match; public: typedef typename __match::__type __type; }; template<typename _Tp> struct __make_unsigned { typedef _Tp __type; }; template<> struct __make_unsigned<char> { typedef unsigned char __type; }; template<> struct __make_unsigned<signed char> { typedef unsigned char __type; }; template<> struct __make_unsigned<short> { typedef unsigned short __type; }; template<> struct __make_unsigned<int> { typedef unsigned int __type; }; template<> struct __make_unsigned<long> { typedef unsigned long __type; }; template<> struct __make_unsigned<long long> { typedef unsigned long long __type; }; __extension__ template<> struct __make_unsigned<__int128> { typedef unsigned __int128 __type; }; # 1741 "/usr/include/c++/13/type_traits" 3 template<typename _Tp, bool _IsInt = is_integral<_Tp>::value, bool _IsEnum = is_enum<_Tp>::value> class __make_unsigned_selector; template<typename _Tp> class __make_unsigned_selector<_Tp, true, false> { using __unsigned_type = typename __make_unsigned<__remove_cv_t<_Tp>>::__type; public: using __type = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; }; class __make_unsigned_selector_base { protected: template<typename...> struct _List { }; template<typename _Tp, typename... _Up> struct _List<_Tp, _Up...> : _List<_Up...> { static constexpr size_t __size = sizeof(_Tp); }; template<size_t _Sz, typename _Tp, bool = (_Sz <= _Tp::__size)> struct __select; template<size_t _Sz, typename _Uint, typename... _UInts> struct __select<_Sz, _List<_Uint, _UInts...>, true> { using __type = _Uint; }; template<size_t _Sz, typename _Uint, typename... _UInts> struct __select<_Sz, _List<_Uint, _UInts...>, false> : __select<_Sz, _List<_UInts...>> { }; }; template<typename _Tp> class __make_unsigned_selector<_Tp, false, true> : __make_unsigned_selector_base { using _UInts = _List<unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long>; using __unsigned_type = typename __select<sizeof(_Tp), _UInts>::__type; public: using __type = typename __match_cv_qualifiers<_Tp, __unsigned_type>::__type; }; template<> struct __make_unsigned<wchar_t> { using __type = typename __make_unsigned_selector<wchar_t, false, true>::__type; }; template<> struct __make_unsigned<char8_t> { using __type = typename __make_unsigned_selector<char8_t, false, true>::__type; }; template<> struct __make_unsigned<char16_t> { using __type = typename __make_unsigned_selector<char16_t, false, true>::__type; }; template<> struct __make_unsigned<char32_t> { using __type = typename __make_unsigned_selector<char32_t, false, true>::__type; }; template<typename _Tp> struct make_unsigned { typedef typename __make_unsigned_selector<_Tp>::__type type; }; template<> struct make_unsigned<bool>; template<> struct make_unsigned<bool const>; template<> struct make_unsigned<bool volatile>; template<> struct make_unsigned<bool const volatile>; template<typename _Tp> struct __make_signed { typedef _Tp __type; }; template<> struct __make_signed<char> { typedef signed char __type; }; template<> struct __make_signed<unsigned char> { typedef signed char __type; }; template<> struct __make_signed<unsigned short> { typedef signed short __type; }; template<> struct __make_signed<unsigned int> { typedef signed int __type; }; template<> struct __make_signed<unsigned long> { typedef signed long __type; }; template<> struct __make_signed<unsigned long long> { typedef signed long long __type; }; __extension__ template<> struct __make_signed<unsigned __int128> { typedef __int128 __type; }; # 1901 "/usr/include/c++/13/type_traits" 3 template<typename _Tp, bool _IsInt = is_integral<_Tp>::value, bool _IsEnum = is_enum<_Tp>::value> class __make_signed_selector; template<typename _Tp> class __make_signed_selector<_Tp, true, false> { using __signed_type = typename __make_signed<__remove_cv_t<_Tp>>::__type; public: using __type = typename __match_cv_qualifiers<_Tp, __signed_type>::__type; }; template<typename _Tp> class __make_signed_selector<_Tp, false, true> { typedef typename __make_unsigned_selector<_Tp>::__type __unsigned_type; public: typedef typename __make_signed_selector<__unsigned_type>::__type __type; }; template<> struct __make_signed<wchar_t> { using __type = typename __make_signed_selector<wchar_t, false, true>::__type; }; template<> struct __make_signed<char8_t> { using __type = typename __make_signed_selector<char8_t, false, true>::__type; }; template<> struct __make_signed<char16_t> { using __type = typename __make_signed_selector<char16_t, false, true>::__type; }; template<> struct __make_signed<char32_t> { using __type = typename __make_signed_selector<char32_t, false, true>::__type; }; template<typename _Tp> struct make_signed { typedef typename __make_signed_selector<_Tp>::__type type; }; template<> struct make_signed<bool>; template<> struct make_signed<bool const>; template<> struct make_signed<bool volatile>; template<> struct make_signed<bool const volatile>; template<typename _Tp> using make_signed_t = typename make_signed<_Tp>::type; template<typename _Tp> using make_unsigned_t = typename make_unsigned<_Tp>::type; template<typename _Tp> struct remove_extent { typedef _Tp type; }; template<typename _Tp, std::size_t _Size> struct remove_extent<_Tp[_Size]> { typedef _Tp type; }; template<typename _Tp> struct remove_extent<_Tp[]> { typedef _Tp type; }; template<typename _Tp> struct remove_all_extents { typedef _Tp type; }; template<typename _Tp, std::size_t _Size> struct remove_all_extents<_Tp[_Size]> { typedef typename remove_all_extents<_Tp>::type type; }; template<typename _Tp> struct remove_all_extents<_Tp[]> { typedef typename remove_all_extents<_Tp>::type type; }; template<typename _Tp> using remove_extent_t = typename remove_extent<_Tp>::type; template<typename _Tp> using remove_all_extents_t = typename remove_all_extents<_Tp>::type; template<typename _Tp, typename> struct __remove_pointer_helper { typedef _Tp type; }; template<typename _Tp, typename _Up> struct __remove_pointer_helper<_Tp, _Up*> { typedef _Up type; }; template<typename _Tp> struct remove_pointer : public __remove_pointer_helper<_Tp, __remove_cv_t<_Tp>> { }; template<typename _Tp, typename = void> struct __add_pointer_helper { using type = _Tp; }; template<typename _Tp> struct __add_pointer_helper<_Tp, __void_t<_Tp*>> { using type = _Tp*; }; template<typename _Tp> struct add_pointer : public __add_pointer_helper<_Tp> { }; template<typename _Tp> struct add_pointer<_Tp&> { using type = _Tp*; }; template<typename _Tp> struct add_pointer<_Tp&&> { using type = _Tp*; }; template<typename _Tp> using remove_pointer_t = typename remove_pointer<_Tp>::type; template<typename _Tp> using add_pointer_t = typename add_pointer<_Tp>::type; template<std::size_t _Len> struct __aligned_storage_msa { union __type { unsigned char __data[_Len]; struct __attribute__((__aligned__)) { } __align; }; }; # 2095 "/usr/include/c++/13/type_traits" 3 template<std::size_t _Len, std::size_t _Align = __alignof__(typename __aligned_storage_msa<_Len>::__type)> struct aligned_storage { union type { unsigned char __data[_Len]; struct __attribute__((__aligned__((_Align)))) { } __align; }; }; template <typename... _Types> struct __strictest_alignment { static const size_t _S_alignment = 0; static const size_t _S_size = 0; }; template <typename _Tp, typename... _Types> struct __strictest_alignment<_Tp, _Types...> { static const size_t _S_alignment = alignof(_Tp) > __strictest_alignment<_Types...>::_S_alignment ? alignof(_Tp) : __strictest_alignment<_Types...>::_S_alignment; static const size_t _S_size = sizeof(_Tp) > __strictest_alignment<_Types...>::_S_size ? sizeof(_Tp) : __strictest_alignment<_Types...>::_S_size; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 2141 "/usr/include/c++/13/type_traits" 3 template <size_t _Len, typename... _Types> struct aligned_union { private: static_assert(sizeof...(_Types) != 0, "At least one type is required"); using __strictest = __strictest_alignment<_Types...>; static const size_t _S_len = _Len > __strictest::_S_size ? _Len : __strictest::_S_size; public: static const size_t alignment_value = __strictest::_S_alignment; typedef typename aligned_storage<_S_len, alignment_value>::type type; }; template <size_t _Len, typename... _Types> const size_t aligned_union<_Len, _Types...>::alignment_value; #pragma GCC diagnostic pop template<typename _Up> struct __decay_selector : __conditional_t<is_const<const _Up>::value, remove_cv<_Up>, add_pointer<_Up>> { }; template<typename _Up, size_t _Nm> struct __decay_selector<_Up[_Nm]> { using type = _Up*; }; template<typename _Up> struct __decay_selector<_Up[]> { using type = _Up*; }; template<typename _Tp> struct decay { using type = typename __decay_selector<_Tp>::type; }; template<typename _Tp> struct decay<_Tp&> { using type = typename __decay_selector<_Tp>::type; }; template<typename _Tp> struct decay<_Tp&&> { using type = typename __decay_selector<_Tp>::type; }; template<typename _Tp> struct __strip_reference_wrapper { typedef _Tp __type; }; template<typename _Tp> struct __strip_reference_wrapper<reference_wrapper<_Tp> > { typedef _Tp& __type; }; template<typename _Tp> using __decay_t = typename decay<_Tp>::type; template<typename _Tp> using __decay_and_strip = __strip_reference_wrapper<__decay_t<_Tp>>; template<typename... _Cond> using _Require = __enable_if_t<__and_<_Cond...>::value>; template<typename _Tp> using __remove_cvref_t = typename remove_cv<typename remove_reference<_Tp>::type>::type; template<bool _Cond, typename _Iftrue, typename _Iffalse> struct conditional { typedef _Iftrue type; }; template<typename _Iftrue, typename _Iffalse> struct conditional<false, _Iftrue, _Iffalse> { typedef _Iffalse type; }; template<typename... _Tp> struct common_type; # 2256 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct __success_type { typedef _Tp type; }; struct __failure_type { }; struct __do_common_type_impl { template<typename _Tp, typename _Up> using __cond_t = decltype(true ? std::declval<_Tp>() : std::declval<_Up>()); template<typename _Tp, typename _Up> static __success_type<__decay_t<__cond_t<_Tp, _Up>>> _S_test(int); template<typename _Tp, typename _Up> static __success_type<__remove_cvref_t<__cond_t<const _Tp&, const _Up&>>> _S_test_2(int); template<typename, typename> static __failure_type _S_test_2(...); template<typename _Tp, typename _Up> static decltype(_S_test_2<_Tp, _Up>(0)) _S_test(...); }; template<> struct common_type<> { }; template<typename _Tp0> struct common_type<_Tp0> : public common_type<_Tp0, _Tp0> { }; template<typename _Tp1, typename _Tp2, typename _Dp1 = __decay_t<_Tp1>, typename _Dp2 = __decay_t<_Tp2>> struct __common_type_impl { using type = common_type<_Dp1, _Dp2>; }; template<typename _Tp1, typename _Tp2> struct __common_type_impl<_Tp1, _Tp2, _Tp1, _Tp2> : private __do_common_type_impl { using type = decltype(_S_test<_Tp1, _Tp2>(0)); }; template<typename _Tp1, typename _Tp2> struct common_type<_Tp1, _Tp2> : public __common_type_impl<_Tp1, _Tp2>::type { }; template<typename...> struct __common_type_pack { }; template<typename, typename, typename = void> struct __common_type_fold; template<typename _Tp1, typename _Tp2, typename... _Rp> struct common_type<_Tp1, _Tp2, _Rp...> : public __common_type_fold<common_type<_Tp1, _Tp2>, __common_type_pack<_Rp...>> { }; template<typename _CTp, typename... _Rp> struct __common_type_fold<_CTp, __common_type_pack<_Rp...>, __void_t<typename _CTp::type>> : public common_type<typename _CTp::type, _Rp...> { }; template<typename _CTp, typename _Rp> struct __common_type_fold<_CTp, _Rp, void> { }; template<typename _Tp, bool = is_enum<_Tp>::value> struct __underlying_type_impl { using type = __underlying_type(_Tp); }; template<typename _Tp> struct __underlying_type_impl<_Tp, false> { }; template<typename _Tp> struct underlying_type : public __underlying_type_impl<_Tp> { }; template<typename _Tp> struct __declval_protector { static const bool __stop = false; }; template<typename _Tp> auto declval() noexcept -> decltype(__declval<_Tp>(0)) { static_assert(__declval_protector<_Tp>::__stop, "declval() must not be used!"); return __declval<_Tp>(0); } template<typename _Signature> struct result_of; struct __invoke_memfun_ref { }; struct __invoke_memfun_deref { }; struct __invoke_memobj_ref { }; struct __invoke_memobj_deref { }; struct __invoke_other { }; template<typename _Tp, typename _Tag> struct __result_of_success : __success_type<_Tp> { using __invoke_type = _Tag; }; struct __result_of_memfun_ref_impl { template<typename _Fp, typename _Tp1, typename... _Args> static __result_of_success<decltype( (std::declval<_Tp1>().*std::declval<_Fp>())(std::declval<_Args>()...) ), __invoke_memfun_ref> _S_test(int); template<typename...> static __failure_type _S_test(...); }; template<typename _MemPtr, typename _Arg, typename... _Args> struct __result_of_memfun_ref : private __result_of_memfun_ref_impl { typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; }; struct __result_of_memfun_deref_impl { template<typename _Fp, typename _Tp1, typename... _Args> static __result_of_success<decltype( ((*std::declval<_Tp1>()).*std::declval<_Fp>())(std::declval<_Args>()...) ), __invoke_memfun_deref> _S_test(int); template<typename...> static __failure_type _S_test(...); }; template<typename _MemPtr, typename _Arg, typename... _Args> struct __result_of_memfun_deref : private __result_of_memfun_deref_impl { typedef decltype(_S_test<_MemPtr, _Arg, _Args...>(0)) type; }; struct __result_of_memobj_ref_impl { template<typename _Fp, typename _Tp1> static __result_of_success<decltype( std::declval<_Tp1>().*std::declval<_Fp>() ), __invoke_memobj_ref> _S_test(int); template<typename, typename> static __failure_type _S_test(...); }; template<typename _MemPtr, typename _Arg> struct __result_of_memobj_ref : private __result_of_memobj_ref_impl { typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; }; struct __result_of_memobj_deref_impl { template<typename _Fp, typename _Tp1> static __result_of_success<decltype( (*std::declval<_Tp1>()).*std::declval<_Fp>() ), __invoke_memobj_deref> _S_test(int); template<typename, typename> static __failure_type _S_test(...); }; template<typename _MemPtr, typename _Arg> struct __result_of_memobj_deref : private __result_of_memobj_deref_impl { typedef decltype(_S_test<_MemPtr, _Arg>(0)) type; }; template<typename _MemPtr, typename _Arg> struct __result_of_memobj; template<typename _Res, typename _Class, typename _Arg> struct __result_of_memobj<_Res _Class::*, _Arg> { typedef __remove_cvref_t<_Arg> _Argval; typedef _Res _Class::* _MemPtr; typedef typename __conditional_t<__or_<is_same<_Argval, _Class>, is_base_of<_Class, _Argval>>::value, __result_of_memobj_ref<_MemPtr, _Arg>, __result_of_memobj_deref<_MemPtr, _Arg> >::type type; }; template<typename _MemPtr, typename _Arg, typename... _Args> struct __result_of_memfun; template<typename _Res, typename _Class, typename _Arg, typename... _Args> struct __result_of_memfun<_Res _Class::*, _Arg, _Args...> { typedef typename remove_reference<_Arg>::type _Argval; typedef _Res _Class::* _MemPtr; typedef typename __conditional_t<is_base_of<_Class, _Argval>::value, __result_of_memfun_ref<_MemPtr, _Arg, _Args...>, __result_of_memfun_deref<_MemPtr, _Arg, _Args...> >::type type; }; template<typename _Tp, typename _Up = __remove_cvref_t<_Tp>> struct __inv_unwrap { using type = _Tp; }; template<typename _Tp, typename _Up> struct __inv_unwrap<_Tp, reference_wrapper<_Up>> { using type = _Up&; }; template<bool, bool, typename _Functor, typename... _ArgTypes> struct __result_of_impl { typedef __failure_type type; }; template<typename _MemPtr, typename _Arg> struct __result_of_impl<true, false, _MemPtr, _Arg> : public __result_of_memobj<__decay_t<_MemPtr>, typename __inv_unwrap<_Arg>::type> { }; template<typename _MemPtr, typename _Arg, typename... _Args> struct __result_of_impl<false, true, _MemPtr, _Arg, _Args...> : public __result_of_memfun<__decay_t<_MemPtr>, typename __inv_unwrap<_Arg>::type, _Args...> { }; struct __result_of_other_impl { template<typename _Fn, typename... _Args> static __result_of_success<decltype( std::declval<_Fn>()(std::declval<_Args>()...) ), __invoke_other> _S_test(int); template<typename...> static __failure_type _S_test(...); }; template<typename _Functor, typename... _ArgTypes> struct __result_of_impl<false, false, _Functor, _ArgTypes...> : private __result_of_other_impl { typedef decltype(_S_test<_Functor, _ArgTypes...>(0)) type; }; template<typename _Functor, typename... _ArgTypes> struct __invoke_result : public __result_of_impl< is_member_object_pointer< typename remove_reference<_Functor>::type >::value, is_member_function_pointer< typename remove_reference<_Functor>::type >::value, _Functor, _ArgTypes... >::type { }; template<typename _Functor, typename... _ArgTypes> struct result_of<_Functor(_ArgTypes...)> : public __invoke_result<_Functor, _ArgTypes...> { } __attribute__ ((__deprecated__ ("use '" "std::invoke_result" "' instead"))); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<size_t _Len, size_t _Align = __alignof__(typename __aligned_storage_msa<_Len>::__type)> using aligned_storage_t = typename aligned_storage<_Len, _Align>::type; template <size_t _Len, typename... _Types> using aligned_union_t = typename aligned_union<_Len, _Types...>::type; #pragma GCC diagnostic pop template<typename _Tp> using decay_t = typename decay<_Tp>::type; template<bool _Cond, typename _Tp = void> using enable_if_t = typename enable_if<_Cond, _Tp>::type; template<bool _Cond, typename _Iftrue, typename _Iffalse> using conditional_t = typename conditional<_Cond, _Iftrue, _Iffalse>::type; template<typename... _Tp> using common_type_t = typename common_type<_Tp...>::type; template<typename _Tp> using underlying_type_t = typename underlying_type<_Tp>::type; template<typename _Tp> using result_of_t = typename result_of<_Tp>::type; template<typename...> using void_t = void; # 2642 "/usr/include/c++/13/type_traits" 3 template<typename _Def, template<typename...> class _Op, typename... _Args> struct __detected_or { using type = _Def; using __is_detected = false_type; }; template<typename _Def, template<typename...> class _Op, typename... _Args> requires requires { typename _Op<_Args...>; } struct __detected_or<_Def, _Op, _Args...> { using type = _Op<_Args...>; using __is_detected = true_type; }; # 2682 "/usr/include/c++/13/type_traits" 3 template<typename _Default, template<typename...> class _Op, typename... _Args> using __detected_or_t = typename __detected_or<_Default, _Op, _Args...>::type; # 2701 "/usr/include/c++/13/type_traits" 3 template <typename _Tp> struct __is_swappable; template <typename _Tp> struct __is_nothrow_swappable; template<typename> struct __is_tuple_like_impl : false_type { }; template<typename _Tp> struct __is_tuple_like : public __is_tuple_like_impl<__remove_cvref_t<_Tp>>::type { }; template<typename _Tp> constexpr inline _Require<__not_<__is_tuple_like<_Tp>>, is_move_constructible<_Tp>, is_move_assignable<_Tp>> swap(_Tp&, _Tp&) noexcept(__and_<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>::value); template<typename _Tp, size_t _Nm> constexpr inline __enable_if_t<__is_swappable<_Tp>::value> swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) noexcept(__is_nothrow_swappable<_Tp>::value); namespace __swappable_details { using std::swap; struct __do_is_swappable_impl { template<typename _Tp, typename = decltype(swap(std::declval<_Tp&>(), std::declval<_Tp&>()))> static true_type __test(int); template<typename> static false_type __test(...); }; struct __do_is_nothrow_swappable_impl { template<typename _Tp> static __bool_constant< noexcept(swap(std::declval<_Tp&>(), std::declval<_Tp&>())) > __test(int); template<typename> static false_type __test(...); }; } template<typename _Tp> struct __is_swappable_impl : public __swappable_details::__do_is_swappable_impl { typedef decltype(__test<_Tp>(0)) type; }; template<typename _Tp> struct __is_nothrow_swappable_impl : public __swappable_details::__do_is_nothrow_swappable_impl { typedef decltype(__test<_Tp>(0)) type; }; template<typename _Tp> struct __is_swappable : public __is_swappable_impl<_Tp>::type { }; template<typename _Tp> struct __is_nothrow_swappable : public __is_nothrow_swappable_impl<_Tp>::type { }; template<typename _Tp> struct is_swappable : public __is_swappable_impl<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> struct is_nothrow_swappable : public __is_nothrow_swappable_impl<_Tp>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> inline constexpr bool is_swappable_v = is_swappable<_Tp>::value; template<typename _Tp> inline constexpr bool is_nothrow_swappable_v = is_nothrow_swappable<_Tp>::value; namespace __swappable_with_details { using std::swap; struct __do_is_swappable_with_impl { template<typename _Tp, typename _Up, typename = decltype(swap(std::declval<_Tp>(), std::declval<_Up>())), typename = decltype(swap(std::declval<_Up>(), std::declval<_Tp>()))> static true_type __test(int); template<typename, typename> static false_type __test(...); }; struct __do_is_nothrow_swappable_with_impl { template<typename _Tp, typename _Up> static __bool_constant< noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())) && noexcept(swap(std::declval<_Up>(), std::declval<_Tp>())) > __test(int); template<typename, typename> static false_type __test(...); }; } template<typename _Tp, typename _Up> struct __is_swappable_with_impl : public __swappable_with_details::__do_is_swappable_with_impl { typedef decltype(__test<_Tp, _Up>(0)) type; }; template<typename _Tp> struct __is_swappable_with_impl<_Tp&, _Tp&> : public __swappable_details::__do_is_swappable_impl { typedef decltype(__test<_Tp&>(0)) type; }; template<typename _Tp, typename _Up> struct __is_nothrow_swappable_with_impl : public __swappable_with_details::__do_is_nothrow_swappable_with_impl { typedef decltype(__test<_Tp, _Up>(0)) type; }; template<typename _Tp> struct __is_nothrow_swappable_with_impl<_Tp&, _Tp&> : public __swappable_details::__do_is_nothrow_swappable_impl { typedef decltype(__test<_Tp&>(0)) type; }; template<typename _Tp, typename _Up> struct is_swappable_with : public __is_swappable_with_impl<_Tp, _Up>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "first template argument must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), "second template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename _Up> struct is_nothrow_swappable_with : public __is_nothrow_swappable_with_impl<_Tp, _Up>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "first template argument must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Up>{}), "second template argument must be a complete class or an unbounded array"); }; template<typename _Tp, typename _Up> inline constexpr bool is_swappable_with_v = is_swappable_with<_Tp, _Up>::value; template<typename _Tp, typename _Up> inline constexpr bool is_nothrow_swappable_with_v = is_nothrow_swappable_with<_Tp, _Up>::value; # 2924 "/usr/include/c++/13/type_traits" 3 template<typename _Result, typename _Ret, bool = is_void<_Ret>::value, typename = void> struct __is_invocable_impl : false_type { using __nothrow_conv = false_type; }; template<typename _Result, typename _Ret> struct __is_invocable_impl<_Result, _Ret, true, __void_t<typename _Result::type>> : true_type { using __nothrow_conv = true_type; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" template<typename _Result, typename _Ret> struct __is_invocable_impl<_Result, _Ret, false, __void_t<typename _Result::type>> { private: using _Res_t = typename _Result::type; static _Res_t _S_get() noexcept; template<typename _Tp> static void _S_conv(__type_identity_t<_Tp>) noexcept; template<typename _Tp, bool _Nothrow = noexcept(_S_conv<_Tp>(_S_get())), typename = decltype(_S_conv<_Tp>(_S_get())), bool _Dangle = __reference_converts_from_temporary(_Tp, _Res_t) > static __bool_constant<_Nothrow && !_Dangle> _S_test(int); template<typename _Tp, bool = false> static false_type _S_test(...); public: using type = decltype(_S_test<_Ret, true>(1)); using __nothrow_conv = decltype(_S_test<_Ret>(1)); }; #pragma GCC diagnostic pop template<typename _Fn, typename... _ArgTypes> struct __is_invocable : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type { }; template<typename _Fn, typename _Tp, typename... _Args> constexpr bool __call_is_nt(__invoke_memfun_ref) { using _Up = typename __inv_unwrap<_Tp>::type; return noexcept((std::declval<_Up>().*std::declval<_Fn>())( std::declval<_Args>()...)); } template<typename _Fn, typename _Tp, typename... _Args> constexpr bool __call_is_nt(__invoke_memfun_deref) { return noexcept(((*std::declval<_Tp>()).*std::declval<_Fn>())( std::declval<_Args>()...)); } template<typename _Fn, typename _Tp> constexpr bool __call_is_nt(__invoke_memobj_ref) { using _Up = typename __inv_unwrap<_Tp>::type; return noexcept(std::declval<_Up>().*std::declval<_Fn>()); } template<typename _Fn, typename _Tp> constexpr bool __call_is_nt(__invoke_memobj_deref) { return noexcept((*std::declval<_Tp>()).*std::declval<_Fn>()); } template<typename _Fn, typename... _Args> constexpr bool __call_is_nt(__invoke_other) { return noexcept(std::declval<_Fn>()(std::declval<_Args>()...)); } template<typename _Result, typename _Fn, typename... _Args> struct __call_is_nothrow : __bool_constant< std::__call_is_nt<_Fn, _Args...>(typename _Result::__invoke_type{}) > { }; template<typename _Fn, typename... _Args> using __call_is_nothrow_ = __call_is_nothrow<__invoke_result<_Fn, _Args...>, _Fn, _Args...>; template<typename _Fn, typename... _Args> struct __is_nothrow_invocable : __and_<__is_invocable<_Fn, _Args...>, __call_is_nothrow_<_Fn, _Args...>>::type { }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wctor-dtor-privacy" struct __nonesuchbase {}; struct __nonesuch : private __nonesuchbase { ~__nonesuch() = delete; __nonesuch(__nonesuch const&) = delete; void operator=(__nonesuch const&) = delete; }; #pragma GCC diagnostic pop template<typename _Functor, typename... _ArgTypes> struct invoke_result : public __invoke_result<_Functor, _ArgTypes...> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Functor>{}), "_Functor must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); }; template<typename _Fn, typename... _Args> using invoke_result_t = typename invoke_result<_Fn, _Args...>::type; template<typename _Fn, typename... _ArgTypes> struct is_invocable : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); }; template<typename _Ret, typename _Fn, typename... _ArgTypes> struct is_invocable_r : __is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), "_Ret must be a complete class or an unbounded array"); }; template<typename _Fn, typename... _ArgTypes> struct is_nothrow_invocable : __and_<__is_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, void>, __call_is_nothrow_<_Fn, _ArgTypes...>>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); }; template<typename _Result, typename _Ret> using __is_nt_invocable_impl = typename __is_invocable_impl<_Result, _Ret>::__nothrow_conv; template<typename _Ret, typename _Fn, typename... _ArgTypes> struct is_nothrow_invocable_r : __and_<__is_nt_invocable_impl<__invoke_result<_Fn, _ArgTypes...>, _Ret>, __call_is_nothrow_<_Fn, _ArgTypes...>>::type { static_assert(std::__is_complete_or_unbounded(__type_identity<_Fn>{}), "_Fn must be a complete class or an unbounded array"); static_assert((std::__is_complete_or_unbounded( __type_identity<_ArgTypes>{}) && ...), "each argument type must be a complete class or an unbounded array"); static_assert(std::__is_complete_or_unbounded(__type_identity<_Ret>{}), "_Ret must be a complete class or an unbounded array"); }; # 3155 "/usr/include/c++/13/type_traits" 3 template <typename _Tp> inline constexpr bool is_void_v = is_void<_Tp>::value; template <typename _Tp> inline constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value; template <typename _Tp> inline constexpr bool is_integral_v = is_integral<_Tp>::value; template <typename _Tp> inline constexpr bool is_floating_point_v = is_floating_point<_Tp>::value; template <typename _Tp> inline constexpr bool is_array_v = false; template <typename _Tp> inline constexpr bool is_array_v<_Tp[]> = true; template <typename _Tp, size_t _Num> inline constexpr bool is_array_v<_Tp[_Num]> = true; template <typename _Tp> inline constexpr bool is_pointer_v = is_pointer<_Tp>::value; template <typename _Tp> inline constexpr bool is_lvalue_reference_v = false; template <typename _Tp> inline constexpr bool is_lvalue_reference_v<_Tp&> = true; template <typename _Tp> inline constexpr bool is_rvalue_reference_v = false; template <typename _Tp> inline constexpr bool is_rvalue_reference_v<_Tp&&> = true; template <typename _Tp> inline constexpr bool is_member_object_pointer_v = is_member_object_pointer<_Tp>::value; template <typename _Tp> inline constexpr bool is_member_function_pointer_v = is_member_function_pointer<_Tp>::value; template <typename _Tp> inline constexpr bool is_enum_v = __is_enum(_Tp); template <typename _Tp> inline constexpr bool is_union_v = __is_union(_Tp); template <typename _Tp> inline constexpr bool is_class_v = __is_class(_Tp); template <typename _Tp> inline constexpr bool is_function_v = is_function<_Tp>::value; template <typename _Tp> inline constexpr bool is_reference_v = false; template <typename _Tp> inline constexpr bool is_reference_v<_Tp&> = true; template <typename _Tp> inline constexpr bool is_reference_v<_Tp&&> = true; template <typename _Tp> inline constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value; template <typename _Tp> inline constexpr bool is_fundamental_v = is_fundamental<_Tp>::value; template <typename _Tp> inline constexpr bool is_object_v = is_object<_Tp>::value; template <typename _Tp> inline constexpr bool is_scalar_v = is_scalar<_Tp>::value; template <typename _Tp> inline constexpr bool is_compound_v = is_compound<_Tp>::value; template <typename _Tp> inline constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value; template <typename _Tp> inline constexpr bool is_const_v = false; template <typename _Tp> inline constexpr bool is_const_v<const _Tp> = true; template <typename _Tp> inline constexpr bool is_volatile_v = false; template <typename _Tp> inline constexpr bool is_volatile_v<volatile _Tp> = true; template <typename _Tp> inline constexpr bool is_trivial_v = __is_trivial(_Tp); template <typename _Tp> inline constexpr bool is_trivially_copyable_v = __is_trivially_copyable(_Tp); template <typename _Tp> inline constexpr bool is_standard_layout_v = __is_standard_layout(_Tp); template <typename _Tp> __attribute__ ((__deprecated__ ("use '" "is_standard_layout_v && is_trivial_v" "' instead"))) inline constexpr bool is_pod_v = __is_pod(_Tp); template <typename _Tp> [[__deprecated__]] inline constexpr bool is_literal_type_v = __is_literal_type(_Tp); template <typename _Tp> inline constexpr bool is_empty_v = __is_empty(_Tp); template <typename _Tp> inline constexpr bool is_polymorphic_v = __is_polymorphic(_Tp); template <typename _Tp> inline constexpr bool is_abstract_v = __is_abstract(_Tp); template <typename _Tp> inline constexpr bool is_final_v = __is_final(_Tp); template <typename _Tp> inline constexpr bool is_signed_v = is_signed<_Tp>::value; template <typename _Tp> inline constexpr bool is_unsigned_v = is_unsigned<_Tp>::value; template <typename _Tp, typename... _Args> inline constexpr bool is_constructible_v = __is_constructible(_Tp, _Args...); template <typename _Tp> inline constexpr bool is_default_constructible_v = __is_constructible(_Tp); template <typename _Tp> inline constexpr bool is_copy_constructible_v = __is_constructible(_Tp, __add_lval_ref_t<const _Tp>); template <typename _Tp> inline constexpr bool is_move_constructible_v = __is_constructible(_Tp, __add_rval_ref_t<_Tp>); template <typename _Tp, typename _Up> inline constexpr bool is_assignable_v = __is_assignable(_Tp, _Up); template <typename _Tp> inline constexpr bool is_copy_assignable_v = __is_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>); template <typename _Tp> inline constexpr bool is_move_assignable_v = __is_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); template <typename _Tp> inline constexpr bool is_destructible_v = is_destructible<_Tp>::value; template <typename _Tp, typename... _Args> inline constexpr bool is_trivially_constructible_v = __is_trivially_constructible(_Tp, _Args...); template <typename _Tp> inline constexpr bool is_trivially_default_constructible_v = __is_trivially_constructible(_Tp); template <typename _Tp> inline constexpr bool is_trivially_copy_constructible_v = __is_trivially_constructible(_Tp, __add_lval_ref_t<const _Tp>); template <typename _Tp> inline constexpr bool is_trivially_move_constructible_v = __is_trivially_constructible(_Tp, __add_rval_ref_t<_Tp>); template <typename _Tp, typename _Up> inline constexpr bool is_trivially_assignable_v = __is_trivially_assignable(_Tp, _Up); template <typename _Tp> inline constexpr bool is_trivially_copy_assignable_v = __is_trivially_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>); template <typename _Tp> inline constexpr bool is_trivially_move_assignable_v = __is_trivially_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); template <typename _Tp> inline constexpr bool is_trivially_destructible_v = is_trivially_destructible<_Tp>::value; template <typename _Tp, typename... _Args> inline constexpr bool is_nothrow_constructible_v = __is_nothrow_constructible(_Tp, _Args...); template <typename _Tp> inline constexpr bool is_nothrow_default_constructible_v = __is_nothrow_constructible(_Tp); template <typename _Tp> inline constexpr bool is_nothrow_copy_constructible_v = __is_nothrow_constructible(_Tp, __add_lval_ref_t<const _Tp>); template <typename _Tp> inline constexpr bool is_nothrow_move_constructible_v = __is_nothrow_constructible(_Tp, __add_rval_ref_t<_Tp>); template <typename _Tp, typename _Up> inline constexpr bool is_nothrow_assignable_v = __is_nothrow_assignable(_Tp, _Up); template <typename _Tp> inline constexpr bool is_nothrow_copy_assignable_v = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_lval_ref_t<const _Tp>); template <typename _Tp> inline constexpr bool is_nothrow_move_assignable_v = __is_nothrow_assignable(__add_lval_ref_t<_Tp>, __add_rval_ref_t<_Tp>); template <typename _Tp> inline constexpr bool is_nothrow_destructible_v = is_nothrow_destructible<_Tp>::value; template <typename _Tp> inline constexpr bool has_virtual_destructor_v = __has_virtual_destructor(_Tp); template <typename _Tp> inline constexpr size_t alignment_of_v = alignment_of<_Tp>::value; template <typename _Tp> inline constexpr size_t rank_v = 0; template <typename _Tp, size_t _Size> inline constexpr size_t rank_v<_Tp[_Size]> = 1 + rank_v<_Tp>; template <typename _Tp> inline constexpr size_t rank_v<_Tp[]> = 1 + rank_v<_Tp>; template <typename _Tp, unsigned _Idx = 0> inline constexpr size_t extent_v = 0; template <typename _Tp, size_t _Size> inline constexpr size_t extent_v<_Tp[_Size], 0> = _Size; template <typename _Tp, unsigned _Idx, size_t _Size> inline constexpr size_t extent_v<_Tp[_Size], _Idx> = extent_v<_Tp, _Idx - 1>; template <typename _Tp> inline constexpr size_t extent_v<_Tp[], 0> = 0; template <typename _Tp, unsigned _Idx> inline constexpr size_t extent_v<_Tp[], _Idx> = extent_v<_Tp, _Idx - 1>; template <typename _Tp, typename _Up> inline constexpr bool is_same_v = __is_same(_Tp, _Up); template <typename _Base, typename _Derived> inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); template <typename _From, typename _To> inline constexpr bool is_convertible_v = __is_convertible(_From, _To); template<typename _Fn, typename... _Args> inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; template<typename _Fn, typename... _Args> inline constexpr bool is_nothrow_invocable_v = is_nothrow_invocable<_Fn, _Args...>::value; template<typename _Ret, typename _Fn, typename... _Args> inline constexpr bool is_invocable_r_v = is_invocable_r<_Ret, _Fn, _Args...>::value; template<typename _Ret, typename _Fn, typename... _Args> inline constexpr bool is_nothrow_invocable_r_v = is_nothrow_invocable_r<_Ret, _Fn, _Args...>::value; template<typename _Tp> struct has_unique_object_representations : bool_constant<__has_unique_object_representations( remove_cv_t<remove_all_extents_t<_Tp>> )> { static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}), "template argument must be a complete class or an unbounded array"); }; template<typename _Tp> inline constexpr bool has_unique_object_representations_v = has_unique_object_representations<_Tp>::value; template<typename _Tp> struct is_aggregate : bool_constant<__is_aggregate(remove_cv_t<_Tp>)> { }; template<typename _Tp> inline constexpr bool is_aggregate_v = __is_aggregate(remove_cv_t<_Tp>); # 3424 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct remove_cvref { using type = __remove_cvref(_Tp); }; # 3441 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> using remove_cvref_t = typename remove_cvref<_Tp>::type; template<typename _Tp> struct type_identity { using type = _Tp; }; template<typename _Tp> using type_identity_t = typename type_identity<_Tp>::type; # 3463 "/usr/include/c++/13/type_traits" 3 template<typename _Tp> struct unwrap_reference { using type = _Tp; }; template<typename _Tp> struct unwrap_reference<reference_wrapper<_Tp>> { using type = _Tp&; }; template<typename _Tp> using unwrap_reference_t = typename unwrap_reference<_Tp>::type; template<typename _Tp> struct unwrap_ref_decay { using type = unwrap_reference_t<decay_t<_Tp>>; }; template<typename _Tp> using unwrap_ref_decay_t = typename unwrap_ref_decay<_Tp>::type; template<typename _Tp> inline constexpr bool is_bounded_array_v = false; template<typename _Tp, size_t _Size> inline constexpr bool is_bounded_array_v<_Tp[_Size]> = true; template<typename _Tp> inline constexpr bool is_unbounded_array_v = false; template<typename _Tp> inline constexpr bool is_unbounded_array_v<_Tp[]> = true; template<typename _Tp> struct is_bounded_array : public bool_constant<is_bounded_array_v<_Tp>> { }; template<typename _Tp> struct is_unbounded_array : public bool_constant<is_unbounded_array_v<_Tp>> { }; template<typename _Tp, typename _Up> struct is_layout_compatible : bool_constant<__is_layout_compatible(_Tp, _Up)> { }; template<typename _Tp, typename _Up> constexpr bool is_layout_compatible_v = __is_layout_compatible(_Tp, _Up); template<typename _S1, typename _S2, typename _M1, typename _M2> constexpr bool is_corresponding_member(_M1 _S1::*__m1, _M2 _S2::*__m2) noexcept { return __builtin_is_corresponding_member(__m1, __m2); } template<typename _Base, typename _Derived> struct is_pointer_interconvertible_base_of : bool_constant<__is_pointer_interconvertible_base_of(_Base, _Derived)> { }; template<typename _Base, typename _Derived> constexpr bool is_pointer_interconvertible_base_of_v = __is_pointer_interconvertible_base_of(_Base, _Derived); template<typename _Tp, typename _Mem> constexpr bool is_pointer_interconvertible_with_class(_Mem _Tp::*__mp) noexcept { return __builtin_is_pointer_interconvertible_with_class(__mp); } # 3643 "/usr/include/c++/13/type_traits" 3 constexpr inline bool is_constant_evaluated() noexcept { return __builtin_is_constant_evaluated(); } template<typename _From, typename _To> using __copy_cv = typename __match_cv_qualifiers<_From, _To>::__type; template<typename _Xp, typename _Yp> using __cond_res = decltype(false ? declval<_Xp(&)()>()() : declval<_Yp(&)()>()()); template<typename _Ap, typename _Bp, typename = void> struct __common_ref_impl { }; template<typename _Ap, typename _Bp> using __common_ref = typename __common_ref_impl<_Ap, _Bp>::type; template<typename _Xp, typename _Yp> using __condres_cvref = __cond_res<__copy_cv<_Xp, _Yp>&, __copy_cv<_Yp, _Xp>&>; template<typename _Xp, typename _Yp> struct __common_ref_impl<_Xp&, _Yp&, __void_t<__condres_cvref<_Xp, _Yp>>> : enable_if<is_reference_v<__condres_cvref<_Xp, _Yp>>, __condres_cvref<_Xp, _Yp>> { }; template<typename _Xp, typename _Yp> using __common_ref_C = remove_reference_t<__common_ref<_Xp&, _Yp&>>&&; template<typename _Xp, typename _Yp> struct __common_ref_impl<_Xp&&, _Yp&&, _Require<is_convertible<_Xp&&, __common_ref_C<_Xp, _Yp>>, is_convertible<_Yp&&, __common_ref_C<_Xp, _Yp>>>> { using type = __common_ref_C<_Xp, _Yp>; }; template<typename _Xp, typename _Yp> using __common_ref_D = __common_ref<const _Xp&, _Yp&>; template<typename _Xp, typename _Yp> struct __common_ref_impl<_Xp&&, _Yp&, _Require<is_convertible<_Xp&&, __common_ref_D<_Xp, _Yp>>>> { using type = __common_ref_D<_Xp, _Yp>; }; template<typename _Xp, typename _Yp> struct __common_ref_impl<_Xp&, _Yp&&> : __common_ref_impl<_Yp&&, _Xp&> { }; template<typename _Tp, typename _Up, template<typename> class _TQual, template<typename> class _UQual> struct basic_common_reference { }; template<typename _Tp> struct __xref { template<typename _Up> using __type = __copy_cv<_Tp, _Up>; }; template<typename _Tp> struct __xref<_Tp&> { template<typename _Up> using __type = __copy_cv<_Tp, _Up>&; }; template<typename _Tp> struct __xref<_Tp&&> { template<typename _Up> using __type = __copy_cv<_Tp, _Up>&&; }; template<typename _Tp1, typename _Tp2> using __basic_common_ref = typename basic_common_reference<remove_cvref_t<_Tp1>, remove_cvref_t<_Tp2>, __xref<_Tp1>::template __type, __xref<_Tp2>::template __type>::type; template<typename... _Tp> struct common_reference; template<typename... _Tp> using common_reference_t = typename common_reference<_Tp...>::type; template<> struct common_reference<> { }; template<typename _Tp0> struct common_reference<_Tp0> { using type = _Tp0; }; template<typename _Tp1, typename _Tp2, int _Bullet = 1, typename = void> struct __common_reference_impl : __common_reference_impl<_Tp1, _Tp2, _Bullet + 1> { }; template<typename _Tp1, typename _Tp2> struct common_reference<_Tp1, _Tp2> : __common_reference_impl<_Tp1, _Tp2> { }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1&, _Tp2&, 1, void_t<__common_ref<_Tp1&, _Tp2&>>> { using type = __common_ref<_Tp1&, _Tp2&>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1&&, _Tp2&&, 1, void_t<__common_ref<_Tp1&&, _Tp2&&>>> { using type = __common_ref<_Tp1&&, _Tp2&&>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1&, _Tp2&&, 1, void_t<__common_ref<_Tp1&, _Tp2&&>>> { using type = __common_ref<_Tp1&, _Tp2&&>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1&&, _Tp2&, 1, void_t<__common_ref<_Tp1&&, _Tp2&>>> { using type = __common_ref<_Tp1&&, _Tp2&>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1, _Tp2, 2, void_t<__basic_common_ref<_Tp1, _Tp2>>> { using type = __basic_common_ref<_Tp1, _Tp2>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1, _Tp2, 3, void_t<__cond_res<_Tp1, _Tp2>>> { using type = __cond_res<_Tp1, _Tp2>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1, _Tp2, 4, void_t<common_type_t<_Tp1, _Tp2>>> { using type = common_type_t<_Tp1, _Tp2>; }; template<typename _Tp1, typename _Tp2> struct __common_reference_impl<_Tp1, _Tp2, 5, void> { }; template<typename _Tp1, typename _Tp2, typename... _Rest> struct common_reference<_Tp1, _Tp2, _Rest...> : __common_type_fold<common_reference<_Tp1, _Tp2>, __common_type_pack<_Rest...>> { }; template<typename _Tp1, typename _Tp2, typename... _Rest> struct __common_type_fold<common_reference<_Tp1, _Tp2>, __common_type_pack<_Rest...>, void_t<common_reference_t<_Tp1, _Tp2>>> : public common_reference<common_reference_t<_Tp1, _Tp2>, _Rest...> { }; } # 38 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/exception" 1 3 # 33 "/usr/include/c++/13/exception" 3 # 34 "/usr/include/c++/13/exception" 3 # 1 "/usr/include/c++/13/bits/exception.h" 1 3 # 34 "/usr/include/c++/13/bits/exception.h" 3 # 35 "/usr/include/c++/13/bits/exception.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/13/bits/exception.h" 3 class exception { public: exception() noexcept { } virtual ~exception() noexcept; exception(const exception&) = default; exception& operator=(const exception&) = default; exception(exception&&) = default; exception& operator=(exception&&) = default; virtual const char* what() const noexcept; }; } } # 37 "/usr/include/c++/13/exception" 2 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { # 51 "/usr/include/c++/13/exception" 3 class bad_exception : public exception { public: bad_exception() noexcept { } virtual ~bad_exception() noexcept; virtual const char* what() const noexcept; }; typedef void (*terminate_handler) (); terminate_handler set_terminate(terminate_handler) noexcept; terminate_handler get_terminate() noexcept; void terminate() noexcept __attribute__ ((__noreturn__)); typedef void (*__attribute__ ((__deprecated__)) unexpected_handler) (); __attribute__ ((__deprecated__)) unexpected_handler set_unexpected(unexpected_handler) noexcept; __attribute__ ((__deprecated__)) unexpected_handler get_unexpected() noexcept; __attribute__ ((__deprecated__)) void unexpected() __attribute__ ((__noreturn__)); # 121 "/usr/include/c++/13/exception" 3 __attribute__ ((__deprecated__ ("use '" "std::uncaught_exceptions()" "' instead"))) bool uncaught_exception() noexcept __attribute__ ((__pure__)); int uncaught_exceptions() noexcept __attribute__ ((__pure__)); } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 156 "/usr/include/c++/13/exception" 3 void __verbose_terminate_handler(); } } # 1 "/usr/include/c++/13/bits/exception_ptr.h" 1 3 # 35 "/usr/include/c++/13/bits/exception_ptr.h" 3 # 1 "/usr/include/c++/13/bits/exception_defines.h" 1 3 # 36 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 # 1 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 1 3 # 34 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 # 35 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 #pragma GCC visibility push(default) # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 145 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 3 4 typedef long int ptrdiff_t; # 214 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 3 4 typedef long unsigned int size_t; # 425 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 3 4 typedef struct { long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); # 436 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 3 4 } max_align_t; typedef decltype(nullptr) nullptr_t; # 39 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 2 3 # 50 "/usr/include/c++/13/bits/cxxabi_init_exception.h" 3 namespace std { class type_info; } namespace __cxxabiv1 { struct __cxa_refcounted_exception; extern "C" { void* __cxa_allocate_exception(size_t) noexcept; void __cxa_free_exception(void*) noexcept; __cxa_refcounted_exception* __cxa_init_primary_exception(void *__object, std::type_info *__tinfo, void ( *__dest) (void *)) noexcept; } } #pragma GCC visibility pop # 37 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 # 1 "/usr/include/c++/13/typeinfo" 1 3 # 32 "/usr/include/c++/13/typeinfo" 3 # 33 "/usr/include/c++/13/typeinfo" 3 # 1 "/usr/include/c++/13/bits/hash_bytes.h" 1 3 # 33 "/usr/include/c++/13/bits/hash_bytes.h" 3 # 34 "/usr/include/c++/13/bits/hash_bytes.h" 3 namespace std { size_t _Hash_bytes(const void* __ptr, size_t __len, size_t __seed); size_t _Fnv_hash_bytes(const void* __ptr, size_t __len, size_t __seed); } # 37 "/usr/include/c++/13/typeinfo" 2 3 #pragma GCC visibility push(default) extern "C++" { namespace __cxxabiv1 { class __class_type_info; } # 84 "/usr/include/c++/13/typeinfo" 3 namespace std { class type_info { public: virtual ~type_info(); const char* name() const noexcept { return __name[0] == '*' ? __name + 1 : __name; } bool before(const type_info& __arg) const noexcept; bool operator==(const type_info& __arg) const noexcept; size_t hash_code() const noexcept { return _Hash_bytes(name(), __builtin_strlen(name()), static_cast<size_t>(0xc70f6907UL)); } virtual bool __is_pointer_p() const; virtual bool __is_function_p() const; virtual bool __do_catch(const type_info *__thr_type, void **__thr_obj, unsigned __outer) const; virtual bool __do_upcast(const __cxxabiv1::__class_type_info *__target, void **__obj_ptr) const; protected: const char *__name; explicit type_info(const char *__n): __name(__n) { } private: type_info& operator=(const type_info&) = delete; type_info(const type_info&) = delete; # 167 "/usr/include/c++/13/typeinfo" 3 }; inline bool type_info::before(const type_info& __arg) const noexcept { if (__name[0] != '*' || __arg.__name[0] != '*') return __builtin_strcmp (__name, __arg.__name) < 0; # 187 "/usr/include/c++/13/typeinfo" 3 return __name < __arg.__name; } inline bool type_info::operator==(const type_info& __arg) const noexcept { if (std::__is_constant_evaluated()) return this == &__arg; if (__name == __arg.__name) return true; return __name[0] != '*' && __builtin_strcmp (__name, __arg.name()) == 0; } # 220 "/usr/include/c++/13/typeinfo" 3 class bad_cast : public exception { public: bad_cast() noexcept { } virtual ~bad_cast() noexcept; virtual const char* what() const noexcept; }; class bad_typeid : public exception { public: bad_typeid () noexcept { } virtual ~bad_typeid() noexcept; virtual const char* what() const noexcept; }; } } #pragma GCC visibility pop # 38 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 # 1 "/usr/include/c++/13/new" 1 3 # 38 "/usr/include/c++/13/new" 3 # 39 "/usr/include/c++/13/new" 3 #pragma GCC visibility push(default) extern "C++" { namespace std { class bad_alloc : public exception { public: bad_alloc() throw() { } bad_alloc(const bad_alloc&) = default; bad_alloc& operator=(const bad_alloc&) = default; virtual ~bad_alloc() throw(); virtual const char* what() const throw(); }; class bad_array_new_length : public bad_alloc { public: bad_array_new_length() throw() { } virtual ~bad_array_new_length() throw(); virtual const char* what() const throw(); }; enum class align_val_t: size_t {}; struct nothrow_t { explicit nothrow_t() = default; }; extern const nothrow_t nothrow; typedef void (*new_handler)(); new_handler set_new_handler(new_handler) throw(); new_handler get_new_handler() noexcept; } # 126 "/usr/include/c++/13/new" 3 [[__nodiscard__]] void* operator new(std::size_t) __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new[](std::size_t) __attribute__((__externally_visible__)); void operator delete(void*) noexcept __attribute__((__externally_visible__)); void operator delete[](void*) noexcept __attribute__((__externally_visible__)); void operator delete(void*, std::size_t) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, std::size_t) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new(std::size_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); [[__nodiscard__]] void* operator new[](std::size_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); void operator delete(void*, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t) __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); [[__nodiscard__]] void* operator new(std::size_t, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); void operator delete(void*, std::align_val_t) noexcept __attribute__((__externally_visible__)); void operator delete(void*, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t) __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); [[__nodiscard__]] void* operator new[](std::size_t, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__, __alloc_size__ (1), __malloc__)); void operator delete[](void*, std::align_val_t) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, std::align_val_t, const std::nothrow_t&) noexcept __attribute__((__externally_visible__)); void operator delete(void*, std::size_t, std::align_val_t) noexcept __attribute__((__externally_visible__)); void operator delete[](void*, std::size_t, std::align_val_t) noexcept __attribute__((__externally_visible__)); [[__nodiscard__]] inline void* operator new(std::size_t, void* __p) noexcept { return __p; } [[__nodiscard__]] inline void* operator new[](std::size_t, void* __p) noexcept { return __p; } inline void operator delete (void*, void*) noexcept { } inline void operator delete[](void*, void*) noexcept { } } namespace std { template<typename _Tp> [[nodiscard]] constexpr _Tp* launder(_Tp* __p) noexcept { return __builtin_launder(__p); } template<typename _Ret, typename... _Args , bool _NE> void launder(_Ret (*)(_Args...) noexcept (_NE)) = delete; template<typename _Ret, typename... _Args , bool _NE> void launder(_Ret (*)(_Args......) noexcept (_NE)) = delete; void launder(void*) = delete; void launder(const void*) = delete; void launder(volatile void*) = delete; void launder(const volatile void*) = delete; inline constexpr size_t hardware_destructive_interference_size = 64; inline constexpr size_t hardware_constructive_interference_size = 64; } namespace std { struct destroying_delete_t { explicit destroying_delete_t() = default; }; inline constexpr destroying_delete_t destroying_delete{}; } #pragma GCC visibility pop # 39 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 # 1 "/usr/include/c++/13/bits/move.h" 1 3 # 40 "/usr/include/c++/13/bits/move.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> inline constexpr _Tp* __addressof(_Tp& __r) noexcept { return __builtin_addressof(__r); } # 67 "/usr/include/c++/13/bits/move.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type& __t) noexcept { return static_cast<_Tp&&>(__t); } template<typename _Tp> [[__nodiscard__]] constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type&& __t) noexcept { static_assert(!std::is_lvalue_reference<_Tp>::value, "std::forward must not be used to convert an rvalue to an lvalue"); return static_cast<_Tp&&>(__t); } template<typename _Tp> [[__nodiscard__]] constexpr typename std::remove_reference<_Tp>::type&& move(_Tp&& __t) noexcept { return static_cast<typename std::remove_reference<_Tp>::type&&>(__t); } template<typename _Tp> struct __move_if_noexcept_cond : public __and_<__not_<is_nothrow_move_constructible<_Tp>>, is_copy_constructible<_Tp>>::type { }; # 114 "/usr/include/c++/13/bits/move.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp&, _Tp&&> move_if_noexcept(_Tp& __x) noexcept { return std::move(__x); } # 135 "/usr/include/c++/13/bits/move.h" 3 template<typename _Tp> [[__nodiscard__]] inline constexpr _Tp* addressof(_Tp& __r) noexcept { return std::__addressof(__r); } template<typename _Tp> const _Tp* addressof(const _Tp&&) = delete; template <typename _Tp, typename _Up = _Tp> constexpr inline _Tp __exchange(_Tp& __obj, _Up&& __new_val) { _Tp __old_val = std::move(__obj); __obj = std::forward<_Up>(__new_val); return __old_val; } # 179 "/usr/include/c++/13/bits/move.h" 3 template<typename _Tp> constexpr inline typename enable_if<__and_<__not_<__is_tuple_like<_Tp>>, is_move_constructible<_Tp>, is_move_assignable<_Tp>>::value>::type swap(_Tp& __a, _Tp& __b) noexcept(__and_<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>::value) { _Tp __tmp = std::move(__a); __a = std::move(__b); __b = std::move(__tmp); } template<typename _Tp, size_t _Nm> constexpr inline typename enable_if<__is_swappable<_Tp>::value>::type swap(_Tp (&__a)[_Nm], _Tp (&__b)[_Nm]) noexcept(__is_nothrow_swappable<_Tp>::value) { for (size_t __n = 0; __n < _Nm; ++__n) swap(__a[__n], __b[__n]); } } # 42 "/usr/include/c++/13/bits/exception_ptr.h" 2 3 # 50 "/usr/include/c++/13/bits/exception_ptr.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { class type_info; namespace __exception_ptr { class exception_ptr; } using __exception_ptr::exception_ptr; # 75 "/usr/include/c++/13/bits/exception_ptr.h" 3 exception_ptr current_exception() noexcept; template<typename _Ex> exception_ptr make_exception_ptr(_Ex) noexcept; void rethrow_exception(exception_ptr) __attribute__ ((__noreturn__)); namespace __exception_ptr { using std::rethrow_exception; # 97 "/usr/include/c++/13/bits/exception_ptr.h" 3 class exception_ptr { void* _M_exception_object; explicit exception_ptr(void* __e) noexcept; void _M_addref() noexcept; void _M_release() noexcept; void *_M_get() const noexcept __attribute__ ((__pure__)); friend exception_ptr std::current_exception() noexcept; friend void std::rethrow_exception(exception_ptr); template<typename _Ex> friend exception_ptr std::make_exception_ptr(_Ex) noexcept; public: exception_ptr() noexcept; exception_ptr(const exception_ptr&) noexcept; exception_ptr(nullptr_t) noexcept : _M_exception_object(nullptr) { } exception_ptr(exception_ptr&& __o) noexcept : _M_exception_object(__o._M_exception_object) { __o._M_exception_object = nullptr; } # 135 "/usr/include/c++/13/bits/exception_ptr.h" 3 exception_ptr& operator=(const exception_ptr&) noexcept; exception_ptr& operator=(exception_ptr&& __o) noexcept { exception_ptr(static_cast<exception_ptr&&>(__o)).swap(*this); return *this; } ~exception_ptr() noexcept; void swap(exception_ptr&) noexcept; # 162 "/usr/include/c++/13/bits/exception_ptr.h" 3 explicit operator bool() const noexcept { return _M_exception_object; } friend bool operator==(const exception_ptr&, const exception_ptr&) noexcept = default; # 182 "/usr/include/c++/13/bits/exception_ptr.h" 3 const class std::type_info* __cxa_exception_type() const noexcept __attribute__ ((__pure__)); }; inline exception_ptr::exception_ptr() noexcept : _M_exception_object(0) { } inline exception_ptr::exception_ptr(const exception_ptr& __other) noexcept : _M_exception_object(__other._M_exception_object) { if (_M_exception_object) _M_addref(); } inline exception_ptr::~exception_ptr() noexcept { if (_M_exception_object) _M_release(); } inline exception_ptr& exception_ptr::operator=(const exception_ptr& __other) noexcept { exception_ptr(__other).swap(*this); return *this; } inline void exception_ptr::swap(exception_ptr &__other) noexcept { void *__tmp = _M_exception_object; _M_exception_object = __other._M_exception_object; __other._M_exception_object = __tmp; } inline void swap(exception_ptr& __lhs, exception_ptr& __rhs) { __lhs.swap(__rhs); } template<typename _Ex> inline void __dest_thunk(void* __x) { static_cast<_Ex*>(__x)->~_Ex(); } } using __exception_ptr::swap; template<typename _Ex> exception_ptr make_exception_ptr(_Ex __ex) noexcept { using _Ex2 = typename decay<_Ex>::type; void* __e = __cxxabiv1::__cxa_allocate_exception(sizeof(_Ex)); (void) __cxxabiv1::__cxa_init_primary_exception( __e, const_cast<std::type_info*>(&typeid(_Ex)), __exception_ptr::__dest_thunk<_Ex2>); try { ::new (__e) _Ex2(__ex); return exception_ptr(__e); } catch(...) { __cxxabiv1::__cxa_free_exception(__e); return current_exception(); } # 277 "/usr/include/c++/13/bits/exception_ptr.h" 3 } # 291 "/usr/include/c++/13/bits/exception_ptr.h" 3 } } # 165 "/usr/include/c++/13/exception" 2 3 # 1 "/usr/include/c++/13/bits/nested_exception.h" 1 3 # 40 "/usr/include/c++/13/bits/nested_exception.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/13/bits/nested_exception.h" 3 class nested_exception { exception_ptr _M_ptr; public: nested_exception() noexcept : _M_ptr(current_exception()) { } nested_exception(const nested_exception&) noexcept = default; nested_exception& operator=(const nested_exception&) noexcept = default; virtual ~nested_exception() noexcept; [[noreturn]] void rethrow_nested() const { if (_M_ptr) rethrow_exception(_M_ptr); std::terminate(); } exception_ptr nested_ptr() const noexcept { return _M_ptr; } }; template<typename _Except> struct _Nested_exception : public _Except, public nested_exception { explicit _Nested_exception(const _Except& __ex) : _Except(__ex) { } explicit _Nested_exception(_Except&& __ex) : _Except(static_cast<_Except&&>(__ex)) { } }; # 145 "/usr/include/c++/13/bits/nested_exception.h" 3 template<typename _Tp> [[noreturn]] inline void throw_with_nested(_Tp&& __t) { using _Up = typename decay<_Tp>::type; using _CopyConstructible = __and_<is_copy_constructible<_Up>, is_move_constructible<_Up>>; static_assert(_CopyConstructible::value, "throw_with_nested argument must be CopyConstructible"); if constexpr (is_class_v<_Up>) if constexpr (!is_final_v<_Up>) if constexpr (!is_base_of_v<nested_exception, _Up>) throw _Nested_exception<_Up>{std::forward<_Tp>(__t)}; throw std::forward<_Tp>(__t); } # 203 "/usr/include/c++/13/bits/nested_exception.h" 3 template<typename _Ex> inline void rethrow_if_nested(const _Ex& __ex) { const _Ex* __ptr = __builtin_addressof(__ex); # 223 "/usr/include/c++/13/bits/nested_exception.h" 3 if constexpr (!is_polymorphic_v<_Ex>) return; else if constexpr (is_base_of_v<nested_exception, _Ex> && !is_convertible_v<_Ex*, nested_exception*>) return; else if (auto __ne_ptr = dynamic_cast<const nested_exception*>(__ptr)) __ne_ptr->rethrow_nested(); } } } # 166 "/usr/include/c++/13/exception" 2 3 # 39 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/initializer_list" 1 3 # 33 "/usr/include/c++/13/initializer_list" 3 # 34 "/usr/include/c++/13/initializer_list" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<class _E> class initializer_list { public: typedef _E value_type; typedef const _E& reference; typedef const _E& const_reference; typedef size_t size_type; typedef const _E* iterator; typedef const _E* const_iterator; private: iterator _M_array; size_type _M_len; constexpr initializer_list(const_iterator __a, size_type __l) : _M_array(__a), _M_len(__l) { } public: constexpr initializer_list() noexcept : _M_array(0), _M_len(0) { } constexpr size_type size() const noexcept { return _M_len; } constexpr const_iterator begin() const noexcept { return _M_array; } constexpr const_iterator end() const noexcept { return begin() + size(); } }; template<class _Tp> constexpr const _Tp* begin(initializer_list<_Tp> __ils) noexcept { return __ils.begin(); } template<class _Tp> constexpr const _Tp* end(initializer_list<_Tp> __ils) noexcept { return __ils.end(); } } # 41 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/bits/enable_special_members.h" 1 3 # 33 "/usr/include/c++/13/bits/enable_special_members.h" 3 # 34 "/usr/include/c++/13/bits/enable_special_members.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct _Enable_default_constructor_tag { explicit constexpr _Enable_default_constructor_tag() = default; }; template<bool _Switch, typename _Tag = void> struct _Enable_default_constructor { constexpr _Enable_default_constructor() noexcept = default; constexpr _Enable_default_constructor(_Enable_default_constructor const&) noexcept = default; constexpr _Enable_default_constructor(_Enable_default_constructor&&) noexcept = default; _Enable_default_constructor& operator=(_Enable_default_constructor const&) noexcept = default; _Enable_default_constructor& operator=(_Enable_default_constructor&&) noexcept = default; constexpr explicit _Enable_default_constructor(_Enable_default_constructor_tag) { } }; template<bool _Switch, typename _Tag = void> struct _Enable_destructor { }; template<bool _Copy, bool _CopyAssignment, bool _Move, bool _MoveAssignment, typename _Tag = void> struct _Enable_copy_move { }; # 96 "/usr/include/c++/13/bits/enable_special_members.h" 3 template<bool _Default, bool _Destructor, bool _Copy, bool _CopyAssignment, bool _Move, bool _MoveAssignment, typename _Tag = void> struct _Enable_special_members : private _Enable_default_constructor<_Default, _Tag>, private _Enable_destructor<_Destructor, _Tag>, private _Enable_copy_move<_Copy, _CopyAssignment, _Move, _MoveAssignment, _Tag> { }; template<typename _Tag> struct _Enable_default_constructor<false, _Tag> { constexpr _Enable_default_constructor() noexcept = delete; constexpr _Enable_default_constructor(_Enable_default_constructor const&) noexcept = default; constexpr _Enable_default_constructor(_Enable_default_constructor&&) noexcept = default; _Enable_default_constructor& operator=(_Enable_default_constructor const&) noexcept = default; _Enable_default_constructor& operator=(_Enable_default_constructor&&) noexcept = default; constexpr explicit _Enable_default_constructor(_Enable_default_constructor_tag) { } }; template<typename _Tag> struct _Enable_destructor<false, _Tag> { ~_Enable_destructor() noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<false, true, true, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<true, false, true, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<false, false, true, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<true, true, false, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<false, true, false, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<true, false, false, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<false, false, false, true, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = default; }; template<typename _Tag> struct _Enable_copy_move<true, true, true, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<false, true, true, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<true, false, true, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<false, false, true, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<true, true, false, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<false, true, false, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = default; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<true, false, false, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; template<typename _Tag> struct _Enable_copy_move<false, false, false, false, _Tag> { constexpr _Enable_copy_move() noexcept = default; constexpr _Enable_copy_move(_Enable_copy_move const&) noexcept = delete; constexpr _Enable_copy_move(_Enable_copy_move&&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move const&) noexcept = delete; _Enable_copy_move& operator=(_Enable_copy_move&&) noexcept = delete; }; } # 42 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/bits/functional_hash.h" 1 3 # 33 "/usr/include/c++/13/bits/functional_hash.h" 3 # 34 "/usr/include/c++/13/bits/functional_hash.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 50 "/usr/include/c++/13/bits/functional_hash.h" 3 template<typename _Result, typename _Arg> struct __hash_base { typedef _Result result_type [[__deprecated__]]; typedef _Arg argument_type [[__deprecated__]]; }; template<typename _Tp> struct hash; template<typename _Tp, typename = void> struct __poison_hash { static constexpr bool __enable_hash_call = false; private: __poison_hash(__poison_hash&&); ~__poison_hash(); }; template<typename _Tp> struct __poison_hash<_Tp, __void_t<decltype(hash<_Tp>()(declval<_Tp>()))>> { static constexpr bool __enable_hash_call = true; }; template<typename _Tp, bool = is_enum<_Tp>::value> struct __hash_enum { private: __hash_enum(__hash_enum&&); ~__hash_enum(); }; template<typename _Tp> struct __hash_enum<_Tp, true> : public __hash_base<size_t, _Tp> { size_t operator()(_Tp __val) const noexcept { using __type = typename underlying_type<_Tp>::type; return hash<__type>{}(static_cast<__type>(__val)); } }; template<typename _Tp> struct hash : __hash_enum<_Tp> { }; template<typename _Tp> struct hash<_Tp*> : public __hash_base<size_t, _Tp*> { size_t operator()(_Tp* __p) const noexcept { return reinterpret_cast<size_t>(__p); } }; # 125 "/usr/include/c++/13/bits/functional_hash.h" 3 template<> struct hash<bool> : public __hash_base<size_t, bool> { size_t operator()(bool __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<char> : public __hash_base<size_t, char> { size_t operator()(char __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<signed char> : public __hash_base<size_t, signed char> { size_t operator()(signed char __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<unsigned char> : public __hash_base<size_t, unsigned char> { size_t operator()(unsigned char __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<wchar_t> : public __hash_base<size_t, wchar_t> { size_t operator()(wchar_t __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<char8_t> : public __hash_base<size_t, char8_t> { size_t operator()(char8_t __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<char16_t> : public __hash_base<size_t, char16_t> { size_t operator()(char16_t __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<char32_t> : public __hash_base<size_t, char32_t> { size_t operator()(char32_t __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<short> : public __hash_base<size_t, short> { size_t operator()(short __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<int> : public __hash_base<size_t, int> { size_t operator()(int __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<long> : public __hash_base<size_t, long> { size_t operator()(long __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<long long> : public __hash_base<size_t, long long> { size_t operator()(long long __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<unsigned short> : public __hash_base<size_t, unsigned short> { size_t operator()(unsigned short __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<unsigned int> : public __hash_base<size_t, unsigned int> { size_t operator()(unsigned int __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<unsigned long> : public __hash_base<size_t, unsigned long> { size_t operator()(unsigned long __val) const noexcept { return static_cast<size_t>(__val); } }; template<> struct hash<unsigned long long> : public __hash_base<size_t, unsigned long long> { size_t operator()(unsigned long long __val) const noexcept { return static_cast<size_t>(__val); } }; __extension__ template<> struct hash<__int128> : public __hash_base<size_t, __int128> { size_t operator()(__int128 __val) const noexcept { return static_cast<size_t>(__val); } }; __extension__ template<> struct hash<__int128 unsigned> : public __hash_base<size_t, __int128 unsigned> { size_t operator()(__int128 unsigned __val) const noexcept { return static_cast<size_t>(__val); } }; # 201 "/usr/include/c++/13/bits/functional_hash.h" 3 struct _Hash_impl { static size_t hash(const void* __ptr, size_t __clength, size_t __seed = static_cast<size_t>(0xc70f6907UL)) { return _Hash_bytes(__ptr, __clength, __seed); } template<typename _Tp> static size_t hash(const _Tp& __val) { return hash(&__val, sizeof(__val)); } template<typename _Tp> static size_t __hash_combine(const _Tp& __val, size_t __hash) { return hash(&__val, sizeof(__val), __hash); } }; struct _Fnv_hash_impl { static size_t hash(const void* __ptr, size_t __clength, size_t __seed = static_cast<size_t>(2166136261UL)) { return _Fnv_hash_bytes(__ptr, __clength, __seed); } template<typename _Tp> static size_t hash(const _Tp& __val) { return hash(&__val, sizeof(__val)); } template<typename _Tp> static size_t __hash_combine(const _Tp& __val, size_t __hash) { return hash(&__val, sizeof(__val), __hash); } }; template<> struct hash<float> : public __hash_base<size_t, float> { size_t operator()(float __val) const noexcept { return __val != 0.0f ? std::_Hash_impl::hash(__val) : 0; } }; template<> struct hash<double> : public __hash_base<size_t, double> { size_t operator()(double __val) const noexcept { return __val != 0.0 ? std::_Hash_impl::hash(__val) : 0; } }; template<> struct hash<long double> : public __hash_base<size_t, long double> { __attribute__ ((__pure__)) size_t operator()(long double __val) const noexcept; }; template<> struct hash<nullptr_t> : public __hash_base<size_t, nullptr_t> { size_t operator()(nullptr_t) const noexcept { return 0; } }; # 294 "/usr/include/c++/13/bits/functional_hash.h" 3 template<typename _Hash> struct __is_fast_hash : public std::true_type { }; template<> struct __is_fast_hash<hash<long double>> : public std::false_type { }; } # 44 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/bits/stl_construct.h" 1 3 # 61 "/usr/include/c++/13/bits/stl_construct.h" 3 # 1 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 1 3 # 62 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 # 63 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 # 71 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 # 1 "/usr/include/c++/13/bits/iterator_concepts.h" 1 3 # 33 "/usr/include/c++/13/bits/iterator_concepts.h" 3 # 34 "/usr/include/c++/13/bits/iterator_concepts.h" 3 # 1 "/usr/include/c++/13/concepts" 1 3 # 35 "/usr/include/c++/13/concepts" 3 # 36 "/usr/include/c++/13/concepts" 3 # 46 "/usr/include/c++/13/concepts" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template<typename _Tp, typename _Up> concept __same_as = std::is_same_v<_Tp, _Up>; } template<typename _Tp, typename _Up> concept same_as = __detail::__same_as<_Tp, _Up> && __detail::__same_as<_Up, _Tp>; template<typename _Derived, typename _Base> concept derived_from = __is_base_of(_Base, _Derived) && is_convertible_v<const volatile _Derived*, const volatile _Base*>; template<typename _From, typename _To> concept convertible_to = is_convertible_v<_From, _To> && requires { static_cast<_To>(std::declval<_From>()); }; template<typename _Tp, typename _Up> concept common_reference_with = same_as<common_reference_t<_Tp, _Up>, common_reference_t<_Up, _Tp>> && convertible_to<_Tp, common_reference_t<_Tp, _Up>> && convertible_to<_Up, common_reference_t<_Tp, _Up>>; template<typename _Tp, typename _Up> concept common_with = same_as<common_type_t<_Tp, _Up>, common_type_t<_Up, _Tp>> && requires { static_cast<common_type_t<_Tp, _Up>>(std::declval<_Tp>()); static_cast<common_type_t<_Tp, _Up>>(std::declval<_Up>()); } && common_reference_with<add_lvalue_reference_t<const _Tp>, add_lvalue_reference_t<const _Up>> && common_reference_with<add_lvalue_reference_t<common_type_t<_Tp, _Up>>, common_reference_t< add_lvalue_reference_t<const _Tp>, add_lvalue_reference_t<const _Up>>>; template<typename _Tp> concept integral = is_integral_v<_Tp>; template<typename _Tp> concept signed_integral = integral<_Tp> && is_signed_v<_Tp>; template<typename _Tp> concept unsigned_integral = integral<_Tp> && !signed_integral<_Tp>; template<typename _Tp> concept floating_point = is_floating_point_v<_Tp>; namespace __detail { template<typename _Tp> using __cref = const remove_reference_t<_Tp>&; template<typename _Tp> concept __class_or_enum = is_class_v<_Tp> || is_union_v<_Tp> || is_enum_v<_Tp>; template<typename _Tp> constexpr bool __destructible_impl = false; template<typename _Tp> requires requires(_Tp& __t) { { __t.~_Tp() } noexcept; } constexpr bool __destructible_impl<_Tp> = true; template<typename _Tp> constexpr bool __destructible = __destructible_impl<_Tp>; template<typename _Tp> constexpr bool __destructible<_Tp&> = true; template<typename _Tp> constexpr bool __destructible<_Tp&&> = true; template<typename _Tp, size_t _Nm> constexpr bool __destructible<_Tp[_Nm]> = __destructible<_Tp>; } template<typename _Lhs, typename _Rhs> concept assignable_from = is_lvalue_reference_v<_Lhs> && common_reference_with<__detail::__cref<_Lhs>, __detail::__cref<_Rhs>> && requires(_Lhs __lhs, _Rhs&& __rhs) { { __lhs = static_cast<_Rhs&&>(__rhs) } -> same_as<_Lhs>; }; template<typename _Tp> concept destructible = __detail::__destructible<_Tp>; template<typename _Tp, typename... _Args> concept constructible_from = destructible<_Tp> && is_constructible_v<_Tp, _Args...>; template<typename _Tp> concept default_initializable = constructible_from<_Tp> && requires { _Tp{}; (void) ::new _Tp; }; template<typename _Tp> concept move_constructible = constructible_from<_Tp, _Tp> && convertible_to<_Tp, _Tp>; template<typename _Tp> concept copy_constructible = move_constructible<_Tp> && constructible_from<_Tp, _Tp&> && convertible_to<_Tp&, _Tp> && constructible_from<_Tp, const _Tp&> && convertible_to<const _Tp&, _Tp> && constructible_from<_Tp, const _Tp> && convertible_to<const _Tp, _Tp>; namespace ranges { namespace __cust_swap { template<typename _Tp> void swap(_Tp&, _Tp&) = delete; template<typename _Tp, typename _Up> concept __adl_swap = (__detail::__class_or_enum<remove_reference_t<_Tp>> || __detail::__class_or_enum<remove_reference_t<_Up>>) && requires(_Tp&& __t, _Up&& __u) { swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); }; struct _Swap { private: template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (__adl_swap<_Tp, _Up>) return noexcept(swap(std::declval<_Tp>(), std::declval<_Up>())); else return is_nothrow_move_constructible_v<remove_reference_t<_Tp>> && is_nothrow_move_assignable_v<remove_reference_t<_Tp>>; } public: template<typename _Tp, typename _Up> requires __adl_swap<_Tp, _Up> || (same_as<_Tp, _Up> && is_lvalue_reference_v<_Tp> && move_constructible<remove_reference_t<_Tp>> && assignable_from<_Tp, remove_reference_t<_Tp>>) constexpr void operator()(_Tp&& __t, _Up&& __u) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__adl_swap<_Tp, _Up>) swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); else { auto __tmp = static_cast<remove_reference_t<_Tp>&&>(__t); __t = static_cast<remove_reference_t<_Tp>&&>(__u); __u = static_cast<remove_reference_t<_Tp>&&>(__tmp); } } template<typename _Tp, typename _Up, size_t _Num> requires requires(const _Swap& __swap, _Tp& __e1, _Up& __e2) { __swap(__e1, __e2); } constexpr void operator()(_Tp (&__e1)[_Num], _Up (&__e2)[_Num]) const noexcept(noexcept(std::declval<const _Swap&>()(*__e1, *__e2))) { for (size_t __n = 0; __n < _Num; ++__n) (*this)(__e1[__n], __e2[__n]); } }; } inline namespace __cust { inline constexpr __cust_swap::_Swap swap{}; } } template<typename _Tp> concept swappable = requires(_Tp& __a, _Tp& __b) { ranges::swap(__a, __b); }; template<typename _Tp, typename _Up> concept swappable_with = common_reference_with<_Tp, _Up> && requires(_Tp&& __t, _Up&& __u) { ranges::swap(static_cast<_Tp&&>(__t), static_cast<_Tp&&>(__t)); ranges::swap(static_cast<_Up&&>(__u), static_cast<_Up&&>(__u)); ranges::swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); ranges::swap(static_cast<_Up&&>(__u), static_cast<_Tp&&>(__t)); }; template<typename _Tp> concept movable = is_object_v<_Tp> && move_constructible<_Tp> && assignable_from<_Tp&, _Tp> && swappable<_Tp>; template<typename _Tp> concept copyable = copy_constructible<_Tp> && movable<_Tp> && assignable_from<_Tp&, _Tp&> && assignable_from<_Tp&, const _Tp&> && assignable_from<_Tp&, const _Tp>; template<typename _Tp> concept semiregular = copyable<_Tp> && default_initializable<_Tp>; namespace __detail { template<typename _Tp> concept __boolean_testable_impl = convertible_to<_Tp, bool>; template<typename _Tp> concept __boolean_testable = __boolean_testable_impl<_Tp> && requires(_Tp&& __t) { { !static_cast<_Tp&&>(__t) } -> __boolean_testable_impl; }; } namespace __detail { template<typename _Tp, typename _Up> concept __weakly_eq_cmp_with = requires(__detail::__cref<_Tp> __t, __detail::__cref<_Up> __u) { { __t == __u } -> __boolean_testable; { __t != __u } -> __boolean_testable; { __u == __t } -> __boolean_testable; { __u != __t } -> __boolean_testable; }; } template<typename _Tp> concept equality_comparable = __detail::__weakly_eq_cmp_with<_Tp, _Tp>; template<typename _Tp, typename _Up> concept equality_comparable_with = equality_comparable<_Tp> && equality_comparable<_Up> && common_reference_with<__detail::__cref<_Tp>, __detail::__cref<_Up>> && equality_comparable<common_reference_t<__detail::__cref<_Tp>, __detail::__cref<_Up>>> && __detail::__weakly_eq_cmp_with<_Tp, _Up>; namespace __detail { template<typename _Tp, typename _Up> concept __partially_ordered_with = requires(const remove_reference_t<_Tp>& __t, const remove_reference_t<_Up>& __u) { { __t < __u } -> __boolean_testable; { __t > __u } -> __boolean_testable; { __t <= __u } -> __boolean_testable; { __t >= __u } -> __boolean_testable; { __u < __t } -> __boolean_testable; { __u > __t } -> __boolean_testable; { __u <= __t } -> __boolean_testable; { __u >= __t } -> __boolean_testable; }; } template<typename _Tp> concept totally_ordered = equality_comparable<_Tp> && __detail::__partially_ordered_with<_Tp, _Tp>; template<typename _Tp, typename _Up> concept totally_ordered_with = totally_ordered<_Tp> && totally_ordered<_Up> && equality_comparable_with<_Tp, _Up> && totally_ordered<common_reference_t<__detail::__cref<_Tp>, __detail::__cref<_Up>>> && __detail::__partially_ordered_with<_Tp, _Up>; template<typename _Tp> concept regular = semiregular<_Tp> && equality_comparable<_Tp>; template<typename _Fn, typename... _Args> concept invocable = is_invocable_v<_Fn, _Args...>; template<typename _Fn, typename... _Args> concept regular_invocable = invocable<_Fn, _Args...>; template<typename _Fn, typename... _Args> concept predicate = regular_invocable<_Fn, _Args...> && __detail::__boolean_testable<invoke_result_t<_Fn, _Args...>>; template<typename _Rel, typename _Tp, typename _Up> concept relation = predicate<_Rel, _Tp, _Tp> && predicate<_Rel, _Up, _Up> && predicate<_Rel, _Tp, _Up> && predicate<_Rel, _Up, _Tp>; template<typename _Rel, typename _Tp, typename _Up> concept equivalence_relation = relation<_Rel, _Tp, _Up>; template<typename _Rel, typename _Tp, typename _Up> concept strict_weak_order = relation<_Rel, _Tp, _Up>; } # 37 "/usr/include/c++/13/bits/iterator_concepts.h" 2 3 # 1 "/usr/include/c++/13/bits/ptr_traits.h" 1 3 # 46 "/usr/include/c++/13/bits/ptr_traits.h" 3 namespace __gnu_debug { struct _Safe_iterator_base; } namespace std __attribute__ ((__visibility__ ("default"))) { class __undefined; template<typename _Tp> struct __get_first_arg { using type = __undefined; }; template<template<typename, typename...> class _SomeTemplate, typename _Tp, typename... _Types> struct __get_first_arg<_SomeTemplate<_Tp, _Types...>> { using type = _Tp; }; template<typename _Tp, typename _Up> struct __replace_first_arg { }; template<template<typename, typename...> class _SomeTemplate, typename _Up, typename _Tp, typename... _Types> struct __replace_first_arg<_SomeTemplate<_Tp, _Types...>, _Up> { using type = _SomeTemplate<_Up, _Types...>; }; template<typename _Ptr, typename = void> struct __ptr_traits_elem : __get_first_arg<_Ptr> { }; template<typename _Ptr> requires requires { typename _Ptr::element_type; } struct __ptr_traits_elem<_Ptr, void> { using type = typename _Ptr::element_type; }; template<typename _Ptr> using __ptr_traits_elem_t = typename __ptr_traits_elem<_Ptr>::type; template<typename _Ptr, typename _Elt, bool = is_void<_Elt>::value> struct __ptr_traits_ptr_to { using pointer = _Ptr; using element_type = _Elt; static pointer pointer_to(element_type& __r) requires requires { { pointer::pointer_to(__r) } -> convertible_to<pointer>; } { return pointer::pointer_to(__r); } }; template<typename _Ptr, typename _Elt> struct __ptr_traits_ptr_to<_Ptr, _Elt, true> { }; template<typename _Tp> struct __ptr_traits_ptr_to<_Tp*, _Tp, false> { using pointer = _Tp*; using element_type = _Tp; static constexpr pointer pointer_to(element_type& __r) noexcept { return std::addressof(__r); } }; template<typename _Ptr, typename _Elt> struct __ptr_traits_impl : __ptr_traits_ptr_to<_Ptr, _Elt> { private: template<typename _Tp> using __diff_t = typename _Tp::difference_type; template<typename _Tp, typename _Up> using __rebind = __type_identity<typename _Tp::template rebind<_Up>>; public: using pointer = _Ptr; using element_type = _Elt; using difference_type = __detected_or_t<ptrdiff_t, __diff_t, _Ptr>; template<typename _Up> using rebind = typename __detected_or_t<__replace_first_arg<_Ptr, _Up>, __rebind, _Ptr, _Up>::type; }; template<typename _Ptr> struct __ptr_traits_impl<_Ptr, __undefined> { }; template<typename _Ptr> struct pointer_traits : __ptr_traits_impl<_Ptr, __ptr_traits_elem_t<_Ptr>> { }; template<typename _Tp> struct pointer_traits<_Tp*> : __ptr_traits_ptr_to<_Tp*, _Tp> { typedef _Tp* pointer; typedef _Tp element_type; typedef ptrdiff_t difference_type; template<typename _Up> using rebind = _Up*; }; template<typename _Ptr, typename _Tp> using __ptr_rebind = typename pointer_traits<_Ptr>::template rebind<_Tp>; template<typename _Tp> constexpr _Tp* __to_address(_Tp* __ptr) noexcept { static_assert(!std::is_function<_Tp>::value, "not a function pointer"); return __ptr; } template<typename _Ptr> constexpr auto __to_address(const _Ptr& __ptr) noexcept -> decltype(std::pointer_traits<_Ptr>::to_address(__ptr)) { return std::pointer_traits<_Ptr>::to_address(__ptr); } template<typename _Ptr, typename... _None> constexpr auto __to_address(const _Ptr& __ptr, _None...) noexcept { if constexpr (is_base_of_v<__gnu_debug::_Safe_iterator_base, _Ptr>) return std::__to_address(__ptr.base().operator->()); else return std::__to_address(__ptr.operator->()); } # 248 "/usr/include/c++/13/bits/ptr_traits.h" 3 template<typename _Tp> constexpr _Tp* to_address(_Tp* __ptr) noexcept { return std::__to_address(__ptr); } # 260 "/usr/include/c++/13/bits/ptr_traits.h" 3 template<typename _Ptr> constexpr auto to_address(const _Ptr& __ptr) noexcept { return std::__to_address(__ptr); } } # 38 "/usr/include/c++/13/bits/iterator_concepts.h" 2 3 # 1 "/usr/include/c++/13/bits/ranges_cmp.h" 1 3 # 37 "/usr/include/c++/13/bits/ranges_cmp.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __is_transparent; struct identity { template<typename _Tp> [[nodiscard]] constexpr _Tp&& operator()(_Tp&& __t) const noexcept { return std::forward<_Tp>(__t); } using is_transparent = __is_transparent; }; # 66 "/usr/include/c++/13/bits/ranges_cmp.h" 3 namespace ranges { namespace __detail { template<typename _Tp, typename _Up> concept __less_builtin_ptr_cmp = requires (_Tp&& __t, _Up&& __u) { { __t < __u } -> same_as<bool>; } && convertible_to<_Tp, const volatile void*> && convertible_to<_Up, const volatile void*> && (! requires(_Tp&& __t, _Up&& __u) { operator<(std::forward<_Tp>(__t), std::forward<_Up>(__u)); } && ! requires(_Tp&& __t, _Up&& __u) { std::forward<_Tp>(__t).operator<(std::forward<_Up>(__u)); }); } struct equal_to { template<typename _Tp, typename _Up> requires equality_comparable_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() == std::declval<_Up>())) { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } using is_transparent = __is_transparent; }; struct not_equal_to { template<typename _Tp, typename _Up> requires equality_comparable_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Up>() == std::declval<_Tp>())) { return !equal_to{}(std::forward<_Tp>(__t), std::forward<_Up>(__u)); } using is_transparent = __is_transparent; }; struct less { template<typename _Tp, typename _Up> requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() < std::declval<_Up>())) { if constexpr (__detail::__less_builtin_ptr_cmp<_Tp, _Up>) { if (std::__is_constant_evaluated()) return __t < __u; auto __x = reinterpret_cast<long unsigned int>( static_cast<const volatile void*>(std::forward<_Tp>(__t))); auto __y = reinterpret_cast<long unsigned int>( static_cast<const volatile void*>(std::forward<_Up>(__u))); return __x < __y; } else return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } using is_transparent = __is_transparent; }; struct greater { template<typename _Tp, typename _Up> requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Up>() < std::declval<_Tp>())) { return less{}(std::forward<_Up>(__u), std::forward<_Tp>(__t)); } using is_transparent = __is_transparent; }; struct greater_equal { template<typename _Tp, typename _Up> requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() < std::declval<_Up>())) { return !less{}(std::forward<_Tp>(__t), std::forward<_Up>(__u)); } using is_transparent = __is_transparent; }; struct less_equal { template<typename _Tp, typename _Up> requires totally_ordered_with<_Tp, _Up> constexpr bool operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Up>() < std::declval<_Tp>())) { return !less{}(std::forward<_Up>(__u), std::forward<_Tp>(__t)); } using is_transparent = __is_transparent; }; } } # 39 "/usr/include/c++/13/bits/iterator_concepts.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 58 "/usr/include/c++/13/bits/iterator_concepts.h" 3 struct default_sentinel_t { }; inline constexpr default_sentinel_t default_sentinel{}; struct input_iterator_tag; struct output_iterator_tag; struct forward_iterator_tag; struct bidirectional_iterator_tag; struct random_access_iterator_tag; struct contiguous_iterator_tag; template<typename _Iterator> struct iterator_traits; template<typename _Tp> requires is_object_v<_Tp> struct iterator_traits<_Tp*>; template<typename _Iterator, typename> struct __iterator_traits; namespace __detail { template<typename _Tp> using __with_ref = _Tp&; template<typename _Tp> concept __can_reference = requires { typename __with_ref<_Tp>; }; template<typename _Tp> concept __dereferenceable = requires(_Tp& __t) { { *__t } -> __can_reference; }; } template<__detail::__dereferenceable _Tp> using iter_reference_t = decltype(*std::declval<_Tp&>()); namespace ranges { namespace __cust_imove { void iter_move(); template<typename _Tp> concept __adl_imove = (std::__detail::__class_or_enum<remove_reference_t<_Tp>>) && requires(_Tp&& __t) { iter_move(static_cast<_Tp&&>(__t)); }; struct _IMove { private: template<typename _Tp> struct __result { using type = iter_reference_t<_Tp>; }; template<typename _Tp> requires __adl_imove<_Tp> struct __result<_Tp> { using type = decltype(iter_move(std::declval<_Tp>())); }; template<typename _Tp> requires (!__adl_imove<_Tp>) && is_lvalue_reference_v<iter_reference_t<_Tp>> struct __result<_Tp> { using type = remove_reference_t<iter_reference_t<_Tp>>&&; }; template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (__adl_imove<_Tp>) return noexcept(iter_move(std::declval<_Tp>())); else return noexcept(*std::declval<_Tp>()); } public: template<std::__detail::__dereferenceable _Tp> using __type = typename __result<_Tp>::type; template<std::__detail::__dereferenceable _Tp> [[nodiscard]] constexpr __type<_Tp> operator()(_Tp&& __e) const noexcept(_S_noexcept<_Tp>()) { if constexpr (__adl_imove<_Tp>) return iter_move(static_cast<_Tp&&>(__e)); else if constexpr (is_lvalue_reference_v<iter_reference_t<_Tp>>) return static_cast<__type<_Tp>>(*__e); else return *__e; } }; } inline namespace __cust { inline constexpr __cust_imove::_IMove iter_move{}; } } template<__detail::__dereferenceable _Tp> requires __detail:: __can_reference<ranges::__cust_imove::_IMove::__type<_Tp&>> using iter_rvalue_reference_t = ranges::__cust_imove::_IMove::__type<_Tp&>; template<typename> struct incrementable_traits { }; template<typename _Tp> requires is_object_v<_Tp> struct incrementable_traits<_Tp*> { using difference_type = ptrdiff_t; }; template<typename _Iter> struct incrementable_traits<const _Iter> : incrementable_traits<_Iter> { }; template<typename _Tp> requires requires { typename _Tp::difference_type; } struct incrementable_traits<_Tp> { using difference_type = typename _Tp::difference_type; }; template<typename _Tp> requires (!requires { typename _Tp::difference_type; } && requires(const _Tp& __a, const _Tp& __b) { { __a - __b } -> integral; }) struct incrementable_traits<_Tp> { using difference_type = make_signed_t<decltype(std::declval<_Tp>() - std::declval<_Tp>())>; }; # 205 "/usr/include/c++/13/bits/iterator_concepts.h" 3 namespace __detail { template<typename _Iter> concept __primary_traits_iter = __is_base_of(__iterator_traits<_Iter, void>, iterator_traits<_Iter>); template<typename _Iter, typename _Tp> struct __iter_traits_impl { using type = iterator_traits<_Iter>; }; template<typename _Iter, typename _Tp> requires __primary_traits_iter<_Iter> struct __iter_traits_impl<_Iter, _Tp> { using type = _Tp; }; template<typename _Iter, typename _Tp = _Iter> using __iter_traits = typename __iter_traits_impl<_Iter, _Tp>::type; template<typename _Tp> using __iter_diff_t = typename __iter_traits<_Tp, incrementable_traits<_Tp>>::difference_type; } template<typename _Tp> using iter_difference_t = __detail::__iter_diff_t<remove_cvref_t<_Tp>>; namespace __detail { template<typename> struct __cond_value_type { }; template<typename _Tp> requires is_object_v<_Tp> struct __cond_value_type<_Tp> { using value_type = remove_cv_t<_Tp>; }; template<typename _Tp> concept __has_member_value_type = requires { typename _Tp::value_type; }; template<typename _Tp> concept __has_member_element_type = requires { typename _Tp::element_type; }; } template<typename> struct indirectly_readable_traits { }; template<typename _Tp> struct indirectly_readable_traits<_Tp*> : __detail::__cond_value_type<_Tp> { }; template<typename _Iter> requires is_array_v<_Iter> struct indirectly_readable_traits<_Iter> { using value_type = remove_cv_t<remove_extent_t<_Iter>>; }; template<typename _Iter> struct indirectly_readable_traits<const _Iter> : indirectly_readable_traits<_Iter> { }; template<__detail::__has_member_value_type _Tp> struct indirectly_readable_traits<_Tp> : __detail::__cond_value_type<typename _Tp::value_type> { }; template<__detail::__has_member_element_type _Tp> struct indirectly_readable_traits<_Tp> : __detail::__cond_value_type<typename _Tp::element_type> { }; template<__detail::__has_member_value_type _Tp> requires __detail::__has_member_element_type<_Tp> && same_as<remove_cv_t<typename _Tp::element_type>, remove_cv_t<typename _Tp::value_type>> struct indirectly_readable_traits<_Tp> : __detail::__cond_value_type<typename _Tp::value_type> { }; template<__detail::__has_member_value_type _Tp> requires __detail::__has_member_element_type<_Tp> struct indirectly_readable_traits<_Tp> { }; namespace __detail { template<typename _Tp> using __iter_value_t = typename __iter_traits<_Tp, indirectly_readable_traits<_Tp>>::value_type; } template<typename _Tp> using iter_value_t = __detail::__iter_value_t<remove_cvref_t<_Tp>>; namespace __detail { template<typename _Iter> concept __cpp17_iterator = requires(_Iter __it) { { *__it } -> __can_reference; { ++__it } -> same_as<_Iter&>; { *__it++ } -> __can_reference; } && copyable<_Iter>; template<typename _Iter> concept __cpp17_input_iterator = __cpp17_iterator<_Iter> && equality_comparable<_Iter> && requires(_Iter __it) { typename incrementable_traits<_Iter>::difference_type; typename indirectly_readable_traits<_Iter>::value_type; typename common_reference_t<iter_reference_t<_Iter>&&, typename indirectly_readable_traits<_Iter>::value_type&>; typename common_reference_t<decltype(*__it++)&&, typename indirectly_readable_traits<_Iter>::value_type&>; requires signed_integral< typename incrementable_traits<_Iter>::difference_type>; }; template<typename _Iter> concept __cpp17_fwd_iterator = __cpp17_input_iterator<_Iter> && constructible_from<_Iter> && is_lvalue_reference_v<iter_reference_t<_Iter>> && same_as<remove_cvref_t<iter_reference_t<_Iter>>, typename indirectly_readable_traits<_Iter>::value_type> && requires(_Iter __it) { { __it++ } -> convertible_to<const _Iter&>; { *__it++ } -> same_as<iter_reference_t<_Iter>>; }; template<typename _Iter> concept __cpp17_bidi_iterator = __cpp17_fwd_iterator<_Iter> && requires(_Iter __it) { { --__it } -> same_as<_Iter&>; { __it-- } -> convertible_to<const _Iter&>; { *__it-- } -> same_as<iter_reference_t<_Iter>>; }; template<typename _Iter> concept __cpp17_randacc_iterator = __cpp17_bidi_iterator<_Iter> && totally_ordered<_Iter> && requires(_Iter __it, typename incrementable_traits<_Iter>::difference_type __n) { { __it += __n } -> same_as<_Iter&>; { __it -= __n } -> same_as<_Iter&>; { __it + __n } -> same_as<_Iter>; { __n + __it } -> same_as<_Iter>; { __it - __n } -> same_as<_Iter>; { __it - __it } -> same_as<decltype(__n)>; { __it[__n] } -> convertible_to<iter_reference_t<_Iter>>; }; template<typename _Iter> concept __iter_with_nested_types = requires { typename _Iter::iterator_category; typename _Iter::value_type; typename _Iter::difference_type; typename _Iter::reference; }; template<typename _Iter> concept __iter_without_nested_types = !__iter_with_nested_types<_Iter>; template<typename _Iter> concept __iter_without_category = !requires { typename _Iter::iterator_category; }; } template<typename _Iterator> requires __detail::__iter_with_nested_types<_Iterator> struct __iterator_traits<_Iterator, void> { private: template<typename _Iter> struct __ptr { using type = void; }; template<typename _Iter> requires requires { typename _Iter::pointer; } struct __ptr<_Iter> { using type = typename _Iter::pointer; }; public: using iterator_category = typename _Iterator::iterator_category; using value_type = typename _Iterator::value_type; using difference_type = typename _Iterator::difference_type; using pointer = typename __ptr<_Iterator>::type; using reference = typename _Iterator::reference; }; template<typename _Iterator> requires __detail::__iter_without_nested_types<_Iterator> && __detail::__cpp17_input_iterator<_Iterator> struct __iterator_traits<_Iterator, void> { private: template<typename _Iter> struct __cat { using type = input_iterator_tag; }; template<typename _Iter> requires requires { typename _Iter::iterator_category; } struct __cat<_Iter> { using type = typename _Iter::iterator_category; }; template<typename _Iter> requires __detail::__iter_without_category<_Iter> && __detail::__cpp17_randacc_iterator<_Iter> struct __cat<_Iter> { using type = random_access_iterator_tag; }; template<typename _Iter> requires __detail::__iter_without_category<_Iter> && __detail::__cpp17_bidi_iterator<_Iter> struct __cat<_Iter> { using type = bidirectional_iterator_tag; }; template<typename _Iter> requires __detail::__iter_without_category<_Iter> && __detail::__cpp17_fwd_iterator<_Iter> struct __cat<_Iter> { using type = forward_iterator_tag; }; template<typename _Iter> struct __ptr { using type = void; }; template<typename _Iter> requires requires { typename _Iter::pointer; } struct __ptr<_Iter> { using type = typename _Iter::pointer; }; template<typename _Iter> requires (!requires { typename _Iter::pointer; } && requires(_Iter& __it) { __it.operator->(); }) struct __ptr<_Iter> { using type = decltype(std::declval<_Iter&>().operator->()); }; template<typename _Iter> struct __ref { using type = iter_reference_t<_Iter>; }; template<typename _Iter> requires requires { typename _Iter::reference; } struct __ref<_Iter> { using type = typename _Iter::reference; }; public: using iterator_category = typename __cat<_Iterator>::type; using value_type = typename indirectly_readable_traits<_Iterator>::value_type; using difference_type = typename incrementable_traits<_Iterator>::difference_type; using pointer = typename __ptr<_Iterator>::type; using reference = typename __ref<_Iterator>::type; }; template<typename _Iterator> requires __detail::__iter_without_nested_types<_Iterator> && __detail::__cpp17_iterator<_Iterator> struct __iterator_traits<_Iterator, void> { private: template<typename _Iter> struct __diff { using type = void; }; template<typename _Iter> requires requires { typename incrementable_traits<_Iter>::difference_type; } struct __diff<_Iter> { using type = typename incrementable_traits<_Iter>::difference_type; }; public: using iterator_category = output_iterator_tag; using value_type = void; using difference_type = typename __diff<_Iterator>::type; using pointer = void; using reference = void; }; namespace __detail { template<typename _Iter> struct __iter_concept_impl; template<typename _Iter> requires requires { typename __iter_traits<_Iter>::iterator_concept; } struct __iter_concept_impl<_Iter> { using type = typename __iter_traits<_Iter>::iterator_concept; }; template<typename _Iter> requires (!requires { typename __iter_traits<_Iter>::iterator_concept; } && requires { typename __iter_traits<_Iter>::iterator_category; }) struct __iter_concept_impl<_Iter> { using type = typename __iter_traits<_Iter>::iterator_category; }; template<typename _Iter> requires (!requires { typename __iter_traits<_Iter>::iterator_concept; } && !requires { typename __iter_traits<_Iter>::iterator_category; } && __primary_traits_iter<_Iter>) struct __iter_concept_impl<_Iter> { using type = random_access_iterator_tag; }; template<typename _Iter> struct __iter_concept_impl { }; template<typename _Iter> using __iter_concept = typename __iter_concept_impl<_Iter>::type; template<typename _In> concept __indirectly_readable_impl = requires { typename iter_value_t<_In>; typename iter_reference_t<_In>; typename iter_rvalue_reference_t<_In>; requires same_as<iter_reference_t<const _In>, iter_reference_t<_In>>; requires same_as<iter_rvalue_reference_t<const _In>, iter_rvalue_reference_t<_In>>; } && common_reference_with<iter_reference_t<_In>&&, iter_value_t<_In>&> && common_reference_with<iter_reference_t<_In>&&, iter_rvalue_reference_t<_In>&&> && common_reference_with<iter_rvalue_reference_t<_In>&&, const iter_value_t<_In>&>; } template<typename _In> concept indirectly_readable = __detail::__indirectly_readable_impl<remove_cvref_t<_In>>; template<indirectly_readable _Tp> using iter_common_reference_t = common_reference_t<iter_reference_t<_Tp>, iter_value_t<_Tp>&>; template<typename _Out, typename _Tp> concept indirectly_writable = requires(_Out&& __o, _Tp&& __t) { *__o = std::forward<_Tp>(__t); *std::forward<_Out>(__o) = std::forward<_Tp>(__t); const_cast<const iter_reference_t<_Out>&&>(*__o) = std::forward<_Tp>(__t); const_cast<const iter_reference_t<_Out>&&>(*std::forward<_Out>(__o)) = std::forward<_Tp>(__t); }; namespace ranges::__detail { class __max_diff_type; class __max_size_type; __extension__ template<typename _Tp> concept __is_signed_int128 = same_as<_Tp, __int128>; __extension__ template<typename _Tp> concept __is_unsigned_int128 = same_as<_Tp, unsigned __int128>; template<typename _Tp> concept __cv_bool = same_as<const volatile _Tp, const volatile bool>; template<typename _Tp> concept __integral_nonbool = integral<_Tp> && !__cv_bool<_Tp>; template<typename _Tp> concept __is_int128 = __is_signed_int128<_Tp> || __is_unsigned_int128<_Tp>; template<typename _Tp> concept __is_integer_like = __integral_nonbool<_Tp> || __is_int128<_Tp> || same_as<_Tp, __max_diff_type> || same_as<_Tp, __max_size_type>; template<typename _Tp> concept __is_signed_integer_like = signed_integral<_Tp> || __is_signed_int128<_Tp> || same_as<_Tp, __max_diff_type>; } namespace __detail { using ranges::__detail::__is_signed_integer_like; } template<typename _Iter> concept weakly_incrementable = movable<_Iter> && requires(_Iter __i) { typename iter_difference_t<_Iter>; requires __detail::__is_signed_integer_like<iter_difference_t<_Iter>>; { ++__i } -> same_as<_Iter&>; __i++; }; template<typename _Iter> concept incrementable = regular<_Iter> && weakly_incrementable<_Iter> && requires(_Iter __i) { { __i++ } -> same_as<_Iter>; }; template<typename _Iter> concept input_or_output_iterator = requires(_Iter __i) { { *__i } -> __detail::__can_reference; } && weakly_incrementable<_Iter>; template<typename _Sent, typename _Iter> concept sentinel_for = semiregular<_Sent> && input_or_output_iterator<_Iter> && __detail::__weakly_eq_cmp_with<_Sent, _Iter>; template<typename _Sent, typename _Iter> inline constexpr bool disable_sized_sentinel_for = false; template<typename _Sent, typename _Iter> concept sized_sentinel_for = sentinel_for<_Sent, _Iter> && !disable_sized_sentinel_for<remove_cv_t<_Sent>, remove_cv_t<_Iter>> && requires(const _Iter& __i, const _Sent& __s) { { __s - __i } -> same_as<iter_difference_t<_Iter>>; { __i - __s } -> same_as<iter_difference_t<_Iter>>; }; template<typename _Iter> concept input_iterator = input_or_output_iterator<_Iter> && indirectly_readable<_Iter> && requires { typename __detail::__iter_concept<_Iter>; } && derived_from<__detail::__iter_concept<_Iter>, input_iterator_tag>; template<typename _Iter, typename _Tp> concept output_iterator = input_or_output_iterator<_Iter> && indirectly_writable<_Iter, _Tp> && requires(_Iter __i, _Tp&& __t) { *__i++ = std::forward<_Tp>(__t); }; template<typename _Iter> concept forward_iterator = input_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, forward_iterator_tag> && incrementable<_Iter> && sentinel_for<_Iter, _Iter>; template<typename _Iter> concept bidirectional_iterator = forward_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, bidirectional_iterator_tag> && requires(_Iter __i) { { --__i } -> same_as<_Iter&>; { __i-- } -> same_as<_Iter>; }; template<typename _Iter> concept random_access_iterator = bidirectional_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, random_access_iterator_tag> && totally_ordered<_Iter> && sized_sentinel_for<_Iter, _Iter> && requires(_Iter __i, const _Iter __j, const iter_difference_t<_Iter> __n) { { __i += __n } -> same_as<_Iter&>; { __j + __n } -> same_as<_Iter>; { __n + __j } -> same_as<_Iter>; { __i -= __n } -> same_as<_Iter&>; { __j - __n } -> same_as<_Iter>; { __j[__n] } -> same_as<iter_reference_t<_Iter>>; }; template<typename _Iter> concept contiguous_iterator = random_access_iterator<_Iter> && derived_from<__detail::__iter_concept<_Iter>, contiguous_iterator_tag> && is_lvalue_reference_v<iter_reference_t<_Iter>> && same_as<iter_value_t<_Iter>, remove_cvref_t<iter_reference_t<_Iter>>> && requires(const _Iter& __i) { { std::to_address(__i) } -> same_as<add_pointer_t<iter_reference_t<_Iter>>>; }; template<typename _Fn, typename _Iter> concept indirectly_unary_invocable = indirectly_readable<_Iter> && copy_constructible<_Fn> && invocable<_Fn&, iter_value_t<_Iter>&> && invocable<_Fn&, iter_reference_t<_Iter>> && invocable<_Fn&, iter_common_reference_t<_Iter>> && common_reference_with<invoke_result_t<_Fn&, iter_value_t<_Iter>&>, invoke_result_t<_Fn&, iter_reference_t<_Iter>>>; template<typename _Fn, typename _Iter> concept indirectly_regular_unary_invocable = indirectly_readable<_Iter> && copy_constructible<_Fn> && regular_invocable<_Fn&, iter_value_t<_Iter>&> && regular_invocable<_Fn&, iter_reference_t<_Iter>> && regular_invocable<_Fn&, iter_common_reference_t<_Iter>> && common_reference_with<invoke_result_t<_Fn&, iter_value_t<_Iter>&>, invoke_result_t<_Fn&, iter_reference_t<_Iter>>>; template<typename _Fn, typename _Iter> concept indirect_unary_predicate = indirectly_readable<_Iter> && copy_constructible<_Fn> && predicate<_Fn&, iter_value_t<_Iter>&> && predicate<_Fn&, iter_reference_t<_Iter>> && predicate<_Fn&, iter_common_reference_t<_Iter>>; template<typename _Fn, typename _I1, typename _I2> concept indirect_binary_predicate = indirectly_readable<_I1> && indirectly_readable<_I2> && copy_constructible<_Fn> && predicate<_Fn&, iter_value_t<_I1>&, iter_value_t<_I2>&> && predicate<_Fn&, iter_value_t<_I1>&, iter_reference_t<_I2>> && predicate<_Fn&, iter_reference_t<_I1>, iter_value_t<_I2>&> && predicate<_Fn&, iter_reference_t<_I1>, iter_reference_t<_I2>> && predicate<_Fn&, iter_common_reference_t<_I1>, iter_common_reference_t<_I2>>; template<typename _Fn, typename _I1, typename _I2 = _I1> concept indirect_equivalence_relation = indirectly_readable<_I1> && indirectly_readable<_I2> && copy_constructible<_Fn> && equivalence_relation<_Fn&, iter_value_t<_I1>&, iter_value_t<_I2>&> && equivalence_relation<_Fn&, iter_value_t<_I1>&, iter_reference_t<_I2>> && equivalence_relation<_Fn&, iter_reference_t<_I1>, iter_value_t<_I2>&> && equivalence_relation<_Fn&, iter_reference_t<_I1>, iter_reference_t<_I2>> && equivalence_relation<_Fn&, iter_common_reference_t<_I1>, iter_common_reference_t<_I2>>; template<typename _Fn, typename _I1, typename _I2 = _I1> concept indirect_strict_weak_order = indirectly_readable<_I1> && indirectly_readable<_I2> && copy_constructible<_Fn> && strict_weak_order<_Fn&, iter_value_t<_I1>&, iter_value_t<_I2>&> && strict_weak_order<_Fn&, iter_value_t<_I1>&, iter_reference_t<_I2>> && strict_weak_order<_Fn&, iter_reference_t<_I1>, iter_value_t<_I2>&> && strict_weak_order<_Fn&, iter_reference_t<_I1>, iter_reference_t<_I2>> && strict_weak_order<_Fn&, iter_common_reference_t<_I1>, iter_common_reference_t<_I2>>; template<typename _Fn, typename... _Is> requires (indirectly_readable<_Is> && ...) && invocable<_Fn, iter_reference_t<_Is>...> using indirect_result_t = invoke_result_t<_Fn, iter_reference_t<_Is>...>; template<indirectly_readable _Iter, indirectly_regular_unary_invocable<_Iter> _Proj> struct projected { using value_type = remove_cvref_t<indirect_result_t<_Proj&, _Iter>>; indirect_result_t<_Proj&, _Iter> operator*() const; }; template<weakly_incrementable _Iter, typename _Proj> struct incrementable_traits<projected<_Iter, _Proj>> { using difference_type = iter_difference_t<_Iter>; }; template<typename _In, typename _Out> concept indirectly_movable = indirectly_readable<_In> && indirectly_writable<_Out, iter_rvalue_reference_t<_In>>; template<typename _In, typename _Out> concept indirectly_movable_storable = indirectly_movable<_In, _Out> && indirectly_writable<_Out, iter_value_t<_In>> && movable<iter_value_t<_In>> && constructible_from<iter_value_t<_In>, iter_rvalue_reference_t<_In>> && assignable_from<iter_value_t<_In>&, iter_rvalue_reference_t<_In>>; template<typename _In, typename _Out> concept indirectly_copyable = indirectly_readable<_In> && indirectly_writable<_Out, iter_reference_t<_In>>; template<typename _In, typename _Out> concept indirectly_copyable_storable = indirectly_copyable<_In, _Out> && indirectly_writable<_Out, iter_value_t<_In>&> && indirectly_writable<_Out, const iter_value_t<_In>&> && indirectly_writable<_Out, iter_value_t<_In>&&> && indirectly_writable<_Out, const iter_value_t<_In>&&> && copyable<iter_value_t<_In>> && constructible_from<iter_value_t<_In>, iter_reference_t<_In>> && assignable_from<iter_value_t<_In>&, iter_reference_t<_In>>; namespace ranges { namespace __cust_iswap { template<typename _It1, typename _It2> void iter_swap(_It1, _It2) = delete; template<typename _Tp, typename _Up> concept __adl_iswap = (std::__detail::__class_or_enum<remove_reference_t<_Tp>> || std::__detail::__class_or_enum<remove_reference_t<_Up>>) && requires(_Tp&& __t, _Up&& __u) { iter_swap(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); }; template<typename _Xp, typename _Yp> constexpr iter_value_t<_Xp> __iter_exchange_move(_Xp&& __x, _Yp&& __y) noexcept(noexcept(iter_value_t<_Xp>(iter_move(__x))) && noexcept(*__x = iter_move(__y))) { iter_value_t<_Xp> __old_value(iter_move(__x)); *__x = iter_move(__y); return __old_value; } struct _IterSwap { private: template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (__adl_iswap<_Tp, _Up>) return noexcept(iter_swap(std::declval<_Tp>(), std::declval<_Up>())); else if constexpr (indirectly_readable<_Tp> && indirectly_readable<_Up> && swappable_with<iter_reference_t<_Tp>, iter_reference_t<_Up>>) return noexcept(ranges::swap(*std::declval<_Tp>(), *std::declval<_Up>())); else return noexcept(*std::declval<_Tp>() = __iter_exchange_move(std::declval<_Up>(), std::declval<_Tp>())); } public: template<typename _Tp, typename _Up> requires __adl_iswap<_Tp, _Up> || (indirectly_readable<remove_reference_t<_Tp>> && indirectly_readable<remove_reference_t<_Up>> && swappable_with<iter_reference_t<_Tp>, iter_reference_t<_Up>>) || (indirectly_movable_storable<_Tp, _Up> && indirectly_movable_storable<_Up, _Tp>) constexpr void operator()(_Tp&& __e1, _Up&& __e2) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__adl_iswap<_Tp, _Up>) iter_swap(static_cast<_Tp&&>(__e1), static_cast<_Up&&>(__e2)); else if constexpr (indirectly_readable<_Tp> && indirectly_readable<_Up> && swappable_with<iter_reference_t<_Tp>, iter_reference_t<_Up>>) ranges::swap(*__e1, *__e2); else *__e1 = __iter_exchange_move(__e2, __e1); } }; } inline namespace __cust { inline constexpr __cust_iswap::_IterSwap iter_swap{}; } } template<typename _I1, typename _I2 = _I1> concept indirectly_swappable = indirectly_readable<_I1> && indirectly_readable<_I2> && requires(const _I1 __i1, const _I2 __i2) { ranges::iter_swap(__i1, __i1); ranges::iter_swap(__i2, __i2); ranges::iter_swap(__i1, __i2); ranges::iter_swap(__i2, __i1); }; template<typename _I1, typename _I2, typename _Rel, typename _P1 = identity, typename _P2 = identity> concept indirectly_comparable = indirect_binary_predicate<_Rel, projected<_I1, _P1>, projected<_I2, _P2>>; template<typename _Iter> concept permutable = forward_iterator<_Iter> && indirectly_movable_storable<_Iter, _Iter> && indirectly_swappable<_Iter, _Iter>; template<typename _I1, typename _I2, typename _Out, typename _Rel = ranges::less, typename _P1 = identity, typename _P2 = identity> concept mergeable = input_iterator<_I1> && input_iterator<_I2> && weakly_incrementable<_Out> && indirectly_copyable<_I1, _Out> && indirectly_copyable<_I2, _Out> && indirect_strict_weak_order<_Rel, projected<_I1, _P1>, projected<_I2, _P2>>; template<typename _Iter, typename _Rel = ranges::less, typename _Proj = identity> concept sortable = permutable<_Iter> && indirect_strict_weak_order<_Rel, projected<_Iter, _Proj>>; struct unreachable_sentinel_t { template<weakly_incrementable _It> friend constexpr bool operator==(unreachable_sentinel_t, const _It&) noexcept { return false; } }; inline constexpr unreachable_sentinel_t unreachable_sentinel{}; namespace ranges::__cust_access { using std::__detail::__class_or_enum; struct _Decay_copy final { template<typename _Tp> constexpr decay_t<_Tp> operator()(_Tp&& __t) const noexcept(is_nothrow_convertible_v<_Tp, decay_t<_Tp>>) { return std::forward<_Tp>(__t); } } inline constexpr __decay_copy{}; template<typename _Tp> concept __member_begin = requires(_Tp& __t) { { __decay_copy(__t.begin()) } -> input_or_output_iterator; }; void begin(auto&) = delete; void begin(const auto&) = delete; template<typename _Tp> concept __adl_begin = __class_or_enum<remove_reference_t<_Tp>> && requires(_Tp& __t) { { __decay_copy(begin(__t)) } -> input_or_output_iterator; }; template<typename _Tp> requires is_array_v<_Tp> || __member_begin<_Tp&> || __adl_begin<_Tp&> auto __begin(_Tp& __t) { if constexpr (is_array_v<_Tp>) return __t + 0; else if constexpr (__member_begin<_Tp&>) return __t.begin(); else return begin(__t); } } namespace __detail { template<typename _Tp> using __range_iter_t = decltype(ranges::__cust_access::__begin(std::declval<_Tp&>())); } } # 72 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 93 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 struct input_iterator_tag { }; struct output_iterator_tag { }; struct forward_iterator_tag : public input_iterator_tag { }; struct bidirectional_iterator_tag : public forward_iterator_tag { }; struct random_access_iterator_tag : public bidirectional_iterator_tag { }; struct contiguous_iterator_tag : public random_access_iterator_tag { }; # 125 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 template<typename _Category, typename _Tp, typename _Distance = ptrdiff_t, typename _Pointer = _Tp*, typename _Reference = _Tp&> struct [[__deprecated__]] iterator { typedef _Category iterator_category; typedef _Tp value_type; typedef _Distance difference_type; typedef _Pointer pointer; typedef _Reference reference; }; # 149 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 template<typename _Iterator> struct iterator_traits; template<typename _Iterator, typename = __void_t<>> struct __iterator_traits { }; # 176 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 template<typename _Iterator> struct iterator_traits : public __iterator_traits<_Iterator> { }; # 194 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 template<typename _Tp> requires is_object_v<_Tp> struct iterator_traits<_Tp*> { using iterator_concept = contiguous_iterator_tag; using iterator_category = random_access_iterator_tag; using value_type = remove_cv_t<_Tp>; using difference_type = ptrdiff_t; using pointer = _Tp*; using reference = _Tp&; }; # 235 "/usr/include/c++/13/bits/stl_iterator_base_types.h" 3 template<typename _Iter> __attribute__((__always_inline__)) inline constexpr typename iterator_traits<_Iter>::iterator_category __iterator_category(const _Iter&) { return typename iterator_traits<_Iter>::iterator_category(); } template<typename _Iter> using __iterator_category_t = typename iterator_traits<_Iter>::iterator_category; template<typename _InIter> using _RequireInputIter = __enable_if_t<is_convertible<__iterator_category_t<_InIter>, input_iterator_tag>::value>; template<typename _It, typename _Cat = __iterator_category_t<_It>> struct __is_random_access_iter : is_base_of<random_access_iterator_tag, _Cat> { typedef is_base_of<random_access_iterator_tag, _Cat> _Base; enum { __value = _Base::value }; }; } # 62 "/usr/include/c++/13/bits/stl_construct.h" 2 3 # 1 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 1 3 # 62 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 # 63 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 # 1 "/usr/include/c++/13/bits/concept_check.h" 1 3 # 33 "/usr/include/c++/13/bits/concept_check.h" 3 # 34 "/usr/include/c++/13/bits/concept_check.h" 3 # 65 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 2 3 # 1 "/usr/include/c++/13/debug/assertions.h" 1 3 # 66 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template <typename> struct _List_iterator; template <typename> struct _List_const_iterator; template<typename _InputIterator> inline constexpr typename iterator_traits<_InputIterator>::difference_type __distance(_InputIterator __first, _InputIterator __last, input_iterator_tag) { typename iterator_traits<_InputIterator>::difference_type __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } template<typename _RandomAccessIterator> __attribute__((__always_inline__)) inline constexpr typename iterator_traits<_RandomAccessIterator>::difference_type __distance(_RandomAccessIterator __first, _RandomAccessIterator __last, random_access_iterator_tag) { return __last - __first; } template<typename _Tp> ptrdiff_t __distance(std::_List_iterator<_Tp>, std::_List_iterator<_Tp>, input_iterator_tag); template<typename _Tp> ptrdiff_t __distance(std::_List_const_iterator<_Tp>, std::_List_const_iterator<_Tp>, input_iterator_tag); template<typename _OutputIterator> void __distance(_OutputIterator, _OutputIterator, output_iterator_tag) = delete; # 144 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 template<typename _InputIterator> [[__nodiscard__]] __attribute__((__always_inline__)) inline constexpr typename iterator_traits<_InputIterator>::difference_type distance(_InputIterator __first, _InputIterator __last) { return std::__distance(__first, __last, std::__iterator_category(__first)); } template<typename _InputIterator, typename _Distance> inline constexpr void __advance(_InputIterator& __i, _Distance __n, input_iterator_tag) { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); while (__n--) ++__i; } template<typename _BidirectionalIterator, typename _Distance> inline constexpr void __advance(_BidirectionalIterator& __i, _Distance __n, bidirectional_iterator_tag) { if (__n > 0) while (__n--) ++__i; else while (__n++) --__i; } template<typename _RandomAccessIterator, typename _Distance> inline constexpr void __advance(_RandomAccessIterator& __i, _Distance __n, random_access_iterator_tag) { if (__builtin_constant_p(__n) && __n == 1) ++__i; else if (__builtin_constant_p(__n) && __n == -1) --__i; else __i += __n; } template<typename _OutputIterator, typename _Distance> void __advance(_OutputIterator&, _Distance, output_iterator_tag) = delete; # 217 "/usr/include/c++/13/bits/stl_iterator_base_funcs.h" 3 template<typename _InputIterator, typename _Distance> __attribute__((__always_inline__)) inline constexpr void advance(_InputIterator& __i, _Distance __n) { typename iterator_traits<_InputIterator>::difference_type __d = __n; std::__advance(__i, __d, std::__iterator_category(__i)); } template<typename _InputIterator> [[__nodiscard__]] [[__gnu__::__always_inline__]] inline constexpr _InputIterator next(_InputIterator __x, typename iterator_traits<_InputIterator>::difference_type __n = 1) { std::advance(__x, __n); return __x; } template<typename _BidirectionalIterator> [[__nodiscard__]] [[__gnu__::__always_inline__]] inline constexpr _BidirectionalIterator prev(_BidirectionalIterator __x, typename iterator_traits<_BidirectionalIterator>::difference_type __n = 1) { std::advance(__x, -__n); return __x; } } # 63 "/usr/include/c++/13/bits/stl_construct.h" 2 3 # 73 "/usr/include/c++/13/bits/stl_construct.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template <typename _Tp> constexpr inline void destroy_at(_Tp* __location) { if constexpr (202002L > 201703L && is_array_v<_Tp>) { for (auto& __x : *__location) std::destroy_at(std::__addressof(__x)); } else __location->~_Tp(); } template<typename _Tp, typename... _Args> constexpr auto construct_at(_Tp* __location, _Args&&... __args) noexcept(noexcept(::new((void*)0) _Tp(std::declval<_Args>()...))) -> decltype(::new((void*)0) _Tp(std::declval<_Args>()...)) { return ::new((void*)__location) _Tp(std::forward<_Args>(__args)...); } # 106 "/usr/include/c++/13/bits/stl_construct.h" 3 template<typename _Tp, typename... _Args> constexpr inline void _Construct(_Tp* __p, _Args&&... __args) { if (std::__is_constant_evaluated()) { std::construct_at(__p, std::forward<_Args>(__args)...); return; } ::new((void*)__p) _Tp(std::forward<_Args>(__args)...); } # 132 "/usr/include/c++/13/bits/stl_construct.h" 3 template<typename _T1> inline void _Construct_novalue(_T1* __p) { ::new((void*)__p) _T1; } template<typename _ForwardIterator> constexpr void _Destroy(_ForwardIterator __first, _ForwardIterator __last); template<typename _Tp> constexpr inline void _Destroy(_Tp* __pointer) { std::destroy_at(__pointer); } template<bool> struct _Destroy_aux { template<typename _ForwardIterator> static constexpr void __destroy(_ForwardIterator __first, _ForwardIterator __last) { for (; __first != __last; ++__first) std::_Destroy(std::__addressof(*__first)); } }; template<> struct _Destroy_aux<true> { template<typename _ForwardIterator> static void __destroy(_ForwardIterator, _ForwardIterator) { } }; template<typename _ForwardIterator> constexpr inline void _Destroy(_ForwardIterator __first, _ForwardIterator __last) { typedef typename iterator_traits<_ForwardIterator>::value_type _Value_type; static_assert(is_destructible<_Value_type>::value, "value type is destructible"); if (std::__is_constant_evaluated()) return _Destroy_aux<false>::__destroy(__first, __last); std::_Destroy_aux<__has_trivial_destructor(_Value_type)>:: __destroy(__first, __last); } template<bool> struct _Destroy_n_aux { template<typename _ForwardIterator, typename _Size> static constexpr _ForwardIterator __destroy_n(_ForwardIterator __first, _Size __count) { for (; __count > 0; (void)++__first, --__count) std::_Destroy(std::__addressof(*__first)); return __first; } }; template<> struct _Destroy_n_aux<true> { template<typename _ForwardIterator, typename _Size> static _ForwardIterator __destroy_n(_ForwardIterator __first, _Size __count) { std::advance(__first, __count); return __first; } }; template<typename _ForwardIterator, typename _Size> constexpr inline _ForwardIterator _Destroy_n(_ForwardIterator __first, _Size __count) { typedef typename iterator_traits<_ForwardIterator>::value_type _Value_type; static_assert(is_destructible<_Value_type>::value, "value type is destructible"); if (std::__is_constant_evaluated()) return _Destroy_n_aux<false>::__destroy_n(__first, __count); return std::_Destroy_n_aux<__has_trivial_destructor(_Value_type)>:: __destroy_n(__first, __count); } template <typename _ForwardIterator> constexpr inline void destroy(_ForwardIterator __first, _ForwardIterator __last) { std::_Destroy(__first, __last); } template <typename _ForwardIterator, typename _Size> constexpr inline _ForwardIterator destroy_n(_ForwardIterator __first, _Size __count) { return std::_Destroy_n(__first, __count); } } # 45 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/bits/utility.h" 1 3 # 36 "/usr/include/c++/13/bits/utility.h" 3 # 37 "/usr/include/c++/13/bits/utility.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> struct tuple_size; template<typename _Tp, typename _Up = typename remove_cv<_Tp>::type, typename = typename enable_if<is_same<_Tp, _Up>::value>::type, size_t = tuple_size<_Tp>::value> using __enable_if_has_tuple_size = _Tp; template<typename _Tp> struct tuple_size<const __enable_if_has_tuple_size<_Tp>> : public tuple_size<_Tp> { }; template<typename _Tp> struct tuple_size<volatile __enable_if_has_tuple_size<_Tp>> : public tuple_size<_Tp> { }; template<typename _Tp> struct tuple_size<const volatile __enable_if_has_tuple_size<_Tp>> : public tuple_size<_Tp> { }; template<typename _Tp> inline constexpr size_t tuple_size_v = tuple_size<_Tp>::value; template<size_t __i, typename _Tp> struct tuple_element; template<size_t __i, typename _Tp> using __tuple_element_t = typename tuple_element<__i, _Tp>::type; template<size_t __i, typename _Tp> struct tuple_element<__i, const _Tp> { using type = const __tuple_element_t<__i, _Tp>; }; template<size_t __i, typename _Tp> struct tuple_element<__i, volatile _Tp> { using type = volatile __tuple_element_t<__i, _Tp>; }; template<size_t __i, typename _Tp> struct tuple_element<__i, const volatile _Tp> { using type = const volatile __tuple_element_t<__i, _Tp>; }; template<typename _Tp, typename... _Types> constexpr size_t __find_uniq_type_in_pack() { constexpr size_t __sz = sizeof...(_Types); constexpr bool __found[__sz] = { __is_same(_Tp, _Types) ... }; size_t __n = __sz; for (size_t __i = 0; __i < __sz; ++__i) { if (__found[__i]) { if (__n < __sz) return __sz; __n = __i; } } return __n; } # 134 "/usr/include/c++/13/bits/utility.h" 3 template<size_t __i, typename _Tp> using tuple_element_t = typename tuple_element<__i, _Tp>::type; template<size_t... _Indexes> struct _Index_tuple { }; template<size_t _Num> struct _Build_index_tuple { # 154 "/usr/include/c++/13/bits/utility.h" 3 using __type = _Index_tuple<__integer_pack(_Num)...>; }; template<typename _Tp, _Tp... _Idx> struct integer_sequence { typedef _Tp value_type; static constexpr size_t size() noexcept { return sizeof...(_Idx); } }; template<typename _Tp, _Tp _Num> using make_integer_sequence = integer_sequence<_Tp, __integer_pack(_Num)...>; template<size_t... _Idx> using index_sequence = integer_sequence<size_t, _Idx...>; template<size_t _Num> using make_index_sequence = make_integer_sequence<size_t, _Num>; template<typename... _Types> using index_sequence_for = make_index_sequence<sizeof...(_Types)>; struct in_place_t { explicit in_place_t() = default; }; inline constexpr in_place_t in_place{}; template<typename _Tp> struct in_place_type_t { explicit in_place_type_t() = default; }; template<typename _Tp> inline constexpr in_place_type_t<_Tp> in_place_type{}; template<size_t _Idx> struct in_place_index_t { explicit in_place_index_t() = default; }; template<size_t _Idx> inline constexpr in_place_index_t<_Idx> in_place_index{}; template<typename> inline constexpr bool __is_in_place_type_v = false; template<typename _Tp> inline constexpr bool __is_in_place_type_v<in_place_type_t<_Tp>> = true; template<typename _Tp> using __is_in_place_type = bool_constant<__is_in_place_type_v<_Tp>>; template<size_t _Np, typename... _Types> struct _Nth_type { }; template<typename _Tp0, typename... _Rest> struct _Nth_type<0, _Tp0, _Rest...> { using type = _Tp0; }; template<typename _Tp0, typename _Tp1, typename... _Rest> struct _Nth_type<1, _Tp0, _Tp1, _Rest...> { using type = _Tp1; }; template<typename _Tp0, typename _Tp1, typename _Tp2, typename... _Rest> struct _Nth_type<2, _Tp0, _Tp1, _Tp2, _Rest...> { using type = _Tp2; }; template<size_t _Np, typename _Tp0, typename _Tp1, typename _Tp2, typename... _Rest> requires (_Np >= 3) struct _Nth_type<_Np, _Tp0, _Tp1, _Tp2, _Rest...> : _Nth_type<_Np - 3, _Rest...> { }; # 270 "/usr/include/c++/13/bits/utility.h" 3 } # 46 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/compare" 1 3 # 33 "/usr/include/c++/13/compare" 3 # 34 "/usr/include/c++/13/compare" 3 # 43 "/usr/include/c++/13/compare" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cmp_cat { using type = signed char; enum class _Ord : type { equivalent = 0, less = -1, greater = 1 }; enum class _Ncmp : type { _Unordered = 2 }; struct __unspec { constexpr __unspec(__unspec*) noexcept { } }; } class partial_ordering { __cmp_cat::type _M_value; constexpr explicit partial_ordering(__cmp_cat::_Ord __v) noexcept : _M_value(__cmp_cat::type(__v)) { } constexpr explicit partial_ordering(__cmp_cat::_Ncmp __v) noexcept : _M_value(__cmp_cat::type(__v)) { } friend class weak_ordering; friend class strong_ordering; public: static const partial_ordering less; static const partial_ordering equivalent; static const partial_ordering greater; static const partial_ordering unordered; [[nodiscard]] friend constexpr bool operator==(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 0; } [[nodiscard]] friend constexpr bool operator==(partial_ordering, partial_ordering) noexcept = default; [[nodiscard]] friend constexpr bool operator< (partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == -1; } [[nodiscard]] friend constexpr bool operator> (partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 1; } [[nodiscard]] friend constexpr bool operator<=(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value <= 0; } [[nodiscard]] friend constexpr bool operator>=(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __cmp_cat::type(__v._M_value & 1) == __v._M_value; } [[nodiscard]] friend constexpr bool operator< (__cmp_cat::__unspec, partial_ordering __v) noexcept { return __v._M_value == 1; } [[nodiscard]] friend constexpr bool operator> (__cmp_cat::__unspec, partial_ordering __v) noexcept { return __v._M_value == -1; } [[nodiscard]] friend constexpr bool operator<=(__cmp_cat::__unspec, partial_ordering __v) noexcept { return __cmp_cat::type(__v._M_value & 1) == __v._M_value; } [[nodiscard]] friend constexpr bool operator>=(__cmp_cat::__unspec, partial_ordering __v) noexcept { return 0 >= __v._M_value; } [[nodiscard]] friend constexpr partial_ordering operator<=>(partial_ordering __v, __cmp_cat::__unspec) noexcept { return __v; } [[nodiscard]] friend constexpr partial_ordering operator<=>(__cmp_cat::__unspec, partial_ordering __v) noexcept { if (__v._M_value & 1) return partial_ordering(__cmp_cat::_Ord(-__v._M_value)); else return __v; } }; inline constexpr partial_ordering partial_ordering::less(__cmp_cat::_Ord::less); inline constexpr partial_ordering partial_ordering::equivalent(__cmp_cat::_Ord::equivalent); inline constexpr partial_ordering partial_ordering::greater(__cmp_cat::_Ord::greater); inline constexpr partial_ordering partial_ordering::unordered(__cmp_cat::_Ncmp::_Unordered); class weak_ordering { __cmp_cat::type _M_value; constexpr explicit weak_ordering(__cmp_cat::_Ord __v) noexcept : _M_value(__cmp_cat::type(__v)) { } friend class strong_ordering; public: static const weak_ordering less; static const weak_ordering equivalent; static const weak_ordering greater; [[nodiscard]] constexpr operator partial_ordering() const noexcept { return partial_ordering(__cmp_cat::_Ord(_M_value)); } [[nodiscard]] friend constexpr bool operator==(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 0; } [[nodiscard]] friend constexpr bool operator==(weak_ordering, weak_ordering) noexcept = default; [[nodiscard]] friend constexpr bool operator< (weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value < 0; } [[nodiscard]] friend constexpr bool operator> (weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value > 0; } [[nodiscard]] friend constexpr bool operator<=(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value <= 0; } [[nodiscard]] friend constexpr bool operator>=(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value >= 0; } [[nodiscard]] friend constexpr bool operator< (__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 < __v._M_value; } [[nodiscard]] friend constexpr bool operator> (__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 > __v._M_value; } [[nodiscard]] friend constexpr bool operator<=(__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 <= __v._M_value; } [[nodiscard]] friend constexpr bool operator>=(__cmp_cat::__unspec, weak_ordering __v) noexcept { return 0 >= __v._M_value; } [[nodiscard]] friend constexpr weak_ordering operator<=>(weak_ordering __v, __cmp_cat::__unspec) noexcept { return __v; } [[nodiscard]] friend constexpr weak_ordering operator<=>(__cmp_cat::__unspec, weak_ordering __v) noexcept { return weak_ordering(__cmp_cat::_Ord(-__v._M_value)); } }; inline constexpr weak_ordering weak_ordering::less(__cmp_cat::_Ord::less); inline constexpr weak_ordering weak_ordering::equivalent(__cmp_cat::_Ord::equivalent); inline constexpr weak_ordering weak_ordering::greater(__cmp_cat::_Ord::greater); class strong_ordering { __cmp_cat::type _M_value; constexpr explicit strong_ordering(__cmp_cat::_Ord __v) noexcept : _M_value(__cmp_cat::type(__v)) { } public: static const strong_ordering less; static const strong_ordering equal; static const strong_ordering equivalent; static const strong_ordering greater; [[nodiscard]] constexpr operator partial_ordering() const noexcept { return partial_ordering(__cmp_cat::_Ord(_M_value)); } [[nodiscard]] constexpr operator weak_ordering() const noexcept { return weak_ordering(__cmp_cat::_Ord(_M_value)); } [[nodiscard]] friend constexpr bool operator==(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value == 0; } [[nodiscard]] friend constexpr bool operator==(strong_ordering, strong_ordering) noexcept = default; [[nodiscard]] friend constexpr bool operator< (strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value < 0; } [[nodiscard]] friend constexpr bool operator> (strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value > 0; } [[nodiscard]] friend constexpr bool operator<=(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value <= 0; } [[nodiscard]] friend constexpr bool operator>=(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v._M_value >= 0; } [[nodiscard]] friend constexpr bool operator< (__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 < __v._M_value; } [[nodiscard]] friend constexpr bool operator> (__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 > __v._M_value; } [[nodiscard]] friend constexpr bool operator<=(__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 <= __v._M_value; } [[nodiscard]] friend constexpr bool operator>=(__cmp_cat::__unspec, strong_ordering __v) noexcept { return 0 >= __v._M_value; } [[nodiscard]] friend constexpr strong_ordering operator<=>(strong_ordering __v, __cmp_cat::__unspec) noexcept { return __v; } [[nodiscard]] friend constexpr strong_ordering operator<=>(__cmp_cat::__unspec, strong_ordering __v) noexcept { return strong_ordering(__cmp_cat::_Ord(-__v._M_value)); } }; inline constexpr strong_ordering strong_ordering::less(__cmp_cat::_Ord::less); inline constexpr strong_ordering strong_ordering::equal(__cmp_cat::_Ord::equivalent); inline constexpr strong_ordering strong_ordering::equivalent(__cmp_cat::_Ord::equivalent); inline constexpr strong_ordering strong_ordering::greater(__cmp_cat::_Ord::greater); [[nodiscard]] constexpr bool is_eq(partial_ordering __cmp) noexcept { return __cmp == 0; } [[nodiscard]] constexpr bool is_neq(partial_ordering __cmp) noexcept { return __cmp != 0; } [[nodiscard]] constexpr bool is_lt (partial_ordering __cmp) noexcept { return __cmp < 0; } [[nodiscard]] constexpr bool is_lteq(partial_ordering __cmp) noexcept { return __cmp <= 0; } [[nodiscard]] constexpr bool is_gt (partial_ordering __cmp) noexcept { return __cmp > 0; } [[nodiscard]] constexpr bool is_gteq(partial_ordering __cmp) noexcept { return __cmp >= 0; } namespace __detail { template<typename _Tp> inline constexpr unsigned __cmp_cat_id = 1; template<> inline constexpr unsigned __cmp_cat_id<partial_ordering> = 2; template<> inline constexpr unsigned __cmp_cat_id<weak_ordering> = 4; template<> inline constexpr unsigned __cmp_cat_id<strong_ordering> = 8; template<typename... _Ts> constexpr auto __common_cmp_cat() { constexpr unsigned __cats = (__cmp_cat_id<_Ts> | ...); if constexpr (__cats & 1) return; else if constexpr (bool(__cats & __cmp_cat_id<partial_ordering>)) return partial_ordering::equivalent; else if constexpr (bool(__cats & __cmp_cat_id<weak_ordering>)) return weak_ordering::equivalent; else return strong_ordering::equivalent; } } template<typename... _Ts> struct common_comparison_category { using type = decltype(__detail::__common_cmp_cat<_Ts...>()); }; template<typename _Tp> struct common_comparison_category<_Tp> { using type = void; }; template<> struct common_comparison_category<partial_ordering> { using type = partial_ordering; }; template<> struct common_comparison_category<weak_ordering> { using type = weak_ordering; }; template<> struct common_comparison_category<strong_ordering> { using type = strong_ordering; }; template<> struct common_comparison_category<> { using type = strong_ordering; }; template<typename... _Ts> using common_comparison_category_t = typename common_comparison_category<_Ts...>::type; namespace __detail { template<typename _Tp, typename _Cat> concept __compares_as = same_as<common_comparison_category_t<_Tp, _Cat>, _Cat>; } template<typename _Tp, typename _Cat = partial_ordering> concept three_way_comparable = __detail::__weakly_eq_cmp_with<_Tp, _Tp> && __detail::__partially_ordered_with<_Tp, _Tp> && requires(const remove_reference_t<_Tp>& __a, const remove_reference_t<_Tp>& __b) { { __a <=> __b } -> __detail::__compares_as<_Cat>; }; template<typename _Tp, typename _Up, typename _Cat = partial_ordering> concept three_way_comparable_with = three_way_comparable<_Tp, _Cat> && three_way_comparable<_Up, _Cat> && common_reference_with<const remove_reference_t<_Tp>&, const remove_reference_t<_Up>&> && three_way_comparable< common_reference_t<const remove_reference_t<_Tp>&, const remove_reference_t<_Up>&>, _Cat> && __detail::__weakly_eq_cmp_with<_Tp, _Up> && __detail::__partially_ordered_with<_Tp, _Up> && requires(const remove_reference_t<_Tp>& __t, const remove_reference_t<_Up>& __u) { { __t <=> __u } -> __detail::__compares_as<_Cat>; { __u <=> __t } -> __detail::__compares_as<_Cat>; }; namespace __detail { template<typename _Tp, typename _Up> using __cmp3way_res_t = decltype(std::declval<_Tp>() <=> std::declval<_Up>()); template<typename _Tp, typename _Up> struct __cmp3way_res_impl { }; template<typename _Tp, typename _Up> requires requires { typename __cmp3way_res_t<__cref<_Tp>, __cref<_Up>>; } struct __cmp3way_res_impl<_Tp, _Up> { using type = __cmp3way_res_t<__cref<_Tp>, __cref<_Up>>; }; } template<typename _Tp, typename _Up = _Tp> struct compare_three_way_result : __detail::__cmp3way_res_impl<_Tp, _Up> { }; template<typename _Tp, typename _Up = _Tp> using compare_three_way_result_t = typename __detail::__cmp3way_res_impl<_Tp, _Up>::type; namespace __detail { template<typename _Tp, typename _Up> concept __3way_builtin_ptr_cmp = requires(_Tp&& __t, _Up&& __u) { static_cast<_Tp&&>(__t) <=> static_cast<_Up&&>(__u); } && convertible_to<_Tp, const volatile void*> && convertible_to<_Up, const volatile void*> && ! requires(_Tp&& __t, _Up&& __u) { operator<=>(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u)); } && ! requires(_Tp&& __t, _Up&& __u) { static_cast<_Tp&&>(__t).operator<=>(static_cast<_Up&&>(__u)); }; } struct compare_three_way { template<typename _Tp, typename _Up> requires three_way_comparable_with<_Tp, _Up> constexpr auto operator() [[nodiscard]] (_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::declval<_Tp>() <=> std::declval<_Up>())) { if constexpr (__detail::__3way_builtin_ptr_cmp<_Tp, _Up>) { auto __pt = static_cast<const volatile void*>(__t); auto __pu = static_cast<const volatile void*>(__u); if (std::__is_constant_evaluated()) return __pt <=> __pu; auto __it = reinterpret_cast<long unsigned int>(__pt); auto __iu = reinterpret_cast<long unsigned int>(__pu); return __it <=> __iu; } else return static_cast<_Tp&&>(__t) <=> static_cast<_Up&&>(__u); } using is_transparent = void; }; namespace __cmp_cust { template<floating_point _Tp> constexpr weak_ordering __fp_weak_ordering(_Tp __e, _Tp __f) { auto __cat = [](_Tp __fp) -> int { const int __sign = __builtin_signbit(__fp) ? -1 : 1; if (__builtin_isnormal(__fp)) return (__fp == 0 ? 1 : 3) * __sign; if (__builtin_isnan(__fp)) return 5 * __sign; if (int __inf = __builtin_isinf_sign(__fp)) return 4 * __inf; return 2 * __sign; }; auto __po = __e <=> __f; if (is_lt(__po)) return weak_ordering::less; else if (is_gt(__po)) return weak_ordering::greater; else if (__po == partial_ordering::equivalent) return weak_ordering::equivalent; else { auto __isnan_sign = [](_Tp __fp) -> int { return __builtin_isnan(__fp) ? __builtin_signbit(__fp) ? -1 : 1 : 0; }; auto __ord = __isnan_sign(__e) <=> __isnan_sign(__f); if (is_eq(__ord)) return weak_ordering::equivalent; else if (is_lt(__ord)) return weak_ordering::less; else return weak_ordering::greater; } } template<typename _Tp, typename _Up> concept __adl_strong = requires(_Tp&& __t, _Up&& __u) { strong_ordering(strong_order(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; template<typename _Tp, typename _Up> concept __adl_weak = requires(_Tp&& __t, _Up&& __u) { weak_ordering(weak_order(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; template<typename _Tp, typename _Up> concept __adl_partial = requires(_Tp&& __t, _Up&& __u) { partial_ordering(partial_order(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; template<typename _Ord, typename _Tp, typename _Up> concept __cmp3way = requires(_Tp&& __t, _Up&& __u, compare_three_way __c) { _Ord(__c(static_cast<_Tp&&>(__t), static_cast<_Up&&>(__u))); }; template<typename _Tp, typename _Up> concept __strongly_ordered = __adl_strong<_Tp, _Up> || floating_point<remove_reference_t<_Tp>> || __cmp3way<strong_ordering, _Tp, _Up>; template<typename _Tp, typename _Up> concept __decayed_same_as = same_as<decay_t<_Tp>, decay_t<_Up>>; class _Strong_order { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (floating_point<decay_t<_Tp>>) return true; else if constexpr (__adl_strong<_Tp, _Up>) return noexcept(strong_ordering(strong_order(std::declval<_Tp>(), std::declval<_Up>()))); else if constexpr (__cmp3way<strong_ordering, _Tp, _Up>) return noexcept(compare_three_way()(std::declval<_Tp>(), std::declval<_Up>())); } friend class _Weak_order; friend class _Strong_fallback; enum class _Fp_fmt { _Binary16, _Binary32, _Binary64, _Binary128, _X86_80bit, _M68k_80bit, _Dbldbl, _Bfloat16, }; # 691 "/usr/include/c++/13/compare" 3 template<typename _Tp> static consteval _Fp_fmt _S_fp_fmt() noexcept { using enum _Fp_fmt; # 711 "/usr/include/c++/13/compare" 3 if constexpr (__is_same(_Tp, long double)) return (-16381) == -16381 ? _X86_80bit : _M68k_80bit; if constexpr (__is_same(_Tp, __float80)) return _X86_80bit; constexpr int __width = sizeof(_Tp) * 8; if constexpr (__width == 16) return _Binary16; else if constexpr (__width == 32) return _Binary32; else if constexpr (__width == 64) return _Binary64; else if constexpr (__width == 128) return _Binary128; } using int64_t = long int; using int32_t = int; using int16_t = short int; using uint64_t = long unsigned int; using uint16_t = short unsigned int; template<typename _Tp> struct _Int { uint64_t _M_lo; _Tp _M_hi; constexpr explicit _Int(_Tp __hi, uint64_t __lo) noexcept : _M_hi(__hi) { _M_lo = __lo; } constexpr explicit _Int(uint64_t __lo) noexcept : _M_hi(0) { _M_lo = __lo; } constexpr bool operator==(const _Int&) const = default; # 773 "/usr/include/c++/13/compare" 3 constexpr _Int& operator^=(const _Int& __rhs) noexcept { _M_hi ^= __rhs._M_hi; _M_lo ^= __rhs._M_lo; return *this; } constexpr strong_ordering operator<=>(const _Int& __rhs) const noexcept { strong_ordering __cmp = _M_hi <=> __rhs._M_hi; if (__cmp != strong_ordering::equal) return __cmp; return _M_lo <=> __rhs._M_lo; } }; template<typename _Tp> static constexpr _Tp _S_compl(_Tp __t) noexcept { constexpr int __width = sizeof(_Tp) * 8; make_unsigned_t<_Tp> __sign = __t >> (__width - 1); return __t ^ (__sign >> 1); } template<typename _Tp> static constexpr _Int<_Tp> _S_compl(_Int<_Tp> __t) noexcept { constexpr int __width = sizeof(_Tp) * 8; make_unsigned_t<_Tp> __sign = __t._M_hi >> (__width - 1); __t._M_hi ^= (__sign >> 1 ); uint64_t __sign64 = (_Tp)__sign; __t._M_lo ^= __sign64; return __t; } template<typename _Tp> constexpr static auto _S_fp_bits(_Tp __val) noexcept { if constexpr (sizeof(_Tp) == sizeof(int64_t)) return __builtin_bit_cast(int64_t, __val); else if constexpr (sizeof(_Tp) == sizeof(int32_t)) return __builtin_bit_cast(int32_t, __val); else if constexpr (sizeof(_Tp) == sizeof(int16_t)) return __builtin_bit_cast(int16_t, __val); else { using enum _Fp_fmt; constexpr auto __fmt = _S_fp_fmt<_Tp>(); if constexpr (__fmt == _X86_80bit || __fmt == _M68k_80bit) { if constexpr (sizeof(_Tp) == 3 * sizeof(int32_t)) { auto __ival = __builtin_bit_cast(_Int<int32_t>, __val); return _Int<int16_t>(__ival._M_hi, __ival._M_lo); } else { auto __ival = __builtin_bit_cast(_Int<int64_t>, __val); return _Int<int16_t>(__ival._M_hi, __ival._M_lo); } } else if constexpr (sizeof(_Tp) == 2 * sizeof(int64_t)) { return __builtin_bit_cast(__int128, __val); } else static_assert(sizeof(_Tp) == sizeof(int64_t), "unsupported floating-point type"); } } template<typename _Tp> static constexpr strong_ordering _S_fp_cmp(_Tp __x, _Tp __y) noexcept { # 877 "/usr/include/c++/13/compare" 3 auto __ix = _S_fp_bits(__x); auto __iy = _S_fp_bits(__y); if (__ix == __iy) return strong_ordering::equal; using enum _Fp_fmt; constexpr auto __fmt = _S_fp_fmt<_Tp>(); if constexpr (__fmt == _Dbldbl) { struct _Unpacked { double _M_hi; int64_t _M_lo; }; auto __x2 = __builtin_bit_cast(_Unpacked, __x); auto __y2 = __builtin_bit_cast(_Unpacked, __y); auto __cmp = _S_fp_cmp(__x2._M_hi, __y2._M_hi); if (__cmp != strong_ordering::equal) return __cmp; if (__builtin_isnan(__x2._M_hi)) return strong_ordering::equal; if (((__x2._M_lo | __y2._M_lo) & 0x7fffffffffffffffULL) == 0) return strong_ordering::equal; return _S_compl(__x2._M_lo) <=> _S_compl(__y2._M_lo); } else { if constexpr (__fmt == _M68k_80bit) { constexpr uint16_t __maxexp = 0x7fff; if ((__ix._M_hi & __maxexp) == __maxexp) __ix._M_lo |= 1ull << 63; if ((__iy._M_hi & __maxexp) == __maxexp) __iy._M_lo |= 1ull << 63; } else { # 944 "/usr/include/c++/13/compare" 3 } return _S_compl(__ix) <=> _S_compl(__iy); } } public: template<typename _Tp, __decayed_same_as<_Tp> _Up> requires __strongly_ordered<_Tp, _Up> constexpr strong_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (floating_point<decay_t<_Tp>>) return _S_fp_cmp(__e, __f); else if constexpr (__adl_strong<_Tp, _Up>) return strong_ordering(strong_order(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f))); else if constexpr (__cmp3way<strong_ordering, _Tp, _Up>) return compare_three_way()(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); } }; template<typename _Tp, typename _Up> concept __weakly_ordered = floating_point<remove_reference_t<_Tp>> || __adl_weak<_Tp, _Up> || __cmp3way<weak_ordering, _Tp, _Up> || __strongly_ordered<_Tp, _Up>; class _Weak_order { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (floating_point<decay_t<_Tp>>) return true; else if constexpr (__adl_weak<_Tp, _Up>) return noexcept(weak_ordering(weak_order(std::declval<_Tp>(), std::declval<_Up>()))); else if constexpr (__cmp3way<weak_ordering, _Tp, _Up>) return noexcept(compare_three_way()(std::declval<_Tp>(), std::declval<_Up>())); else if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order::_S_noexcept<_Tp, _Up>(); } friend class _Partial_order; friend class _Weak_fallback; public: template<typename _Tp, __decayed_same_as<_Tp> _Up> requires __weakly_ordered<_Tp, _Up> constexpr weak_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (floating_point<decay_t<_Tp>>) return __cmp_cust::__fp_weak_ordering(__e, __f); else if constexpr (__adl_weak<_Tp, _Up>) return weak_ordering(weak_order(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f))); else if constexpr (__cmp3way<weak_ordering, _Tp, _Up>) return compare_three_way()(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); } }; template<typename _Tp, typename _Up> concept __partially_ordered = __adl_partial<_Tp, _Up> || __cmp3way<partial_ordering, _Tp, _Up> || __weakly_ordered<_Tp, _Up>; class _Partial_order { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (__adl_partial<_Tp, _Up>) return noexcept(partial_ordering(partial_order(std::declval<_Tp>(), std::declval<_Up>()))); else if constexpr (__cmp3way<partial_ordering, _Tp, _Up>) return noexcept(compare_three_way()(std::declval<_Tp>(), std::declval<_Up>())); else if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order::_S_noexcept<_Tp, _Up>(); } friend class _Partial_fallback; public: template<typename _Tp, __decayed_same_as<_Tp> _Up> requires __partially_ordered<_Tp, _Up> constexpr partial_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__adl_partial<_Tp, _Up>) return partial_ordering(partial_order(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f))); else if constexpr (__cmp3way<partial_ordering, _Tp, _Up>) return compare_three_way()(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); } }; template<typename _Tp, typename _Up> concept __op_eq_lt = requires(_Tp&& __t, _Up&& __u) { { static_cast<_Tp&&>(__t) == static_cast<_Up&&>(__u) } -> convertible_to<bool>; { static_cast<_Tp&&>(__t) < static_cast<_Up&&>(__u) } -> convertible_to<bool>; }; class _Strong_fallback { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order::_S_noexcept<_Tp, _Up>(); else return noexcept(bool(std::declval<_Tp>() == std::declval<_Up>())) && noexcept(bool(std::declval<_Tp>() < std::declval<_Up>())); } public: template<typename _Tp, __decayed_same_as<_Tp> _Up> requires __strongly_ordered<_Tp, _Up> || __op_eq_lt<_Tp, _Up> constexpr strong_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__strongly_ordered<_Tp, _Up>) return _Strong_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else return static_cast<_Tp&&>(__e) == static_cast<_Up&&>(__f) ? strong_ordering::equal : static_cast<_Tp&&>(__e) < static_cast<_Up&&>(__f) ? strong_ordering::less : strong_ordering::greater; } }; class _Weak_fallback { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order::_S_noexcept<_Tp, _Up>(); else return noexcept(bool(std::declval<_Tp>() == std::declval<_Up>())) && noexcept(bool(std::declval<_Tp>() < std::declval<_Up>())); } public: template<typename _Tp, __decayed_same_as<_Tp> _Up> requires __weakly_ordered<_Tp, _Up> || __op_eq_lt<_Tp, _Up> constexpr weak_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__weakly_ordered<_Tp, _Up>) return _Weak_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else return static_cast<_Tp&&>(__e) == static_cast<_Up&&>(__f) ? weak_ordering::equivalent : static_cast<_Tp&&>(__e) < static_cast<_Up&&>(__f) ? weak_ordering::less : weak_ordering::greater; } }; template<typename _Tp, typename _Up> concept __op_eq_lt_lt = __op_eq_lt<_Tp, _Up> && requires(_Tp&& __t, _Up&& __u) { { static_cast<_Up&&>(__u) < static_cast<_Tp&&>(__t) } -> convertible_to<bool>; }; class _Partial_fallback { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept() { if constexpr (__partially_ordered<_Tp, _Up>) return _Partial_order::_S_noexcept<_Tp, _Up>(); else return noexcept(bool(std::declval<_Tp>() == std::declval<_Up>())) && noexcept(bool(std::declval<_Tp>() < std::declval<_Up>())); } public: template<typename _Tp, __decayed_same_as<_Tp> _Up> requires __partially_ordered<_Tp, _Up> || __op_eq_lt_lt<_Tp, _Up> constexpr partial_ordering operator() [[nodiscard]] (_Tp&& __e, _Up&& __f) const noexcept(_S_noexcept<_Tp, _Up>()) { if constexpr (__partially_ordered<_Tp, _Up>) return _Partial_order{}(static_cast<_Tp&&>(__e), static_cast<_Up&&>(__f)); else return static_cast<_Tp&&>(__e) == static_cast<_Up&&>(__f) ? partial_ordering::equivalent : static_cast<_Tp&&>(__e) < static_cast<_Up&&>(__f) ? partial_ordering::less : static_cast<_Up&&>(__f) < static_cast<_Tp&&>(__e) ? partial_ordering::greater : partial_ordering::unordered; } }; } inline namespace __cmp_alg { inline constexpr __cmp_cust::_Strong_order strong_order{}; inline constexpr __cmp_cust::_Weak_order weak_order{}; inline constexpr __cmp_cust::_Partial_order partial_order{}; inline constexpr __cmp_cust::_Strong_fallback compare_strong_order_fallback{}; inline constexpr __cmp_cust::_Weak_fallback compare_weak_order_fallback{}; inline constexpr __cmp_cust::_Partial_fallback compare_partial_order_fallback{}; } namespace __detail { inline constexpr struct _Synth3way { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept(const _Tp* __t = nullptr, const _Up* __u = nullptr) { if constexpr (three_way_comparable_with<_Tp, _Up>) return noexcept(*__t <=> *__u); else return noexcept(*__t < *__u) && noexcept(*__u < *__t); } template<typename _Tp, typename _Up> [[nodiscard]] constexpr auto operator()(const _Tp& __t, const _Up& __u) const noexcept(_S_noexcept<_Tp, _Up>()) requires requires { { __t < __u } -> __boolean_testable; { __u < __t } -> __boolean_testable; } { if constexpr (three_way_comparable_with<_Tp, _Up>) return __t <=> __u; else { if (__t < __u) return weak_ordering::less; else if (__u < __t) return weak_ordering::greater; else return weak_ordering::equivalent; } } } __synth3way = {}; template<typename _Tp, typename _Up = _Tp> using __synth3way_t = decltype(__detail::__synth3way(std::declval<_Tp&>(), std::declval<_Up&>())); } } # 48 "/usr/include/c++/13/optional" 2 3 # 1 "/usr/include/c++/13/bits/invoke.h" 1 3 # 33 "/usr/include/c++/13/bits/invoke.h" 3 # 34 "/usr/include/c++/13/bits/invoke.h" 3 # 42 "/usr/include/c++/13/bits/invoke.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 53 "/usr/include/c++/13/bits/invoke.h" 3 template<typename _Tp, typename _Up = typename __inv_unwrap<_Tp>::type> constexpr _Up&& __invfwd(typename remove_reference<_Tp>::type& __t) noexcept { return static_cast<_Up&&>(__t); } template<typename _Res, typename _Fn, typename... _Args> constexpr _Res __invoke_impl(__invoke_other, _Fn&& __f, _Args&&... __args) { return std::forward<_Fn>(__f)(std::forward<_Args>(__args)...); } template<typename _Res, typename _MemFun, typename _Tp, typename... _Args> constexpr _Res __invoke_impl(__invoke_memfun_ref, _MemFun&& __f, _Tp&& __t, _Args&&... __args) { return (__invfwd<_Tp>(__t).*__f)(std::forward<_Args>(__args)...); } template<typename _Res, typename _MemFun, typename _Tp, typename... _Args> constexpr _Res __invoke_impl(__invoke_memfun_deref, _MemFun&& __f, _Tp&& __t, _Args&&... __args) { return ((*std::forward<_Tp>(__t)).*__f)(std::forward<_Args>(__args)...); } template<typename _Res, typename _MemPtr, typename _Tp> constexpr _Res __invoke_impl(__invoke_memobj_ref, _MemPtr&& __f, _Tp&& __t) { return __invfwd<_Tp>(__t).*__f; } template<typename _Res, typename _MemPtr, typename _Tp> constexpr _Res __invoke_impl(__invoke_memobj_deref, _MemPtr&& __f, _Tp&& __t) { return (*std::forward<_Tp>(__t)).*__f; } template<typename _Callable, typename... _Args> constexpr typename __invoke_result<_Callable, _Args...>::type __invoke(_Callable&& __fn, _Args&&... __args) noexcept(__is_nothrow_invocable<_Callable, _Args...>::value) { using __result = __invoke_result<_Callable, _Args...>; using __type = typename __result::type; using __tag = typename __result::__invoke_type; return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); } template<typename _Res, typename _Callable, typename... _Args> constexpr enable_if_t<is_invocable_r_v<_Res, _Callable, _Args...>, _Res> __invoke_r(_Callable&& __fn, _Args&&... __args) noexcept(is_nothrow_invocable_r_v<_Res, _Callable, _Args...>) { using __result = __invoke_result<_Callable, _Args...>; using __type = typename __result::type; using __tag = typename __result::__invoke_type; if constexpr (is_void_v<_Res>) std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); else return std::__invoke_impl<__type>(__tag{}, std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); } # 155 "/usr/include/c++/13/bits/invoke.h" 3 } # 49 "/usr/include/c++/13/optional" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 71 "/usr/include/c++/13/optional" 3 template<typename _Tp> class optional; struct nullopt_t { enum class _Construct { _Token }; explicit constexpr nullopt_t(_Construct) noexcept { } }; inline constexpr nullopt_t nullopt { nullopt_t::_Construct::_Token }; template<typename _Fn> struct _Optional_func { _Fn& _M_f; }; class bad_optional_access : public exception { public: bad_optional_access() = default; virtual ~bad_optional_access() = default; const char* what() const noexcept override { return "bad optional access"; } }; [[__noreturn__]] inline void __throw_bad_optional_access() { (throw (bad_optional_access())); } template <typename _Tp> struct _Optional_payload_base { using _Stored_type = remove_const_t<_Tp>; _Optional_payload_base() = default; ~_Optional_payload_base() = default; template<typename... _Args> constexpr _Optional_payload_base(in_place_t __tag, _Args&&... __args) : _M_payload(__tag, std::forward<_Args>(__args)...), _M_engaged(true) { } template<typename _Up, typename... _Args> constexpr _Optional_payload_base(std::initializer_list<_Up> __il, _Args&&... __args) : _M_payload(__il, std::forward<_Args>(__args)...), _M_engaged(true) { } constexpr _Optional_payload_base(bool __engaged, const _Optional_payload_base& __other) { if (__other._M_engaged) this->_M_construct(__other._M_get()); } constexpr _Optional_payload_base(bool __engaged, _Optional_payload_base&& __other) { if (__other._M_engaged) this->_M_construct(std::move(__other._M_get())); } _Optional_payload_base(const _Optional_payload_base&) = default; _Optional_payload_base(_Optional_payload_base&&) = default; _Optional_payload_base& operator=(const _Optional_payload_base&) = default; _Optional_payload_base& operator=(_Optional_payload_base&&) = default; constexpr void _M_copy_assign(const _Optional_payload_base& __other) { if (this->_M_engaged && __other._M_engaged) this->_M_get() = __other._M_get(); else { if (__other._M_engaged) this->_M_construct(__other._M_get()); else this->_M_reset(); } } constexpr void _M_move_assign(_Optional_payload_base&& __other) noexcept(__and_v<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>) { if (this->_M_engaged && __other._M_engaged) this->_M_get() = std::move(__other._M_get()); else { if (__other._M_engaged) this->_M_construct(std::move(__other._M_get())); else this->_M_reset(); } } struct _Empty_byte { }; template<typename _Up, bool = is_trivially_destructible_v<_Up>> union _Storage { constexpr _Storage() noexcept : _M_empty() { } template<typename... _Args> constexpr _Storage(in_place_t, _Args&&... __args) : _M_value(std::forward<_Args>(__args)...) { } template<typename _Vp, typename... _Args> constexpr _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) : _M_value(__il, std::forward<_Args>(__args)...) { } template<typename _Fn, typename _Arg> constexpr _Storage(_Optional_func<_Fn> __f, _Arg&& __arg) : _M_value(std::__invoke(std::forward<_Fn>(__f._M_f), std::forward<_Arg>(__arg))) { } _Empty_byte _M_empty; _Up _M_value; }; template<typename _Up> union _Storage<_Up, false> { constexpr _Storage() noexcept : _M_empty() { } template<typename... _Args> constexpr _Storage(in_place_t, _Args&&... __args) : _M_value(std::forward<_Args>(__args)...) { } template<typename _Vp, typename... _Args> constexpr _Storage(std::initializer_list<_Vp> __il, _Args&&... __args) : _M_value(__il, std::forward<_Args>(__args)...) { } template<typename _Fn, typename _Arg> constexpr _Storage(_Optional_func<_Fn> __f, _Arg&& __arg) : _M_value(std::__invoke(std::forward<_Fn>(__f._M_f), std::forward<_Arg>(__arg))) { } constexpr ~_Storage() { } _Empty_byte _M_empty; _Up _M_value; }; _Storage<_Stored_type> _M_payload; bool _M_engaged = false; template<typename... _Args> constexpr void _M_construct(_Args&&... __args) noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) { std::_Construct(std::__addressof(this->_M_payload._M_value), std::forward<_Args>(__args)...); this->_M_engaged = true; } constexpr void _M_destroy() noexcept { _M_engaged = false; _M_payload._M_value.~_Stored_type(); } template<typename _Fn, typename _Up> constexpr void _M_apply(_Optional_func<_Fn> __f, _Up&& __x) { std::construct_at(std::__addressof(this->_M_payload), __f, std::forward<_Up>(__x)); _M_engaged = true; } constexpr _Tp& _M_get() noexcept { return this->_M_payload._M_value; } constexpr const _Tp& _M_get() const noexcept { return this->_M_payload._M_value; } constexpr void _M_reset() noexcept { if (this->_M_engaged) _M_destroy(); } }; template <typename _Tp, bool = is_trivially_destructible_v<_Tp>, bool = is_trivially_copy_assignable_v<_Tp> && is_trivially_copy_constructible_v<_Tp>, bool = is_trivially_move_assignable_v<_Tp> && is_trivially_move_constructible_v<_Tp>> struct _Optional_payload; template <typename _Tp> struct _Optional_payload<_Tp, true, true, true> : _Optional_payload_base<_Tp> { using _Optional_payload_base<_Tp>::_Optional_payload_base; _Optional_payload() = default; }; template <typename _Tp> struct _Optional_payload<_Tp, true, false, true> : _Optional_payload_base<_Tp> { using _Optional_payload_base<_Tp>::_Optional_payload_base; _Optional_payload() = default; ~_Optional_payload() = default; _Optional_payload(const _Optional_payload&) = default; _Optional_payload(_Optional_payload&&) = default; _Optional_payload& operator=(_Optional_payload&&) = default; constexpr _Optional_payload& operator=(const _Optional_payload& __other) { this->_M_copy_assign(__other); return *this; } }; template <typename _Tp> struct _Optional_payload<_Tp, true, true, false> : _Optional_payload_base<_Tp> { using _Optional_payload_base<_Tp>::_Optional_payload_base; _Optional_payload() = default; ~_Optional_payload() = default; _Optional_payload(const _Optional_payload&) = default; _Optional_payload(_Optional_payload&&) = default; _Optional_payload& operator=(const _Optional_payload&) = default; constexpr _Optional_payload& operator=(_Optional_payload&& __other) noexcept(__and_v<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>) { this->_M_move_assign(std::move(__other)); return *this; } }; template <typename _Tp> struct _Optional_payload<_Tp, true, false, false> : _Optional_payload_base<_Tp> { using _Optional_payload_base<_Tp>::_Optional_payload_base; _Optional_payload() = default; ~_Optional_payload() = default; _Optional_payload(const _Optional_payload&) = default; _Optional_payload(_Optional_payload&&) = default; constexpr _Optional_payload& operator=(const _Optional_payload& __other) { this->_M_copy_assign(__other); return *this; } constexpr _Optional_payload& operator=(_Optional_payload&& __other) noexcept(__and_v<is_nothrow_move_constructible<_Tp>, is_nothrow_move_assignable<_Tp>>) { this->_M_move_assign(std::move(__other)); return *this; } }; template <typename _Tp, bool _Copy, bool _Move> struct _Optional_payload<_Tp, false, _Copy, _Move> : _Optional_payload<_Tp, true, false, false> { using _Optional_payload<_Tp, true, false, false>::_Optional_payload; _Optional_payload() = default; _Optional_payload(const _Optional_payload&) = default; _Optional_payload(_Optional_payload&&) = default; _Optional_payload& operator=(const _Optional_payload&) = default; _Optional_payload& operator=(_Optional_payload&&) = default; constexpr ~_Optional_payload() { this->_M_reset(); } }; template<typename _Tp, typename _Dp> class _Optional_base_impl { protected: using _Stored_type = remove_const_t<_Tp>; template<typename... _Args> constexpr void _M_construct(_Args&&... __args) noexcept(is_nothrow_constructible_v<_Stored_type, _Args...>) { static_cast<_Dp*>(this)->_M_payload._M_construct( std::forward<_Args>(__args)...); } constexpr void _M_destruct() noexcept { static_cast<_Dp*>(this)->_M_payload._M_destroy(); } constexpr void _M_reset() noexcept { static_cast<_Dp*>(this)->_M_payload._M_reset(); } constexpr bool _M_is_engaged() const noexcept { return static_cast<const _Dp*>(this)->_M_payload._M_engaged; } constexpr _Tp& _M_get() noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) __builtin_unreachable(); } while (false); return static_cast<_Dp*>(this)->_M_payload._M_get(); } constexpr const _Tp& _M_get() const noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_is_engaged())) __builtin_unreachable(); } while (false); return static_cast<const _Dp*>(this)->_M_payload._M_get(); } }; # 507 "/usr/include/c++/13/optional" 3 template<typename _Tp, bool = is_trivially_copy_constructible_v<_Tp>, bool = is_trivially_move_constructible_v<_Tp>> struct _Optional_base : _Optional_base_impl<_Tp, _Optional_base<_Tp>> { constexpr _Optional_base() = default; template<typename... _Args, enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, _Args&&... __args) : _M_payload(in_place, std::forward<_Args>(__args)...) { } template<typename _Up, typename... _Args, enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, initializer_list<_Up> __il, _Args&&... __args) : _M_payload(in_place, __il, std::forward<_Args>(__args)...) { } constexpr _Optional_base(const _Optional_base& __other) : _M_payload(__other._M_payload._M_engaged, __other._M_payload) { } constexpr _Optional_base(_Optional_base&& __other) noexcept(is_nothrow_move_constructible_v<_Tp>) : _M_payload(__other._M_payload._M_engaged, std::move(__other._M_payload)) { } _Optional_base& operator=(const _Optional_base&) = default; _Optional_base& operator=(_Optional_base&&) = default; _Optional_payload<_Tp> _M_payload; }; template<typename _Tp> struct _Optional_base<_Tp, false, true> : _Optional_base_impl<_Tp, _Optional_base<_Tp>> { constexpr _Optional_base() = default; template<typename... _Args, enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, _Args&&... __args) : _M_payload(in_place, std::forward<_Args>(__args)...) { } template<typename _Up, typename... _Args, enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, initializer_list<_Up> __il, _Args... __args) : _M_payload(in_place, __il, std::forward<_Args>(__args)...) { } constexpr _Optional_base(const _Optional_base& __other) : _M_payload(__other._M_payload._M_engaged, __other._M_payload) { } constexpr _Optional_base(_Optional_base&& __other) = default; _Optional_base& operator=(const _Optional_base&) = default; _Optional_base& operator=(_Optional_base&&) = default; _Optional_payload<_Tp> _M_payload; }; template<typename _Tp> struct _Optional_base<_Tp, true, false> : _Optional_base_impl<_Tp, _Optional_base<_Tp>> { constexpr _Optional_base() = default; template<typename... _Args, enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, _Args&&... __args) : _M_payload(in_place, std::forward<_Args>(__args)...) { } template<typename _Up, typename... _Args, enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, initializer_list<_Up> __il, _Args&&... __args) : _M_payload(in_place, __il, std::forward<_Args>(__args)...) { } constexpr _Optional_base(const _Optional_base& __other) = default; constexpr _Optional_base(_Optional_base&& __other) noexcept(is_nothrow_move_constructible_v<_Tp>) : _M_payload(__other._M_payload._M_engaged, std::move(__other._M_payload)) { } _Optional_base& operator=(const _Optional_base&) = default; _Optional_base& operator=(_Optional_base&&) = default; _Optional_payload<_Tp> _M_payload; }; template<typename _Tp> struct _Optional_base<_Tp, true, true> : _Optional_base_impl<_Tp, _Optional_base<_Tp>> { constexpr _Optional_base() = default; template<typename... _Args, enable_if_t<is_constructible_v<_Tp, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, _Args&&... __args) : _M_payload(in_place, std::forward<_Args>(__args)...) { } template<typename _Up, typename... _Args, enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, bool> = false> constexpr explicit _Optional_base(in_place_t, initializer_list<_Up> __il, _Args&&... __args) : _M_payload(in_place, __il, std::forward<_Args>(__args)...) { } constexpr _Optional_base(const _Optional_base& __other) = default; constexpr _Optional_base(_Optional_base&& __other) = default; _Optional_base& operator=(const _Optional_base&) = default; _Optional_base& operator=(_Optional_base&&) = default; _Optional_payload<_Tp> _M_payload; }; template<typename _Tp> class optional; template<typename _Tp> inline constexpr bool __is_optional_v = false; template<typename _Tp> inline constexpr bool __is_optional_v<optional<_Tp>> = true; template<typename _Tp, typename _Up> using __converts_from_optional = __or_<is_constructible<_Tp, const optional<_Up>&>, is_constructible<_Tp, optional<_Up>&>, is_constructible<_Tp, const optional<_Up>&&>, is_constructible<_Tp, optional<_Up>&&>, is_convertible<const optional<_Up>&, _Tp>, is_convertible<optional<_Up>&, _Tp>, is_convertible<const optional<_Up>&&, _Tp>, is_convertible<optional<_Up>&&, _Tp>>; template<typename _Tp, typename _Up> using __assigns_from_optional = __or_<is_assignable<_Tp&, const optional<_Up>&>, is_assignable<_Tp&, optional<_Up>&>, is_assignable<_Tp&, const optional<_Up>&&>, is_assignable<_Tp&, optional<_Up>&&>>; template<typename _Tp> class optional : private _Optional_base<_Tp>, private _Enable_copy_move< is_copy_constructible_v<_Tp>, __and_v<is_copy_constructible<_Tp>, is_copy_assignable<_Tp>>, is_move_constructible_v<_Tp>, __and_v<is_move_constructible<_Tp>, is_move_assignable<_Tp>>, optional<_Tp>> { static_assert(!is_same_v<remove_cv_t<_Tp>, nullopt_t>); static_assert(!is_same_v<remove_cv_t<_Tp>, in_place_t>); static_assert(is_object_v<_Tp> && !is_array_v<_Tp>); private: using _Base = _Optional_base<_Tp>; template<typename _Up> using __not_self = __not_<is_same<optional, __remove_cvref_t<_Up>>>; template<typename _Up> using __not_tag = __not_<is_same<in_place_t, __remove_cvref_t<_Up>>>; template<typename... _Cond> using _Requires = enable_if_t<__and_v<_Cond...>, bool>; public: using value_type = _Tp; constexpr optional() noexcept { } constexpr optional(nullopt_t) noexcept { } template<typename _Up = _Tp, _Requires<__not_self<_Up>, __not_tag<_Up>, is_constructible<_Tp, _Up>, is_convertible<_Up, _Tp>> = true> constexpr optional(_Up&& __t) noexcept(is_nothrow_constructible_v<_Tp, _Up>) : _Base(std::in_place, std::forward<_Up>(__t)) { } template<typename _Up = _Tp, _Requires<__not_self<_Up>, __not_tag<_Up>, is_constructible<_Tp, _Up>, __not_<is_convertible<_Up, _Tp>>> = false> explicit constexpr optional(_Up&& __t) noexcept(is_nothrow_constructible_v<_Tp, _Up>) : _Base(std::in_place, std::forward<_Up>(__t)) { } template<typename _Up, _Requires<__not_<is_same<_Tp, _Up>>, is_constructible<_Tp, const _Up&>, is_convertible<const _Up&, _Tp>, __not_<__converts_from_optional<_Tp, _Up>>> = true> constexpr optional(const optional<_Up>& __t) noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) { if (__t) emplace(*__t); } template<typename _Up, _Requires<__not_<is_same<_Tp, _Up>>, is_constructible<_Tp, const _Up&>, __not_<is_convertible<const _Up&, _Tp>>, __not_<__converts_from_optional<_Tp, _Up>>> = false> explicit constexpr optional(const optional<_Up>& __t) noexcept(is_nothrow_constructible_v<_Tp, const _Up&>) { if (__t) emplace(*__t); } template<typename _Up, _Requires<__not_<is_same<_Tp, _Up>>, is_constructible<_Tp, _Up>, is_convertible<_Up, _Tp>, __not_<__converts_from_optional<_Tp, _Up>>> = true> constexpr optional(optional<_Up>&& __t) noexcept(is_nothrow_constructible_v<_Tp, _Up>) { if (__t) emplace(std::move(*__t)); } template<typename _Up, _Requires<__not_<is_same<_Tp, _Up>>, is_constructible<_Tp, _Up>, __not_<is_convertible<_Up, _Tp>>, __not_<__converts_from_optional<_Tp, _Up>>> = false> explicit constexpr optional(optional<_Up>&& __t) noexcept(is_nothrow_constructible_v<_Tp, _Up>) { if (__t) emplace(std::move(*__t)); } template<typename... _Args, _Requires<is_constructible<_Tp, _Args...>> = false> explicit constexpr optional(in_place_t, _Args&&... __args) noexcept(is_nothrow_constructible_v<_Tp, _Args...>) : _Base(std::in_place, std::forward<_Args>(__args)...) { } template<typename _Up, typename... _Args, _Requires<is_constructible<_Tp, initializer_list<_Up>&, _Args...>> = false> explicit constexpr optional(in_place_t, initializer_list<_Up> __il, _Args&&... __args) noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) : _Base(std::in_place, __il, std::forward<_Args>(__args)...) { } constexpr optional& operator=(nullopt_t) noexcept { this->_M_reset(); return *this; } template<typename _Up = _Tp> constexpr enable_if_t<__and_v<__not_self<_Up>, __not_<__and_<is_scalar<_Tp>, is_same<_Tp, decay_t<_Up>>>>, is_constructible<_Tp, _Up>, is_assignable<_Tp&, _Up>>, optional&> operator=(_Up&& __u) noexcept(__and_v<is_nothrow_constructible<_Tp, _Up>, is_nothrow_assignable<_Tp&, _Up>>) { if (this->_M_is_engaged()) this->_M_get() = std::forward<_Up>(__u); else this->_M_construct(std::forward<_Up>(__u)); return *this; } template<typename _Up> constexpr enable_if_t<__and_v<__not_<is_same<_Tp, _Up>>, is_constructible<_Tp, const _Up&>, is_assignable<_Tp&, const _Up&>, __not_<__converts_from_optional<_Tp, _Up>>, __not_<__assigns_from_optional<_Tp, _Up>>>, optional&> operator=(const optional<_Up>& __u) noexcept(__and_v<is_nothrow_constructible<_Tp, const _Up&>, is_nothrow_assignable<_Tp&, const _Up&>>) { if (__u) { if (this->_M_is_engaged()) this->_M_get() = *__u; else this->_M_construct(*__u); } else { this->_M_reset(); } return *this; } template<typename _Up> constexpr enable_if_t<__and_v<__not_<is_same<_Tp, _Up>>, is_constructible<_Tp, _Up>, is_assignable<_Tp&, _Up>, __not_<__converts_from_optional<_Tp, _Up>>, __not_<__assigns_from_optional<_Tp, _Up>>>, optional&> operator=(optional<_Up>&& __u) noexcept(__and_v<is_nothrow_constructible<_Tp, _Up>, is_nothrow_assignable<_Tp&, _Up>>) { if (__u) { if (this->_M_is_engaged()) this->_M_get() = std::move(*__u); else this->_M_construct(std::move(*__u)); } else { this->_M_reset(); } return *this; } template<typename... _Args> constexpr enable_if_t<is_constructible_v<_Tp, _Args...>, _Tp&> emplace(_Args&&... __args) noexcept(is_nothrow_constructible_v<_Tp, _Args...>) { this->_M_reset(); this->_M_construct(std::forward<_Args>(__args)...); return this->_M_get(); } template<typename _Up, typename... _Args> constexpr enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, _Tp&> emplace(initializer_list<_Up> __il, _Args&&... __args) noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) { this->_M_reset(); this->_M_construct(__il, std::forward<_Args>(__args)...); return this->_M_get(); } constexpr void swap(optional& __other) noexcept(is_nothrow_move_constructible_v<_Tp> && is_nothrow_swappable_v<_Tp>) { using std::swap; if (this->_M_is_engaged() && __other._M_is_engaged()) swap(this->_M_get(), __other._M_get()); else if (this->_M_is_engaged()) { __other._M_construct(std::move(this->_M_get())); this->_M_destruct(); } else if (__other._M_is_engaged()) { this->_M_construct(std::move(__other._M_get())); __other._M_destruct(); } } constexpr const _Tp* operator->() const noexcept { return std::__addressof(this->_M_get()); } constexpr _Tp* operator->() noexcept { return std::__addressof(this->_M_get()); } constexpr const _Tp& operator*() const& noexcept { return this->_M_get(); } constexpr _Tp& operator*()& noexcept { return this->_M_get(); } constexpr _Tp&& operator*()&& noexcept { return std::move(this->_M_get()); } constexpr const _Tp&& operator*() const&& noexcept { return std::move(this->_M_get()); } constexpr explicit operator bool() const noexcept { return this->_M_is_engaged(); } constexpr bool has_value() const noexcept { return this->_M_is_engaged(); } constexpr const _Tp& value() const& { if (this->_M_is_engaged()) return this->_M_get(); __throw_bad_optional_access(); } constexpr _Tp& value()& { if (this->_M_is_engaged()) return this->_M_get(); __throw_bad_optional_access(); } constexpr _Tp&& value()&& { if (this->_M_is_engaged()) return std::move(this->_M_get()); __throw_bad_optional_access(); } constexpr const _Tp&& value() const&& { if (this->_M_is_engaged()) return std::move(this->_M_get()); __throw_bad_optional_access(); } template<typename _Up> constexpr _Tp value_or(_Up&& __u) const& { static_assert(is_copy_constructible_v<_Tp>); static_assert(is_convertible_v<_Up&&, _Tp>); if (this->_M_is_engaged()) return this->_M_get(); else return static_cast<_Tp>(std::forward<_Up>(__u)); } template<typename _Up> constexpr _Tp value_or(_Up&& __u) && { static_assert(is_move_constructible_v<_Tp>); static_assert(is_convertible_v<_Up&&, _Tp>); if (this->_M_is_engaged()) return std::move(this->_M_get()); else return static_cast<_Tp>(std::forward<_Up>(__u)); } # 1170 "/usr/include/c++/13/optional" 3 constexpr void reset() noexcept { this->_M_reset(); } private: template<typename _Up> friend class optional; template<typename _Fn, typename _Value> explicit constexpr optional(_Optional_func<_Fn> __f, _Value&& __v) { this->_M_payload._M_apply(__f, std::forward<_Value>(__v)); } }; template<typename _Tp> using __optional_relop_t = enable_if_t<is_convertible<_Tp, bool>::value, bool>; template<typename _Tp, typename _Up> using __optional_eq_t = __optional_relop_t< decltype(std::declval<const _Tp&>() == std::declval<const _Up&>()) >; template<typename _Tp, typename _Up> using __optional_ne_t = __optional_relop_t< decltype(std::declval<const _Tp&>() != std::declval<const _Up&>()) >; template<typename _Tp, typename _Up> using __optional_lt_t = __optional_relop_t< decltype(std::declval<const _Tp&>() < std::declval<const _Up&>()) >; template<typename _Tp, typename _Up> using __optional_gt_t = __optional_relop_t< decltype(std::declval<const _Tp&>() > std::declval<const _Up&>()) >; template<typename _Tp, typename _Up> using __optional_le_t = __optional_relop_t< decltype(std::declval<const _Tp&>() <= std::declval<const _Up&>()) >; template<typename _Tp, typename _Up> using __optional_ge_t = __optional_relop_t< decltype(std::declval<const _Tp&>() >= std::declval<const _Up&>()) >; template<typename _Tp, typename _Up> constexpr auto operator==(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) -> __optional_eq_t<_Tp, _Up> { return static_cast<bool>(__lhs) == static_cast<bool>(__rhs) && (!__lhs || *__lhs == *__rhs); } template<typename _Tp, typename _Up> constexpr auto operator!=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) -> __optional_ne_t<_Tp, _Up> { return static_cast<bool>(__lhs) != static_cast<bool>(__rhs) || (static_cast<bool>(__lhs) && *__lhs != *__rhs); } template<typename _Tp, typename _Up> constexpr auto operator<(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) -> __optional_lt_t<_Tp, _Up> { return static_cast<bool>(__rhs) && (!__lhs || *__lhs < *__rhs); } template<typename _Tp, typename _Up> constexpr auto operator>(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) -> __optional_gt_t<_Tp, _Up> { return static_cast<bool>(__lhs) && (!__rhs || *__lhs > *__rhs); } template<typename _Tp, typename _Up> constexpr auto operator<=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) -> __optional_le_t<_Tp, _Up> { return !__lhs || (static_cast<bool>(__rhs) && *__lhs <= *__rhs); } template<typename _Tp, typename _Up> constexpr auto operator>=(const optional<_Tp>& __lhs, const optional<_Up>& __rhs) -> __optional_ge_t<_Tp, _Up> { return !__rhs || (static_cast<bool>(__lhs) && *__lhs >= *__rhs); } template<typename _Tp, three_way_comparable_with<_Tp> _Up> constexpr compare_three_way_result_t<_Tp, _Up> operator<=>(const optional<_Tp>& __x, const optional<_Up>& __y) { return __x && __y ? *__x <=> *__y : bool(__x) <=> bool(__y); } template<typename _Tp> constexpr bool operator==(const optional<_Tp>& __lhs, nullopt_t) noexcept { return !__lhs; } template<typename _Tp> constexpr strong_ordering operator<=>(const optional<_Tp>& __x, nullopt_t) noexcept { return bool(__x) <=> false; } # 1348 "/usr/include/c++/13/optional" 3 template<typename _Tp, typename _Up> constexpr auto operator==(const optional<_Tp>& __lhs, const _Up& __rhs) -> __optional_eq_t<_Tp, _Up> { return __lhs && *__lhs == __rhs; } template<typename _Tp, typename _Up> constexpr auto operator==(const _Up& __lhs, const optional<_Tp>& __rhs) -> __optional_eq_t<_Up, _Tp> { return __rhs && __lhs == *__rhs; } template<typename _Tp, typename _Up> constexpr auto operator!=(const optional<_Tp>& __lhs, const _Up& __rhs) -> __optional_ne_t<_Tp, _Up> { return !__lhs || *__lhs != __rhs; } template<typename _Tp, typename _Up> constexpr auto operator!=(const _Up& __lhs, const optional<_Tp>& __rhs) -> __optional_ne_t<_Up, _Tp> { return !__rhs || __lhs != *__rhs; } template<typename _Tp, typename _Up> constexpr auto operator<(const optional<_Tp>& __lhs, const _Up& __rhs) -> __optional_lt_t<_Tp, _Up> { return !__lhs || *__lhs < __rhs; } template<typename _Tp, typename _Up> constexpr auto operator<(const _Up& __lhs, const optional<_Tp>& __rhs) -> __optional_lt_t<_Up, _Tp> { return __rhs && __lhs < *__rhs; } template<typename _Tp, typename _Up> constexpr auto operator>(const optional<_Tp>& __lhs, const _Up& __rhs) -> __optional_gt_t<_Tp, _Up> { return __lhs && *__lhs > __rhs; } template<typename _Tp, typename _Up> constexpr auto operator>(const _Up& __lhs, const optional<_Tp>& __rhs) -> __optional_gt_t<_Up, _Tp> { return !__rhs || __lhs > *__rhs; } template<typename _Tp, typename _Up> constexpr auto operator<=(const optional<_Tp>& __lhs, const _Up& __rhs) -> __optional_le_t<_Tp, _Up> { return !__lhs || *__lhs <= __rhs; } template<typename _Tp, typename _Up> constexpr auto operator<=(const _Up& __lhs, const optional<_Tp>& __rhs) -> __optional_le_t<_Up, _Tp> { return __rhs && __lhs <= *__rhs; } template<typename _Tp, typename _Up> constexpr auto operator>=(const optional<_Tp>& __lhs, const _Up& __rhs) -> __optional_ge_t<_Tp, _Up> { return __lhs && *__lhs >= __rhs; } template<typename _Tp, typename _Up> constexpr auto operator>=(const _Up& __lhs, const optional<_Tp>& __rhs) -> __optional_ge_t<_Up, _Tp> { return !__rhs || __lhs >= *__rhs; } template<typename _Tp, typename _Up> requires (!__is_optional_v<_Up>) && three_way_comparable_with<_Tp, _Up> constexpr compare_three_way_result_t<_Tp, _Up> operator<=>(const optional<_Tp>& __x, const _Up& __v) { return bool(__x) ? *__x <=> __v : strong_ordering::less; } template<typename _Tp> constexpr inline enable_if_t<is_move_constructible_v<_Tp> && is_swappable_v<_Tp>> swap(optional<_Tp>& __lhs, optional<_Tp>& __rhs) noexcept(noexcept(__lhs.swap(__rhs))) { __lhs.swap(__rhs); } template<typename _Tp> enable_if_t<!(is_move_constructible_v<_Tp> && is_swappable_v<_Tp>)> swap(optional<_Tp>&, optional<_Tp>&) = delete; template<typename _Tp> constexpr enable_if_t<is_constructible_v<decay_t<_Tp>, _Tp>, optional<decay_t<_Tp>>> make_optional(_Tp&& __t) noexcept(is_nothrow_constructible_v<optional<decay_t<_Tp>>, _Tp>) { return optional<decay_t<_Tp>>{ std::forward<_Tp>(__t) }; } template<typename _Tp, typename... _Args> constexpr enable_if_t<is_constructible_v<_Tp, _Args...>, optional<_Tp>> make_optional(_Args&&... __args) noexcept(is_nothrow_constructible_v<_Tp, _Args...>) { return optional<_Tp>{ in_place, std::forward<_Args>(__args)... }; } template<typename _Tp, typename _Up, typename... _Args> constexpr enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>, optional<_Tp>> make_optional(initializer_list<_Up> __il, _Args&&... __args) noexcept(is_nothrow_constructible_v<_Tp, initializer_list<_Up>&, _Args...>) { return optional<_Tp>{ in_place, __il, std::forward<_Args>(__args)... }; } template<typename _Tp, typename _Up = remove_const_t<_Tp>, bool = __poison_hash<_Up>::__enable_hash_call> struct __optional_hash_call_base { size_t operator()(const optional<_Tp>& __t) const noexcept(noexcept(hash<_Up>{}(*__t))) { constexpr size_t __magic_disengaged_hash = static_cast<size_t>(-3333); return __t ? hash<_Up>{}(*__t) : __magic_disengaged_hash; } }; template<typename _Tp, typename _Up> struct __optional_hash_call_base<_Tp, _Up, false> {}; template<typename _Tp> struct hash<optional<_Tp>> : private __poison_hash<remove_const_t<_Tp>>, public __optional_hash_call_base<_Tp> { using result_type [[__deprecated__]] = size_t; using argument_type [[__deprecated__]] = optional<_Tp>; }; template<typename _Tp> struct __is_fast_hash<hash<optional<_Tp>>> : __is_fast_hash<hash<_Tp>> { }; template <typename _Tp> optional(_Tp) -> optional<_Tp>; } # 5 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 # 1 "/usr/include/c++/13/string" 1 3 # 36 "/usr/include/c++/13/string" 3 # 37 "/usr/include/c++/13/string" 3 # 1 "/usr/include/c++/13/bits/requires_hosted.h" 1 3 # 39 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/stringfwd.h" 1 3 # 37 "/usr/include/c++/13/bits/stringfwd.h" 3 # 38 "/usr/include/c++/13/bits/stringfwd.h" 3 # 1 "/usr/include/c++/13/bits/memoryfwd.h" 1 3 # 46 "/usr/include/c++/13/bits/memoryfwd.h" 3 # 47 "/usr/include/c++/13/bits/memoryfwd.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 64 "/usr/include/c++/13/bits/memoryfwd.h" 3 template<typename> class allocator; template<> class allocator<void>; template<typename, typename> struct uses_allocator; template<typename> struct allocator_traits; } # 41 "/usr/include/c++/13/bits/stringfwd.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<class _CharT> struct char_traits; template<> struct char_traits<char>; template<> struct char_traits<wchar_t>; template<> struct char_traits<char8_t>; template<> struct char_traits<char16_t>; template<> struct char_traits<char32_t>; namespace __cxx11 { template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Alloc = allocator<_CharT> > class basic_string; } typedef basic_string<char> string; typedef basic_string<wchar_t> wstring; typedef basic_string<char8_t> u8string; typedef basic_string<char16_t> u16string; typedef basic_string<char32_t> u32string; } # 42 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/char_traits.h" 1 3 # 37 "/usr/include/c++/13/bits/char_traits.h" 3 # 38 "/usr/include/c++/13/bits/char_traits.h" 3 # 1 "/usr/include/c++/13/bits/postypes.h" 1 3 # 38 "/usr/include/c++/13/bits/postypes.h" 3 # 39 "/usr/include/c++/13/bits/postypes.h" 3 # 1 "/usr/include/c++/13/cwchar" 1 3 # 39 "/usr/include/c++/13/cwchar" 3 # 40 "/usr/include/c++/13/cwchar" 3 # 1 "/usr/include/wchar.h" 1 3 4 # 27 "/usr/include/wchar.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 28 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 1 3 4 # 74 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 3 4 typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__))); # 86 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 3 4 typedef __float128 _Float128; # 119 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/long-double.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 2 3 4 # 214 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 3 4 typedef float _Float32; # 251 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 3 4 typedef double _Float64; # 268 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 3 4 typedef double _Float32x; # 285 "/usr/include/x86_64-linux-gnu/bits/floatn-common.h" 3 4 typedef long double _Float64x; # 120 "/usr/include/x86_64-linux-gnu/bits/floatn.h" 2 3 4 # 31 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 36 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h" 1 3 4 # 40 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h" 3 4 typedef __builtin_va_list __gnuc_va_list; # 39 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wchar.h" 1 3 4 # 41 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/wint_t.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/types/wint_t.h" 3 4 typedef unsigned int wint_t; # 42 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h" 1 3 4 # 13 "/usr/include/x86_64-linux-gnu/bits/types/__mbstate_t.h" 3 4 typedef struct { int __count; union { unsigned int __wch; char __wchb[4]; } __value; } __mbstate_t; # 5 "/usr/include/x86_64-linux-gnu/bits/types/mbstate_t.h" 2 3 4 typedef __mbstate_t mbstate_t; # 43 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__FILE.h" 1 3 4 struct _IO_FILE; typedef struct _IO_FILE __FILE; # 44 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/FILE.h" 1 3 4 struct _IO_FILE; typedef struct _IO_FILE FILE; # 47 "/usr/include/wchar.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types/__locale_t.h" 3 4 struct __locale_struct { struct __locale_data *__locales[13]; const unsigned short int *__ctype_b; const int *__ctype_tolower; const int *__ctype_toupper; const char *__names[13]; }; typedef struct __locale_struct *__locale_t; # 23 "/usr/include/x86_64-linux-gnu/bits/types/locale_t.h" 2 3 4 typedef __locale_t locale_t; # 50 "/usr/include/wchar.h" 2 3 4 # 79 "/usr/include/wchar.h" 3 4 extern "C" { struct tm; extern wchar_t *wcscpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern wchar_t *wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern wchar_t *wcscat (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern wchar_t *wcsncat (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true); extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) noexcept (true); extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2, size_t __n, locale_t __loc) noexcept (true); extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) noexcept (true); extern size_t wcsxfrm (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true); extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2, locale_t __loc) noexcept (true); extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2, size_t __n, locale_t __loc) noexcept (true); extern wchar_t *wcsdup (const wchar_t *__s) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcschr") __attribute__ ((__pure__)); extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc) noexcept (true) __asm ("wcsrchr") __attribute__ ((__pure__)); # 182 "/usr/include/wchar.h" 3 4 extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc) noexcept (true) __attribute__ ((__pure__)); extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject) noexcept (true) __attribute__ ((__pure__)); extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept) noexcept (true) __attribute__ ((__pure__)); extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept) noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs, const wchar_t *__accept) noexcept (true) __asm ("wcspbrk") __attribute__ ((__pure__)); extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcsstr") __attribute__ ((__pure__)); extern wchar_t *wcstok (wchar_t *__restrict __s, const wchar_t *__restrict __delim, wchar_t **__restrict __ptr) noexcept (true); extern size_t wcslen (const wchar_t *__s) noexcept (true) __attribute__ ((__pure__)); extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack, const wchar_t *__needle) noexcept (true) __asm ("wcswcs") __attribute__ ((__pure__)); # 241 "/usr/include/wchar.h" 3 4 extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen) noexcept (true) __attribute__ ((__pure__)); extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, size_t __n) noexcept (true) __asm ("wmemchr") __attribute__ ((__pure__)); extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)); extern wchar_t *wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true); extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n) noexcept (true); extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) noexcept (true); extern wchar_t *wmempcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, size_t __n) noexcept (true); extern wint_t btowc (int __c) noexcept (true); extern int wctob (wint_t __c) noexcept (true); extern int mbsinit (const mbstate_t *__ps) noexcept (true) __attribute__ ((__pure__)); extern size_t mbrtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n, mbstate_t *__restrict __p) noexcept (true); extern size_t wcrtomb (char *__restrict __s, wchar_t __wc, mbstate_t *__restrict __ps) noexcept (true); extern size_t __mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true); extern size_t mbrlen (const char *__restrict __s, size_t __n, mbstate_t *__restrict __ps) noexcept (true); # 338 "/usr/include/wchar.h" 3 4 extern size_t mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern size_t wcsrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern size_t mbsnrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __nmc, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern size_t wcsnrtombs (char *__restrict __dst, const wchar_t **__restrict __src, size_t __nwc, size_t __len, mbstate_t *__restrict __ps) noexcept (true); extern int wcwidth (wchar_t __c) noexcept (true); extern int wcswidth (const wchar_t *__s, size_t __n) noexcept (true); extern double wcstod (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern float wcstof (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern long double wcstold (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); # 397 "/usr/include/wchar.h" 3 4 extern _Float32 wcstof32 (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float64 wcstof64 (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float128 wcstof128 (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float32x wcstof32x (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); extern _Float64x wcstof64x (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr) noexcept (true); # 429 "/usr/include/wchar.h" 3 4 extern long int wcstol (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); extern unsigned long int wcstoul (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern long long int wcstoll (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern long long int wcstoq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); __extension__ extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base) noexcept (true); extern long int wcstol_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); __extension__ extern long long int wcstoll_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); __extension__ extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, int __base, locale_t __loc) noexcept (true); extern double wcstod_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern float wcstof_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern long double wcstold_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); # 512 "/usr/include/wchar.h" 3 4 extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float128 wcstof128_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); extern _Float64x wcstof64x_l (const wchar_t *__restrict __nptr, wchar_t **__restrict __endptr, locale_t __loc) noexcept (true); # 552 "/usr/include/wchar.h" 3 4 extern wchar_t *wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) noexcept (true); extern wchar_t *wcpncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) noexcept (true); # 581 "/usr/include/wchar.h" 3 4 extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) __attribute__ ((__malloc__)) ; extern int fwide (__FILE *__fp, int __mode) noexcept (true); extern int fwprintf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) ; extern int wprintf (const wchar_t *__restrict __format, ...) ; extern int swprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __format, ...) noexcept (true) ; extern int vfwprintf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vwprintf (const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vswprintf (wchar_t *__restrict __s, size_t __n, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) ; extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) ; extern int wscanf (const wchar_t *__restrict __format, ...) ; extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) ; # 657 "/usr/include/wchar.h" 3 4 extern int fwscanf (__FILE *__restrict __stream, const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_fwscanf") ; extern int wscanf (const wchar_t *__restrict __format, ...) __asm__ ("" "__isoc99_wscanf") ; extern int swscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_swscanf") ; # 688 "/usr/include/wchar.h" 3 4 extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) ; extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) ; extern int vfwscanf (__FILE *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfwscanf") ; extern int vwscanf (const wchar_t *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vwscanf") ; extern int vswscanf (const wchar_t *__restrict __s, const wchar_t *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vswscanf") ; # 744 "/usr/include/wchar.h" 3 4 extern wint_t fgetwc (__FILE *__stream); extern wint_t getwc (__FILE *__stream); extern wint_t getwchar (void); extern wint_t fputwc (wchar_t __wc, __FILE *__stream); extern wint_t putwc (wchar_t __wc, __FILE *__stream); extern wint_t putwchar (wchar_t __wc); extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n, __FILE *__restrict __stream); extern int fputws (const wchar_t *__restrict __ws, __FILE *__restrict __stream); extern wint_t ungetwc (wint_t __wc, __FILE *__stream); # 799 "/usr/include/wchar.h" 3 4 extern wint_t getwc_unlocked (__FILE *__stream); extern wint_t getwchar_unlocked (void); extern wint_t fgetwc_unlocked (__FILE *__stream); extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream); # 825 "/usr/include/wchar.h" 3 4 extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream); extern wint_t putwchar_unlocked (wchar_t __wc); # 835 "/usr/include/wchar.h" 3 4 extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n, __FILE *__restrict __stream); extern int fputws_unlocked (const wchar_t *__restrict __ws, __FILE *__restrict __stream); extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize, const wchar_t *__restrict __format, const struct tm *__restrict __tp) noexcept (true); extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize, const wchar_t *__restrict __format, const struct tm *__restrict __tp, locale_t __loc) noexcept (true); # 875 "/usr/include/wchar.h" 3 4 } # 45 "/usr/include/c++/13/cwchar" 2 3 # 62 "/usr/include/c++/13/cwchar" 3 namespace std { using ::mbstate_t; } # 135 "/usr/include/c++/13/cwchar" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::wint_t; using ::btowc; using ::fgetwc; using ::fgetws; using ::fputwc; using ::fputws; using ::fwide; using ::fwprintf; using ::fwscanf; using ::getwc; using ::getwchar; using ::mbrlen; using ::mbrtowc; using ::mbsinit; using ::mbsrtowcs; using ::putwc; using ::putwchar; using ::swprintf; using ::swscanf; using ::ungetwc; using ::vfwprintf; using ::vfwscanf; using ::vswprintf; using ::vswscanf; using ::vwprintf; using ::vwscanf; using ::wcrtomb; using ::wcscat; using ::wcscmp; using ::wcscoll; using ::wcscpy; using ::wcscspn; using ::wcsftime; using ::wcslen; using ::wcsncat; using ::wcsncmp; using ::wcsncpy; using ::wcsrtombs; using ::wcsspn; using ::wcstod; using ::wcstof; using ::wcstok; using ::wcstol; using ::wcstoul; using ::wcsxfrm; using ::wctob; using ::wmemcmp; using ::wmemcpy; using ::wmemmove; using ::wmemset; using ::wprintf; using ::wscanf; using ::wcschr; using ::wcspbrk; using ::wcsrchr; using ::wcsstr; using ::wmemchr; # 234 "/usr/include/c++/13/cwchar" 3 } } namespace __gnu_cxx { using ::wcstold; # 260 "/usr/include/c++/13/cwchar" 3 using ::wcstoll; using ::wcstoull; } namespace std { using ::__gnu_cxx::wcstold; using ::__gnu_cxx::wcstoll; using ::__gnu_cxx::wcstoull; } # 280 "/usr/include/c++/13/cwchar" 3 namespace std { using std::wcstof; using std::vfwscanf; using std::vswscanf; using std::vwscanf; using std::wcstold; using std::wcstoll; using std::wcstoull; } # 41 "/usr/include/c++/13/bits/postypes.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 62 "/usr/include/c++/13/bits/postypes.h" 3 typedef long int streamoff; typedef ptrdiff_t streamsize; # 81 "/usr/include/c++/13/bits/postypes.h" 3 template<typename _StateT> class fpos { private: streamoff _M_off; _StateT _M_state; public: fpos() : _M_off(0), _M_state() { } # 103 "/usr/include/c++/13/bits/postypes.h" 3 fpos(streamoff __off) : _M_off(__off), _M_state() { } fpos(const fpos&) = default; fpos& operator=(const fpos&) = default; ~fpos() = default; operator streamoff() const { return _M_off; } void state(_StateT __st) { _M_state = __st; } _StateT state() const { return _M_state; } fpos& operator+=(streamoff __off) { _M_off += __off; return *this; } fpos& operator-=(streamoff __off) { _M_off -= __off; return *this; } fpos operator+(streamoff __off) const { fpos __pos(*this); __pos += __off; return __pos; } fpos operator-(streamoff __off) const { fpos __pos(*this); __pos -= __off; return __pos; } streamoff operator-(const fpos& __other) const { return _M_off - __other._M_off; } }; template<typename _StateT> inline bool operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) { return streamoff(__lhs) == streamoff(__rhs); } template<typename _StateT> inline bool operator!=(const fpos<_StateT>& __lhs, const fpos<_StateT>& __rhs) { return streamoff(__lhs) != streamoff(__rhs); } typedef fpos<mbstate_t> streampos; typedef fpos<mbstate_t> wstreampos; typedef fpos<mbstate_t> u8streampos; typedef fpos<mbstate_t> u16streampos; typedef fpos<mbstate_t> u32streampos; } # 43 "/usr/include/c++/13/bits/char_traits.h" 2 3 # 1 "/usr/include/c++/13/cwchar" 1 3 # 39 "/usr/include/c++/13/cwchar" 3 # 40 "/usr/include/c++/13/cwchar" 3 # 47 "/usr/include/c++/13/bits/char_traits.h" 2 3 # 64 "/usr/include/c++/13/bits/char_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 68 "/usr/include/c++/13/bits/char_traits.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-overflow" #pragma GCC diagnostic ignored "-Wstringop-overread" #pragma GCC diagnostic ignored "-Warray-bounds" # 83 "/usr/include/c++/13/bits/char_traits.h" 3 template<typename _CharT> struct _Char_types { typedef unsigned long int_type; typedef std::streampos pos_type; typedef std::streamoff off_type; typedef std::mbstate_t state_type; }; # 110 "/usr/include/c++/13/bits/char_traits.h" 3 template<typename _CharT> struct char_traits { typedef _CharT char_type; typedef typename _Char_types<_CharT>::int_type int_type; typedef typename _Char_types<_CharT>::pos_type pos_type; typedef typename _Char_types<_CharT>::off_type off_type; typedef typename _Char_types<_CharT>::state_type state_type; using comparison_category = std::strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, std::size_t __n); static constexpr std::size_t length(const char_type* __s); static constexpr const char_type* find(const char_type* __s, std::size_t __n, const char_type& __a); static constexpr char_type* move(char_type* __s1, const char_type* __s2, std::size_t __n); static constexpr char_type* copy(char_type* __s1, const char_type* __s2, std::size_t __n); static constexpr char_type* assign(char_type* __s, std::size_t __n, char_type __a); static constexpr char_type to_char_type(const int_type& __c) { return static_cast<char_type>(__c); } static constexpr int_type to_int_type(const char_type& __c) { return static_cast<int_type>(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) { return __c1 == __c2; } static constexpr int_type eof() { return static_cast<int_type>(-1); } static constexpr int_type not_eof(const int_type& __c) { return !eq_int_type(__c, eof()) ? __c : to_int_type(char_type()); } }; template<typename _CharT> constexpr int char_traits<_CharT>:: compare(const char_type* __s1, const char_type* __s2, std::size_t __n) { for (std::size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } template<typename _CharT> constexpr std::size_t char_traits<_CharT>:: length(const char_type* __p) { std::size_t __i = 0; while (!eq(__p[__i], char_type())) ++__i; return __i; } template<typename _CharT> constexpr const typename char_traits<_CharT>::char_type* char_traits<_CharT>:: find(const char_type* __s, std::size_t __n, const char_type& __a) { for (std::size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } template<typename _CharT> constexpr typename char_traits<_CharT>::char_type* char_traits<_CharT>:: move(char_type* __s1, const char_type* __s2, std::size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) { if (__s1 == __s2) return __s1; const auto __end = __s2 + __n - 1; bool __overlap = false; for (std::size_t __i = 0; __i < __n - 1; ++__i) { if (__s1 + __i == __end) { __overlap = true; break; } } if (__overlap) { do { --__n; assign(__s1[__n], __s2[__n]); } while (__n > 0); } else copy(__s1, __s2, __n); return __s1; } __builtin_memmove(__s1, __s2, __n * sizeof(char_type)); return __s1; } template<typename _CharT> constexpr typename char_traits<_CharT>::char_type* char_traits<_CharT>:: copy(char_type* __s1, const char_type* __s2, std::size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) { for (std::size_t __i = 0; __i < __n; ++__i) std::construct_at(__s1 + __i, __s2[__i]); return __s1; } __builtin_memcpy(__s1, __s2, __n * sizeof(char_type)); return __s1; } template<typename _CharT> constexpr typename char_traits<_CharT>::char_type* char_traits<_CharT>:: assign(char_type* __s, std::size_t __n, char_type __a) { if (std::__is_constant_evaluated()) { for (std::size_t __i = 0; __i < __n; ++__i) std::construct_at(__s + __i, __a); return __s; } if constexpr (sizeof(_CharT) == 1 && __is_trivial(_CharT)) { if (__n) { unsigned char __c; __builtin_memcpy(&__c, __builtin_addressof(__a), 1); __builtin_memset(__s, __c, __n); } } else { for (std::size_t __i = 0; __i < __n; ++__i) __s[__i] = __a; } return __s; } } namespace std __attribute__ ((__visibility__ ("default"))) { # 340 "/usr/include/c++/13/bits/char_traits.h" 3 template<typename _CharT> struct char_traits : public __gnu_cxx::char_traits<_CharT> { }; template<> struct char_traits<char> { typedef char char_type; typedef int int_type; typedef streampos pos_type; typedef streamoff off_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return (static_cast<unsigned char>(__c1) < static_cast<unsigned char>(__c2)); } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) { for (size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } return __builtin_memcmp(__s1, __s2, __n); } static constexpr size_t length(const char_type* __s) { if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::length(__s); return __builtin_strlen(__s); } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::find(__s, __n, __a); return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::move(__s1, __s2, __n); return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::copy(__s1, __s2, __n); return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { if (__n == 0) return __s; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::assign(__s, __n, __a); return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } static constexpr char_type to_char_type(const int_type& __c) noexcept { return static_cast<char_type>(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return static_cast<int_type>(static_cast<unsigned char>(__c)); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast<int_type>(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return (__c == eof()) ? 0 : __c; } }; template<> struct char_traits<wchar_t> { typedef wchar_t char_type; typedef wint_t int_type; typedef streamoff off_type; typedef wstreampos pos_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::compare(__s1, __s2, __n); return wmemcmp(__s1, __s2, __n); } static constexpr size_t length(const char_type* __s) { if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::length(__s); return wcslen(__s); } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::find(__s, __n, __a); return wmemchr(__s, __a, __n); } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::move(__s1, __s2, __n); return wmemmove(__s1, __s2, __n); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::copy(__s1, __s2, __n); return wmemcpy(__s1, __s2, __n); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { if (__n == 0) return __s; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::assign(__s, __n, __a); return wmemset(__s, __a, __n); } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return int_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast<int_type>((0xffffffffu)); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; template<> struct char_traits<char8_t> { typedef char8_t char_type; typedef unsigned int int_type; typedef u8streampos pos_type; typedef streamoff off_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::compare(__s1, __s2, __n); return __builtin_memcmp(__s1, __s2, __n); } static constexpr size_t length(const char_type* __s) { if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::length(__s); size_t __i = 0; while (!eq(__s[__i], char_type())) ++__i; return __i; } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { if (__n == 0) return 0; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::find(__s, __n, __a); return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::move(__s1, __s2, __n); return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::copy(__s1, __s2, __n); return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { if (__n == 0) return __s; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::assign(__s, __n, __a); return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return int_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast<int_type>(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; } namespace std __attribute__ ((__visibility__ ("default"))) { template<> struct char_traits<char16_t> { typedef char16_t char_type; typedef short unsigned int int_type; typedef streamoff off_type; typedef u16streampos pos_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { for (size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } static constexpr size_t length(const char_type* __s) { size_t __i = 0; while (!eq(__s[__i], char_type())) ++__i; return __i; } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { for (size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::move(__s1, __s2, __n); return (static_cast<char_type*> (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::copy(__s1, __s2, __n); return (static_cast<char_type*> (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { for (size_t __i = 0; __i < __n; ++__i) assign(__s[__i], __a); return __s; } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type to_int_type(const char_type& __c) noexcept { return __c == eof() ? int_type(0xfffd) : int_type(__c); } static constexpr int_type eof() noexcept { return static_cast<int_type>(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; template<> struct char_traits<char32_t> { typedef char32_t char_type; typedef unsigned int int_type; typedef streamoff off_type; typedef u32streampos pos_type; typedef mbstate_t state_type; using comparison_category = strong_ordering; static constexpr void assign(char_type& __c1, const char_type& __c2) noexcept { if (std::__is_constant_evaluated()) std::construct_at(__builtin_addressof(__c1), __c2); else __c1 = __c2; } static constexpr bool eq(const char_type& __c1, const char_type& __c2) noexcept { return __c1 == __c2; } static constexpr bool lt(const char_type& __c1, const char_type& __c2) noexcept { return __c1 < __c2; } static constexpr int compare(const char_type* __s1, const char_type* __s2, size_t __n) { for (size_t __i = 0; __i < __n; ++__i) if (lt(__s1[__i], __s2[__i])) return -1; else if (lt(__s2[__i], __s1[__i])) return 1; return 0; } static constexpr size_t length(const char_type* __s) { size_t __i = 0; while (!eq(__s[__i], char_type())) ++__i; return __i; } static constexpr const char_type* find(const char_type* __s, size_t __n, const char_type& __a) { for (size_t __i = 0; __i < __n; ++__i) if (eq(__s[__i], __a)) return __s + __i; return 0; } static constexpr char_type* move(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::move(__s1, __s2, __n); return (static_cast<char_type*> (__builtin_memmove(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* copy(char_type* __s1, const char_type* __s2, size_t __n) { if (__n == 0) return __s1; if (std::__is_constant_evaluated()) return __gnu_cxx::char_traits<char_type>::copy(__s1, __s2, __n); return (static_cast<char_type*> (__builtin_memcpy(__s1, __s2, __n * sizeof(char_type)))); } static constexpr char_type* assign(char_type* __s, size_t __n, char_type __a) { for (size_t __i = 0; __i < __n; ++__i) assign(__s[__i], __a); return __s; } static constexpr char_type to_char_type(const int_type& __c) noexcept { return char_type(__c); } static constexpr int_type to_int_type(const char_type& __c) noexcept { return int_type(__c); } static constexpr bool eq_int_type(const int_type& __c1, const int_type& __c2) noexcept { return __c1 == __c2; } static constexpr int_type eof() noexcept { return static_cast<int_type>(-1); } static constexpr int_type not_eof(const int_type& __c) noexcept { return eq_int_type(__c, eof()) ? 0 : __c; } }; namespace __detail { template<typename _ChTraits> constexpr auto __char_traits_cmp_cat(int __cmp) noexcept { if constexpr (requires { typename _ChTraits::comparison_category; }) { using _Cat = typename _ChTraits::comparison_category; static_assert( !is_void_v<common_comparison_category_t<_Cat>> ); return static_cast<_Cat>(__cmp <=> 0); } else return static_cast<weak_ordering>(__cmp <=> 0); } } #pragma GCC diagnostic pop } # 43 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/allocator.h" 1 3 # 46 "/usr/include/c++/13/bits/allocator.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h" 1 3 # 33 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h" 3 # 1 "/usr/include/c++/13/bits/new_allocator.h" 1 3 # 35 "/usr/include/c++/13/bits/new_allocator.h" 3 # 1 "/usr/include/c++/13/bits/functexcept.h" 1 3 # 42 "/usr/include/c++/13/bits/functexcept.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { void __throw_bad_exception(void) __attribute__((__noreturn__)); void __throw_bad_alloc(void) __attribute__((__noreturn__)); void __throw_bad_array_new_length(void) __attribute__((__noreturn__)); void __throw_bad_cast(void) __attribute__((__noreturn__)); void __throw_bad_typeid(void) __attribute__((__noreturn__)); void __throw_logic_error(const char*) __attribute__((__noreturn__)); void __throw_domain_error(const char*) __attribute__((__noreturn__)); void __throw_invalid_argument(const char*) __attribute__((__noreturn__)); void __throw_length_error(const char*) __attribute__((__noreturn__)); void __throw_out_of_range(const char*) __attribute__((__noreturn__)); void __throw_out_of_range_fmt(const char*, ...) __attribute__((__noreturn__)) __attribute__((__format__(__gnu_printf__, 1, 2))); void __throw_runtime_error(const char*) __attribute__((__noreturn__)); void __throw_range_error(const char*) __attribute__((__noreturn__)); void __throw_overflow_error(const char*) __attribute__((__noreturn__)); void __throw_underflow_error(const char*) __attribute__((__noreturn__)); void __throw_ios_failure(const char*) __attribute__((__noreturn__)); void __throw_ios_failure(const char*, int) __attribute__((__noreturn__)); void __throw_system_error(int) __attribute__((__noreturn__)); void __throw_future_error(int) __attribute__((__noreturn__)); void __throw_bad_function_call() __attribute__((__noreturn__)); # 140 "/usr/include/c++/13/bits/functexcept.h" 3 } # 36 "/usr/include/c++/13/bits/new_allocator.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 62 "/usr/include/c++/13/bits/new_allocator.h" 3 template<typename _Tp> class __new_allocator { public: typedef _Tp value_type; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; # 83 "/usr/include/c++/13/bits/new_allocator.h" 3 typedef std::true_type propagate_on_container_move_assignment; __attribute__((__always_inline__)) constexpr __new_allocator() noexcept { } __attribute__((__always_inline__)) constexpr __new_allocator(const __new_allocator&) noexcept { } template<typename _Tp1> __attribute__((__always_inline__)) constexpr __new_allocator(const __new_allocator<_Tp1>&) noexcept { } # 121 "/usr/include/c++/13/bits/new_allocator.h" 3 [[__nodiscard__]] _Tp* allocate(size_type __n, const void* = static_cast<const void*>(0)) { static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types"); if (__builtin_expect(__n > this->_M_max_size(), false)) { if (__n > (std::size_t(-1) / sizeof(_Tp))) std::__throw_bad_array_new_length(); std::__throw_bad_alloc(); } if (alignof(_Tp) > 16) { std::align_val_t __al = std::align_val_t(alignof(_Tp)); return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp), __al)); } return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp))); } void deallocate(_Tp* __p, size_type __n __attribute__ ((__unused__))) { if (alignof(_Tp) > 16) { ::operator delete((__p), (__n) * sizeof(_Tp), std::align_val_t(alignof(_Tp))); return; } ::operator delete((__p), (__n) * sizeof(_Tp)); } # 209 "/usr/include/c++/13/bits/new_allocator.h" 3 template<typename _Up> friend __attribute__((__always_inline__)) constexpr bool operator==(const __new_allocator&, const __new_allocator<_Up>&) noexcept { return true; } # 223 "/usr/include/c++/13/bits/new_allocator.h" 3 private: __attribute__((__always_inline__)) constexpr size_type _M_max_size() const noexcept { return std::size_t(0x7fffffffffffffffL) / sizeof(_Tp); } }; } # 34 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h" 2 3 namespace std { # 46 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++allocator.h" 3 template<typename _Tp> using __allocator_base = __new_allocator<_Tp>; } # 47 "/usr/include/c++/13/bits/allocator.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 74 "/usr/include/c++/13/bits/allocator.h" 3 template<> class allocator<void> { public: typedef void value_type; typedef size_t size_type; typedef ptrdiff_t difference_type; # 95 "/usr/include/c++/13/bits/allocator.h" 3 using propagate_on_container_move_assignment = true_type; using is_always_equal __attribute__ ((__deprecated__ ("use '" "std::allocator_traits::is_always_equal" "' instead"))) = true_type; allocator() = default; ~allocator() = default; template<typename _Up> __attribute__((__always_inline__)) constexpr allocator(const allocator<_Up>&) noexcept { } }; # 129 "/usr/include/c++/13/bits/allocator.h" 3 template<typename _Tp> class allocator : public __allocator_base<_Tp> { public: typedef _Tp value_type; typedef size_t size_type; typedef ptrdiff_t difference_type; # 152 "/usr/include/c++/13/bits/allocator.h" 3 using propagate_on_container_move_assignment = true_type; using is_always_equal __attribute__ ((__deprecated__ ("use '" "std::allocator_traits::is_always_equal" "' instead"))) = true_type; __attribute__((__always_inline__)) constexpr allocator() noexcept { } __attribute__((__always_inline__)) constexpr allocator(const allocator& __a) noexcept : __allocator_base<_Tp>(__a) { } allocator& operator=(const allocator&) = default; template<typename _Tp1> __attribute__((__always_inline__)) constexpr allocator(const allocator<_Tp1>&) noexcept { } __attribute__((__always_inline__)) constexpr ~allocator() noexcept { } [[nodiscard,__gnu__::__always_inline__]] constexpr _Tp* allocate(size_t __n) { if (std::__is_constant_evaluated()) { if (__builtin_mul_overflow(__n, sizeof(_Tp), &__n)) std::__throw_bad_array_new_length(); return static_cast<_Tp*>(::operator new(__n)); } return __allocator_base<_Tp>::allocate(__n, 0); } [[__gnu__::__always_inline__]] constexpr void deallocate(_Tp* __p, size_t __n) { if (std::__is_constant_evaluated()) { ::operator delete(__p); return; } __allocator_base<_Tp>::deallocate(__p, __n); } friend __attribute__((__always_inline__)) constexpr bool operator==(const allocator&, const allocator&) noexcept { return true; } # 227 "/usr/include/c++/13/bits/allocator.h" 3 }; template<typename _T1, typename _T2> __attribute__((__always_inline__)) inline constexpr bool operator==(const allocator<_T1>&, const allocator<_T2>&) noexcept { return true; } # 254 "/usr/include/c++/13/bits/allocator.h" 3 template<typename _Tp> class allocator<const _Tp> { public: typedef _Tp value_type; template<typename _Up> allocator(const allocator<_Up>&) { } }; template<typename _Tp> class allocator<volatile _Tp> { public: typedef _Tp value_type; template<typename _Up> allocator(const allocator<_Up>&) { } }; template<typename _Tp> class allocator<const volatile _Tp> { public: typedef _Tp value_type; template<typename _Up> allocator(const allocator<_Up>&) { } }; extern template class allocator<char>; extern template class allocator<wchar_t>; } # 44 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/cpp_type_traits.h" 1 3 # 35 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 # 36 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 # 67 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { struct __true_type { }; struct __false_type { }; template<bool> struct __truth_type { typedef __false_type __type; }; template<> struct __truth_type<true> { typedef __true_type __type; }; template<class _Sp, class _Tp> struct __traitor { enum { __value = bool(_Sp::__value) || bool(_Tp::__value) }; typedef typename __truth_type<__value>::__type __type; }; template<typename, typename> struct __are_same { enum { __value = 0 }; typedef __false_type __type; }; template<typename _Tp> struct __are_same<_Tp, _Tp> { enum { __value = 1 }; typedef __true_type __type; }; template<typename _Tp> struct __is_void { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_void<void> { enum { __value = 1 }; typedef __true_type __type; }; template<typename _Tp> struct __is_integer { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_integer<bool> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<char> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<signed char> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<unsigned char> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<wchar_t> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<char8_t> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<char16_t> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<char32_t> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<short> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<unsigned short> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<int> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<unsigned int> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<long> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<unsigned long> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<long long> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_integer<unsigned long long> { enum { __value = 1 }; typedef __true_type __type; }; # 272 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 __extension__ template<> struct __is_integer<__int128> { enum { __value = 1 }; typedef __true_type __type; }; __extension__ template<> struct __is_integer<unsigned __int128> { enum { __value = 1 }; typedef __true_type __type; }; # 289 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 template<typename _Tp> struct __is_floating { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_floating<float> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<double> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_floating<long double> { enum { __value = 1 }; typedef __true_type __type; }; # 366 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 template<typename _Tp> struct __is_pointer { enum { __value = 0 }; typedef __false_type __type; }; template<typename _Tp> struct __is_pointer<_Tp*> { enum { __value = 1 }; typedef __true_type __type; }; template<typename _Tp> struct __is_arithmetic : public __traitor<__is_integer<_Tp>, __is_floating<_Tp> > { }; template<typename _Tp> struct __is_scalar : public __traitor<__is_arithmetic<_Tp>, __is_pointer<_Tp> > { }; template<typename _Tp> struct __is_char { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_char<char> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_char<wchar_t> { enum { __value = 1 }; typedef __true_type __type; }; template<typename _Tp> struct __is_byte { enum { __value = 0 }; typedef __false_type __type; }; template<> struct __is_byte<char> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte<signed char> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte<unsigned char> { enum { __value = 1 }; typedef __true_type __type; }; enum class byte : unsigned char; template<> struct __is_byte<byte> { enum { __value = 1 }; typedef __true_type __type; }; template<> struct __is_byte<char8_t> { enum { __value = 1 }; typedef __true_type __type; }; template<typename> struct iterator_traits; template<typename _Tp> struct __is_nonvolatile_trivially_copyable { enum { __value = __is_trivially_copyable(_Tp) }; }; template<typename _Tp> struct __is_nonvolatile_trivially_copyable<volatile _Tp> { enum { __value = 0 }; }; template<typename _OutputIter, typename _InputIter> struct __memcpyable { enum { __value = 0 }; }; template<typename _Tp> struct __memcpyable<_Tp*, _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template<typename _Tp> struct __memcpyable<_Tp*, const _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template<typename _Iter1, typename _Iter2> struct __memcmpable { enum { __value = 0 }; }; template<typename _Tp> struct __memcmpable<_Tp*, _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template<typename _Tp> struct __memcmpable<const _Tp*, _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template<typename _Tp> struct __memcmpable<_Tp*, const _Tp*> : __is_nonvolatile_trivially_copyable<_Tp> { }; template<typename _Tp, bool _TreatAsBytes = __is_byte<_Tp>::__value > struct __is_memcmp_ordered { static const bool __value = _Tp(-1) > _Tp(1); }; template<typename _Tp> struct __is_memcmp_ordered<_Tp, false> { static const bool __value = false; }; template<typename _Tp, typename _Up, bool = sizeof(_Tp) == sizeof(_Up)> struct __is_memcmp_ordered_with { static const bool __value = __is_memcmp_ordered<_Tp>::__value && __is_memcmp_ordered<_Up>::__value; }; template<typename _Tp, typename _Up> struct __is_memcmp_ordered_with<_Tp, _Up, false> { static const bool __value = false; }; # 579 "/usr/include/c++/13/bits/cpp_type_traits.h" 3 template<> struct __is_memcmp_ordered_with<std::byte, std::byte, true> { static constexpr bool __value = true; }; template<typename _Tp, bool _SameSize> struct __is_memcmp_ordered_with<_Tp, std::byte, _SameSize> { static constexpr bool __value = false; }; template<typename _Up, bool _SameSize> struct __is_memcmp_ordered_with<std::byte, _Up, _SameSize> { static constexpr bool __value = false; }; template<typename _Tp> struct __is_move_iterator { enum { __value = 0 }; typedef __false_type __type; }; template<typename _Iterator> constexpr inline _Iterator __miter_base(_Iterator __it) { return __it; } } } # 45 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/localefwd.h" 1 3 # 37 "/usr/include/c++/13/bits/localefwd.h" 3 # 38 "/usr/include/c++/13/bits/localefwd.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h" 1 3 # 39 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h" 3 # 40 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h" 3 # 1 "/usr/include/c++/13/clocale" 1 3 # 39 "/usr/include/c++/13/clocale" 3 # 40 "/usr/include/c++/13/clocale" 3 # 1 "/usr/include/locale.h" 1 3 4 # 28 "/usr/include/locale.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 29 "/usr/include/locale.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/locale.h" 1 3 4 # 30 "/usr/include/locale.h" 2 3 4 extern "C" { # 51 "/usr/include/locale.h" 3 4 struct lconv { char *decimal_point; char *thousands_sep; char *grouping; char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; char int_p_cs_precedes; char int_p_sep_by_space; char int_n_cs_precedes; char int_n_sep_by_space; char int_p_sign_posn; char int_n_sign_posn; # 118 "/usr/include/locale.h" 3 4 }; extern char *setlocale (int __category, const char *__locale) noexcept (true); extern struct lconv *localeconv (void) noexcept (true); # 141 "/usr/include/locale.h" 3 4 extern locale_t newlocale (int __category_mask, const char *__locale, locale_t __base) noexcept (true); # 176 "/usr/include/locale.h" 3 4 extern locale_t duplocale (locale_t __dataset) noexcept (true); extern void freelocale (locale_t __dataset) noexcept (true); extern locale_t uselocale (locale_t __dataset) noexcept (true); } # 43 "/usr/include/c++/13/clocale" 2 3 # 51 "/usr/include/c++/13/clocale" 3 namespace std { using ::lconv; using ::setlocale; using ::localeconv; } # 42 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { extern "C" __typeof(uselocale) __uselocale; } namespace std __attribute__ ((__visibility__ ("default"))) { typedef __locale_t __c_locale; # 73 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h" 3 inline int __convert_from_v(const __c_locale& __cloc __attribute__ ((__unused__)), char* __out, const int __size __attribute__ ((__unused__)), const char* __fmt, ...) { __c_locale __old = __gnu_cxx::__uselocale(__cloc); # 93 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++locale.h" 3 __builtin_va_list __args; __builtin_va_start(__args, __fmt); const int __ret = __builtin_vsnprintf(__out, __size, __fmt, __args); __builtin_va_end(__args); __gnu_cxx::__uselocale(__old); return __ret; } } # 41 "/usr/include/c++/13/bits/localefwd.h" 2 3 # 1 "/usr/include/c++/13/iosfwd" 1 3 # 36 "/usr/include/c++/13/iosfwd" 3 # 37 "/usr/include/c++/13/iosfwd" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 76 "/usr/include/c++/13/iosfwd" 3 class ios_base; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_ios; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_streambuf; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_istream; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_ostream; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_iostream; namespace __cxx11 { template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Alloc = allocator<_CharT> > class basic_stringbuf; template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Alloc = allocator<_CharT> > class basic_istringstream; template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Alloc = allocator<_CharT> > class basic_ostringstream; template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Alloc = allocator<_CharT> > class basic_stringstream; } template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_filebuf; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_ifstream; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_ofstream; template<typename _CharT, typename _Traits = char_traits<_CharT> > class basic_fstream; template<typename _CharT, typename _Traits = char_traits<_CharT> > class istreambuf_iterator; template<typename _CharT, typename _Traits = char_traits<_CharT> > class ostreambuf_iterator; typedef basic_ios<char> ios; typedef basic_streambuf<char> streambuf; typedef basic_istream<char> istream; typedef basic_ostream<char> ostream; typedef basic_iostream<char> iostream; typedef basic_stringbuf<char> stringbuf; typedef basic_istringstream<char> istringstream; typedef basic_ostringstream<char> ostringstream; typedef basic_stringstream<char> stringstream; typedef basic_filebuf<char> filebuf; typedef basic_ifstream<char> ifstream; typedef basic_ofstream<char> ofstream; typedef basic_fstream<char> fstream; typedef basic_ios<wchar_t> wios; typedef basic_streambuf<wchar_t> wstreambuf; typedef basic_istream<wchar_t> wistream; typedef basic_ostream<wchar_t> wostream; typedef basic_iostream<wchar_t> wiostream; typedef basic_stringbuf<wchar_t> wstringbuf; typedef basic_istringstream<wchar_t> wistringstream; typedef basic_ostringstream<wchar_t> wostringstream; typedef basic_stringstream<wchar_t> wstringstream; typedef basic_filebuf<wchar_t> wfilebuf; typedef basic_ifstream<wchar_t> wifstream; typedef basic_ofstream<wchar_t> wofstream; typedef basic_fstream<wchar_t> wfstream; template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Allocator = allocator<_CharT>> class basic_syncbuf; template<typename _CharT, typename _Traits = char_traits<_CharT>, typename _Allocator = allocator<_CharT>> class basic_osyncstream; using syncbuf = basic_syncbuf<char>; using osyncstream = basic_osyncstream<char>; using wsyncbuf = basic_syncbuf<wchar_t>; using wosyncstream = basic_osyncstream<wchar_t>; # 255 "/usr/include/c++/13/iosfwd" 3 } # 42 "/usr/include/c++/13/bits/localefwd.h" 2 3 # 1 "/usr/include/c++/13/cctype" 1 3 # 39 "/usr/include/c++/13/cctype" 3 # 40 "/usr/include/c++/13/cctype" 3 # 1 "/usr/include/ctype.h" 1 3 4 # 26 "/usr/include/ctype.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 1 3 4 # 19 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/timesize.h" 2 3 4 # 29 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 typedef unsigned char __u_char; typedef unsigned short int __u_short; typedef unsigned int __u_int; typedef unsigned long int __u_long; typedef signed char __int8_t; typedef unsigned char __uint8_t; typedef signed short int __int16_t; typedef unsigned short int __uint16_t; typedef signed int __int32_t; typedef unsigned int __uint32_t; typedef signed long int __int64_t; typedef unsigned long int __uint64_t; typedef __int8_t __int_least8_t; typedef __uint8_t __uint_least8_t; typedef __int16_t __int_least16_t; typedef __uint16_t __uint_least16_t; typedef __int32_t __int_least32_t; typedef __uint32_t __uint_least32_t; typedef __int64_t __int_least64_t; typedef __uint64_t __uint_least64_t; typedef long int __quad_t; typedef unsigned long int __u_quad_t; typedef long int __intmax_t; typedef unsigned long int __uintmax_t; # 141 "/usr/include/x86_64-linux-gnu/bits/types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/typesizes.h" 1 3 4 # 142 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/time64.h" 1 3 4 # 143 "/usr/include/x86_64-linux-gnu/bits/types.h" 2 3 4 typedef unsigned long int __dev_t; typedef unsigned int __uid_t; typedef unsigned int __gid_t; typedef unsigned long int __ino_t; typedef unsigned long int __ino64_t; typedef unsigned int __mode_t; typedef unsigned long int __nlink_t; typedef long int __off_t; typedef long int __off64_t; typedef int __pid_t; typedef struct { int __val[2]; } __fsid_t; typedef long int __clock_t; typedef unsigned long int __rlim_t; typedef unsigned long int __rlim64_t; typedef unsigned int __id_t; typedef long int __time_t; typedef unsigned int __useconds_t; typedef long int __suseconds_t; typedef long int __suseconds64_t; typedef int __daddr_t; typedef int __key_t; typedef int __clockid_t; typedef void * __timer_t; typedef long int __blksize_t; typedef long int __blkcnt_t; typedef long int __blkcnt64_t; typedef unsigned long int __fsblkcnt_t; typedef unsigned long int __fsblkcnt64_t; typedef unsigned long int __fsfilcnt_t; typedef unsigned long int __fsfilcnt64_t; typedef long int __fsword_t; typedef long int __ssize_t; typedef long int __syscall_slong_t; typedef unsigned long int __syscall_ulong_t; typedef __off64_t __loff_t; typedef char *__caddr_t; typedef long int __intptr_t; typedef unsigned int __socklen_t; typedef int __sig_atomic_t; # 27 "/usr/include/ctype.h" 2 3 4 extern "C" { # 39 "/usr/include/ctype.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/endian.h" 1 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/endianness.h" 1 3 4 # 36 "/usr/include/x86_64-linux-gnu/bits/endian.h" 2 3 4 # 40 "/usr/include/ctype.h" 2 3 4 enum { _ISupper = ((0) < 8 ? ((1 << (0)) << 8) : ((1 << (0)) >> 8)), _ISlower = ((1) < 8 ? ((1 << (1)) << 8) : ((1 << (1)) >> 8)), _ISalpha = ((2) < 8 ? ((1 << (2)) << 8) : ((1 << (2)) >> 8)), _ISdigit = ((3) < 8 ? ((1 << (3)) << 8) : ((1 << (3)) >> 8)), _ISxdigit = ((4) < 8 ? ((1 << (4)) << 8) : ((1 << (4)) >> 8)), _ISspace = ((5) < 8 ? ((1 << (5)) << 8) : ((1 << (5)) >> 8)), _ISprint = ((6) < 8 ? ((1 << (6)) << 8) : ((1 << (6)) >> 8)), _ISgraph = ((7) < 8 ? ((1 << (7)) << 8) : ((1 << (7)) >> 8)), _ISblank = ((8) < 8 ? ((1 << (8)) << 8) : ((1 << (8)) >> 8)), _IScntrl = ((9) < 8 ? ((1 << (9)) << 8) : ((1 << (9)) >> 8)), _ISpunct = ((10) < 8 ? ((1 << (10)) << 8) : ((1 << (10)) >> 8)), _ISalnum = ((11) < 8 ? ((1 << (11)) << 8) : ((1 << (11)) >> 8)) }; # 79 "/usr/include/ctype.h" 3 4 extern const unsigned short int **__ctype_b_loc (void) noexcept (true) __attribute__ ((__const__)); extern const __int32_t **__ctype_tolower_loc (void) noexcept (true) __attribute__ ((__const__)); extern const __int32_t **__ctype_toupper_loc (void) noexcept (true) __attribute__ ((__const__)); # 108 "/usr/include/ctype.h" 3 4 extern int isalnum (int) noexcept (true); extern int isalpha (int) noexcept (true); extern int iscntrl (int) noexcept (true); extern int isdigit (int) noexcept (true); extern int islower (int) noexcept (true); extern int isgraph (int) noexcept (true); extern int isprint (int) noexcept (true); extern int ispunct (int) noexcept (true); extern int isspace (int) noexcept (true); extern int isupper (int) noexcept (true); extern int isxdigit (int) noexcept (true); extern int tolower (int __c) noexcept (true); extern int toupper (int __c) noexcept (true); extern int isblank (int) noexcept (true); extern int isctype (int __c, int __mask) noexcept (true); extern int isascii (int __c) noexcept (true); extern int toascii (int __c) noexcept (true); extern int _toupper (int) noexcept (true); extern int _tolower (int) noexcept (true); # 251 "/usr/include/ctype.h" 3 4 extern int isalnum_l (int, locale_t) noexcept (true); extern int isalpha_l (int, locale_t) noexcept (true); extern int iscntrl_l (int, locale_t) noexcept (true); extern int isdigit_l (int, locale_t) noexcept (true); extern int islower_l (int, locale_t) noexcept (true); extern int isgraph_l (int, locale_t) noexcept (true); extern int isprint_l (int, locale_t) noexcept (true); extern int ispunct_l (int, locale_t) noexcept (true); extern int isspace_l (int, locale_t) noexcept (true); extern int isupper_l (int, locale_t) noexcept (true); extern int isxdigit_l (int, locale_t) noexcept (true); extern int isblank_l (int, locale_t) noexcept (true); extern int __tolower_l (int __c, locale_t __l) noexcept (true); extern int tolower_l (int __c, locale_t __l) noexcept (true); extern int __toupper_l (int __c, locale_t __l) noexcept (true); extern int toupper_l (int __c, locale_t __l) noexcept (true); # 327 "/usr/include/ctype.h" 3 4 } # 43 "/usr/include/c++/13/cctype" 2 3 # 62 "/usr/include/c++/13/cctype" 3 namespace std { using ::isalnum; using ::isalpha; using ::iscntrl; using ::isdigit; using ::isgraph; using ::islower; using ::isprint; using ::ispunct; using ::isspace; using ::isupper; using ::isxdigit; using ::tolower; using ::toupper; } namespace std { using ::isblank; } # 43 "/usr/include/c++/13/bits/localefwd.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 55 "/usr/include/c++/13/bits/localefwd.h" 3 class locale; template<typename _Facet> bool has_facet(const locale&) throw(); template<typename _Facet> const _Facet& use_facet(const locale&); template<typename _CharT> bool isspace(_CharT, const locale&); template<typename _CharT> bool isprint(_CharT, const locale&); template<typename _CharT> bool iscntrl(_CharT, const locale&); template<typename _CharT> bool isupper(_CharT, const locale&); template<typename _CharT> bool islower(_CharT, const locale&); template<typename _CharT> bool isalpha(_CharT, const locale&); template<typename _CharT> bool isdigit(_CharT, const locale&); template<typename _CharT> bool ispunct(_CharT, const locale&); template<typename _CharT> bool isxdigit(_CharT, const locale&); template<typename _CharT> bool isalnum(_CharT, const locale&); template<typename _CharT> bool isgraph(_CharT, const locale&); template<typename _CharT> bool isblank(_CharT, const locale&); template<typename _CharT> _CharT toupper(_CharT, const locale&); template<typename _CharT> _CharT tolower(_CharT, const locale&); struct ctype_base; template<typename _CharT> class ctype; template<> class ctype<char>; template<> class ctype<wchar_t>; template<typename _CharT> class ctype_byname; class codecvt_base; template<typename _InternT, typename _ExternT, typename _StateT> class codecvt; template<> class codecvt<char, char, mbstate_t>; template<> class codecvt<wchar_t, char, mbstate_t>; template<> class codecvt<char16_t, char, mbstate_t>; template<> class codecvt<char32_t, char, mbstate_t>; template<> class codecvt<char16_t, char8_t, mbstate_t>; template<> class codecvt<char32_t, char8_t, mbstate_t>; template<typename _InternT, typename _ExternT, typename _StateT> class codecvt_byname; template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > class num_get; template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > class num_put; namespace __cxx11 { template<typename _CharT> class numpunct; template<typename _CharT> class numpunct_byname; } namespace __cxx11 { template<typename _CharT> class collate; template<typename _CharT> class collate_byname; } class time_base; namespace __cxx11 { template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > class time_get; template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > class time_get_byname; } template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > class time_put; template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > class time_put_byname; class money_base; namespace __cxx11 { template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> > class money_get; template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> > class money_put; } namespace __cxx11 { template<typename _CharT, bool _Intl = false> class moneypunct; template<typename _CharT, bool _Intl = false> class moneypunct_byname; } struct messages_base; namespace __cxx11 { template<typename _CharT> class messages; template<typename _CharT> class messages_byname; } } # 46 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/ostream_insert.h" 1 3 # 33 "/usr/include/c++/13/bits/ostream_insert.h" 3 # 34 "/usr/include/c++/13/bits/ostream_insert.h" 3 # 1 "/usr/include/c++/13/bits/cxxabi_forced.h" 1 3 # 34 "/usr/include/c++/13/bits/cxxabi_forced.h" 3 # 35 "/usr/include/c++/13/bits/cxxabi_forced.h" 3 #pragma GCC visibility push(default) namespace __cxxabiv1 { class __forced_unwind { virtual ~__forced_unwind() throw(); virtual void __pure_dummy() = 0; }; } #pragma GCC visibility pop # 37 "/usr/include/c++/13/bits/ostream_insert.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> inline void __ostream_write(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; const streamsize __put = __out.rdbuf()->sputn(__s, __n); if (__put != __n) __out.setstate(__ios_base::badbit); } template<typename _CharT, typename _Traits> inline void __ostream_fill(basic_ostream<_CharT, _Traits>& __out, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; const _CharT __c = __out.fill(); for (; __n > 0; --__n) { const typename _Traits::int_type __put = __out.rdbuf()->sputc(__c); if (_Traits::eq_int_type(__put, _Traits::eof())) { __out.setstate(__ios_base::badbit); break; } } } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& __ostream_insert(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s, streamsize __n) { typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef typename __ostream_type::ios_base __ios_base; typename __ostream_type::sentry __cerb(__out); if (__cerb) { try { const streamsize __w = __out.width(); if (__w > __n) { const bool __left = ((__out.flags() & __ios_base::adjustfield) == __ios_base::left); if (!__left) __ostream_fill(__out, __w - __n); if (__out.good()) __ostream_write(__out, __s, __n); if (__left && __out.good()) __ostream_fill(__out, __w - __n); } else __ostream_write(__out, __s, __n); __out.width(0); } catch(__cxxabiv1::__forced_unwind&) { __out._M_setstate(__ios_base::badbit); throw; } catch(...) { __out._M_setstate(__ios_base::badbit); } } return __out; } extern template ostream& __ostream_insert(ostream&, const char*, streamsize); extern template wostream& __ostream_insert(wostream&, const wchar_t*, streamsize); } # 47 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/stl_iterator.h" 1 3 # 65 "/usr/include/c++/13/bits/stl_iterator.h" 3 # 1 "/usr/include/c++/13/ext/type_traits.h" 1 3 # 32 "/usr/include/c++/13/ext/type_traits.h" 3 # 33 "/usr/include/c++/13/ext/type_traits.h" 3 extern "C++" { namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template<bool, typename> struct __enable_if { }; template<typename _Tp> struct __enable_if<true, _Tp> { typedef _Tp __type; }; template<bool _Cond, typename _Iftrue, typename _Iffalse> struct __conditional_type { typedef _Iftrue __type; }; template<typename _Iftrue, typename _Iffalse> struct __conditional_type<false, _Iftrue, _Iffalse> { typedef _Iffalse __type; }; template<typename _Tp> struct __add_unsigned { private: typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type; public: typedef typename __if_type::__type __type; }; template<> struct __add_unsigned<char> { typedef unsigned char __type; }; template<> struct __add_unsigned<signed char> { typedef unsigned char __type; }; template<> struct __add_unsigned<short> { typedef unsigned short __type; }; template<> struct __add_unsigned<int> { typedef unsigned int __type; }; template<> struct __add_unsigned<long> { typedef unsigned long __type; }; template<> struct __add_unsigned<long long> { typedef unsigned long long __type; }; template<> struct __add_unsigned<bool>; template<> struct __add_unsigned<wchar_t>; template<typename _Tp> struct __remove_unsigned { private: typedef __enable_if<std::__is_integer<_Tp>::__value, _Tp> __if_type; public: typedef typename __if_type::__type __type; }; template<> struct __remove_unsigned<char> { typedef signed char __type; }; template<> struct __remove_unsigned<unsigned char> { typedef signed char __type; }; template<> struct __remove_unsigned<unsigned short> { typedef short __type; }; template<> struct __remove_unsigned<unsigned int> { typedef int __type; }; template<> struct __remove_unsigned<unsigned long> { typedef long __type; }; template<> struct __remove_unsigned<unsigned long long> { typedef long long __type; }; template<> struct __remove_unsigned<bool>; template<> struct __remove_unsigned<wchar_t>; template<typename _Type> constexpr inline bool __is_null_pointer(_Type* __ptr) { return __ptr == 0; } template<typename _Type> constexpr inline bool __is_null_pointer(_Type) { return false; } constexpr bool __is_null_pointer(std::nullptr_t) { return true; } template<typename _Tp, bool = std::__is_integer<_Tp>::__value> struct __promote { typedef double __type; }; template<typename _Tp> struct __promote<_Tp, false> { }; template<> struct __promote<long double> { typedef long double __type; }; template<> struct __promote<double> { typedef double __type; }; template<> struct __promote<float> { typedef float __type; }; # 225 "/usr/include/c++/13/ext/type_traits.h" 3 template<typename... _Tp> using __promoted_t = decltype((typename __promote<_Tp>::__type(0) + ...)); template<typename _Tp, typename _Up> using __promote_2 = __promote<__promoted_t<_Tp, _Up>>; template<typename _Tp, typename _Up, typename _Vp> using __promote_3 = __promote<__promoted_t<_Tp, _Up, _Vp>>; template<typename _Tp, typename _Up, typename _Vp, typename _Wp> using __promote_4 = __promote<__promoted_t<_Tp, _Up, _Vp, _Wp>>; # 269 "/usr/include/c++/13/ext/type_traits.h" 3 } } # 66 "/usr/include/c++/13/bits/stl_iterator.h" 2 3 # 88 "/usr/include/c++/13/bits/stl_iterator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template<typename _Cat, typename _Limit, typename _Otherwise = _Cat> using __clamp_iter_cat = __conditional_t<derived_from<_Cat, _Limit>, _Limit, _Otherwise>; template<typename _Tp, typename _Up> concept __different_from = !same_as<remove_cvref_t<_Tp>, remove_cvref_t<_Up>>; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 135 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Iterator> class reverse_iterator : public iterator<typename iterator_traits<_Iterator>::iterator_category, typename iterator_traits<_Iterator>::value_type, typename iterator_traits<_Iterator>::difference_type, typename iterator_traits<_Iterator>::pointer, typename iterator_traits<_Iterator>::reference> { template<typename _Iter> friend class reverse_iterator; template<typename _Iter> static constexpr bool __convertible = !is_same_v<_Iter, _Iterator> && convertible_to<const _Iter&, _Iterator>; protected: _Iterator current; typedef iterator_traits<_Iterator> __traits_type; public: typedef _Iterator iterator_type; typedef typename __traits_type::pointer pointer; using iterator_concept = __conditional_t<random_access_iterator<_Iterator>, random_access_iterator_tag, bidirectional_iterator_tag>; using iterator_category = __detail::__clamp_iter_cat<typename __traits_type::iterator_category, random_access_iterator_tag>; using value_type = iter_value_t<_Iterator>; using difference_type = iter_difference_t<_Iterator>; using reference = iter_reference_t<_Iterator>; # 185 "/usr/include/c++/13/bits/stl_iterator.h" 3 constexpr reverse_iterator() noexcept(noexcept(_Iterator())) : current() { } explicit constexpr reverse_iterator(iterator_type __x) noexcept(noexcept(_Iterator(__x))) : current(__x) { } constexpr reverse_iterator(const reverse_iterator& __x) noexcept(noexcept(_Iterator(__x.current))) : current(__x.current) { } reverse_iterator& operator=(const reverse_iterator&) = default; template<typename _Iter> requires __convertible<_Iter> constexpr reverse_iterator(const reverse_iterator<_Iter>& __x) noexcept(noexcept(_Iterator(__x.current))) : current(__x.current) { } template<typename _Iter> requires __convertible<_Iter> && assignable_from<_Iterator&, const _Iter&> constexpr reverse_iterator& operator=(const reverse_iterator<_Iter>& __x) noexcept(noexcept(current = __x.current)) { current = __x.current; return *this; } [[__nodiscard__]] constexpr iterator_type base() const noexcept(noexcept(_Iterator(current))) { return current; } # 262 "/usr/include/c++/13/bits/stl_iterator.h" 3 [[__nodiscard__]] constexpr reference operator*() const { _Iterator __tmp = current; return *--__tmp; } [[__nodiscard__]] constexpr pointer operator->() const requires is_pointer_v<_Iterator> || requires(const _Iterator __i) { __i.operator->(); } { _Iterator __tmp = current; --__tmp; return _S_to_pointer(__tmp); } constexpr reverse_iterator& operator++() { --current; return *this; } constexpr reverse_iterator operator++(int) { reverse_iterator __tmp = *this; --current; return __tmp; } constexpr reverse_iterator& operator--() { ++current; return *this; } constexpr reverse_iterator operator--(int) { reverse_iterator __tmp = *this; ++current; return __tmp; } [[__nodiscard__]] constexpr reverse_iterator operator+(difference_type __n) const { return reverse_iterator(current - __n); } constexpr reverse_iterator& operator+=(difference_type __n) { current -= __n; return *this; } [[__nodiscard__]] constexpr reverse_iterator operator-(difference_type __n) const { return reverse_iterator(current + __n); } constexpr reverse_iterator& operator-=(difference_type __n) { current += __n; return *this; } [[__nodiscard__]] constexpr reference operator[](difference_type __n) const { return *(*this + __n); } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_Iterator> iter_move(const reverse_iterator& __i) noexcept(is_nothrow_copy_constructible_v<_Iterator> && noexcept(ranges::iter_move(--std::declval<_Iterator&>()))) { auto __tmp = __i.base(); return ranges::iter_move(--__tmp); } template<indirectly_swappable<_Iterator> _Iter2> friend constexpr void iter_swap(const reverse_iterator& __x, const reverse_iterator<_Iter2>& __y) noexcept(is_nothrow_copy_constructible_v<_Iterator> && is_nothrow_copy_constructible_v<_Iter2> && noexcept(ranges::iter_swap(--std::declval<_Iterator&>(), --std::declval<_Iter2&>()))) { auto __xtmp = __x.base(); auto __ytmp = __y.base(); ranges::iter_swap(--__xtmp, --__ytmp); } private: template<typename _Tp> static constexpr _Tp* _S_to_pointer(_Tp* __p) { return __p; } template<typename _Tp> static constexpr pointer _S_to_pointer(_Tp __t) { return __t.operator->(); } }; # 531 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _IteratorL, typename _IteratorR> [[nodiscard]] constexpr bool operator==(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() == __y.base() } -> convertible_to<bool>; } { return __x.base() == __y.base(); } template<typename _IteratorL, typename _IteratorR> [[nodiscard]] constexpr bool operator!=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() != __y.base() } -> convertible_to<bool>; } { return __x.base() != __y.base(); } template<typename _IteratorL, typename _IteratorR> [[nodiscard]] constexpr bool operator<(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() > __y.base() } -> convertible_to<bool>; } { return __x.base() > __y.base(); } template<typename _IteratorL, typename _IteratorR> [[nodiscard]] constexpr bool operator>(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() < __y.base() } -> convertible_to<bool>; } { return __x.base() < __y.base(); } template<typename _IteratorL, typename _IteratorR> [[nodiscard]] constexpr bool operator<=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() >= __y.base() } -> convertible_to<bool>; } { return __x.base() >= __y.base(); } template<typename _IteratorL, typename _IteratorR> [[nodiscard]] constexpr bool operator>=(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) requires requires { { __x.base() <= __y.base() } -> convertible_to<bool>; } { return __x.base() <= __y.base(); } template<typename _IteratorL, three_way_comparable_with<_IteratorL> _IteratorR> [[nodiscard]] constexpr compare_three_way_result_t<_IteratorL, _IteratorR> operator<=>(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) { return __y.base() <=> __x.base(); } template<typename _Iterator> [[nodiscard]] constexpr bool operator==(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) requires requires { { __x.base() == __y.base() } -> convertible_to<bool>; } { return __x.base() == __y.base(); } template<three_way_comparable _Iterator> [[nodiscard]] constexpr compare_three_way_result_t<_Iterator, _Iterator> operator<=>(const reverse_iterator<_Iterator>& __x, const reverse_iterator<_Iterator>& __y) { return __y.base() <=> __x.base(); } # 622 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr auto operator-(const reverse_iterator<_IteratorL>& __x, const reverse_iterator<_IteratorR>& __y) -> decltype(__y.base() - __x.base()) { return __y.base() - __x.base(); } template<typename _Iterator> [[__nodiscard__]] inline constexpr reverse_iterator<_Iterator> operator+(typename reverse_iterator<_Iterator>::difference_type __n, const reverse_iterator<_Iterator>& __x) { return reverse_iterator<_Iterator>(__x.base() - __n); } template<typename _Iterator> inline constexpr reverse_iterator<_Iterator> __make_reverse_iterator(_Iterator __i) { return reverse_iterator<_Iterator>(__i); } template<typename _Iterator> [[__nodiscard__]] inline constexpr reverse_iterator<_Iterator> make_reverse_iterator(_Iterator __i) { return reverse_iterator<_Iterator>(__i); } template<typename _Iterator1, typename _Iterator2> requires (!sized_sentinel_for<_Iterator1, _Iterator2>) inline constexpr bool disable_sized_sentinel_for<reverse_iterator<_Iterator1>, reverse_iterator<_Iterator2>> = true; template<typename _Iterator> constexpr auto __niter_base(reverse_iterator<_Iterator> __it) -> decltype(__make_reverse_iterator(__niter_base(__it.base()))) { return __make_reverse_iterator(__niter_base(__it.base())); } template<typename _Iterator> struct __is_move_iterator<reverse_iterator<_Iterator> > : __is_move_iterator<_Iterator> { }; template<typename _Iterator> constexpr auto __miter_base(reverse_iterator<_Iterator> __it) -> decltype(__make_reverse_iterator(__miter_base(__it.base()))) { return __make_reverse_iterator(__miter_base(__it.base())); } # 697 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Container> class back_insert_iterator : public iterator<output_iterator_tag, void, void, void, void> { protected: _Container* container; public: typedef _Container container_type; using difference_type = ptrdiff_t; explicit constexpr back_insert_iterator(_Container& __x) : container(std::__addressof(__x)) { } # 735 "/usr/include/c++/13/bits/stl_iterator.h" 3 constexpr back_insert_iterator& operator=(const typename _Container::value_type& __value) { container->push_back(__value); return *this; } constexpr back_insert_iterator& operator=(typename _Container::value_type&& __value) { container->push_back(std::move(__value)); return *this; } [[__nodiscard__]] constexpr back_insert_iterator& operator*() { return *this; } constexpr back_insert_iterator& operator++() { return *this; } constexpr back_insert_iterator operator++(int) { return *this; } }; # 782 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Container> [[__nodiscard__]] constexpr inline back_insert_iterator<_Container> back_inserter(_Container& __x) { return back_insert_iterator<_Container>(__x); } # 798 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Container> class front_insert_iterator : public iterator<output_iterator_tag, void, void, void, void> { protected: _Container* container; public: typedef _Container container_type; using difference_type = ptrdiff_t; explicit constexpr front_insert_iterator(_Container& __x) : container(std::__addressof(__x)) { } # 836 "/usr/include/c++/13/bits/stl_iterator.h" 3 constexpr front_insert_iterator& operator=(const typename _Container::value_type& __value) { container->push_front(__value); return *this; } constexpr front_insert_iterator& operator=(typename _Container::value_type&& __value) { container->push_front(std::move(__value)); return *this; } [[__nodiscard__]] constexpr front_insert_iterator& operator*() { return *this; } constexpr front_insert_iterator& operator++() { return *this; } constexpr front_insert_iterator operator++(int) { return *this; } }; # 883 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Container> [[__nodiscard__]] constexpr inline front_insert_iterator<_Container> front_inserter(_Container& __x) { return front_insert_iterator<_Container>(__x); } # 903 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Container> class insert_iterator : public iterator<output_iterator_tag, void, void, void, void> { using _Iter = std::__detail::__range_iter_t<_Container>; protected: _Container* container; _Iter iter; public: typedef _Container container_type; using difference_type = ptrdiff_t; constexpr insert_iterator(_Container& __x, _Iter __i) : container(std::__addressof(__x)), iter(__i) {} # 964 "/usr/include/c++/13/bits/stl_iterator.h" 3 constexpr insert_iterator& operator=(const typename _Container::value_type& __value) { iter = container->insert(iter, __value); ++iter; return *this; } constexpr insert_iterator& operator=(typename _Container::value_type&& __value) { iter = container->insert(iter, std::move(__value)); ++iter; return *this; } [[__nodiscard__]] constexpr insert_iterator& operator*() { return *this; } constexpr insert_iterator& operator++() { return *this; } constexpr insert_iterator& operator++(int) { return *this; } }; #pragma GCC diagnostic pop # 1017 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Container> [[nodiscard]] constexpr insert_iterator<_Container> inserter(_Container& __x, std::__detail::__range_iter_t<_Container> __i) { return insert_iterator<_Container>(__x, __i); } # 1032 "/usr/include/c++/13/bits/stl_iterator.h" 3 } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 1046 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Iterator, typename _Container> class __normal_iterator { protected: _Iterator _M_current; typedef std::iterator_traits<_Iterator> __traits_type; template<typename _Iter> using __convertible_from = std::__enable_if_t<std::is_convertible<_Iter, _Iterator>::value>; public: typedef _Iterator iterator_type; typedef typename __traits_type::iterator_category iterator_category; typedef typename __traits_type::value_type value_type; typedef typename __traits_type::difference_type difference_type; typedef typename __traits_type::reference reference; typedef typename __traits_type::pointer pointer; using iterator_concept = std::__detail::__iter_concept<_Iterator>; constexpr __normal_iterator() noexcept : _M_current(_Iterator()) { } explicit constexpr __normal_iterator(const _Iterator& __i) noexcept : _M_current(__i) { } template<typename _Iter, typename = __convertible_from<_Iter>> constexpr __normal_iterator(const __normal_iterator<_Iter, _Container>& __i) noexcept # 1094 "/usr/include/c++/13/bits/stl_iterator.h" 3 : _M_current(__i.base()) { } constexpr reference operator*() const noexcept { return *_M_current; } constexpr pointer operator->() const noexcept { return _M_current; } constexpr __normal_iterator& operator++() noexcept { ++_M_current; return *this; } constexpr __normal_iterator operator++(int) noexcept { return __normal_iterator(_M_current++); } constexpr __normal_iterator& operator--() noexcept { --_M_current; return *this; } constexpr __normal_iterator operator--(int) noexcept { return __normal_iterator(_M_current--); } constexpr reference operator[](difference_type __n) const noexcept { return _M_current[__n]; } constexpr __normal_iterator& operator+=(difference_type __n) noexcept { _M_current += __n; return *this; } constexpr __normal_iterator operator+(difference_type __n) const noexcept { return __normal_iterator(_M_current + __n); } constexpr __normal_iterator& operator-=(difference_type __n) noexcept { _M_current -= __n; return *this; } constexpr __normal_iterator operator-(difference_type __n) const noexcept { return __normal_iterator(_M_current - __n); } constexpr const _Iterator& base() const noexcept { return _M_current; } }; # 1175 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _IteratorL, typename _IteratorR, typename _Container> [[nodiscard]] constexpr bool operator==(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept(noexcept(__lhs.base() == __rhs.base())) requires requires { { __lhs.base() == __rhs.base() } -> std::convertible_to<bool>; } { return __lhs.base() == __rhs.base(); } template<typename _IteratorL, typename _IteratorR, typename _Container> [[nodiscard]] constexpr std::__detail::__synth3way_t<_IteratorR, _IteratorL> operator<=>(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept(noexcept(std::__detail::__synth3way(__lhs.base(), __rhs.base()))) { return std::__detail::__synth3way(__lhs.base(), __rhs.base()); } template<typename _Iterator, typename _Container> [[nodiscard]] constexpr bool operator==(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) noexcept(noexcept(__lhs.base() == __rhs.base())) requires requires { { __lhs.base() == __rhs.base() } -> std::convertible_to<bool>; } { return __lhs.base() == __rhs.base(); } template<typename _Iterator, typename _Container> [[nodiscard]] constexpr std::__detail::__synth3way_t<_Iterator> operator<=>(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) noexcept(noexcept(std::__detail::__synth3way(__lhs.base(), __rhs.base()))) { return std::__detail::__synth3way(__lhs.base(), __rhs.base()); } # 1316 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _IteratorL, typename _IteratorR, typename _Container> [[__nodiscard__]] constexpr inline auto operator-(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) noexcept -> decltype(__lhs.base() - __rhs.base()) { return __lhs.base() - __rhs.base(); } template<typename _Iterator, typename _Container> [[__nodiscard__]] constexpr inline typename __normal_iterator<_Iterator, _Container>::difference_type operator-(const __normal_iterator<_Iterator, _Container>& __lhs, const __normal_iterator<_Iterator, _Container>& __rhs) noexcept { return __lhs.base() - __rhs.base(); } template<typename _Iterator, typename _Container> [[__nodiscard__]] constexpr inline __normal_iterator<_Iterator, _Container> operator+(typename __normal_iterator<_Iterator, _Container>::difference_type __n, const __normal_iterator<_Iterator, _Container>& __i) noexcept { return __normal_iterator<_Iterator, _Container>(__i.base() + __n); } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Iterator, typename _Container> constexpr _Iterator __niter_base(__gnu_cxx::__normal_iterator<_Iterator, _Container> __it) noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) { return __it.base(); } # 1380 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<semiregular _Sent> class move_sentinel { public: constexpr move_sentinel() noexcept(is_nothrow_default_constructible_v<_Sent>) : _M_last() { } constexpr explicit move_sentinel(_Sent __s) noexcept(is_nothrow_move_constructible_v<_Sent>) : _M_last(std::move(__s)) { } template<typename _S2> requires convertible_to<const _S2&, _Sent> constexpr move_sentinel(const move_sentinel<_S2>& __s) noexcept(is_nothrow_constructible_v<_Sent, const _S2&>) : _M_last(__s.base()) { } template<typename _S2> requires assignable_from<_Sent&, const _S2&> constexpr move_sentinel& operator=(const move_sentinel<_S2>& __s) noexcept(is_nothrow_assignable_v<_Sent, const _S2&>) { _M_last = __s.base(); return *this; } [[nodiscard]] constexpr _Sent base() const noexcept(is_nothrow_copy_constructible_v<_Sent>) { return _M_last; } private: _Sent _M_last; }; namespace __detail { template<typename _Iterator> struct __move_iter_cat { }; template<typename _Iterator> requires requires { typename iterator_traits<_Iterator>::iterator_category; } struct __move_iter_cat<_Iterator> { using iterator_category = __clamp_iter_cat<typename iterator_traits<_Iterator>::iterator_category, random_access_iterator_tag>; }; } # 1448 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Iterator> class move_iterator : public __detail::__move_iter_cat<_Iterator> { _Iterator _M_current; using __traits_type = iterator_traits<_Iterator>; template<typename _Iter2> friend class move_iterator; template<typename _Iter2> static constexpr bool __convertible = !is_same_v<_Iter2, _Iterator> && convertible_to<const _Iter2&, _Iterator>; static auto _S_iter_concept() { if constexpr (random_access_iterator<_Iterator>) return random_access_iterator_tag{}; else if constexpr (bidirectional_iterator<_Iterator>) return bidirectional_iterator_tag{}; else if constexpr (forward_iterator<_Iterator>) return forward_iterator_tag{}; else return input_iterator_tag{}; } public: using iterator_type = _Iterator; using iterator_concept = decltype(_S_iter_concept()); using value_type = iter_value_t<_Iterator>; using difference_type = iter_difference_t<_Iterator>; using pointer = _Iterator; using reference = iter_rvalue_reference_t<_Iterator>; # 1514 "/usr/include/c++/13/bits/stl_iterator.h" 3 constexpr move_iterator() : _M_current() { } explicit constexpr move_iterator(iterator_type __i) : _M_current(std::move(__i)) { } template<typename _Iter> requires __convertible<_Iter> constexpr move_iterator(const move_iterator<_Iter>& __i) : _M_current(__i._M_current) { } template<typename _Iter> requires __convertible<_Iter> && assignable_from<_Iterator&, const _Iter&> constexpr move_iterator& operator=(const move_iterator<_Iter>& __i) { _M_current = __i._M_current; return *this; } [[nodiscard]] constexpr const iterator_type& base() const & noexcept { return _M_current; } [[nodiscard]] constexpr iterator_type base() && { return std::move(_M_current); } [[__nodiscard__]] constexpr reference operator*() const { return ranges::iter_move(_M_current); } [[__nodiscard__]] constexpr pointer operator->() const { return _M_current; } constexpr move_iterator& operator++() { ++_M_current; return *this; } constexpr move_iterator operator++(int) { move_iterator __tmp = *this; ++_M_current; return __tmp; } constexpr void operator++(int) requires (!forward_iterator<_Iterator>) { ++_M_current; } constexpr move_iterator& operator--() { --_M_current; return *this; } constexpr move_iterator operator--(int) { move_iterator __tmp = *this; --_M_current; return __tmp; } [[__nodiscard__]] constexpr move_iterator operator+(difference_type __n) const { return move_iterator(_M_current + __n); } constexpr move_iterator& operator+=(difference_type __n) { _M_current += __n; return *this; } [[__nodiscard__]] constexpr move_iterator operator-(difference_type __n) const { return move_iterator(_M_current - __n); } constexpr move_iterator& operator-=(difference_type __n) { _M_current -= __n; return *this; } [[__nodiscard__]] constexpr reference operator[](difference_type __n) const { return ranges::iter_move(_M_current + __n); } template<sentinel_for<_Iterator> _Sent> [[nodiscard]] friend constexpr bool operator==(const move_iterator& __x, const move_sentinel<_Sent>& __y) { return __x.base() == __y.base(); } template<sized_sentinel_for<_Iterator> _Sent> [[nodiscard]] friend constexpr iter_difference_t<_Iterator> operator-(const move_sentinel<_Sent>& __x, const move_iterator& __y) { return __x.base() - __y.base(); } template<sized_sentinel_for<_Iterator> _Sent> [[nodiscard]] friend constexpr iter_difference_t<_Iterator> operator-(const move_iterator& __x, const move_sentinel<_Sent>& __y) { return __x.base() - __y.base(); } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_Iterator> iter_move(const move_iterator& __i) noexcept(noexcept(ranges::iter_move(__i._M_current))) { return ranges::iter_move(__i._M_current); } template<indirectly_swappable<_Iterator> _Iter2> friend constexpr void iter_swap(const move_iterator& __x, const move_iterator<_Iter2>& __y) noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current))) { return ranges::iter_swap(__x._M_current, __y._M_current); } }; template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr bool operator==(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __x.base() == __y.base() } -> convertible_to<bool>; } { return __x.base() == __y.base(); } template<typename _IteratorL, three_way_comparable_with<_IteratorL> _IteratorR> [[__nodiscard__]] constexpr compare_three_way_result_t<_IteratorL, _IteratorR> operator<=>(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) { return __x.base() <=> __y.base(); } # 1702 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr bool operator<(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __x.base() < __y.base() } -> convertible_to<bool>; } { return __x.base() < __y.base(); } template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr bool operator<=(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __y.base() < __x.base() } -> convertible_to<bool>; } { return !(__y < __x); } template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr bool operator>(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __y.base() < __x.base() } -> convertible_to<bool>; } { return __y < __x; } template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr bool operator>=(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) requires requires { { __x.base() < __y.base() } -> convertible_to<bool>; } { return !(__x < __y); } template<typename _Iterator> [[__nodiscard__]] inline constexpr bool operator==(const move_iterator<_Iterator>& __x, const move_iterator<_Iterator>& __y) { return __x.base() == __y.base(); } template<three_way_comparable _Iterator> [[__nodiscard__]] constexpr compare_three_way_result_t<_Iterator> operator<=>(const move_iterator<_Iterator>& __x, const move_iterator<_Iterator>& __y) { return __x.base() <=> __y.base(); } # 1797 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _IteratorL, typename _IteratorR> [[__nodiscard__]] inline constexpr auto operator-(const move_iterator<_IteratorL>& __x, const move_iterator<_IteratorR>& __y) -> decltype(__x.base() - __y.base()) { return __x.base() - __y.base(); } template<typename _Iterator> [[__nodiscard__]] inline constexpr move_iterator<_Iterator> operator+(typename move_iterator<_Iterator>::difference_type __n, const move_iterator<_Iterator>& __x) { return __x + __n; } template<typename _Iterator> [[__nodiscard__]] inline constexpr move_iterator<_Iterator> make_move_iterator(_Iterator __i) { return move_iterator<_Iterator>(std::move(__i)); } template<typename _Iterator, typename _ReturnType = __conditional_t<__move_if_noexcept_cond <typename iterator_traits<_Iterator>::value_type>::value, _Iterator, move_iterator<_Iterator>>> inline constexpr _ReturnType __make_move_if_noexcept_iterator(_Iterator __i) { return _ReturnType(__i); } template<typename _Tp, typename _ReturnType = __conditional_t<__move_if_noexcept_cond<_Tp>::value, const _Tp*, move_iterator<_Tp*>>> inline constexpr _ReturnType __make_move_if_noexcept_iterator(_Tp* __i) { return _ReturnType(__i); } namespace __detail { template<typename _It> concept __common_iter_has_arrow = indirectly_readable<const _It> && (requires(const _It& __it) { __it.operator->(); } || is_reference_v<iter_reference_t<_It>> || constructible_from<iter_value_t<_It>, iter_reference_t<_It>>); template<typename _It> concept __common_iter_use_postfix_proxy = (!requires (_It& __i) { { *__i++ } -> __can_reference; }) && constructible_from<iter_value_t<_It>, iter_reference_t<_It>> && move_constructible<iter_value_t<_It>>; } template<input_or_output_iterator _It, sentinel_for<_It> _Sent> requires (!same_as<_It, _Sent>) && copyable<_It> class common_iterator { template<typename _Tp, typename _Up> static constexpr bool _S_noexcept1() { if constexpr (is_trivially_default_constructible_v<_Tp>) return is_nothrow_assignable_v<_Tp&, _Up>; else return is_nothrow_constructible_v<_Tp, _Up>; } template<typename _It2, typename _Sent2> static constexpr bool _S_noexcept() { return _S_noexcept1<_It, _It2>() && _S_noexcept1<_Sent, _Sent2>(); } class __arrow_proxy { iter_value_t<_It> _M_keep; constexpr __arrow_proxy(iter_reference_t<_It>&& __x) : _M_keep(std::move(__x)) { } friend class common_iterator; public: constexpr const iter_value_t<_It>* operator->() const noexcept { return std::__addressof(_M_keep); } }; class __postfix_proxy { iter_value_t<_It> _M_keep; constexpr __postfix_proxy(iter_reference_t<_It>&& __x) : _M_keep(std::forward<iter_reference_t<_It>>(__x)) { } friend class common_iterator; public: constexpr const iter_value_t<_It>& operator*() const noexcept { return _M_keep; } }; public: constexpr common_iterator() noexcept(is_nothrow_default_constructible_v<_It>) requires default_initializable<_It> : _M_it(), _M_index(0) { } constexpr common_iterator(_It __i) noexcept(is_nothrow_move_constructible_v<_It>) : _M_it(std::move(__i)), _M_index(0) { } constexpr common_iterator(_Sent __s) noexcept(is_nothrow_move_constructible_v<_Sent>) : _M_sent(std::move(__s)), _M_index(1) { } template<typename _It2, typename _Sent2> requires convertible_to<const _It2&, _It> && convertible_to<const _Sent2&, _Sent> constexpr common_iterator(const common_iterator<_It2, _Sent2>& __x) noexcept(_S_noexcept<const _It2&, const _Sent2&>()) : _M_valueless(), _M_index(__x._M_index) { do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) __builtin_unreachable(); } while (false); if (_M_index == 0) { if constexpr (is_trivially_default_constructible_v<_It>) _M_it = std::move(__x._M_it); else std::construct_at(std::__addressof(_M_it), __x._M_it); } else if (_M_index == 1) { if constexpr (is_trivially_default_constructible_v<_Sent>) _M_sent = std::move(__x._M_sent); else std::construct_at(std::__addressof(_M_sent), __x._M_sent); } } common_iterator(const common_iterator&) = default; constexpr common_iterator(const common_iterator& __x) noexcept(_S_noexcept<const _It&, const _Sent&>()) requires (!is_trivially_copyable_v<_It> || !is_trivially_copyable_v<_Sent>) : _M_valueless(), _M_index(__x._M_index) { if (_M_index == 0) { if constexpr (is_trivially_default_constructible_v<_It>) _M_it = __x._M_it; else std::construct_at(std::__addressof(_M_it), __x._M_it); } else if (_M_index == 1) { if constexpr (is_trivially_default_constructible_v<_Sent>) _M_sent = __x._M_sent; else std::construct_at(std::__addressof(_M_sent), __x._M_sent); } } common_iterator(common_iterator&&) = default; constexpr common_iterator(common_iterator&& __x) noexcept(_S_noexcept<_It, _Sent>()) requires (!is_trivially_copyable_v<_It> || !is_trivially_copyable_v<_Sent>) : _M_valueless(), _M_index(__x._M_index) { if (_M_index == 0) { if constexpr (is_trivially_default_constructible_v<_It>) _M_it = std::move(__x._M_it); else std::construct_at(std::__addressof(_M_it), std::move(__x._M_it)); } else if (_M_index == 1) { if constexpr (is_trivially_default_constructible_v<_Sent>) _M_sent = std::move(__x._M_sent); else std::construct_at(std::__addressof(_M_sent), std::move(__x._M_sent)); } } constexpr common_iterator& operator=(const common_iterator&) = default; constexpr common_iterator& operator=(const common_iterator& __x) noexcept(is_nothrow_copy_assignable_v<_It> && is_nothrow_copy_assignable_v<_Sent> && is_nothrow_copy_constructible_v<_It> && is_nothrow_copy_constructible_v<_Sent>) requires (!is_trivially_copy_assignable_v<_It> || !is_trivially_copy_assignable_v<_Sent>) { _M_assign(__x); return *this; } constexpr common_iterator& operator=(common_iterator&&) = default; constexpr common_iterator& operator=(common_iterator&& __x) noexcept(is_nothrow_move_assignable_v<_It> && is_nothrow_move_assignable_v<_Sent> && is_nothrow_move_constructible_v<_It> && is_nothrow_move_constructible_v<_Sent>) requires (!is_trivially_move_assignable_v<_It> || !is_trivially_move_assignable_v<_Sent>) { _M_assign(std::move(__x)); return *this; } template<typename _It2, typename _Sent2> requires convertible_to<const _It2&, _It> && convertible_to<const _Sent2&, _Sent> && assignable_from<_It&, const _It2&> && assignable_from<_Sent&, const _Sent2&> constexpr common_iterator& operator=(const common_iterator<_It2, _Sent2>& __x) noexcept(is_nothrow_constructible_v<_It, const _It2&> && is_nothrow_constructible_v<_Sent, const _Sent2&> && is_nothrow_assignable_v<_It&, const _It2&> && is_nothrow_assignable_v<_Sent&, const _Sent2&>) { do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) __builtin_unreachable(); } while (false); _M_assign(__x); return *this; } ~common_iterator() = default; constexpr ~common_iterator() requires (!is_trivially_destructible_v<_It> || !is_trivially_destructible_v<_Sent>) { if (_M_index == 0) _M_it.~_It(); else if (_M_index == 1) _M_sent.~_Sent(); } [[nodiscard]] constexpr decltype(auto) operator*() { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) __builtin_unreachable(); } while (false); return *_M_it; } [[nodiscard]] constexpr decltype(auto) operator*() const requires __detail::__dereferenceable<const _It> { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) __builtin_unreachable(); } while (false); return *_M_it; } [[nodiscard]] constexpr auto operator->() const requires __detail::__common_iter_has_arrow<_It> { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) __builtin_unreachable(); } while (false); if constexpr (is_pointer_v<_It> || requires { _M_it.operator->(); }) return _M_it; else if constexpr (is_reference_v<iter_reference_t<_It>>) { auto&& __tmp = *_M_it; return std::__addressof(__tmp); } else return __arrow_proxy{*_M_it}; } constexpr common_iterator& operator++() { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) __builtin_unreachable(); } while (false); ++_M_it; return *this; } constexpr decltype(auto) operator++(int) { do { if (std::__is_constant_evaluated() && !bool(_M_index == 0)) __builtin_unreachable(); } while (false); if constexpr (forward_iterator<_It>) { common_iterator __tmp = *this; ++*this; return __tmp; } else if constexpr (!__detail::__common_iter_use_postfix_proxy<_It>) return _M_it++; else { __postfix_proxy __p(**this); ++*this; return __p; } } template<typename _It2, sentinel_for<_It> _Sent2> requires sentinel_for<_Sent, _It2> friend constexpr bool operator== [[nodiscard]] (const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) { switch(__x._M_index << 2 | __y._M_index) { case 0b0000: case 0b0101: return true; case 0b0001: return __x._M_it == __y._M_sent; case 0b0100: return __x._M_sent == __y._M_it; default: do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_has_value())) __builtin_unreachable(); } while (false); __builtin_unreachable(); } } template<typename _It2, sentinel_for<_It> _Sent2> requires sentinel_for<_Sent, _It2> && equality_comparable_with<_It, _It2> friend constexpr bool operator== [[nodiscard]] (const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) { switch(__x._M_index << 2 | __y._M_index) { case 0b0101: return true; case 0b0000: return __x._M_it == __y._M_it; case 0b0001: return __x._M_it == __y._M_sent; case 0b0100: return __x._M_sent == __y._M_it; default: do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_has_value())) __builtin_unreachable(); } while (false); __builtin_unreachable(); } } template<sized_sentinel_for<_It> _It2, sized_sentinel_for<_It> _Sent2> requires sized_sentinel_for<_Sent, _It2> friend constexpr iter_difference_t<_It2> operator- [[nodiscard]] (const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) { switch(__x._M_index << 2 | __y._M_index) { case 0b0101: return 0; case 0b0000: return __x._M_it - __y._M_it; case 0b0001: return __x._M_it - __y._M_sent; case 0b0100: return __x._M_sent - __y._M_it; default: do { if (std::__is_constant_evaluated() && !bool(__x._M_has_value())) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_has_value())) __builtin_unreachable(); } while (false); __builtin_unreachable(); } } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_It> iter_move(const common_iterator& __i) noexcept(noexcept(ranges::iter_move(std::declval<const _It&>()))) requires input_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__i._M_index == 0)) __builtin_unreachable(); } while (false); return ranges::iter_move(__i._M_it); } template<indirectly_swappable<_It> _It2, typename _Sent2> friend constexpr void iter_swap(const common_iterator& __x, const common_iterator<_It2, _Sent2>& __y) noexcept(noexcept(ranges::iter_swap(std::declval<const _It&>(), std::declval<const _It2&>()))) { do { if (std::__is_constant_evaluated() && !bool(__x._M_index == 0)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__y._M_index == 0)) __builtin_unreachable(); } while (false); return ranges::iter_swap(__x._M_it, __y._M_it); } private: template<input_or_output_iterator _It2, sentinel_for<_It2> _Sent2> requires (!same_as<_It2, _Sent2>) && copyable<_It2> friend class common_iterator; constexpr bool _M_has_value() const noexcept { return _M_index != _S_valueless; } template<typename _CIt> constexpr void _M_assign(_CIt&& __x) { if (_M_index == __x._M_index) { if (_M_index == 0) _M_it = std::forward<_CIt>(__x)._M_it; else if (_M_index == 1) _M_sent = std::forward<_CIt>(__x)._M_sent; } else { if (_M_index == 0) _M_it.~_It(); else if (_M_index == 1) _M_sent.~_Sent(); _M_index = _S_valueless; if (__x._M_index == 0) std::construct_at(std::__addressof(_M_it), std::forward<_CIt>(__x)._M_it); else if (__x._M_index == 1) std::construct_at(std::__addressof(_M_sent), std::forward<_CIt>(__x)._M_sent); _M_index = __x._M_index; } } union { _It _M_it; _Sent _M_sent; unsigned char _M_valueless; }; unsigned char _M_index; static constexpr unsigned char _S_valueless{2}; }; template<typename _It, typename _Sent> struct incrementable_traits<common_iterator<_It, _Sent>> { using difference_type = iter_difference_t<_It>; }; template<input_iterator _It, typename _Sent> struct iterator_traits<common_iterator<_It, _Sent>> { private: template<typename _Iter> struct __ptr { using type = void; }; template<typename _Iter> requires __detail::__common_iter_has_arrow<_Iter> struct __ptr<_Iter> { using _CIter = common_iterator<_Iter, _Sent>; using type = decltype(std::declval<const _CIter&>().operator->()); }; static auto _S_iter_cat() { using _Traits = iterator_traits<_It>; if constexpr (requires { requires derived_from<typename _Traits::iterator_category, forward_iterator_tag>; }) return forward_iterator_tag{}; else return input_iterator_tag{}; } public: using iterator_concept = __conditional_t<forward_iterator<_It>, forward_iterator_tag, input_iterator_tag>; using iterator_category = decltype(_S_iter_cat()); using value_type = iter_value_t<_It>; using difference_type = iter_difference_t<_It>; using pointer = typename __ptr<_It>::type; using reference = iter_reference_t<_It>; }; namespace __detail { template<typename _It> struct __counted_iter_value_type { }; template<indirectly_readable _It> struct __counted_iter_value_type<_It> { using value_type = iter_value_t<_It>; }; template<typename _It> struct __counted_iter_concept { }; template<typename _It> requires requires { typename _It::iterator_concept; } struct __counted_iter_concept<_It> { using iterator_concept = typename _It::iterator_concept; }; template<typename _It> struct __counted_iter_cat { }; template<typename _It> requires requires { typename _It::iterator_category; } struct __counted_iter_cat<_It> { using iterator_category = typename _It::iterator_category; }; } template<input_or_output_iterator _It> class counted_iterator : public __detail::__counted_iter_value_type<_It>, public __detail::__counted_iter_concept<_It>, public __detail::__counted_iter_cat<_It> { public: using iterator_type = _It; using difference_type = iter_difference_t<_It>; constexpr counted_iterator() requires default_initializable<_It> = default; constexpr counted_iterator(_It __i, iter_difference_t<_It> __n) : _M_current(std::move(__i)), _M_length(__n) { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); } template<typename _It2> requires convertible_to<const _It2&, _It> constexpr counted_iterator(const counted_iterator<_It2>& __x) : _M_current(__x._M_current), _M_length(__x._M_length) { } template<typename _It2> requires assignable_from<_It&, const _It2&> constexpr counted_iterator& operator=(const counted_iterator<_It2>& __x) { _M_current = __x._M_current; _M_length = __x._M_length; return *this; } [[nodiscard]] constexpr const _It& base() const & noexcept { return _M_current; } [[nodiscard]] constexpr _It base() && noexcept(is_nothrow_move_constructible_v<_It>) { return std::move(_M_current); } [[nodiscard]] constexpr iter_difference_t<_It> count() const noexcept { return _M_length; } [[nodiscard]] constexpr decltype(auto) operator*() noexcept(noexcept(*_M_current)) { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) __builtin_unreachable(); } while (false); return *_M_current; } [[nodiscard]] constexpr decltype(auto) operator*() const noexcept(noexcept(*_M_current)) requires __detail::__dereferenceable<const _It> { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) __builtin_unreachable(); } while (false); return *_M_current; } [[nodiscard]] constexpr auto operator->() const noexcept requires contiguous_iterator<_It> { return std::to_address(_M_current); } constexpr counted_iterator& operator++() { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) __builtin_unreachable(); } while (false); ++_M_current; --_M_length; return *this; } constexpr decltype(auto) operator++(int) { do { if (std::__is_constant_evaluated() && !bool(_M_length > 0)) __builtin_unreachable(); } while (false); --_M_length; try { return _M_current++; } catch(...) { ++_M_length; throw; } } constexpr counted_iterator operator++(int) requires forward_iterator<_It> { auto __tmp = *this; ++*this; return __tmp; } constexpr counted_iterator& operator--() requires bidirectional_iterator<_It> { --_M_current; ++_M_length; return *this; } constexpr counted_iterator operator--(int) requires bidirectional_iterator<_It> { auto __tmp = *this; --*this; return __tmp; } [[nodiscard]] constexpr counted_iterator operator+(iter_difference_t<_It> __n) const requires random_access_iterator<_It> { return counted_iterator(_M_current + __n, _M_length - __n); } [[nodiscard]] friend constexpr counted_iterator operator+(iter_difference_t<_It> __n, const counted_iterator& __x) requires random_access_iterator<_It> { return __x + __n; } constexpr counted_iterator& operator+=(iter_difference_t<_It> __n) requires random_access_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__n <= _M_length)) __builtin_unreachable(); } while (false); _M_current += __n; _M_length -= __n; return *this; } [[nodiscard]] constexpr counted_iterator operator-(iter_difference_t<_It> __n) const requires random_access_iterator<_It> { return counted_iterator(_M_current - __n, _M_length + __n); } template<common_with<_It> _It2> [[nodiscard]] friend constexpr iter_difference_t<_It2> operator-(const counted_iterator& __x, const counted_iterator<_It2>& __y) { return __y._M_length - __x._M_length; } [[nodiscard]] friend constexpr iter_difference_t<_It> operator-(const counted_iterator& __x, default_sentinel_t) { return -__x._M_length; } [[nodiscard]] friend constexpr iter_difference_t<_It> operator-(default_sentinel_t, const counted_iterator& __y) { return __y._M_length; } constexpr counted_iterator& operator-=(iter_difference_t<_It> __n) requires random_access_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(-__n <= _M_length)) __builtin_unreachable(); } while (false); _M_current -= __n; _M_length += __n; return *this; } [[nodiscard]] constexpr decltype(auto) operator[](iter_difference_t<_It> __n) const noexcept(noexcept(_M_current[__n])) requires random_access_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__n < _M_length)) __builtin_unreachable(); } while (false); return _M_current[__n]; } template<common_with<_It> _It2> [[nodiscard]] friend constexpr bool operator==(const counted_iterator& __x, const counted_iterator<_It2>& __y) { return __x._M_length == __y._M_length; } [[nodiscard]] friend constexpr bool operator==(const counted_iterator& __x, default_sentinel_t) { return __x._M_length == 0; } template<common_with<_It> _It2> [[nodiscard]] friend constexpr strong_ordering operator<=>(const counted_iterator& __x, const counted_iterator<_It2>& __y) { return __y._M_length <=> __x._M_length; } [[nodiscard]] friend constexpr iter_rvalue_reference_t<_It> iter_move(const counted_iterator& __i) noexcept(noexcept(ranges::iter_move(__i._M_current))) requires input_iterator<_It> { do { if (std::__is_constant_evaluated() && !bool(__i._M_length > 0)) __builtin_unreachable(); } while (false); return ranges::iter_move(__i._M_current); } template<indirectly_swappable<_It> _It2> friend constexpr void iter_swap(const counted_iterator& __x, const counted_iterator<_It2>& __y) noexcept(noexcept(ranges::iter_swap(__x._M_current, __y._M_current))) { do { if (std::__is_constant_evaluated() && !bool(__x._M_length > 0 && __y._M_length > 0)) __builtin_unreachable(); } while (false); ranges::iter_swap(__x._M_current, __y._M_current); } private: template<input_or_output_iterator _It2> friend class counted_iterator; _It _M_current = _It(); iter_difference_t<_It> _M_length = 0; }; template<input_iterator _It> requires same_as<__detail::__iter_traits<_It>, iterator_traits<_It>> struct iterator_traits<counted_iterator<_It>> : iterator_traits<_It> { using pointer = __conditional_t<contiguous_iterator<_It>, add_pointer_t<iter_reference_t<_It>>, void>; }; # 2952 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _Iterator> constexpr auto __niter_base(move_iterator<_Iterator> __it) -> decltype(make_move_iterator(__niter_base(__it.base()))) { return make_move_iterator(__niter_base(__it.base())); } template<typename _Iterator> struct __is_move_iterator<move_iterator<_Iterator> > { enum { __value = 1 }; typedef __true_type __type; }; template<typename _Iterator> constexpr auto __miter_base(move_iterator<_Iterator> __it) -> decltype(__miter_base(__it.base())) { return __miter_base(__it.base()); } # 2984 "/usr/include/c++/13/bits/stl_iterator.h" 3 template<typename _InputIterator> using __iter_key_t = remove_const_t< typename iterator_traits<_InputIterator>::value_type::first_type>; template<typename _InputIterator> using __iter_val_t = typename iterator_traits<_InputIterator>::value_type::second_type; template<typename _T1, typename _T2> struct pair; template<typename _InputIterator> using __iter_to_alloc_t = pair<const __iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>>; } # 49 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/stl_function.h" 1 3 # 63 "/usr/include/c++/13/bits/stl_function.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 116 "/usr/include/c++/13/bits/stl_function.h" 3 template<typename _Arg, typename _Result> struct unary_function { typedef _Arg argument_type; typedef _Result result_type; } __attribute__ ((__deprecated__)); template<typename _Arg1, typename _Arg2, typename _Result> struct binary_function { typedef _Arg1 first_argument_type; typedef _Arg2 second_argument_type; typedef _Result result_type; } __attribute__ ((__deprecated__)); # 157 "/usr/include/c++/13/bits/stl_function.h" 3 struct __is_transparent; template<typename _Tp = void> struct plus; template<typename _Tp = void> struct minus; template<typename _Tp = void> struct multiplies; template<typename _Tp = void> struct divides; template<typename _Tp = void> struct modulus; template<typename _Tp = void> struct negate; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp> struct plus : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x + __y; } }; template<typename _Tp> struct minus : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x - __y; } }; template<typename _Tp> struct multiplies : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x * __y; } }; template<typename _Tp> struct divides : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x / __y; } }; template<typename _Tp> struct modulus : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x % __y; } }; template<typename _Tp> struct negate : public unary_function<_Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x) const { return -__x; } }; #pragma GCC diagnostic pop template<> struct plus<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) + std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) + std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) + std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct minus<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) - std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) - std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) - std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct multiplies<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) * std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) * std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) * std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct divides<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) / std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) / std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) / std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct modulus<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) % std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) % std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) % std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct negate<void> { template <typename _Tp> constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(-std::forward<_Tp>(__t))) -> decltype(-std::forward<_Tp>(__t)) { return -std::forward<_Tp>(__t); } typedef __is_transparent is_transparent; }; # 349 "/usr/include/c++/13/bits/stl_function.h" 3 template<typename _Tp = void> struct equal_to; template<typename _Tp = void> struct not_equal_to; template<typename _Tp = void> struct greater; template<typename _Tp = void> struct less; template<typename _Tp = void> struct greater_equal; template<typename _Tp = void> struct less_equal; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp> struct equal_to : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x == __y; } }; template<typename _Tp> struct not_equal_to : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x != __y; } }; template<typename _Tp> struct greater : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x > __y; } }; template<typename _Tp> struct less : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x < __y; } }; template<typename _Tp> struct greater_equal : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x >= __y; } }; template<typename _Tp> struct less_equal : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x <= __y; } }; template<typename _Tp> struct greater<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x > __y; return (long unsigned int)__x > (long unsigned int)__y; } }; template<typename _Tp> struct less<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x < __y; return (long unsigned int)__x < (long unsigned int)__y; } }; template<typename _Tp> struct greater_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x >= __y; return (long unsigned int)__x >= (long unsigned int)__y; } }; template<typename _Tp> struct less_equal<_Tp*> : public binary_function<_Tp*, _Tp*, bool> { constexpr bool operator()(_Tp* __x, _Tp* __y) const noexcept { if (std::__is_constant_evaluated()) return __x <= __y; return (long unsigned int)__x <= (long unsigned int)__y; } }; #pragma GCC diagnostic pop template<> struct equal_to<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) == std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) == std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) == std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct not_equal_to<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) != std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) != std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) != std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct greater<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) > std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) > std::forward<_Up>(__u)) { return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), __ptr_cmp<_Tp, _Up>{}); } template<typename _Tp, typename _Up> constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return greater<common_type_t<_Tp*, _Up*>>{}(__t, __u); } typedef __is_transparent is_transparent; private: template <typename _Tp, typename _Up> static constexpr decltype(auto) _S_cmp(_Tp&& __t, _Up&& __u, false_type) { return std::forward<_Tp>(__t) > std::forward<_Up>(__u); } template <typename _Tp, typename _Up> static constexpr bool _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept { return greater<const volatile void*>{}( static_cast<const volatile void*>(std::forward<_Tp>(__t)), static_cast<const volatile void*>(std::forward<_Up>(__u))); } template<typename _Tp, typename _Up, typename = void> struct __not_overloaded2 : true_type { }; template<typename _Tp, typename _Up> struct __not_overloaded2<_Tp, _Up, __void_t< decltype(std::declval<_Tp>().operator>(std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up, typename = void> struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; template<typename _Tp, typename _Up> struct __not_overloaded<_Tp, _Up, __void_t< decltype(operator>(std::declval<_Tp>(), std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up> using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, is_convertible<_Tp, const volatile void*>, is_convertible<_Up, const volatile void*>>; }; template<> struct less<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) < std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) < std::forward<_Up>(__u)) { return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), __ptr_cmp<_Tp, _Up>{}); } template<typename _Tp, typename _Up> constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return less<common_type_t<_Tp*, _Up*>>{}(__t, __u); } typedef __is_transparent is_transparent; private: template <typename _Tp, typename _Up> static constexpr decltype(auto) _S_cmp(_Tp&& __t, _Up&& __u, false_type) { return std::forward<_Tp>(__t) < std::forward<_Up>(__u); } template <typename _Tp, typename _Up> static constexpr bool _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept { return less<const volatile void*>{}( static_cast<const volatile void*>(std::forward<_Tp>(__t)), static_cast<const volatile void*>(std::forward<_Up>(__u))); } template<typename _Tp, typename _Up, typename = void> struct __not_overloaded2 : true_type { }; template<typename _Tp, typename _Up> struct __not_overloaded2<_Tp, _Up, __void_t< decltype(std::declval<_Tp>().operator<(std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up, typename = void> struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; template<typename _Tp, typename _Up> struct __not_overloaded<_Tp, _Up, __void_t< decltype(operator<(std::declval<_Tp>(), std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up> using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, is_convertible<_Tp, const volatile void*>, is_convertible<_Up, const volatile void*>>; }; template<> struct greater_equal<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) >= std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) >= std::forward<_Up>(__u)) { return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), __ptr_cmp<_Tp, _Up>{}); } template<typename _Tp, typename _Up> constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return greater_equal<common_type_t<_Tp*, _Up*>>{}(__t, __u); } typedef __is_transparent is_transparent; private: template <typename _Tp, typename _Up> static constexpr decltype(auto) _S_cmp(_Tp&& __t, _Up&& __u, false_type) { return std::forward<_Tp>(__t) >= std::forward<_Up>(__u); } template <typename _Tp, typename _Up> static constexpr bool _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept { return greater_equal<const volatile void*>{}( static_cast<const volatile void*>(std::forward<_Tp>(__t)), static_cast<const volatile void*>(std::forward<_Up>(__u))); } template<typename _Tp, typename _Up, typename = void> struct __not_overloaded2 : true_type { }; template<typename _Tp, typename _Up> struct __not_overloaded2<_Tp, _Up, __void_t< decltype(std::declval<_Tp>().operator>=(std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up, typename = void> struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; template<typename _Tp, typename _Up> struct __not_overloaded<_Tp, _Up, __void_t< decltype(operator>=(std::declval<_Tp>(), std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up> using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, is_convertible<_Tp, const volatile void*>, is_convertible<_Up, const volatile void*>>; }; template<> struct less_equal<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) <= std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) <= std::forward<_Up>(__u)) { return _S_cmp(std::forward<_Tp>(__t), std::forward<_Up>(__u), __ptr_cmp<_Tp, _Up>{}); } template<typename _Tp, typename _Up> constexpr bool operator()(_Tp* __t, _Up* __u) const noexcept { return less_equal<common_type_t<_Tp*, _Up*>>{}(__t, __u); } typedef __is_transparent is_transparent; private: template <typename _Tp, typename _Up> static constexpr decltype(auto) _S_cmp(_Tp&& __t, _Up&& __u, false_type) { return std::forward<_Tp>(__t) <= std::forward<_Up>(__u); } template <typename _Tp, typename _Up> static constexpr bool _S_cmp(_Tp&& __t, _Up&& __u, true_type) noexcept { return less_equal<const volatile void*>{}( static_cast<const volatile void*>(std::forward<_Tp>(__t)), static_cast<const volatile void*>(std::forward<_Up>(__u))); } template<typename _Tp, typename _Up, typename = void> struct __not_overloaded2 : true_type { }; template<typename _Tp, typename _Up> struct __not_overloaded2<_Tp, _Up, __void_t< decltype(std::declval<_Tp>().operator<=(std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up, typename = void> struct __not_overloaded : __not_overloaded2<_Tp, _Up> { }; template<typename _Tp, typename _Up> struct __not_overloaded<_Tp, _Up, __void_t< decltype(operator<=(std::declval<_Tp>(), std::declval<_Up>()))>> : false_type { }; template<typename _Tp, typename _Up> using __ptr_cmp = __and_<__not_overloaded<_Tp, _Up>, is_convertible<_Tp, const volatile void*>, is_convertible<_Up, const volatile void*>>; }; # 781 "/usr/include/c++/13/bits/stl_function.h" 3 template<typename _Tp = void> struct logical_and; template<typename _Tp = void> struct logical_or; template<typename _Tp = void> struct logical_not; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp> struct logical_and : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x && __y; } }; template<typename _Tp> struct logical_or : public binary_function<_Tp, _Tp, bool> { constexpr bool operator()(const _Tp& __x, const _Tp& __y) const { return __x || __y; } }; template<typename _Tp> struct logical_not : public unary_function<_Tp, bool> { constexpr bool operator()(const _Tp& __x) const { return !__x; } }; #pragma GCC diagnostic pop template<> struct logical_and<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) && std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) && std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) && std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct logical_or<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) || std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) || std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) || std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template<> struct logical_not<void> { template <typename _Tp> constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(!std::forward<_Tp>(__t))) -> decltype(!std::forward<_Tp>(__t)) { return !std::forward<_Tp>(__t); } typedef __is_transparent is_transparent; }; template<typename _Tp = void> struct bit_and; template<typename _Tp = void> struct bit_or; template<typename _Tp = void> struct bit_xor; template<typename _Tp = void> struct bit_not; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp> struct bit_and : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x & __y; } }; template<typename _Tp> struct bit_or : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x | __y; } }; template<typename _Tp> struct bit_xor : public binary_function<_Tp, _Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x, const _Tp& __y) const { return __x ^ __y; } }; template<typename _Tp> struct bit_not : public unary_function<_Tp, _Tp> { constexpr _Tp operator()(const _Tp& __x) const { return ~__x; } }; #pragma GCC diagnostic pop template <> struct bit_and<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) & std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) & std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) & std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template <> struct bit_or<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) | std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) | std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) | std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template <> struct bit_xor<void> { template <typename _Tp, typename _Up> constexpr auto operator()(_Tp&& __t, _Up&& __u) const noexcept(noexcept(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u))) -> decltype(std::forward<_Tp>(__t) ^ std::forward<_Up>(__u)) { return std::forward<_Tp>(__t) ^ std::forward<_Up>(__u); } typedef __is_transparent is_transparent; }; template <> struct bit_not<void> { template <typename _Tp> constexpr auto operator()(_Tp&& __t) const noexcept(noexcept(~std::forward<_Tp>(__t))) -> decltype(~std::forward<_Tp>(__t)) { return ~std::forward<_Tp>(__t); } typedef __is_transparent is_transparent; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 1023 "/usr/include/c++/13/bits/stl_function.h" 3 template<typename _Predicate> class [[__deprecated__]] unary_negate : public unary_function<typename _Predicate::argument_type, bool> { protected: _Predicate _M_pred; public: constexpr explicit unary_negate(const _Predicate& __x) : _M_pred(__x) { } constexpr bool operator()(const typename _Predicate::argument_type& __x) const { return !_M_pred(__x); } }; template<typename _Predicate> __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) constexpr inline unary_negate<_Predicate> not1(const _Predicate& __pred) { return unary_negate<_Predicate>(__pred); } template<typename _Predicate> class [[__deprecated__]] binary_negate : public binary_function<typename _Predicate::first_argument_type, typename _Predicate::second_argument_type, bool> { protected: _Predicate _M_pred; public: constexpr explicit binary_negate(const _Predicate& __x) : _M_pred(__x) { } constexpr bool operator()(const typename _Predicate::first_argument_type& __x, const typename _Predicate::second_argument_type& __y) const { return !_M_pred(__x, __y); } }; template<typename _Predicate> __attribute__ ((__deprecated__ ("use '" "std::not_fn" "' instead"))) constexpr inline binary_negate<_Predicate> not2(const _Predicate& __pred) { return binary_negate<_Predicate>(__pred); } # 1104 "/usr/include/c++/13/bits/stl_function.h" 3 template<typename _Arg, typename _Result> class pointer_to_unary_function : public unary_function<_Arg, _Result> { protected: _Result (*_M_ptr)(_Arg); public: pointer_to_unary_function() { } explicit pointer_to_unary_function(_Result (*__x)(_Arg)) : _M_ptr(__x) { } _Result operator()(_Arg __x) const { return _M_ptr(__x); } } __attribute__ ((__deprecated__)); template<typename _Arg, typename _Result> __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) inline pointer_to_unary_function<_Arg, _Result> ptr_fun(_Result (*__x)(_Arg)) { return pointer_to_unary_function<_Arg, _Result>(__x); } template<typename _Arg1, typename _Arg2, typename _Result> class pointer_to_binary_function : public binary_function<_Arg1, _Arg2, _Result> { protected: _Result (*_M_ptr)(_Arg1, _Arg2); public: pointer_to_binary_function() { } explicit pointer_to_binary_function(_Result (*__x)(_Arg1, _Arg2)) : _M_ptr(__x) { } _Result operator()(_Arg1 __x, _Arg2 __y) const { return _M_ptr(__x, __y); } } __attribute__ ((__deprecated__)); template<typename _Arg1, typename _Arg2, typename _Result> __attribute__ ((__deprecated__ ("use '" "std::function" "' instead"))) inline pointer_to_binary_function<_Arg1, _Arg2, _Result> ptr_fun(_Result (*__x)(_Arg1, _Arg2)) { return pointer_to_binary_function<_Arg1, _Arg2, _Result>(__x); } template<typename _Tp> struct _Identity : public unary_function<_Tp, _Tp> { _Tp& operator()(_Tp& __x) const { return __x; } const _Tp& operator()(const _Tp& __x) const { return __x; } }; template<typename _Tp> struct _Identity<const _Tp> : _Identity<_Tp> { }; template<typename _Pair> struct _Select1st : public unary_function<_Pair, typename _Pair::first_type> { typename _Pair::first_type& operator()(_Pair& __x) const { return __x.first; } const typename _Pair::first_type& operator()(const _Pair& __x) const { return __x.first; } template<typename _Pair2> typename _Pair2::first_type& operator()(_Pair2& __x) const { return __x.first; } template<typename _Pair2> const typename _Pair2::first_type& operator()(const _Pair2& __x) const { return __x.first; } }; template<typename _Pair> struct _Select2nd : public unary_function<_Pair, typename _Pair::second_type> { typename _Pair::second_type& operator()(_Pair& __x) const { return __x.second; } const typename _Pair::second_type& operator()(const _Pair& __x) const { return __x.second; } }; # 1231 "/usr/include/c++/13/bits/stl_function.h" 3 template<typename _Ret, typename _Tp> class mem_fun_t : public unary_function<_Tp*, _Ret> { public: explicit mem_fun_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) { } _Ret operator()(_Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)(); } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp> class const_mem_fun_t : public unary_function<const _Tp*, _Ret> { public: explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) { } _Ret operator()(const _Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp> class mem_fun_ref_t : public unary_function<_Tp, _Ret> { public: explicit mem_fun_ref_t(_Ret (_Tp::*__pf)()) : _M_f(__pf) { } _Ret operator()(_Tp& __r) const { return (__r.*_M_f)(); } private: _Ret (_Tp::*_M_f)(); } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp> class const_mem_fun_ref_t : public unary_function<_Tp, _Ret> { public: explicit const_mem_fun_ref_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) { } _Ret operator()(const _Tp& __r) const { return (__r.*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp, typename _Arg> class mem_fun1_t : public binary_function<_Tp*, _Arg, _Ret> { public: explicit mem_fun1_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) { } _Ret operator()(_Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg); } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp, typename _Arg> class const_mem_fun1_t : public binary_function<const _Tp*, _Arg, _Ret> { public: explicit const_mem_fun1_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) { } _Ret operator()(const _Tp* __p, _Arg __x) const { return (__p->*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp, typename _Arg> class mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> { public: explicit mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg)) : _M_f(__pf) { } _Ret operator()(_Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg); } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp, typename _Arg> class const_mem_fun1_ref_t : public binary_function<_Tp, _Arg, _Ret> { public: explicit const_mem_fun1_ref_t(_Ret (_Tp::*__pf)(_Arg) const) : _M_f(__pf) { } _Ret operator()(const _Tp& __r, _Arg __x) const { return (__r.*_M_f)(__x); } private: _Ret (_Tp::*_M_f)(_Arg) const; } __attribute__ ((__deprecated__)); template<typename _Ret, typename _Tp> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)()) { return mem_fun_t<_Ret, _Tp>(__f); } template<typename _Ret, typename _Tp> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun_t<_Ret, _Tp> mem_fun(_Ret (_Tp::*__f)() const) { return const_mem_fun_t<_Ret, _Tp>(__f); } template<typename _Ret, typename _Tp> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)()) { return mem_fun_ref_t<_Ret, _Tp>(__f); } template<typename _Ret, typename _Tp> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun_ref_t<_Ret, _Tp> mem_fun_ref(_Ret (_Tp::*__f)() const) { return const_mem_fun_ref_t<_Ret, _Tp>(__f); } template<typename _Ret, typename _Tp, typename _Arg> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg)) { return mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template<typename _Ret, typename _Tp, typename _Arg> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun1_t<_Ret, _Tp, _Arg> mem_fun(_Ret (_Tp::*__f)(_Arg) const) { return const_mem_fun1_t<_Ret, _Tp, _Arg>(__f); } template<typename _Ret, typename _Tp, typename _Arg> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg)) { return mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } template<typename _Ret, typename _Tp, typename _Arg> __attribute__ ((__deprecated__ ("use '" "std::mem_fn" "' instead"))) inline const_mem_fun1_ref_t<_Ret, _Tp, _Arg> mem_fun_ref(_Ret (_Tp::*__f)(_Arg) const) { return const_mem_fun1_ref_t<_Ret, _Tp, _Arg>(__f); } #pragma GCC diagnostic pop template<typename _Func, typename _SfinaeType, typename = __void_t<>> struct __has_is_transparent { }; template<typename _Func, typename _SfinaeType> struct __has_is_transparent<_Func, _SfinaeType, __void_t<typename _Func::is_transparent>> { typedef void type; }; template<typename _Func, typename _SfinaeType> using __has_is_transparent_t = typename __has_is_transparent<_Func, _SfinaeType>::type; } # 1 "/usr/include/c++/13/backward/binders.h" 1 3 # 60 "/usr/include/c++/13/backward/binders.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace std __attribute__ ((__visibility__ ("default"))) { # 107 "/usr/include/c++/13/backward/binders.h" 3 template<typename _Operation> class binder1st : public unary_function<typename _Operation::second_argument_type, typename _Operation::result_type> { protected: _Operation op; typename _Operation::first_argument_type value; public: binder1st(const _Operation& __x, const typename _Operation::first_argument_type& __y) : op(__x), value(__y) { } typename _Operation::result_type operator()(const typename _Operation::second_argument_type& __x) const { return op(value, __x); } typename _Operation::result_type operator()(typename _Operation::second_argument_type& __x) const { return op(value, __x); } } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); template<typename _Operation, typename _Tp> __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) inline binder1st<_Operation> bind1st(const _Operation& __fn, const _Tp& __x) { typedef typename _Operation::first_argument_type _Arg1_type; return binder1st<_Operation>(__fn, _Arg1_type(__x)); } template<typename _Operation> class binder2nd : public unary_function<typename _Operation::first_argument_type, typename _Operation::result_type> { protected: _Operation op; typename _Operation::second_argument_type value; public: binder2nd(const _Operation& __x, const typename _Operation::second_argument_type& __y) : op(__x), value(__y) { } typename _Operation::result_type operator()(const typename _Operation::first_argument_type& __x) const { return op(__x, value); } typename _Operation::result_type operator()(typename _Operation::first_argument_type& __x) const { return op(__x, value); } } __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))); template<typename _Operation, typename _Tp> __attribute__ ((__deprecated__ ("use '" "std::bind" "' instead"))) inline binder2nd<_Operation> bind2nd(const _Operation& __fn, const _Tp& __x) { typedef typename _Operation::second_argument_type _Arg2_type; return binder2nd<_Operation>(__fn, _Arg2_type(__x)); } } #pragma GCC diagnostic pop # 1439 "/usr/include/c++/13/bits/stl_function.h" 2 3 # 50 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/ext/numeric_traits.h" 1 3 # 32 "/usr/include/c++/13/ext/numeric_traits.h" 3 # 33 "/usr/include/c++/13/ext/numeric_traits.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 50 "/usr/include/c++/13/ext/numeric_traits.h" 3 template<typename _Tp> struct __is_integer_nonstrict : public std::__is_integer<_Tp> { using std::__is_integer<_Tp>::__value; enum { __width = __value ? sizeof(_Tp) * 8 : 0 }; }; template<typename _Value> struct __numeric_traits_integer { static_assert(__is_integer_nonstrict<_Value>::__value, "invalid specialization"); static const bool __is_signed = (_Value)(-1) < 0; static const int __digits = __is_integer_nonstrict<_Value>::__width - __is_signed; static const _Value __max = __is_signed ? (((((_Value)1 << (__digits - 1)) - 1) << 1) + 1) : ~(_Value)0; static const _Value __min = __is_signed ? -__max - 1 : (_Value)0; }; template<typename _Value> const _Value __numeric_traits_integer<_Value>::__min; template<typename _Value> const _Value __numeric_traits_integer<_Value>::__max; template<typename _Value> const bool __numeric_traits_integer<_Value>::__is_signed; template<typename _Value> const int __numeric_traits_integer<_Value>::__digits; # 137 "/usr/include/c++/13/ext/numeric_traits.h" 3 template<typename _Tp> using __int_traits = __numeric_traits_integer<_Tp>; # 157 "/usr/include/c++/13/ext/numeric_traits.h" 3 template<typename _Value> struct __numeric_traits_floating { static const int __max_digits10 = (2 + (std::__are_same<_Value, float>::__value ? 24 : std::__are_same<_Value, double>::__value ? 53 : 64) * 643L / 2136); static const bool __is_signed = true; static const int __digits10 = (std::__are_same<_Value, float>::__value ? 6 : std::__are_same<_Value, double>::__value ? 15 : 18); static const int __max_exponent10 = (std::__are_same<_Value, float>::__value ? 38 : std::__are_same<_Value, double>::__value ? 308 : 4932); }; template<typename _Value> const int __numeric_traits_floating<_Value>::__max_digits10; template<typename _Value> const bool __numeric_traits_floating<_Value>::__is_signed; template<typename _Value> const int __numeric_traits_floating<_Value>::__digits10; template<typename _Value> const int __numeric_traits_floating<_Value>::__max_exponent10; template<typename _Value> struct __numeric_traits : public __numeric_traits_integer<_Value> { }; template<> struct __numeric_traits<float> : public __numeric_traits_floating<float> { }; template<> struct __numeric_traits<double> : public __numeric_traits_floating<double> { }; template<> struct __numeric_traits<long double> : public __numeric_traits_floating<long double> { }; # 238 "/usr/include/c++/13/ext/numeric_traits.h" 3 } # 51 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/stl_algobase.h" 1 3 # 64 "/usr/include/c++/13/bits/stl_algobase.h" 3 # 1 "/usr/include/c++/13/bits/stl_pair.h" 1 3 # 69 "/usr/include/c++/13/bits/stl_pair.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 80 "/usr/include/c++/13/bits/stl_pair.h" 3 struct piecewise_construct_t { explicit piecewise_construct_t() = default; }; inline constexpr piecewise_construct_t piecewise_construct = piecewise_construct_t(); template<typename...> class tuple; template<size_t...> struct _Index_tuple; # 163 "/usr/include/c++/13/bits/stl_pair.h" 3 template<typename _U1, typename _U2> class __pair_base { }; # 186 "/usr/include/c++/13/bits/stl_pair.h" 3 template<typename _T1, typename _T2> struct pair : public __pair_base<_T1, _T2> { typedef _T1 first_type; typedef _T2 second_type; _T1 first; _T2 second; constexpr pair(const pair&) = default; constexpr pair(pair&&) = default; template<typename... _Args1, typename... _Args2> constexpr pair(piecewise_construct_t, tuple<_Args1...>, tuple<_Args2...>); constexpr void swap(pair& __p) noexcept(__and_<__is_nothrow_swappable<_T1>, __is_nothrow_swappable<_T2>>::value) { using std::swap; swap(first, __p.first); swap(second, __p.second); } # 234 "/usr/include/c++/13/bits/stl_pair.h" 3 private: template<typename... _Args1, size_t... _Indexes1, typename... _Args2, size_t... _Indexes2> constexpr pair(tuple<_Args1...>&, tuple<_Args2...>&, _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>); public: constexpr explicit(__not_<__and_<__is_implicitly_default_constructible<_T1>, __is_implicitly_default_constructible<_T2>>>()) pair() requires is_default_constructible_v<_T1> && is_default_constructible_v<_T2> : first(), second() { } private: template<typename _U1, typename _U2> static constexpr bool _S_constructible() { if constexpr (is_constructible_v<_T1, _U1>) return is_constructible_v<_T2, _U2>; return false; } template<typename _U1, typename _U2> static constexpr bool _S_nothrow_constructible() { if constexpr (is_nothrow_constructible_v<_T1, _U1>) return is_nothrow_constructible_v<_T2, _U2>; return false; } template<typename _U1, typename _U2> static constexpr bool _S_convertible() { if constexpr (is_convertible_v<_U1, _T1>) return is_convertible_v<_U2, _T2>; return false; } template<typename _U1, typename _U2> static constexpr bool _S_dangles() { if constexpr (__reference_constructs_from_temporary(_T1, _U1&&)) return true; else return __reference_constructs_from_temporary(_T2, _U2&&); } public: constexpr explicit(!_S_convertible<const _T1&, const _T2&>()) pair(const _T1& __x, const _T2& __y) noexcept(_S_nothrow_constructible<const _T1&, const _T2&>()) requires (_S_constructible<const _T1&, const _T2&>()) : first(__x), second(__y) { } template<typename _U1, typename _U2> requires (_S_constructible<_U1, _U2>()) && (!_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(_U1&& __x, _U2&& __y) noexcept(_S_nothrow_constructible<_U1, _U2>()) : first(std::forward<_U1>(__x)), second(std::forward<_U2>(__y)) { } template<typename _U1, typename _U2> requires (_S_constructible<_U1, _U2>()) && (_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(_U1&&, _U2&&) = delete; template<typename _U1, typename _U2> requires (_S_constructible<const _U1&, const _U2&>()) && (!_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<const _U1&, const _U2&>()) pair(const pair<_U1, _U2>& __p) noexcept(_S_nothrow_constructible<const _U1&, const _U2&>()) : first(__p.first), second(__p.second) { } template<typename _U1, typename _U2> requires (_S_constructible<const _U1&, const _U2&>()) && (_S_dangles<const _U1&, const _U2&>()) constexpr explicit(!_S_convertible<const _U1&, const _U2&>()) pair(const pair<_U1, _U2>&) = delete; template<typename _U1, typename _U2> requires (_S_constructible<_U1, _U2>()) && (!_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(pair<_U1, _U2>&& __p) noexcept(_S_nothrow_constructible<_U1, _U2>()) : first(std::forward<_U1>(__p.first)), second(std::forward<_U2>(__p.second)) { } template<typename _U1, typename _U2> requires (_S_constructible<_U1, _U2>()) && (_S_dangles<_U1, _U2>()) constexpr explicit(!_S_convertible<_U1, _U2>()) pair(pair<_U1, _U2>&&) = delete; # 389 "/usr/include/c++/13/bits/stl_pair.h" 3 private: template<typename _U1, typename _U2> static constexpr bool _S_assignable() { if constexpr (is_assignable_v<_T1&, _U1>) return is_assignable_v<_T2&, _U2>; return false; } template<typename _U1, typename _U2> static constexpr bool _S_nothrow_assignable() { if constexpr (is_nothrow_assignable_v<_T1&, _U1>) return is_nothrow_assignable_v<_T2&, _U2>; return false; } public: pair& operator=(const pair&) = delete; constexpr pair& operator=(const pair& __p) noexcept(_S_nothrow_assignable<const _T1&, const _T2&>()) requires (_S_assignable<const _T1&, const _T2&>()) { first = __p.first; second = __p.second; return *this; } constexpr pair& operator=(pair&& __p) noexcept(_S_nothrow_assignable<_T1, _T2>()) requires (_S_assignable<_T1, _T2>()) { first = std::forward<first_type>(__p.first); second = std::forward<second_type>(__p.second); return *this; } template<typename _U1, typename _U2> constexpr pair& operator=(const pair<_U1, _U2>& __p) noexcept(_S_nothrow_assignable<const _U1&, const _U2&>()) requires (_S_assignable<const _U1&, const _U2&>()) { first = __p.first; second = __p.second; return *this; } template<typename _U1, typename _U2> constexpr pair& operator=(pair<_U1, _U2>&& __p) noexcept(_S_nothrow_assignable<_U1, _U2>()) requires (_S_assignable<_U1, _U2>()) { first = std::forward<_U1>(__p.first); second = std::forward<_U2>(__p.second); return *this; } # 801 "/usr/include/c++/13/bits/stl_pair.h" 3 }; template<typename _T1, typename _T2> pair(_T1, _T2) -> pair<_T1, _T2>; template<typename _T1, typename _T2> inline constexpr bool operator==(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { return __x.first == __y.first && __x.second == __y.second; } template<typename _T1, typename _T2> constexpr common_comparison_category_t<__detail::__synth3way_t<_T1>, __detail::__synth3way_t<_T2>> operator<=>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) { if (auto __c = __detail::__synth3way(__x.first, __y.first); __c != 0) return __c; return __detail::__synth3way(__x.second, __y.second); } # 870 "/usr/include/c++/13/bits/stl_pair.h" 3 template<typename _T1, typename _T2> constexpr inline typename enable_if<__and_<__is_swappable<_T1>, __is_swappable<_T2>>::value>::type swap(pair<_T1, _T2>& __x, pair<_T1, _T2>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } # 893 "/usr/include/c++/13/bits/stl_pair.h" 3 template<typename _T1, typename _T2> typename enable_if<!__and_<__is_swappable<_T1>, __is_swappable<_T2>>::value>::type swap(pair<_T1, _T2>&, pair<_T1, _T2>&) = delete; # 919 "/usr/include/c++/13/bits/stl_pair.h" 3 template<typename _T1, typename _T2> constexpr pair<typename __decay_and_strip<_T1>::__type, typename __decay_and_strip<_T2>::__type> make_pair(_T1&& __x, _T2&& __y) { typedef typename __decay_and_strip<_T1>::__type __ds_type1; typedef typename __decay_and_strip<_T2>::__type __ds_type2; typedef pair<__ds_type1, __ds_type2> __pair_type; return __pair_type(std::forward<_T1>(__x), std::forward<_T2>(__y)); } # 942 "/usr/include/c++/13/bits/stl_pair.h" 3 template<typename _T1, typename _T2> struct __is_tuple_like_impl<pair<_T1, _T2>> : true_type { }; template<class _Tp1, class _Tp2> struct tuple_size<pair<_Tp1, _Tp2>> : public integral_constant<size_t, 2> { }; template<class _Tp1, class _Tp2> struct tuple_element<0, pair<_Tp1, _Tp2>> { typedef _Tp1 type; }; template<class _Tp1, class _Tp2> struct tuple_element<1, pair<_Tp1, _Tp2>> { typedef _Tp2 type; }; template<typename _Tp1, typename _Tp2> inline constexpr size_t tuple_size_v<pair<_Tp1, _Tp2>> = 2; template<typename _Tp1, typename _Tp2> inline constexpr size_t tuple_size_v<const pair<_Tp1, _Tp2>> = 2; template<typename _Tp> inline constexpr bool __is_pair = false; template<typename _Tp, typename _Up> inline constexpr bool __is_pair<pair<_Tp, _Up>> = true; template<size_t _Int> struct __pair_get; template<> struct __pair_get<0> { template<typename _Tp1, typename _Tp2> static constexpr _Tp1& __get(pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template<typename _Tp1, typename _Tp2> static constexpr _Tp1&& __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp1>(__pair.first); } template<typename _Tp1, typename _Tp2> static constexpr const _Tp1& __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.first; } template<typename _Tp1, typename _Tp2> static constexpr const _Tp1&& __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<const _Tp1>(__pair.first); } }; template<> struct __pair_get<1> { template<typename _Tp1, typename _Tp2> static constexpr _Tp2& __get(pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template<typename _Tp1, typename _Tp2> static constexpr _Tp2&& __move_get(pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<_Tp2>(__pair.second); } template<typename _Tp1, typename _Tp2> static constexpr const _Tp2& __const_get(const pair<_Tp1, _Tp2>& __pair) noexcept { return __pair.second; } template<typename _Tp1, typename _Tp2> static constexpr const _Tp2&& __const_move_get(const pair<_Tp1, _Tp2>&& __pair) noexcept { return std::forward<const _Tp2>(__pair.second); } }; template<size_t _Int, class _Tp1, class _Tp2> constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__get(__in); } template<size_t _Int, class _Tp1, class _Tp2> constexpr typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& get(pair<_Tp1, _Tp2>&& __in) noexcept { return __pair_get<_Int>::__move_get(std::move(__in)); } template<size_t _Int, class _Tp1, class _Tp2> constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type& get(const pair<_Tp1, _Tp2>& __in) noexcept { return __pair_get<_Int>::__const_get(__in); } template<size_t _Int, class _Tp1, class _Tp2> constexpr const typename tuple_element<_Int, pair<_Tp1, _Tp2>>::type&& get(const pair<_Tp1, _Tp2>&& __in) noexcept { return __pair_get<_Int>::__const_move_get(std::move(__in)); } template <typename _Tp, typename _Up> constexpr _Tp& get(pair<_Tp, _Up>& __p) noexcept { return __p.first; } template <typename _Tp, typename _Up> constexpr const _Tp& get(const pair<_Tp, _Up>& __p) noexcept { return __p.first; } template <typename _Tp, typename _Up> constexpr _Tp&& get(pair<_Tp, _Up>&& __p) noexcept { return std::move(__p.first); } template <typename _Tp, typename _Up> constexpr const _Tp&& get(const pair<_Tp, _Up>&& __p) noexcept { return std::move(__p.first); } template <typename _Tp, typename _Up> constexpr _Tp& get(pair<_Up, _Tp>& __p) noexcept { return __p.second; } template <typename _Tp, typename _Up> constexpr const _Tp& get(const pair<_Up, _Tp>& __p) noexcept { return __p.second; } template <typename _Tp, typename _Up> constexpr _Tp&& get(pair<_Up, _Tp>&& __p) noexcept { return std::move(__p.second); } template <typename _Tp, typename _Up> constexpr const _Tp&& get(const pair<_Up, _Tp>&& __p) noexcept { return std::move(__p.second); } # 1118 "/usr/include/c++/13/bits/stl_pair.h" 3 } # 65 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/13/debug/debug.h" 1 3 # 48 "/usr/include/c++/13/debug/debug.h" 3 namespace std { namespace __debug { } } namespace __gnu_debug { using namespace std::__debug; template<typename _Ite, typename _Seq, typename _Cat> struct _Safe_iterator; } # 70 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/13/bits/predefined_ops.h" 1 3 # 35 "/usr/include/c++/13/bits/predefined_ops.h" 3 namespace __gnu_cxx { namespace __ops { struct _Iter_less_iter { template<typename _Iterator1, typename _Iterator2> constexpr bool operator()(_Iterator1 __it1, _Iterator2 __it2) const { return *__it1 < *__it2; } }; constexpr inline _Iter_less_iter __iter_less_iter() { return _Iter_less_iter(); } struct _Iter_less_val { constexpr _Iter_less_val() = default; constexpr explicit _Iter_less_val(_Iter_less_iter) { } template<typename _Iterator, typename _Value> constexpr bool operator()(_Iterator __it, _Value& __val) const { return *__it < __val; } }; constexpr inline _Iter_less_val __iter_less_val() { return _Iter_less_val(); } constexpr inline _Iter_less_val __iter_comp_val(_Iter_less_iter) { return _Iter_less_val(); } struct _Val_less_iter { constexpr _Val_less_iter() = default; constexpr explicit _Val_less_iter(_Iter_less_iter) { } template<typename _Value, typename _Iterator> constexpr bool operator()(_Value& __val, _Iterator __it) const { return __val < *__it; } }; constexpr inline _Val_less_iter __val_less_iter() { return _Val_less_iter(); } constexpr inline _Val_less_iter __val_comp_iter(_Iter_less_iter) { return _Val_less_iter(); } struct _Iter_equal_to_iter { template<typename _Iterator1, typename _Iterator2> constexpr bool operator()(_Iterator1 __it1, _Iterator2 __it2) const { return *__it1 == *__it2; } }; constexpr inline _Iter_equal_to_iter __iter_equal_to_iter() { return _Iter_equal_to_iter(); } struct _Iter_equal_to_val { template<typename _Iterator, typename _Value> constexpr bool operator()(_Iterator __it, _Value& __val) const { return *__it == __val; } }; constexpr inline _Iter_equal_to_val __iter_equal_to_val() { return _Iter_equal_to_val(); } constexpr inline _Iter_equal_to_val __iter_comp_val(_Iter_equal_to_iter) { return _Iter_equal_to_val(); } template<typename _Compare> struct _Iter_comp_iter { _Compare _M_comp; explicit constexpr _Iter_comp_iter(_Compare __comp) : _M_comp(std::move(__comp)) { } template<typename _Iterator1, typename _Iterator2> constexpr bool operator()(_Iterator1 __it1, _Iterator2 __it2) { return bool(_M_comp(*__it1, *__it2)); } }; template<typename _Compare> constexpr inline _Iter_comp_iter<_Compare> __iter_comp_iter(_Compare __comp) { return _Iter_comp_iter<_Compare>(std::move(__comp)); } template<typename _Compare> struct _Iter_comp_val { _Compare _M_comp; constexpr explicit _Iter_comp_val(_Compare __comp) : _M_comp(std::move(__comp)) { } constexpr explicit _Iter_comp_val(const _Iter_comp_iter<_Compare>& __comp) : _M_comp(__comp._M_comp) { } constexpr explicit _Iter_comp_val(_Iter_comp_iter<_Compare>&& __comp) : _M_comp(std::move(__comp._M_comp)) { } template<typename _Iterator, typename _Value> constexpr bool operator()(_Iterator __it, _Value& __val) { return bool(_M_comp(*__it, __val)); } }; template<typename _Compare> constexpr inline _Iter_comp_val<_Compare> __iter_comp_val(_Compare __comp) { return _Iter_comp_val<_Compare>(std::move(__comp)); } template<typename _Compare> constexpr inline _Iter_comp_val<_Compare> __iter_comp_val(_Iter_comp_iter<_Compare> __comp) { return _Iter_comp_val<_Compare>(std::move(__comp)); } template<typename _Compare> struct _Val_comp_iter { _Compare _M_comp; constexpr explicit _Val_comp_iter(_Compare __comp) : _M_comp(std::move(__comp)) { } constexpr explicit _Val_comp_iter(const _Iter_comp_iter<_Compare>& __comp) : _M_comp(__comp._M_comp) { } constexpr explicit _Val_comp_iter(_Iter_comp_iter<_Compare>&& __comp) : _M_comp(std::move(__comp._M_comp)) { } template<typename _Value, typename _Iterator> constexpr bool operator()(_Value& __val, _Iterator __it) { return bool(_M_comp(__val, *__it)); } }; template<typename _Compare> constexpr inline _Val_comp_iter<_Compare> __val_comp_iter(_Compare __comp) { return _Val_comp_iter<_Compare>(std::move(__comp)); } template<typename _Compare> constexpr inline _Val_comp_iter<_Compare> __val_comp_iter(_Iter_comp_iter<_Compare> __comp) { return _Val_comp_iter<_Compare>(std::move(__comp)); } template<typename _Value> struct _Iter_equals_val { _Value& _M_value; constexpr explicit _Iter_equals_val(_Value& __value) : _M_value(__value) { } template<typename _Iterator> constexpr bool operator()(_Iterator __it) { return *__it == _M_value; } }; template<typename _Value> constexpr inline _Iter_equals_val<_Value> __iter_equals_val(_Value& __val) { return _Iter_equals_val<_Value>(__val); } template<typename _Iterator1> struct _Iter_equals_iter { _Iterator1 _M_it1; constexpr explicit _Iter_equals_iter(_Iterator1 __it1) : _M_it1(__it1) { } template<typename _Iterator2> constexpr bool operator()(_Iterator2 __it2) { return *__it2 == *_M_it1; } }; template<typename _Iterator> constexpr inline _Iter_equals_iter<_Iterator> __iter_comp_iter(_Iter_equal_to_iter, _Iterator __it) { return _Iter_equals_iter<_Iterator>(__it); } template<typename _Predicate> struct _Iter_pred { _Predicate _M_pred; constexpr explicit _Iter_pred(_Predicate __pred) : _M_pred(std::move(__pred)) { } template<typename _Iterator> constexpr bool operator()(_Iterator __it) { return bool(_M_pred(*__it)); } }; template<typename _Predicate> constexpr inline _Iter_pred<_Predicate> __pred_iter(_Predicate __pred) { return _Iter_pred<_Predicate>(std::move(__pred)); } template<typename _Compare, typename _Value> struct _Iter_comp_to_val { _Compare _M_comp; _Value& _M_value; constexpr _Iter_comp_to_val(_Compare __comp, _Value& __value) : _M_comp(std::move(__comp)), _M_value(__value) { } template<typename _Iterator> constexpr bool operator()(_Iterator __it) { return bool(_M_comp(*__it, _M_value)); } }; template<typename _Compare, typename _Value> _Iter_comp_to_val<_Compare, _Value> constexpr __iter_comp_val(_Compare __comp, _Value &__val) { return _Iter_comp_to_val<_Compare, _Value>(std::move(__comp), __val); } template<typename _Compare, typename _Iterator1> struct _Iter_comp_to_iter { _Compare _M_comp; _Iterator1 _M_it1; constexpr _Iter_comp_to_iter(_Compare __comp, _Iterator1 __it1) : _M_comp(std::move(__comp)), _M_it1(__it1) { } template<typename _Iterator2> constexpr bool operator()(_Iterator2 __it2) { return bool(_M_comp(*__it2, *_M_it1)); } }; template<typename _Compare, typename _Iterator> constexpr inline _Iter_comp_to_iter<_Compare, _Iterator> __iter_comp_iter(_Iter_comp_iter<_Compare> __comp, _Iterator __it) { return _Iter_comp_to_iter<_Compare, _Iterator>( std::move(__comp._M_comp), __it); } template<typename _Predicate> struct _Iter_negate { _Predicate _M_pred; constexpr explicit _Iter_negate(_Predicate __pred) : _M_pred(std::move(__pred)) { } template<typename _Iterator> constexpr bool operator()(_Iterator __it) { return !bool(_M_pred(*__it)); } }; template<typename _Predicate> constexpr inline _Iter_negate<_Predicate> __negate(_Iter_pred<_Predicate> __pred) { return _Iter_negate<_Predicate>(std::move(__pred._M_pred)); } } } # 72 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 # 1 "/usr/include/c++/13/bit" 1 3 # 32 "/usr/include/c++/13/bit" 3 # 33 "/usr/include/c++/13/bit" 3 # 55 "/usr/include/c++/13/bit" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 78 "/usr/include/c++/13/bit" 3 template<typename _To, typename _From> [[nodiscard]] constexpr _To bit_cast(const _From& __from) noexcept requires (sizeof(_To) == sizeof(_From)) && __is_trivially_copyable(_To) && __is_trivially_copyable(_From) { return __builtin_bit_cast(_To, __from); } # 149 "/usr/include/c++/13/bit" 3 template<typename _Tp> constexpr _Tp __rotl(_Tp __x, int __s) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; if constexpr ((_Nd & (_Nd - 1)) == 0) { constexpr unsigned __uNd = _Nd; const unsigned __r = __s; return (__x << (__r % __uNd)) | (__x >> ((-__r) % __uNd)); } const int __r = __s % _Nd; if (__r == 0) return __x; else if (__r > 0) return (__x << __r) | (__x >> ((_Nd - __r) % _Nd)); else return (__x >> -__r) | (__x << ((_Nd + __r) % _Nd)); } template<typename _Tp> constexpr _Tp __rotr(_Tp __x, int __s) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; if constexpr ((_Nd & (_Nd - 1)) == 0) { constexpr unsigned __uNd = _Nd; const unsigned __r = __s; return (__x >> (__r % __uNd)) | (__x << ((-__r) % __uNd)); } const int __r = __s % _Nd; if (__r == 0) return __x; else if (__r > 0) return (__x >> __r) | (__x << ((_Nd - __r) % _Nd)); else return (__x << -__r) | (__x >> ((_Nd + __r) % _Nd)); } template<typename _Tp> constexpr int __countl_zero(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; if (__x == 0) return _Nd; constexpr auto _Nd_ull = __int_traits<unsigned long long>::__digits; constexpr auto _Nd_ul = __int_traits<unsigned long>::__digits; constexpr auto _Nd_u = __int_traits<unsigned>::__digits; if constexpr (_Nd <= _Nd_u) { constexpr int __diff = _Nd_u - _Nd; return __builtin_clz(__x) - __diff; } else if constexpr (_Nd <= _Nd_ul) { constexpr int __diff = _Nd_ul - _Nd; return __builtin_clzl(__x) - __diff; } else if constexpr (_Nd <= _Nd_ull) { constexpr int __diff = _Nd_ull - _Nd; return __builtin_clzll(__x) - __diff; } else { static_assert(_Nd <= (2 * _Nd_ull), "Maximum supported integer size is 128-bit"); unsigned long long __high = __x >> _Nd_ull; if (__high != 0) { constexpr int __diff = (2 * _Nd_ull) - _Nd; return __builtin_clzll(__high) - __diff; } constexpr auto __max_ull = __int_traits<unsigned long long>::__max; unsigned long long __low = __x & __max_ull; return (_Nd - _Nd_ull) + __builtin_clzll(__low); } } template<typename _Tp> constexpr int __countl_one(_Tp __x) noexcept { return std::__countl_zero<_Tp>((_Tp)~__x); } template<typename _Tp> constexpr int __countr_zero(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; if (__x == 0) return _Nd; constexpr auto _Nd_ull = __int_traits<unsigned long long>::__digits; constexpr auto _Nd_ul = __int_traits<unsigned long>::__digits; constexpr auto _Nd_u = __int_traits<unsigned>::__digits; if constexpr (_Nd <= _Nd_u) return __builtin_ctz(__x); else if constexpr (_Nd <= _Nd_ul) return __builtin_ctzl(__x); else if constexpr (_Nd <= _Nd_ull) return __builtin_ctzll(__x); else { static_assert(_Nd <= (2 * _Nd_ull), "Maximum supported integer size is 128-bit"); constexpr auto __max_ull = __int_traits<unsigned long long>::__max; unsigned long long __low = __x & __max_ull; if (__low != 0) return __builtin_ctzll(__low); unsigned long long __high = __x >> _Nd_ull; return __builtin_ctzll(__high) + _Nd_ull; } } template<typename _Tp> constexpr int __countr_one(_Tp __x) noexcept { return std::__countr_zero((_Tp)~__x); } template<typename _Tp> constexpr int __popcount(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; constexpr auto _Nd_ull = __int_traits<unsigned long long>::__digits; constexpr auto _Nd_ul = __int_traits<unsigned long>::__digits; constexpr auto _Nd_u = __int_traits<unsigned>::__digits; if constexpr (_Nd <= _Nd_u) return __builtin_popcount(__x); else if constexpr (_Nd <= _Nd_ul) return __builtin_popcountl(__x); else if constexpr (_Nd <= _Nd_ull) return __builtin_popcountll(__x); else { static_assert(_Nd <= (2 * _Nd_ull), "Maximum supported integer size is 128-bit"); constexpr auto __max_ull = __int_traits<unsigned long long>::__max; unsigned long long __low = __x & __max_ull; unsigned long long __high = __x >> _Nd_ull; return __builtin_popcountll(__low) + __builtin_popcountll(__high); } } template<typename _Tp> constexpr bool __has_single_bit(_Tp __x) noexcept { return std::__popcount(__x) == 1; } template<typename _Tp> constexpr _Tp __bit_ceil(_Tp __x) noexcept { using __gnu_cxx::__int_traits; constexpr auto _Nd = __int_traits<_Tp>::__digits; if (__x == 0 || __x == 1) return 1; auto __shift_exponent = _Nd - std::__countl_zero((_Tp)(__x - 1u)); if (!std::__is_constant_evaluated()) { do { if (std::__is_constant_evaluated() && !bool(__shift_exponent != __int_traits<_Tp>::__digits)) __builtin_unreachable(); } while (false); } using __promoted_type = decltype(__x << 1); if constexpr (!is_same<__promoted_type, _Tp>::value) { const int __extra_exp = sizeof(__promoted_type) / sizeof(_Tp) / 2; __shift_exponent |= (__shift_exponent & _Nd) << __extra_exp; } return (_Tp)1u << __shift_exponent; } template<typename _Tp> constexpr _Tp __bit_floor(_Tp __x) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; if (__x == 0) return 0; return (_Tp)1u << (_Nd - std::__countl_zero((_Tp)(__x >> 1))); } template<typename _Tp> constexpr int __bit_width(_Tp __x) noexcept { constexpr auto _Nd = __gnu_cxx::__int_traits<_Tp>::__digits; return _Nd - std::__countl_zero(__x); } # 378 "/usr/include/c++/13/bit" 3 template<typename _Tp, typename _Up = _Tp> using _If_is_unsigned_integer = enable_if_t<__is_unsigned_integer<_Tp>::value, _Up>; template<typename _Tp> [[nodiscard]] constexpr _If_is_unsigned_integer<_Tp> rotl(_Tp __x, int __s) noexcept { return std::__rotl(__x, __s); } template<typename _Tp> [[nodiscard]] constexpr _If_is_unsigned_integer<_Tp> rotr(_Tp __x, int __s) noexcept { return std::__rotr(__x, __s); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, int> countl_zero(_Tp __x) noexcept { return std::__countl_zero(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, int> countl_one(_Tp __x) noexcept { return std::__countl_one(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, int> countr_zero(_Tp __x) noexcept { return std::__countr_zero(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, int> countr_one(_Tp __x) noexcept { return std::__countr_one(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, int> popcount(_Tp __x) noexcept { return std::__popcount(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, bool> has_single_bit(_Tp __x) noexcept { return std::__has_single_bit(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp> bit_ceil(_Tp __x) noexcept { return std::__bit_ceil(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp> bit_floor(_Tp __x) noexcept { return std::__bit_floor(__x); } template<typename _Tp> constexpr _If_is_unsigned_integer<_Tp, int> bit_width(_Tp __x) noexcept { return std::__bit_width(__x); } # 468 "/usr/include/c++/13/bit" 3 enum class endian { little = 1234, big = 4321, native = 1234 }; } # 77 "/usr/include/c++/13/bits/stl_algobase.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp, typename _Up> constexpr inline int __memcmp(const _Tp* __first1, const _Up* __first2, size_t __num) { static_assert(sizeof(_Tp) == sizeof(_Up), "can be compared with memcmp"); if (std::is_constant_evaluated()) { for(; __num > 0; ++__first1, ++__first2, --__num) if (*__first1 != *__first2) return *__first1 < *__first2 ? -1 : 1; return 0; } else return __builtin_memcmp(__first1, __first2, sizeof(_Tp) * __num); } # 152 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2> constexpr inline void iter_swap(_ForwardIterator1 __a, _ForwardIterator2 __b) { # 185 "/usr/include/c++/13/bits/stl_algobase.h" 3 swap(*__a, *__b); } # 201 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2> constexpr _ForwardIterator2 swap_ranges(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2) { ; for (; __first1 != __last1; ++__first1, (void)++__first2) std::iter_swap(__first1, __first2); return __first2; } # 230 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _Tp> constexpr inline const _Tp& min(const _Tp& __a, const _Tp& __b) { if (__b < __a) return __b; return __a; } # 254 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _Tp> constexpr inline const _Tp& max(const _Tp& __a, const _Tp& __b) { if (__a < __b) return __b; return __a; } # 278 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _Tp, typename _Compare> constexpr inline const _Tp& min(const _Tp& __a, const _Tp& __b, _Compare __comp) { if (__comp(__b, __a)) return __b; return __a; } # 300 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _Tp, typename _Compare> constexpr inline const _Tp& max(const _Tp& __a, const _Tp& __b, _Compare __comp) { if (__comp(__a, __b)) return __b; return __a; } template<typename _Iterator> constexpr inline _Iterator __niter_base(_Iterator __it) noexcept(std::is_nothrow_copy_constructible<_Iterator>::value) { return __it; } template<typename _Ite, typename _Seq> _Ite __niter_base(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, std::random_access_iterator_tag>&); template<typename _From, typename _To> constexpr inline _From __niter_wrap(_From __from, _To __res) { return __from + (__res - std::__niter_base(__from)); } template<typename _Iterator> constexpr inline _Iterator __niter_wrap(const _Iterator&, _Iterator __res) { return __res; } template<bool _IsMove, bool _IsSimple, typename _Category> struct __copy_move { template<typename _II, typename _OI> constexpr static _OI __copy_m(_II __first, _II __last, _OI __result) { for (; __first != __last; ++__result, (void)++__first) *__result = *__first; return __result; } }; template<typename _Category> struct __copy_move<true, false, _Category> { template<typename _II, typename _OI> constexpr static _OI __copy_m(_II __first, _II __last, _OI __result) { for (; __first != __last; ++__result, (void)++__first) *__result = std::move(*__first); return __result; } }; template<> struct __copy_move<false, false, random_access_iterator_tag> { template<typename _II, typename _OI> constexpr static _OI __copy_m(_II __first, _II __last, _OI __result) { typedef typename iterator_traits<_II>::difference_type _Distance; for(_Distance __n = __last - __first; __n > 0; --__n) { *__result = *__first; ++__first; ++__result; } return __result; } template<typename _Tp, typename _Up> static void __assign_one(_Tp* __to, _Up* __from) { *__to = *__from; } }; template<> struct __copy_move<true, false, random_access_iterator_tag> { template<typename _II, typename _OI> constexpr static _OI __copy_m(_II __first, _II __last, _OI __result) { typedef typename iterator_traits<_II>::difference_type _Distance; for(_Distance __n = __last - __first; __n > 0; --__n) { *__result = std::move(*__first); ++__first; ++__result; } return __result; } template<typename _Tp, typename _Up> static void __assign_one(_Tp* __to, _Up* __from) { *__to = std::move(*__from); } }; template<bool _IsMove> struct __copy_move<_IsMove, true, random_access_iterator_tag> { template<typename _Tp, typename _Up> constexpr static _Up* __copy_m(_Tp* __first, _Tp* __last, _Up* __result) { const ptrdiff_t _Num = __last - __first; if (__builtin_expect(_Num > 1, true)) __builtin_memmove(__result, __first, sizeof(_Tp) * _Num); else if (_Num == 1) std::__copy_move<_IsMove, false, random_access_iterator_tag>:: __assign_one(__result, __first); return __result + _Num; } }; template<typename _Tp, typename _Ref, typename _Ptr> struct _Deque_iterator; struct _Bit_iterator; template<typename _CharT> struct char_traits; template<typename _CharT, typename _Traits> class istreambuf_iterator; template<typename _CharT, typename _Traits> class ostreambuf_iterator; template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type __copy_move_a2(_CharT*, _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >); template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT, char_traits<_CharT> > >::__type __copy_move_a2(const _CharT*, const _CharT*, ostreambuf_iterator<_CharT, char_traits<_CharT> >); template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, _CharT*>::__type __copy_move_a2(istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, _CharT*); template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if< __is_char<_CharT>::__value, std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type __copy_move_a2( istreambuf_iterator<_CharT, char_traits<_CharT> >, istreambuf_iterator<_CharT, char_traits<_CharT> >, std::_Deque_iterator<_CharT, _CharT&, _CharT*>); template<bool _IsMove, typename _II, typename _OI> constexpr inline _OI __copy_move_a2(_II __first, _II __last, _OI __result) { typedef typename iterator_traits<_II>::iterator_category _Category; if (std::is_constant_evaluated()) return std::__copy_move<_IsMove, false, _Category>:: __copy_m(__first, __last, __result); return std::__copy_move<_IsMove, __memcpyable<_OI, _II>::__value, _Category>::__copy_m(__first, __last, __result); } template<bool _IsMove, typename _Tp, typename _Ref, typename _Ptr, typename _OI> _OI __copy_move_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, std::_Deque_iterator<_Tp, _Ref, _Ptr>, _OI); template<bool _IsMove, typename _ITp, typename _IRef, typename _IPtr, typename _OTp> std::_Deque_iterator<_OTp, _OTp&, _OTp*> __copy_move_a1(std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_OTp, _OTp&, _OTp*>); template<bool _IsMove, typename _II, typename _Tp> typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type __copy_move_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); template<bool _IsMove, typename _II, typename _OI> constexpr inline _OI __copy_move_a1(_II __first, _II __last, _OI __result) { return std::__copy_move_a2<_IsMove>(__first, __last, __result); } template<bool _IsMove, typename _II, typename _OI> constexpr inline _OI __copy_move_a(_II __first, _II __last, _OI __result) { return std::__niter_wrap(__result, std::__copy_move_a1<_IsMove>(std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result))); } template<bool _IsMove, typename _Ite, typename _Seq, typename _Cat, typename _OI> _OI __copy_move_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, _OI); template<bool _IsMove, typename _II, typename _Ite, typename _Seq, typename _Cat> __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> __copy_move_a(_II, _II, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); template<bool _IsMove, typename _IIte, typename _ISeq, typename _ICat, typename _OIte, typename _OSeq, typename _OCat> ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> __copy_move_a(const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); template<typename _InputIterator, typename _Size, typename _OutputIterator> constexpr _OutputIterator __copy_n_a(_InputIterator __first, _Size __n, _OutputIterator __result, bool) { if (__n > 0) { while (true) { *__result = *__first; ++__result; if (--__n > 0) ++__first; else break; } } return __result; } template<typename _CharT, typename _Size> typename __gnu_cxx::__enable_if< __is_char<_CharT>::__value, _CharT*>::__type __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, _CharT*, bool); template<typename _CharT, typename _Size> typename __gnu_cxx::__enable_if< __is_char<_CharT>::__value, std::_Deque_iterator<_CharT, _CharT&, _CharT*> >::__type __copy_n_a(istreambuf_iterator<_CharT, char_traits<_CharT> >, _Size, std::_Deque_iterator<_CharT, _CharT&, _CharT*>, bool); # 621 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _II, typename _OI> constexpr inline _OI copy(_II __first, _II __last, _OI __result) { ; return std::__copy_move_a<__is_move_iterator<_II>::__value> (std::__miter_base(__first), std::__miter_base(__last), __result); } # 654 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _II, typename _OI> constexpr inline _OI move(_II __first, _II __last, _OI __result) { ; return std::__copy_move_a<true>(std::__miter_base(__first), std::__miter_base(__last), __result); } template<bool _IsMove, bool _IsSimple, typename _Category> struct __copy_move_backward { template<typename _BI1, typename _BI2> constexpr static _BI2 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) { while (__first != __last) *--__result = *--__last; return __result; } }; template<typename _Category> struct __copy_move_backward<true, false, _Category> { template<typename _BI1, typename _BI2> constexpr static _BI2 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) { while (__first != __last) *--__result = std::move(*--__last); return __result; } }; template<> struct __copy_move_backward<false, false, random_access_iterator_tag> { template<typename _BI1, typename _BI2> constexpr static _BI2 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) { typename iterator_traits<_BI1>::difference_type __n = __last - __first; for (; __n > 0; --__n) *--__result = *--__last; return __result; } }; template<> struct __copy_move_backward<true, false, random_access_iterator_tag> { template<typename _BI1, typename _BI2> constexpr static _BI2 __copy_move_b(_BI1 __first, _BI1 __last, _BI2 __result) { typename iterator_traits<_BI1>::difference_type __n = __last - __first; for (; __n > 0; --__n) *--__result = std::move(*--__last); return __result; } }; template<bool _IsMove> struct __copy_move_backward<_IsMove, true, random_access_iterator_tag> { template<typename _Tp, typename _Up> constexpr static _Up* __copy_move_b(_Tp* __first, _Tp* __last, _Up* __result) { const ptrdiff_t _Num = __last - __first; if (__builtin_expect(_Num > 1, true)) __builtin_memmove(__result - _Num, __first, sizeof(_Tp) * _Num); else if (_Num == 1) std::__copy_move<_IsMove, false, random_access_iterator_tag>:: __assign_one(__result - 1, __first); return __result - _Num; } }; template<bool _IsMove, typename _BI1, typename _BI2> constexpr inline _BI2 __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) { typedef typename iterator_traits<_BI1>::iterator_category _Category; if (std::is_constant_evaluated()) return std::__copy_move_backward<_IsMove, false, _Category>:: __copy_move_b(__first, __last, __result); return std::__copy_move_backward<_IsMove, __memcpyable<_BI2, _BI1>::__value, _Category>::__copy_move_b(__first, __last, __result); } template<bool _IsMove, typename _BI1, typename _BI2> constexpr inline _BI2 __copy_move_backward_a1(_BI1 __first, _BI1 __last, _BI2 __result) { return std::__copy_move_backward_a2<_IsMove>(__first, __last, __result); } template<bool _IsMove, typename _Tp, typename _Ref, typename _Ptr, typename _OI> _OI __copy_move_backward_a1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, std::_Deque_iterator<_Tp, _Ref, _Ptr>, _OI); template<bool _IsMove, typename _ITp, typename _IRef, typename _IPtr, typename _OTp> std::_Deque_iterator<_OTp, _OTp&, _OTp*> __copy_move_backward_a1( std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_ITp, _IRef, _IPtr>, std::_Deque_iterator<_OTp, _OTp&, _OTp*>); template<bool _IsMove, typename _II, typename _Tp> typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, std::_Deque_iterator<_Tp, _Tp&, _Tp*> >::__type __copy_move_backward_a1(_II, _II, std::_Deque_iterator<_Tp, _Tp&, _Tp*>); template<bool _IsMove, typename _II, typename _OI> constexpr inline _OI __copy_move_backward_a(_II __first, _II __last, _OI __result) { return std::__niter_wrap(__result, std::__copy_move_backward_a1<_IsMove> (std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result))); } template<bool _IsMove, typename _Ite, typename _Seq, typename _Cat, typename _OI> _OI __copy_move_backward_a( const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, _OI); template<bool _IsMove, typename _II, typename _Ite, typename _Seq, typename _Cat> __gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> __copy_move_backward_a(_II, _II, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&); template<bool _IsMove, typename _IIte, typename _ISeq, typename _ICat, typename _OIte, typename _OSeq, typename _OCat> ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat> __copy_move_backward_a( const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_IIte, _ISeq, _ICat>&, const ::__gnu_debug::_Safe_iterator<_OIte, _OSeq, _OCat>&); # 854 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _BI1, typename _BI2> constexpr inline _BI2 copy_backward(_BI1 __first, _BI1 __last, _BI2 __result) { ; return std::__copy_move_backward_a<__is_move_iterator<_BI1>::__value> (std::__miter_base(__first), std::__miter_base(__last), __result); } # 889 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _BI1, typename _BI2> constexpr inline _BI2 move_backward(_BI1 __first, _BI1 __last, _BI2 __result) { ; return std::__copy_move_backward_a<true>(std::__miter_base(__first), std::__miter_base(__last), __result); } template<typename _ForwardIterator, typename _Tp> constexpr inline typename __gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, void>::__type __fill_a1(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { for (; __first != __last; ++__first) *__first = __value; } template<typename _ForwardIterator, typename _Tp> constexpr inline typename __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, void>::__type __fill_a1(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { const _Tp __tmp = __value; for (; __first != __last; ++__first) *__first = __tmp; } template<typename _Tp> constexpr inline typename __gnu_cxx::__enable_if<__is_byte<_Tp>::__value, void>::__type __fill_a1(_Tp* __first, _Tp* __last, const _Tp& __c) { const _Tp __tmp = __c; if (std::is_constant_evaluated()) { for (; __first != __last; ++__first) *__first = __tmp; return; } if (const size_t __len = __last - __first) __builtin_memset(__first, static_cast<unsigned char>(__tmp), __len); } template<typename _Ite, typename _Cont, typename _Tp> constexpr inline void __fill_a1(::__gnu_cxx::__normal_iterator<_Ite, _Cont> __first, ::__gnu_cxx::__normal_iterator<_Ite, _Cont> __last, const _Tp& __value) { std::__fill_a1(__first.base(), __last.base(), __value); } template<typename _Tp, typename _VTp> void __fill_a1(const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, const std::_Deque_iterator<_Tp, _Tp&, _Tp*>&, const _VTp&); constexpr void __fill_a1(std::_Bit_iterator, std::_Bit_iterator, const bool&); template<typename _FIte, typename _Tp> constexpr inline void __fill_a(_FIte __first, _FIte __last, const _Tp& __value) { std::__fill_a1(__first, __last, __value); } template<typename _Ite, typename _Seq, typename _Cat, typename _Tp> void __fill_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>&, const _Tp&); # 997 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr inline void fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { ; std::__fill_a(__first, __last, __value); } inline constexpr int __size_to_integer(int __n) { return __n; } inline constexpr unsigned __size_to_integer(unsigned __n) { return __n; } inline constexpr long __size_to_integer(long __n) { return __n; } inline constexpr unsigned long __size_to_integer(unsigned long __n) { return __n; } inline constexpr long long __size_to_integer(long long __n) { return __n; } inline constexpr unsigned long long __size_to_integer(unsigned long long __n) { return __n; } __extension__ inline constexpr __int128 __size_to_integer(__int128 __n) { return __n; } __extension__ inline constexpr unsigned __int128 __size_to_integer(unsigned __int128 __n) { return __n; } # 1049 "/usr/include/c++/13/bits/stl_algobase.h" 3 inline constexpr long long __size_to_integer(float __n) { return (long long)__n; } inline constexpr long long __size_to_integer(double __n) { return (long long)__n; } inline constexpr long long __size_to_integer(long double __n) { return (long long)__n; } __extension__ inline constexpr long long __size_to_integer(__float128 __n) { return (long long)__n; } template<typename _OutputIterator, typename _Size, typename _Tp> constexpr inline typename __gnu_cxx::__enable_if<!__is_scalar<_Tp>::__value, _OutputIterator>::__type __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) { for (; __n > 0; --__n, (void) ++__first) *__first = __value; return __first; } template<typename _OutputIterator, typename _Size, typename _Tp> constexpr inline typename __gnu_cxx::__enable_if<__is_scalar<_Tp>::__value, _OutputIterator>::__type __fill_n_a1(_OutputIterator __first, _Size __n, const _Tp& __value) { const _Tp __tmp = __value; for (; __n > 0; --__n, (void) ++__first) *__first = __tmp; return __first; } template<typename _Ite, typename _Seq, typename _Cat, typename _Size, typename _Tp> ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat> __fill_n_a(const ::__gnu_debug::_Safe_iterator<_Ite, _Seq, _Cat>& __first, _Size __n, const _Tp& __value, std::input_iterator_tag); template<typename _OutputIterator, typename _Size, typename _Tp> constexpr inline _OutputIterator __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, std::output_iterator_tag) { static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); return __fill_n_a1(__first, __n, __value); } template<typename _OutputIterator, typename _Size, typename _Tp> constexpr inline _OutputIterator __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, std::input_iterator_tag) { static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); return __fill_n_a1(__first, __n, __value); } template<typename _OutputIterator, typename _Size, typename _Tp> constexpr inline _OutputIterator __fill_n_a(_OutputIterator __first, _Size __n, const _Tp& __value, std::random_access_iterator_tag) { static_assert(is_integral<_Size>{}, "fill_n must pass integral size"); if (__n <= 0) return __first; ; std::__fill_a(__first, __first + __n, __value); return __first + __n; } # 1149 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _OI, typename _Size, typename _Tp> constexpr inline _OI fill_n(_OI __first, _Size __n, const _Tp& __value) { return std::__fill_n_a(__first, std::__size_to_integer(__n), __value, std::__iterator_category(__first)); } template<bool _BoolType> struct __equal { template<typename _II1, typename _II2> constexpr static bool equal(_II1 __first1, _II1 __last1, _II2 __first2) { for (; __first1 != __last1; ++__first1, (void) ++__first2) if (!(*__first1 == *__first2)) return false; return true; } }; template<> struct __equal<true> { template<typename _Tp> constexpr static bool equal(const _Tp* __first1, const _Tp* __last1, const _Tp* __first2) { if (const size_t __len = (__last1 - __first1)) return !std::__memcmp(__first1, __first2, __len); return true; } }; template<typename _Tp, typename _Ref, typename _Ptr, typename _II> typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, bool>::__type __equal_aux1(std::_Deque_iterator<_Tp, _Ref, _Ptr>, std::_Deque_iterator<_Tp, _Ref, _Ptr>, _II); template<typename _Tp1, typename _Ref1, typename _Ptr1, typename _Tp2, typename _Ref2, typename _Ptr2> bool __equal_aux1(std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); template<typename _II, typename _Tp, typename _Ref, typename _Ptr> typename __gnu_cxx::__enable_if< __is_random_access_iter<_II>::__value, bool>::__type __equal_aux1(_II, _II, std::_Deque_iterator<_Tp, _Ref, _Ptr>); template<typename _II1, typename _II2> constexpr inline bool __equal_aux1(_II1 __first1, _II1 __last1, _II2 __first2) { typedef typename iterator_traits<_II1>::value_type _ValueType1; const bool __simple = ((__is_integer<_ValueType1>::__value || __is_pointer<_ValueType1>::__value) && __memcmpable<_II1, _II2>::__value); return std::__equal<__simple>::equal(__first1, __last1, __first2); } template<typename _II1, typename _II2> constexpr inline bool __equal_aux(_II1 __first1, _II1 __last1, _II2 __first2) { return std::__equal_aux1(std::__niter_base(__first1), std::__niter_base(__last1), std::__niter_base(__first2)); } template<typename _II1, typename _Seq1, typename _Cat1, typename _II2> bool __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, _II2); template<typename _II1, typename _II2, typename _Seq2, typename _Cat2> bool __equal_aux(_II1, _II1, const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); template<typename _II1, typename _Seq1, typename _Cat1, typename _II2, typename _Seq2, typename _Cat2> bool __equal_aux(const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_II1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_II2, _Seq2, _Cat2>&); template<typename, typename> struct __lc_rai { template<typename _II1, typename _II2> constexpr static _II1 __newlast1(_II1, _II1 __last1, _II2, _II2) { return __last1; } template<typename _II> constexpr static bool __cnd2(_II __first, _II __last) { return __first != __last; } }; template<> struct __lc_rai<random_access_iterator_tag, random_access_iterator_tag> { template<typename _RAI1, typename _RAI2> constexpr static _RAI1 __newlast1(_RAI1 __first1, _RAI1 __last1, _RAI2 __first2, _RAI2 __last2) { const typename iterator_traits<_RAI1>::difference_type __diff1 = __last1 - __first1; const typename iterator_traits<_RAI2>::difference_type __diff2 = __last2 - __first2; return __diff2 < __diff1 ? __first1 + __diff2 : __last1; } template<typename _RAI> static constexpr bool __cnd2(_RAI, _RAI) { return true; } }; template<typename _II1, typename _II2, typename _Compare> constexpr bool __lexicographical_compare_impl(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _Compare __comp) { typedef typename iterator_traits<_II1>::iterator_category _Category1; typedef typename iterator_traits<_II2>::iterator_category _Category2; typedef std::__lc_rai<_Category1, _Category2> __rai_type; __last1 = __rai_type::__newlast1(__first1, __last1, __first2, __last2); for (; __first1 != __last1 && __rai_type::__cnd2(__first2, __last2); ++__first1, (void)++__first2) { if (__comp(__first1, __first2)) return true; if (__comp(__first2, __first1)) return false; } return __first1 == __last1 && __first2 != __last2; } template<bool _BoolType> struct __lexicographical_compare { template<typename _II1, typename _II2> constexpr static bool __lc(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { using __gnu_cxx::__ops::__iter_less_iter; return std::__lexicographical_compare_impl(__first1, __last1, __first2, __last2, __iter_less_iter()); } template<typename _II1, typename _II2> constexpr static int __3way(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { while (__first1 != __last1) { if (__first2 == __last2) return +1; if (*__first1 < *__first2) return -1; if (*__first2 < *__first1) return +1; ++__first1; ++__first2; } return int(__first2 == __last2) - 1; } }; template<> struct __lexicographical_compare<true> { template<typename _Tp, typename _Up> constexpr static bool __lc(const _Tp* __first1, const _Tp* __last1, const _Up* __first2, const _Up* __last2) { return __3way(__first1, __last1, __first2, __last2) < 0; } template<typename _Tp, typename _Up> constexpr static ptrdiff_t __3way(const _Tp* __first1, const _Tp* __last1, const _Up* __first2, const _Up* __last2) { const size_t __len1 = __last1 - __first1; const size_t __len2 = __last2 - __first2; if (const size_t __len = std::min(__len1, __len2)) if (int __result = std::__memcmp(__first1, __first2, __len)) return __result; return ptrdiff_t(__len1 - __len2); } }; template<typename _II1, typename _II2> constexpr inline bool __lexicographical_compare_aux1(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { typedef typename iterator_traits<_II1>::value_type _ValueType1; typedef typename iterator_traits<_II2>::value_type _ValueType2; const bool __simple = (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value && __is_pointer<_II1>::__value && __is_pointer<_II2>::__value && !is_volatile_v<remove_reference_t<iter_reference_t<_II1>>> && !is_volatile_v<remove_reference_t<iter_reference_t<_II2>>> ); return std::__lexicographical_compare<__simple>::__lc(__first1, __last1, __first2, __last2); } template<typename _Tp1, typename _Ref1, typename _Ptr1, typename _Tp2> bool __lexicographical_compare_aux1( std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, _Tp2*, _Tp2*); template<typename _Tp1, typename _Tp2, typename _Ref2, typename _Ptr2> bool __lexicographical_compare_aux1(_Tp1*, _Tp1*, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); template<typename _Tp1, typename _Ref1, typename _Ptr1, typename _Tp2, typename _Ref2, typename _Ptr2> bool __lexicographical_compare_aux1( std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp1, _Ref1, _Ptr1>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>, std::_Deque_iterator<_Tp2, _Ref2, _Ptr2>); template<typename _II1, typename _II2> constexpr inline bool __lexicographical_compare_aux(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { return std::__lexicographical_compare_aux1(std::__niter_base(__first1), std::__niter_base(__last1), std::__niter_base(__first2), std::__niter_base(__last2)); } template<typename _Iter1, typename _Seq1, typename _Cat1, typename _II2> bool __lexicographical_compare_aux( const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, _II2, _II2); template<typename _II1, typename _Iter2, typename _Seq2, typename _Cat2> bool __lexicographical_compare_aux( _II1, _II1, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); template<typename _Iter1, typename _Seq1, typename _Cat1, typename _Iter2, typename _Seq2, typename _Cat2> bool __lexicographical_compare_aux( const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_Iter1, _Seq1, _Cat1>&, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&, const ::__gnu_debug::_Safe_iterator<_Iter2, _Seq2, _Cat2>&); template<typename _ForwardIterator, typename _Tp, typename _Compare> constexpr _ForwardIterator __lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp(__middle, __val)) { __first = __middle; ++__first; __len = __len - __half - 1; } else __len = __half; } return __first; } # 1495 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr inline _ForwardIterator lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { ; return std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val()); } template<typename _Tp> inline constexpr _Tp __lg(_Tp __n) { return std::__bit_width(make_unsigned_t<_Tp>(__n)) - 1; # 1531 "/usr/include/c++/13/bits/stl_algobase.h" 3 } # 1547 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _II1, typename _II2> constexpr inline bool equal(_II1 __first1, _II1 __last1, _II2 __first2) { ; return std::__equal_aux(__first1, __last1, __first2); } # 1578 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> constexpr inline bool equal(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _BinaryPredicate __binary_pred) { ; for (; __first1 != __last1; ++__first1, (void)++__first2) if (!bool(__binary_pred(*__first1, *__first2))) return false; return true; } template<typename _II1, typename _II2> constexpr inline bool __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { using _RATag = random_access_iterator_tag; using _Cat1 = typename iterator_traits<_II1>::iterator_category; using _Cat2 = typename iterator_traits<_II2>::iterator_category; using _RAIters = __and_<is_same<_Cat1, _RATag>, is_same<_Cat2, _RATag>>; if (_RAIters()) { auto __d1 = std::distance(__first1, __last1); auto __d2 = std::distance(__first2, __last2); if (__d1 != __d2) return false; return std::equal(__first1, __last1, __first2); } for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!(*__first1 == *__first2)) return false; return __first1 == __last1 && __first2 == __last2; } template<typename _II1, typename _II2, typename _BinaryPredicate> constexpr inline bool __equal4(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _BinaryPredicate __binary_pred) { using _RATag = random_access_iterator_tag; using _Cat1 = typename iterator_traits<_II1>::iterator_category; using _Cat2 = typename iterator_traits<_II2>::iterator_category; using _RAIters = __and_<is_same<_Cat1, _RATag>, is_same<_Cat2, _RATag>>; if (_RAIters()) { auto __d1 = std::distance(__first1, __last1); auto __d2 = std::distance(__first2, __last2); if (__d1 != __d2) return false; return std::equal(__first1, __last1, __first2, __binary_pred); } for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!bool(__binary_pred(*__first1, *__first2))) return false; return __first1 == __last1 && __first2 == __last2; } # 1668 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _II1, typename _II2> constexpr inline bool equal(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { ; ; return std::__equal4(__first1, __last1, __first2, __last2); } # 1701 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> constexpr inline bool equal(_IIter1 __first1, _IIter1 __last1, _IIter2 __first2, _IIter2 __last2, _BinaryPredicate __binary_pred) { ; ; return std::__equal4(__first1, __last1, __first2, __last2, __binary_pred); } # 1733 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _II1, typename _II2> constexpr inline bool lexicographical_compare(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2) { ; ; return std::__lexicographical_compare_aux(__first1, __last1, __first2, __last2); } # 1768 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _II1, typename _II2, typename _Compare> constexpr inline bool lexicographical_compare(_II1 __first1, _II1 __last1, _II2 __first2, _II2 __last2, _Compare __comp) { ; ; return std::__lexicographical_compare_impl (__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _Iter> concept __is_byte_iter = contiguous_iterator<_Iter> && __is_memcmp_ordered<iter_value_t<_Iter>>::__value; template<typename _Tp> constexpr auto __min_cmp(_Tp __x, _Tp __y) { struct _Res { _Tp _M_min; decltype(__x <=> __y) _M_cmp; }; auto __c = __x <=> __y; if (__c > 0) return _Res{__y, __c}; return _Res{__x, __c}; } # 1819 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _InputIter1, typename _InputIter2, typename _Comp> constexpr auto lexicographical_compare_three_way(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2, _Comp __comp) -> decltype(__comp(*__first1, *__first2)) { ; ; using _Cat = decltype(__comp(*__first1, *__first2)); static_assert(same_as<common_comparison_category_t<_Cat>, _Cat>); if (!std::__is_constant_evaluated()) if constexpr (same_as<_Comp, __detail::_Synth3way> || same_as<_Comp, compare_three_way>) if constexpr (__is_byte_iter<_InputIter1>) if constexpr (__is_byte_iter<_InputIter2>) { const auto [__len, __lencmp] = std:: __min_cmp(__last1 - __first1, __last2 - __first2); if (__len) { const auto __c = __builtin_memcmp(&*__first1, &*__first2, __len) <=> 0; if (__c != 0) return __c; } return __lencmp; } while (__first1 != __last1) { if (__first2 == __last2) return strong_ordering::greater; if (auto __cmp = __comp(*__first1, *__first2); __cmp != 0) return __cmp; ++__first1; ++__first2; } return (__first2 == __last2) <=> true; } template<typename _InputIter1, typename _InputIter2> constexpr auto lexicographical_compare_three_way(_InputIter1 __first1, _InputIter1 __last1, _InputIter2 __first2, _InputIter2 __last2) { return std:: lexicographical_compare_three_way(__first1, __last1, __first2, __last2, compare_three_way{}); } template<typename _InputIterator1, typename _InputIterator2, typename _BinaryPredicate> constexpr pair<_InputIterator1, _InputIterator2> __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _BinaryPredicate __binary_pred) { while (__first1 != __last1 && __binary_pred(__first1, __first2)) { ++__first1; ++__first2; } return pair<_InputIterator1, _InputIterator2>(__first1, __first2); } # 1908 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _InputIterator1, typename _InputIterator2> constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2) { ; return std::__mismatch(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 1942 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _BinaryPredicate> constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _BinaryPredicate __binary_pred) { ; return std::__mismatch(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } template<typename _InputIterator1, typename _InputIterator2, typename _BinaryPredicate> constexpr pair<_InputIterator1, _InputIterator2> __mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _BinaryPredicate __binary_pred) { while (__first1 != __last1 && __first2 != __last2 && __binary_pred(__first1, __first2)) { ++__first1; ++__first2; } return pair<_InputIterator1, _InputIterator2>(__first1, __first2); } # 1991 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _InputIterator1, typename _InputIterator2> constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2) { ; ; return std::__mismatch(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 2027 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _BinaryPredicate> constexpr inline pair<_InputIterator1, _InputIterator2> mismatch(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _BinaryPredicate __binary_pred) { ; ; return std::__mismatch(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } template<typename _InputIterator, typename _Predicate> constexpr inline _InputIterator __find_if(_InputIterator __first, _InputIterator __last, _Predicate __pred, input_iterator_tag) { while (__first != __last && !__pred(__first)) ++__first; return __first; } template<typename _RandomAccessIterator, typename _Predicate> constexpr _RandomAccessIterator __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, _Predicate __pred, random_access_iterator_tag) { typename iterator_traits<_RandomAccessIterator>::difference_type __trip_count = (__last - __first) >> 2; for (; __trip_count > 0; --__trip_count) { if (__pred(__first)) return __first; ++__first; if (__pred(__first)) return __first; ++__first; if (__pred(__first)) return __first; ++__first; if (__pred(__first)) return __first; ++__first; } switch (__last - __first) { case 3: if (__pred(__first)) return __first; ++__first; case 2: if (__pred(__first)) return __first; ++__first; case 1: if (__pred(__first)) return __first; ++__first; case 0: default: return __last; } } template<typename _Iterator, typename _Predicate> constexpr inline _Iterator __find_if(_Iterator __first, _Iterator __last, _Predicate __pred) { return __find_if(__first, __last, __pred, std::__iterator_category(__first)); } template<typename _InputIterator, typename _Predicate> constexpr typename iterator_traits<_InputIterator>::difference_type __count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { typename iterator_traits<_InputIterator>::difference_type __n = 0; for (; __first != __last; ++__first) if (__pred(__first)) ++__n; return __n; } template<typename _ForwardIterator, typename _Predicate> constexpr _ForwardIterator __remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { __first = std::__find_if(__first, __last, __pred); if (__first == __last) return __first; _ForwardIterator __result = __first; ++__first; for (; __first != __last; ++__first) if (!__pred(__first)) { *__result = std::move(*__first); ++__result; } return __result; } template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr bool __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _BinaryPredicate __pred) { for (; __first1 != __last1; ++__first1, (void)++__first2) if (!__pred(__first1, __first2)) break; if (__first1 == __last1) return true; _ForwardIterator2 __last2 = __first2; std::advance(__last2, std::distance(__first1, __last1)); for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) { if (__scan != std::__find_if(__first1, __scan, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) continue; auto __matches = std::__count_if(__first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); if (0 == __matches || std::__count_if(__scan, __last1, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) != __matches) return false; } return true; } # 2204 "/usr/include/c++/13/bits/stl_algobase.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2> constexpr inline bool is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2) { ; return std::__is_permutation(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_equal_to_iter()); } } # 52 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/refwrap.h" 1 3 # 33 "/usr/include/c++/13/bits/refwrap.h" 3 # 34 "/usr/include/c++/13/bits/refwrap.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/13/bits/refwrap.h" 3 template<typename _Res, typename... _ArgTypes> struct _Maybe_unary_or_binary_function { }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Res, typename _T1> struct _Maybe_unary_or_binary_function<_Res, _T1> : std::unary_function<_T1, _Res> { }; template<typename _Res, typename _T1, typename _T2> struct _Maybe_unary_or_binary_function<_Res, _T1, _T2> : std::binary_function<_T1, _T2, _Res> { }; #pragma GCC diagnostic pop template<typename _Signature> struct _Mem_fn_traits; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits_base { using __result_type = _Res; using __maybe_type = _Maybe_unary_or_binary_function<_Res, _Class*, _ArgTypes...>; using __arity = integral_constant<size_t, sizeof...(_ArgTypes)>; }; # 103 "/usr/include/c++/13/bits/refwrap.h" 3 template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) > : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) > : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const > : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const > : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile > : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile > : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile > : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile > : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) &> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) &> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const &> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const &> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile &> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile &> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile &> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile &> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) &&> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) &&> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const &&> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const &&> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile &&> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile &&> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile &&> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile &&> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) & noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) & noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const & noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const & noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile & noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile & noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile & noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile & noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) && noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) && noexcept> : _Mem_fn_traits_base<_Res, _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const && noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const && noexcept> : _Mem_fn_traits_base<_Res, const _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) volatile && noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) volatile && noexcept> : _Mem_fn_traits_base<_Res, volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes...) const volatile && noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = false_type; }; template<typename _Res, typename _Class, typename... _ArgTypes> struct _Mem_fn_traits<_Res (_Class::*)(_ArgTypes... ...) const volatile && noexcept> : _Mem_fn_traits_base<_Res, const volatile _Class, _ArgTypes...> { using __vararg = true_type; }; template<typename _Functor, typename = __void_t<>> struct _Maybe_get_result_type { }; template<typename _Functor> struct _Maybe_get_result_type<_Functor, __void_t<typename _Functor::result_type>> { typedef typename _Functor::result_type result_type; }; template<typename _Functor> struct _Weak_result_type_impl : _Maybe_get_result_type<_Functor> { }; template<typename _Res, typename... _ArgTypes , bool _NE> struct _Weak_result_type_impl<_Res(_ArgTypes...) noexcept (_NE)> { typedef _Res result_type; }; template<typename _Res, typename... _ArgTypes , bool _NE> struct _Weak_result_type_impl<_Res(_ArgTypes......) noexcept (_NE)> { typedef _Res result_type; }; template<typename _Res, typename... _ArgTypes , bool _NE> struct _Weak_result_type_impl<_Res(*)(_ArgTypes...) noexcept (_NE)> { typedef _Res result_type; }; template<typename _Res, typename... _ArgTypes , bool _NE> struct _Weak_result_type_impl<_Res(*)(_ArgTypes......) noexcept (_NE)> { typedef _Res result_type; }; template<typename _Functor, bool = is_member_function_pointer<_Functor>::value> struct _Weak_result_type_memfun : _Weak_result_type_impl<_Functor> { }; template<typename _MemFunPtr> struct _Weak_result_type_memfun<_MemFunPtr, true> { using result_type = typename _Mem_fn_traits<_MemFunPtr>::__result_type; }; template<typename _Func, typename _Class> struct _Weak_result_type_memfun<_Func _Class::*, false> { }; template<typename _Functor> struct _Weak_result_type : _Weak_result_type_memfun<typename remove_cv<_Functor>::type> { }; # 302 "/usr/include/c++/13/bits/refwrap.h" 3 template<typename _Tp> class reference_wrapper { _Tp* _M_data; constexpr static _Tp* _S_fun(_Tp& __r) noexcept { return std::__addressof(__r); } static void _S_fun(_Tp&&) = delete; template<typename _Up, typename _Up2 = __remove_cvref_t<_Up>> using __not_same = typename enable_if<!is_same<reference_wrapper, _Up2>::value>::type; public: typedef _Tp type; template<typename _Up, typename = __not_same<_Up>, typename = decltype(reference_wrapper::_S_fun(std::declval<_Up>()))> constexpr reference_wrapper(_Up&& __uref) noexcept(noexcept(reference_wrapper::_S_fun(std::declval<_Up>()))) : _M_data(reference_wrapper::_S_fun(std::forward<_Up>(__uref))) { } reference_wrapper(const reference_wrapper&) = default; reference_wrapper& operator=(const reference_wrapper&) = default; constexpr operator _Tp&() const noexcept { return this->get(); } constexpr _Tp& get() const noexcept { return *_M_data; } template<typename... _Args> constexpr typename __invoke_result<_Tp&, _Args...>::type operator()(_Args&&... __args) const noexcept(__is_nothrow_invocable<_Tp&, _Args...>::value) { if constexpr (is_object_v<type>) static_assert(sizeof(type), "type must be complete"); return std::__invoke(get(), std::forward<_Args>(__args)...); } }; template<typename _Tp> reference_wrapper(_Tp&) -> reference_wrapper<_Tp>; template<typename _Tp> constexpr inline reference_wrapper<_Tp> ref(_Tp& __t) noexcept { return reference_wrapper<_Tp>(__t); } template<typename _Tp> constexpr inline reference_wrapper<const _Tp> cref(const _Tp& __t) noexcept { return reference_wrapper<const _Tp>(__t); } template<typename _Tp> void ref(const _Tp&&) = delete; template<typename _Tp> void cref(const _Tp&&) = delete; template<typename _Tp> constexpr inline reference_wrapper<_Tp> ref(reference_wrapper<_Tp> __t) noexcept { return __t; } template<typename _Tp> constexpr inline reference_wrapper<const _Tp> cref(reference_wrapper<_Tp> __t) noexcept { return { __t.get() }; } } # 53 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/range_access.h" 1 3 # 33 "/usr/include/c++/13/bits/range_access.h" 3 # 34 "/usr/include/c++/13/bits/range_access.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto begin(_Container& __cont) -> decltype(__cont.begin()) { return __cont.begin(); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto begin(const _Container& __cont) -> decltype(__cont.begin()) { return __cont.begin(); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto end(_Container& __cont) -> decltype(__cont.end()) { return __cont.end(); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto end(const _Container& __cont) -> decltype(__cont.end()) { return __cont.end(); } template<typename _Tp, size_t _Nm> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr _Tp* begin(_Tp (&__arr)[_Nm]) noexcept { return __arr; } template<typename _Tp, size_t _Nm> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr _Tp* end(_Tp (&__arr)[_Nm]) noexcept { return __arr + _Nm; } template<typename _Tp> class valarray; template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept; template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept; template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] constexpr auto cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) -> decltype(std::begin(__cont)) { return std::begin(__cont); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] constexpr auto cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) -> decltype(std::end(__cont)) { return std::end(__cont); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rbegin(_Container& __cont) -> decltype(__cont.rbegin()) { return __cont.rbegin(); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rbegin(const _Container& __cont) -> decltype(__cont.rbegin()) { return __cont.rbegin(); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rend(_Container& __cont) -> decltype(__cont.rend()) { return __cont.rend(); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto rend(const _Container& __cont) -> decltype(__cont.rend()) { return __cont.rend(); } template<typename _Tp, size_t _Nm> [[__nodiscard__]] inline constexpr reverse_iterator<_Tp*> rbegin(_Tp (&__arr)[_Nm]) noexcept { return reverse_iterator<_Tp*>(__arr + _Nm); } template<typename _Tp, size_t _Nm> [[__nodiscard__]] inline constexpr reverse_iterator<_Tp*> rend(_Tp (&__arr)[_Nm]) noexcept { return reverse_iterator<_Tp*>(__arr); } template<typename _Tp> [[__nodiscard__]] inline constexpr reverse_iterator<const _Tp*> rbegin(initializer_list<_Tp> __il) noexcept { return reverse_iterator<const _Tp*>(__il.end()); } template<typename _Tp> [[__nodiscard__]] inline constexpr reverse_iterator<const _Tp*> rend(initializer_list<_Tp> __il) noexcept { return reverse_iterator<const _Tp*>(__il.begin()); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto crbegin(const _Container& __cont) -> decltype(std::rbegin(__cont)) { return std::rbegin(__cont); } template<typename _Container> [[__nodiscard__, __gnu__::__always_inline__]] inline constexpr auto crend(const _Container& __cont) -> decltype(std::rend(__cont)) { return std::rend(__cont); } # 261 "/usr/include/c++/13/bits/range_access.h" 3 template <typename _Container> [[nodiscard, __gnu__::__always_inline__]] constexpr auto size(const _Container& __cont) noexcept(noexcept(__cont.size())) -> decltype(__cont.size()) { return __cont.size(); } template <typename _Tp, size_t _Nm> [[nodiscard, __gnu__::__always_inline__]] constexpr size_t size(const _Tp (&)[_Nm]) noexcept { return _Nm; } template <typename _Container> [[nodiscard, __gnu__::__always_inline__]] constexpr auto empty(const _Container& __cont) noexcept(noexcept(__cont.empty())) -> decltype(__cont.empty()) { return __cont.empty(); } template <typename _Tp, size_t _Nm> [[nodiscard, __gnu__::__always_inline__]] constexpr bool empty(const _Tp (&)[_Nm]) noexcept { return false; } template <typename _Tp> [[nodiscard, __gnu__::__always_inline__]] constexpr bool empty(initializer_list<_Tp> __il) noexcept { return __il.size() == 0;} template <typename _Container> [[nodiscard, __gnu__::__always_inline__]] constexpr auto data(_Container& __cont) noexcept(noexcept(__cont.data())) -> decltype(__cont.data()) { return __cont.data(); } template <typename _Container> [[nodiscard, __gnu__::__always_inline__]] constexpr auto data(const _Container& __cont) noexcept(noexcept(__cont.data())) -> decltype(__cont.data()) { return __cont.data(); } template <typename _Tp, size_t _Nm> [[nodiscard, __gnu__::__always_inline__]] constexpr _Tp* data(_Tp (&__array)[_Nm]) noexcept { return __array; } template <typename _Tp> [[nodiscard, __gnu__::__always_inline__]] constexpr const _Tp* data(initializer_list<_Tp> __il) noexcept { return __il.begin(); } template<typename _Container> [[nodiscard, __gnu__::__always_inline__]] constexpr auto ssize(const _Container& __cont) noexcept(noexcept(__cont.size())) -> common_type_t<ptrdiff_t, make_signed_t<decltype(__cont.size())>> { using type = make_signed_t<decltype(__cont.size())>; return static_cast<common_type_t<ptrdiff_t, type>>(__cont.size()); } template<typename _Tp, ptrdiff_t _Num> [[nodiscard, __gnu__::__always_inline__]] constexpr ptrdiff_t ssize(const _Tp (&)[_Num]) noexcept { return _Num; } } # 54 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/basic_string.h" 1 3 # 37 "/usr/include/c++/13/bits/basic_string.h" 3 # 38 "/usr/include/c++/13/bits/basic_string.h" 3 # 1 "/usr/include/c++/13/ext/alloc_traits.h" 1 3 # 32 "/usr/include/c++/13/ext/alloc_traits.h" 3 # 33 "/usr/include/c++/13/ext/alloc_traits.h" 3 # 1 "/usr/include/c++/13/bits/alloc_traits.h" 1 3 # 43 "/usr/include/c++/13/bits/alloc_traits.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __allocator_traits_base { template<typename _Tp, typename _Up, typename = void> struct __rebind : __replace_first_arg<_Tp, _Up> { static_assert(is_same< typename __replace_first_arg<_Tp, typename _Tp::value_type>::type, _Tp>::value, "allocator_traits<A>::rebind_alloc<A::value_type> must be A"); }; template<typename _Tp, typename _Up> struct __rebind<_Tp, _Up, __void_t<typename _Tp::template rebind<_Up>::other>> { using type = typename _Tp::template rebind<_Up>::other; static_assert(is_same< typename _Tp::template rebind<typename _Tp::value_type>::other, _Tp>::value, "allocator_traits<A>::rebind_alloc<A::value_type> must be A"); }; protected: template<typename _Tp> using __pointer = typename _Tp::pointer; template<typename _Tp> using __c_pointer = typename _Tp::const_pointer; template<typename _Tp> using __v_pointer = typename _Tp::void_pointer; template<typename _Tp> using __cv_pointer = typename _Tp::const_void_pointer; template<typename _Tp> using __pocca = typename _Tp::propagate_on_container_copy_assignment; template<typename _Tp> using __pocma = typename _Tp::propagate_on_container_move_assignment; template<typename _Tp> using __pocs = typename _Tp::propagate_on_container_swap; template<typename _Tp> using __equal = __type_identity<typename _Tp::is_always_equal>; }; template<typename _Alloc, typename _Up> using __alloc_rebind = typename __allocator_traits_base::template __rebind<_Alloc, _Up>::type; # 104 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Alloc> struct allocator_traits : __allocator_traits_base { typedef _Alloc allocator_type; typedef typename _Alloc::value_type value_type; using pointer = __detected_or_t<value_type*, __pointer, _Alloc>; private: template<template<typename> class _Func, typename _Tp, typename = void> struct _Ptr { using type = typename pointer_traits<pointer>::template rebind<_Tp>; }; template<template<typename> class _Func, typename _Tp> struct _Ptr<_Func, _Tp, __void_t<_Func<_Alloc>>> { using type = _Func<_Alloc>; }; template<typename _A2, typename _PtrT, typename = void> struct _Diff { using type = typename pointer_traits<_PtrT>::difference_type; }; template<typename _A2, typename _PtrT> struct _Diff<_A2, _PtrT, __void_t<typename _A2::difference_type>> { using type = typename _A2::difference_type; }; template<typename _A2, typename _DiffT, typename = void> struct _Size : make_unsigned<_DiffT> { }; template<typename _A2, typename _DiffT> struct _Size<_A2, _DiffT, __void_t<typename _A2::size_type>> { using type = typename _A2::size_type; }; public: using const_pointer = typename _Ptr<__c_pointer, const value_type>::type; using void_pointer = typename _Ptr<__v_pointer, void>::type; using const_void_pointer = typename _Ptr<__cv_pointer, const void>::type; using difference_type = typename _Diff<_Alloc, pointer>::type; using size_type = typename _Size<_Alloc, difference_type>::type; using propagate_on_container_copy_assignment = __detected_or_t<false_type, __pocca, _Alloc>; using propagate_on_container_move_assignment = __detected_or_t<false_type, __pocma, _Alloc>; using propagate_on_container_swap = __detected_or_t<false_type, __pocs, _Alloc>; using is_always_equal = typename __detected_or_t<is_empty<_Alloc>, __equal, _Alloc>::type; template<typename _Tp> using rebind_alloc = __alloc_rebind<_Alloc, _Tp>; template<typename _Tp> using rebind_traits = allocator_traits<rebind_alloc<_Tp>>; private: template<typename _Alloc2> static constexpr auto _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer __hint, int) -> decltype(__a.allocate(__n, __hint)) { return __a.allocate(__n, __hint); } template<typename _Alloc2> static constexpr pointer _S_allocate(_Alloc2& __a, size_type __n, const_void_pointer, ...) { return __a.allocate(__n); } template<typename _Tp, typename... _Args> struct __construct_helper { template<typename _Alloc2, typename = decltype(std::declval<_Alloc2*>()->construct( std::declval<_Tp*>(), std::declval<_Args>()...))> static true_type __test(int); template<typename> static false_type __test(...); using type = decltype(__test<_Alloc>(0)); }; template<typename _Tp, typename... _Args> using __has_construct = typename __construct_helper<_Tp, _Args...>::type; template<typename _Tp, typename... _Args> static constexpr _Require<__has_construct<_Tp, _Args...>> _S_construct(_Alloc& __a, _Tp* __p, _Args&&... __args) noexcept(noexcept(__a.construct(__p, std::forward<_Args>(__args)...))) { __a.construct(__p, std::forward<_Args>(__args)...); } template<typename _Tp, typename... _Args> static constexpr _Require<__and_<__not_<__has_construct<_Tp, _Args...>>, is_constructible<_Tp, _Args...>>> _S_construct(_Alloc&, _Tp* __p, _Args&&... __args) noexcept(std::is_nothrow_constructible<_Tp, _Args...>::value) { std::construct_at(__p, std::forward<_Args>(__args)...); } template<typename _Alloc2, typename _Tp> static constexpr auto _S_destroy(_Alloc2& __a, _Tp* __p, int) noexcept(noexcept(__a.destroy(__p))) -> decltype(__a.destroy(__p)) { __a.destroy(__p); } template<typename _Alloc2, typename _Tp> static constexpr void _S_destroy(_Alloc2&, _Tp* __p, ...) noexcept(std::is_nothrow_destructible<_Tp>::value) { std::_Destroy(__p); } template<typename _Alloc2> static constexpr auto _S_max_size(_Alloc2& __a, int) -> decltype(__a.max_size()) { return __a.max_size(); } template<typename _Alloc2> static constexpr size_type _S_max_size(_Alloc2&, ...) { return __gnu_cxx::__numeric_traits<size_type>::__max / sizeof(value_type); } template<typename _Alloc2> static constexpr auto _S_select(_Alloc2& __a, int) -> decltype(__a.select_on_container_copy_construction()) { return __a.select_on_container_copy_construction(); } template<typename _Alloc2> static constexpr _Alloc2 _S_select(_Alloc2& __a, ...) { return __a; } public: # 331 "/usr/include/c++/13/bits/alloc_traits.h" 3 [[__nodiscard__]] static constexpr pointer allocate(_Alloc& __a, size_type __n) { return __a.allocate(__n); } # 346 "/usr/include/c++/13/bits/alloc_traits.h" 3 [[__nodiscard__]] static constexpr pointer allocate(_Alloc& __a, size_type __n, const_void_pointer __hint) { return _S_allocate(__a, __n, __hint, 0); } # 358 "/usr/include/c++/13/bits/alloc_traits.h" 3 static constexpr void deallocate(_Alloc& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } # 373 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Tp, typename... _Args> static constexpr auto construct(_Alloc& __a, _Tp* __p, _Args&&... __args) noexcept(noexcept(_S_construct(__a, __p, std::forward<_Args>(__args)...))) -> decltype(_S_construct(__a, __p, std::forward<_Args>(__args)...)) { _S_construct(__a, __p, std::forward<_Args>(__args)...); } # 389 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Tp> static constexpr void destroy(_Alloc& __a, _Tp* __p) noexcept(noexcept(_S_destroy(__a, __p, 0))) { _S_destroy(__a, __p, 0); } # 403 "/usr/include/c++/13/bits/alloc_traits.h" 3 static constexpr size_type max_size(const _Alloc& __a) noexcept { return _S_max_size(__a, 0); } # 415 "/usr/include/c++/13/bits/alloc_traits.h" 3 static constexpr _Alloc select_on_container_copy_construction(const _Alloc& __rhs) { return _S_select(__rhs, 0); } }; # 427 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Tp> struct allocator_traits<allocator<_Tp>> { using allocator_type = allocator<_Tp>; using value_type = _Tp; using pointer = _Tp*; using const_pointer = const _Tp*; using void_pointer = void*; using const_void_pointer = const void*; using difference_type = std::ptrdiff_t; using size_type = std::size_t; using propagate_on_container_copy_assignment = false_type; using propagate_on_container_move_assignment = true_type; using propagate_on_container_swap = false_type; using is_always_equal = true_type; template<typename _Up> using rebind_alloc = allocator<_Up>; template<typename _Up> using rebind_traits = allocator_traits<allocator<_Up>>; # 479 "/usr/include/c++/13/bits/alloc_traits.h" 3 [[__nodiscard__,__gnu__::__always_inline__]] static constexpr pointer allocate(allocator_type& __a, size_type __n) { return __a.allocate(__n); } # 494 "/usr/include/c++/13/bits/alloc_traits.h" 3 [[__nodiscard__,__gnu__::__always_inline__]] static constexpr pointer allocate(allocator_type& __a, size_type __n, const_void_pointer __hint) { return __a.allocate(__n); } # 513 "/usr/include/c++/13/bits/alloc_traits.h" 3 [[__gnu__::__always_inline__]] static constexpr void deallocate(allocator_type& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } # 529 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Up, typename... _Args> [[__gnu__::__always_inline__]] static constexpr void construct(allocator_type& __a __attribute__((__unused__)), _Up* __p, _Args&&... __args) noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) { std::construct_at(__p, std::forward<_Args>(__args)...); } # 550 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Up> [[__gnu__::__always_inline__]] static constexpr void destroy(allocator_type& __a __attribute__((__unused__)), _Up* __p) noexcept(is_nothrow_destructible<_Up>::value) { std::destroy_at(__p); } [[__gnu__::__always_inline__]] static constexpr size_type max_size(const allocator_type& __a __attribute__((__unused__))) noexcept { return size_t(-1) / sizeof(value_type); } [[__gnu__::__always_inline__]] static constexpr allocator_type select_on_container_copy_construction(const allocator_type& __rhs) { return __rhs; } }; template<> struct allocator_traits<allocator<void>> { using allocator_type = allocator<void>; using value_type = void; using pointer = void*; using const_pointer = const void*; using void_pointer = void*; using const_void_pointer = const void*; using difference_type = std::ptrdiff_t; using size_type = std::size_t; using propagate_on_container_copy_assignment = false_type; using propagate_on_container_move_assignment = true_type; using propagate_on_container_swap = false_type; using is_always_equal = true_type; template<typename _Up> using rebind_alloc = allocator<_Up>; template<typename _Up> using rebind_traits = allocator_traits<allocator<_Up>>; static void* allocate(allocator_type&, size_type, const void* = nullptr) = delete; static void deallocate(allocator_type&, void*, size_type) = delete; # 655 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Up, typename... _Args> [[__gnu__::__always_inline__]] static constexpr void construct(allocator_type&, _Up* __p, _Args&&... __args) noexcept(std::is_nothrow_constructible<_Up, _Args...>::value) { std::_Construct(__p, std::forward<_Args>(__args)...); } # 669 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Up> [[__gnu__::__always_inline__]] static constexpr void destroy(allocator_type&, _Up* __p) noexcept(is_nothrow_destructible<_Up>::value) { std::_Destroy(__p); } static size_type max_size(const allocator_type&) = delete; [[__gnu__::__always_inline__]] static constexpr allocator_type select_on_container_copy_construction(const allocator_type& __rhs) { return __rhs; } }; # 707 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Alloc> [[__gnu__::__always_inline__]] constexpr inline void __alloc_on_copy(_Alloc& __one, const _Alloc& __two) { using __traits = allocator_traits<_Alloc>; using __pocca = typename __traits::propagate_on_container_copy_assignment::type; if constexpr (__pocca::value) __one = __two; } template<typename _Alloc> [[__gnu__::__always_inline__]] constexpr _Alloc __alloc_on_copy(const _Alloc& __a) { typedef allocator_traits<_Alloc> __traits; return __traits::select_on_container_copy_construction(__a); } # 744 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Alloc> [[__gnu__::__always_inline__]] constexpr inline void __alloc_on_move(_Alloc& __one, _Alloc& __two) { using __traits = allocator_traits<_Alloc>; using __pocma = typename __traits::propagate_on_container_move_assignment::type; if constexpr (__pocma::value) __one = std::move(__two); } # 775 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _Alloc> [[__gnu__::__always_inline__]] constexpr inline void __alloc_on_swap(_Alloc& __one, _Alloc& __two) { using __traits = allocator_traits<_Alloc>; using __pocs = typename __traits::propagate_on_container_swap::type; if constexpr (__pocs::value) { using std::swap; swap(__one, __two); } } template<typename _Alloc, typename _Tp, typename _ValueT = __remove_cvref_t<typename _Alloc::value_type>, typename = void> struct __is_alloc_insertable_impl : false_type { }; template<typename _Alloc, typename _Tp, typename _ValueT> struct __is_alloc_insertable_impl<_Alloc, _Tp, _ValueT, __void_t<decltype(allocator_traits<_Alloc>::construct( std::declval<_Alloc&>(), std::declval<_ValueT*>(), std::declval<_Tp>()))>> : true_type { }; template<typename _Alloc> struct __is_copy_insertable : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type const&>::type { }; template<typename _Tp> struct __is_copy_insertable<allocator<_Tp>> : is_copy_constructible<_Tp> { }; template<typename _Alloc> struct __is_move_insertable : __is_alloc_insertable_impl<_Alloc, typename _Alloc::value_type>::type { }; template<typename _Tp> struct __is_move_insertable<allocator<_Tp>> : is_move_constructible<_Tp> { }; template<typename _Alloc, typename = void> struct __is_allocator : false_type { }; template<typename _Alloc> struct __is_allocator<_Alloc, __void_t<typename _Alloc::value_type, decltype(std::declval<_Alloc&>().allocate(size_t{}))>> : true_type { }; template<typename _Alloc> using _RequireAllocator = typename enable_if<__is_allocator<_Alloc>::value, _Alloc>::type; template<typename _Alloc> using _RequireNotAllocator = typename enable_if<!__is_allocator<_Alloc>::value, _Alloc>::type; template<typename _Alloc> concept __allocator_like = requires (_Alloc& __a) { typename _Alloc::value_type; __a.deallocate(__a.allocate(1u), 1u); }; template<typename _Alloc, bool = __is_empty(_Alloc)> struct __alloc_swap { static void _S_do_it(_Alloc&, _Alloc&) noexcept { } }; template<typename _Alloc> struct __alloc_swap<_Alloc, false> { static void _S_do_it(_Alloc& __one, _Alloc& __two) noexcept { if (__one != __two) swap(__one, __two); } }; template<typename _Tp, bool = __or_<is_copy_constructible<typename _Tp::value_type>, is_nothrow_move_constructible<typename _Tp::value_type>>::value> struct __shrink_to_fit_aux { static bool _S_do_it(_Tp&) noexcept { return false; } }; template<typename _Tp> struct __shrink_to_fit_aux<_Tp, true> { constexpr static bool _S_do_it(_Tp& __c) noexcept { try { _Tp(__make_move_if_noexcept_iterator(__c.begin()), __make_move_if_noexcept_iterator(__c.end()), __c.get_allocator()).swap(__c); return true; } catch(...) { return false; } } }; # 925 "/usr/include/c++/13/bits/alloc_traits.h" 3 template<typename _ForwardIterator, typename _Allocator> constexpr void _Destroy(_ForwardIterator __first, _ForwardIterator __last, _Allocator& __alloc) { for (; __first != __last; ++__first) allocator_traits<_Allocator>::destroy(__alloc, std::__addressof(*__first)); } template<typename _ForwardIterator, typename _Tp> __attribute__((__always_inline__)) constexpr inline void _Destroy(_ForwardIterator __first, _ForwardIterator __last, allocator<_Tp>&) { _Destroy(__first, __last); } } # 35 "/usr/include/c++/13/ext/alloc_traits.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template<typename _Alloc, typename = typename _Alloc::value_type> struct __alloc_traits : std::allocator_traits<_Alloc> { typedef _Alloc allocator_type; typedef std::allocator_traits<_Alloc> _Base_type; typedef typename _Base_type::value_type value_type; typedef typename _Base_type::pointer pointer; typedef typename _Base_type::const_pointer const_pointer; typedef typename _Base_type::size_type size_type; typedef typename _Base_type::difference_type difference_type; typedef value_type& reference; typedef const value_type& const_reference; using _Base_type::allocate; using _Base_type::deallocate; using _Base_type::construct; using _Base_type::destroy; using _Base_type::max_size; private: template<typename _Ptr> using __is_custom_pointer = std::__and_<std::is_same<pointer, _Ptr>, std::__not_<std::is_pointer<_Ptr>>>; public: template<typename _Ptr, typename... _Args> [[__gnu__::__always_inline__]] static constexpr std::__enable_if_t<__is_custom_pointer<_Ptr>::value> construct(_Alloc& __a, _Ptr __p, _Args&&... __args) noexcept(noexcept(_Base_type::construct(__a, std::__to_address(__p), std::forward<_Args>(__args)...))) { _Base_type::construct(__a, std::__to_address(__p), std::forward<_Args>(__args)...); } template<typename _Ptr> [[__gnu__::__always_inline__]] static constexpr std::__enable_if_t<__is_custom_pointer<_Ptr>::value> destroy(_Alloc& __a, _Ptr __p) noexcept(noexcept(_Base_type::destroy(__a, std::__to_address(__p)))) { _Base_type::destroy(__a, std::__to_address(__p)); } [[__gnu__::__always_inline__]] static constexpr _Alloc _S_select_on_copy(const _Alloc& __a) { return _Base_type::select_on_container_copy_construction(__a); } [[__gnu__::__always_inline__]] static constexpr void _S_on_swap(_Alloc& __a, _Alloc& __b) { std::__alloc_on_swap(__a, __b); } [[__gnu__::__always_inline__]] static constexpr bool _S_propagate_on_copy_assign() { return _Base_type::propagate_on_container_copy_assignment::value; } [[__gnu__::__always_inline__]] static constexpr bool _S_propagate_on_move_assign() { return _Base_type::propagate_on_container_move_assignment::value; } [[__gnu__::__always_inline__]] static constexpr bool _S_propagate_on_swap() { return _Base_type::propagate_on_container_swap::value; } [[__gnu__::__always_inline__]] static constexpr bool _S_always_equal() { return _Base_type::is_always_equal::value; } __attribute__((__always_inline__)) static constexpr bool _S_nothrow_move() { return _S_propagate_on_move_assign() || _S_always_equal(); } template<typename _Tp> struct rebind { typedef typename _Base_type::template rebind_alloc<_Tp> other; }; # 180 "/usr/include/c++/13/ext/alloc_traits.h" 3 }; } # 40 "/usr/include/c++/13/bits/basic_string.h" 2 3 # 1 "/usr/include/c++/13/string_view" 1 3 # 36 "/usr/include/c++/13/string_view" 3 # 37 "/usr/include/c++/13/string_view" 3 # 48 "/usr/include/c++/13/string_view" 3 # 1 "/usr/include/c++/13/bits/ranges_base.h" 1 3 # 33 "/usr/include/c++/13/bits/ranges_base.h" 3 # 34 "/usr/include/c++/13/bits/ranges_base.h" 3 # 1 "/usr/include/c++/13/bits/max_size_type.h" 1 3 # 33 "/usr/include/c++/13/bits/max_size_type.h" 3 # 34 "/usr/include/c++/13/bits/max_size_type.h" 3 # 1 "/usr/include/c++/13/numbers" 1 3 # 32 "/usr/include/c++/13/numbers" 3 # 33 "/usr/include/c++/13/numbers" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace numbers { template<typename _Tp> using _Enable_if_floating = enable_if_t<is_floating_point_v<_Tp>, _Tp>; template<typename _Tp> inline constexpr _Tp e_v = _Enable_if_floating<_Tp>(2.718281828459045235360287471352662498L); template<typename _Tp> inline constexpr _Tp log2e_v = _Enable_if_floating<_Tp>(1.442695040888963407359924681001892137L); template<typename _Tp> inline constexpr _Tp log10e_v = _Enable_if_floating<_Tp>(0.434294481903251827651128918916605082L); template<typename _Tp> inline constexpr _Tp pi_v = _Enable_if_floating<_Tp>(3.141592653589793238462643383279502884L); template<typename _Tp> inline constexpr _Tp inv_pi_v = _Enable_if_floating<_Tp>(0.318309886183790671537767526745028724L); template<typename _Tp> inline constexpr _Tp inv_sqrtpi_v = _Enable_if_floating<_Tp>(0.564189583547756286948079451560772586L); template<typename _Tp> inline constexpr _Tp ln2_v = _Enable_if_floating<_Tp>(0.693147180559945309417232121458176568L); template<typename _Tp> inline constexpr _Tp ln10_v = _Enable_if_floating<_Tp>(2.302585092994045684017991454684364208L); template<typename _Tp> inline constexpr _Tp sqrt2_v = _Enable_if_floating<_Tp>(1.414213562373095048801688724209698079L); template<typename _Tp> inline constexpr _Tp sqrt3_v = _Enable_if_floating<_Tp>(1.732050807568877293527446341505872367L); template<typename _Tp> inline constexpr _Tp inv_sqrt3_v = _Enable_if_floating<_Tp>(0.577350269189625764509148780501957456L); template<typename _Tp> inline constexpr _Tp egamma_v = _Enable_if_floating<_Tp>(0.577215664901532860606512090082402431L); template<typename _Tp> inline constexpr _Tp phi_v = _Enable_if_floating<_Tp>(1.618033988749894848204586834365638118L); inline constexpr double e = e_v<double>; inline constexpr double log2e = log2e_v<double>; inline constexpr double log10e = log10e_v<double>; inline constexpr double pi = pi_v<double>; inline constexpr double inv_pi = inv_pi_v<double>; inline constexpr double inv_sqrtpi = inv_sqrtpi_v<double>; inline constexpr double ln2 = ln2_v<double>; inline constexpr double ln10 = ln10_v<double>; inline constexpr double sqrt2 = sqrt2_v<double>; inline constexpr double sqrt3 = sqrt3_v<double>; inline constexpr double inv_sqrt3 = inv_sqrt3_v<double>; inline constexpr double egamma = egamma_v<double>; inline constexpr double phi = phi_v<double>; # 223 "/usr/include/c++/13/numbers" 3 template<> inline constexpr __float128 e_v<__float128> = 2.718281828459045235360287471352662498Q; template<> inline constexpr __float128 log2e_v<__float128> = 1.442695040888963407359924681001892137Q; template<> inline constexpr __float128 log10e_v<__float128> = 0.434294481903251827651128918916605082Q; template<> inline constexpr __float128 pi_v<__float128> = 3.141592653589793238462643383279502884Q; template<> inline constexpr __float128 inv_pi_v<__float128> = 0.318309886183790671537767526745028724Q; template<> inline constexpr __float128 inv_sqrtpi_v<__float128> = 0.564189583547756286948079451560772586Q; template<> inline constexpr __float128 ln2_v<__float128> = 0.693147180559945309417232121458176568Q; template<> inline constexpr __float128 ln10_v<__float128> = 2.302585092994045684017991454684364208Q; template<> inline constexpr __float128 sqrt2_v<__float128> = 1.414213562373095048801688724209698079Q; template<> inline constexpr __float128 sqrt3_v<__float128> = 1.732050807568877293527446341505872367Q; template<> inline constexpr __float128 inv_sqrt3_v<__float128> = 0.577350269189625764509148780501957456Q; template<> inline constexpr __float128 egamma_v<__float128> = 0.577215664901532860606512090082402431Q; template<> inline constexpr __float128 phi_v<__float128> = 1.618033988749894848204586834365638118Q; } } # 38 "/usr/include/c++/13/bits/max_size_type.h" 2 3 # 48 "/usr/include/c++/13/bits/max_size_type.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> struct numeric_limits; namespace ranges { namespace __detail { class __max_size_type { public: __max_size_type() = default; template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> constexpr __max_size_type(_Tp __i) noexcept : _M_val(__i), _M_msb(__i < 0) { } constexpr explicit __max_size_type(const __max_diff_type& __d) noexcept; template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> constexpr explicit operator _Tp() const noexcept { return _M_val; } constexpr explicit operator bool() const noexcept { return _M_val != 0 || _M_msb != 0; } constexpr __max_size_type operator+() const noexcept { return *this; } constexpr __max_size_type operator~() const noexcept { return __max_size_type{~_M_val, !_M_msb}; } constexpr __max_size_type operator-() const noexcept { return operator~() + 1; } constexpr __max_size_type& operator++() noexcept { return *this += 1; } constexpr __max_size_type operator++(int) noexcept { auto __tmp = *this; ++*this; return __tmp; } constexpr __max_size_type& operator--() noexcept { return *this -= 1; } constexpr __max_size_type operator--(int) noexcept { auto __tmp = *this; --*this; return __tmp; } constexpr __max_size_type& operator+=(const __max_size_type& __r) noexcept { const auto __sum = _M_val + __r._M_val; const bool __overflow = (__sum < _M_val); _M_msb = _M_msb ^ __r._M_msb ^ __overflow; _M_val = __sum; return *this; } constexpr __max_size_type& operator-=(const __max_size_type& __r) noexcept { return *this += -__r; } constexpr __max_size_type& operator*=(__max_size_type __r) noexcept { constexpr __max_size_type __threshold = __rep(1) << (_S_rep_bits / 2 - 1); if (_M_val < __threshold && __r < __threshold) _M_val = _M_val * __r._M_val; else { const bool __lsb = _M_val & 1; const bool __rlsb = __r._M_val & 1; *this >>= 1; __r >>= 1; _M_val = (2 * _M_val * __r._M_val + _M_val * __rlsb + __r._M_val * __lsb); *this <<= 1; *this += __rlsb * __lsb; } return *this; } constexpr __max_size_type& operator/=(const __max_size_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r != 0)) __builtin_unreachable(); } while (false); if (!_M_msb && !__r._M_msb) [[likely]] _M_val /= __r._M_val; else if (_M_msb && __r._M_msb) { _M_val = (_M_val >= __r._M_val); _M_msb = 0; } else if (!_M_msb && __r._M_msb) _M_val = 0; else if (_M_msb && !__r._M_msb) { const auto __orig = *this; *this >>= 1; _M_val /= __r._M_val; *this <<= 1; if (__orig - *this * __r >= __r) ++_M_val; } return *this; } constexpr __max_size_type& operator%=(const __max_size_type& __r) noexcept { if (!_M_msb && !__r._M_msb) [[likely]] _M_val %= __r._M_val; else *this -= (*this / __r) * __r; return *this; } constexpr __max_size_type& operator<<=(const __max_size_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r <= _S_rep_bits)) __builtin_unreachable(); } while (false); if (__r != 0) { _M_msb = (_M_val >> (_S_rep_bits - __r._M_val)) & 1; if (__r._M_val == _S_rep_bits) [[unlikely]] _M_val = 0; else _M_val <<= __r._M_val; } return *this; } constexpr __max_size_type& operator>>=(const __max_size_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r <= _S_rep_bits)) __builtin_unreachable(); } while (false); if (__r != 0) { if (__r._M_val == _S_rep_bits) [[unlikely]] _M_val = 0; else _M_val >>= __r._M_val; if (_M_msb) [[unlikely]] { _M_val |= __rep(1) << (_S_rep_bits - __r._M_val); _M_msb = 0; } } return *this; } constexpr __max_size_type& operator&=(const __max_size_type& __r) noexcept { _M_val &= __r._M_val; _M_msb &= __r._M_msb; return *this; } constexpr __max_size_type& operator|=(const __max_size_type& __r) noexcept { _M_val |= __r._M_val; _M_msb |= __r._M_msb; return *this; } constexpr __max_size_type& operator^=(const __max_size_type& __r) noexcept { _M_val ^= __r._M_val; _M_msb ^= __r._M_msb; return *this; } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator+=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a + __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator-=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a - __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator*=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a * __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator/=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a / __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator%=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a % __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator&=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a & __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator|=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a | __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator^=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a ^ __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator<<=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a << __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator>>=(_Tp& __a, const __max_size_type& __b) noexcept { return (__a = static_cast<_Tp>(__a >> __b)); } friend constexpr __max_size_type operator+(__max_size_type __l, const __max_size_type& __r) noexcept { __l += __r; return __l; } friend constexpr __max_size_type operator-(__max_size_type __l, const __max_size_type& __r) noexcept { __l -= __r; return __l; } friend constexpr __max_size_type operator*(__max_size_type __l, const __max_size_type& __r) noexcept { __l *= __r; return __l; } friend constexpr __max_size_type operator/(__max_size_type __l, const __max_size_type& __r) noexcept { __l /= __r; return __l; } friend constexpr __max_size_type operator%(__max_size_type __l, const __max_size_type& __r) noexcept { __l %= __r; return __l; } friend constexpr __max_size_type operator<<(__max_size_type __l, const __max_size_type& __r) noexcept { __l <<= __r; return __l; } friend constexpr __max_size_type operator>>(__max_size_type __l, const __max_size_type& __r) noexcept { __l >>= __r; return __l; } friend constexpr __max_size_type operator&(__max_size_type __l, const __max_size_type& __r) noexcept { __l &= __r; return __l; } friend constexpr __max_size_type operator|(__max_size_type __l, const __max_size_type& __r) noexcept { __l |= __r; return __l; } friend constexpr __max_size_type operator^(__max_size_type __l, const __max_size_type& __r) noexcept { __l ^= __r; return __l; } friend constexpr bool operator==(const __max_size_type& __l, const __max_size_type& __r) noexcept { return __l._M_val == __r._M_val && __l._M_msb == __r._M_msb; } friend constexpr strong_ordering operator<=>(const __max_size_type& __l, const __max_size_type& __r) noexcept { if (__l._M_msb ^ __r._M_msb) return __l._M_msb ? strong_ordering::greater : strong_ordering::less; else return __l._M_val <=> __r._M_val; } # 420 "/usr/include/c++/13/bits/max_size_type.h" 3 __extension__ using __rep = unsigned __int128; static constexpr size_t _S_rep_bits = sizeof(__rep) * 8; private: __rep _M_val = 0; unsigned _M_msb:1 = 0; constexpr explicit __max_size_type(__rep __val, int __msb) noexcept : _M_val(__val), _M_msb(__msb) { } friend __max_diff_type; friend std::numeric_limits<__max_size_type>; friend std::numeric_limits<__max_diff_type>; }; class __max_diff_type { public: __max_diff_type() = default; template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> constexpr __max_diff_type(_Tp __i) noexcept : _M_rep(__i) { } constexpr explicit __max_diff_type(const __max_size_type& __d) noexcept : _M_rep(__d) { } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> constexpr explicit operator _Tp() const noexcept { return static_cast<_Tp>(_M_rep); } constexpr explicit operator bool() const noexcept { return _M_rep != 0; } constexpr __max_diff_type operator+() const noexcept { return *this; } constexpr __max_diff_type operator-() const noexcept { return __max_diff_type(-_M_rep); } constexpr __max_diff_type operator~() const noexcept { return __max_diff_type(~_M_rep); } constexpr __max_diff_type& operator++() noexcept { return *this += 1; } constexpr __max_diff_type operator++(int) noexcept { auto __tmp = *this; ++*this; return __tmp; } constexpr __max_diff_type& operator--() noexcept { return *this -= 1; } constexpr __max_diff_type operator--(int) noexcept { auto __tmp = *this; --*this; return __tmp; } constexpr __max_diff_type& operator+=(const __max_diff_type& __r) noexcept { _M_rep += __r._M_rep; return *this; } constexpr __max_diff_type& operator-=(const __max_diff_type& __r) noexcept { _M_rep -= __r._M_rep; return *this; } constexpr __max_diff_type& operator*=(const __max_diff_type& __r) noexcept { _M_rep *= __r._M_rep; return *this; } constexpr __max_diff_type& operator/=(const __max_diff_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r != 0)) __builtin_unreachable(); } while (false); const bool __neg = *this < 0; const bool __rneg = __r < 0; if (!__neg && !__rneg) _M_rep = _M_rep / __r._M_rep; else if (__neg && __rneg) _M_rep = -_M_rep / -__r._M_rep; else if (__neg && !__rneg) _M_rep = -(-_M_rep / __r._M_rep); else _M_rep = -(_M_rep / -__r._M_rep); return *this ; } constexpr __max_diff_type& operator%=(const __max_diff_type& __r) noexcept { do { if (std::__is_constant_evaluated() && !bool(__r != 0)) __builtin_unreachable(); } while (false); if (*this >= 0 && __r > 0) _M_rep %= __r._M_rep; else *this -= (*this / __r) * __r; return *this; } constexpr __max_diff_type& operator<<=(const __max_diff_type& __r) noexcept { _M_rep.operator<<=(__r._M_rep); return *this; } constexpr __max_diff_type& operator>>=(const __max_diff_type& __r) noexcept { const auto __msb = _M_rep._M_msb; _M_rep >>= __r._M_rep; if (__msb) _M_rep |= ~(__max_size_type(-1) >> __r._M_rep); return *this; } constexpr __max_diff_type& operator&=(const __max_diff_type& __r) noexcept { _M_rep &= __r._M_rep; return *this; } constexpr __max_diff_type& operator|=(const __max_diff_type& __r) noexcept { _M_rep |= __r._M_rep; return *this; } constexpr __max_diff_type& operator^=(const __max_diff_type& __r) noexcept { _M_rep ^= __r._M_rep; return *this; } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator+=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a + __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator-=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a - __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator*=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a * __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator/=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a / __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator%=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a % __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator&=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a & __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator|=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a | __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator^=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a ^ __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator<<=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a << __b)); } template<typename _Tp> requires integral<_Tp> || __is_int128<_Tp> friend constexpr _Tp& operator>>=(_Tp& __a, const __max_diff_type& __b) noexcept { return (__a = static_cast<_Tp>(__a >> __b)); } friend constexpr __max_diff_type operator+(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l += __r; return __l; } friend constexpr __max_diff_type operator-(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l -= __r; return __l; } friend constexpr __max_diff_type operator*(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l *= __r; return __l; } friend constexpr __max_diff_type operator/(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l /= __r; return __l; } friend constexpr __max_diff_type operator%(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l %= __r; return __l; } friend constexpr __max_diff_type operator<<(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l <<= __r; return __l; } friend constexpr __max_diff_type operator>>(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l >>= __r; return __l; } friend constexpr __max_diff_type operator&(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l &= __r; return __l; } friend constexpr __max_diff_type operator|(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l |= __r; return __l; } friend constexpr __max_diff_type operator^(__max_diff_type __l, const __max_diff_type& __r) noexcept { __l ^= __r; return __l; } friend constexpr bool operator==(const __max_diff_type& __l, const __max_diff_type& __r) noexcept { return __l._M_rep == __r._M_rep; } constexpr strong_ordering operator<=>(const __max_diff_type& __r) const noexcept { const auto __lsign = _M_rep._M_msb; const auto __rsign = __r._M_rep._M_msb; if (__lsign ^ __rsign) return __lsign ? strong_ordering::less : strong_ordering::greater; else return _M_rep <=> __r._M_rep; } # 753 "/usr/include/c++/13/bits/max_size_type.h" 3 private: __max_size_type _M_rep = 0; friend class __max_size_type; }; constexpr __max_size_type::__max_size_type(const __max_diff_type& __d) noexcept : __max_size_type(__d._M_rep) { } } } template<> struct numeric_limits<ranges::__detail::__max_size_type> { using _Sp = ranges::__detail::__max_size_type; static constexpr bool is_specialized = true; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int digits = __gnu_cxx::__int_traits<_Sp::__rep>::__digits + 1; static constexpr int digits10 = static_cast<int>(digits * numbers::ln2 / numbers::ln10); static constexpr _Sp min() noexcept { return 0; } static constexpr _Sp max() noexcept { return _Sp(static_cast<_Sp::__rep>(-1), 1); } static constexpr _Sp lowest() noexcept { return min(); } }; template<> struct numeric_limits<ranges::__detail::__max_diff_type> { using _Dp = ranges::__detail::__max_diff_type; using _Sp = ranges::__detail::__max_size_type; static constexpr bool is_specialized = true; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int digits = numeric_limits<_Sp>::digits - 1; static constexpr int digits10 = static_cast<int>(digits * numbers::ln2 / numbers::ln10); static constexpr _Dp min() noexcept { return _Dp(_Sp(0, 1)); } static constexpr _Dp max() noexcept { return _Dp(_Sp(static_cast<_Sp::__rep>(-1), 0)); } static constexpr _Dp lowest() noexcept { return min(); } }; } # 40 "/usr/include/c++/13/bits/ranges_base.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { template<typename> inline constexpr bool disable_sized_range = false; template<typename _Tp> inline constexpr bool enable_borrowed_range = false; namespace __detail { constexpr __max_size_type __to_unsigned_like(__max_size_type __t) noexcept { return __t; } constexpr __max_size_type __to_unsigned_like(__max_diff_type __t) noexcept { return __max_size_type(__t); } template<integral _Tp> constexpr auto __to_unsigned_like(_Tp __t) noexcept { return static_cast<make_unsigned_t<_Tp>>(__t); } # 78 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _Tp> using __make_unsigned_like_t = decltype(__detail::__to_unsigned_like(std::declval<_Tp>())); template<typename _Tp> concept __maybe_borrowed_range = is_lvalue_reference_v<_Tp> || enable_borrowed_range<remove_cvref_t<_Tp>>; } namespace __cust_access { using std::ranges::__detail::__maybe_borrowed_range; using std::__detail::__range_iter_t; struct _Begin { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (is_array_v<remove_reference_t<_Tp>>) return true; else if constexpr (__member_begin<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().begin())); else return noexcept(__decay_copy(begin(std::declval<_Tp&>()))); } public: template<__maybe_borrowed_range _Tp> requires is_array_v<remove_reference_t<_Tp>> || __member_begin<_Tp> || __adl_begin<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (is_array_v<remove_reference_t<_Tp>>) { static_assert(is_lvalue_reference_v<_Tp>); return __t + 0; } else if constexpr (__member_begin<_Tp>) return __t.begin(); else return begin(__t); } }; template<typename _Tp> concept __member_end = requires(_Tp& __t) { { __decay_copy(__t.end()) } -> sentinel_for<__range_iter_t<_Tp>>; }; void end(auto&) = delete; void end(const auto&) = delete; template<typename _Tp> concept __adl_end = __class_or_enum<remove_reference_t<_Tp>> && requires(_Tp& __t) { { __decay_copy(end(__t)) } -> sentinel_for<__range_iter_t<_Tp>>; }; struct _End { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (is_bounded_array_v<remove_reference_t<_Tp>>) return true; else if constexpr (__member_end<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().end())); else return noexcept(__decay_copy(end(std::declval<_Tp&>()))); } public: template<__maybe_borrowed_range _Tp> requires is_bounded_array_v<remove_reference_t<_Tp>> || __member_end<_Tp> || __adl_end<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (is_bounded_array_v<remove_reference_t<_Tp>>) { static_assert(is_lvalue_reference_v<_Tp>); return __t + extent_v<remove_reference_t<_Tp>>; } else if constexpr (__member_end<_Tp>) return __t.end(); else return end(__t); } }; template<typename _Tp> concept __member_rbegin = requires(_Tp& __t) { { __decay_copy(__t.rbegin()) } -> input_or_output_iterator; }; void rbegin(auto&) = delete; void rbegin(const auto&) = delete; template<typename _Tp> concept __adl_rbegin = __class_or_enum<remove_reference_t<_Tp>> && requires(_Tp& __t) { { __decay_copy(rbegin(__t)) } -> input_or_output_iterator; }; template<typename _Tp> concept __reversable = requires(_Tp& __t) { { _Begin{}(__t) } -> bidirectional_iterator; { _End{}(__t) } -> same_as<decltype(_Begin{}(__t))>; }; struct _RBegin { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (__member_rbegin<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().rbegin())); else if constexpr (__adl_rbegin<_Tp>) return noexcept(__decay_copy(rbegin(std::declval<_Tp&>()))); else { if constexpr (noexcept(_End{}(std::declval<_Tp&>()))) { using _It = decltype(_End{}(std::declval<_Tp&>())); return is_nothrow_copy_constructible_v<_It>; } else return false; } } public: template<__maybe_borrowed_range _Tp> requires __member_rbegin<_Tp> || __adl_rbegin<_Tp> || __reversable<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (__member_rbegin<_Tp>) return __t.rbegin(); else if constexpr (__adl_rbegin<_Tp>) return rbegin(__t); else return std::make_reverse_iterator(_End{}(__t)); } }; template<typename _Tp> concept __member_rend = requires(_Tp& __t) { { __decay_copy(__t.rend()) } -> sentinel_for<decltype(_RBegin{}(std::forward<_Tp>(__t)))>; }; void rend(auto&) = delete; void rend(const auto&) = delete; template<typename _Tp> concept __adl_rend = __class_or_enum<remove_reference_t<_Tp>> && requires(_Tp& __t) { { __decay_copy(rend(__t)) } -> sentinel_for<decltype(_RBegin{}(std::forward<_Tp>(__t)))>; }; struct _REnd { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (__member_rend<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().rend())); else if constexpr (__adl_rend<_Tp>) return noexcept(__decay_copy(rend(std::declval<_Tp&>()))); else { if constexpr (noexcept(_Begin{}(std::declval<_Tp&>()))) { using _It = decltype(_Begin{}(std::declval<_Tp&>())); return is_nothrow_copy_constructible_v<_It>; } else return false; } } public: template<__maybe_borrowed_range _Tp> requires __member_rend<_Tp> || __adl_rend<_Tp> || __reversable<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (__member_rend<_Tp>) return __t.rend(); else if constexpr (__adl_rend<_Tp>) return rend(__t); else return std::make_reverse_iterator(_Begin{}(__t)); } }; template<typename _Tp> concept __member_size = !disable_sized_range<remove_cvref_t<_Tp>> && requires(_Tp& __t) { { __decay_copy(__t.size()) } -> __detail::__is_integer_like; }; void size(auto&) = delete; void size(const auto&) = delete; template<typename _Tp> concept __adl_size = __class_or_enum<remove_reference_t<_Tp>> && !disable_sized_range<remove_cvref_t<_Tp>> && requires(_Tp& __t) { { __decay_copy(size(__t)) } -> __detail::__is_integer_like; }; template<typename _Tp> concept __sentinel_size = requires(_Tp& __t) { requires (!is_unbounded_array_v<remove_reference_t<_Tp>>); { _Begin{}(__t) } -> forward_iterator; { _End{}(__t) } -> sized_sentinel_for<decltype(_Begin{}(__t))>; __detail::__to_unsigned_like(_End{}(__t) - _Begin{}(__t)); }; struct _Size { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (is_bounded_array_v<remove_reference_t<_Tp>>) return true; else if constexpr (__member_size<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().size())); else if constexpr (__adl_size<_Tp>) return noexcept(__decay_copy(size(std::declval<_Tp&>()))); else if constexpr (__sentinel_size<_Tp>) return noexcept(_End{}(std::declval<_Tp&>()) - _Begin{}(std::declval<_Tp&>())); } public: template<typename _Tp> requires is_bounded_array_v<remove_reference_t<_Tp>> || __member_size<_Tp> || __adl_size<_Tp> || __sentinel_size<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (is_bounded_array_v<remove_reference_t<_Tp>>) return extent_v<remove_reference_t<_Tp>>; else if constexpr (__member_size<_Tp>) return __t.size(); else if constexpr (__adl_size<_Tp>) return size(__t); else if constexpr (__sentinel_size<_Tp>) return __detail::__to_unsigned_like(_End{}(__t) - _Begin{}(__t)); } }; struct _SSize { template<typename _Tp> requires requires (_Tp& __t) { _Size{}(__t); } constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(noexcept(_Size{}(__t))) { auto __size = _Size{}(__t); using __size_type = decltype(__size); if constexpr (integral<__size_type>) { using __gnu_cxx::__int_traits; if constexpr (__int_traits<__size_type>::__digits < __int_traits<ptrdiff_t>::__digits) return static_cast<ptrdiff_t>(__size); else return static_cast<make_signed_t<__size_type>>(__size); } else return __detail::__max_diff_type(__size); } }; template<typename _Tp> concept __member_empty = requires(_Tp& __t) { bool(__t.empty()); }; template<typename _Tp> concept __size0_empty = requires(_Tp& __t) { _Size{}(__t) == 0; }; template<typename _Tp> concept __eq_iter_empty = requires(_Tp& __t) { requires (!is_unbounded_array_v<remove_reference_t<_Tp>>); { _Begin{}(__t) } -> forward_iterator; bool(_Begin{}(__t) == _End{}(__t)); }; struct _Empty { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (__member_empty<_Tp>) return noexcept(bool(std::declval<_Tp&>().empty())); else if constexpr (__size0_empty<_Tp>) return noexcept(_Size{}(std::declval<_Tp&>()) == 0); else return noexcept(bool(_Begin{}(std::declval<_Tp&>()) == _End{}(std::declval<_Tp&>()))); } public: template<typename _Tp> requires __member_empty<_Tp> || __size0_empty<_Tp> || __eq_iter_empty<_Tp> constexpr bool operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp&>()) { if constexpr (__member_empty<_Tp>) return bool(__t.empty()); else if constexpr (__size0_empty<_Tp>) return _Size{}(__t) == 0; else return bool(_Begin{}(__t) == _End{}(__t)); } }; template<typename _Tp> concept __pointer_to_object = is_pointer_v<_Tp> && is_object_v<remove_pointer_t<_Tp>>; template<typename _Tp> concept __member_data = requires(_Tp& __t) { { __decay_copy(__t.data()) } -> __pointer_to_object; }; template<typename _Tp> concept __begin_data = contiguous_iterator<__range_iter_t<_Tp>>; struct _Data { private: template<typename _Tp> static constexpr bool _S_noexcept() { if constexpr (__member_data<_Tp>) return noexcept(__decay_copy(std::declval<_Tp&>().data())); else return noexcept(_Begin{}(std::declval<_Tp&>())); } public: template<__maybe_borrowed_range _Tp> requires __member_data<_Tp> || __begin_data<_Tp> constexpr auto operator()[[nodiscard]](_Tp&& __t) const noexcept(_S_noexcept<_Tp>()) { if constexpr (__member_data<_Tp>) return __t.data(); else return std::to_address(_Begin{}(__t)); } }; } inline namespace __cust { inline constexpr __cust_access::_Begin begin{}; inline constexpr __cust_access::_End end{}; inline constexpr __cust_access::_RBegin rbegin{}; inline constexpr __cust_access::_REnd rend{}; inline constexpr __cust_access::_Size size{}; inline constexpr __cust_access::_SSize ssize{}; inline constexpr __cust_access::_Empty empty{}; inline constexpr __cust_access::_Data data{}; } template<typename _Tp> concept range = requires(_Tp& __t) { ranges::begin(__t); ranges::end(__t); }; template<typename _Tp> concept borrowed_range = range<_Tp> && __detail::__maybe_borrowed_range<_Tp>; template<typename _Tp> using iterator_t = std::__detail::__range_iter_t<_Tp>; template<range _Range> using sentinel_t = decltype(ranges::end(std::declval<_Range&>())); # 529 "/usr/include/c++/13/bits/ranges_base.h" 3 template<range _Range> using range_difference_t = iter_difference_t<iterator_t<_Range>>; template<range _Range> using range_value_t = iter_value_t<iterator_t<_Range>>; template<range _Range> using range_reference_t = iter_reference_t<iterator_t<_Range>>; template<range _Range> using range_rvalue_reference_t = iter_rvalue_reference_t<iterator_t<_Range>>; template<typename _Tp> concept sized_range = range<_Tp> && requires(_Tp& __t) { ranges::size(__t); }; template<sized_range _Range> using range_size_t = decltype(ranges::size(std::declval<_Range&>())); template<typename _Derived> requires is_class_v<_Derived> && same_as<_Derived, remove_cv_t<_Derived>> class view_interface; namespace __detail { template<typename _Tp, typename _Up> requires (!same_as<_Tp, view_interface<_Up>>) void __is_derived_from_view_interface_fn(const _Tp&, const view_interface<_Up>&); template<typename _Tp> concept __is_derived_from_view_interface = requires (_Tp __t) { __is_derived_from_view_interface_fn(__t, __t); }; } struct view_base { }; template<typename _Tp> inline constexpr bool enable_view = derived_from<_Tp, view_base> || __detail::__is_derived_from_view_interface<_Tp>; template<typename _Tp> concept view = range<_Tp> && movable<_Tp> && enable_view<_Tp>; template<typename _Range, typename _Tp> concept output_range = range<_Range> && output_iterator<iterator_t<_Range>, _Tp>; template<typename _Tp> concept input_range = range<_Tp> && input_iterator<iterator_t<_Tp>>; template<typename _Tp> concept forward_range = input_range<_Tp> && forward_iterator<iterator_t<_Tp>>; template<typename _Tp> concept bidirectional_range = forward_range<_Tp> && bidirectional_iterator<iterator_t<_Tp>>; template<typename _Tp> concept random_access_range = bidirectional_range<_Tp> && random_access_iterator<iterator_t<_Tp>>; template<typename _Tp> concept contiguous_range = random_access_range<_Tp> && contiguous_iterator<iterator_t<_Tp>> && requires(_Tp& __t) { { ranges::data(__t) } -> same_as<add_pointer_t<range_reference_t<_Tp>>>; }; template<typename _Tp> concept common_range = range<_Tp> && same_as<iterator_t<_Tp>, sentinel_t<_Tp>>; namespace __cust_access { # 641 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _To, typename _Tp> constexpr decltype(auto) __as_const(_Tp& __t) noexcept { static_assert(std::is_same_v<_To&, _Tp&>); if constexpr (is_lvalue_reference_v<_To>) return const_cast<const _Tp&>(__t); else return static_cast<const _Tp&&>(__t); } struct _CBegin { # 670 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __e) const noexcept(noexcept(_Begin{}(__cust_access::__as_const<_Tp>(__e)))) requires requires { _Begin{}(__cust_access::__as_const<_Tp>(__e)); } { return _Begin{}(__cust_access::__as_const<_Tp>(__e)); } }; struct _CEnd final { # 698 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __e) const noexcept(noexcept(_End{}(__cust_access::__as_const<_Tp>(__e)))) requires requires { _End{}(__cust_access::__as_const<_Tp>(__e)); } { return _End{}(__cust_access::__as_const<_Tp>(__e)); } }; struct _CRBegin { # 726 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __e) const noexcept(noexcept(_RBegin{}(__cust_access::__as_const<_Tp>(__e)))) requires requires { _RBegin{}(__cust_access::__as_const<_Tp>(__e)); } { return _RBegin{}(__cust_access::__as_const<_Tp>(__e)); } }; struct _CREnd { # 754 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __e) const noexcept(noexcept(_REnd{}(__cust_access::__as_const<_Tp>(__e)))) requires requires { _REnd{}(__cust_access::__as_const<_Tp>(__e)); } { return _REnd{}(__cust_access::__as_const<_Tp>(__e)); } }; struct _CData { # 777 "/usr/include/c++/13/bits/ranges_base.h" 3 template<typename _Tp> [[nodiscard]] constexpr auto operator()(_Tp&& __e) const noexcept(noexcept(_Data{}(__cust_access::__as_const<_Tp>(__e)))) requires requires { _Data{}(__cust_access::__as_const<_Tp>(__e)); } { return _Data{}(__cust_access::__as_const<_Tp>(__e)); } }; } inline namespace __cust { inline constexpr __cust_access::_CBegin cbegin{}; inline constexpr __cust_access::_CEnd cend{}; inline constexpr __cust_access::_CRBegin crbegin{}; inline constexpr __cust_access::_CREnd crend{}; inline constexpr __cust_access::_CData cdata{}; } namespace __detail { template<typename _Tp> inline constexpr bool __is_initializer_list = false; template<typename _Tp> inline constexpr bool __is_initializer_list<initializer_list<_Tp>> = true; } template<typename _Tp> concept viewable_range = range<_Tp> && ((view<remove_cvref_t<_Tp>> && constructible_from<remove_cvref_t<_Tp>, _Tp>) || (!view<remove_cvref_t<_Tp>> && (is_lvalue_reference_v<_Tp> || (movable<remove_reference_t<_Tp>> && !__detail::__is_initializer_list<remove_cvref_t<_Tp>>)))); struct __advance_fn final { template<input_or_output_iterator _It> constexpr void operator()(_It& __it, iter_difference_t<_It> __n) const { if constexpr (random_access_iterator<_It>) __it += __n; else if constexpr (bidirectional_iterator<_It>) { if (__n > 0) { do { ++__it; } while (--__n); } else if (__n < 0) { do { --__it; } while (++__n); } } else { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); while (__n-- > 0) ++__it; } } template<input_or_output_iterator _It, sentinel_for<_It> _Sent> constexpr void operator()(_It& __it, _Sent __bound) const { if constexpr (assignable_from<_It&, _Sent>) __it = std::move(__bound); else if constexpr (sized_sentinel_for<_Sent, _It>) (*this)(__it, __bound - __it); else { while (__it != __bound) ++__it; } } template<input_or_output_iterator _It, sentinel_for<_It> _Sent> constexpr iter_difference_t<_It> operator()(_It& __it, iter_difference_t<_It> __n, _Sent __bound) const { if constexpr (sized_sentinel_for<_Sent, _It>) { const auto __diff = __bound - __it; if (__diff == 0) return __n; else if (__diff > 0 ? __n >= __diff : __n <= __diff) { (*this)(__it, __bound); return __n - __diff; } else if (__n != 0) [[likely]] { do { if (std::__is_constant_evaluated() && !bool((__n < 0) == (__diff < 0))) __builtin_unreachable(); } while (false); (*this)(__it, __n); return 0; } else return 0; } else if (__it == __bound || __n == 0) return __n; else if (__n > 0) { iter_difference_t<_It> __m = 0; do { ++__it; ++__m; } while (__m != __n && __it != __bound); return __n - __m; } else if constexpr (bidirectional_iterator<_It> && same_as<_It, _Sent>) { iter_difference_t<_It> __m = 0; do { --__it; --__m; } while (__m != __n && __it != __bound); return __n - __m; } else { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); return __n; } } void operator&() const = delete; }; inline constexpr __advance_fn advance{}; struct __distance_fn final { template<input_or_output_iterator _It, sentinel_for<_It> _Sent> requires (!sized_sentinel_for<_Sent, _It>) constexpr iter_difference_t<_It> operator()[[nodiscard]](_It __first, _Sent __last) const { iter_difference_t<_It> __n = 0; while (__first != __last) { ++__first; ++__n; } return __n; } template<input_or_output_iterator _It, sized_sentinel_for<_It> _Sent> [[nodiscard]] constexpr iter_difference_t<_It> operator()(const _It& __first, const _Sent& __last) const { return __last - __first; } template<range _Range> [[nodiscard]] constexpr range_difference_t<_Range> operator()(_Range&& __r) const { if constexpr (sized_range<_Range>) return static_cast<range_difference_t<_Range>>(ranges::size(__r)); else return (*this)(ranges::begin(__r), ranges::end(__r)); } void operator&() const = delete; }; inline constexpr __distance_fn distance{}; struct __next_fn final { template<input_or_output_iterator _It> [[nodiscard]] constexpr _It operator()(_It __x) const { ++__x; return __x; } template<input_or_output_iterator _It> [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n) const { ranges::advance(__x, __n); return __x; } template<input_or_output_iterator _It, sentinel_for<_It> _Sent> [[nodiscard]] constexpr _It operator()(_It __x, _Sent __bound) const { ranges::advance(__x, __bound); return __x; } template<input_or_output_iterator _It, sentinel_for<_It> _Sent> [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n, _Sent __bound) const { ranges::advance(__x, __n, __bound); return __x; } void operator&() const = delete; }; inline constexpr __next_fn next{}; struct __prev_fn final { template<bidirectional_iterator _It> [[nodiscard]] constexpr _It operator()(_It __x) const { --__x; return __x; } template<bidirectional_iterator _It> [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n) const { ranges::advance(__x, -__n); return __x; } template<bidirectional_iterator _It> [[nodiscard]] constexpr _It operator()(_It __x, iter_difference_t<_It> __n, _It __bound) const { ranges::advance(__x, -__n, __bound); return __x; } void operator&() const = delete; }; inline constexpr __prev_fn prev{}; struct dangling { constexpr dangling() noexcept = default; template<typename... _Args> constexpr dangling(_Args&&...) noexcept { } }; template<range _Range> using borrowed_iterator_t = __conditional_t<borrowed_range<_Range>, iterator_t<_Range>, dangling>; } } # 49 "/usr/include/c++/13/string_view" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 69 "/usr/include/c++/13/string_view" 3 constexpr size_t __sv_check(size_t __size, size_t __pos, const char* __s) { if (__pos > __size) __throw_out_of_range_fmt(("%s: __pos (which is %zu) > __size " "(which is %zu)") , __s, __pos, __size); return __pos; } constexpr size_t __sv_limit(size_t __size, size_t __pos, size_t __off) noexcept { const bool __testoff = __off < __size - __pos; return __testoff ? __off : __size - __pos; } # 105 "/usr/include/c++/13/string_view" 3 template<typename _CharT, typename _Traits = std::char_traits<_CharT>> class basic_string_view { static_assert(!is_array_v<_CharT>); static_assert(is_trivial_v<_CharT> && is_standard_layout_v<_CharT>); static_assert(is_same_v<_CharT, typename _Traits::char_type>); public: using traits_type = _Traits; using value_type = _CharT; using pointer = value_type*; using const_pointer = const value_type*; using reference = value_type&; using const_reference = const value_type&; using const_iterator = const value_type*; using iterator = const_iterator; using const_reverse_iterator = std::reverse_iterator<const_iterator>; using reverse_iterator = const_reverse_iterator; using size_type = size_t; using difference_type = ptrdiff_t; static constexpr size_type npos = size_type(-1); constexpr basic_string_view() noexcept : _M_len{0}, _M_str{nullptr} { } constexpr basic_string_view(const basic_string_view&) noexcept = default; [[__gnu__::__nonnull__]] constexpr basic_string_view(const _CharT* __str) noexcept : _M_len{traits_type::length(__str)}, _M_str{__str} { } constexpr basic_string_view(const _CharT* __str, size_type __len) noexcept : _M_len{__len}, _M_str{__str} { } template<contiguous_iterator _It, sized_sentinel_for<_It> _End> requires same_as<iter_value_t<_It>, _CharT> && (!convertible_to<_End, size_type>) constexpr basic_string_view(_It __first, _End __last) noexcept(noexcept(__last - __first)) : _M_len(__last - __first), _M_str(std::to_address(__first)) { } # 182 "/usr/include/c++/13/string_view" 3 constexpr basic_string_view& operator=(const basic_string_view&) noexcept = default; [[nodiscard]] constexpr const_iterator begin() const noexcept { return this->_M_str; } [[nodiscard]] constexpr const_iterator end() const noexcept { return this->_M_str + this->_M_len; } [[nodiscard]] constexpr const_iterator cbegin() const noexcept { return this->_M_str; } [[nodiscard]] constexpr const_iterator cend() const noexcept { return this->_M_str + this->_M_len; } [[nodiscard]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(this->end()); } [[nodiscard]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(this->begin()); } [[nodiscard]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(this->end()); } [[nodiscard]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(this->begin()); } [[nodiscard]] constexpr size_type size() const noexcept { return this->_M_len; } [[nodiscard]] constexpr size_type length() const noexcept { return _M_len; } [[nodiscard]] constexpr size_type max_size() const noexcept { return (npos - sizeof(size_type) - sizeof(void*)) / sizeof(value_type) / 4; } [[nodiscard]] constexpr bool empty() const noexcept { return this->_M_len == 0; } [[nodiscard]] constexpr const_reference operator[](size_type __pos) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__pos < this->_M_len)) __builtin_unreachable(); } while (false); return *(this->_M_str + __pos); } [[nodiscard]] constexpr const_reference at(size_type __pos) const { if (__pos >= _M_len) __throw_out_of_range_fmt(("basic_string_view::at: __pos " "(which is %zu) >= this->size() " "(which is %zu)") , __pos, this->size()); return *(this->_M_str + __pos); } [[nodiscard]] constexpr const_reference front() const noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); return *this->_M_str; } [[nodiscard]] constexpr const_reference back() const noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len > 0)) __builtin_unreachable(); } while (false); return *(this->_M_str + this->_M_len - 1); } [[nodiscard]] constexpr const_pointer data() const noexcept { return this->_M_str; } constexpr void remove_prefix(size_type __n) noexcept { do { if (std::__is_constant_evaluated() && !bool(this->_M_len >= __n)) __builtin_unreachable(); } while (false); this->_M_str += __n; this->_M_len -= __n; } constexpr void remove_suffix(size_type __n) noexcept { this->_M_len -= __n; } constexpr void swap(basic_string_view& __sv) noexcept { auto __tmp = *this; *this = __sv; __sv = __tmp; } constexpr size_type copy(_CharT* __str, size_type __n, size_type __pos = 0) const { ; __pos = std::__sv_check(size(), __pos, "basic_string_view::copy"); const size_type __rlen = std::min<size_t>(__n, _M_len - __pos); traits_type::copy(__str, data() + __pos, __rlen); return __rlen; } [[nodiscard]] constexpr basic_string_view substr(size_type __pos = 0, size_type __n = npos) const noexcept(false) { __pos = std::__sv_check(size(), __pos, "basic_string_view::substr"); const size_type __rlen = std::min<size_t>(__n, _M_len - __pos); return basic_string_view{_M_str + __pos, __rlen}; } [[nodiscard]] constexpr int compare(basic_string_view __str) const noexcept { const size_type __rlen = std::min(this->_M_len, __str._M_len); int __ret = traits_type::compare(this->_M_str, __str._M_str, __rlen); if (__ret == 0) __ret = _S_compare(this->_M_len, __str._M_len); return __ret; } [[nodiscard]] constexpr int compare(size_type __pos1, size_type __n1, basic_string_view __str) const { return this->substr(__pos1, __n1).compare(__str); } [[nodiscard]] constexpr int compare(size_type __pos1, size_type __n1, basic_string_view __str, size_type __pos2, size_type __n2) const { return this->substr(__pos1, __n1).compare(__str.substr(__pos2, __n2)); } [[nodiscard, __gnu__::__nonnull__]] constexpr int compare(const _CharT* __str) const noexcept { return this->compare(basic_string_view{__str}); } [[nodiscard, __gnu__::__nonnull__]] constexpr int compare(size_type __pos1, size_type __n1, const _CharT* __str) const { return this->substr(__pos1, __n1).compare(basic_string_view{__str}); } [[nodiscard]] constexpr int compare(size_type __pos1, size_type __n1, const _CharT* __str, size_type __n2) const noexcept(false) { return this->substr(__pos1, __n1) .compare(basic_string_view(__str, __n2)); } [[nodiscard]] constexpr bool starts_with(basic_string_view __x) const noexcept { return this->substr(0, __x.size()) == __x; } [[nodiscard]] constexpr bool starts_with(_CharT __x) const noexcept { return !this->empty() && traits_type::eq(this->front(), __x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool starts_with(const _CharT* __x) const noexcept { return this->starts_with(basic_string_view(__x)); } [[nodiscard]] constexpr bool ends_with(basic_string_view __x) const noexcept { const auto __len = this->size(); const auto __xlen = __x.size(); return __len >= __xlen && traits_type::compare(end() - __xlen, __x.data(), __xlen) == 0; } [[nodiscard]] constexpr bool ends_with(_CharT __x) const noexcept { return !this->empty() && traits_type::eq(this->back(), __x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool ends_with(const _CharT* __x) const noexcept { return this->ends_with(basic_string_view(__x)); } # 445 "/usr/include/c++/13/string_view" 3 [[nodiscard]] constexpr size_type find(basic_string_view __str, size_type __pos = 0) const noexcept { return this->find(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find(_CharT __c, size_type __pos = 0) const noexcept; [[nodiscard]] constexpr size_type find(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find(const _CharT* __str, size_type __pos = 0) const noexcept { return this->find(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type rfind(basic_string_view __str, size_type __pos = npos) const noexcept { return this->rfind(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type rfind(_CharT __c, size_type __pos = npos) const noexcept; [[nodiscard]] constexpr size_type rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type rfind(const _CharT* __str, size_type __pos = npos) const noexcept { return this->rfind(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_first_of(basic_string_view __str, size_type __pos = 0) const noexcept { return this->find_first_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_first_of(_CharT __c, size_type __pos = 0) const noexcept { return this->find(__c, __pos); } [[nodiscard]] constexpr size_type find_first_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_first_of(const _CharT* __str, size_type __pos = 0) const noexcept { return this->find_first_of(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_last_of(basic_string_view __str, size_type __pos = npos) const noexcept { return this->find_last_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_last_of(_CharT __c, size_type __pos=npos) const noexcept { return this->rfind(__c, __pos); } [[nodiscard]] constexpr size_type find_last_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_last_of(const _CharT* __str, size_type __pos = npos) const noexcept { return this->find_last_of(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_first_not_of(basic_string_view __str, size_type __pos = 0) const noexcept { return this->find_first_not_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; [[nodiscard]] constexpr size_type find_first_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_first_not_of(const _CharT* __str, size_type __pos = 0) const noexcept { return this->find_first_not_of(__str, __pos, traits_type::length(__str)); } [[nodiscard]] constexpr size_type find_last_not_of(basic_string_view __str, size_type __pos = npos) const noexcept { return this->find_last_not_of(__str._M_str, __pos, __str._M_len); } [[nodiscard]] constexpr size_type find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; [[nodiscard]] constexpr size_type find_last_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept; [[nodiscard, __gnu__::__nonnull__]] constexpr size_type find_last_not_of(const _CharT* __str, size_type __pos = npos) const noexcept { return this->find_last_not_of(__str, __pos, traits_type::length(__str)); } private: static constexpr int _S_compare(size_type __n1, size_type __n2) noexcept { using __limits = __gnu_cxx::__int_traits<int>; const difference_type __diff = __n1 - __n2; if (__diff > __limits::__max) return __limits::__max; if (__diff < __limits::__min) return __limits::__min; return static_cast<int>(__diff); } size_t _M_len; const _CharT* _M_str; }; template<contiguous_iterator _It, sized_sentinel_for<_It> _End> basic_string_view(_It, _End) -> basic_string_view<iter_value_t<_It>>; # 605 "/usr/include/c++/13/string_view" 3 template<typename _CharT, typename _Traits> [[nodiscard]] constexpr bool operator==(basic_string_view<_CharT, _Traits> __x, basic_string_view<_CharT, _Traits> __y) noexcept { return __x.size() == __y.size() && __x.compare(__y) == 0; } template<typename _CharT, typename _Traits> [[nodiscard]] constexpr bool operator==(basic_string_view<_CharT, _Traits> __x, __type_identity_t<basic_string_view<_CharT, _Traits>> __y) noexcept { return __x.size() == __y.size() && __x.compare(__y) == 0; } template<typename _CharT, typename _Traits> [[nodiscard]] constexpr auto operator<=>(basic_string_view<_CharT, _Traits> __x, basic_string_view<_CharT, _Traits> __y) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__x.compare(__y)); } template<typename _CharT, typename _Traits> [[nodiscard]] constexpr auto operator<=>(basic_string_view<_CharT, _Traits> __x, __type_identity_t<basic_string_view<_CharT, _Traits>> __y) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__x.compare(__y)); } # 758 "/usr/include/c++/13/string_view" 3 template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, basic_string_view<_CharT,_Traits> __str) { return __ostream_insert(__os, __str.data(), __str.size()); } using string_view = basic_string_view<char>; using wstring_view = basic_string_view<wchar_t>; using u8string_view = basic_string_view<char8_t>; using u16string_view = basic_string_view<char16_t>; using u32string_view = basic_string_view<char32_t>; template<typename _Tp> struct hash; template<> struct hash<string_view> : public __hash_base<size_t, string_view> { [[nodiscard]] size_t operator()(const string_view& __str) const noexcept { return std::_Hash_impl::hash(__str.data(), __str.length()); } }; template<> struct __is_fast_hash<hash<string_view>> : std::false_type { }; template<> struct hash<wstring_view> : public __hash_base<size_t, wstring_view> { [[nodiscard]] size_t operator()(const wstring_view& __s) const noexcept { return std::_Hash_impl::hash(__s.data(), __s.length() * sizeof(wchar_t)); } }; template<> struct __is_fast_hash<hash<wstring_view>> : std::false_type { }; template<> struct hash<u8string_view> : public __hash_base<size_t, u8string_view> { [[nodiscard]] size_t operator()(const u8string_view& __str) const noexcept { return std::_Hash_impl::hash(__str.data(), __str.length()); } }; template<> struct __is_fast_hash<hash<u8string_view>> : std::false_type { }; template<> struct hash<u16string_view> : public __hash_base<size_t, u16string_view> { [[nodiscard]] size_t operator()(const u16string_view& __s) const noexcept { return std::_Hash_impl::hash(__s.data(), __s.length() * sizeof(char16_t)); } }; template<> struct __is_fast_hash<hash<u16string_view>> : std::false_type { }; template<> struct hash<u32string_view> : public __hash_base<size_t, u32string_view> { [[nodiscard]] size_t operator()(const u32string_view& __s) const noexcept { return std::_Hash_impl::hash(__s.data(), __s.length() * sizeof(char32_t)); } }; template<> struct __is_fast_hash<hash<u32string_view>> : std::false_type { }; inline namespace literals { inline namespace string_view_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" inline constexpr basic_string_view<char> operator""sv(const char* __str, size_t __len) noexcept { return basic_string_view<char>{__str, __len}; } inline constexpr basic_string_view<wchar_t> operator""sv(const wchar_t* __str, size_t __len) noexcept { return basic_string_view<wchar_t>{__str, __len}; } inline constexpr basic_string_view<char8_t> operator""sv(const char8_t* __str, size_t __len) noexcept { return basic_string_view<char8_t>{__str, __len}; } inline constexpr basic_string_view<char16_t> operator""sv(const char16_t* __str, size_t __len) noexcept { return basic_string_view<char16_t>{__str, __len}; } inline constexpr basic_string_view<char32_t> operator""sv(const char32_t* __str, size_t __len) noexcept { return basic_string_view<char32_t>{__str, __len}; } #pragma GCC diagnostic pop } } namespace ranges { template<typename _CharT, typename _Traits> inline constexpr bool enable_borrowed_range<basic_string_view<_CharT, _Traits>> = true; template<typename _CharT, typename _Traits> inline constexpr bool enable_view<basic_string_view<_CharT, _Traits>> = true; } } # 1 "/usr/include/c++/13/bits/string_view.tcc" 1 3 # 37 "/usr/include/c++/13/bits/string_view.tcc" 3 # 38 "/usr/include/c++/13/bits/string_view.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; if (__n == 0) return __pos <= _M_len ? __pos : npos; if (__pos >= _M_len) return npos; const _CharT __elem0 = __str[0]; const _CharT* __first = _M_str + __pos; const _CharT* const __last = _M_str + _M_len; size_type __len = _M_len - __pos; while (__len >= __n) { __first = traits_type::find(__first, __len - __n + 1, __elem0); if (!__first) return npos; if (traits_type::compare(__first, __str, __n) == 0) return __first - _M_str; __len = __last - ++__first; } return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find(_CharT __c, size_type __pos) const noexcept { size_type __ret = npos; if (__pos < this->_M_len) { const size_type __n = this->_M_len - __pos; const _CharT* __p = traits_type::find(this->_M_str + __pos, __n, __c); if (__p) __ret = __p - this->_M_str; } return __ret; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: rfind(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; if (__n <= this->_M_len) { __pos = std::min(size_type(this->_M_len - __n), __pos); do { if (traits_type::compare(this->_M_str + __pos, __str, __n) == 0) return __pos; } while (__pos-- > 0); } return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: rfind(_CharT __c, size_type __pos) const noexcept { size_type __size = this->_M_len; if (__size > 0) { if (--__size > __pos) __size = __pos; for (++__size; __size-- > 0; ) if (traits_type::eq(this->_M_str[__size], __c)) return __size; } return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_first_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; for (; __n && __pos < this->_M_len; ++__pos) { const _CharT* __p = traits_type::find(__str, __n, this->_M_str[__pos]); if (__p) return __pos; } return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_last_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->size(); if (__size && __n) { if (--__size > __pos) __size = __pos; do { if (traits_type::find(__str, __n, this->_M_str[__size])) return __size; } while (__size-- != 0); } return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_first_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; for (; __pos < this->_M_len; ++__pos) if (!traits_type::find(__str, __n, this->_M_str[__pos])) return __pos; return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_first_not_of(_CharT __c, size_type __pos) const noexcept { for (; __pos < this->_M_len; ++__pos) if (!traits_type::eq(this->_M_str[__pos], __c)) return __pos; return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_last_not_of(const _CharT* __str, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->_M_len; if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::find(__str, __n, this->_M_str[__size])) return __size; } while (__size--); } return npos; } template<typename _CharT, typename _Traits> constexpr typename basic_string_view<_CharT, _Traits>::size_type basic_string_view<_CharT, _Traits>:: find_last_not_of(_CharT __c, size_type __pos) const noexcept { size_type __size = this->_M_len; if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::eq(this->_M_str[__size], __c)) return __size; } while (__size--); } return npos; } } # 905 "/usr/include/c++/13/string_view" 2 3 # 48 "/usr/include/c++/13/bits/basic_string.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { # 86 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> class basic_string { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_CharT>::other _Char_alloc_type; typedef __gnu_cxx::__alloc_traits<_Char_alloc_type> _Alloc_traits; public: typedef _Traits traits_type; typedef typename _Traits::char_type value_type; typedef _Char_alloc_type allocator_type; typedef typename _Alloc_traits::size_type size_type; typedef typename _Alloc_traits::difference_type difference_type; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef __gnu_cxx::__normal_iterator<pointer, basic_string> iterator; typedef __gnu_cxx::__normal_iterator<const_pointer, basic_string> const_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; static const size_type npos = static_cast<size_type>(-1); protected: typedef const_iterator __const_iterator; private: static constexpr pointer _S_allocate(_Char_alloc_type& __a, size_type __n) { pointer __p = _Alloc_traits::allocate(__a, __n); if constexpr (!is_same_v<_Traits, char_traits<_CharT>>) if (std::__is_constant_evaluated()) for (size_type __i = 0; __i < __n; ++__i) std::construct_at(__builtin_addressof(__p[__i])); return __p; } typedef basic_string_view<_CharT, _Traits> __sv_type; template<typename _Tp, typename _Res> using _If_sv = enable_if_t< __and_<is_convertible<const _Tp&, __sv_type>, __not_<is_convertible<const _Tp*, const basic_string*>>, __not_<is_convertible<const _Tp&, const _CharT*>>>::value, _Res>; constexpr static __sv_type _S_to_string_view(__sv_type __svt) noexcept { return __svt; } struct __sv_wrapper { constexpr explicit __sv_wrapper(__sv_type __sv) noexcept : _M_sv(__sv) { } __sv_type _M_sv; }; constexpr explicit basic_string(__sv_wrapper __svw, const _Alloc& __a) : basic_string(__svw._M_sv.data(), __svw._M_sv.size(), __a) { } struct _Alloc_hider : allocator_type { constexpr _Alloc_hider(pointer __dat, const _Alloc& __a) : allocator_type(__a), _M_p(__dat) { } constexpr _Alloc_hider(pointer __dat, _Alloc&& __a = _Alloc()) : allocator_type(std::move(__a)), _M_p(__dat) { } pointer _M_p; }; _Alloc_hider _M_dataplus; size_type _M_string_length; enum { _S_local_capacity = 15 / sizeof(_CharT) }; union { _CharT _M_local_buf[_S_local_capacity + 1]; size_type _M_allocated_capacity; }; constexpr void _M_data(pointer __p) { _M_dataplus._M_p = __p; } constexpr void _M_length(size_type __length) { _M_string_length = __length; } constexpr pointer _M_data() const { return _M_dataplus._M_p; } constexpr pointer _M_local_data() { return std::pointer_traits<pointer>::pointer_to(*_M_local_buf); } constexpr const_pointer _M_local_data() const { return std::pointer_traits<const_pointer>::pointer_to(*_M_local_buf); } constexpr void _M_capacity(size_type __capacity) { _M_allocated_capacity = __capacity; } constexpr void _M_set_length(size_type __n) { _M_length(__n); traits_type::assign(_M_data()[__n], _CharT()); } constexpr bool _M_is_local() const { if (_M_data() == _M_local_data()) { if (_M_string_length > _S_local_capacity) __builtin_unreachable(); return true; } return false; } constexpr pointer _M_create(size_type&, size_type); constexpr void _M_dispose() { if (!_M_is_local()) _M_destroy(_M_allocated_capacity); } constexpr void _M_destroy(size_type __size) throw() { _Alloc_traits::deallocate(_M_get_allocator(), _M_data(), __size + 1); } # 316 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _InIterator> constexpr void _M_construct(_InIterator __beg, _InIterator __end, std::input_iterator_tag); template<typename _FwdIterator> constexpr void _M_construct(_FwdIterator __beg, _FwdIterator __end, std::forward_iterator_tag); constexpr void _M_construct(size_type __req, _CharT __c); constexpr allocator_type& _M_get_allocator() { return _M_dataplus; } constexpr const allocator_type& _M_get_allocator() const { return _M_dataplus; } __attribute__((__always_inline__)) constexpr pointer _M_use_local_data() noexcept { if (std::is_constant_evaluated()) for (size_type __i = 0; __i <= _S_local_capacity; ++__i) _M_local_buf[__i] = _CharT(); return _M_local_data(); } private: # 374 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr size_type _M_check(size_type __pos, const char* __s) const { if (__pos > this->size()) __throw_out_of_range_fmt(("%s: __pos (which is %zu) > " "this->size() (which is %zu)") , __s, __pos, this->size()); return __pos; } constexpr void _M_check_length(size_type __n1, size_type __n2, const char* __s) const { if (this->max_size() - (this->size() - __n1) < __n2) __throw_length_error((__s)); } constexpr size_type _M_limit(size_type __pos, size_type __off) const noexcept { const bool __testoff = __off < this->size() - __pos; return __testoff ? __off : this->size() - __pos; } bool _M_disjunct(const _CharT* __s) const noexcept { return (less<const _CharT*>()(__s, _M_data()) || less<const _CharT*>()(_M_data() + this->size(), __s)); } constexpr static void _S_copy(_CharT* __d, const _CharT* __s, size_type __n) { if (__n == 1) traits_type::assign(*__d, *__s); else traits_type::copy(__d, __s, __n); } constexpr static void _S_move(_CharT* __d, const _CharT* __s, size_type __n) { if (__n == 1) traits_type::assign(*__d, *__s); else traits_type::move(__d, __s, __n); } constexpr static void _S_assign(_CharT* __d, size_type __n, _CharT __c) { if (__n == 1) traits_type::assign(*__d, __c); else traits_type::assign(__d, __n, __c); } template<class _Iterator> constexpr static void _S_copy_chars(_CharT* __p, _Iterator __k1, _Iterator __k2) { for (; __k1 != __k2; ++__k1, (void)++__p) traits_type::assign(*__p, *__k1); } constexpr static void _S_copy_chars(_CharT* __p, iterator __k1, iterator __k2) noexcept { _S_copy_chars(__p, __k1.base(), __k2.base()); } constexpr static void _S_copy_chars(_CharT* __p, const_iterator __k1, const_iterator __k2) noexcept { _S_copy_chars(__p, __k1.base(), __k2.base()); } constexpr static void _S_copy_chars(_CharT* __p, _CharT* __k1, _CharT* __k2) noexcept { _S_copy(__p, __k1, __k2 - __k1); } constexpr static void _S_copy_chars(_CharT* __p, const _CharT* __k1, const _CharT* __k2) noexcept { _S_copy(__p, __k1, __k2 - __k1); } constexpr static int _S_compare(size_type __n1, size_type __n2) noexcept { const difference_type __d = difference_type(__n1 - __n2); if (__d > __gnu_cxx::__numeric_traits<int>::__max) return __gnu_cxx::__numeric_traits<int>::__max; else if (__d < __gnu_cxx::__numeric_traits<int>::__min) return __gnu_cxx::__numeric_traits<int>::__min; else return int(__d); } constexpr void _M_assign(const basic_string&); constexpr void _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, size_type __len2); constexpr void _M_erase(size_type __pos, size_type __n); public: constexpr basic_string() noexcept(is_nothrow_default_constructible<_Alloc>::value) : _M_dataplus(_M_local_data()) { _M_use_local_data(); _M_set_length(0); } constexpr explicit basic_string(const _Alloc& __a) noexcept : _M_dataplus(_M_local_data(), __a) { _M_use_local_data(); _M_set_length(0); } constexpr basic_string(const basic_string& __str) : _M_dataplus(_M_local_data(), _Alloc_traits::_S_select_on_copy(__str._M_get_allocator())) { _M_construct(__str._M_data(), __str._M_data() + __str.length(), std::forward_iterator_tag()); } # 553 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string(const basic_string& __str, size_type __pos, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { const _CharT* __start = __str._M_data() + __str._M_check(__pos, "basic_string::basic_string"); _M_construct(__start, __start + __str._M_limit(__pos, npos), std::forward_iterator_tag()); } constexpr basic_string(const basic_string& __str, size_type __pos, size_type __n) : _M_dataplus(_M_local_data()) { const _CharT* __start = __str._M_data() + __str._M_check(__pos, "basic_string::basic_string"); _M_construct(__start, __start + __str._M_limit(__pos, __n), std::forward_iterator_tag()); } # 588 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string(const basic_string& __str, size_type __pos, size_type __n, const _Alloc& __a) : _M_dataplus(_M_local_data(), __a) { const _CharT* __start = __str._M_data() + __str._M_check(__pos, "string::string"); _M_construct(__start, __start + __str._M_limit(__pos, __n), std::forward_iterator_tag()); } # 608 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string(const _CharT* __s, size_type __n, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { if (__s == 0 && __n > 0) std::__throw_logic_error(("basic_string: " "construction from null is not valid") ); _M_construct(__s, __s + __n, std::forward_iterator_tag()); } # 628 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename = _RequireAllocator<_Alloc>> constexpr basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { if (__s == 0) std::__throw_logic_error(("basic_string: " "construction from null is not valid") ); const _CharT* __end = __s + traits_type::length(__s); _M_construct(__s, __end, forward_iterator_tag()); } # 651 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename = _RequireAllocator<_Alloc>> constexpr basic_string(size_type __n, _CharT __c, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { _M_construct(__n, __c); } # 666 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string(basic_string&& __str) noexcept : _M_dataplus(_M_local_data(), std::move(__str._M_get_allocator())) { if (__str._M_is_local()) { traits_type::copy(_M_local_buf, __str._M_local_buf, __str.length() + 1); } else { _M_data(__str._M_data()); _M_capacity(__str._M_allocated_capacity); } _M_length(__str.length()); __str._M_data(__str._M_local_data()); __str._M_set_length(0); } constexpr basic_string(initializer_list<_CharT> __l, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a) { _M_construct(__l.begin(), __l.end(), std::forward_iterator_tag()); } constexpr basic_string(const basic_string& __str, const _Alloc& __a) : _M_dataplus(_M_local_data(), __a) { _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } constexpr basic_string(basic_string&& __str, const _Alloc& __a) noexcept(_Alloc_traits::_S_always_equal()) : _M_dataplus(_M_local_data(), __a) { if (__str._M_is_local()) { traits_type::copy(_M_local_buf, __str._M_local_buf, __str.length() + 1); _M_length(__str.length()); __str._M_set_length(0); } else if (_Alloc_traits::_S_always_equal() || __str.get_allocator() == __a) { _M_data(__str._M_data()); _M_length(__str.length()); _M_capacity(__str._M_allocated_capacity); __str._M_data(__str._M_local_buf); __str._M_set_length(0); } else _M_construct(__str.begin(), __str.end(), std::forward_iterator_tag()); } # 742 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr basic_string(_InputIterator __beg, _InputIterator __end, const _Alloc& __a = _Alloc()) : _M_dataplus(_M_local_data(), __a), _M_string_length(0) { _M_construct(__beg, __end, std::__iterator_category(__beg)); } # 768 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp, typename = enable_if_t<is_convertible_v<const _Tp&, __sv_type>>> constexpr basic_string(const _Tp& __t, size_type __pos, size_type __n, const _Alloc& __a = _Alloc()) : basic_string(_S_to_string_view(__t).substr(__pos, __n), __a) { } template<typename _Tp, typename = _If_sv<_Tp, void>> constexpr explicit basic_string(const _Tp& __t, const _Alloc& __a = _Alloc()) : basic_string(__sv_wrapper(_S_to_string_view(__t)), __a) { } constexpr ~basic_string() { _M_dispose(); } constexpr basic_string& operator=(const basic_string& __str) { return this->assign(__str); } constexpr basic_string& operator=(const _CharT* __s) { return this->assign(__s); } # 821 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& operator=(_CharT __c) { this->assign(1, __c); return *this; } # 839 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& operator=(basic_string&& __str) noexcept(_Alloc_traits::_S_nothrow_move()) { const bool __equal_allocs = _Alloc_traits::_S_always_equal() || _M_get_allocator() == __str._M_get_allocator(); if (!_M_is_local() && _Alloc_traits::_S_propagate_on_move_assign() && !__equal_allocs) { _M_destroy(_M_allocated_capacity); _M_data(_M_local_data()); _M_set_length(0); } std::__alloc_on_move(_M_get_allocator(), __str._M_get_allocator()); if (__str._M_is_local()) { if (__builtin_expect(std::__addressof(__str) != this, true)) { if (__str.size()) this->_S_copy(_M_data(), __str._M_data(), __str.size()); _M_set_length(__str.size()); } } else if (_Alloc_traits::_S_propagate_on_move_assign() || __equal_allocs) { pointer __data = nullptr; size_type __capacity; if (!_M_is_local()) { if (__equal_allocs) { __data = _M_data(); __capacity = _M_allocated_capacity; } else _M_destroy(_M_allocated_capacity); } _M_data(__str._M_data()); _M_length(__str.length()); _M_capacity(__str._M_allocated_capacity); if (__data) { __str._M_data(__data); __str._M_capacity(__capacity); } else __str._M_data(__str._M_local_buf); } else assign(__str); __str.clear(); return *this; } constexpr basic_string& operator=(initializer_list<_CharT> __l) { this->assign(__l.begin(), __l.size()); return *this; } template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> operator=(const _Tp& __svt) { return this->assign(__svt); } constexpr operator __sv_type() const noexcept { return __sv_type(data(), size()); } [[__nodiscard__]] constexpr iterator begin() noexcept { return iterator(_M_data()); } [[__nodiscard__]] constexpr const_iterator begin() const noexcept { return const_iterator(_M_data()); } [[__nodiscard__]] constexpr iterator end() noexcept { return iterator(_M_data() + this->size()); } [[__nodiscard__]] constexpr const_iterator end() const noexcept { return const_iterator(_M_data() + this->size()); } [[__nodiscard__]] constexpr reverse_iterator rbegin() noexcept { return reverse_iterator(this->end()); } [[__nodiscard__]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(this->end()); } [[__nodiscard__]] constexpr reverse_iterator rend() noexcept { return reverse_iterator(this->begin()); } [[__nodiscard__]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(this->begin()); } [[__nodiscard__]] constexpr const_iterator cbegin() const noexcept { return const_iterator(this->_M_data()); } [[__nodiscard__]] constexpr const_iterator cend() const noexcept { return const_iterator(this->_M_data() + this->size()); } [[__nodiscard__]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(this->end()); } [[__nodiscard__]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(this->begin()); } public: [[__nodiscard__]] constexpr size_type size() const noexcept { return _M_string_length; } [[__nodiscard__]] constexpr size_type length() const noexcept { return _M_string_length; } [[__nodiscard__]] constexpr size_type max_size() const noexcept { return (_Alloc_traits::max_size(_M_get_allocator()) - 1) / 2; } # 1085 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr void resize(size_type __n, _CharT __c); # 1099 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr void resize(size_type __n) { this->resize(__n, _CharT()); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" constexpr void shrink_to_fit() noexcept { reserve(); } #pragma GCC diagnostic pop # 1155 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type capacity() const noexcept { return _M_is_local() ? size_type(_S_local_capacity) : _M_allocated_capacity; } # 1180 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr void reserve(size_type __res_arg); [[deprecated("use shrink_to_fit() instead")]] constexpr void reserve(); constexpr void clear() noexcept { _M_set_length(0); } [[__nodiscard__]] constexpr bool empty() const noexcept { return this->size() == 0; } # 1222 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const_reference operator[] (size_type __pos) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); return _M_data()[__pos]; } # 1240 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr reference operator[](size_type __pos) { do { if (std::__is_constant_evaluated() && !bool(__pos <= size())) __builtin_unreachable(); } while (false); ; return _M_data()[__pos]; } # 1262 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const_reference at(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); return _M_data()[__n]; } # 1284 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr reference at(size_type __n) { if (__n >= size()) __throw_out_of_range_fmt(("basic_string::at: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); return _M_data()[__n]; } [[__nodiscard__]] constexpr reference front() noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return operator[](0); } [[__nodiscard__]] constexpr const_reference front() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return operator[](0); } [[__nodiscard__]] constexpr reference back() noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return operator[](this->size() - 1); } [[__nodiscard__]] constexpr const_reference back() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return operator[](this->size() - 1); } # 1352 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& operator+=(const basic_string& __str) { return this->append(__str); } constexpr basic_string& operator+=(const _CharT* __s) { return this->append(__s); } constexpr basic_string& operator+=(_CharT __c) { this->push_back(__c); return *this; } constexpr basic_string& operator+=(initializer_list<_CharT> __l) { return this->append(__l.begin(), __l.size()); } # 1398 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> operator+=(const _Tp& __svt) { return this->append(__svt); } constexpr basic_string& append(const basic_string& __str) { return this->append(__str._M_data(), __str.size()); } # 1428 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& append(const basic_string& __str, size_type __pos, size_type __n = npos) { return this->append(__str._M_data() + __str._M_check(__pos, "basic_string::append"), __str._M_limit(__pos, __n)); } constexpr basic_string& append(const _CharT* __s, size_type __n) { ; _M_check_length(size_type(0), __n, "basic_string::append"); return _M_append(__s, __n); } constexpr basic_string& append(const _CharT* __s) { ; const size_type __n = traits_type::length(__s); _M_check_length(size_type(0), __n, "basic_string::append"); return _M_append(__s, __n); } # 1473 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& append(size_type __n, _CharT __c) { return _M_replace_aux(this->size(), size_type(0), __n, __c); } constexpr basic_string& append(initializer_list<_CharT> __l) { return this->append(__l.begin(), __l.size()); } # 1499 "/usr/include/c++/13/bits/basic_string.h" 3 template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr basic_string& append(_InputIterator __first, _InputIterator __last) { return this->replace(end(), end(), __first, __last); } template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> append(const _Tp& __svt) { __sv_type __sv = __svt; return this->append(__sv.data(), __sv.size()); } # 1531 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> append(const _Tp& __svt, size_type __pos, size_type __n = npos) { __sv_type __sv = __svt; return _M_append(__sv.data() + std::__sv_check(__sv.size(), __pos, "basic_string::append"), std::__sv_limit(__sv.size(), __pos, __n)); } constexpr void push_back(_CharT __c) { const size_type __size = this->size(); if (__size + 1 > this->capacity()) this->_M_mutate(__size, size_type(0), 0, size_type(1)); traits_type::assign(this->_M_data()[__size], __c); this->_M_set_length(__size + 1); } constexpr basic_string& assign(const basic_string& __str) { if (_Alloc_traits::_S_propagate_on_copy_assign()) { if (!_Alloc_traits::_S_always_equal() && !_M_is_local() && _M_get_allocator() != __str._M_get_allocator()) { if (__str.size() <= _S_local_capacity) { _M_destroy(_M_allocated_capacity); _M_data(_M_use_local_data()); _M_set_length(0); } else { const auto __len = __str.size(); auto __alloc = __str._M_get_allocator(); auto __ptr = _S_allocate(__alloc, __len + 1); _M_destroy(_M_allocated_capacity); _M_data(__ptr); _M_capacity(__len); _M_set_length(__len); } } std::__alloc_on_copy(_M_get_allocator(), __str._M_get_allocator()); } this->_M_assign(__str); return *this; } # 1609 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& assign(basic_string&& __str) noexcept(_Alloc_traits::_S_nothrow_move()) { return *this = std::move(__str); } # 1633 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& assign(const basic_string& __str, size_type __pos, size_type __n = npos) { return _M_replace(size_type(0), this->size(), __str._M_data() + __str._M_check(__pos, "basic_string::assign"), __str._M_limit(__pos, __n)); } # 1650 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& assign(const _CharT* __s, size_type __n) { ; return _M_replace(size_type(0), this->size(), __s, __n); } # 1667 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& assign(const _CharT* __s) { ; return _M_replace(size_type(0), this->size(), __s, traits_type::length(__s)); } # 1685 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& assign(size_type __n, _CharT __c) { return _M_replace_aux(size_type(0), this->size(), __n, __c); } # 1699 "/usr/include/c++/13/bits/basic_string.h" 3 template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr basic_string& assign(_InputIterator __first, _InputIterator __last) { return this->replace(begin(), end(), __first, __last); } constexpr basic_string& assign(initializer_list<_CharT> __l) { return this->assign(__l.begin(), __l.size()); } # 1727 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> assign(const _Tp& __svt) { __sv_type __sv = __svt; return this->assign(__sv.data(), __sv.size()); } # 1743 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> assign(const _Tp& __svt, size_type __pos, size_type __n = npos) { __sv_type __sv = __svt; return _M_replace(size_type(0), this->size(), __sv.data() + std::__sv_check(__sv.size(), __pos, "basic_string::assign"), std::__sv_limit(__sv.size(), __pos, __n)); } # 1772 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr iterator insert(const_iterator __p, size_type __n, _CharT __c) { ; const size_type __pos = __p - begin(); this->replace(__p, __p, __n, __c); return iterator(this->_M_data() + __pos); } # 1815 "/usr/include/c++/13/bits/basic_string.h" 3 template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr iterator insert(const_iterator __p, _InputIterator __beg, _InputIterator __end) { ; const size_type __pos = __p - begin(); this->replace(__p, __p, __beg, __end); return iterator(this->_M_data() + __pos); } # 1852 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr iterator insert(const_iterator __p, initializer_list<_CharT> __l) { return this->insert(__p, __l.begin(), __l.end()); } # 1880 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos1, const basic_string& __str) { return this->replace(__pos1, size_type(0), __str._M_data(), __str.size()); } # 1904 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos1, const basic_string& __str, size_type __pos2, size_type __n = npos) { return this->replace(__pos1, size_type(0), __str._M_data() + __str._M_check(__pos2, "basic_string::insert"), __str._M_limit(__pos2, __n)); } # 1928 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos, const _CharT* __s, size_type __n) { return this->replace(__pos, size_type(0), __s, __n); } # 1948 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos, const _CharT* __s) { ; return this->replace(__pos, size_type(0), __s, traits_type::length(__s)); } # 1973 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& insert(size_type __pos, size_type __n, _CharT __c) { return _M_replace_aux(_M_check(__pos, "basic_string::insert"), size_type(0), __n, __c); } # 1992 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr iterator insert(__const_iterator __p, _CharT __c) { ; const size_type __pos = __p - begin(); _M_replace_aux(__pos, size_type(0), size_type(1), __c); return iterator(_M_data() + __pos); } # 2009 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> insert(size_type __pos, const _Tp& __svt) { __sv_type __sv = __svt; return this->insert(__pos, __sv.data(), __sv.size()); } # 2026 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> insert(size_type __pos1, const _Tp& __svt, size_type __pos2, size_type __n = npos) { __sv_type __sv = __svt; return this->replace(__pos1, size_type(0), __sv.data() + std::__sv_check(__sv.size(), __pos2, "basic_string::insert"), std::__sv_limit(__sv.size(), __pos2, __n)); } # 2055 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& erase(size_type __pos = 0, size_type __n = npos) { _M_check(__pos, "basic_string::erase"); if (__n == npos) this->_M_set_length(__pos); else if (__n != 0) this->_M_erase(__pos, _M_limit(__pos, __n)); return *this; } # 2075 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr iterator erase(__const_iterator __position) { ; const size_type __pos = __position - begin(); this->_M_erase(__pos, size_type(1)); return iterator(_M_data() + __pos); } # 2095 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr iterator erase(__const_iterator __first, __const_iterator __last) { ; const size_type __pos = __first - begin(); if (__last == end()) this->_M_set_length(__pos); else this->_M_erase(__pos, __last - __first); return iterator(this->_M_data() + __pos); } constexpr void pop_back() noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); _M_erase(size() - 1, 1); } # 2141 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n, const basic_string& __str) { return this->replace(__pos, __n, __str._M_data(), __str.size()); } # 2164 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2 = npos) { return this->replace(__pos1, __n1, __str._M_data() + __str._M_check(__pos2, "basic_string::replace"), __str._M_limit(__pos2, __n2)); } # 2190 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) { ; return _M_replace(_M_check(__pos, "basic_string::replace"), _M_limit(__pos, __n1), __s, __n2); } # 2216 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n1, const _CharT* __s) { ; return this->replace(__pos, __n1, __s, traits_type::length(__s)); } # 2241 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(size_type __pos, size_type __n1, size_type __n2, _CharT __c) { return _M_replace_aux(_M_check(__pos, "basic_string::replace"), _M_limit(__pos, __n1), __n2, __c); } # 2260 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const basic_string& __str) { return this->replace(__i1, __i2, __str._M_data(), __str.size()); } # 2281 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s, size_type __n) { ; return this->replace(__i1 - begin(), __i2 - __i1, __s, __n); } # 2304 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __s) { ; return this->replace(__i1, __i2, __s, traits_type::length(__s)); } # 2326 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, size_type __n, _CharT __c) { ; return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __c); } # 2352 "/usr/include/c++/13/bits/basic_string.h" 3 template<class _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr basic_string& replace(const_iterator __i1, const_iterator __i2, _InputIterator __k1, _InputIterator __k2) { ; ; return this->_M_replace_dispatch(__i1, __i2, __k1, __k2, std::__false_type()); } # 2385 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, _CharT* __k1, _CharT* __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1, __k2 - __k1); } constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const _CharT* __k1, const _CharT* __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1, __k2 - __k1); } constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, iterator __k1, iterator __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1.base(), __k2 - __k1); } constexpr basic_string& replace(__const_iterator __i1, __const_iterator __i2, const_iterator __k1, const_iterator __k2) { ; ; return this->replace(__i1 - begin(), __i2 - __i1, __k1.base(), __k2 - __k1); } # 2448 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr basic_string& replace(const_iterator __i1, const_iterator __i2, initializer_list<_CharT> __l) { return this->replace(__i1, __i2, __l.begin(), __l.size()); } # 2462 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> replace(size_type __pos, size_type __n, const _Tp& __svt) { __sv_type __sv = __svt; return this->replace(__pos, __n, __sv.data(), __sv.size()); } # 2480 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> replace(size_type __pos1, size_type __n1, const _Tp& __svt, size_type __pos2, size_type __n2 = npos) { __sv_type __sv = __svt; return this->replace(__pos1, __n1, __sv.data() + std::__sv_check(__sv.size(), __pos2, "basic_string::replace"), std::__sv_limit(__sv.size(), __pos2, __n2)); } # 2502 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> constexpr _If_sv<_Tp, basic_string&> replace(const_iterator __i1, const_iterator __i2, const _Tp& __svt) { __sv_type __sv = __svt; return this->replace(__i1 - begin(), __i2 - __i1, __sv); } private: template<class _Integer> constexpr basic_string& _M_replace_dispatch(const_iterator __i1, const_iterator __i2, _Integer __n, _Integer __val, __true_type) { return _M_replace_aux(__i1 - begin(), __i2 - __i1, __n, __val); } template<class _InputIterator> constexpr basic_string& _M_replace_dispatch(const_iterator __i1, const_iterator __i2, _InputIterator __k1, _InputIterator __k2, __false_type); constexpr basic_string& _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c); __attribute__((__noinline__, __noclone__, __cold__)) void _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, const size_type __len2, const size_type __how_much); constexpr basic_string& _M_replace(size_type __pos, size_type __len1, const _CharT* __s, const size_type __len2); constexpr basic_string& _M_append(const _CharT* __s, size_type __n); public: # 2559 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr size_type copy(_CharT* __s, size_type __n, size_type __pos = 0) const; # 2570 "/usr/include/c++/13/bits/basic_string.h" 3 constexpr void swap(basic_string& __s) noexcept; # 2581 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const _CharT* c_str() const noexcept { return _M_data(); } # 2594 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr const _CharT* data() const noexcept { return _M_data(); } # 2606 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr _CharT* data() noexcept { return _M_data(); } [[__nodiscard__]] constexpr allocator_type get_allocator() const noexcept { return _M_get_allocator(); } # 2632 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 2647 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(const basic_string& __str, size_type __pos = 0) const noexcept { return this->find(__str.data(), __pos, __str.size()); } # 2660 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find(const _Tp& __svt, size_type __pos = 0) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find(__sv.data(), __pos, __sv.size()); } # 2681 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(const _CharT* __s, size_type __pos = 0) const noexcept { ; return this->find(__s, __pos, traits_type::length(__s)); } # 2699 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find(_CharT __c, size_type __pos = 0) const noexcept; # 2713 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(const basic_string& __str, size_type __pos = npos) const noexcept { return this->rfind(__str.data(), __pos, __str.size()); } # 2726 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> rfind(const _Tp& __svt, size_type __pos = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->rfind(__sv.data(), __pos, __sv.size()); } # 2749 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 2764 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(const _CharT* __s, size_type __pos = npos) const { ; return this->rfind(__s, __pos, traits_type::length(__s)); } # 2782 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type rfind(_CharT __c, size_type __pos = npos) const noexcept; # 2797 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(const basic_string& __str, size_type __pos = 0) const noexcept { return this->find_first_of(__str.data(), __pos, __str.size()); } # 2811 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_first_of(const _Tp& __svt, size_type __pos = 0) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_first_of(__sv.data(), __pos, __sv.size()); } # 2834 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 2849 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(const _CharT* __s, size_type __pos = 0) const noexcept { ; return this->find_first_of(__s, __pos, traits_type::length(__s)); } # 2870 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_of(_CharT __c, size_type __pos = 0) const noexcept { return this->find(__c, __pos); } # 2886 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(const basic_string& __str, size_type __pos = npos) const noexcept { return this->find_last_of(__str.data(), __pos, __str.size()); } # 2900 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_last_of(const _Tp& __svt, size_type __pos = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_last_of(__sv.data(), __pos, __sv.size()); } # 2923 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 2938 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(const _CharT* __s, size_type __pos = npos) const noexcept { ; return this->find_last_of(__s, __pos, traits_type::length(__s)); } # 2959 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_of(_CharT __c, size_type __pos = npos) const noexcept { return this->rfind(__c, __pos); } # 2974 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(const basic_string& __str, size_type __pos = 0) const noexcept { return this->find_first_not_of(__str.data(), __pos, __str.size()); } # 2988 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_first_not_of(const _Tp& __svt, size_type __pos = 0) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_first_not_of(__sv.data(), __pos, __sv.size()); } # 3011 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3026 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(const _CharT* __s, size_type __pos = 0) const noexcept { ; return this->find_first_not_of(__s, __pos, traits_type::length(__s)); } # 3045 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_first_not_of(_CharT __c, size_type __pos = 0) const noexcept; # 3061 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(const basic_string& __str, size_type __pos = npos) const noexcept { return this->find_last_not_of(__str.data(), __pos, __str.size()); } # 3075 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, size_type> find_last_not_of(const _Tp& __svt, size_type __pos = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return this->find_last_not_of(__sv.data(), __pos, __sv.size()); } # 3098 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept; # 3113 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(const _CharT* __s, size_type __pos = npos) const noexcept { ; return this->find_last_not_of(__s, __pos, traits_type::length(__s)); } # 3132 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr size_type find_last_not_of(_CharT __c, size_type __pos = npos) const noexcept; # 3149 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr basic_string substr(size_type __pos = 0, size_type __n = npos) const { return basic_string(*this, _M_check(__pos, "basic_string::substr"), __n); } # 3169 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(const basic_string& __str) const { const size_type __size = this->size(); const size_type __osize = __str.size(); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __str.data(), __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, int> compare(const _Tp& __svt) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; const size_type __size = this->size(); const size_type __osize = __sv.size(); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __sv.data(), __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } # 3214 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, int> compare(size_type __pos, size_type __n, const _Tp& __svt) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return __sv_type(*this).substr(__pos, __n).compare(__sv); } # 3234 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _Tp> [[__nodiscard__]] constexpr _If_sv<_Tp, int> compare(size_type __pos1, size_type __n1, const _Tp& __svt, size_type __pos2, size_type __n2 = npos) const noexcept(is_same<_Tp, __sv_type>::value) { __sv_type __sv = __svt; return __sv_type(*this) .substr(__pos1, __n1).compare(__sv.substr(__pos2, __n2)); } # 3266 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos, size_type __n, const basic_string& __str) const { _M_check(__pos, "basic_string::compare"); __n = _M_limit(__pos, __n); const size_type __osize = __str.size(); const size_type __len = std::min(__n, __osize); int __r = traits_type::compare(_M_data() + __pos, __str.data(), __len); if (!__r) __r = _S_compare(__n, __osize); return __r; } # 3303 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos1, size_type __n1, const basic_string& __str, size_type __pos2, size_type __n2 = npos) const { _M_check(__pos1, "basic_string::compare"); __str._M_check(__pos2, "basic_string::compare"); __n1 = _M_limit(__pos1, __n1); __n2 = __str._M_limit(__pos2, __n2); const size_type __len = std::min(__n1, __n2); int __r = traits_type::compare(_M_data() + __pos1, __str.data() + __pos2, __len); if (!__r) __r = _S_compare(__n1, __n2); return __r; } # 3334 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(const _CharT* __s) const noexcept { ; const size_type __size = this->size(); const size_type __osize = traits_type::length(__s); const size_type __len = std::min(__size, __osize); int __r = traits_type::compare(_M_data(), __s, __len); if (!__r) __r = _S_compare(__size, __osize); return __r; } # 3369 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos, size_type __n1, const _CharT* __s) const { ; _M_check(__pos, "basic_string::compare"); __n1 = _M_limit(__pos, __n1); const size_type __osize = traits_type::length(__s); const size_type __len = std::min(__n1, __osize); int __r = traits_type::compare(_M_data() + __pos, __s, __len); if (!__r) __r = _S_compare(__n1, __osize); return __r; } # 3408 "/usr/include/c++/13/bits/basic_string.h" 3 [[__nodiscard__]] constexpr int compare(size_type __pos, size_type __n1, const _CharT* __s, size_type __n2) const { ; _M_check(__pos, "basic_string::compare"); __n1 = _M_limit(__pos, __n1); const size_type __len = std::min(__n1, __n2); int __r = traits_type::compare(_M_data() + __pos, __s, __len); if (!__r) __r = _S_compare(__n1, __n2); return __r; } [[nodiscard]] constexpr bool starts_with(basic_string_view<_CharT, _Traits> __x) const noexcept { return __sv_type(this->data(), this->size()).starts_with(__x); } [[nodiscard]] constexpr bool starts_with(_CharT __x) const noexcept { return __sv_type(this->data(), this->size()).starts_with(__x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool starts_with(const _CharT* __x) const noexcept { return __sv_type(this->data(), this->size()).starts_with(__x); } [[nodiscard]] constexpr bool ends_with(basic_string_view<_CharT, _Traits> __x) const noexcept { return __sv_type(this->data(), this->size()).ends_with(__x); } [[nodiscard]] constexpr bool ends_with(_CharT __x) const noexcept { return __sv_type(this->data(), this->size()).ends_with(__x); } [[nodiscard, __gnu__::__nonnull__]] constexpr bool ends_with(const _CharT* __x) const noexcept { return __sv_type(this->data(), this->size()).ends_with(__x); } # 3473 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename, typename, typename> friend class basic_stringbuf; }; } } namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { template<typename _InputIterator, typename _CharT = typename iterator_traits<_InputIterator>::value_type, typename _Allocator = allocator<_CharT>, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> basic_string(_InputIterator, _InputIterator, _Allocator = _Allocator()) -> basic_string<_CharT, char_traits<_CharT>, _Allocator>; template<typename _CharT, typename _Traits, typename _Allocator = allocator<_CharT>, typename = _RequireAllocator<_Allocator>> basic_string(basic_string_view<_CharT, _Traits>, const _Allocator& = _Allocator()) -> basic_string<_CharT, _Traits, _Allocator>; template<typename _CharT, typename _Traits, typename _Allocator = allocator<_CharT>, typename = _RequireAllocator<_Allocator>> basic_string(basic_string_view<_CharT, _Traits>, typename basic_string<_CharT, _Traits, _Allocator>::size_type, typename basic_string<_CharT, _Traits, _Allocator>::size_type, const _Allocator& = _Allocator()) -> basic_string<_CharT, _Traits, _Allocator>; } template<typename _Str> constexpr inline _Str __str_concat(typename _Str::value_type const* __lhs, typename _Str::size_type __lhs_len, typename _Str::value_type const* __rhs, typename _Str::size_type __rhs_len, typename _Str::allocator_type const& __a) { typedef typename _Str::allocator_type allocator_type; typedef __gnu_cxx::__alloc_traits<allocator_type> _Alloc_traits; _Str __str(_Alloc_traits::_S_select_on_copy(__a)); __str.reserve(__lhs_len + __rhs_len); __str.append(__lhs, __lhs_len); __str.append(__rhs, __rhs_len); return __str; } # 3538 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), __rhs.c_str(), __rhs.size(), __lhs.get_allocator()); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT,_Traits,_Alloc> operator+(const _CharT* __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) { ; typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs, _Traits::length(__lhs), __rhs.c_str(), __rhs.size(), __rhs.get_allocator()); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT,_Traits,_Alloc> operator+(_CharT __lhs, const basic_string<_CharT,_Traits,_Alloc>& __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__builtin_addressof(__lhs), 1, __rhs.c_str(), __rhs.size(), __rhs.get_allocator()); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { ; typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), __rhs, _Traits::length(__rhs), __lhs.get_allocator()); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, _CharT __rhs) { typedef basic_string<_CharT, _Traits, _Alloc> _Str; return std::__str_concat<_Str>(__lhs.c_str(), __lhs.size(), __builtin_addressof(__rhs), 1, __lhs.get_allocator()); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) { return std::move(__lhs.append(__rhs)); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { return std::move(__rhs.insert(0, __lhs)); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { using _Alloc_traits = allocator_traits<_Alloc>; bool __use_rhs = false; if constexpr (typename _Alloc_traits::is_always_equal{}) __use_rhs = true; else if (__lhs.get_allocator() == __rhs.get_allocator()) __use_rhs = true; if (__use_rhs) { const auto __size = __lhs.size() + __rhs.size(); if (__size > __lhs.capacity() && __size <= __rhs.capacity()) return std::move(__rhs.insert(0, __lhs)); } return std::move(__lhs.append(__rhs)); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(const _CharT* __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { return std::move(__rhs.insert(0, __lhs)); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(_CharT __lhs, basic_string<_CharT, _Traits, _Alloc>&& __rhs) { return std::move(__rhs.insert(0, 1, __lhs)); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, const _CharT* __rhs) { return std::move(__lhs.append(__rhs)); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline basic_string<_CharT, _Traits, _Alloc> operator+(basic_string<_CharT, _Traits, _Alloc>&& __lhs, _CharT __rhs) { return std::move(__lhs.append(1, __rhs)); } # 3695 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline bool operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept { return __lhs.size() == __rhs.size() && !_Traits::compare(__lhs.data(), __rhs.data(), __lhs.size()); } template<typename _CharT, typename _Traits, typename _Alloc> [[__nodiscard__]] constexpr inline bool operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) { return __lhs.size() == _Traits::length(__rhs) && !_Traits::compare(__lhs.data(), __rhs, __lhs.size()); } # 3730 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> [[nodiscard]] constexpr auto operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__lhs.compare(__rhs)); } # 3745 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> [[nodiscard]] constexpr auto operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, const _CharT* __rhs) noexcept -> decltype(__detail::__char_traits_cmp_cat<_Traits>(0)) { return __detail::__char_traits_cmp_cat<_Traits>(__lhs.compare(__rhs)); } # 3979 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> constexpr inline void swap(basic_string<_CharT, _Traits, _Alloc>& __lhs, basic_string<_CharT, _Traits, _Alloc>& __rhs) noexcept(noexcept(__lhs.swap(__rhs))) { __lhs.swap(__rhs); } # 4000 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str); template<> basic_istream<char>& operator>>(basic_istream<char>& __is, basic_string<char>& __str); # 4018 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const basic_string<_CharT, _Traits, _Alloc>& __str) { return __ostream_insert(__os, __str.data(), __str.size()); } # 4041 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim); # 4058 "/usr/include/c++/13/bits/basic_string.h" 3 template<typename _CharT, typename _Traits, typename _Alloc> inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __is, basic_string<_CharT, _Traits, _Alloc>& __str) { return std::getline(__is, __str, __is.widen('\n')); } template<typename _CharT, typename _Traits, typename _Alloc> inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>&& __is, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) { return std::getline(__is, __str, __delim); } template<typename _CharT, typename _Traits, typename _Alloc> inline basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>&& __is, basic_string<_CharT, _Traits, _Alloc>& __str) { return std::getline(__is, __str); } template<> basic_istream<char>& getline(basic_istream<char>& __in, basic_string<char>& __str, char __delim); template<> basic_istream<wchar_t>& getline(basic_istream<wchar_t>& __in, basic_string<wchar_t>& __str, wchar_t __delim); } # 1 "/usr/include/c++/13/ext/string_conversions.h" 1 3 # 32 "/usr/include/c++/13/ext/string_conversions.h" 3 # 33 "/usr/include/c++/13/ext/string_conversions.h" 3 # 43 "/usr/include/c++/13/ext/string_conversions.h" 3 # 1 "/usr/include/c++/13/cstdlib" 1 3 # 39 "/usr/include/c++/13/cstdlib" 3 # 40 "/usr/include/c++/13/cstdlib" 3 # 79 "/usr/include/c++/13/cstdlib" 3 # 1 "/usr/include/stdlib.h" 1 3 4 # 26 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 33 "/usr/include/stdlib.h" 2 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/waitflags.h" 1 3 4 # 41 "/usr/include/stdlib.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/waitstatus.h" 1 3 4 # 42 "/usr/include/stdlib.h" 2 3 4 # 59 "/usr/include/stdlib.h" 3 4 typedef struct { int quot; int rem; } div_t; typedef struct { long int quot; long int rem; } ldiv_t; __extension__ typedef struct { long long int quot; long long int rem; } lldiv_t; # 98 "/usr/include/stdlib.h" 3 4 extern size_t __ctype_get_mb_cur_max (void) noexcept (true) ; extern double atof (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern int atoi (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern long int atol (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; __extension__ extern long long int atoll (const char *__nptr) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; extern double strtod (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern float strtof (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long double strtold (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); # 141 "/usr/include/stdlib.h" 3 4 extern _Float32 strtof32 (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float64 strtof64 (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float128 strtof128 (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float32x strtof32x (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern _Float64x strtof64x (const char *__restrict __nptr, char **__restrict __endptr) noexcept (true) __attribute__ ((__nonnull__ (1))); # 177 "/usr/include/stdlib.h" 3 4 extern long int strtol (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); extern unsigned long int strtoul (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtouq (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern long long int strtoll (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); __extension__ extern unsigned long long int strtoull (const char *__restrict __nptr, char **__restrict __endptr, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int strfromd (char *__dest, size_t __size, const char *__format, double __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf (char *__dest, size_t __size, const char *__format, float __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfroml (char *__dest, size_t __size, const char *__format, long double __f) noexcept (true) __attribute__ ((__nonnull__ (3))); # 233 "/usr/include/stdlib.h" 3 4 extern int strfromf32 (char *__dest, size_t __size, const char * __format, _Float32 __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf64 (char *__dest, size_t __size, const char * __format, _Float64 __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf128 (char *__dest, size_t __size, const char * __format, _Float128 __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf32x (char *__dest, size_t __size, const char * __format, _Float32x __f) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int strfromf64x (char *__dest, size_t __size, const char * __format, _Float64x __f) noexcept (true) __attribute__ ((__nonnull__ (3))); # 275 "/usr/include/stdlib.h" 3 4 extern long int strtol_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); extern unsigned long int strtoul_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); __extension__ extern long long int strtoll_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); __extension__ extern unsigned long long int strtoull_l (const char *__restrict __nptr, char **__restrict __endptr, int __base, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 4))); extern double strtod_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern float strtof_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern long double strtold_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 317 "/usr/include/stdlib.h" 3 4 extern _Float32 strtof32_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float64 strtof64_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float128 strtof128_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float32x strtof32x_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern _Float64x strtof64x_l (const char *__restrict __nptr, char **__restrict __endptr, locale_t __loc) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 386 "/usr/include/stdlib.h" 3 4 extern char *l64a (long int __n) noexcept (true) ; extern long int a64l (const char *__s) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) ; # 1 "/usr/include/x86_64-linux-gnu/sys/types.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 extern "C" { typedef __u_char u_char; typedef __u_short u_short; typedef __u_int u_int; typedef __u_long u_long; typedef __quad_t quad_t; typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; typedef __loff_t loff_t; typedef __ino_t ino_t; typedef __ino64_t ino64_t; typedef __dev_t dev_t; typedef __gid_t gid_t; typedef __mode_t mode_t; typedef __nlink_t nlink_t; typedef __uid_t uid_t; typedef __off_t off_t; typedef __off64_t off64_t; typedef __pid_t pid_t; typedef __id_t id_t; typedef __ssize_t ssize_t; typedef __daddr_t daddr_t; typedef __caddr_t caddr_t; typedef __key_t key_t; # 1 "/usr/include/x86_64-linux-gnu/bits/types/clock_t.h" 1 3 4 typedef __clock_t clock_t; # 127 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/clockid_t.h" 1 3 4 typedef __clockid_t clockid_t; # 129 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/time_t.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/bits/types/time_t.h" 3 4 typedef __time_t time_t; # 130 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/timer_t.h" 1 3 4 typedef __timer_t timer_t; # 131 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __useconds_t useconds_t; typedef __suseconds_t suseconds_t; # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 145 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef unsigned long int ulong; typedef unsigned short int ushort; typedef unsigned int uint; # 1 "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/stdint-intn.h" 3 4 typedef __int8_t int8_t; typedef __int16_t int16_t; typedef __int32_t int32_t; typedef __int64_t int64_t; # 156 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __uint8_t u_int8_t; typedef __uint16_t u_int16_t; typedef __uint32_t u_int32_t; typedef __uint64_t u_int64_t; typedef int register_t __attribute__ ((__mode__ (__word__))); # 176 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 # 1 "/usr/include/endian.h" 1 3 4 # 35 "/usr/include/endian.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 1 3 4 # 33 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 static __inline __uint16_t __bswap_16 (__uint16_t __bsx) { return __builtin_bswap16 (__bsx); } static __inline __uint32_t __bswap_32 (__uint32_t __bsx) { return __builtin_bswap32 (__bsx); } # 69 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 3 4 __extension__ static __inline __uint64_t __bswap_64 (__uint64_t __bsx) { return __builtin_bswap64 (__bsx); } # 36 "/usr/include/endian.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 1 3 4 # 32 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 3 4 static __inline __uint16_t __uint16_identity (__uint16_t __x) { return __x; } static __inline __uint32_t __uint32_identity (__uint32_t __x) { return __x; } static __inline __uint64_t __uint64_identity (__uint64_t __x) { return __x; } # 37 "/usr/include/endian.h" 2 3 4 # 177 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/select.h" 1 3 4 # 30 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/select.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__sigset_t.h" 1 3 4 typedef struct { unsigned long int __val[(1024 / (8 * sizeof (unsigned long int)))]; } __sigset_t; # 5 "/usr/include/x86_64-linux-gnu/bits/types/sigset_t.h" 2 3 4 typedef __sigset_t sigset_t; # 34 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_timeval.h" 1 3 4 struct timeval { __time_t tv_sec; __suseconds_t tv_usec; }; # 38 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 1 3 4 # 11 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 3 4 struct timespec { __time_t tv_sec; __syscall_slong_t tv_nsec; # 31 "/usr/include/x86_64-linux-gnu/bits/types/struct_timespec.h" 3 4 }; # 40 "/usr/include/x86_64-linux-gnu/sys/select.h" 2 3 4 # 49 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 typedef long int __fd_mask; # 59 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 typedef struct { __fd_mask fds_bits[1024 / (8 * (int) sizeof (__fd_mask))]; } fd_set; typedef __fd_mask fd_mask; # 91 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern "C" { # 102 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern int select (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, struct timeval *__restrict __timeout); # 127 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 extern int pselect (int __nfds, fd_set *__restrict __readfds, fd_set *__restrict __writefds, fd_set *__restrict __exceptfds, const struct timespec *__restrict __timeout, const __sigset_t *__restrict __sigmask); # 153 "/usr/include/x86_64-linux-gnu/sys/select.h" 3 4 } # 180 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 typedef __blksize_t blksize_t; typedef __blkcnt_t blkcnt_t; typedef __fsblkcnt_t fsblkcnt_t; typedef __fsfilcnt_t fsfilcnt_t; # 219 "/usr/include/x86_64-linux-gnu/sys/types.h" 3 4 typedef __blkcnt64_t blkcnt64_t; typedef __fsblkcnt64_t fsblkcnt64_t; typedef __fsfilcnt64_t fsfilcnt64_t; # 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 1 3 4 # 44 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 1 3 4 # 21 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes-arch.h" 2 3 4 # 45 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/atomic_wide_counter.h" 3 4 typedef union { __extension__ unsigned long long int __value64; struct { unsigned int __low; unsigned int __high; } __value32; } __atomic_wide_counter; # 47 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 typedef struct __pthread_internal_list { struct __pthread_internal_list *__prev; struct __pthread_internal_list *__next; } __pthread_list_t; typedef struct __pthread_internal_slist { struct __pthread_internal_slist *__next; } __pthread_slist_t; # 76 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/struct_mutex.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/struct_mutex.h" 3 4 struct __pthread_mutex_s { int __lock; unsigned int __count; int __owner; unsigned int __nusers; int __kind; short __spins; short __elision; __pthread_list_t __list; # 53 "/usr/include/x86_64-linux-gnu/bits/struct_mutex.h" 3 4 }; # 77 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 # 89 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h" 3 4 struct __pthread_rwlock_arch_t { unsigned int __readers; unsigned int __writers; unsigned int __wrphase_futex; unsigned int __writers_futex; unsigned int __pad3; unsigned int __pad4; int __cur_writer; int __shared; signed char __rwelision; unsigned char __pad1[7]; unsigned long int __pad2; unsigned int __flags; # 55 "/usr/include/x86_64-linux-gnu/bits/struct_rwlock.h" 3 4 }; # 90 "/usr/include/x86_64-linux-gnu/bits/thread-shared-types.h" 2 3 4 struct __pthread_cond_s { __atomic_wide_counter __wseq; __atomic_wide_counter __g1_start; unsigned int __g_refs[2] ; unsigned int __g_size[2]; unsigned int __g1_orig_size; unsigned int __wrefs; unsigned int __g_signals[2]; }; typedef unsigned int __tss_t; typedef unsigned long int __thrd_t; typedef struct { int __data ; } __once_flag; # 24 "/usr/include/x86_64-linux-gnu/bits/pthreadtypes.h" 2 3 4 typedef unsigned long int pthread_t; typedef union { char __size[4]; int __align; } pthread_mutexattr_t; typedef union { char __size[4]; int __align; } pthread_condattr_t; typedef unsigned int pthread_key_t; typedef int pthread_once_t; union pthread_attr_t { char __size[56]; long int __align; }; typedef union pthread_attr_t pthread_attr_t; typedef union { struct __pthread_mutex_s __data; char __size[40]; long int __align; } pthread_mutex_t; typedef union { struct __pthread_cond_s __data; char __size[48]; __extension__ long long int __align; } pthread_cond_t; typedef union { struct __pthread_rwlock_arch_t __data; char __size[56]; long int __align; } pthread_rwlock_t; typedef union { char __size[8]; long int __align; } pthread_rwlockattr_t; typedef volatile int pthread_spinlock_t; typedef union { char __size[32]; long int __align; } pthread_barrier_t; typedef union { char __size[4]; int __align; } pthread_barrierattr_t; # 228 "/usr/include/x86_64-linux-gnu/sys/types.h" 2 3 4 } # 396 "/usr/include/stdlib.h" 2 3 4 extern long int random (void) noexcept (true); extern void srandom (unsigned int __seed) noexcept (true); extern char *initstate (unsigned int __seed, char *__statebuf, size_t __statelen) noexcept (true) __attribute__ ((__nonnull__ (2))); extern char *setstate (char *__statebuf) noexcept (true) __attribute__ ((__nonnull__ (1))); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; }; extern int random_r (struct random_data *__restrict __buf, int32_t *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int srandom_r (unsigned int __seed, struct random_data *__buf) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int initstate_r (unsigned int __seed, char *__restrict __statebuf, size_t __statelen, struct random_data *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (2, 4))); extern int setstate_r (char *__restrict __statebuf, struct random_data *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int rand (void) noexcept (true); extern void srand (unsigned int __seed) noexcept (true); extern int rand_r (unsigned int *__seed) noexcept (true); extern double drand48 (void) noexcept (true); extern double erand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long int lrand48 (void) noexcept (true); extern long int nrand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long int mrand48 (void) noexcept (true); extern long int jrand48 (unsigned short int __xsubi[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void srand48 (long int __seedval) noexcept (true); extern unsigned short int *seed48 (unsigned short int __seed16v[3]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void lcong48 (unsigned short int __param[7]) noexcept (true) __attribute__ ((__nonnull__ (1))); struct drand48_data { unsigned short int __x[3]; unsigned short int __old_x[3]; unsigned short int __c; unsigned short int __init; __extension__ unsigned long long int __a; }; extern int drand48_r (struct drand48_data *__restrict __buffer, double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int erand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, double *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int lrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int nrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int mrand48_r (struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int jrand48_r (unsigned short int __xsubi[3], struct drand48_data *__restrict __buffer, long int *__restrict __result) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int srand48_r (long int __seedval, struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int seed48_r (unsigned short int __seed16v[3], struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int lcong48_r (unsigned short int __param[7], struct drand48_data *__buffer) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *malloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1))) ; extern void *calloc (size_t __nmemb, size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1, 2))) ; extern void *realloc (void *__ptr, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2))); extern void free (void *__ptr) noexcept (true); extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) noexcept (true) __attribute__ ((__warn_unused_result__)) __attribute__ ((__alloc_size__ (2, 3))) __attribute__ ((__malloc__ (__builtin_free, 1))); extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) noexcept (true) __attribute__ ((__malloc__ (reallocarray, 1))); # 1 "/usr/include/alloca.h" 1 3 4 # 24 "/usr/include/alloca.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 25 "/usr/include/alloca.h" 2 3 4 extern "C" { extern void *alloca (size_t __size) noexcept (true); } # 575 "/usr/include/stdlib.h" 2 3 4 extern void *valloc (size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_size__ (1))) ; extern int posix_memalign (void **__memptr, size_t __alignment, size_t __size) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern void *aligned_alloc (size_t __alignment, size_t __size) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__alloc_align__ (1))) __attribute__ ((__alloc_size__ (2))) ; extern void abort (void) noexcept (true) __attribute__ ((__noreturn__)); extern int atexit (void (*__func) (void)) noexcept (true) __attribute__ ((__nonnull__ (1))); extern "C++" int at_quick_exit (void (*__func) (void)) noexcept (true) __asm ("at_quick_exit") __attribute__ ((__nonnull__ (1))); # 617 "/usr/include/stdlib.h" 3 4 extern int on_exit (void (*__func) (int __status, void *__arg), void *__arg) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); extern void quick_exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); extern void _Exit (int __status) noexcept (true) __attribute__ ((__noreturn__)); extern char *getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern char *secure_getenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern int putenv (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int setenv (const char *__name, const char *__value, int __replace) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int unsetenv (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int clearenv (void) noexcept (true); # 682 "/usr/include/stdlib.h" 3 4 extern char *mktemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))); # 695 "/usr/include/stdlib.h" 3 4 extern int mkstemp (char *__template) __attribute__ ((__nonnull__ (1))) ; # 705 "/usr/include/stdlib.h" 3 4 extern int mkstemp64 (char *__template) __attribute__ ((__nonnull__ (1))) ; # 717 "/usr/include/stdlib.h" 3 4 extern int mkstemps (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; # 727 "/usr/include/stdlib.h" 3 4 extern int mkstemps64 (char *__template, int __suffixlen) __attribute__ ((__nonnull__ (1))) ; # 738 "/usr/include/stdlib.h" 3 4 extern char *mkdtemp (char *__template) noexcept (true) __attribute__ ((__nonnull__ (1))) ; # 749 "/usr/include/stdlib.h" 3 4 extern int mkostemp (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ; # 759 "/usr/include/stdlib.h" 3 4 extern int mkostemp64 (char *__template, int __flags) __attribute__ ((__nonnull__ (1))) ; # 769 "/usr/include/stdlib.h" 3 4 extern int mkostemps (char *__template, int __suffixlen, int __flags) __attribute__ ((__nonnull__ (1))) ; # 781 "/usr/include/stdlib.h" 3 4 extern int mkostemps64 (char *__template, int __suffixlen, int __flags) __attribute__ ((__nonnull__ (1))) ; # 791 "/usr/include/stdlib.h" 3 4 extern int system (const char *__command) ; extern char *canonicalize_file_name (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))) ; # 808 "/usr/include/stdlib.h" 3 4 extern char *realpath (const char *__restrict __name, char *__restrict __resolved) noexcept (true) ; typedef int (*__compar_fn_t) (const void *, const void *); typedef __compar_fn_t comparison_fn_t; typedef int (*__compar_d_fn_t) (const void *, const void *, void *); extern void *bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 2, 5))) ; extern void qsort (void *__base, size_t __nmemb, size_t __size, __compar_fn_t __compar) __attribute__ ((__nonnull__ (1, 4))); extern void qsort_r (void *__base, size_t __nmemb, size_t __size, __compar_d_fn_t __compar, void *__arg) __attribute__ ((__nonnull__ (1, 4))); extern int abs (int __x) noexcept (true) __attribute__ ((__const__)) ; extern long int labs (long int __x) noexcept (true) __attribute__ ((__const__)) ; __extension__ extern long long int llabs (long long int __x) noexcept (true) __attribute__ ((__const__)) ; extern div_t div (int __numer, int __denom) noexcept (true) __attribute__ ((__const__)) ; extern ldiv_t ldiv (long int __numer, long int __denom) noexcept (true) __attribute__ ((__const__)) ; __extension__ extern lldiv_t lldiv (long long int __numer, long long int __denom) noexcept (true) __attribute__ ((__const__)) ; # 880 "/usr/include/stdlib.h" 3 4 extern char *ecvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) ; extern char *fcvt (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) ; extern char *gcvt (double __value, int __ndigit, char *__buf) noexcept (true) __attribute__ ((__nonnull__ (3))) ; extern char *qecvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qfcvt (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign) noexcept (true) __attribute__ ((__nonnull__ (3, 4))) ; extern char *qgcvt (long double __value, int __ndigit, char *__buf) noexcept (true) __attribute__ ((__nonnull__ (3))) ; extern int ecvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int fcvt_r (double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qecvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int qfcvt_r (long double __value, int __ndigit, int *__restrict __decpt, int *__restrict __sign, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (3, 4, 5))); extern int mblen (const char *__s, size_t __n) noexcept (true); extern int mbtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n) noexcept (true); extern int wctomb (char *__s, wchar_t __wchar) noexcept (true); extern size_t mbstowcs (wchar_t *__restrict __pwcs, const char *__restrict __s, size_t __n) noexcept (true) __attribute__ ((__access__ (__read_only__, 2))); extern size_t wcstombs (char *__restrict __s, const wchar_t *__restrict __pwcs, size_t __n) noexcept (true) __attribute__ ((__access__ (__write_only__, 1, 3))) __attribute__ ((__access__ (__read_only__, 2))); extern int rpmatch (const char *__response) noexcept (true) __attribute__ ((__nonnull__ (1))) ; # 967 "/usr/include/stdlib.h" 3 4 extern int getsubopt (char **__restrict __optionp, char *const *__restrict __tokens, char **__restrict __valuep) noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))) ; extern int posix_openpt (int __oflag) ; extern int grantpt (int __fd) noexcept (true); extern int unlockpt (int __fd) noexcept (true); extern char *ptsname (int __fd) noexcept (true) ; extern int ptsname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); extern int getpt (void); extern int getloadavg (double __loadavg[], int __nelem) noexcept (true) __attribute__ ((__nonnull__ (1))); # 1023 "/usr/include/stdlib.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdlib-float.h" 1 3 4 # 1024 "/usr/include/stdlib.h" 2 3 4 # 1035 "/usr/include/stdlib.h" 3 4 } # 80 "/usr/include/c++/13/cstdlib" 2 3 # 1 "/usr/include/c++/13/bits/std_abs.h" 1 3 # 33 "/usr/include/c++/13/bits/std_abs.h" 3 # 34 "/usr/include/c++/13/bits/std_abs.h" 3 # 46 "/usr/include/c++/13/bits/std_abs.h" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::abs; inline long abs(long __i) { return __builtin_labs(__i); } inline long long abs(long long __x) { return __builtin_llabs (__x); } # 70 "/usr/include/c++/13/bits/std_abs.h" 3 inline constexpr double abs(double __x) { return __builtin_fabs(__x); } inline constexpr float abs(float __x) { return __builtin_fabsf(__x); } inline constexpr long double abs(long double __x) { return __builtin_fabsl(__x); } __extension__ inline constexpr __int128 abs(__int128 __x) { return __x >= 0 ? __x : -__x; } # 135 "/usr/include/c++/13/bits/std_abs.h" 3 __extension__ inline constexpr __float128 abs(__float128 __x) { return __builtin_fabsf128(__x); } } } # 82 "/usr/include/c++/13/cstdlib" 2 3 # 125 "/usr/include/c++/13/cstdlib" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::div_t; using ::ldiv_t; using ::abort; using ::aligned_alloc; using ::atexit; using ::at_quick_exit; using ::atof; using ::atoi; using ::atol; using ::bsearch; using ::calloc; using ::div; using ::exit; using ::free; using ::getenv; using ::labs; using ::ldiv; using ::malloc; using ::mblen; using ::mbstowcs; using ::mbtowc; using ::qsort; using ::quick_exit; using ::rand; using ::realloc; using ::srand; using ::strtod; using ::strtol; using ::strtoul; using ::system; using ::wcstombs; using ::wctomb; inline ldiv_t div(long __i, long __j) noexcept { return ldiv(__i, __j); } } # 199 "/usr/include/c++/13/cstdlib" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { using ::lldiv_t; using ::_Exit; using ::llabs; inline lldiv_t div(long long __n, long long __d) { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; } using ::lldiv; # 231 "/usr/include/c++/13/cstdlib" 3 using ::atoll; using ::strtoll; using ::strtoull; using ::strtof; using ::strtold; } namespace std { using ::__gnu_cxx::lldiv_t; using ::__gnu_cxx::_Exit; using ::__gnu_cxx::llabs; using ::__gnu_cxx::div; using ::__gnu_cxx::lldiv; using ::__gnu_cxx::atoll; using ::__gnu_cxx::strtof; using ::__gnu_cxx::strtoll; using ::__gnu_cxx::strtoull; using ::__gnu_cxx::strtold; } } # 44 "/usr/include/c++/13/ext/string_conversions.h" 2 3 # 1 "/usr/include/c++/13/cwchar" 1 3 # 39 "/usr/include/c++/13/cwchar" 3 # 40 "/usr/include/c++/13/cwchar" 3 # 45 "/usr/include/c++/13/ext/string_conversions.h" 2 3 # 1 "/usr/include/c++/13/cstdio" 1 3 # 39 "/usr/include/c++/13/cstdio" 3 # 40 "/usr/include/c++/13/cstdio" 3 # 1 "/usr/include/stdio.h" 1 3 4 # 27 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 28 "/usr/include/stdio.h" 2 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 34 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h" 1 3 4 # 37 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/bits/types/__fpos_t.h" 3 4 typedef struct _G_fpos_t { __off_t __pos; __mbstate_t __state; } __fpos_t; # 40 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h" 1 3 4 # 10 "/usr/include/x86_64-linux-gnu/bits/types/__fpos64_t.h" 3 4 typedef struct _G_fpos64_t { __off64_t __pos; __mbstate_t __state; } __fpos64_t; # 41 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h" 1 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/types/struct_FILE.h" 3 4 struct _IO_FILE; struct _IO_marker; struct _IO_codecvt; struct _IO_wide_data; typedef void _IO_lock_t; struct _IO_FILE { int _flags; char *_IO_read_ptr; char *_IO_read_end; char *_IO_read_base; char *_IO_write_base; char *_IO_write_ptr; char *_IO_write_end; char *_IO_buf_base; char *_IO_buf_end; char *_IO_save_base; char *_IO_backup_base; char *_IO_save_end; struct _IO_marker *_markers; struct _IO_FILE *_chain; int _fileno; int _flags2; __off_t _old_offset; unsigned short _cur_column; signed char _vtable_offset; char _shortbuf[1]; _IO_lock_t *_lock; __off64_t _offset; struct _IO_codecvt *_codecvt; struct _IO_wide_data *_wide_data; struct _IO_FILE *_freeres_list; void *_freeres_buf; size_t __pad5; int _mode; char _unused2[15 * sizeof (int) - 4 * sizeof (void *) - sizeof (size_t)]; }; # 44 "/usr/include/stdio.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/types/cookie_io_functions_t.h" 3 4 typedef __ssize_t cookie_read_function_t (void *__cookie, char *__buf, size_t __nbytes); typedef __ssize_t cookie_write_function_t (void *__cookie, const char *__buf, size_t __nbytes); typedef int cookie_seek_function_t (void *__cookie, __off64_t *__pos, int __w); typedef int cookie_close_function_t (void *__cookie); typedef struct _IO_cookie_io_functions_t { cookie_read_function_t *read; cookie_write_function_t *write; cookie_seek_function_t *seek; cookie_close_function_t *close; } cookie_io_functions_t; # 47 "/usr/include/stdio.h" 2 3 4 typedef __gnuc_va_list va_list; # 84 "/usr/include/stdio.h" 3 4 typedef __fpos_t fpos_t; typedef __fpos64_t fpos64_t; # 133 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdio_lim.h" 1 3 4 # 134 "/usr/include/stdio.h" 2 3 4 # 143 "/usr/include/stdio.h" 3 4 extern FILE *stdin; extern FILE *stdout; extern FILE *stderr; extern int remove (const char *__filename) noexcept (true); extern int rename (const char *__old, const char *__new) noexcept (true); extern int renameat (int __oldfd, const char *__old, int __newfd, const char *__new) noexcept (true); # 170 "/usr/include/stdio.h" 3 4 extern int renameat2 (int __oldfd, const char *__old, int __newfd, const char *__new, unsigned int __flags) noexcept (true); extern int fclose (FILE *__stream); # 188 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile (void) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; # 200 "/usr/include/stdio.h" 3 4 extern FILE *tmpfile64 (void) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern char *tmpnam (char[20]) noexcept (true) ; extern char *tmpnam_r (char __s[20]) noexcept (true) ; # 222 "/usr/include/stdio.h" 3 4 extern char *tempnam (const char *__dir, const char *__pfx) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (__builtin_free, 1))); extern int fflush (FILE *__stream); # 239 "/usr/include/stdio.h" 3 4 extern int fflush_unlocked (FILE *__stream); # 249 "/usr/include/stdio.h" 3 4 extern int fcloseall (void); # 258 "/usr/include/stdio.h" 3 4 extern FILE *fopen (const char *__restrict __filename, const char *__restrict __modes) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern FILE *freopen (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) ; # 283 "/usr/include/stdio.h" 3 4 extern FILE *fopen64 (const char *__restrict __filename, const char *__restrict __modes) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern FILE *freopen64 (const char *__restrict __filename, const char *__restrict __modes, FILE *__restrict __stream) ; extern FILE *fdopen (int __fd, const char *__modes) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern FILE *fopencookie (void *__restrict __magic_cookie, const char *__restrict __modes, cookie_io_functions_t __io_funcs) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern FILE *fmemopen (void *__s, size_t __len, const char *__modes) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern FILE *open_memstream (char **__bufloc, size_t *__sizeloc) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))) ; extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (fclose, 1))); extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) noexcept (true); extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, int __modes, size_t __n) noexcept (true); extern void setbuffer (FILE *__restrict __stream, char *__restrict __buf, size_t __size) noexcept (true); extern void setlinebuf (FILE *__stream) noexcept (true); extern int fprintf (FILE *__restrict __stream, const char *__restrict __format, ...); extern int printf (const char *__restrict __format, ...); extern int sprintf (char *__restrict __s, const char *__restrict __format, ...) noexcept (true); extern int vfprintf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg); extern int vprintf (const char *__restrict __format, __gnuc_va_list __arg); extern int vsprintf (char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true); extern int snprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 4))); extern int vsnprintf (char *__restrict __s, size_t __maxlen, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__printf__, 3, 0))); extern int vasprintf (char **__restrict __ptr, const char *__restrict __f, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))) ; extern int __asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) ; extern int asprintf (char **__restrict __ptr, const char *__restrict __fmt, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))) ; extern int vdprintf (int __fd, const char *__restrict __fmt, __gnuc_va_list __arg) __attribute__ ((__format__ (__printf__, 2, 0))); extern int dprintf (int __fd, const char *__restrict __fmt, ...) __attribute__ ((__format__ (__printf__, 2, 3))); extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) ; extern int scanf (const char *__restrict __format, ...) ; extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true); # 434 "/usr/include/stdio.h" 3 4 extern int fscanf (FILE *__restrict __stream, const char *__restrict __format, ...) __asm__ ("" "__isoc99_fscanf") ; extern int scanf (const char *__restrict __format, ...) __asm__ ("" "__isoc99_scanf") ; extern int sscanf (const char *__restrict __s, const char *__restrict __format, ...) noexcept (true) __asm__ ("" "__isoc99_sscanf") ; # 459 "/usr/include/stdio.h" 3 4 extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 2, 0))) ; extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __attribute__ ((__format__ (__scanf__, 1, 0))) ; extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __attribute__ ((__format__ (__scanf__, 2, 0))); extern int vfscanf (FILE *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vfscanf") __attribute__ ((__format__ (__scanf__, 2, 0))) ; extern int vscanf (const char *__restrict __format, __gnuc_va_list __arg) __asm__ ("" "__isoc99_vscanf") __attribute__ ((__format__ (__scanf__, 1, 0))) ; extern int vsscanf (const char *__restrict __s, const char *__restrict __format, __gnuc_va_list __arg) noexcept (true) __asm__ ("" "__isoc99_vsscanf") __attribute__ ((__format__ (__scanf__, 2, 0))); # 513 "/usr/include/stdio.h" 3 4 extern int fgetc (FILE *__stream); extern int getc (FILE *__stream); extern int getchar (void); extern int getc_unlocked (FILE *__stream); extern int getchar_unlocked (void); # 538 "/usr/include/stdio.h" 3 4 extern int fgetc_unlocked (FILE *__stream); # 549 "/usr/include/stdio.h" 3 4 extern int fputc (int __c, FILE *__stream); extern int putc (int __c, FILE *__stream); extern int putchar (int __c); # 565 "/usr/include/stdio.h" 3 4 extern int fputc_unlocked (int __c, FILE *__stream); extern int putc_unlocked (int __c, FILE *__stream); extern int putchar_unlocked (int __c); extern int getw (FILE *__stream); extern int putw (int __w, FILE *__stream); extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream) __attribute__ ((__access__ (__write_only__, 1, 2))); # 615 "/usr/include/stdio.h" 3 4 extern char *fgets_unlocked (char *__restrict __s, int __n, FILE *__restrict __stream) __attribute__ ((__access__ (__write_only__, 1, 2))); # 632 "/usr/include/stdio.h" 3 4 extern __ssize_t __getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) ; extern __ssize_t getdelim (char **__restrict __lineptr, size_t *__restrict __n, int __delimiter, FILE *__restrict __stream) ; extern __ssize_t getline (char **__restrict __lineptr, size_t *__restrict __n, FILE *__restrict __stream) ; extern int fputs (const char *__restrict __s, FILE *__restrict __stream); extern int puts (const char *__s); extern int ungetc (int __c, FILE *__stream); extern size_t fread (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern size_t fwrite (const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __s); # 691 "/usr/include/stdio.h" 3 4 extern int fputs_unlocked (const char *__restrict __s, FILE *__restrict __stream); # 702 "/usr/include/stdio.h" 3 4 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream) ; extern size_t fwrite_unlocked (const void *__restrict __ptr, size_t __size, size_t __n, FILE *__restrict __stream); extern int fseek (FILE *__stream, long int __off, int __whence); extern long int ftell (FILE *__stream) ; extern void rewind (FILE *__stream); # 736 "/usr/include/stdio.h" 3 4 extern int fseeko (FILE *__stream, __off_t __off, int __whence); extern __off_t ftello (FILE *__stream) ; # 760 "/usr/include/stdio.h" 3 4 extern int fgetpos (FILE *__restrict __stream, fpos_t *__restrict __pos); extern int fsetpos (FILE *__stream, const fpos_t *__pos); # 779 "/usr/include/stdio.h" 3 4 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); extern __off64_t ftello64 (FILE *__stream) ; extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos); extern int fsetpos64 (FILE *__stream, const fpos64_t *__pos); extern void clearerr (FILE *__stream) noexcept (true); extern int feof (FILE *__stream) noexcept (true) ; extern int ferror (FILE *__stream) noexcept (true) ; extern void clearerr_unlocked (FILE *__stream) noexcept (true); extern int feof_unlocked (FILE *__stream) noexcept (true) ; extern int ferror_unlocked (FILE *__stream) noexcept (true) ; extern void perror (const char *__s); extern int fileno (FILE *__stream) noexcept (true) ; extern int fileno_unlocked (FILE *__stream) noexcept (true) ; # 823 "/usr/include/stdio.h" 3 4 extern int pclose (FILE *__stream); extern FILE *popen (const char *__command, const char *__modes) __attribute__ ((__malloc__)) __attribute__ ((__malloc__ (pclose, 1))) ; extern char *ctermid (char *__s) noexcept (true) __attribute__ ((__access__ (__write_only__, 1))); extern char *cuserid (char *__s) __attribute__ ((__access__ (__write_only__, 1))); struct obstack; extern int obstack_printf (struct obstack *__restrict __obstack, const char *__restrict __format, ...) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 3))); extern int obstack_vprintf (struct obstack *__restrict __obstack, const char *__restrict __format, __gnuc_va_list __args) noexcept (true) __attribute__ ((__format__ (__printf__, 2, 0))); extern void flockfile (FILE *__stream) noexcept (true); extern int ftrylockfile (FILE *__stream) noexcept (true) ; extern void funlockfile (FILE *__stream) noexcept (true); # 885 "/usr/include/stdio.h" 3 4 extern int __uflow (FILE *); extern int __overflow (FILE *, int); # 902 "/usr/include/stdio.h" 3 4 } # 43 "/usr/include/c++/13/cstdio" 2 3 # 96 "/usr/include/c++/13/cstdio" 3 namespace std { using ::FILE; using ::fpos_t; using ::clearerr; using ::fclose; using ::feof; using ::ferror; using ::fflush; using ::fgetc; using ::fgetpos; using ::fgets; using ::fopen; using ::fprintf; using ::fputc; using ::fputs; using ::fread; using ::freopen; using ::fscanf; using ::fseek; using ::fsetpos; using ::ftell; using ::fwrite; using ::getc; using ::getchar; using ::perror; using ::printf; using ::putc; using ::putchar; using ::puts; using ::remove; using ::rename; using ::rewind; using ::scanf; using ::setbuf; using ::setvbuf; using ::sprintf; using ::sscanf; using ::tmpfile; using ::tmpnam; using ::ungetc; using ::vfprintf; using ::vprintf; using ::vsprintf; } # 157 "/usr/include/c++/13/cstdio" 3 namespace __gnu_cxx { # 175 "/usr/include/c++/13/cstdio" 3 using ::snprintf; using ::vfscanf; using ::vscanf; using ::vsnprintf; using ::vsscanf; } namespace std { using ::__gnu_cxx::snprintf; using ::__gnu_cxx::vfscanf; using ::__gnu_cxx::vscanf; using ::__gnu_cxx::vsnprintf; using ::__gnu_cxx::vsscanf; } # 46 "/usr/include/c++/13/ext/string_conversions.h" 2 3 # 1 "/usr/include/c++/13/cerrno" 1 3 # 39 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/cerrno" 3 # 1 "/usr/include/errno.h" 1 3 4 # 28 "/usr/include/errno.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/errno.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/errno.h" 3 4 # 1 "/usr/include/linux/errno.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno.h" 1 3 4 # 1 "/usr/include/asm-generic/errno-base.h" 1 3 4 # 6 "/usr/include/asm-generic/errno.h" 2 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/errno.h" 2 3 4 # 2 "/usr/include/linux/errno.h" 2 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/errno.h" 2 3 4 # 29 "/usr/include/errno.h" 2 3 4 extern "C" { extern int *__errno_location (void) noexcept (true) __attribute__ ((__const__)); extern char *program_invocation_name; extern char *program_invocation_short_name; # 1 "/usr/include/x86_64-linux-gnu/bits/types/error_t.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/types/error_t.h" 3 4 typedef int error_t; # 49 "/usr/include/errno.h" 2 3 4 } # 43 "/usr/include/c++/13/cerrno" 2 3 # 47 "/usr/include/c++/13/ext/string_conversions.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template<typename _TRet, typename _Ret = _TRet, typename _CharT, typename... _Base> _Ret __stoa(_TRet (*__convf) (const _CharT*, _CharT**, _Base...), const char* __name, const _CharT* __str, std::size_t* __idx, _Base... __base) { _Ret __ret; _CharT* __endptr; struct _Save_errno { _Save_errno() : _M_errno((*__errno_location ())) { (*__errno_location ()) = 0; } ~_Save_errno() { if ((*__errno_location ()) == 0) (*__errno_location ()) = _M_errno; } int _M_errno; } const __save_errno; struct _Range_chk { static bool _S_chk(_TRet, std::false_type) { return false; } static bool _S_chk(_TRet __val, std::true_type) { return __val < _TRet(__numeric_traits<int>::__min) || __val > _TRet(__numeric_traits<int>::__max); } }; const _TRet __tmp = __convf(__str, &__endptr, __base...); if (__endptr == __str) std::__throw_invalid_argument(__name); else if ((*__errno_location ()) == 34 || _Range_chk::_S_chk(__tmp, std::is_same<_Ret, int>{})) std::__throw_out_of_range(__name); else __ret = __tmp; if (__idx) *__idx = __endptr - __str; return __ret; } template<typename _String, typename _CharT = typename _String::value_type> _String __to_xstring(int (*__convf) (_CharT*, std::size_t, const _CharT*, __builtin_va_list), std::size_t __n, const _CharT* __fmt, ...) { _CharT* __s = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __n)); __builtin_va_list __args; __builtin_va_start(__args, __fmt); const int __len = __convf(__s, __n, __fmt, __args); __builtin_va_end(__args); return _String(__s, __s + __len); } } # 4098 "/usr/include/c++/13/bits/basic_string.h" 2 3 # 1 "/usr/include/c++/13/bits/charconv.h" 1 3 # 33 "/usr/include/c++/13/bits/charconv.h" 3 # 34 "/usr/include/c++/13/bits/charconv.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template<typename _Tp> constexpr bool __integer_to_chars_is_unsigned = ! __gnu_cxx::__int_traits<_Tp>::__is_signed; template<typename _Tp> constexpr unsigned __to_chars_len(_Tp __value, int __base = 10) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); unsigned __n = 1; const unsigned __b2 = __base * __base; const unsigned __b3 = __b2 * __base; const unsigned long __b4 = __b3 * __base; for (;;) { if (__value < (unsigned)__base) return __n; if (__value < __b2) return __n + 1; if (__value < __b3) return __n + 2; if (__value < __b4) return __n + 3; __value /= __b4; __n += 4; } } template<typename _Tp> void __to_chars_10_impl(char* __first, unsigned __len, _Tp __val) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); constexpr char __digits[201] = "0001020304050607080910111213141516171819" "2021222324252627282930313233343536373839" "4041424344454647484950515253545556575859" "6061626364656667686970717273747576777879" "8081828384858687888990919293949596979899"; unsigned __pos = __len - 1; while (__val >= 100) { auto const __num = (__val % 100) * 2; __val /= 100; __first[__pos] = __digits[__num + 1]; __first[__pos - 1] = __digits[__num]; __pos -= 2; } if (__val >= 10) { auto const __num = __val * 2; __first[1] = __digits[__num + 1]; __first[0] = __digits[__num]; } else __first[0] = '0' + __val; } } } # 4099 "/usr/include/c++/13/bits/basic_string.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { inline int stoi(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa<long, int>(&std::strtol, "stoi", __str.c_str(), __idx, __base); } inline long stol(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtol, "stol", __str.c_str(), __idx, __base); } inline unsigned long stoul(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtoul, "stoul", __str.c_str(), __idx, __base); } inline long long stoll(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtoll, "stoll", __str.c_str(), __idx, __base); } inline unsigned long long stoull(const string& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::strtoull, "stoull", __str.c_str(), __idx, __base); } inline float stof(const string& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::strtof, "stof", __str.c_str(), __idx); } inline double stod(const string& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::strtod, "stod", __str.c_str(), __idx); } inline long double stold(const string& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::strtold, "stold", __str.c_str(), __idx); } [[__nodiscard__]] inline string to_string(int __val) noexcept { const bool __neg = __val < 0; const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val; const auto __len = __detail::__to_chars_len(__uval); string __str(__neg + __len, '-'); __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); return __str; } [[__nodiscard__]] inline string to_string(unsigned __val) noexcept { string __str(__detail::__to_chars_len(__val), '\0'); __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); return __str; } [[__nodiscard__]] inline string to_string(long __val) { const bool __neg = __val < 0; const unsigned long __uval = __neg ? (unsigned long)~__val + 1ul : __val; const auto __len = __detail::__to_chars_len(__uval); string __str(__neg + __len, '-'); __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); return __str; } [[__nodiscard__]] inline string to_string(unsigned long __val) { string __str(__detail::__to_chars_len(__val), '\0'); __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); return __str; } [[__nodiscard__]] inline string to_string(long long __val) { const bool __neg = __val < 0; const unsigned long long __uval = __neg ? (unsigned long long)~__val + 1ull : __val; const auto __len = __detail::__to_chars_len(__uval); string __str(__neg + __len, '-'); __detail::__to_chars_10_impl(&__str[__neg], __len, __uval); return __str; } [[__nodiscard__]] inline string to_string(unsigned long long __val) { string __str(__detail::__to_chars_len(__val), '\0'); __detail::__to_chars_10_impl(&__str[0], __str.size(), __val); return __str; } [[__nodiscard__]] inline string to_string(float __val) { const int __n = __gnu_cxx::__numeric_traits<float>::__max_exponent10 + 20; return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n, "%f", __val); } [[__nodiscard__]] inline string to_string(double __val) { const int __n = __gnu_cxx::__numeric_traits<double>::__max_exponent10 + 20; return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n, "%f", __val); } [[__nodiscard__]] inline string to_string(long double __val) { const int __n = __gnu_cxx::__numeric_traits<long double>::__max_exponent10 + 20; return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n, "%Lf", __val); } inline int stoi(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa<long, int>(&std::wcstol, "stoi", __str.c_str(), __idx, __base); } inline long stol(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstol, "stol", __str.c_str(), __idx, __base); } inline unsigned long stoul(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstoul, "stoul", __str.c_str(), __idx, __base); } inline long long stoll(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstoll, "stoll", __str.c_str(), __idx, __base); } inline unsigned long long stoull(const wstring& __str, size_t* __idx = 0, int __base = 10) { return __gnu_cxx::__stoa(&std::wcstoull, "stoull", __str.c_str(), __idx, __base); } inline float stof(const wstring& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::wcstof, "stof", __str.c_str(), __idx); } inline double stod(const wstring& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::wcstod, "stod", __str.c_str(), __idx); } inline long double stold(const wstring& __str, size_t* __idx = 0) { return __gnu_cxx::__stoa(&std::wcstold, "stold", __str.c_str(), __idx); } [[__nodiscard__]] inline wstring to_wstring(int __val) { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(int), L"%d", __val); } [[__nodiscard__]] inline wstring to_wstring(unsigned __val) { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(unsigned), L"%u", __val); } [[__nodiscard__]] inline wstring to_wstring(long __val) { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long), L"%ld", __val); } [[__nodiscard__]] inline wstring to_wstring(unsigned long __val) { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(unsigned long), L"%lu", __val); } [[__nodiscard__]] inline wstring to_wstring(long long __val) { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(long long), L"%lld", __val); } [[__nodiscard__]] inline wstring to_wstring(unsigned long long __val) { return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, 4 * sizeof(unsigned long long), L"%llu", __val); } [[__nodiscard__]] inline wstring to_wstring(float __val) { const int __n = __gnu_cxx::__numeric_traits<float>::__max_exponent10 + 20; return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n, L"%f", __val); } [[__nodiscard__]] inline wstring to_wstring(double __val) { const int __n = __gnu_cxx::__numeric_traits<double>::__max_exponent10 + 20; return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n, L"%f", __val); } [[__nodiscard__]] inline wstring to_wstring(long double __val) { const int __n = __gnu_cxx::__numeric_traits<long double>::__max_exponent10 + 20; return __gnu_cxx::__to_xstring<wstring>(&std::vswprintf, __n, L"%Lf", __val); } } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Alloc, typename _StrT = basic_string<_CharT, char_traits<_CharT>, _Alloc>> struct __str_hash_base : public __hash_base<size_t, _StrT> { [[__nodiscard__]] size_t operator()(const _StrT& __s) const noexcept { return _Hash_impl::hash(__s.data(), __s.length() * sizeof(_CharT)); } }; template<typename _Alloc> struct hash<basic_string<char, char_traits<char>, _Alloc>> : public __str_hash_base<char, _Alloc> { }; template<typename _Alloc> struct hash<basic_string<wchar_t, char_traits<wchar_t>, _Alloc>> : public __str_hash_base<wchar_t, _Alloc> { }; template<typename _Alloc> struct __is_fast_hash<hash<basic_string<wchar_t, char_traits<wchar_t>, _Alloc>>> : std::false_type { }; template<typename _Alloc> struct hash<basic_string<char8_t, char_traits<char8_t>, _Alloc>> : public __str_hash_base<char8_t, _Alloc> { }; template<typename _Alloc> struct hash<basic_string<char16_t, char_traits<char16_t>, _Alloc>> : public __str_hash_base<char16_t, _Alloc> { }; template<typename _Alloc> struct hash<basic_string<char32_t, char_traits<char32_t>, _Alloc>> : public __str_hash_base<char32_t, _Alloc> { }; template<> struct __is_fast_hash<hash<string>> : std::false_type { }; template<> struct __is_fast_hash<hash<wstring>> : std::false_type { }; template<> struct __is_fast_hash<hash<u16string>> : std::false_type { }; template<> struct __is_fast_hash<hash<u32string>> : std::false_type { }; template<> struct __is_fast_hash<hash<u8string>> : std::false_type { }; # 4460 "/usr/include/c++/13/bits/basic_string.h" 3 inline namespace literals { inline namespace string_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string<char> operator""s(const char* __str, size_t __len) { return basic_string<char>{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string<wchar_t> operator""s(const wchar_t* __str, size_t __len) { return basic_string<wchar_t>{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string<char8_t> operator""s(const char8_t* __str, size_t __len) { return basic_string<char8_t>{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string<char16_t> operator""s(const char16_t* __str, size_t __len) { return basic_string<char16_t>{__str, __len}; } __attribute ((__abi_tag__ ("cxx11"))) constexpr inline basic_string<char32_t> operator""s(const char32_t* __str, size_t __len) { return basic_string<char32_t>{__str, __len}; } #pragma GCC diagnostic pop } } namespace __detail::__variant { template<typename> struct _Never_valueless_alt; template<typename _Tp, typename _Traits, typename _Alloc> struct _Never_valueless_alt<std::basic_string<_Tp, _Traits, _Alloc>> : __and_< is_nothrow_move_constructible<std::basic_string<_Tp, _Traits, _Alloc>>, is_nothrow_move_assignable<std::basic_string<_Tp, _Traits, _Alloc>> >::type { }; } } # 55 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/basic_string.tcc" 1 3 # 42 "/usr/include/c++/13/bits/basic_string.tcc" 3 # 43 "/usr/include/c++/13/bits/basic_string.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits, typename _Alloc> const typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>::npos; template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: swap(basic_string& __s) noexcept { if (this == std::__addressof(__s)) return; _Alloc_traits::_S_on_swap(_M_get_allocator(), __s._M_get_allocator()); if (_M_is_local()) if (__s._M_is_local()) { if (length() && __s.length()) { _CharT __tmp_data[_S_local_capacity + 1]; traits_type::copy(__tmp_data, __s._M_local_buf, __s.length() + 1); traits_type::copy(__s._M_local_buf, _M_local_buf, length() + 1); traits_type::copy(_M_local_buf, __tmp_data, __s.length() + 1); } else if (__s.length()) { traits_type::copy(_M_local_buf, __s._M_local_buf, __s.length() + 1); _M_length(__s.length()); __s._M_set_length(0); return; } else if (length()) { traits_type::copy(__s._M_local_buf, _M_local_buf, length() + 1); __s._M_length(length()); _M_set_length(0); return; } } else { const size_type __tmp_capacity = __s._M_allocated_capacity; traits_type::copy(__s._M_local_buf, _M_local_buf, length() + 1); _M_data(__s._M_data()); __s._M_data(__s._M_local_buf); _M_capacity(__tmp_capacity); } else { const size_type __tmp_capacity = _M_allocated_capacity; if (__s._M_is_local()) { traits_type::copy(_M_local_buf, __s._M_local_buf, __s.length() + 1); __s._M_data(_M_data()); _M_data(_M_local_buf); } else { pointer __tmp_ptr = _M_data(); _M_data(__s._M_data()); __s._M_data(__tmp_ptr); _M_capacity(__s._M_allocated_capacity); } __s._M_capacity(__tmp_capacity); } const size_type __tmp_length = length(); _M_length(__s.length()); __s._M_length(__tmp_length); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::pointer basic_string<_CharT, _Traits, _Alloc>:: _M_create(size_type& __capacity, size_type __old_capacity) { if (__capacity > max_size()) std::__throw_length_error(("basic_string::_M_create")); if (__capacity > __old_capacity && __capacity < 2 * __old_capacity) { __capacity = 2 * __old_capacity; if (__capacity > max_size()) __capacity = max_size(); } return _S_allocate(_M_get_allocator(), __capacity + 1); } template<typename _CharT, typename _Traits, typename _Alloc> template<typename _InIterator> constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(_InIterator __beg, _InIterator __end, std::input_iterator_tag) { size_type __len = 0; size_type __capacity = size_type(_S_local_capacity); pointer __p = _M_use_local_data(); while (__beg != __end && __len < __capacity) { __p[__len++] = *__beg; ++__beg; } struct _Guard { constexpr explicit _Guard(basic_string* __s) : _M_guarded(__s) { } constexpr ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } basic_string* _M_guarded; } __guard(this); while (__beg != __end) { if (__len == __capacity) { __capacity = __len + 1; pointer __another = _M_create(__capacity, __len); this->_S_copy(__another, _M_data(), __len); _M_dispose(); _M_data(__another); _M_capacity(__capacity); } traits_type::assign(_M_data()[__len++], *__beg); ++__beg; } __guard._M_guarded = 0; _M_set_length(__len); } template<typename _CharT, typename _Traits, typename _Alloc> template<typename _InIterator> constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(_InIterator __beg, _InIterator __end, std::forward_iterator_tag) { size_type __dnew = static_cast<size_type>(std::distance(__beg, __end)); if (__dnew > size_type(_S_local_capacity)) { _M_data(_M_create(__dnew, size_type(0))); _M_capacity(__dnew); } else _M_use_local_data(); struct _Guard { constexpr explicit _Guard(basic_string* __s) : _M_guarded(__s) { } constexpr ~_Guard() { if (_M_guarded) _M_guarded->_M_dispose(); } basic_string* _M_guarded; } __guard(this); this->_S_copy_chars(_M_data(), __beg, __end); __guard._M_guarded = 0; _M_set_length(__dnew); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_construct(size_type __n, _CharT __c) { if (__n > size_type(_S_local_capacity)) { _M_data(_M_create(__n, size_type(0))); _M_capacity(__n); } else _M_use_local_data(); if (__n) this->_S_assign(_M_data(), __n, __c); _M_set_length(__n); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_assign(const basic_string& __str) { if (this != std::__addressof(__str)) { const size_type __rsize = __str.length(); const size_type __capacity = capacity(); if (__rsize > __capacity) { size_type __new_capacity = __rsize; pointer __tmp = _M_create(__new_capacity, __capacity); _M_dispose(); _M_data(__tmp); _M_capacity(__new_capacity); } if (__rsize) this->_S_copy(_M_data(), __str._M_data(), __rsize); _M_set_length(__rsize); } } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: reserve(size_type __res) { const size_type __capacity = capacity(); if (__res <= __capacity) return; pointer __tmp = _M_create(__res, __capacity); this->_S_copy(__tmp, _M_data(), length() + 1); _M_dispose(); _M_data(__tmp); _M_capacity(__res); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_mutate(size_type __pos, size_type __len1, const _CharT* __s, size_type __len2) { const size_type __how_much = length() - __pos - __len1; size_type __new_capacity = length() + __len2 - __len1; pointer __r = _M_create(__new_capacity, capacity()); if (__pos) this->_S_copy(__r, _M_data(), __pos); if (__s && __len2) this->_S_copy(__r + __pos, __s, __len2); if (__how_much) this->_S_copy(__r + __pos + __len2, _M_data() + __pos + __len1, __how_much); _M_dispose(); _M_data(__r); _M_capacity(__new_capacity); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: _M_erase(size_type __pos, size_type __n) { const size_type __how_much = length() - __pos - __n; if (__how_much && __n) this->_S_move(_M_data() + __pos, _M_data() + __pos + __n, __how_much); _M_set_length(length() - __n); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: reserve() { if (_M_is_local()) return; const size_type __length = length(); const size_type __capacity = _M_allocated_capacity; if (__length <= size_type(_S_local_capacity)) { this->_S_copy(_M_use_local_data(), _M_data(), __length + 1); _M_destroy(__capacity); _M_data(_M_local_data()); } else if (__length < __capacity) try { pointer __tmp = _S_allocate(_M_get_allocator(), __length + 1); this->_S_copy(__tmp, _M_data(), __length + 1); _M_dispose(); _M_data(__tmp); _M_capacity(__length); } catch (const __cxxabiv1::__forced_unwind&) { throw; } catch (...) { } } template<typename _CharT, typename _Traits, typename _Alloc> constexpr void basic_string<_CharT, _Traits, _Alloc>:: resize(size_type __n, _CharT __c) { const size_type __size = this->size(); if (__size < __n) this->append(__n - __size, __c); else if (__n < __size) this->_M_set_length(__n); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_append(const _CharT* __s, size_type __n) { const size_type __len = __n + this->size(); if (__len <= this->capacity()) { if (__n) this->_S_copy(this->_M_data() + this->size(), __s, __n); } else this->_M_mutate(this->size(), size_type(0), __s, __n); this->_M_set_length(__len); return *this; } template<typename _CharT, typename _Traits, typename _Alloc> template<typename _InputIterator> constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_dispatch(const_iterator __i1, const_iterator __i2, _InputIterator __k1, _InputIterator __k2, std::__false_type) { const basic_string __s(__k1, __k2, this->get_allocator()); const size_type __n1 = __i2 - __i1; return _M_replace(__i1 - begin(), __n1, __s._M_data(), __s.size()); } template<typename _CharT, typename _Traits, typename _Alloc> constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace_aux(size_type __pos1, size_type __n1, size_type __n2, _CharT __c) { _M_check_length(__n1, __n2, "basic_string::_M_replace_aux"); const size_type __old_size = this->size(); const size_type __new_size = __old_size + __n2 - __n1; if (__new_size <= this->capacity()) { pointer __p = this->_M_data() + __pos1; const size_type __how_much = __old_size - __pos1 - __n1; if (__how_much && __n1 != __n2) this->_S_move(__p + __n2, __p + __n1, __how_much); } else this->_M_mutate(__pos1, __n1, 0, __n2); if (__n2) this->_S_assign(this->_M_data() + __pos1, __n2, __c); this->_M_set_length(__new_size); return *this; } template<typename _CharT, typename _Traits, typename _Alloc> __attribute__((__noinline__, __noclone__, __cold__)) void basic_string<_CharT, _Traits, _Alloc>:: _M_replace_cold(pointer __p, size_type __len1, const _CharT* __s, const size_type __len2, const size_type __how_much) { if (__len2 && __len2 <= __len1) this->_S_move(__p, __s, __len2); if (__how_much && __len1 != __len2) this->_S_move(__p + __len2, __p + __len1, __how_much); if (__len2 > __len1) { if (__s + __len2 <= __p + __len1) this->_S_move(__p, __s, __len2); else if (__s >= __p + __len1) { const size_type __poff = (__s - __p) + (__len2 - __len1); this->_S_copy(__p, __p + __poff, __len2); } else { const size_type __nleft = (__p + __len1) - __s; this->_S_move(__p, __s, __nleft); this->_S_copy(__p + __nleft, __p + __len2, __len2 - __nleft); } } } template<typename _CharT, typename _Traits, typename _Alloc> constexpr basic_string<_CharT, _Traits, _Alloc>& basic_string<_CharT, _Traits, _Alloc>:: _M_replace(size_type __pos, size_type __len1, const _CharT* __s, const size_type __len2) { _M_check_length(__len1, __len2, "basic_string::_M_replace"); const size_type __old_size = this->size(); const size_type __new_size = __old_size + __len2 - __len1; if (__new_size <= this->capacity()) { pointer __p = this->_M_data() + __pos; const size_type __how_much = __old_size - __pos - __len1; if (std::is_constant_evaluated()) { auto __newp = _S_allocate(_M_get_allocator(), __new_size); _S_copy(__newp, this->_M_data(), __pos); _S_copy(__newp + __pos, __s, __len2); _S_copy(__newp + __pos + __len2, __p + __len1, __how_much); _S_copy(this->_M_data(), __newp, __new_size); this->_M_get_allocator().deallocate(__newp, __new_size); } else if (__builtin_expect(_M_disjunct(__s), true)) { if (__how_much && __len1 != __len2) this->_S_move(__p + __len2, __p + __len1, __how_much); if (__len2) this->_S_copy(__p, __s, __len2); } else _M_replace_cold(__p, __len1, __s, __len2, __how_much); } else this->_M_mutate(__pos, __len1, __s, __len2); this->_M_set_length(__new_size); return *this; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: copy(_CharT* __s, size_type __n, size_type __pos) const { _M_check(__pos, "basic_string::copy"); __n = _M_limit(__pos, __n); ; if (__n) _S_copy(__s, _M_data() + __pos, __n); return __n; } # 609 "/usr/include/c++/13/bits/basic_string.tcc" 3 template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; const size_type __size = this->size(); if (__n == 0) return __pos <= __size ? __pos : npos; if (__pos >= __size) return npos; const _CharT __elem0 = __s[0]; const _CharT* const __data = data(); const _CharT* __first = __data + __pos; const _CharT* const __last = __data + __size; size_type __len = __size - __pos; while (__len >= __n) { __first = traits_type::find(__first, __len - __n + 1, __elem0); if (!__first) return npos; if (traits_type::compare(__first, __s, __n) == 0) return __first - __data; __len = __last - ++__first; } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find(_CharT __c, size_type __pos) const noexcept { size_type __ret = npos; const size_type __size = this->size(); if (__pos < __size) { const _CharT* __data = _M_data(); const size_type __n = __size - __pos; const _CharT* __p = traits_type::find(__data + __pos, __n, __c); if (__p) __ret = __p - __data; } return __ret; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: rfind(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; const size_type __size = this->size(); if (__n <= __size) { __pos = std::min(size_type(__size - __n), __pos); const _CharT* __data = _M_data(); do { if (traits_type::compare(__data + __pos, __s, __n) == 0) return __pos; } while (__pos-- > 0); } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: rfind(_CharT __c, size_type __pos) const noexcept { size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; for (++__size; __size-- > 0; ) if (traits_type::eq(_M_data()[__size], __c)) return __size; } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; for (; __n && __pos < this->size(); ++__pos) { const _CharT* __p = traits_type::find(__s, __n, _M_data()[__pos]); if (__p) return __pos; } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->size(); if (__size && __n) { if (--__size > __pos) __size = __pos; do { if (traits_type::find(__s, __n, _M_data()[__size])) return __size; } while (__size-- != 0); } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; for (; __pos < this->size(); ++__pos) if (!traits_type::find(__s, __n, _M_data()[__pos])) return __pos; return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_first_not_of(_CharT __c, size_type __pos) const noexcept { for (; __pos < this->size(); ++__pos) if (!traits_type::eq(_M_data()[__pos], __c)) return __pos; return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_not_of(const _CharT* __s, size_type __pos, size_type __n) const noexcept { ; size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::find(__s, __n, _M_data()[__size])) return __size; } while (__size--); } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> constexpr typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>:: find_last_not_of(_CharT __c, size_type __pos) const noexcept { size_type __size = this->size(); if (__size) { if (--__size > __pos) __size = __pos; do { if (!traits_type::eq(_M_data()[__size], __c)) return __size; } while (__size--); } return npos; } template<typename _CharT, typename _Traits, typename _Alloc> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, basic_string<_CharT, _Traits, _Alloc>& __str) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __istream_type::ios_base __ios_base; typedef typename __istream_type::int_type __int_type; typedef typename __string_type::size_type __size_type; typedef ctype<_CharT> __ctype_type; typedef typename __ctype_type::ctype_base __ctype_base; __size_type __extracted = 0; typename __ios_base::iostate __err = __ios_base::goodbit; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { try { __str.erase(); _CharT __buf[128]; __size_type __len = 0; const streamsize __w = __in.width(); const __size_type __n = __w > 0 ? static_cast<__size_type>(__w) : __str.max_size(); const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const __int_type __eof = _Traits::eof(); __int_type __c = __in.rdbuf()->sgetc(); while (__extracted < __n && !_Traits::eq_int_type(__c, __eof) && !__ct.is(__ctype_base::space, _Traits::to_char_type(__c))) { if (__len == sizeof(__buf) / sizeof(_CharT)) { __str.append(__buf, sizeof(__buf) / sizeof(_CharT)); __len = 0; } __buf[__len++] = _Traits::to_char_type(__c); ++__extracted; __c = __in.rdbuf()->snextc(); } __str.append(__buf, __len); if (__extracted < __n && _Traits::eq_int_type(__c, __eof)) __err |= __ios_base::eofbit; __in.width(0); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(__ios_base::badbit); throw; } catch(...) { __in._M_setstate(__ios_base::badbit); } } if (!__extracted) __err |= __ios_base::failbit; if (__err) __in.setstate(__err); return __in; } template<typename _CharT, typename _Traits, typename _Alloc> basic_istream<_CharT, _Traits>& getline(basic_istream<_CharT, _Traits>& __in, basic_string<_CharT, _Traits, _Alloc>& __str, _CharT __delim) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef typename __istream_type::ios_base __ios_base; typedef typename __istream_type::int_type __int_type; typedef typename __string_type::size_type __size_type; __size_type __extracted = 0; const __size_type __n = __str.max_size(); typename __ios_base::iostate __err = __ios_base::goodbit; typename __istream_type::sentry __cerb(__in, true); if (__cerb) { try { __str.erase(); const __int_type __idelim = _Traits::to_int_type(__delim); const __int_type __eof = _Traits::eof(); __int_type __c = __in.rdbuf()->sgetc(); while (__extracted < __n && !_Traits::eq_int_type(__c, __eof) && !_Traits::eq_int_type(__c, __idelim)) { __str += _Traits::to_char_type(__c); ++__extracted; __c = __in.rdbuf()->snextc(); } if (_Traits::eq_int_type(__c, __eof)) __err |= __ios_base::eofbit; else if (_Traits::eq_int_type(__c, __idelim)) { ++__extracted; __in.rdbuf()->sbumpc(); } else __err |= __ios_base::failbit; } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(__ios_base::badbit); throw; } catch(...) { __in._M_setstate(__ios_base::badbit); } } if (!__extracted) __err |= __ios_base::failbit; if (__err) __in.setstate(__err); return __in; } # 971 "/usr/include/c++/13/bits/basic_string.tcc" 3 extern template void basic_string<char>::_M_replace_cold(char *, size_type, const char*, const size_type, const size_type); extern template basic_istream<char>& operator>>(basic_istream<char>&, string&); extern template basic_ostream<char>& operator<<(basic_ostream<char>&, const string&); extern template basic_istream<char>& getline(basic_istream<char>&, string&, char); extern template basic_istream<char>& getline(basic_istream<char>&, string&); # 997 "/usr/include/c++/13/bits/basic_string.tcc" 3 extern template void basic_string<wchar_t>::_M_replace_cold(wchar_t*, size_type, const wchar_t*, const size_type, const size_type); extern template basic_istream<wchar_t>& operator>>(basic_istream<wchar_t>&, wstring&); extern template basic_ostream<wchar_t>& operator<<(basic_ostream<wchar_t>&, const wstring&); extern template basic_istream<wchar_t>& getline(basic_istream<wchar_t>&, wstring&, wchar_t); extern template basic_istream<wchar_t>& getline(basic_istream<wchar_t>&, wstring&); } # 56 "/usr/include/c++/13/string" 2 3 # 1 "/usr/include/c++/13/bits/memory_resource.h" 1 3 # 33 "/usr/include/c++/13/bits/memory_resource.h" 3 # 34 "/usr/include/c++/13/bits/memory_resource.h" 3 # 1 "/usr/include/c++/13/cstddef" 1 3 # 42 "/usr/include/c++/13/cstddef" 3 # 43 "/usr/include/c++/13/cstddef" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 51 "/usr/include/c++/13/cstddef" 2 3 extern "C++" { namespace std { using ::max_align_t; } namespace std { enum class byte : unsigned char {}; template<typename _IntegerType> struct __byte_operand { }; template<> struct __byte_operand<bool> { using __type = byte; }; template<> struct __byte_operand<char> { using __type = byte; }; template<> struct __byte_operand<signed char> { using __type = byte; }; template<> struct __byte_operand<unsigned char> { using __type = byte; }; template<> struct __byte_operand<wchar_t> { using __type = byte; }; template<> struct __byte_operand<char8_t> { using __type = byte; }; template<> struct __byte_operand<char16_t> { using __type = byte; }; template<> struct __byte_operand<char32_t> { using __type = byte; }; template<> struct __byte_operand<short> { using __type = byte; }; template<> struct __byte_operand<unsigned short> { using __type = byte; }; template<> struct __byte_operand<int> { using __type = byte; }; template<> struct __byte_operand<unsigned int> { using __type = byte; }; template<> struct __byte_operand<long> { using __type = byte; }; template<> struct __byte_operand<unsigned long> { using __type = byte; }; template<> struct __byte_operand<long long> { using __type = byte; }; template<> struct __byte_operand<unsigned long long> { using __type = byte; }; template<> struct __byte_operand<__int128> { using __type = byte; }; template<> struct __byte_operand<unsigned __int128> { using __type = byte; }; # 108 "/usr/include/c++/13/cstddef" 3 template<typename _IntegerType> struct __byte_operand<const _IntegerType> : __byte_operand<_IntegerType> { }; template<typename _IntegerType> struct __byte_operand<volatile _IntegerType> : __byte_operand<_IntegerType> { }; template<typename _IntegerType> struct __byte_operand<const volatile _IntegerType> : __byte_operand<_IntegerType> { }; template<typename _IntegerType> using __byte_op_t = typename __byte_operand<_IntegerType>::__type; template<typename _IntegerType> [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType> operator<<(byte __b, _IntegerType __shift) noexcept { return (byte)(unsigned char)((unsigned)__b << __shift); } template<typename _IntegerType> [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType> operator>>(byte __b, _IntegerType __shift) noexcept { return (byte)(unsigned char)((unsigned)__b >> __shift); } [[__gnu__::__always_inline__]] constexpr byte operator|(byte __l, byte __r) noexcept { return (byte)(unsigned char)((unsigned)__l | (unsigned)__r); } [[__gnu__::__always_inline__]] constexpr byte operator&(byte __l, byte __r) noexcept { return (byte)(unsigned char)((unsigned)__l & (unsigned)__r); } [[__gnu__::__always_inline__]] constexpr byte operator^(byte __l, byte __r) noexcept { return (byte)(unsigned char)((unsigned)__l ^ (unsigned)__r); } [[__gnu__::__always_inline__]] constexpr byte operator~(byte __b) noexcept { return (byte)(unsigned char)~(unsigned)__b; } template<typename _IntegerType> [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType>& operator<<=(byte& __b, _IntegerType __shift) noexcept { return __b = __b << __shift; } template<typename _IntegerType> [[__gnu__::__always_inline__]] constexpr __byte_op_t<_IntegerType>& operator>>=(byte& __b, _IntegerType __shift) noexcept { return __b = __b >> __shift; } [[__gnu__::__always_inline__]] constexpr byte& operator|=(byte& __l, byte __r) noexcept { return __l = __l | __r; } [[__gnu__::__always_inline__]] constexpr byte& operator&=(byte& __l, byte __r) noexcept { return __l = __l & __r; } [[__gnu__::__always_inline__]] constexpr byte& operator^=(byte& __l, byte __r) noexcept { return __l = __l ^ __r; } template<typename _IntegerType> [[nodiscard,__gnu__::__always_inline__]] constexpr _IntegerType to_integer(__byte_op_t<_IntegerType> __b) noexcept { return _IntegerType(__b); } } } # 39 "/usr/include/c++/13/bits/memory_resource.h" 2 3 # 1 "/usr/include/c++/13/bits/uses_allocator.h" 1 3 # 40 "/usr/include/c++/13/bits/uses_allocator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __erased_type { }; template<typename _Alloc, typename _Tp> using __is_erased_or_convertible = __or_<is_convertible<_Alloc, _Tp>, is_same<_Tp, __erased_type>>; struct allocator_arg_t { explicit allocator_arg_t() = default; }; inline constexpr allocator_arg_t allocator_arg = allocator_arg_t(); template<typename _Tp, typename _Alloc, typename = __void_t<>> struct __uses_allocator_helper : false_type { }; template<typename _Tp, typename _Alloc> struct __uses_allocator_helper<_Tp, _Alloc, __void_t<typename _Tp::allocator_type>> : __is_erased_or_convertible<_Alloc, typename _Tp::allocator_type>::type { }; template<typename _Tp, typename _Alloc> struct uses_allocator : __uses_allocator_helper<_Tp, _Alloc>::type { }; struct __uses_alloc_base { }; struct __uses_alloc0 : __uses_alloc_base { struct _Sink { void constexpr operator=(const void*) { } } _M_a; }; template<typename _Alloc> struct __uses_alloc1 : __uses_alloc_base { const _Alloc* _M_a; }; template<typename _Alloc> struct __uses_alloc2 : __uses_alloc_base { const _Alloc* _M_a; }; template<bool, typename _Tp, typename _Alloc, typename... _Args> struct __uses_alloc; template<typename _Tp, typename _Alloc, typename... _Args> struct __uses_alloc<true, _Tp, _Alloc, _Args...> : __conditional_t< is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>::value, __uses_alloc1<_Alloc>, __uses_alloc2<_Alloc>> { static_assert(__or_< is_constructible<_Tp, allocator_arg_t, const _Alloc&, _Args...>, is_constructible<_Tp, _Args..., const _Alloc&>>::value, "construction with an allocator must be possible" " if uses_allocator is true"); }; template<typename _Tp, typename _Alloc, typename... _Args> struct __uses_alloc<false, _Tp, _Alloc, _Args...> : __uses_alloc0 { }; template<typename _Tp, typename _Alloc, typename... _Args> using __uses_alloc_t = __uses_alloc<uses_allocator<_Tp, _Alloc>::value, _Tp, _Alloc, _Args...>; template<typename _Tp, typename _Alloc, typename... _Args> constexpr inline __uses_alloc_t<_Tp, _Alloc, _Args...> __use_alloc(const _Alloc& __a) { __uses_alloc_t<_Tp, _Alloc, _Args...> __ret; __ret._M_a = std::__addressof(__a); return __ret; } template<typename _Tp, typename _Alloc, typename... _Args> void __use_alloc(const _Alloc&&) = delete; template <typename _Tp, typename _Alloc> inline constexpr bool uses_allocator_v = uses_allocator<_Tp, _Alloc>::value; template<template<typename...> class _Predicate, typename _Tp, typename _Alloc, typename... _Args> struct __is_uses_allocator_predicate : __conditional_t<uses_allocator<_Tp, _Alloc>::value, __or_<_Predicate<_Tp, allocator_arg_t, _Alloc, _Args...>, _Predicate<_Tp, _Args..., _Alloc>>, _Predicate<_Tp, _Args...>> { }; template<typename _Tp, typename _Alloc, typename... _Args> struct __is_uses_allocator_constructible : __is_uses_allocator_predicate<is_constructible, _Tp, _Alloc, _Args...> { }; template<typename _Tp, typename _Alloc, typename... _Args> inline constexpr bool __is_uses_allocator_constructible_v = __is_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; template<typename _Tp, typename _Alloc, typename... _Args> struct __is_nothrow_uses_allocator_constructible : __is_uses_allocator_predicate<is_nothrow_constructible, _Tp, _Alloc, _Args...> { }; template<typename _Tp, typename _Alloc, typename... _Args> inline constexpr bool __is_nothrow_uses_allocator_constructible_v = __is_nothrow_uses_allocator_constructible<_Tp, _Alloc, _Args...>::value; template<typename _Tp, typename... _Args> void __uses_allocator_construct_impl(__uses_alloc0 __a, _Tp* __ptr, _Args&&... __args) { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)...); } template<typename _Tp, typename _Alloc, typename... _Args> void __uses_allocator_construct_impl(__uses_alloc1<_Alloc> __a, _Tp* __ptr, _Args&&... __args) { ::new ((void*)__ptr) _Tp(allocator_arg, *__a._M_a, std::forward<_Args>(__args)...); } template<typename _Tp, typename _Alloc, typename... _Args> void __uses_allocator_construct_impl(__uses_alloc2<_Alloc> __a, _Tp* __ptr, _Args&&... __args) { ::new ((void*)__ptr) _Tp(std::forward<_Args>(__args)..., *__a._M_a); } template<typename _Tp, typename _Alloc, typename... _Args> void __uses_allocator_construct(const _Alloc& __a, _Tp* __ptr, _Args&&... __args) { std::__uses_allocator_construct_impl( std::__use_alloc<_Tp, _Alloc, _Args...>(__a), __ptr, std::forward<_Args>(__args)...); } } # 41 "/usr/include/c++/13/bits/memory_resource.h" 2 3 # 1 "/usr/include/c++/13/bits/uses_allocator_args.h" 1 3 # 33 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 # 34 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 # 1 "/usr/include/c++/13/tuple" 1 3 # 32 "/usr/include/c++/13/tuple" 3 # 33 "/usr/include/c++/13/tuple" 3 # 44 "/usr/include/c++/13/tuple" 3 # 1 "/usr/include/c++/13/bits/ranges_util.h" 1 3 # 38 "/usr/include/c++/13/bits/ranges_util.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { namespace __detail { template<typename _Range> concept __simple_view = view<_Range> && range<const _Range> && same_as<iterator_t<_Range>, iterator_t<const _Range>> && same_as<sentinel_t<_Range>, sentinel_t<const _Range>>; template<typename _It> concept __has_arrow = input_iterator<_It> && (is_pointer_v<_It> || requires(_It __it) { __it.operator->(); }); using std::__detail::__different_from; } template<typename _Derived> requires is_class_v<_Derived> && same_as<_Derived, remove_cv_t<_Derived>> class view_interface { private: constexpr _Derived& _M_derived() noexcept { static_assert(derived_from<_Derived, view_interface<_Derived>>); static_assert(view<_Derived>); return static_cast<_Derived&>(*this); } constexpr const _Derived& _M_derived() const noexcept { static_assert(derived_from<_Derived, view_interface<_Derived>>); static_assert(view<_Derived>); return static_cast<const _Derived&>(*this); } static constexpr bool _S_bool(bool) noexcept; template<typename _Tp> static constexpr bool _S_empty(_Tp& __t) noexcept(noexcept(_S_bool(ranges::begin(__t) == ranges::end(__t)))) { return ranges::begin(__t) == ranges::end(__t); } template<typename _Tp> static constexpr auto _S_size(_Tp& __t) noexcept(noexcept(ranges::end(__t) - ranges::begin(__t))) { return ranges::end(__t) - ranges::begin(__t); } public: constexpr bool empty() noexcept(noexcept(_S_empty(_M_derived()))) requires forward_range<_Derived> && (!sized_range<_Derived>) { return _S_empty(_M_derived()); } constexpr bool empty() noexcept(noexcept(ranges::size(_M_derived()) == 0)) requires sized_range<_Derived> { return ranges::size(_M_derived()) == 0; } constexpr bool empty() const noexcept(noexcept(_S_empty(_M_derived()))) requires forward_range<const _Derived> && (!sized_range<const _Derived>) { return _S_empty(_M_derived()); } constexpr bool empty() const noexcept(noexcept(ranges::size(_M_derived()) == 0)) requires sized_range<const _Derived> { return ranges::size(_M_derived()) == 0; } constexpr explicit operator bool() noexcept(noexcept(ranges::empty(_M_derived()))) requires requires { ranges::empty(_M_derived()); } { return !ranges::empty(_M_derived()); } constexpr explicit operator bool() const noexcept(noexcept(ranges::empty(_M_derived()))) requires requires { ranges::empty(_M_derived()); } { return !ranges::empty(_M_derived()); } constexpr auto data() noexcept(noexcept(ranges::begin(_M_derived()))) requires contiguous_iterator<iterator_t<_Derived>> { return std::to_address(ranges::begin(_M_derived())); } constexpr auto data() const noexcept(noexcept(ranges::begin(_M_derived()))) requires range<const _Derived> && contiguous_iterator<iterator_t<const _Derived>> { return std::to_address(ranges::begin(_M_derived())); } constexpr auto size() noexcept(noexcept(_S_size(_M_derived()))) requires forward_range<_Derived> && sized_sentinel_for<sentinel_t<_Derived>, iterator_t<_Derived>> { return _S_size(_M_derived()); } constexpr auto size() const noexcept(noexcept(_S_size(_M_derived()))) requires forward_range<const _Derived> && sized_sentinel_for<sentinel_t<const _Derived>, iterator_t<const _Derived>> { return _S_size(_M_derived()); } constexpr decltype(auto) front() requires forward_range<_Derived> { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return *ranges::begin(_M_derived()); } constexpr decltype(auto) front() const requires forward_range<const _Derived> { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return *ranges::begin(_M_derived()); } constexpr decltype(auto) back() requires bidirectional_range<_Derived> && common_range<_Derived> { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return *ranges::prev(ranges::end(_M_derived())); } constexpr decltype(auto) back() const requires bidirectional_range<const _Derived> && common_range<const _Derived> { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return *ranges::prev(ranges::end(_M_derived())); } template<random_access_range _Range = _Derived> constexpr decltype(auto) operator[](range_difference_t<_Range> __n) { return ranges::begin(_M_derived())[__n]; } template<random_access_range _Range = const _Derived> constexpr decltype(auto) operator[](range_difference_t<_Range> __n) const { return ranges::begin(_M_derived())[__n]; } # 211 "/usr/include/c++/13/bits/ranges_util.h" 3 }; namespace __detail { template<typename _From, typename _To> concept __uses_nonqualification_pointer_conversion = is_pointer_v<_From> && is_pointer_v<_To> && !convertible_to<remove_pointer_t<_From>(*)[], remove_pointer_t<_To>(*)[]>; template<typename _From, typename _To> concept __convertible_to_non_slicing = convertible_to<_From, _To> && !__uses_nonqualification_pointer_conversion<decay_t<_From>, decay_t<_To>>; template<typename _Tp> concept __pair_like = !is_reference_v<_Tp> && requires(_Tp __t) { typename tuple_size<_Tp>::type; requires derived_from<tuple_size<_Tp>, integral_constant<size_t, 2>>; typename tuple_element_t<0, remove_const_t<_Tp>>; typename tuple_element_t<1, remove_const_t<_Tp>>; { get<0>(__t) } -> convertible_to<const tuple_element_t<0, _Tp>&>; { get<1>(__t) } -> convertible_to<const tuple_element_t<1, _Tp>&>; }; template<typename _Tp, typename _Up, typename _Vp> concept __pair_like_convertible_from = !range<_Tp> && __pair_like<_Tp> && constructible_from<_Tp, _Up, _Vp> && __convertible_to_non_slicing<_Up, tuple_element_t<0, _Tp>> && convertible_to<_Vp, tuple_element_t<1, _Tp>>; } namespace views { struct _Drop; } enum class subrange_kind : bool { unsized, sized }; template<input_or_output_iterator _It, sentinel_for<_It> _Sent = _It, subrange_kind _Kind = sized_sentinel_for<_Sent, _It> ? subrange_kind::sized : subrange_kind::unsized> requires (_Kind == subrange_kind::sized || !sized_sentinel_for<_Sent, _It>) class subrange : public view_interface<subrange<_It, _Sent, _Kind>> { private: static constexpr bool _S_store_size = _Kind == subrange_kind::sized && !sized_sentinel_for<_Sent, _It>; friend struct views::_Drop; _It _M_begin = _It(); [[no_unique_address]] _Sent _M_end = _Sent(); using __size_type = __detail::__make_unsigned_like_t<iter_difference_t<_It>>; template<typename, bool = _S_store_size> struct _Size { }; template<typename _Tp> struct _Size<_Tp, true> { _Tp _M_size; }; [[no_unique_address]] _Size<__size_type> _M_size = {}; public: subrange() requires default_initializable<_It> = default; constexpr subrange(__detail::__convertible_to_non_slicing<_It> auto __i, _Sent __s) noexcept(is_nothrow_constructible_v<_It, decltype(__i)> && is_nothrow_constructible_v<_Sent, _Sent&>) requires (!_S_store_size) : _M_begin(std::move(__i)), _M_end(__s) { } constexpr subrange(__detail::__convertible_to_non_slicing<_It> auto __i, _Sent __s, __size_type __n) noexcept(is_nothrow_constructible_v<_It, decltype(__i)> && is_nothrow_constructible_v<_Sent, _Sent&>) requires (_Kind == subrange_kind::sized) : _M_begin(std::move(__i)), _M_end(__s) { if constexpr (_S_store_size) _M_size._M_size = __n; } template<__detail::__different_from<subrange> _Rng> requires borrowed_range<_Rng> && __detail::__convertible_to_non_slicing<iterator_t<_Rng>, _It> && convertible_to<sentinel_t<_Rng>, _Sent> constexpr subrange(_Rng&& __r) noexcept(noexcept(subrange(__r, ranges::size(__r)))) requires _S_store_size && sized_range<_Rng> : subrange(__r, ranges::size(__r)) { } template<__detail::__different_from<subrange> _Rng> requires borrowed_range<_Rng> && __detail::__convertible_to_non_slicing<iterator_t<_Rng>, _It> && convertible_to<sentinel_t<_Rng>, _Sent> constexpr subrange(_Rng&& __r) noexcept(noexcept(subrange(ranges::begin(__r), ranges::end(__r)))) requires (!_S_store_size) : subrange(ranges::begin(__r), ranges::end(__r)) { } template<borrowed_range _Rng> requires __detail::__convertible_to_non_slicing<iterator_t<_Rng>, _It> && convertible_to<sentinel_t<_Rng>, _Sent> constexpr subrange(_Rng&& __r, __size_type __n) noexcept(noexcept(subrange(ranges::begin(__r), ranges::end(__r), __n))) requires (_Kind == subrange_kind::sized) : subrange{ranges::begin(__r), ranges::end(__r), __n} { } template<__detail::__different_from<subrange> _PairLike> requires __detail::__pair_like_convertible_from<_PairLike, const _It&, const _Sent&> constexpr operator _PairLike() const { return _PairLike(_M_begin, _M_end); } constexpr _It begin() const requires copyable<_It> { return _M_begin; } [[nodiscard]] constexpr _It begin() requires (!copyable<_It>) { return std::move(_M_begin); } constexpr _Sent end() const { return _M_end; } constexpr bool empty() const { return _M_begin == _M_end; } constexpr __size_type size() const requires (_Kind == subrange_kind::sized) { if constexpr (_S_store_size) return _M_size._M_size; else return __detail::__to_unsigned_like(_M_end - _M_begin); } [[nodiscard]] constexpr subrange next(iter_difference_t<_It> __n = 1) const & requires forward_iterator<_It> { auto __tmp = *this; __tmp.advance(__n); return __tmp; } [[nodiscard]] constexpr subrange next(iter_difference_t<_It> __n = 1) && { advance(__n); return std::move(*this); } [[nodiscard]] constexpr subrange prev(iter_difference_t<_It> __n = 1) const requires bidirectional_iterator<_It> { auto __tmp = *this; __tmp.advance(-__n); return __tmp; } constexpr subrange& advance(iter_difference_t<_It> __n) { if constexpr (bidirectional_iterator<_It>) if (__n < 0) { ranges::advance(_M_begin, __n); if constexpr (_S_store_size) _M_size._M_size += __detail::__to_unsigned_like(-__n); return *this; } do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); auto __d = __n - ranges::advance(_M_begin, __n, _M_end); if constexpr (_S_store_size) _M_size._M_size -= __detail::__to_unsigned_like(__d); return *this; } }; template<input_or_output_iterator _It, sentinel_for<_It> _Sent> subrange(_It, _Sent) -> subrange<_It, _Sent>; template<input_or_output_iterator _It, sentinel_for<_It> _Sent> subrange(_It, _Sent, __detail::__make_unsigned_like_t<iter_difference_t<_It>>) -> subrange<_It, _Sent, subrange_kind::sized>; template<borrowed_range _Rng> subrange(_Rng&&) -> subrange<iterator_t<_Rng>, sentinel_t<_Rng>, (sized_range<_Rng> || sized_sentinel_for<sentinel_t<_Rng>, iterator_t<_Rng>>) ? subrange_kind::sized : subrange_kind::unsized>; template<borrowed_range _Rng> subrange(_Rng&&, __detail::__make_unsigned_like_t<range_difference_t<_Rng>>) -> subrange<iterator_t<_Rng>, sentinel_t<_Rng>, subrange_kind::sized>; template<size_t _Num, class _It, class _Sent, subrange_kind _Kind> requires (_Num < 2) constexpr auto get(const subrange<_It, _Sent, _Kind>& __r) { if constexpr (_Num == 0) return __r.begin(); else return __r.end(); } template<size_t _Num, class _It, class _Sent, subrange_kind _Kind> requires (_Num < 2) constexpr auto get(subrange<_It, _Sent, _Kind>&& __r) { if constexpr (_Num == 0) return __r.begin(); else return __r.end(); } template<typename _It, typename _Sent, subrange_kind _Kind> inline constexpr bool enable_borrowed_range<subrange<_It, _Sent, _Kind>> = true; template<range _Range> using borrowed_subrange_t = __conditional_t<borrowed_range<_Range>, subrange<iterator_t<_Range>>, dangling>; } namespace ranges { struct __find_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity> requires indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp*> constexpr _Iter operator()(_Iter __first, _Sent __last, const _Tp& __value, _Proj __proj = {}) const { while (__first != __last && !(std::__invoke(__proj, *__first) == __value)) ++__first; return __first; } template<input_range _Range, typename _Tp, typename _Proj = identity> requires indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp*> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__proj)); } }; inline constexpr __find_fn find{}; struct __find_if_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { while (__first != __last && !(bool)std::__invoke(__pred, std::__invoke(__proj, *__first))) ++__first; return __first; } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __find_if_fn find_if{}; struct __find_if_not_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { while (__first != __last && (bool)std::__invoke(__pred, std::__invoke(__proj, *__first))) ++__first; return __first; } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __find_if_not_fn find_if_not{}; template<typename _Iter1, typename _Iter2> struct in_in_result { [[no_unique_address]] _Iter1 in1; [[no_unique_address]] _Iter2 in2; template<typename _IIter1, typename _IIter2> requires convertible_to<const _Iter1&, _IIter1> && convertible_to<const _Iter2&, _IIter2> constexpr operator in_in_result<_IIter1, _IIter2>() const & { return {in1, in2}; } template<typename _IIter1, typename _IIter2> requires convertible_to<_Iter1, _IIter1> && convertible_to<_Iter2, _IIter2> constexpr operator in_in_result<_IIter1, _IIter2>() && { return {std::move(in1), std::move(in2)}; } }; template<typename _Iter1, typename _Iter2> using mismatch_result = in_in_result<_Iter1, _Iter2>; struct __mismatch_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr mismatch_result<_Iter1, _Iter2> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2 && (bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) { ++__first1; ++__first2; } return { std::move(__first1), std::move(__first2) }; } template<input_range _Range1, input_range _Range2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<iterator_t<_Range1>, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr mismatch_result<iterator_t<_Range1>, iterator_t<_Range2>> operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __mismatch_fn mismatch{}; struct __search_fn { template<forward_iterator _Iter1, sentinel_for<_Iter1> _Sent1, forward_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr subrange<_Iter1> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if (__first1 == __last1 || __first2 == __last2) return {__first1, __first1}; for (;;) { for (;;) { if (__first1 == __last1) return {__first1, __first1}; if (std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) break; ++__first1; } auto __cur1 = __first1; auto __cur2 = __first2; for (;;) { if (++__cur2 == __last2) return {__first1, ++__cur1}; if (++__cur1 == __last1) return {__cur1, __cur1}; if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__cur1), std::__invoke(__proj2, *__cur2))) { ++__first1; break; } } } } template<forward_range _Range1, forward_range _Range2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<iterator_t<_Range1>, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr borrowed_subrange_t<_Range1> operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __search_fn search{}; struct __min_fn { template<typename _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr const _Tp& operator()(const _Tp& __a, const _Tp& __b, _Comp __comp = {}, _Proj __proj = {}) const { if (std::__invoke(__comp, std::__invoke(__proj, __b), std::__invoke(__proj, __a))) return __b; else return __a; } template<input_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> requires indirectly_copyable_storable<iterator_t<_Range>, range_value_t<_Range>*> constexpr range_value_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { auto __first = ranges::begin(__r); auto __last = ranges::end(__r); do { if (std::__is_constant_evaluated() && !bool(__first != __last)) __builtin_unreachable(); } while (false); auto __result = *__first; while (++__first != __last) { auto __tmp = *__first; if (std::__invoke(__comp, std::__invoke(__proj, __tmp), std::__invoke(__proj, __result))) __result = std::move(__tmp); } return __result; } template<copyable _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr _Tp operator()(initializer_list<_Tp> __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::subrange(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __min_fn min{}; struct __adjacent_find_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_binary_predicate<projected<_Iter, _Proj>, projected<_Iter, _Proj>> _Pred = ranges::equal_to> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred = {}, _Proj __proj = {}) const { if (__first == __last) return __first; auto __next = __first; for (; ++__next != __last; __first = __next) { if (std::__invoke(__pred, std::__invoke(__proj, *__first), std::__invoke(__proj, *__next))) return __first; } return __next; } template<forward_range _Range, typename _Proj = identity, indirect_binary_predicate< projected<iterator_t<_Range>, _Proj>, projected<iterator_t<_Range>, _Proj>> _Pred = ranges::equal_to> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __adjacent_find_fn adjacent_find{}; } using ranges::get; template<typename _Iter, typename _Sent, ranges::subrange_kind _Kind> struct tuple_size<ranges::subrange<_Iter, _Sent, _Kind>> : integral_constant<size_t, 2> { }; template<typename _Iter, typename _Sent, ranges::subrange_kind _Kind> struct tuple_element<0, ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Iter; }; template<typename _Iter, typename _Sent, ranges::subrange_kind _Kind> struct tuple_element<1, ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Sent; }; template<typename _Iter, typename _Sent, ranges::subrange_kind _Kind> struct tuple_element<0, const ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Iter; }; template<typename _Iter, typename _Sent, ranges::subrange_kind _Kind> struct tuple_element<1, const ranges::subrange<_Iter, _Sent, _Kind>> { using type = _Sent; }; } # 45 "/usr/include/c++/13/tuple" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename... _Elements> class tuple; template<typename _Tp> struct __is_empty_non_tuple : is_empty<_Tp> { }; template<typename _El0, typename... _El> struct __is_empty_non_tuple<tuple<_El0, _El...>> : false_type { }; template<typename _Tp> using __empty_not_final = __conditional_t<__is_final(_Tp), false_type, __is_empty_non_tuple<_Tp>>; template<size_t _Idx, typename _Head, bool = __empty_not_final<_Head>::value> struct _Head_base; template<size_t _Idx, typename _Head> struct _Head_base<_Idx, _Head, true> { constexpr _Head_base() : _M_head_impl() { } constexpr _Head_base(const _Head& __h) : _M_head_impl(__h) { } constexpr _Head_base(const _Head_base&) = default; constexpr _Head_base(_Head_base&&) = default; template<typename _UHead> constexpr _Head_base(_UHead&& __h) : _M_head_impl(std::forward<_UHead>(__h)) { } constexpr _Head_base(allocator_arg_t, __uses_alloc0) : _M_head_impl() { } template<typename _Alloc> constexpr _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) : _M_head_impl(allocator_arg, *__a._M_a) { } template<typename _Alloc> constexpr _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) : _M_head_impl(*__a._M_a) { } template<typename _UHead> constexpr _Head_base(__uses_alloc0, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead)) { } template<typename _Alloc, typename _UHead> constexpr _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) { } template<typename _Alloc, typename _UHead> constexpr _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } static constexpr _Head& _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } static constexpr const _Head& _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } [[__no_unique_address__]] _Head _M_head_impl; }; # 187 "/usr/include/c++/13/tuple" 3 template<size_t _Idx, typename _Head> struct _Head_base<_Idx, _Head, false> { constexpr _Head_base() : _M_head_impl() { } constexpr _Head_base(const _Head& __h) : _M_head_impl(__h) { } constexpr _Head_base(const _Head_base&) = default; constexpr _Head_base(_Head_base&&) = default; template<typename _UHead> constexpr _Head_base(_UHead&& __h) : _M_head_impl(std::forward<_UHead>(__h)) { } constexpr _Head_base(allocator_arg_t, __uses_alloc0) : _M_head_impl() { } template<typename _Alloc> constexpr _Head_base(allocator_arg_t, __uses_alloc1<_Alloc> __a) : _M_head_impl(allocator_arg, *__a._M_a) { } template<typename _Alloc> constexpr _Head_base(allocator_arg_t, __uses_alloc2<_Alloc> __a) : _M_head_impl(*__a._M_a) { } template<typename _UHead> constexpr _Head_base(__uses_alloc0, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead)) { } template<typename _Alloc, typename _UHead> constexpr _Head_base(__uses_alloc1<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(allocator_arg, *__a._M_a, std::forward<_UHead>(__uhead)) { } template<typename _Alloc, typename _UHead> constexpr _Head_base(__uses_alloc2<_Alloc> __a, _UHead&& __uhead) : _M_head_impl(std::forward<_UHead>(__uhead), *__a._M_a) { } static constexpr _Head& _M_head(_Head_base& __b) noexcept { return __b._M_head_impl; } static constexpr const _Head& _M_head(const _Head_base& __b) noexcept { return __b._M_head_impl; } _Head _M_head_impl; }; # 250 "/usr/include/c++/13/tuple" 3 template<size_t _Idx, typename... _Elements> struct _Tuple_impl; template<size_t _Idx, typename _Head, typename... _Tail> struct _Tuple_impl<_Idx, _Head, _Tail...> : public _Tuple_impl<_Idx + 1, _Tail...>, private _Head_base<_Idx, _Head> { template<size_t, typename...> friend struct _Tuple_impl; typedef _Tuple_impl<_Idx + 1, _Tail...> _Inherited; typedef _Head_base<_Idx, _Head> _Base; static constexpr _Head& _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } static constexpr const _Head& _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } static constexpr _Inherited& _M_tail(_Tuple_impl& __t) noexcept { return __t; } static constexpr const _Inherited& _M_tail(const _Tuple_impl& __t) noexcept { return __t; } constexpr _Tuple_impl() : _Inherited(), _Base() { } explicit constexpr _Tuple_impl(const _Head& __head, const _Tail&... __tail) : _Inherited(__tail...), _Base(__head) { } template<typename _UHead, typename... _UTail, typename = __enable_if_t<sizeof...(_Tail) == sizeof...(_UTail)>> explicit constexpr _Tuple_impl(_UHead&& __head, _UTail&&... __tail) : _Inherited(std::forward<_UTail>(__tail)...), _Base(std::forward<_UHead>(__head)) { } constexpr _Tuple_impl(const _Tuple_impl&) = default; _Tuple_impl& operator=(const _Tuple_impl&) = delete; _Tuple_impl(_Tuple_impl&&) = default; template<typename... _UElements> constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UElements...>& __in) : _Inherited(_Tuple_impl<_Idx, _UElements...>::_M_tail(__in)), _Base(_Tuple_impl<_Idx, _UElements...>::_M_head(__in)) { } template<typename _UHead, typename... _UTails> constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) : _Inherited(std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } # 338 "/usr/include/c++/13/tuple" 3 template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) : _Inherited(__tag, __a), _Base(__tag, __use_alloc<_Head>(__a)) { } template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Head& __head, const _Tail&... __tail) : _Inherited(__tag, __a, __tail...), _Base(__use_alloc<_Head, _Alloc, _Head>(__a), __head) { } template<typename _Alloc, typename _UHead, typename... _UTail, typename = __enable_if_t<sizeof...(_Tail) == sizeof...(_UTail)>> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _UHead&& __head, _UTail&&... __tail) : _Inherited(__tag, __a, std::forward<_UTail>(__tail)...), _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead>(__head)) { } template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl& __in) : _Inherited(__tag, __a, _M_tail(__in)), _Base(__use_alloc<_Head, _Alloc, _Head>(__a), _M_head(__in)) { } template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl&& __in) : _Inherited(__tag, __a, std::move(_M_tail(__in))), _Base(__use_alloc<_Head, _Alloc, _Head>(__a), std::forward<_Head>(_M_head(__in))) { } template<typename _Alloc, typename _UHead, typename... _UTails> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl<_Idx, _UHead, _UTails...>& __in) : _Inherited(__tag, __a, _Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in)), _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), _Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)) { } template<typename _Alloc, typename _UHead, typename... _UTails> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl<_Idx, _UHead, _UTails...>&& __in) : _Inherited(__tag, __a, std::move (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))), _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in))) { } # 424 "/usr/include/c++/13/tuple" 3 template<typename... _UElements> constexpr void _M_assign(const _Tuple_impl<_Idx, _UElements...>& __in) { _M_head(*this) = _Tuple_impl<_Idx, _UElements...>::_M_head(__in); _M_tail(*this)._M_assign( _Tuple_impl<_Idx, _UElements...>::_M_tail(__in)); } template<typename _UHead, typename... _UTails> constexpr void _M_assign(_Tuple_impl<_Idx, _UHead, _UTails...>&& __in) { _M_head(*this) = std::forward<_UHead> (_Tuple_impl<_Idx, _UHead, _UTails...>::_M_head(__in)); _M_tail(*this)._M_assign( std::move(_Tuple_impl<_Idx, _UHead, _UTails...>::_M_tail(__in))); } # 466 "/usr/include/c++/13/tuple" 3 protected: constexpr void _M_swap(_Tuple_impl& __in) { using std::swap; swap(_M_head(*this), _M_head(__in)); _Inherited::_M_swap(_M_tail(__in)); } # 485 "/usr/include/c++/13/tuple" 3 }; template<size_t _Idx, typename _Head> struct _Tuple_impl<_Idx, _Head> : private _Head_base<_Idx, _Head> { template<size_t, typename...> friend struct _Tuple_impl; typedef _Head_base<_Idx, _Head> _Base; static constexpr _Head& _M_head(_Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } static constexpr const _Head& _M_head(const _Tuple_impl& __t) noexcept { return _Base::_M_head(__t); } constexpr _Tuple_impl() : _Base() { } explicit constexpr _Tuple_impl(const _Head& __head) : _Base(__head) { } template<typename _UHead> explicit constexpr _Tuple_impl(_UHead&& __head) : _Base(std::forward<_UHead>(__head)) { } constexpr _Tuple_impl(const _Tuple_impl&) = default; _Tuple_impl& operator=(const _Tuple_impl&) = delete; constexpr _Tuple_impl(_Tuple_impl&& __in) noexcept(is_nothrow_move_constructible<_Head>::value) : _Base(static_cast<_Base&&>(__in)) { } template<typename _UHead> constexpr _Tuple_impl(const _Tuple_impl<_Idx, _UHead>& __in) : _Base(_Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } template<typename _UHead> constexpr _Tuple_impl(_Tuple_impl<_Idx, _UHead>&& __in) : _Base(std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) { } # 559 "/usr/include/c++/13/tuple" 3 template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a) : _Base(__tag, __use_alloc<_Head>(__a)) { } template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Head& __head) : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), __head) { } template<typename _Alloc, typename _UHead> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _UHead&& __head) : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead>(__head)) { } template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl& __in) : _Base(__use_alloc<_Head, _Alloc, const _Head&>(__a), _M_head(__in)) { } template<typename _Alloc> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl&& __in) : _Base(__use_alloc<_Head, _Alloc, _Head>(__a), std::forward<_Head>(_M_head(__in))) { } template<typename _Alloc, typename _UHead> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, const _Tuple_impl<_Idx, _UHead>& __in) : _Base(__use_alloc<_Head, _Alloc, const _UHead&>(__a), _Tuple_impl<_Idx, _UHead>::_M_head(__in)) { } template<typename _Alloc, typename _UHead> constexpr _Tuple_impl(allocator_arg_t __tag, const _Alloc& __a, _Tuple_impl<_Idx, _UHead>&& __in) : _Base(__use_alloc<_Head, _Alloc, _UHead>(__a), std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in))) { } # 629 "/usr/include/c++/13/tuple" 3 template<typename _UHead> constexpr void _M_assign(const _Tuple_impl<_Idx, _UHead>& __in) { _M_head(*this) = _Tuple_impl<_Idx, _UHead>::_M_head(__in); } template<typename _UHead> constexpr void _M_assign(_Tuple_impl<_Idx, _UHead>&& __in) { _M_head(*this) = std::forward<_UHead>(_Tuple_impl<_Idx, _UHead>::_M_head(__in)); } # 663 "/usr/include/c++/13/tuple" 3 protected: constexpr void _M_swap(_Tuple_impl& __in) { using std::swap; swap(_M_head(*this), _M_head(__in)); } # 680 "/usr/include/c++/13/tuple" 3 }; template<bool, typename... _Types> struct _TupleConstraints { template<typename... _UTypes> using __constructible = __and_<is_constructible<_Types, _UTypes>...>; template<typename... _UTypes> using __convertible = __and_<is_convertible<_UTypes, _Types>...>; template<typename... _UTypes> static constexpr bool __is_implicitly_constructible() { return __and_<__constructible<_UTypes...>, __convertible<_UTypes...> >::value; } template<typename... _UTypes> static constexpr bool __is_explicitly_constructible() { return __and_<__constructible<_UTypes...>, __not_<__convertible<_UTypes...>> >::value; } static constexpr bool __is_implicitly_default_constructible() { return __and_<std::__is_implicitly_default_constructible<_Types>... >::value; } static constexpr bool __is_explicitly_default_constructible() { return __and_<is_default_constructible<_Types>..., __not_<__and_< std::__is_implicitly_default_constructible<_Types>...> >>::value; } }; template<typename... _Types> struct _TupleConstraints<false, _Types...> { template<typename... _UTypes> static constexpr bool __is_implicitly_constructible() { return false; } template<typename... _UTypes> static constexpr bool __is_explicitly_constructible() { return false; } }; template<typename... _Elements> class tuple : public _Tuple_impl<0, _Elements...> { typedef _Tuple_impl<0, _Elements...> _Inherited; template<bool _Cond> using _TCC = _TupleConstraints<_Cond, _Elements...>; template<bool _Dummy> using _ImplicitDefaultCtor = __enable_if_t< _TCC<_Dummy>::__is_implicitly_default_constructible(), bool>; template<bool _Dummy> using _ExplicitDefaultCtor = __enable_if_t< _TCC<_Dummy>::__is_explicitly_default_constructible(), bool>; template<bool _Cond, typename... _Args> using _ImplicitCtor = __enable_if_t< _TCC<_Cond>::template __is_implicitly_constructible<_Args...>(), bool>; template<bool _Cond, typename... _Args> using _ExplicitCtor = __enable_if_t< _TCC<_Cond>::template __is_explicitly_constructible<_Args...>(), bool>; template<typename... _UElements> static constexpr __enable_if_t<sizeof...(_UElements) == sizeof...(_Elements), bool> __assignable() { return __and_<is_assignable<_Elements&, _UElements>...>::value; } template<typename... _UElements> static constexpr bool __nothrow_assignable() { return __and_<is_nothrow_assignable<_Elements&, _UElements>...>::value; } template<typename... _UElements> static constexpr bool __nothrow_constructible() { return __and_<is_nothrow_constructible<_Elements, _UElements>...>::value; } template<typename _Up> static constexpr bool __valid_args() { return sizeof...(_Elements) == 1 && !is_same<tuple, __remove_cvref_t<_Up>>::value; } template<typename, typename, typename... _Tail> static constexpr bool __valid_args() { return (sizeof...(_Tail) + 2) == sizeof...(_Elements); } # 821 "/usr/include/c++/13/tuple" 3 template<typename _Tuple, typename = tuple, typename = __remove_cvref_t<_Tuple>> struct _UseOtherCtor : false_type { }; template<typename _Tuple, typename _Tp, typename _Up> struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Up>> : __or_<is_convertible<_Tuple, _Tp>, is_constructible<_Tp, _Tuple>>::type { }; template<typename _Tuple, typename _Tp> struct _UseOtherCtor<_Tuple, tuple<_Tp>, tuple<_Tp>> : true_type { }; template<typename _Tuple> static constexpr bool __use_other_ctor() { return _UseOtherCtor<_Tuple>::value; } # 856 "/usr/include/c++/13/tuple" 3 public: template<typename _Dummy = void, _ImplicitDefaultCtor<is_void<_Dummy>::value> = true> constexpr tuple() noexcept(__and_<is_nothrow_default_constructible<_Elements>...>::value) : _Inherited() { } template<typename _Dummy = void, _ExplicitDefaultCtor<is_void<_Dummy>::value> = false> explicit constexpr tuple() noexcept(__and_<is_nothrow_default_constructible<_Elements>...>::value) : _Inherited() { } template<bool _NotEmpty = (sizeof...(_Elements) >= 1), _ImplicitCtor<_NotEmpty, const _Elements&...> = true> constexpr tuple(const _Elements&... __elements) noexcept(__nothrow_constructible<const _Elements&...>()) : _Inherited(__elements...) { } template<bool _NotEmpty = (sizeof...(_Elements) >= 1), _ExplicitCtor<_NotEmpty, const _Elements&...> = false> explicit constexpr tuple(const _Elements&... __elements) noexcept(__nothrow_constructible<const _Elements&...>()) : _Inherited(__elements...) { } template<typename... _UElements, bool _Valid = __valid_args<_UElements...>(), _ImplicitCtor<_Valid, _UElements...> = true> constexpr tuple(_UElements&&... __elements) noexcept(__nothrow_constructible<_UElements...>()) : _Inherited(std::forward<_UElements>(__elements)...) { } template<typename... _UElements, bool _Valid = __valid_args<_UElements...>(), _ExplicitCtor<_Valid, _UElements...> = false> explicit constexpr tuple(_UElements&&... __elements) noexcept(__nothrow_constructible<_UElements...>()) : _Inherited(std::forward<_UElements>(__elements)...) { } constexpr tuple(const tuple&) = default; constexpr tuple(tuple&&) = default; template<typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<const tuple<_UElements...>&>(), _ImplicitCtor<_Valid, const _UElements&...> = true> constexpr tuple(const tuple<_UElements...>& __in) noexcept(__nothrow_constructible<const _UElements&...>()) : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) { } template<typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<const tuple<_UElements...>&>(), _ExplicitCtor<_Valid, const _UElements&...> = false> explicit constexpr tuple(const tuple<_UElements...>& __in) noexcept(__nothrow_constructible<const _UElements&...>()) : _Inherited(static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) { } template<typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<tuple<_UElements...>&&>(), _ImplicitCtor<_Valid, _UElements...> = true> constexpr tuple(tuple<_UElements...>&& __in) noexcept(__nothrow_constructible<_UElements...>()) : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } template<typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<tuple<_UElements...>&&>(), _ExplicitCtor<_Valid, _UElements...> = false> explicit constexpr tuple(tuple<_UElements...>&& __in) noexcept(__nothrow_constructible<_UElements...>()) : _Inherited(static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } # 968 "/usr/include/c++/13/tuple" 3 template<typename _Alloc, _ImplicitDefaultCtor<is_object<_Alloc>::value> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a) : _Inherited(__tag, __a) { } template<typename _Alloc, bool _NotEmpty = (sizeof...(_Elements) >= 1), _ImplicitCtor<_NotEmpty, const _Elements&...> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const _Elements&... __elements) : _Inherited(__tag, __a, __elements...) { } template<typename _Alloc, bool _NotEmpty = (sizeof...(_Elements) >= 1), _ExplicitCtor<_NotEmpty, const _Elements&...> = false> constexpr explicit tuple(allocator_arg_t __tag, const _Alloc& __a, const _Elements&... __elements) : _Inherited(__tag, __a, __elements...) { } template<typename _Alloc, typename... _UElements, bool _Valid = __valid_args<_UElements...>(), _ImplicitCtor<_Valid, _UElements...> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, _UElements&&... __elements) : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) { } template<typename _Alloc, typename... _UElements, bool _Valid = __valid_args<_UElements...>(), _ExplicitCtor<_Valid, _UElements...> = false> constexpr explicit tuple(allocator_arg_t __tag, const _Alloc& __a, _UElements&&... __elements) : _Inherited(__tag, __a, std::forward<_UElements>(__elements)...) { } template<typename _Alloc> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) : _Inherited(__tag, __a, static_cast<const _Inherited&>(__in)) { } template<typename _Alloc> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } template<typename _Alloc, typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<const tuple<_UElements...>&>(), _ImplicitCtor<_Valid, const _UElements&...> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple<_UElements...>& __in) : _Inherited(__tag, __a, static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) { } template<typename _Alloc, typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<const tuple<_UElements...>&>(), _ExplicitCtor<_Valid, const _UElements&...> = false> constexpr explicit tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple<_UElements...>& __in) : _Inherited(__tag, __a, static_cast<const _Tuple_impl<0, _UElements...>&>(__in)) { } template<typename _Alloc, typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<tuple<_UElements...>&&>(), _ImplicitCtor<_Valid, _UElements...> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_UElements...>&& __in) : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } template<typename _Alloc, typename... _UElements, bool _Valid = (sizeof...(_Elements) == sizeof...(_UElements)) && !__use_other_ctor<tuple<_UElements...>&&>(), _ExplicitCtor<_Valid, _UElements...> = false> constexpr explicit tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_UElements...>&& __in) : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _UElements...>&&>(__in)) { } # 1092 "/usr/include/c++/13/tuple" 3 constexpr tuple& operator=(__conditional_t<__assignable<const _Elements&...>(), const tuple&, const __nonesuch&> __in) noexcept(__nothrow_assignable<const _Elements&...>()) { this->_M_assign(__in); return *this; } constexpr tuple& operator=(__conditional_t<__assignable<_Elements...>(), tuple&&, __nonesuch&&> __in) noexcept(__nothrow_assignable<_Elements...>()) { this->_M_assign(std::move(__in)); return *this; } template<typename... _UElements> constexpr __enable_if_t<__assignable<const _UElements&...>(), tuple&> operator=(const tuple<_UElements...>& __in) noexcept(__nothrow_assignable<const _UElements&...>()) { this->_M_assign(__in); return *this; } template<typename... _UElements> constexpr __enable_if_t<__assignable<_UElements...>(), tuple&> operator=(tuple<_UElements...>&& __in) noexcept(__nothrow_assignable<_UElements...>()) { this->_M_assign(std::move(__in)); return *this; } # 1173 "/usr/include/c++/13/tuple" 3 constexpr void swap(tuple& __in) noexcept(__and_<__is_nothrow_swappable<_Elements>...>::value) { _Inherited::_M_swap(__in); } # 1192 "/usr/include/c++/13/tuple" 3 }; template<typename... _UTypes> tuple(_UTypes...) -> tuple<_UTypes...>; template<typename _T1, typename _T2> tuple(pair<_T1, _T2>) -> tuple<_T1, _T2>; template<typename _Alloc, typename... _UTypes> tuple(allocator_arg_t, _Alloc, _UTypes...) -> tuple<_UTypes...>; template<typename _Alloc, typename _T1, typename _T2> tuple(allocator_arg_t, _Alloc, pair<_T1, _T2>) -> tuple<_T1, _T2>; template<typename _Alloc, typename... _UTypes> tuple(allocator_arg_t, _Alloc, tuple<_UTypes...>) -> tuple<_UTypes...>; template<> class tuple<> { public: constexpr void swap(tuple&) noexcept { } tuple() = default; template<typename _Alloc> constexpr tuple(allocator_arg_t, const _Alloc&) noexcept { } template<typename _Alloc> constexpr tuple(allocator_arg_t, const _Alloc&, const tuple&) noexcept { } }; template<typename _T1, typename _T2> class tuple<_T1, _T2> : public _Tuple_impl<0, _T1, _T2> { typedef _Tuple_impl<0, _T1, _T2> _Inherited; template<bool _Dummy, typename _U1, typename _U2> using _ImplicitDefaultCtor = __enable_if_t< _TupleConstraints<_Dummy, _U1, _U2>:: __is_implicitly_default_constructible(), bool>; template<bool _Dummy, typename _U1, typename _U2> using _ExplicitDefaultCtor = __enable_if_t< _TupleConstraints<_Dummy, _U1, _U2>:: __is_explicitly_default_constructible(), bool>; template<bool _Dummy> using _TCC = _TupleConstraints<_Dummy, _T1, _T2>; template<bool _Cond, typename _U1, typename _U2> using _ImplicitCtor = __enable_if_t< _TCC<_Cond>::template __is_implicitly_constructible<_U1, _U2>(), bool>; template<bool _Cond, typename _U1, typename _U2> using _ExplicitCtor = __enable_if_t< _TCC<_Cond>::template __is_explicitly_constructible<_U1, _U2>(), bool>; template<typename _U1, typename _U2> static constexpr bool __assignable() { return __and_<is_assignable<_T1&, _U1>, is_assignable<_T2&, _U2>>::value; } template<typename _U1, typename _U2> static constexpr bool __nothrow_assignable() { return __and_<is_nothrow_assignable<_T1&, _U1>, is_nothrow_assignable<_T2&, _U2>>::value; } template<typename _U1, typename _U2> static constexpr bool __nothrow_constructible() { return __and_<is_nothrow_constructible<_T1, _U1>, is_nothrow_constructible<_T2, _U2>>::value; } static constexpr bool __nothrow_default_constructible() { return __and_<is_nothrow_default_constructible<_T1>, is_nothrow_default_constructible<_T2>>::value; } template<typename _U1> static constexpr bool __is_alloc_arg() { return is_same<__remove_cvref_t<_U1>, allocator_arg_t>::value; } # 1306 "/usr/include/c++/13/tuple" 3 public: template<bool _Dummy = true, _ImplicitDefaultCtor<_Dummy, _T1, _T2> = true> constexpr tuple() noexcept(__nothrow_default_constructible()) : _Inherited() { } template<bool _Dummy = true, _ExplicitDefaultCtor<_Dummy, _T1, _T2> = false> explicit constexpr tuple() noexcept(__nothrow_default_constructible()) : _Inherited() { } template<bool _Dummy = true, _ImplicitCtor<_Dummy, const _T1&, const _T2&> = true> constexpr tuple(const _T1& __a1, const _T2& __a2) noexcept(__nothrow_constructible<const _T1&, const _T2&>()) : _Inherited(__a1, __a2) { } template<bool _Dummy = true, _ExplicitCtor<_Dummy, const _T1&, const _T2&> = false> explicit constexpr tuple(const _T1& __a1, const _T2& __a2) noexcept(__nothrow_constructible<const _T1&, const _T2&>()) : _Inherited(__a1, __a2) { } template<typename _U1, typename _U2, _ImplicitCtor<!__is_alloc_arg<_U1>(), _U1, _U2> = true> constexpr tuple(_U1&& __a1, _U2&& __a2) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } template<typename _U1, typename _U2, _ExplicitCtor<!__is_alloc_arg<_U1>(), _U1, _U2> = false> explicit constexpr tuple(_U1&& __a1, _U2&& __a2) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } constexpr tuple(const tuple&) = default; constexpr tuple(tuple&&) = default; template<typename _U1, typename _U2, _ImplicitCtor<true, const _U1&, const _U2&> = true> constexpr tuple(const tuple<_U1, _U2>& __in) noexcept(__nothrow_constructible<const _U1&, const _U2&>()) : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { } template<typename _U1, typename _U2, _ExplicitCtor<true, const _U1&, const _U2&> = false> explicit constexpr tuple(const tuple<_U1, _U2>& __in) noexcept(__nothrow_constructible<const _U1&, const _U2&>()) : _Inherited(static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { } template<typename _U1, typename _U2, _ImplicitCtor<true, _U1, _U2> = true> constexpr tuple(tuple<_U1, _U2>&& __in) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } template<typename _U1, typename _U2, _ExplicitCtor<true, _U1, _U2> = false> explicit constexpr tuple(tuple<_U1, _U2>&& __in) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } # 1399 "/usr/include/c++/13/tuple" 3 template<typename _U1, typename _U2, _ImplicitCtor<true, const _U1&, const _U2&> = true> constexpr tuple(const pair<_U1, _U2>& __in) noexcept(__nothrow_constructible<const _U1&, const _U2&>()) : _Inherited(__in.first, __in.second) { } template<typename _U1, typename _U2, _ExplicitCtor<true, const _U1&, const _U2&> = false> explicit constexpr tuple(const pair<_U1, _U2>& __in) noexcept(__nothrow_constructible<const _U1&, const _U2&>()) : _Inherited(__in.first, __in.second) { } template<typename _U1, typename _U2, _ImplicitCtor<true, _U1, _U2> = true> constexpr tuple(pair<_U1, _U2>&& __in) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(std::forward<_U1>(__in.first), std::forward<_U2>(__in.second)) { } template<typename _U1, typename _U2, _ExplicitCtor<true, _U1, _U2> = false> explicit constexpr tuple(pair<_U1, _U2>&& __in) noexcept(__nothrow_constructible<_U1, _U2>()) : _Inherited(std::forward<_U1>(__in.first), std::forward<_U2>(__in.second)) { } # 1450 "/usr/include/c++/13/tuple" 3 template<typename _Alloc, _ImplicitDefaultCtor<is_object<_Alloc>::value, _T1, _T2> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a) : _Inherited(__tag, __a) { } template<typename _Alloc, bool _Dummy = true, _ImplicitCtor<_Dummy, const _T1&, const _T2&> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const _T1& __a1, const _T2& __a2) : _Inherited(__tag, __a, __a1, __a2) { } template<typename _Alloc, bool _Dummy = true, _ExplicitCtor<_Dummy, const _T1&, const _T2&> = false> explicit constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const _T1& __a1, const _T2& __a2) : _Inherited(__tag, __a, __a1, __a2) { } template<typename _Alloc, typename _U1, typename _U2, _ImplicitCtor<true, _U1, _U2> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) : _Inherited(__tag, __a, std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } template<typename _Alloc, typename _U1, typename _U2, _ExplicitCtor<true, _U1, _U2> = false> explicit constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2) : _Inherited(__tag, __a, std::forward<_U1>(__a1), std::forward<_U2>(__a2)) { } template<typename _Alloc> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in) : _Inherited(__tag, __a, static_cast<const _Inherited&>(__in)) { } template<typename _Alloc> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in) : _Inherited(__tag, __a, static_cast<_Inherited&&>(__in)) { } template<typename _Alloc, typename _U1, typename _U2, _ImplicitCtor<true, const _U1&, const _U2&> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple<_U1, _U2>& __in) : _Inherited(__tag, __a, static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { } template<typename _Alloc, typename _U1, typename _U2, _ExplicitCtor<true, const _U1&, const _U2&> = false> explicit constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple<_U1, _U2>& __in) : _Inherited(__tag, __a, static_cast<const _Tuple_impl<0, _U1, _U2>&>(__in)) { } template<typename _Alloc, typename _U1, typename _U2, _ImplicitCtor<true, _U1, _U2> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } template<typename _Alloc, typename _U1, typename _U2, _ExplicitCtor<true, _U1, _U2> = false> explicit constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in) : _Inherited(__tag, __a, static_cast<_Tuple_impl<0, _U1, _U2>&&>(__in)) { } # 1553 "/usr/include/c++/13/tuple" 3 template<typename _Alloc, typename _U1, typename _U2, _ImplicitCtor<true, const _U1&, const _U2&> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const pair<_U1, _U2>& __in) : _Inherited(__tag, __a, __in.first, __in.second) { } template<typename _Alloc, typename _U1, typename _U2, _ExplicitCtor<true, const _U1&, const _U2&> = false> explicit constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, const pair<_U1, _U2>& __in) : _Inherited(__tag, __a, __in.first, __in.second) { } template<typename _Alloc, typename _U1, typename _U2, _ImplicitCtor<true, _U1, _U2> = true> constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) : _Inherited(__tag, __a, std::forward<_U1>(__in.first), std::forward<_U2>(__in.second)) { } template<typename _Alloc, typename _U1, typename _U2, _ExplicitCtor<true, _U1, _U2> = false> explicit constexpr tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in) : _Inherited(__tag, __a, std::forward<_U1>(__in.first), std::forward<_U2>(__in.second)) { } # 1603 "/usr/include/c++/13/tuple" 3 constexpr tuple& operator=(__conditional_t<__assignable<const _T1&, const _T2&>(), const tuple&, const __nonesuch&> __in) noexcept(__nothrow_assignable<const _T1&, const _T2&>()) { this->_M_assign(__in); return *this; } constexpr tuple& operator=(__conditional_t<__assignable<_T1, _T2>(), tuple&&, __nonesuch&&> __in) noexcept(__nothrow_assignable<_T1, _T2>()) { this->_M_assign(std::move(__in)); return *this; } template<typename _U1, typename _U2> constexpr __enable_if_t<__assignable<const _U1&, const _U2&>(), tuple&> operator=(const tuple<_U1, _U2>& __in) noexcept(__nothrow_assignable<const _U1&, const _U2&>()) { this->_M_assign(__in); return *this; } template<typename _U1, typename _U2> constexpr __enable_if_t<__assignable<_U1, _U2>(), tuple&> operator=(tuple<_U1, _U2>&& __in) noexcept(__nothrow_assignable<_U1, _U2>()) { this->_M_assign(std::move(__in)); return *this; } # 1683 "/usr/include/c++/13/tuple" 3 template<typename _U1, typename _U2> constexpr __enable_if_t<__assignable<const _U1&, const _U2&>(), tuple&> operator=(const pair<_U1, _U2>& __in) noexcept(__nothrow_assignable<const _U1&, const _U2&>()) { this->_M_head(*this) = __in.first; this->_M_tail(*this)._M_head(*this) = __in.second; return *this; } template<typename _U1, typename _U2> constexpr __enable_if_t<__assignable<_U1, _U2>(), tuple&> operator=(pair<_U1, _U2>&& __in) noexcept(__nothrow_assignable<_U1, _U2>()) { this->_M_head(*this) = std::forward<_U1>(__in.first); this->_M_tail(*this)._M_head(*this) = std::forward<_U2>(__in.second); return *this; } # 1729 "/usr/include/c++/13/tuple" 3 constexpr void swap(tuple& __in) noexcept(__and_<__is_nothrow_swappable<_T1>, __is_nothrow_swappable<_T2>>::value) { _Inherited::_M_swap(__in); } # 1744 "/usr/include/c++/13/tuple" 3 }; template<typename... _Elements> struct tuple_size<tuple<_Elements...>> : public integral_constant<size_t, sizeof...(_Elements)> { }; template<typename... _Types> inline constexpr size_t tuple_size_v<tuple<_Types...>> = sizeof...(_Types); template<typename... _Types> inline constexpr size_t tuple_size_v<const tuple<_Types...>> = sizeof...(_Types); template<size_t __i, typename... _Types> struct tuple_element<__i, tuple<_Types...>> { static_assert(__i < sizeof...(_Types), "tuple index must be in range"); using type = typename _Nth_type<__i, _Types...>::type; }; template<size_t __i, typename _Head, typename... _Tail> constexpr _Head& __get_helper(_Tuple_impl<__i, _Head, _Tail...>& __t) noexcept { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } template<size_t __i, typename _Head, typename... _Tail> constexpr const _Head& __get_helper(const _Tuple_impl<__i, _Head, _Tail...>& __t) noexcept { return _Tuple_impl<__i, _Head, _Tail...>::_M_head(__t); } template<size_t __i, typename... _Types> __enable_if_t<(__i >= sizeof...(_Types))> __get_helper(const tuple<_Types...>&) = delete; template<size_t __i, typename... _Elements> constexpr __tuple_element_t<__i, tuple<_Elements...>>& get(tuple<_Elements...>& __t) noexcept { return std::__get_helper<__i>(__t); } template<size_t __i, typename... _Elements> constexpr const __tuple_element_t<__i, tuple<_Elements...>>& get(const tuple<_Elements...>& __t) noexcept { return std::__get_helper<__i>(__t); } template<size_t __i, typename... _Elements> constexpr __tuple_element_t<__i, tuple<_Elements...>>&& get(tuple<_Elements...>&& __t) noexcept { typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; return std::forward<__element_type>(std::__get_helper<__i>(__t)); } template<size_t __i, typename... _Elements> constexpr const __tuple_element_t<__i, tuple<_Elements...>>&& get(const tuple<_Elements...>&& __t) noexcept { typedef __tuple_element_t<__i, tuple<_Elements...>> __element_type; return std::forward<const __element_type>(std::__get_helper<__i>(__t)); } template<size_t __i, typename... _Elements> constexpr __enable_if_t<(__i >= sizeof...(_Elements))> get(const tuple<_Elements...>&) = delete; template <typename _Tp, typename... _Types> constexpr _Tp& get(tuple<_Types...>& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get<T> must occur exactly once in the tuple"); return std::__get_helper<__idx>(__t); } template <typename _Tp, typename... _Types> constexpr _Tp&& get(tuple<_Types...>&& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get<T> must occur exactly once in the tuple"); return std::forward<_Tp>(std::__get_helper<__idx>(__t)); } template <typename _Tp, typename... _Types> constexpr const _Tp& get(const tuple<_Types...>& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get<T> must occur exactly once in the tuple"); return std::__get_helper<__idx>(__t); } template <typename _Tp, typename... _Types> constexpr const _Tp&& get(const tuple<_Types...>&& __t) noexcept { constexpr size_t __idx = __find_uniq_type_in_pack<_Tp, _Types...>(); static_assert(__idx < sizeof...(_Types), "the type T in std::get<T> must occur exactly once in the tuple"); return std::forward<const _Tp>(std::__get_helper<__idx>(__t)); } template<typename _Tp, typename _Up, size_t __i, size_t __size> struct __tuple_compare { static constexpr bool __eq(const _Tp& __t, const _Up& __u) { return bool(std::get<__i>(__t) == std::get<__i>(__u)) && __tuple_compare<_Tp, _Up, __i + 1, __size>::__eq(__t, __u); } static constexpr bool __less(const _Tp& __t, const _Up& __u) { return bool(std::get<__i>(__t) < std::get<__i>(__u)) || (!bool(std::get<__i>(__u) < std::get<__i>(__t)) && __tuple_compare<_Tp, _Up, __i + 1, __size>::__less(__t, __u)); } }; template<typename _Tp, typename _Up, size_t __size> struct __tuple_compare<_Tp, _Up, __size, __size> { static constexpr bool __eq(const _Tp&, const _Up&) { return true; } static constexpr bool __less(const _Tp&, const _Up&) { return false; } }; template<typename... _TElements, typename... _UElements> constexpr bool operator==(const tuple<_TElements...>& __t, const tuple<_UElements...>& __u) { static_assert(sizeof...(_TElements) == sizeof...(_UElements), "tuple objects can only be compared if they have equal sizes."); using __compare = __tuple_compare<tuple<_TElements...>, tuple<_UElements...>, 0, sizeof...(_TElements)>; return __compare::__eq(__t, __u); } template<typename _Cat, typename _Tp, typename _Up> constexpr _Cat __tuple_cmp(const _Tp&, const _Up&, index_sequence<>) { return _Cat::equivalent; } template<typename _Cat, typename _Tp, typename _Up, size_t _Idx0, size_t... _Idxs> constexpr _Cat __tuple_cmp(const _Tp& __t, const _Up& __u, index_sequence<_Idx0, _Idxs...>) { auto __c = __detail::__synth3way(std::get<_Idx0>(__t), std::get<_Idx0>(__u)); if (__c != 0) return __c; return std::__tuple_cmp<_Cat>(__t, __u, index_sequence<_Idxs...>()); } template<typename... _Tps, typename... _Ups> constexpr common_comparison_category_t<__detail::__synth3way_t<_Tps, _Ups>...> operator<=>(const tuple<_Tps...>& __t, const tuple<_Ups...>& __u) { using _Cat = common_comparison_category_t<__detail::__synth3way_t<_Tps, _Ups>...>; return std::__tuple_cmp<_Cat>(__t, __u, index_sequence_for<_Tps...>()); } # 1985 "/usr/include/c++/13/tuple" 3 template<typename... _Elements> constexpr tuple<typename __decay_and_strip<_Elements>::__type...> make_tuple(_Elements&&... __args) { typedef tuple<typename __decay_and_strip<_Elements>::__type...> __result_type; return __result_type(std::forward<_Elements>(__args)...); } template<typename... _Elements> constexpr tuple<_Elements&&...> forward_as_tuple(_Elements&&... __args) noexcept { return tuple<_Elements&&...>(std::forward<_Elements>(__args)...); } template<typename _Tp, size_t _Nm> struct array; template<size_t _Int, typename _Tp, size_t _Nm> constexpr _Tp& get(array<_Tp, _Nm>&) noexcept; template<size_t _Int, typename _Tp, size_t _Nm> constexpr _Tp&& get(array<_Tp, _Nm>&&) noexcept; template<size_t _Int, typename _Tp, size_t _Nm> constexpr const _Tp& get(const array<_Tp, _Nm>&) noexcept; template<size_t _Int, typename _Tp, size_t _Nm> constexpr const _Tp&& get(const array<_Tp, _Nm>&&) noexcept; template<size_t, typename, typename, size_t> struct __make_tuple_impl; template<size_t _Idx, typename _Tuple, typename... _Tp, size_t _Nm> struct __make_tuple_impl<_Idx, tuple<_Tp...>, _Tuple, _Nm> : __make_tuple_impl<_Idx + 1, tuple<_Tp..., __tuple_element_t<_Idx, _Tuple>>, _Tuple, _Nm> { }; template<size_t _Nm, typename _Tuple, typename... _Tp> struct __make_tuple_impl<_Nm, tuple<_Tp...>, _Tuple, _Nm> { typedef tuple<_Tp...> __type; }; template<typename _Tuple> struct __do_make_tuple : __make_tuple_impl<0, tuple<>, _Tuple, tuple_size<_Tuple>::value> { }; template<typename _Tuple> struct __make_tuple : public __do_make_tuple<__remove_cvref_t<_Tuple>> { }; template<typename...> struct __combine_tuples; template<> struct __combine_tuples<> { typedef tuple<> __type; }; template<typename... _Ts> struct __combine_tuples<tuple<_Ts...>> { typedef tuple<_Ts...> __type; }; template<typename... _T1s, typename... _T2s, typename... _Rem> struct __combine_tuples<tuple<_T1s...>, tuple<_T2s...>, _Rem...> { typedef typename __combine_tuples<tuple<_T1s..., _T2s...>, _Rem...>::__type __type; }; template<typename... _Tpls> struct __tuple_cat_result { typedef typename __combine_tuples <typename __make_tuple<_Tpls>::__type...>::__type __type; }; template<typename...> struct __make_1st_indices; template<> struct __make_1st_indices<> { typedef _Index_tuple<> __type; }; template<typename _Tp, typename... _Tpls> struct __make_1st_indices<_Tp, _Tpls...> { typedef typename _Build_index_tuple<tuple_size< typename remove_reference<_Tp>::type>::value>::__type __type; }; template<typename _Ret, typename _Indices, typename... _Tpls> struct __tuple_concater; template<typename _Ret, size_t... _Is, typename _Tp, typename... _Tpls> struct __tuple_concater<_Ret, _Index_tuple<_Is...>, _Tp, _Tpls...> { template<typename... _Us> static constexpr _Ret _S_do(_Tp&& __tp, _Tpls&&... __tps, _Us&&... __us) { typedef typename __make_1st_indices<_Tpls...>::__type __idx; typedef __tuple_concater<_Ret, __idx, _Tpls...> __next; return __next::_S_do(std::forward<_Tpls>(__tps)..., std::forward<_Us>(__us)..., std::get<_Is>(std::forward<_Tp>(__tp))...); } }; template<typename _Ret> struct __tuple_concater<_Ret, _Index_tuple<>> { template<typename... _Us> static constexpr _Ret _S_do(_Us&&... __us) { return _Ret(std::forward<_Us>(__us)...); } }; template<typename... _Tps> struct __is_tuple_like_impl<tuple<_Tps...>> : true_type { }; template<typename... _Tpls, typename = typename enable_if<__and_<__is_tuple_like<_Tpls>...>::value>::type> constexpr auto tuple_cat(_Tpls&&... __tpls) -> typename __tuple_cat_result<_Tpls...>::__type { typedef typename __tuple_cat_result<_Tpls...>::__type __ret; typedef typename __make_1st_indices<_Tpls...>::__type __idx; typedef __tuple_concater<__ret, __idx, _Tpls...> __concater; return __concater::_S_do(std::forward<_Tpls>(__tpls)...); } template<typename... _Elements> constexpr tuple<_Elements&...> tie(_Elements&... __args) noexcept { return tuple<_Elements&...>(__args...); } template<typename... _Elements> constexpr inline typename enable_if<__and_<__is_swappable<_Elements>...>::value >::type swap(tuple<_Elements...>& __x, tuple<_Elements...>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } # 2184 "/usr/include/c++/13/tuple" 3 template<typename... _Elements> constexpr typename enable_if<!__and_<__is_swappable<_Elements>...>::value>::type swap(tuple<_Elements...>&, tuple<_Elements...>&) = delete; struct _Swallow_assign { template<class _Tp> constexpr const _Swallow_assign& operator=(const _Tp&) const { return *this; } }; # 2219 "/usr/include/c++/13/tuple" 3 inline constexpr _Swallow_assign ignore{}; template<typename... _Types, typename _Alloc> struct uses_allocator<tuple<_Types...>, _Alloc> : true_type { }; # 2234 "/usr/include/c++/13/tuple" 3 template<class _T1, class _T2> template<typename... _Args1, typename... _Args2> constexpr inline pair<_T1, _T2>:: pair(piecewise_construct_t, tuple<_Args1...> __first, tuple<_Args2...> __second) : pair(__first, __second, typename _Build_index_tuple<sizeof...(_Args1)>::__type(), typename _Build_index_tuple<sizeof...(_Args2)>::__type()) { } template<class _T1, class _T2> template<typename... _Args1, size_t... _Indexes1, typename... _Args2, size_t... _Indexes2> constexpr inline pair<_T1, _T2>:: pair(tuple<_Args1...>& __tuple1, tuple<_Args2...>& __tuple2, _Index_tuple<_Indexes1...>, _Index_tuple<_Indexes2...>) : first(std::forward<_Args1>(std::get<_Indexes1>(__tuple1))...), second(std::forward<_Args2>(std::get<_Indexes2>(__tuple2))...) { } template<template<typename...> class _Trait, typename _Tp, typename _Tuple> inline constexpr bool __unpack_std_tuple = false; template<template<typename...> class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>> = _Trait<_Tp, _Up...>::value; template<template<typename...> class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, tuple<_Up...>&> = _Trait<_Tp, _Up&...>::value; template<template<typename...> class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>> = _Trait<_Tp, const _Up...>::value; template<template<typename...> class _Trait, typename _Tp, typename... _Up> inline constexpr bool __unpack_std_tuple<_Trait, _Tp, const tuple<_Up...>&> = _Trait<_Tp, const _Up&...>::value; template <typename _Fn, typename _Tuple, size_t... _Idx> constexpr decltype(auto) __apply_impl(_Fn&& __f, _Tuple&& __t, index_sequence<_Idx...>) { return std::__invoke(std::forward<_Fn>(__f), std::get<_Idx>(std::forward<_Tuple>(__t))...); } template <typename _Fn, typename _Tuple> constexpr decltype(auto) apply(_Fn&& __f, _Tuple&& __t) noexcept(__unpack_std_tuple<is_nothrow_invocable, _Fn, _Tuple>) { using _Indices = make_index_sequence<tuple_size_v<remove_reference_t<_Tuple>>>; return std::__apply_impl(std::forward<_Fn>(__f), std::forward<_Tuple>(__t), _Indices{}); } template <typename _Tp, typename _Tuple, size_t... _Idx> constexpr _Tp __make_from_tuple_impl(_Tuple&& __t, index_sequence<_Idx...>) { return _Tp(std::get<_Idx>(std::forward<_Tuple>(__t))...); } template <typename _Tp, typename _Tuple> constexpr _Tp make_from_tuple(_Tuple&& __t) noexcept(__unpack_std_tuple<is_nothrow_constructible, _Tp, _Tuple>) { constexpr size_t __n = tuple_size_v<remove_reference_t<_Tuple>>; if constexpr (__n == 1) { using _Elt = decltype(std::get<0>(std::declval<_Tuple>())); static_assert(!__reference_constructs_from_temporary(_Tp, _Elt)); } return __make_from_tuple_impl<_Tp>(std::forward<_Tuple>(__t), make_index_sequence<__n>{}); } # 2344 "/usr/include/c++/13/tuple" 3 } # 39 "/usr/include/c++/13/bits/uses_allocator_args.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> concept _Std_pair = __is_pair<remove_cv_t<_Tp>>; # 56 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 template<typename _Tp, typename _Alloc, typename... _Args> constexpr auto uses_allocator_construction_args(const _Alloc& __a, _Args&&... __args) noexcept requires (! _Std_pair<_Tp>) { if constexpr (uses_allocator_v<remove_cv_t<_Tp>, _Alloc>) { if constexpr (is_constructible_v<_Tp, allocator_arg_t, const _Alloc&, _Args...>) { return tuple<allocator_arg_t, const _Alloc&, _Args&&...>( allocator_arg, __a, std::forward<_Args>(__args)...); } else { static_assert(is_constructible_v<_Tp, _Args..., const _Alloc&>, "construction with an allocator must be possible" " if uses_allocator is true"); return tuple<_Args&&..., const _Alloc&>( std::forward<_Args>(__args)..., __a); } } else { static_assert(is_constructible_v<_Tp, _Args...>); return tuple<_Args&&...>(std::forward<_Args>(__args)...); } } template<_Std_pair _Tp, typename _Alloc, typename _Tuple1, typename _Tuple2> constexpr auto uses_allocator_construction_args(const _Alloc& __a, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept; template<_Std_pair _Tp, typename _Alloc> constexpr auto uses_allocator_construction_args(const _Alloc&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, _Up&&, _Vp&&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, const pair<_Up, _Vp>&) noexcept; template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc&, pair<_Up, _Vp>&&) noexcept; # 121 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 template<_Std_pair _Tp, typename _Alloc, typename _Tuple1, typename _Tuple2> constexpr auto uses_allocator_construction_args(const _Alloc& __a, piecewise_construct_t, _Tuple1&& __x, _Tuple2&& __y) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::apply([&__a](auto&&... __args1) { return std::uses_allocator_construction_args<_Tp1>( __a, std::forward<decltype(__args1)>(__args1)...); }, std::forward<_Tuple1>(__x)), std::apply([&__a](auto&&... __args2) { return std::uses_allocator_construction_args<_Tp2>( __a, std::forward<decltype(__args2)>(__args2)...); }, std::forward<_Tuple2>(__y))); } template<_Std_pair _Tp, typename _Alloc> constexpr auto uses_allocator_construction_args(const _Alloc& __a) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a), std::uses_allocator_construction_args<_Tp2>(__a)); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, _Up&& __u, _Vp&& __v) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, std::forward<_Up>(__u)), std::uses_allocator_construction_args<_Tp2>(__a, std::forward<_Vp>(__v))); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, const pair<_Up, _Vp>& __pr) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, __pr.first), std::uses_allocator_construction_args<_Tp2>(__a, __pr.second)); } template<_Std_pair _Tp, typename _Alloc, typename _Up, typename _Vp> constexpr auto uses_allocator_construction_args(const _Alloc& __a, pair<_Up, _Vp>&& __pr) noexcept { using _Tp1 = typename _Tp::first_type; using _Tp2 = typename _Tp::second_type; return std::make_tuple(piecewise_construct, std::uses_allocator_construction_args<_Tp1>(__a, std::get<0>(std::move(__pr))), std::uses_allocator_construction_args<_Tp2>(__a, std::get<1>(std::move(__pr)))); } # 228 "/usr/include/c++/13/bits/uses_allocator_args.h" 3 template<typename _Tp, typename _Alloc, typename... _Args> constexpr _Tp make_obj_using_allocator(const _Alloc& __a, _Args&&... __args) { return std::make_from_tuple<_Tp>( std::uses_allocator_construction_args<_Tp>(__a, std::forward<_Args>(__args)...)); } template<typename _Tp, typename _Alloc, typename... _Args> constexpr _Tp* uninitialized_construct_using_allocator(_Tp* __p, const _Alloc& __a, _Args&&... __args) { return std::apply([&](auto&&... __xs) { return std::construct_at(__p, std::forward<decltype(__xs)>(__xs)...); }, std::uses_allocator_construction_args<_Tp>(__a, std::forward<_Args>(__args)...)); } } # 42 "/usr/include/c++/13/bits/memory_resource.h" 2 3 # 50 "/usr/include/c++/13/bits/memory_resource.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { class memory_resource { static constexpr size_t _S_max_align = alignof(max_align_t); public: memory_resource() = default; memory_resource(const memory_resource&) = default; virtual ~memory_resource(); memory_resource& operator=(const memory_resource&) = default; [[nodiscard]] void* allocate(size_t __bytes, size_t __alignment = _S_max_align) __attribute__((__returns_nonnull__,__alloc_size__(2),__alloc_align__(3))) { return ::operator new(__bytes, do_allocate(__bytes, __alignment)); } void deallocate(void* __p, size_t __bytes, size_t __alignment = _S_max_align) __attribute__((__nonnull__)) { return do_deallocate(__p, __bytes, __alignment); } [[nodiscard]] bool is_equal(const memory_resource& __other) const noexcept { return do_is_equal(__other); } private: virtual void* do_allocate(size_t __bytes, size_t __alignment) = 0; virtual void do_deallocate(void* __p, size_t __bytes, size_t __alignment) = 0; virtual bool do_is_equal(const memory_resource& __other) const noexcept = 0; }; [[nodiscard]] inline bool operator==(const memory_resource& __a, const memory_resource& __b) noexcept { return &__a == &__b || __a.is_equal(__b); } # 119 "/usr/include/c++/13/bits/memory_resource.h" 3 template<typename _Tp> class polymorphic_allocator { template<typename _Up> struct __not_pair { using type = void; }; template<typename _Up1, typename _Up2> struct __not_pair<pair<_Up1, _Up2>> { }; public: using value_type = _Tp; polymorphic_allocator() noexcept { extern memory_resource* get_default_resource() noexcept __attribute__((__returns_nonnull__)); _M_resource = get_default_resource(); } polymorphic_allocator(memory_resource* __r) noexcept __attribute__((__nonnull__)) : _M_resource(__r) { ; } polymorphic_allocator(const polymorphic_allocator& __other) = default; template<typename _Up> polymorphic_allocator(const polymorphic_allocator<_Up>& __x) noexcept : _M_resource(__x.resource()) { } polymorphic_allocator& operator=(const polymorphic_allocator&) = delete; [[nodiscard]] _Tp* allocate(size_t __n) __attribute__((__returns_nonnull__)) { if ((__gnu_cxx::__int_traits<size_t>::__max / sizeof(_Tp)) < __n) std::__throw_bad_array_new_length(); return static_cast<_Tp*>(_M_resource->allocate(__n * sizeof(_Tp), alignof(_Tp))); } void deallocate(_Tp* __p, size_t __n) noexcept __attribute__((__nonnull__)) { _M_resource->deallocate(__p, __n * sizeof(_Tp), alignof(_Tp)); } [[nodiscard]] void* allocate_bytes(size_t __nbytes, size_t __alignment = alignof(max_align_t)) { return _M_resource->allocate(__nbytes, __alignment); } void deallocate_bytes(void* __p, size_t __nbytes, size_t __alignment = alignof(max_align_t)) { _M_resource->deallocate(__p, __nbytes, __alignment); } template<typename _Up> [[nodiscard]] _Up* allocate_object(size_t __n = 1) { if ((__gnu_cxx::__int_traits<size_t>::__max / sizeof(_Up)) < __n) std::__throw_bad_array_new_length(); return static_cast<_Up*>(allocate_bytes(__n * sizeof(_Up), alignof(_Up))); } template<typename _Up> void deallocate_object(_Up* __p, size_t __n = 1) { deallocate_bytes(__p, __n * sizeof(_Up), alignof(_Up)); } template<typename _Up, typename... _CtorArgs> [[nodiscard]] _Up* new_object(_CtorArgs&&... __ctor_args) { _Up* __p = allocate_object<_Up>(); try { construct(__p, std::forward<_CtorArgs>(__ctor_args)...); } catch(...) { deallocate_object(__p); throw; } return __p; } template<typename _Up> void delete_object(_Up* __p) { __p->~_Up(); deallocate_object(__p); } # 297 "/usr/include/c++/13/bits/memory_resource.h" 3 template<typename _Tp1, typename... _Args> __attribute__((__nonnull__)) void construct(_Tp1* __p, _Args&&... __args) { std::uninitialized_construct_using_allocator(__p, *this, std::forward<_Args>(__args)...); } template<typename _Up> __attribute__ ((__deprecated__ ("use '" "allocator_traits::destroy" "' instead"))) __attribute__((__nonnull__)) void destroy(_Up* __p) { __p->~_Up(); } polymorphic_allocator select_on_container_copy_construction() const noexcept { return polymorphic_allocator(); } memory_resource* resource() const noexcept __attribute__((__returns_nonnull__)) { return _M_resource; } [[nodiscard]] friend bool operator==(const polymorphic_allocator& __a, const polymorphic_allocator& __b) noexcept { return *__a.resource() == *__b.resource(); } # 339 "/usr/include/c++/13/bits/memory_resource.h" 3 private: # 366 "/usr/include/c++/13/bits/memory_resource.h" 3 memory_resource* _M_resource; }; template<typename _Tp1, typename _Tp2> [[nodiscard]] inline bool operator==(const polymorphic_allocator<_Tp1>& __a, const polymorphic_allocator<_Tp2>& __b) noexcept { return *__a.resource() == *__b.resource(); } # 385 "/usr/include/c++/13/bits/memory_resource.h" 3 } template<typename _Alloc> struct allocator_traits; template<typename _Tp> struct allocator_traits<pmr::polymorphic_allocator<_Tp>> { using allocator_type = pmr::polymorphic_allocator<_Tp>; using value_type = _Tp; using pointer = _Tp*; using const_pointer = const _Tp*; using void_pointer = void*; using const_void_pointer = const void*; using difference_type = std::ptrdiff_t; using size_type = std::size_t; using propagate_on_container_copy_assignment = false_type; using propagate_on_container_move_assignment = false_type; using propagate_on_container_swap = false_type; static allocator_type select_on_container_copy_construction(const allocator_type&) noexcept { return allocator_type(); } using is_always_equal = false_type; template<typename _Up> using rebind_alloc = pmr::polymorphic_allocator<_Up>; template<typename _Up> using rebind_traits = allocator_traits<pmr::polymorphic_allocator<_Up>>; # 446 "/usr/include/c++/13/bits/memory_resource.h" 3 [[nodiscard]] static pointer allocate(allocator_type& __a, size_type __n) { return __a.allocate(__n); } # 461 "/usr/include/c++/13/bits/memory_resource.h" 3 [[nodiscard]] static pointer allocate(allocator_type& __a, size_type __n, const_void_pointer) { return __a.allocate(__n); } # 473 "/usr/include/c++/13/bits/memory_resource.h" 3 static void deallocate(allocator_type& __a, pointer __p, size_type __n) { __a.deallocate(__p, __n); } # 488 "/usr/include/c++/13/bits/memory_resource.h" 3 template<typename _Up, typename... _Args> static void construct(allocator_type& __a, _Up* __p, _Args&&... __args) { __a.construct(__p, std::forward<_Args>(__args)...); } # 500 "/usr/include/c++/13/bits/memory_resource.h" 3 template<typename _Up> static constexpr void destroy(allocator_type&, _Up* __p) noexcept(is_nothrow_destructible<_Up>::value) { __p->~_Up(); } static constexpr size_type max_size(const allocator_type&) noexcept { return size_t(-1) / sizeof(value_type); } }; } # 59 "/usr/include/c++/13/string" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { template<typename _CharT, typename _Traits = char_traits<_CharT>> using basic_string = std::basic_string<_CharT, _Traits, polymorphic_allocator<_CharT>>; using string = basic_string<char>; using u8string = basic_string<char8_t>; using u16string = basic_string<char16_t>; using u32string = basic_string<char32_t>; using wstring = basic_string<wchar_t>; } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits, typename _Alloc, typename _Predicate> constexpr inline typename basic_string<_CharT, _Traits, _Alloc>::size_type erase_if(basic_string<_CharT, _Traits, _Alloc>& __cont, _Predicate __pred) { using namespace __gnu_cxx; const auto __osz = __cont.size(); const auto __end = __cont.end(); auto __removed = std::__remove_if(__cont.begin(), __end, __ops::__pred_iter(std::ref(__pred))); __cont.erase(__removed, __end); return __osz - __cont.size(); } template<typename _CharT, typename _Traits, typename _Alloc, typename _Up> constexpr inline typename basic_string<_CharT, _Traits, _Alloc>::size_type erase(basic_string<_CharT, _Traits, _Alloc>& __cont, const _Up& __value) { using namespace __gnu_cxx; const auto __osz = __cont.size(); const auto __end = __cont.end(); auto __removed = std::__remove_if(__cont.begin(), __end, __ops::__iter_equals_val(__value)); __cont.erase(__removed, __end); return __osz - __cont.size(); } } # 6 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 # 1 "/usr/include/c++/13/vector" 1 3 # 58 "/usr/include/c++/13/vector" 3 # 59 "/usr/include/c++/13/vector" 3 # 1 "/usr/include/c++/13/bits/stl_uninitialized.h" 1 3 # 70 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 81 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _ValueType, typename _Tp> constexpr bool __check_constructible() { static_assert(is_constructible<_ValueType, _Tp>::value, "result type must be constructible from input type"); return true; } # 110 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _InputIterator, typename _ForwardIterator> constexpr _ForwardIterator __do_uninit_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { _ForwardIterator __cur = __result; try { for (; __first != __last; ++__first, (void)++__cur) std::_Construct(std::__addressof(*__cur), *__first); return __cur; } catch(...) { std::_Destroy(__result, __cur); throw; } } template<bool _TrivialValueTypes> struct __uninitialized_copy { template<typename _InputIterator, typename _ForwardIterator> static _ForwardIterator __uninit_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { return std::__do_uninit_copy(__first, __last, __result); } }; template<> struct __uninitialized_copy<true> { template<typename _InputIterator, typename _ForwardIterator> static _ForwardIterator __uninit_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { return std::copy(__first, __last, __result); } }; # 161 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _InputIterator, typename _ForwardIterator> inline _ForwardIterator uninitialized_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { typedef typename iterator_traits<_InputIterator>::value_type _ValueType1; typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType2; const bool __can_memmove = __is_trivial(_ValueType1); using _From = decltype(*__first); const bool __assignable = __is_trivial(_ValueType2) && __is_assignable(_ValueType2&, _From) && std::__check_constructible<_ValueType2, _From>(); return std::__uninitialized_copy<__can_memmove && __assignable>:: __uninit_copy(__first, __last, __result); } template<typename _ForwardIterator, typename _Tp> constexpr void __do_uninit_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { _ForwardIterator __cur = __first; try { for (; __cur != __last; ++__cur) std::_Construct(std::__addressof(*__cur), __x); } catch(...) { std::_Destroy(__first, __cur); throw; } } template<bool _TrivialValueType> struct __uninitialized_fill { template<typename _ForwardIterator, typename _Tp> static void __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { std::__do_uninit_fill(__first, __last, __x); } }; template<> struct __uninitialized_fill<true> { template<typename _ForwardIterator, typename _Tp> static void __uninit_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { std::fill(__first, __last, __x); } }; # 239 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _ForwardIterator, typename _Tp> inline void uninitialized_fill(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; const bool __can_fill = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>(); std::__uninitialized_fill<__can_fill>:: __uninit_fill(__first, __last, __x); } template<typename _ForwardIterator, typename _Size, typename _Tp> constexpr _ForwardIterator __do_uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { _ForwardIterator __cur = __first; try { for (; __n > 0; --__n, (void) ++__cur) std::_Construct(std::__addressof(*__cur), __x); return __cur; } catch(...) { std::_Destroy(__first, __cur); throw; } } template<bool _TrivialValueType> struct __uninitialized_fill_n { template<typename _ForwardIterator, typename _Size, typename _Tp> static _ForwardIterator __uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { return std::__do_uninit_fill_n(__first, __n, __x); } }; template<> struct __uninitialized_fill_n<true> { template<typename _ForwardIterator, typename _Size, typename _Tp> static _ForwardIterator __uninit_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { return std::fill_n(__first, __n, __x); } }; # 310 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _ForwardIterator, typename _Size, typename _Tp> inline _ForwardIterator uninitialized_fill_n(_ForwardIterator __first, _Size __n, const _Tp& __x) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; const bool __can_fill = __is_trivial(_ValueType) && __is_assignable(_ValueType&, const _Tp&) && std::__check_constructible<_ValueType, const _Tp&>() && __is_integer<_Size>::__value; return __uninitialized_fill_n<__can_fill>:: __uninit_fill_n(__first, __n, __x); } # 340 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _InputIterator, typename _ForwardIterator, typename _Allocator> constexpr _ForwardIterator __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) { _ForwardIterator __cur = __result; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __first != __last; ++__first, (void)++__cur) __traits::construct(__alloc, std::__addressof(*__cur), *__first); return __cur; } catch(...) { std::_Destroy(__result, __cur, __alloc); throw; } } template<typename _InputIterator, typename _ForwardIterator, typename _Tp> constexpr inline _ForwardIterator __uninitialized_copy_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, allocator<_Tp>&) { if (std::is_constant_evaluated()) return std::__do_uninit_copy(__first, __last, __result); return std::uninitialized_copy(__first, __last, __result); } template<typename _InputIterator, typename _ForwardIterator, typename _Allocator> constexpr inline _ForwardIterator __uninitialized_move_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) { return std::__uninitialized_copy_a(std::make_move_iterator(__first), std::make_move_iterator(__last), __result, __alloc); } template<typename _InputIterator, typename _ForwardIterator, typename _Allocator> constexpr inline _ForwardIterator __uninitialized_move_if_noexcept_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) { return std::__uninitialized_copy_a (std::__make_move_if_noexcept_iterator(__first), std::__make_move_if_noexcept_iterator(__last), __result, __alloc); } template<typename _ForwardIterator, typename _Tp, typename _Allocator> constexpr void __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x, _Allocator& __alloc) { _ForwardIterator __cur = __first; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __cur != __last; ++__cur) __traits::construct(__alloc, std::__addressof(*__cur), __x); } catch(...) { std::_Destroy(__first, __cur, __alloc); throw; } } template<typename _ForwardIterator, typename _Tp, typename _Tp2> constexpr inline void __uninitialized_fill_a(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __x, allocator<_Tp2>&) { if (std::is_constant_evaluated()) return std::__do_uninit_fill(__first, __last, __x); std::uninitialized_fill(__first, __last, __x); } template<typename _ForwardIterator, typename _Size, typename _Tp, typename _Allocator> constexpr _ForwardIterator __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, const _Tp& __x, _Allocator& __alloc) { _ForwardIterator __cur = __first; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __n > 0; --__n, (void) ++__cur) __traits::construct(__alloc, std::__addressof(*__cur), __x); return __cur; } catch(...) { std::_Destroy(__first, __cur, __alloc); throw; } } template<typename _ForwardIterator, typename _Size, typename _Tp, typename _Tp2> constexpr inline _ForwardIterator __uninitialized_fill_n_a(_ForwardIterator __first, _Size __n, const _Tp& __x, allocator<_Tp2>&) { if (std::is_constant_evaluated()) return std::__do_uninit_fill_n(__first, __n, __x); return std::uninitialized_fill_n(__first, __n, __x); } # 485 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _ForwardIterator, typename _Allocator> inline _ForwardIterator __uninitialized_copy_move(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _ForwardIterator __result, _Allocator& __alloc) { _ForwardIterator __mid = std::__uninitialized_copy_a(__first1, __last1, __result, __alloc); try { return std::__uninitialized_move_a(__first2, __last2, __mid, __alloc); } catch(...) { std::_Destroy(__result, __mid, __alloc); throw; } } template<typename _InputIterator1, typename _InputIterator2, typename _ForwardIterator, typename _Allocator> inline _ForwardIterator __uninitialized_move_copy(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _ForwardIterator __result, _Allocator& __alloc) { _ForwardIterator __mid = std::__uninitialized_move_a(__first1, __last1, __result, __alloc); try { return std::__uninitialized_copy_a(__first2, __last2, __mid, __alloc); } catch(...) { std::_Destroy(__result, __mid, __alloc); throw; } } template<typename _ForwardIterator, typename _Tp, typename _InputIterator, typename _Allocator> inline _ForwardIterator __uninitialized_fill_move(_ForwardIterator __result, _ForwardIterator __mid, const _Tp& __x, _InputIterator __first, _InputIterator __last, _Allocator& __alloc) { std::__uninitialized_fill_a(__result, __mid, __x, __alloc); try { return std::__uninitialized_move_a(__first, __last, __mid, __alloc); } catch(...) { std::_Destroy(__result, __mid, __alloc); throw; } } template<typename _InputIterator, typename _ForwardIterator, typename _Tp, typename _Allocator> inline void __uninitialized_move_fill(_InputIterator __first1, _InputIterator __last1, _ForwardIterator __first2, _ForwardIterator __last2, const _Tp& __x, _Allocator& __alloc) { _ForwardIterator __mid2 = std::__uninitialized_move_a(__first1, __last1, __first2, __alloc); try { std::__uninitialized_fill_a(__mid2, __last2, __x, __alloc); } catch(...) { std::_Destroy(__first2, __mid2, __alloc); throw; } } # 592 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<bool _TrivialValueType> struct __uninitialized_default_1 { template<typename _ForwardIterator> static void __uninit_default(_ForwardIterator __first, _ForwardIterator __last) { _ForwardIterator __cur = __first; try { for (; __cur != __last; ++__cur) std::_Construct(std::__addressof(*__cur)); } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_default_1<true> { template<typename _ForwardIterator> static void __uninit_default(_ForwardIterator __first, _ForwardIterator __last) { if (__first == __last) return; typename iterator_traits<_ForwardIterator>::value_type* __val = std::__addressof(*__first); std::_Construct(__val); if (++__first != __last) std::fill(__first, __last, *__val); } }; template<bool _TrivialValueType> struct __uninitialized_default_n_1 { template<typename _ForwardIterator, typename _Size> constexpr static _ForwardIterator __uninit_default_n(_ForwardIterator __first, _Size __n) { _ForwardIterator __cur = __first; try { for (; __n > 0; --__n, (void) ++__cur) std::_Construct(std::__addressof(*__cur)); return __cur; } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_default_n_1<true> { template<typename _ForwardIterator, typename _Size> constexpr static _ForwardIterator __uninit_default_n(_ForwardIterator __first, _Size __n) { if (__n > 0) { typename iterator_traits<_ForwardIterator>::value_type* __val = std::__addressof(*__first); std::_Construct(__val); ++__first; __first = std::fill_n(__first, __n - 1, *__val); } return __first; } }; template<typename _ForwardIterator> inline void __uninitialized_default(_ForwardIterator __first, _ForwardIterator __last) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; const bool __assignable = is_copy_assignable<_ValueType>::value; std::__uninitialized_default_1<__is_trivial(_ValueType) && __assignable>:: __uninit_default(__first, __last); } template<typename _ForwardIterator, typename _Size> constexpr inline _ForwardIterator __uninitialized_default_n(_ForwardIterator __first, _Size __n) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; constexpr bool __can_fill = __and_<is_integral<_Size>, is_copy_assignable<_ValueType>>::value; return __uninitialized_default_n_1<__is_trivial(_ValueType) && __can_fill>:: __uninit_default_n(__first, __n); } template<typename _ForwardIterator, typename _Allocator> void __uninitialized_default_a(_ForwardIterator __first, _ForwardIterator __last, _Allocator& __alloc) { _ForwardIterator __cur = __first; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __cur != __last; ++__cur) __traits::construct(__alloc, std::__addressof(*__cur)); } catch(...) { std::_Destroy(__first, __cur, __alloc); throw; } } template<typename _ForwardIterator, typename _Tp> inline void __uninitialized_default_a(_ForwardIterator __first, _ForwardIterator __last, allocator<_Tp>&) { std::__uninitialized_default(__first, __last); } template<typename _ForwardIterator, typename _Size, typename _Allocator> constexpr _ForwardIterator __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, _Allocator& __alloc) { _ForwardIterator __cur = __first; try { typedef __gnu_cxx::__alloc_traits<_Allocator> __traits; for (; __n > 0; --__n, (void) ++__cur) __traits::construct(__alloc, std::__addressof(*__cur)); return __cur; } catch(...) { std::_Destroy(__first, __cur, __alloc); throw; } } template<typename _ForwardIterator, typename _Size, typename _Tp> constexpr inline _ForwardIterator __uninitialized_default_n_a(_ForwardIterator __first, _Size __n, allocator<_Tp>&) { return std::__uninitialized_default_n(__first, __n); } template<bool _TrivialValueType> struct __uninitialized_default_novalue_1 { template<typename _ForwardIterator> static void __uninit_default_novalue(_ForwardIterator __first, _ForwardIterator __last) { _ForwardIterator __cur = __first; try { for (; __cur != __last; ++__cur) std::_Construct_novalue(std::__addressof(*__cur)); } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_default_novalue_1<true> { template<typename _ForwardIterator> static void __uninit_default_novalue(_ForwardIterator __first, _ForwardIterator __last) { } }; template<bool _TrivialValueType> struct __uninitialized_default_novalue_n_1 { template<typename _ForwardIterator, typename _Size> static _ForwardIterator __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) { _ForwardIterator __cur = __first; try { for (; __n > 0; --__n, (void) ++__cur) std::_Construct_novalue(std::__addressof(*__cur)); return __cur; } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_default_novalue_n_1<true> { template<typename _ForwardIterator, typename _Size> static _ForwardIterator __uninit_default_novalue_n(_ForwardIterator __first, _Size __n) { return std::next(__first, __n); } }; template<typename _ForwardIterator> inline void __uninitialized_default_novalue(_ForwardIterator __first, _ForwardIterator __last) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; std::__uninitialized_default_novalue_1< is_trivially_default_constructible<_ValueType>::value>:: __uninit_default_novalue(__first, __last); } template<typename _ForwardIterator, typename _Size> inline _ForwardIterator __uninitialized_default_novalue_n(_ForwardIterator __first, _Size __n) { typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; return __uninitialized_default_novalue_n_1< is_trivially_default_constructible<_ValueType>::value>:: __uninit_default_novalue_n(__first, __n); } template<typename _InputIterator, typename _Size, typename _ForwardIterator> _ForwardIterator __uninitialized_copy_n(_InputIterator __first, _Size __n, _ForwardIterator __result, input_iterator_tag) { _ForwardIterator __cur = __result; try { for (; __n > 0; --__n, (void) ++__first, ++__cur) std::_Construct(std::__addressof(*__cur), *__first); return __cur; } catch(...) { std::_Destroy(__result, __cur); throw; } } template<typename _RandomAccessIterator, typename _Size, typename _ForwardIterator> inline _ForwardIterator __uninitialized_copy_n(_RandomAccessIterator __first, _Size __n, _ForwardIterator __result, random_access_iterator_tag) { return std::uninitialized_copy(__first, __first + __n, __result); } template<typename _InputIterator, typename _Size, typename _ForwardIterator> pair<_InputIterator, _ForwardIterator> __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, _ForwardIterator __result, input_iterator_tag) { _ForwardIterator __cur = __result; try { for (; __n > 0; --__n, (void) ++__first, ++__cur) std::_Construct(std::__addressof(*__cur), *__first); return {__first, __cur}; } catch(...) { std::_Destroy(__result, __cur); throw; } } template<typename _RandomAccessIterator, typename _Size, typename _ForwardIterator> inline pair<_RandomAccessIterator, _ForwardIterator> __uninitialized_copy_n_pair(_RandomAccessIterator __first, _Size __n, _ForwardIterator __result, random_access_iterator_tag) { auto __second_res = uninitialized_copy(__first, __first + __n, __result); auto __first_res = std::next(__first, __n); return {__first_res, __second_res}; } # 941 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template<typename _InputIterator, typename _Size, typename _ForwardIterator> inline _ForwardIterator uninitialized_copy_n(_InputIterator __first, _Size __n, _ForwardIterator __result) { return std::__uninitialized_copy_n(__first, __n, __result, std::__iterator_category(__first)); } template<typename _InputIterator, typename _Size, typename _ForwardIterator> inline pair<_InputIterator, _ForwardIterator> __uninitialized_copy_n_pair(_InputIterator __first, _Size __n, _ForwardIterator __result) { return std::__uninitialized_copy_n_pair(__first, __n, __result, std::__iterator_category(__first)); } # 970 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template <typename _ForwardIterator> inline void uninitialized_default_construct(_ForwardIterator __first, _ForwardIterator __last) { __uninitialized_default_novalue(__first, __last); } # 985 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template <typename _ForwardIterator, typename _Size> inline _ForwardIterator uninitialized_default_construct_n(_ForwardIterator __first, _Size __count) { return __uninitialized_default_novalue_n(__first, __count); } template <typename _ForwardIterator> inline void uninitialized_value_construct(_ForwardIterator __first, _ForwardIterator __last) { return __uninitialized_default(__first, __last); } # 1013 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template <typename _ForwardIterator, typename _Size> inline _ForwardIterator uninitialized_value_construct_n(_ForwardIterator __first, _Size __count) { return __uninitialized_default_n(__first, __count); } # 1028 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template <typename _InputIterator, typename _ForwardIterator> inline _ForwardIterator uninitialized_move(_InputIterator __first, _InputIterator __last, _ForwardIterator __result) { return std::uninitialized_copy (std::make_move_iterator(__first), std::make_move_iterator(__last), __result); } # 1046 "/usr/include/c++/13/bits/stl_uninitialized.h" 3 template <typename _InputIterator, typename _Size, typename _ForwardIterator> inline pair<_InputIterator, _ForwardIterator> uninitialized_move_n(_InputIterator __first, _Size __count, _ForwardIterator __result) { auto __res = std::__uninitialized_copy_n_pair (std::make_move_iterator(__first), __count, __result); return {__res.first.base(), __res.second}; } template<typename _Tp, typename _Up, typename _Allocator> constexpr inline void __relocate_object_a(_Tp* __restrict __dest, _Up* __restrict __orig, _Allocator& __alloc) noexcept(noexcept(std::allocator_traits<_Allocator>::construct(__alloc, __dest, std::move(*__orig))) && noexcept(std::allocator_traits<_Allocator>::destroy( __alloc, std::__addressof(*__orig)))) { typedef std::allocator_traits<_Allocator> __traits; __traits::construct(__alloc, __dest, std::move(*__orig)); __traits::destroy(__alloc, std::__addressof(*__orig)); } template<typename _Tp, typename = void> struct __is_bitwise_relocatable : is_trivial<_Tp> { }; template <typename _InputIterator, typename _ForwardIterator, typename _Allocator> constexpr inline _ForwardIterator __relocate_a_1(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) noexcept(noexcept(std::__relocate_object_a(std::addressof(*__result), std::addressof(*__first), __alloc))) { typedef typename iterator_traits<_InputIterator>::value_type _ValueType; typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType2; static_assert(std::is_same<_ValueType, _ValueType2>::value, "relocation is only possible for values of the same type"); _ForwardIterator __cur = __result; for (; __first != __last; ++__first, (void)++__cur) std::__relocate_object_a(std::__addressof(*__cur), std::__addressof(*__first), __alloc); return __cur; } template <typename _Tp, typename _Up> constexpr inline __enable_if_t<std::__is_bitwise_relocatable<_Tp>::value, _Tp*> __relocate_a_1(_Tp* __first, _Tp* __last, _Tp* __result, [[__maybe_unused__]] allocator<_Up>& __alloc) noexcept { ptrdiff_t __count = __last - __first; if (__count > 0) { if (std::is_constant_evaluated()) { __gnu_cxx::__normal_iterator<_Tp*, void> __out(__result); __out = std::__relocate_a_1(__first, __last, __out, __alloc); return __out.base(); } __builtin_memmove(__result, __first, __count * sizeof(_Tp)); } return __result + __count; } template <typename _InputIterator, typename _ForwardIterator, typename _Allocator> constexpr inline _ForwardIterator __relocate_a(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _Allocator& __alloc) noexcept(noexcept(__relocate_a_1(std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result), __alloc))) { return std::__relocate_a_1(std::__niter_base(__first), std::__niter_base(__last), std::__niter_base(__result), __alloc); } } # 66 "/usr/include/c++/13/vector" 2 3 # 1 "/usr/include/c++/13/bits/stl_vector.h" 1 3 # 78 "/usr/include/c++/13/bits/stl_vector.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp, typename _Alloc> struct _Vector_base { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Tp>::other _Tp_alloc_type; typedef typename __gnu_cxx::__alloc_traits<_Tp_alloc_type>::pointer pointer; struct _Vector_impl_data { pointer _M_start; pointer _M_finish; pointer _M_end_of_storage; constexpr _Vector_impl_data() noexcept : _M_start(), _M_finish(), _M_end_of_storage() { } constexpr _Vector_impl_data(_Vector_impl_data&& __x) noexcept : _M_start(__x._M_start), _M_finish(__x._M_finish), _M_end_of_storage(__x._M_end_of_storage) { __x._M_start = __x._M_finish = __x._M_end_of_storage = pointer(); } constexpr void _M_copy_data(_Vector_impl_data const& __x) noexcept { _M_start = __x._M_start; _M_finish = __x._M_finish; _M_end_of_storage = __x._M_end_of_storage; } constexpr void _M_swap_data(_Vector_impl_data& __x) noexcept { _Vector_impl_data __tmp; __tmp._M_copy_data(*this); _M_copy_data(__x); __x._M_copy_data(__tmp); } }; struct _Vector_impl : public _Tp_alloc_type, public _Vector_impl_data { constexpr _Vector_impl() noexcept(is_nothrow_default_constructible<_Tp_alloc_type>::value) : _Tp_alloc_type() { } constexpr _Vector_impl(_Tp_alloc_type const& __a) noexcept : _Tp_alloc_type(__a) { } constexpr _Vector_impl(_Vector_impl&& __x) noexcept : _Tp_alloc_type(std::move(__x)), _Vector_impl_data(std::move(__x)) { } constexpr _Vector_impl(_Tp_alloc_type&& __a) noexcept : _Tp_alloc_type(std::move(__a)) { } constexpr _Vector_impl(_Tp_alloc_type&& __a, _Vector_impl&& __rv) noexcept : _Tp_alloc_type(std::move(__a)), _Vector_impl_data(std::move(__rv)) { } # 291 "/usr/include/c++/13/bits/stl_vector.h" 3 }; public: typedef _Alloc allocator_type; constexpr _Tp_alloc_type& _M_get_Tp_allocator() noexcept { return this->_M_impl; } constexpr const _Tp_alloc_type& _M_get_Tp_allocator() const noexcept { return this->_M_impl; } constexpr allocator_type get_allocator() const noexcept { return allocator_type(_M_get_Tp_allocator()); } _Vector_base() = default; constexpr _Vector_base(const allocator_type& __a) noexcept : _M_impl(__a) { } constexpr _Vector_base(size_t __n) : _M_impl() { _M_create_storage(__n); } constexpr _Vector_base(size_t __n, const allocator_type& __a) : _M_impl(__a) { _M_create_storage(__n); } _Vector_base(_Vector_base&&) = default; constexpr _Vector_base(_Tp_alloc_type&& __a) noexcept : _M_impl(std::move(__a)) { } constexpr _Vector_base(_Vector_base&& __x, const allocator_type& __a) : _M_impl(__a) { if (__x.get_allocator() == __a) this->_M_impl._M_swap_data(__x._M_impl); else { size_t __n = __x._M_impl._M_finish - __x._M_impl._M_start; _M_create_storage(__n); } } constexpr _Vector_base(const allocator_type& __a, _Vector_base&& __x) : _M_impl(_Tp_alloc_type(__a), std::move(__x._M_impl)) { } constexpr ~_Vector_base() noexcept { _M_deallocate(_M_impl._M_start, _M_impl._M_end_of_storage - _M_impl._M_start); } public: _Vector_impl _M_impl; constexpr pointer _M_allocate(size_t __n) { typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; return __n != 0 ? _Tr::allocate(_M_impl, __n) : pointer(); } constexpr void _M_deallocate(pointer __p, size_t __n) { typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Tr; if (__p) _Tr::deallocate(_M_impl, __p, __n); } protected: constexpr void _M_create_storage(size_t __n) { this->_M_impl._M_start = this->_M_allocate(__n); this->_M_impl._M_finish = this->_M_impl._M_start; this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; } }; # 424 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _Tp, typename _Alloc = std::allocator<_Tp> > class vector : protected _Vector_base<_Tp, _Alloc> { # 437 "/usr/include/c++/13/bits/stl_vector.h" 3 static_assert(is_same<typename remove_cv<_Tp>::type, _Tp>::value, "std::vector must have a non-const, non-volatile value_type"); static_assert(is_same<typename _Alloc::value_type, _Tp>::value, "std::vector must have the same value_type as its allocator"); typedef _Vector_base<_Tp, _Alloc> _Base; typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; typedef __gnu_cxx::__alloc_traits<_Tp_alloc_type> _Alloc_traits; public: typedef _Tp value_type; typedef typename _Base::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef __gnu_cxx::__normal_iterator<pointer, vector> iterator; typedef __gnu_cxx::__normal_iterator<const_pointer, vector> const_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Alloc allocator_type; private: static constexpr bool _S_nothrow_relocate(true_type) { return noexcept(std::__relocate_a(std::declval<pointer>(), std::declval<pointer>(), std::declval<pointer>(), std::declval<_Tp_alloc_type&>())); } static constexpr bool _S_nothrow_relocate(false_type) { return false; } static constexpr bool _S_use_relocate() { return _S_nothrow_relocate(__is_move_insertable<_Tp_alloc_type>{}); } static pointer _S_do_relocate(pointer __first, pointer __last, pointer __result, _Tp_alloc_type& __alloc, true_type) noexcept { return std::__relocate_a(__first, __last, __result, __alloc); } static pointer _S_do_relocate(pointer, pointer, pointer __result, _Tp_alloc_type&, false_type) noexcept { return __result; } static constexpr pointer _S_relocate(pointer __first, pointer __last, pointer __result, _Tp_alloc_type& __alloc) noexcept { return std::__relocate_a(__first, __last, __result, __alloc); } protected: using _Base::_M_allocate; using _Base::_M_deallocate; using _Base::_M_impl; using _Base::_M_get_Tp_allocator; public: vector() = default; # 537 "/usr/include/c++/13/bits/stl_vector.h" 3 explicit constexpr vector(const allocator_type& __a) noexcept : _Base(__a) { } # 551 "/usr/include/c++/13/bits/stl_vector.h" 3 explicit constexpr vector(size_type __n, const allocator_type& __a = allocator_type()) : _Base(_S_check_init_len(__n, __a), __a) { _M_default_initialize(__n); } # 565 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr vector(size_type __n, const value_type& __value, const allocator_type& __a = allocator_type()) : _Base(_S_check_init_len(__n, __a), __a) { _M_fill_initialize(__n, __value); } # 597 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr vector(const vector& __x) : _Base(__x.size(), _Alloc_traits::_S_select_on_copy(__x._M_get_Tp_allocator())) { this->_M_impl._M_finish = std::__uninitialized_copy_a(__x.begin(), __x.end(), this->_M_impl._M_start, _M_get_Tp_allocator()); } # 617 "/usr/include/c++/13/bits/stl_vector.h" 3 vector(vector&&) noexcept = default; constexpr vector(const vector& __x, const __type_identity_t<allocator_type>& __a) : _Base(__x.size(), __a) { this->_M_impl._M_finish = std::__uninitialized_copy_a(__x.begin(), __x.end(), this->_M_impl._M_start, _M_get_Tp_allocator()); } private: constexpr vector(vector&& __rv, const allocator_type& __m, true_type) noexcept : _Base(__m, std::move(__rv)) { } constexpr vector(vector&& __rv, const allocator_type& __m, false_type) : _Base(__m) { if (__rv.get_allocator() == __m) this->_M_impl._M_swap_data(__rv._M_impl); else if (!__rv.empty()) { this->_M_create_storage(__rv.size()); this->_M_impl._M_finish = std::__uninitialized_move_a(__rv.begin(), __rv.end(), this->_M_impl._M_start, _M_get_Tp_allocator()); __rv.clear(); } } public: constexpr vector(vector&& __rv, const __type_identity_t<allocator_type>& __m) noexcept( noexcept( vector(std::declval<vector&&>(), std::declval<const allocator_type&>(), std::declval<typename _Alloc_traits::is_always_equal>())) ) : vector(std::move(__rv), __m, typename _Alloc_traits::is_always_equal{}) { } # 674 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr vector(initializer_list<value_type> __l, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_range_initialize(__l.begin(), __l.end(), random_access_iterator_tag()); } # 701 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_range_initialize(__first, __last, std::__iterator_category(__first)); } # 729 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr ~vector() noexcept { std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); ; } # 746 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr vector& operator=(const vector& __x); # 761 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr vector& operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) { constexpr bool __move_storage = _Alloc_traits::_S_propagate_on_move_assign() || _Alloc_traits::_S_always_equal(); _M_move_assign(std::move(__x), __bool_constant<__move_storage>()); return *this; } # 783 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr vector& operator=(initializer_list<value_type> __l) { this->_M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); return *this; } # 803 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void assign(size_type __n, const value_type& __val) { _M_fill_assign(__n, __val); } # 821 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr void assign(_InputIterator __first, _InputIterator __last) { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } # 850 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void assign(initializer_list<value_type> __l) { this->_M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } using _Base::get_allocator; [[__nodiscard__]] constexpr iterator begin() noexcept { return iterator(this->_M_impl._M_start); } [[__nodiscard__]] constexpr const_iterator begin() const noexcept { return const_iterator(this->_M_impl._M_start); } [[__nodiscard__]] constexpr iterator end() noexcept { return iterator(this->_M_impl._M_finish); } [[__nodiscard__]] constexpr const_iterator end() const noexcept { return const_iterator(this->_M_impl._M_finish); } [[__nodiscard__]] constexpr reverse_iterator rbegin() noexcept { return reverse_iterator(end()); } [[__nodiscard__]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(end()); } [[__nodiscard__]] constexpr reverse_iterator rend() noexcept { return reverse_iterator(begin()); } [[__nodiscard__]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__]] constexpr const_iterator cbegin() const noexcept { return const_iterator(this->_M_impl._M_start); } [[__nodiscard__]] constexpr const_iterator cend() const noexcept { return const_iterator(this->_M_impl._M_finish); } [[__nodiscard__]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(end()); } [[__nodiscard__]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__]] constexpr size_type size() const noexcept { return size_type(this->_M_impl._M_finish - this->_M_impl._M_start); } [[__nodiscard__]] constexpr size_type max_size() const noexcept { return _S_max_size(_M_get_Tp_allocator()); } # 1008 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void resize(size_type __new_size) { if (__new_size > size()) _M_default_append(__new_size - size()); else if (__new_size < size()) _M_erase_at_end(this->_M_impl._M_start + __new_size); } # 1029 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void resize(size_type __new_size, const value_type& __x) { if (__new_size > size()) _M_fill_insert(end(), __new_size - size(), __x); else if (__new_size < size()) _M_erase_at_end(this->_M_impl._M_start + __new_size); } # 1063 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void shrink_to_fit() { _M_shrink_to_fit(); } [[__nodiscard__]] constexpr size_type capacity() const noexcept { return size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_start); } [[__nodiscard__]] constexpr bool empty() const noexcept { return begin() == end(); } # 1105 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void reserve(size_type __n); # 1121 "/usr/include/c++/13/bits/stl_vector.h" 3 [[__nodiscard__]] constexpr reference operator[](size_type __n) noexcept { ; return *(this->_M_impl._M_start + __n); } # 1140 "/usr/include/c++/13/bits/stl_vector.h" 3 [[__nodiscard__]] constexpr const_reference operator[](size_type __n) const noexcept { ; return *(this->_M_impl._M_start + __n); } protected: constexpr void _M_range_check(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("vector::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); } public: # 1173 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr reference at(size_type __n) { _M_range_check(__n); return (*this)[__n]; } # 1192 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr const_reference at(size_type __n) const { _M_range_check(__n); return (*this)[__n]; } [[__nodiscard__]] constexpr reference front() noexcept { ; return *begin(); } [[__nodiscard__]] constexpr const_reference front() const noexcept { ; return *begin(); } [[__nodiscard__]] constexpr reference back() noexcept { ; return *(end() - 1); } [[__nodiscard__]] constexpr const_reference back() const noexcept { ; return *(end() - 1); } # 1255 "/usr/include/c++/13/bits/stl_vector.h" 3 [[__nodiscard__]] constexpr _Tp* data() noexcept { return _M_data_ptr(this->_M_impl._M_start); } [[__nodiscard__]] constexpr const _Tp* data() const noexcept { return _M_data_ptr(this->_M_impl._M_start); } # 1276 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void push_back(const value_type& __x) { if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) { ; _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, __x); ++this->_M_impl._M_finish; ; } else _M_realloc_insert(end(), __x); } constexpr void push_back(value_type&& __x) { emplace_back(std::move(__x)); } template<typename... _Args> constexpr reference emplace_back(_Args&&... __args); # 1317 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void pop_back() noexcept { ; --this->_M_impl._M_finish; _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); ; } # 1340 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename... _Args> constexpr iterator emplace(const_iterator __position, _Args&&... __args) { return _M_emplace_aux(__position, std::forward<_Args>(__args)...); } # 1357 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr iterator insert(const_iterator __position, const value_type& __x); # 1388 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr iterator insert(const_iterator __position, value_type&& __x) { return _M_insert_rval(__position, std::move(__x)); } # 1406 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr iterator insert(const_iterator __position, initializer_list<value_type> __l) { auto __offset = __position - cbegin(); _M_range_insert(begin() + __offset, __l.begin(), __l.end(), std::random_access_iterator_tag()); return begin() + __offset; } # 1432 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr iterator insert(const_iterator __position, size_type __n, const value_type& __x) { difference_type __offset = __position - cbegin(); _M_fill_insert(begin() + __offset, __n, __x); return begin() + __offset; } # 1475 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr iterator insert(const_iterator __position, _InputIterator __first, _InputIterator __last) { difference_type __offset = __position - cbegin(); _M_range_insert(begin() + __offset, __first, __last, std::__iterator_category(__first)); return begin() + __offset; } # 1528 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr iterator erase(const_iterator __position) { return _M_erase(begin() + (__position - cbegin())); } # 1556 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr iterator erase(const_iterator __first, const_iterator __last) { const auto __beg = begin(); const auto __cbeg = cbegin(); return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); } # 1581 "/usr/include/c++/13/bits/stl_vector.h" 3 constexpr void swap(vector& __x) noexcept { do { if (std::__is_constant_evaluated() && !bool(_Alloc_traits::propagate_on_container_swap::value || _M_get_Tp_allocator() == __x._M_get_Tp_allocator())) __builtin_unreachable(); } while (false) ; this->_M_impl._M_swap_data(__x._M_impl); _Alloc_traits::_S_on_swap(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); } constexpr void clear() noexcept { _M_erase_at_end(this->_M_impl._M_start); } protected: template<typename _ForwardIterator> constexpr pointer _M_allocate_and_copy(size_type __n, _ForwardIterator __first, _ForwardIterator __last) { pointer __result = this->_M_allocate(__n); try { std::__uninitialized_copy_a(__first, __last, __result, _M_get_Tp_allocator()); return __result; } catch(...) { _M_deallocate(__result, __n); throw; } } # 1661 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _InputIterator> constexpr void _M_range_initialize(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { try { for (; __first != __last; ++__first) emplace_back(*__first); } catch(...) { clear(); throw; } } template<typename _ForwardIterator> constexpr void _M_range_initialize(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __n = std::distance(__first, __last); this->_M_impl._M_start = this->_M_allocate(_S_check_init_len(__n, _M_get_Tp_allocator())); this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; this->_M_impl._M_finish = std::__uninitialized_copy_a(__first, __last, this->_M_impl._M_start, _M_get_Tp_allocator()); } constexpr void _M_fill_initialize(size_type __n, const value_type& __value) { this->_M_impl._M_finish = std::__uninitialized_fill_n_a(this->_M_impl._M_start, __n, __value, _M_get_Tp_allocator()); } constexpr void _M_default_initialize(size_type __n) { this->_M_impl._M_finish = std::__uninitialized_default_n_a(this->_M_impl._M_start, __n, _M_get_Tp_allocator()); } # 1727 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _Integer> constexpr void _M_assign_dispatch(_Integer __n, _Integer __val, __true_type) { _M_fill_assign(__n, __val); } template<typename _InputIterator> constexpr void _M_assign_dispatch(_InputIterator __first, _InputIterator __last, __false_type) { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } template<typename _InputIterator> constexpr void _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag); template<typename _ForwardIterator> constexpr void _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); constexpr void _M_fill_assign(size_type __n, const value_type& __val); template<typename _Integer> constexpr void _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __val, __true_type) { _M_fill_insert(__pos, __n, __val); } template<typename _InputIterator> constexpr void _M_insert_dispatch(iterator __pos, _InputIterator __first, _InputIterator __last, __false_type) { _M_range_insert(__pos, __first, __last, std::__iterator_category(__first)); } template<typename _InputIterator> constexpr void _M_range_insert(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag); template<typename _ForwardIterator> constexpr void _M_range_insert(iterator __pos, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); constexpr void _M_fill_insert(iterator __pos, size_type __n, const value_type& __x); constexpr void _M_default_append(size_type __n); constexpr bool _M_shrink_to_fit(); # 1826 "/usr/include/c++/13/bits/stl_vector.h" 3 struct _Temporary_value { template<typename... _Args> constexpr explicit _Temporary_value(vector* __vec, _Args&&... __args) : _M_this(__vec) { _Alloc_traits::construct(_M_this->_M_impl, _M_ptr(), std::forward<_Args>(__args)...); } constexpr ~_Temporary_value() { _Alloc_traits::destroy(_M_this->_M_impl, _M_ptr()); } constexpr value_type& _M_val() noexcept { return _M_storage._M_val; } private: constexpr _Tp* _M_ptr() noexcept { return std::__addressof(_M_storage._M_val); } union _Storage { constexpr _Storage() : _M_byte() { } constexpr ~_Storage() { } _Storage& operator=(const _Storage&) = delete; unsigned char _M_byte; _Tp _M_val; }; vector* _M_this; _Storage _M_storage; }; template<typename _Arg> constexpr void _M_insert_aux(iterator __position, _Arg&& __arg); template<typename... _Args> constexpr void _M_realloc_insert(iterator __position, _Args&&... __args); constexpr iterator _M_insert_rval(const_iterator __position, value_type&& __v); template<typename... _Args> constexpr iterator _M_emplace_aux(const_iterator __position, _Args&&... __args); constexpr iterator _M_emplace_aux(const_iterator __position, value_type&& __v) { return _M_insert_rval(__position, std::move(__v)); } constexpr size_type _M_check_len(size_type __n, const char* __s) const { if (max_size() - size() < __n) __throw_length_error((__s)); const size_type __len = size() + (std::max)(size(), __n); return (__len < size() || __len > max_size()) ? max_size() : __len; } static constexpr size_type _S_check_init_len(size_type __n, const allocator_type& __a) { if (__n > _S_max_size(_Tp_alloc_type(__a))) __throw_length_error( ("cannot create std::vector larger than max_size()")); return __n; } static constexpr size_type _S_max_size(const _Tp_alloc_type& __a) noexcept { const size_t __diffmax = __gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp); const size_t __allocmax = _Alloc_traits::max_size(__a); return (std::min)(__diffmax, __allocmax); } constexpr void _M_erase_at_end(pointer __pos) noexcept { if (size_type __n = this->_M_impl._M_finish - __pos) { std::_Destroy(__pos, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish = __pos; ; } } constexpr iterator _M_erase(iterator __position); constexpr iterator _M_erase(iterator __first, iterator __last); private: constexpr void _M_move_assign(vector&& __x, true_type) noexcept { vector __tmp(get_allocator()); this->_M_impl._M_swap_data(__x._M_impl); __tmp._M_impl._M_swap_data(__x._M_impl); std::__alloc_on_move(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); } constexpr void _M_move_assign(vector&& __x, false_type) { if (__x._M_get_Tp_allocator() == this->_M_get_Tp_allocator()) _M_move_assign(std::move(__x), true_type()); else { this->_M_assign_aux(std::make_move_iterator(__x.begin()), std::make_move_iterator(__x.end()), std::random_access_iterator_tag()); __x.clear(); } } template<typename _Up> constexpr _Up* _M_data_ptr(_Up* __ptr) const noexcept { return __ptr; } template<typename _Ptr> constexpr typename std::pointer_traits<_Ptr>::element_type* _M_data_ptr(_Ptr __ptr) const { return empty() ? nullptr : std::__to_address(__ptr); } # 2012 "/usr/include/c++/13/bits/stl_vector.h" 3 }; template<typename _InputIterator, typename _ValT = typename iterator_traits<_InputIterator>::value_type, typename _Allocator = allocator<_ValT>, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> vector(_InputIterator, _InputIterator, _Allocator = _Allocator()) -> vector<_ValT, _Allocator>; # 2034 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _Tp, typename _Alloc> constexpr inline bool operator==(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return (__x.size() == __y.size() && std::equal(__x.begin(), __x.end(), __y.begin())); } # 2053 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _Tp, typename _Alloc> constexpr inline __detail::__synth3way_t<_Tp> operator<=>(const vector<_Tp, _Alloc>& __x, const vector<_Tp, _Alloc>& __y) { return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), __detail::__synth3way); } # 2106 "/usr/include/c++/13/bits/stl_vector.h" 3 template<typename _Tp, typename _Alloc> constexpr inline void swap(vector<_Tp, _Alloc>& __x, vector<_Tp, _Alloc>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } namespace __detail::__variant { template<typename> struct _Never_valueless_alt; template<typename _Tp, typename _Alloc> struct _Never_valueless_alt<std::vector<_Tp, _Alloc>> : std::is_nothrow_move_assignable<std::vector<_Tp, _Alloc>> { }; } } # 67 "/usr/include/c++/13/vector" 2 3 # 1 "/usr/include/c++/13/bits/stl_bvector.h" 1 3 # 64 "/usr/include/c++/13/bits/stl_bvector.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { typedef unsigned long _Bit_type; enum { _S_word_bit = int(8 * sizeof(_Bit_type)) }; __attribute__((__nonnull__)) constexpr void __fill_bvector_n(_Bit_type*, size_t, bool) noexcept; struct _Bit_reference { _Bit_type * _M_p; _Bit_type _M_mask; constexpr _Bit_reference(_Bit_type * __x, _Bit_type __y) : _M_p(__x), _M_mask(__y) { } constexpr _Bit_reference() noexcept : _M_p(0), _M_mask(0) { } _Bit_reference(const _Bit_reference&) = default; [[__nodiscard__]] constexpr operator bool() const noexcept { return !!(*_M_p & _M_mask); } constexpr _Bit_reference& operator=(bool __x) noexcept { if (__x) *_M_p |= _M_mask; else *_M_p &= ~_M_mask; return *this; } # 121 "/usr/include/c++/13/bits/stl_bvector.h" 3 constexpr _Bit_reference& operator=(const _Bit_reference& __x) noexcept { return *this = bool(__x); } [[__nodiscard__]] constexpr bool operator==(const _Bit_reference& __x) const { return bool(*this) == bool(__x); } [[__nodiscard__]] constexpr bool operator<(const _Bit_reference& __x) const { return !bool(*this) && bool(__x); } constexpr void flip() noexcept { *_M_p ^= _M_mask; } constexpr friend void swap(_Bit_reference __x, _Bit_reference __y) noexcept { bool __tmp = __x; __x = __y; __y = __tmp; } constexpr friend void swap(_Bit_reference __x, bool& __y) noexcept { bool __tmp = __x; __x = __y; __y = __tmp; } constexpr friend void swap(bool& __x, _Bit_reference __y) noexcept { bool __tmp = __x; __x = __y; __y = __tmp; } }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" struct _Bit_iterator_base : public std::iterator<std::random_access_iterator_tag, bool> { _Bit_type * _M_p; unsigned int _M_offset; constexpr _Bit_iterator_base(_Bit_type * __x, unsigned int __y) : _M_p(__x), _M_offset(__y) { } constexpr void _M_bump_up() { if (_M_offset++ == int(_S_word_bit) - 1) { _M_offset = 0; ++_M_p; } } constexpr void _M_bump_down() { if (_M_offset-- == 0) { _M_offset = int(_S_word_bit) - 1; --_M_p; } } constexpr void _M_incr(ptrdiff_t __i) { difference_type __n = __i + _M_offset; _M_p += __n / int(_S_word_bit); __n = __n % int(_S_word_bit); if (__n < 0) { __n += int(_S_word_bit); --_M_p; } _M_offset = static_cast<unsigned int>(__n); } [[__nodiscard__]] friend constexpr bool operator==(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) { return __x._M_p == __y._M_p && __x._M_offset == __y._M_offset; } [[nodiscard]] friend constexpr strong_ordering operator<=>(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) noexcept { if (const auto __cmp = __x._M_p <=> __y._M_p; __cmp != 0) return __cmp; return __x._M_offset <=> __y._M_offset; } # 266 "/usr/include/c++/13/bits/stl_bvector.h" 3 friend constexpr ptrdiff_t operator-(const _Bit_iterator_base& __x, const _Bit_iterator_base& __y) { return (int(_S_word_bit) * (__x._M_p - __y._M_p) + __x._M_offset - __y._M_offset); } }; #pragma GCC diagnostic pop struct _Bit_iterator : public _Bit_iterator_base { typedef _Bit_reference reference; typedef void pointer; typedef _Bit_iterator iterator; constexpr _Bit_iterator() : _Bit_iterator_base(0, 0) { } constexpr _Bit_iterator(_Bit_type * __x, unsigned int __y) : _Bit_iterator_base(__x, __y) { } constexpr iterator _M_const_cast() const { return *this; } [[__nodiscard__]] constexpr reference operator*() const { return reference(_M_p, 1UL << _M_offset); } constexpr iterator& operator++() { _M_bump_up(); return *this; } constexpr iterator operator++(int) { iterator __tmp = *this; _M_bump_up(); return __tmp; } constexpr iterator& operator--() { _M_bump_down(); return *this; } constexpr iterator operator--(int) { iterator __tmp = *this; _M_bump_down(); return __tmp; } constexpr iterator& operator+=(difference_type __i) { _M_incr(__i); return *this; } constexpr iterator& operator-=(difference_type __i) { *this += -__i; return *this; } [[__nodiscard__]] constexpr reference operator[](difference_type __i) const { return *(*this + __i); } [[__nodiscard__]] friend constexpr iterator operator+(const iterator& __x, difference_type __n) { iterator __tmp = __x; __tmp += __n; return __tmp; } [[__nodiscard__]] friend constexpr iterator operator+(difference_type __n, const iterator& __x) { return __x + __n; } [[__nodiscard__]] friend constexpr iterator operator-(const iterator& __x, difference_type __n) { iterator __tmp = __x; __tmp -= __n; return __tmp; } }; struct _Bit_const_iterator : public _Bit_iterator_base { typedef bool reference; typedef bool const_reference; typedef void pointer; typedef _Bit_const_iterator const_iterator; constexpr _Bit_const_iterator() : _Bit_iterator_base(0, 0) { } constexpr _Bit_const_iterator(_Bit_type * __x, unsigned int __y) : _Bit_iterator_base(__x, __y) { } constexpr _Bit_const_iterator(const _Bit_iterator& __x) : _Bit_iterator_base(__x._M_p, __x._M_offset) { } constexpr _Bit_iterator _M_const_cast() const { return _Bit_iterator(_M_p, _M_offset); } [[__nodiscard__]] constexpr const_reference operator*() const { return _Bit_reference(_M_p, 1UL << _M_offset); } constexpr const_iterator& operator++() { _M_bump_up(); return *this; } constexpr const_iterator operator++(int) { const_iterator __tmp = *this; _M_bump_up(); return __tmp; } constexpr const_iterator& operator--() { _M_bump_down(); return *this; } constexpr const_iterator operator--(int) { const_iterator __tmp = *this; _M_bump_down(); return __tmp; } constexpr const_iterator& operator+=(difference_type __i) { _M_incr(__i); return *this; } constexpr const_iterator& operator-=(difference_type __i) { *this += -__i; return *this; } [[__nodiscard__]] constexpr const_reference operator[](difference_type __i) const { return *(*this + __i); } [[__nodiscard__]] friend constexpr const_iterator operator+(const const_iterator& __x, difference_type __n) { const_iterator __tmp = __x; __tmp += __n; return __tmp; } [[__nodiscard__]] friend constexpr const_iterator operator-(const const_iterator& __x, difference_type __n) { const_iterator __tmp = __x; __tmp -= __n; return __tmp; } [[__nodiscard__]] friend constexpr const_iterator operator+(difference_type __n, const const_iterator& __x) { return __x + __n; } }; template<typename _Alloc> struct _Bvector_base { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Bit_type>::other _Bit_alloc_type; typedef typename __gnu_cxx::__alloc_traits<_Bit_alloc_type> _Bit_alloc_traits; typedef typename _Bit_alloc_traits::pointer _Bit_pointer; struct _Bvector_impl_data { _Bit_iterator _M_start; # 514 "/usr/include/c++/13/bits/stl_bvector.h" 3 _Bit_iterator _M_finish; _Bit_pointer _M_end_of_storage; constexpr _Bvector_impl_data() noexcept : _M_start(), _M_finish(), _M_end_of_storage() { } _Bvector_impl_data(const _Bvector_impl_data&) = default; _Bvector_impl_data& operator=(const _Bvector_impl_data&) = default; constexpr _Bvector_impl_data(_Bvector_impl_data&& __x) noexcept : _Bvector_impl_data(__x) { __x._M_reset(); } constexpr void _M_move_data(_Bvector_impl_data&& __x) noexcept { *this = __x; __x._M_reset(); } constexpr void _M_reset() noexcept { *this = _Bvector_impl_data(); } constexpr void _M_swap_data(_Bvector_impl_data& __x) noexcept { std::swap(*this, __x); } }; struct _Bvector_impl : public _Bit_alloc_type, public _Bvector_impl_data { constexpr _Bvector_impl() noexcept(is_nothrow_default_constructible<_Bit_alloc_type>::value) : _Bit_alloc_type() { } constexpr _Bvector_impl(const _Bit_alloc_type& __a) noexcept : _Bit_alloc_type(__a) { } constexpr _Bvector_impl(_Bvector_impl&& __x) noexcept : _Bit_alloc_type(std::move(__x)), _Bvector_impl_data(std::move(__x)) { } constexpr _Bvector_impl(_Bit_alloc_type&& __a, _Bvector_impl&& __x) noexcept : _Bit_alloc_type(std::move(__a)), _Bvector_impl_data(std::move(__x)) { } constexpr _Bit_type* _M_end_addr() const noexcept { if (this->_M_end_of_storage) return std::__addressof(this->_M_end_of_storage[-1]) + 1; return 0; } }; public: typedef _Alloc allocator_type; constexpr _Bit_alloc_type& _M_get_Bit_allocator() noexcept { return this->_M_impl; } constexpr const _Bit_alloc_type& _M_get_Bit_allocator() const noexcept { return this->_M_impl; } constexpr allocator_type get_allocator() const noexcept { return allocator_type(_M_get_Bit_allocator()); } _Bvector_base() = default; constexpr _Bvector_base(const allocator_type& __a) : _M_impl(__a) { } _Bvector_base(_Bvector_base&&) = default; constexpr _Bvector_base(_Bvector_base&& __x, const allocator_type& __a) noexcept : _M_impl(_Bit_alloc_type(__a), std::move(__x._M_impl)) { } constexpr ~_Bvector_base() { this->_M_deallocate(); } protected: _Bvector_impl _M_impl; constexpr _Bit_pointer _M_allocate(size_t __n) { _Bit_pointer __p = _Bit_alloc_traits::allocate(_M_impl, _S_nword(__n)); if (std::is_constant_evaluated()) { __n = _S_nword(__n); for (size_t __i = 0; __i < __n; ++__i) __p[__i] = 0ul; } return __p; } constexpr void _M_deallocate() { if (_M_impl._M_start._M_p) { const size_t __n = _M_impl._M_end_addr() - _M_impl._M_start._M_p; _Bit_alloc_traits::deallocate(_M_impl, _M_impl._M_end_of_storage - __n, __n); _M_impl._M_reset(); } } constexpr void _M_move_data(_Bvector_base&& __x) noexcept { _M_impl._M_move_data(std::move(__x._M_impl)); } constexpr static size_t _S_nword(size_t __n) { return (__n + int(_S_word_bit) - 1) / int(_S_word_bit); } }; # 703 "/usr/include/c++/13/bits/stl_bvector.h" 3 template<typename _Alloc> class vector<bool, _Alloc> : protected _Bvector_base<_Alloc> { typedef _Bvector_base<_Alloc> _Base; typedef typename _Base::_Bit_pointer _Bit_pointer; typedef typename _Base::_Bit_alloc_traits _Bit_alloc_traits; friend struct std::hash<vector>; public: typedef bool value_type; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Bit_reference reference; typedef bool const_reference; typedef _Bit_reference* pointer; typedef const bool* const_pointer; typedef _Bit_iterator iterator; typedef _Bit_const_iterator const_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; typedef _Alloc allocator_type; constexpr allocator_type get_allocator() const { return _Base::get_allocator(); } protected: using _Base::_M_allocate; using _Base::_M_deallocate; using _Base::_S_nword; using _Base::_M_get_Bit_allocator; public: vector() = default; constexpr explicit vector(const allocator_type& __a) : _Base(__a) { } constexpr explicit vector(size_type __n, const allocator_type& __a = allocator_type()) : vector(__n, false, __a) { } constexpr vector(size_type __n, const bool& __value, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_initialize(__n); _M_initialize_value(__value); } constexpr vector(const vector& __x) : _Base(_Bit_alloc_traits::_S_select_on_copy(__x._M_get_Bit_allocator())) { _M_initialize(__x.size()); _M_copy_aligned(__x.begin(), __x.end(), begin()); } vector(vector&&) = default; private: constexpr vector(vector&& __x, const allocator_type& __a, true_type) noexcept : _Base(std::move(__x), __a) { } constexpr vector(vector&& __x, const allocator_type& __a, false_type) : _Base(__a) { if (__x.get_allocator() == __a) this->_M_move_data(std::move(__x)); else { _M_initialize(__x.size()); _M_copy_aligned(__x.begin(), __x.end(), begin()); __x.clear(); } } public: constexpr vector(vector&& __x, const __type_identity_t<allocator_type>& __a) noexcept(_Bit_alloc_traits::_S_always_equal()) : vector(std::move(__x), __a, typename _Bit_alloc_traits::is_always_equal{}) { } constexpr vector(const vector& __x, const __type_identity_t<allocator_type>& __a) : _Base(__a) { _M_initialize(__x.size()); _M_copy_aligned(__x.begin(), __x.end(), begin()); } constexpr vector(initializer_list<bool> __l, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_initialize_range(__l.begin(), __l.end(), random_access_iterator_tag()); } template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr vector(_InputIterator __first, _InputIterator __last, const allocator_type& __a = allocator_type()) : _Base(__a) { _M_initialize_range(__first, __last, std::__iterator_category(__first)); } # 852 "/usr/include/c++/13/bits/stl_bvector.h" 3 constexpr ~vector() noexcept { } constexpr vector& operator=(const vector& __x) { if (&__x == this) return *this; if (_Bit_alloc_traits::_S_propagate_on_copy_assign()) { if (this->_M_get_Bit_allocator() != __x._M_get_Bit_allocator()) { this->_M_deallocate(); std::__alloc_on_copy(_M_get_Bit_allocator(), __x._M_get_Bit_allocator()); _M_initialize(__x.size()); } else std::__alloc_on_copy(_M_get_Bit_allocator(), __x._M_get_Bit_allocator()); } if (__x.size() > capacity()) { this->_M_deallocate(); _M_initialize(__x.size()); } this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), begin()); return *this; } constexpr vector& operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move()) { if (_Bit_alloc_traits::_S_propagate_on_move_assign() || this->_M_get_Bit_allocator() == __x._M_get_Bit_allocator()) { this->_M_deallocate(); this->_M_move_data(std::move(__x)); std::__alloc_on_move(_M_get_Bit_allocator(), __x._M_get_Bit_allocator()); } else { if (__x.size() > capacity()) { this->_M_deallocate(); _M_initialize(__x.size()); } this->_M_impl._M_finish = _M_copy_aligned(__x.begin(), __x.end(), begin()); __x.clear(); } return *this; } constexpr vector& operator=(initializer_list<bool> __l) { this->assign(__l.begin(), __l.end()); return *this; } constexpr void assign(size_type __n, const bool& __x) { _M_fill_assign(__n, __x); } template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr void assign(_InputIterator __first, _InputIterator __last) { _M_assign_aux(__first, __last, std::__iterator_category(__first)); } # 950 "/usr/include/c++/13/bits/stl_bvector.h" 3 constexpr void assign(initializer_list<bool> __l) { _M_assign_aux(__l.begin(), __l.end(), random_access_iterator_tag()); } [[__nodiscard__]] constexpr iterator begin() noexcept { return iterator(this->_M_impl._M_start._M_p, 0); } [[__nodiscard__]] constexpr const_iterator begin() const noexcept { return const_iterator(this->_M_impl._M_start._M_p, 0); } [[__nodiscard__]] constexpr iterator end() noexcept { return this->_M_impl._M_finish; } [[__nodiscard__]] constexpr const_iterator end() const noexcept { return this->_M_impl._M_finish; } [[__nodiscard__]] constexpr reverse_iterator rbegin() noexcept { return reverse_iterator(end()); } [[__nodiscard__]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(end()); } [[__nodiscard__]] constexpr reverse_iterator rend() noexcept { return reverse_iterator(begin()); } [[__nodiscard__]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__]] constexpr const_iterator cbegin() const noexcept { return const_iterator(this->_M_impl._M_start._M_p, 0); } [[__nodiscard__]] constexpr const_iterator cend() const noexcept { return this->_M_impl._M_finish; } [[__nodiscard__]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(end()); } [[__nodiscard__]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__]] constexpr size_type size() const noexcept { return size_type(end() - begin()); } [[__nodiscard__]] constexpr size_type max_size() const noexcept { const size_type __isize = __gnu_cxx::__numeric_traits<difference_type>::__max - int(_S_word_bit) + 1; const size_type __asize = _Bit_alloc_traits::max_size(_M_get_Bit_allocator()); return (__asize <= __isize / int(_S_word_bit) ? __asize * int(_S_word_bit) : __isize); } [[__nodiscard__]] constexpr size_type capacity() const noexcept { return size_type(const_iterator(this->_M_impl._M_end_addr(), 0) - begin()); } [[__nodiscard__]] constexpr bool empty() const noexcept { return begin() == end(); } [[__nodiscard__]] constexpr reference operator[](size_type __n) { return begin()[__n]; } [[__nodiscard__]] constexpr const_reference operator[](size_type __n) const { return begin()[__n]; } protected: constexpr void _M_range_check(size_type __n) const { if (__n >= this->size()) __throw_out_of_range_fmt(("vector<bool>::_M_range_check: __n " "(which is %zu) >= this->size() " "(which is %zu)") , __n, this->size()); } public: constexpr reference at(size_type __n) { _M_range_check(__n); return (*this)[__n]; } constexpr const_reference at(size_type __n) const { _M_range_check(__n); return (*this)[__n]; } constexpr void reserve(size_type __n) { if (__n > max_size()) __throw_length_error(("vector::reserve")); if (capacity() < __n) _M_reallocate(__n); } [[__nodiscard__]] constexpr reference front() { return *begin(); } [[__nodiscard__]] constexpr const_reference front() const { return *begin(); } [[__nodiscard__]] constexpr reference back() { return *(end() - 1); } [[__nodiscard__]] constexpr const_reference back() const { return *(end() - 1); } constexpr void push_back(bool __x) { if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) *this->_M_impl._M_finish++ = __x; else _M_insert_aux(end(), __x); } constexpr void swap(vector& __x) noexcept { do { if (std::__is_constant_evaluated() && !bool(_Bit_alloc_traits::propagate_on_container_swap::value || _M_get_Bit_allocator() == __x._M_get_Bit_allocator())) __builtin_unreachable(); } while (false) ; this->_M_impl._M_swap_data(__x._M_impl); _Bit_alloc_traits::_S_on_swap(_M_get_Bit_allocator(), __x._M_get_Bit_allocator()); } constexpr static void swap(reference __x, reference __y) noexcept { bool __tmp = __x; __x = __y; __y = __tmp; } constexpr iterator insert(const_iterator __position, const bool& __x) { const difference_type __n = __position - begin(); if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr() && __position == end()) *this->_M_impl._M_finish++ = __x; else _M_insert_aux(__position._M_const_cast(), __x); return begin() + __n; } __attribute__ ((__deprecated__ ("use '" "insert(position, false)" "' instead"))) iterator insert(const_iterator __position) { return this->insert(__position._M_const_cast(), false); } template<typename _InputIterator, typename = std::_RequireInputIter<_InputIterator>> constexpr iterator insert(const_iterator __position, _InputIterator __first, _InputIterator __last) { difference_type __offset = __position - cbegin(); _M_insert_range(__position._M_const_cast(), __first, __last, std::__iterator_category(__first)); return begin() + __offset; } # 1200 "/usr/include/c++/13/bits/stl_bvector.h" 3 constexpr iterator insert(const_iterator __position, size_type __n, const bool& __x) { difference_type __offset = __position - cbegin(); _M_fill_insert(__position._M_const_cast(), __n, __x); return begin() + __offset; } constexpr iterator insert(const_iterator __p, initializer_list<bool> __l) { return this->insert(__p, __l.begin(), __l.end()); } constexpr void pop_back() { --this->_M_impl._M_finish; } constexpr iterator erase(const_iterator __position) { return _M_erase(__position._M_const_cast()); } constexpr iterator erase(const_iterator __first, const_iterator __last) { return _M_erase(__first._M_const_cast(), __last._M_const_cast()); } constexpr void resize(size_type __new_size, bool __x = bool()) { if (__new_size < size()) _M_erase_at_end(begin() + difference_type(__new_size)); else insert(end(), __new_size - size(), __x); } constexpr void shrink_to_fit() { _M_shrink_to_fit(); } constexpr void flip() noexcept { _Bit_type * const __end = this->_M_impl._M_end_addr(); for (_Bit_type * __p = this->_M_impl._M_start._M_p; __p != __end; ++__p) *__p = ~*__p; } constexpr void clear() noexcept { _M_erase_at_end(begin()); } template<typename... _Args> constexpr reference emplace_back(_Args&&... __args) { push_back(bool(__args...)); return back(); } template<typename... _Args> constexpr iterator emplace(const_iterator __pos, _Args&&... __args) { return insert(__pos, bool(__args...)); } protected: constexpr iterator _M_copy_aligned(const_iterator __first, const_iterator __last, iterator __result) { _Bit_type* __q = std::copy(__first._M_p, __last._M_p, __result._M_p); return std::copy(const_iterator(__last._M_p, 0), __last, iterator(__q, 0)); } constexpr void _M_initialize(size_type __n) { if (__n) { _Bit_pointer __q = this->_M_allocate(__n); this->_M_impl._M_end_of_storage = __q + _S_nword(__n); iterator __start = iterator(std::__addressof(*__q), 0); this->_M_impl._M_start = __start; this->_M_impl._M_finish = __start + difference_type(__n); } } constexpr void _M_initialize_value(bool __x) noexcept { if (_Bit_type* __p = this->_M_impl._M_start._M_p) __fill_bvector_n(__p, this->_M_impl._M_end_addr() - __p, __x); } constexpr void _M_reallocate(size_type __n); constexpr bool _M_shrink_to_fit(); # 1361 "/usr/include/c++/13/bits/stl_bvector.h" 3 template<typename _InputIterator> constexpr void _M_initialize_range(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { for (; __first != __last; ++__first) push_back(*__first); } template<typename _ForwardIterator> constexpr void _M_initialize_range(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __n = std::distance(__first, __last); _M_initialize(__n); std::copy(__first, __last, begin()); } # 1397 "/usr/include/c++/13/bits/stl_bvector.h" 3 constexpr void _M_fill_assign(size_t __n, bool __x) { if (__n > size()) { _M_initialize_value(__x); insert(end(), __n - size(), __x); } else { _M_erase_at_end(begin() + __n); _M_initialize_value(__x); } } template<typename _InputIterator> constexpr void _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { iterator __cur = begin(); for (; __first != __last && __cur != end(); ++__cur, (void)++__first) *__cur = *__first; if (__first == __last) _M_erase_at_end(__cur); else insert(end(), __first, __last); } template<typename _ForwardIterator> constexpr void _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __len = std::distance(__first, __last); if (__len < size()) _M_erase_at_end(std::copy(__first, __last, begin())); else { _ForwardIterator __mid = __first; std::advance(__mid, size()); std::copy(__first, __mid, begin()); insert(end(), __mid, __last); } } # 1464 "/usr/include/c++/13/bits/stl_bvector.h" 3 constexpr void _M_fill_insert(iterator __position, size_type __n, bool __x); template<typename _InputIterator> constexpr void _M_insert_range(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag) { for (; __first != __last; ++__first) { __pos = insert(__pos, *__first); ++__pos; } } template<typename _ForwardIterator> constexpr void _M_insert_range(iterator __position, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag); constexpr void _M_insert_aux(iterator __position, bool __x); constexpr size_type _M_check_len(size_type __n, const char* __s) const { if (max_size() - size() < __n) __throw_length_error((__s)); const size_type __len = size() + std::max(size(), __n); return (__len < size() || __len > max_size()) ? max_size() : __len; } constexpr void _M_erase_at_end(iterator __pos) { this->_M_impl._M_finish = __pos; } constexpr iterator _M_erase(iterator __pos); constexpr iterator _M_erase(iterator __first, iterator __last); protected: void data() = delete; }; constexpr inline void __fill_bvector(_Bit_type* __v, unsigned int __first, unsigned int __last, bool __x) noexcept { const _Bit_type __fmask = ~0ul << __first; const _Bit_type __lmask = ~0ul >> (_S_word_bit - __last); const _Bit_type __mask = __fmask & __lmask; if (__x) *__v |= __mask; else *__v &= ~__mask; } __attribute__((__nonnull__)) constexpr inline void __fill_bvector_n(_Bit_type* __p, size_t __n, bool __x) noexcept { if (std::is_constant_evaluated()) { for (size_t __i = 0; __i < __n; ++__i) __p[__i] = __x ? ~0ul : 0ul; return; } __builtin_memset(__p, __x ? ~0 : 0, __n * sizeof(_Bit_type)); } constexpr inline void __fill_a1(std::_Bit_iterator __first, std::_Bit_iterator __last, const bool& __x) { if (__first._M_p != __last._M_p) { _Bit_type* __first_p = __first._M_p; if (__first._M_offset != 0) __fill_bvector(__first_p++, __first._M_offset, _S_word_bit, __x); __fill_bvector_n(__first_p, __last._M_p - __first_p, __x); if (__last._M_offset != 0) __fill_bvector(__last._M_p, 0, __last._M_offset, __x); } else if (__first._M_offset != __last._M_offset) __fill_bvector(__first._M_p, __first._M_offset, __last._M_offset, __x); } template<typename _Alloc> struct hash<std::vector<bool, _Alloc>> : public __hash_base<size_t, std::vector<bool, _Alloc>> { size_t operator()(const std::vector<bool, _Alloc>&) const noexcept; }; } # 68 "/usr/include/c++/13/vector" 2 3 # 1 "/usr/include/c++/13/bits/vector.tcc" 1 3 # 59 "/usr/include/c++/13/bits/vector.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp, typename _Alloc> constexpr void vector<_Tp, _Alloc>:: reserve(size_type __n) { if (__n > this->max_size()) __throw_length_error(("vector::reserve")); if (this->capacity() < __n) { const size_type __old_size = size(); pointer __tmp; if constexpr (_S_use_relocate()) { __tmp = this->_M_allocate(__n); _S_relocate(this->_M_impl._M_start, this->_M_impl._M_finish, __tmp, _M_get_Tp_allocator()); } else { __tmp = _M_allocate_and_copy(__n, std::__make_move_if_noexcept_iterator(this->_M_impl._M_start), std::__make_move_if_noexcept_iterator(this->_M_impl._M_finish)); std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); } ; _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __tmp; this->_M_impl._M_finish = __tmp + __old_size; this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __n; } } template<typename _Tp, typename _Alloc> template<typename... _Args> constexpr typename vector<_Tp, _Alloc>::reference vector<_Tp, _Alloc>:: emplace_back(_Args&&... __args) { if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) { ; _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, std::forward<_Args>(__args)...); ++this->_M_impl._M_finish; ; } else _M_realloc_insert(end(), std::forward<_Args>(__args)...); return back(); } template<typename _Tp, typename _Alloc> constexpr typename vector<_Tp, _Alloc>::iterator vector<_Tp, _Alloc>:: insert(const_iterator __position, const value_type& __x) { const size_type __n = __position - begin(); if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) { do { if (std::__is_constant_evaluated() && !bool(__position != const_iterator())) __builtin_unreachable(); } while (false); if (!(__position != const_iterator())) __builtin_unreachable(); if (__position == end()) { ; _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, __x); ++this->_M_impl._M_finish; ; } else { const auto __pos = begin() + (__position - cbegin()); _Temporary_value __x_copy(this, __x); _M_insert_aux(__pos, std::move(__x_copy._M_val())); } } else _M_realloc_insert(begin() + (__position - cbegin()), __x); return iterator(this->_M_impl._M_start + __n); } template<typename _Tp, typename _Alloc> constexpr typename vector<_Tp, _Alloc>::iterator vector<_Tp, _Alloc>:: _M_erase(iterator __position) { if (__position + 1 != end()) std::move(__position + 1, end(), __position); --this->_M_impl._M_finish; _Alloc_traits::destroy(this->_M_impl, this->_M_impl._M_finish); ; return __position; } template<typename _Tp, typename _Alloc> constexpr typename vector<_Tp, _Alloc>::iterator vector<_Tp, _Alloc>:: _M_erase(iterator __first, iterator __last) { if (__first != __last) { if (__last != end()) std::move(__last, end(), __first); _M_erase_at_end(__first.base() + (end() - __last)); } return __first; } template<typename _Tp, typename _Alloc> constexpr vector<_Tp, _Alloc>& vector<_Tp, _Alloc>:: operator=(const vector<_Tp, _Alloc>& __x) { if (std::__addressof(__x) != this) { ; if (_Alloc_traits::_S_propagate_on_copy_assign()) { if (!_Alloc_traits::_S_always_equal() && _M_get_Tp_allocator() != __x._M_get_Tp_allocator()) { this->clear(); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = nullptr; this->_M_impl._M_finish = nullptr; this->_M_impl._M_end_of_storage = nullptr; } std::__alloc_on_copy(_M_get_Tp_allocator(), __x._M_get_Tp_allocator()); } const size_type __xlen = __x.size(); if (__xlen > capacity()) { pointer __tmp = _M_allocate_and_copy(__xlen, __x.begin(), __x.end()); std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __tmp; this->_M_impl._M_end_of_storage = this->_M_impl._M_start + __xlen; } else if (size() >= __xlen) { std::_Destroy(std::copy(__x.begin(), __x.end(), begin()), end(), _M_get_Tp_allocator()); } else { std::copy(__x._M_impl._M_start, __x._M_impl._M_start + size(), this->_M_impl._M_start); std::__uninitialized_copy_a(__x._M_impl._M_start + size(), __x._M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); } this->_M_impl._M_finish = this->_M_impl._M_start + __xlen; } return *this; } template<typename _Tp, typename _Alloc> constexpr void vector<_Tp, _Alloc>:: _M_fill_assign(size_t __n, const value_type& __val) { if (__n > capacity()) { vector __tmp(__n, __val, _M_get_Tp_allocator()); __tmp._M_impl._M_swap_data(this->_M_impl); } else if (__n > size()) { std::fill(begin(), end(), __val); const size_type __add = __n - size(); ; this->_M_impl._M_finish = std::__uninitialized_fill_n_a(this->_M_impl._M_finish, __add, __val, _M_get_Tp_allocator()); ; } else _M_erase_at_end(std::fill_n(this->_M_impl._M_start, __n, __val)); } template<typename _Tp, typename _Alloc> template<typename _InputIterator> constexpr void vector<_Tp, _Alloc>:: _M_assign_aux(_InputIterator __first, _InputIterator __last, std::input_iterator_tag) { pointer __cur(this->_M_impl._M_start); for (; __first != __last && __cur != this->_M_impl._M_finish; ++__cur, (void)++__first) *__cur = *__first; if (__first == __last) _M_erase_at_end(__cur); else _M_range_insert(end(), __first, __last, std::__iterator_category(__first)); } template<typename _Tp, typename _Alloc> template<typename _ForwardIterator> constexpr void vector<_Tp, _Alloc>:: _M_assign_aux(_ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { const size_type __len = std::distance(__first, __last); if (__len > capacity()) { _S_check_init_len(__len, _M_get_Tp_allocator()); pointer __tmp(_M_allocate_and_copy(__len, __first, __last)); std::_Destroy(this->_M_impl._M_start, this->_M_impl._M_finish, _M_get_Tp_allocator()); ; _M_deallocate(this->_M_impl._M_start, this->_M_impl._M_end_of_storage - this->_M_impl._M_start); this->_M_impl._M_start = __tmp; this->_M_impl._M_finish = this->_M_impl._M_start + __len; this->_M_impl._M_end_of_storage = this->_M_impl._M_finish; } else if (size() >= __len) _M_erase_at_end(std::copy(__first, __last, this->_M_impl._M_start)); else { _ForwardIterator __mid = __first; std::advance(__mid, size()); std::copy(__first, __mid, this->_M_impl._M_start); const size_type __attribute__((__unused__)) __n = __len - size(); ; this->_M_impl._M_finish = std::__uninitialized_copy_a(__mid, __last, this->_M_impl._M_finish, _M_get_Tp_allocator()); ; } } template<typename _Tp, typename _Alloc> constexpr auto vector<_Tp, _Alloc>:: _M_insert_rval(const_iterator __position, value_type&& __v) -> iterator { const auto __n = __position - cbegin(); if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) if (__position == cend()) { ; _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, std::move(__v)); ++this->_M_impl._M_finish; ; } else _M_insert_aux(begin() + __n, std::move(__v)); else _M_realloc_insert(begin() + __n, std::move(__v)); return iterator(this->_M_impl._M_start + __n); } template<typename _Tp, typename _Alloc> template<typename... _Args> constexpr auto vector<_Tp, _Alloc>:: _M_emplace_aux(const_iterator __position, _Args&&... __args) -> iterator { const auto __n = __position - cbegin(); if (this->_M_impl._M_finish != this->_M_impl._M_end_of_storage) if (__position == cend()) { ; _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, std::forward<_Args>(__args)...); ++this->_M_impl._M_finish; ; } else { _Temporary_value __tmp(this, std::forward<_Args>(__args)...); _M_insert_aux(begin() + __n, std::move(__tmp._M_val())); } else _M_realloc_insert(begin() + __n, std::forward<_Args>(__args)...); return iterator(this->_M_impl._M_start + __n); } template<typename _Tp, typename _Alloc> template<typename _Arg> constexpr void vector<_Tp, _Alloc>:: _M_insert_aux(iterator __position, _Arg&& __arg) { ; _Alloc_traits::construct(this->_M_impl, this->_M_impl._M_finish, std::move(*(this->_M_impl._M_finish - 1))); ++this->_M_impl._M_finish; ; std::move_backward(__position.base(), this->_M_impl._M_finish - 2, this->_M_impl._M_finish - 1) ; *__position = std::forward<_Arg>(__arg); } template<typename _Tp, typename _Alloc> template<typename... _Args> constexpr void vector<_Tp, _Alloc>:: _M_realloc_insert(iterator __position, _Args&&... __args) { const size_type __len = _M_check_len(size_type(1), "vector::_M_realloc_insert"); pointer __old_start = this->_M_impl._M_start; pointer __old_finish = this->_M_impl._M_finish; const size_type __elems_before = __position - begin(); pointer __new_start(this->_M_allocate(__len)); pointer __new_finish(__new_start); try { _Alloc_traits::construct(this->_M_impl, __new_start + __elems_before, std::forward<_Args>(__args)...); __new_finish = pointer(); if constexpr (_S_use_relocate()) { __new_finish = _S_relocate(__old_start, __position.base(), __new_start, _M_get_Tp_allocator()); ++__new_finish; __new_finish = _S_relocate(__position.base(), __old_finish, __new_finish, _M_get_Tp_allocator()); } else { __new_finish = std::__uninitialized_move_if_noexcept_a (__old_start, __position.base(), __new_start, _M_get_Tp_allocator()); ++__new_finish; __new_finish = std::__uninitialized_move_if_noexcept_a (__position.base(), __old_finish, __new_finish, _M_get_Tp_allocator()); } } catch(...) { if (!__new_finish) _Alloc_traits::destroy(this->_M_impl, __new_start + __elems_before); else std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } if constexpr (!_S_use_relocate()) std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); ; _M_deallocate(__old_start, this->_M_impl._M_end_of_storage - __old_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_finish; this->_M_impl._M_end_of_storage = __new_start + __len; } template<typename _Tp, typename _Alloc> constexpr void vector<_Tp, _Alloc>:: _M_fill_insert(iterator __position, size_type __n, const value_type& __x) { if (__n != 0) { if (size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_finish) >= __n) { _Temporary_value __tmp(this, __x); value_type& __x_copy = __tmp._M_val(); const size_type __elems_after = end() - __position; pointer __old_finish(this->_M_impl._M_finish); if (__elems_after > __n) { ; std::__uninitialized_move_a(__old_finish - __n, __old_finish, __old_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __n; ; std::move_backward(__position.base(), __old_finish - __n, __old_finish) ; std::fill(__position.base(), __position.base() + __n, __x_copy); } else { ; this->_M_impl._M_finish = std::__uninitialized_fill_n_a(__old_finish, __n - __elems_after, __x_copy, _M_get_Tp_allocator()); ; std::__uninitialized_move_a(__position.base(), __old_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __elems_after; ; std::fill(__position.base(), __old_finish, __x_copy); } } else { pointer __old_start = this->_M_impl._M_start; pointer __old_finish = this->_M_impl._M_finish; const pointer __pos = __position.base(); const size_type __len = _M_check_len(__n, "vector::_M_fill_insert"); const size_type __elems_before = __pos - __old_start; pointer __new_start(this->_M_allocate(__len)); pointer __new_finish(__new_start); try { std::__uninitialized_fill_n_a(__new_start + __elems_before, __n, __x, _M_get_Tp_allocator()); __new_finish = pointer(); __new_finish = std::__uninitialized_move_if_noexcept_a (__old_start, __pos, __new_start, _M_get_Tp_allocator()); __new_finish += __n; __new_finish = std::__uninitialized_move_if_noexcept_a (__pos, __old_finish, __new_finish, _M_get_Tp_allocator()); } catch(...) { if (!__new_finish) std::_Destroy(__new_start + __elems_before, __new_start + __elems_before + __n, _M_get_Tp_allocator()); else std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); ; _M_deallocate(__old_start, this->_M_impl._M_end_of_storage - __old_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_finish; this->_M_impl._M_end_of_storage = __new_start + __len; } } } template<typename _Tp, typename _Alloc> constexpr void vector<_Tp, _Alloc>:: _M_default_append(size_type __n) { if (__n != 0) { const size_type __size = size(); size_type __navail = size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_finish); if (__size > max_size() || __navail > max_size() - __size) __builtin_unreachable(); if (__navail >= __n) { ; this->_M_impl._M_finish = std::__uninitialized_default_n_a(this->_M_impl._M_finish, __n, _M_get_Tp_allocator()); ; } else { pointer __old_start = this->_M_impl._M_start; pointer __old_finish = this->_M_impl._M_finish; const size_type __len = _M_check_len(__n, "vector::_M_default_append"); pointer __new_start(this->_M_allocate(__len)); if constexpr (_S_use_relocate()) { try { std::__uninitialized_default_n_a(__new_start + __size, __n, _M_get_Tp_allocator()); } catch(...) { _M_deallocate(__new_start, __len); throw; } _S_relocate(__old_start, __old_finish, __new_start, _M_get_Tp_allocator()); } else { pointer __destroy_from = pointer(); try { std::__uninitialized_default_n_a(__new_start + __size, __n, _M_get_Tp_allocator()); __destroy_from = __new_start + __size; std::__uninitialized_move_if_noexcept_a( __old_start, __old_finish, __new_start, _M_get_Tp_allocator()); } catch(...) { if (__destroy_from) std::_Destroy(__destroy_from, __destroy_from + __n, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); } ; _M_deallocate(__old_start, this->_M_impl._M_end_of_storage - __old_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_start + __size + __n; this->_M_impl._M_end_of_storage = __new_start + __len; } } } template<typename _Tp, typename _Alloc> constexpr bool vector<_Tp, _Alloc>:: _M_shrink_to_fit() { if (capacity() == size()) return false; ; return std::__shrink_to_fit_aux<vector>::_S_do_it(*this); } template<typename _Tp, typename _Alloc> template<typename _InputIterator> constexpr void vector<_Tp, _Alloc>:: _M_range_insert(iterator __pos, _InputIterator __first, _InputIterator __last, std::input_iterator_tag) { if (__pos == end()) { for (; __first != __last; ++__first) insert(end(), *__first); } else if (__first != __last) { vector __tmp(__first, __last, _M_get_Tp_allocator()); insert(__pos, std::make_move_iterator(__tmp.begin()), std::make_move_iterator(__tmp.end())); } } template<typename _Tp, typename _Alloc> template<typename _ForwardIterator> constexpr void vector<_Tp, _Alloc>:: _M_range_insert(iterator __position, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { if (__first != __last) { const size_type __n = std::distance(__first, __last); if (size_type(this->_M_impl._M_end_of_storage - this->_M_impl._M_finish) >= __n) { const size_type __elems_after = end() - __position; pointer __old_finish(this->_M_impl._M_finish); if (__elems_after > __n) { ; std::__uninitialized_move_a(this->_M_impl._M_finish - __n, this->_M_impl._M_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __n; ; std::move_backward(__position.base(), __old_finish - __n, __old_finish) ; std::copy(__first, __last, __position); } else { _ForwardIterator __mid = __first; std::advance(__mid, __elems_after); ; std::__uninitialized_copy_a(__mid, __last, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __n - __elems_after; ; std::__uninitialized_move_a(__position.base(), __old_finish, this->_M_impl._M_finish, _M_get_Tp_allocator()); this->_M_impl._M_finish += __elems_after; ; std::copy(__first, __mid, __position); } } else { pointer __old_start = this->_M_impl._M_start; pointer __old_finish = this->_M_impl._M_finish; const size_type __len = _M_check_len(__n, "vector::_M_range_insert"); pointer __new_start(this->_M_allocate(__len)); pointer __new_finish(__new_start); try { __new_finish = std::__uninitialized_move_if_noexcept_a (__old_start, __position.base(), __new_start, _M_get_Tp_allocator()); __new_finish = std::__uninitialized_copy_a(__first, __last, __new_finish, _M_get_Tp_allocator()); __new_finish = std::__uninitialized_move_if_noexcept_a (__position.base(), __old_finish, __new_finish, _M_get_Tp_allocator()); } catch(...) { std::_Destroy(__new_start, __new_finish, _M_get_Tp_allocator()); _M_deallocate(__new_start, __len); throw; } std::_Destroy(__old_start, __old_finish, _M_get_Tp_allocator()); ; _M_deallocate(__old_start, this->_M_impl._M_end_of_storage - __old_start); this->_M_impl._M_start = __new_start; this->_M_impl._M_finish = __new_finish; this->_M_impl._M_end_of_storage = __new_start + __len; } } } template<typename _Alloc> constexpr void vector<bool, _Alloc>:: _M_reallocate(size_type __n) { _Bit_pointer __q = this->_M_allocate(__n); iterator __start(std::__addressof(*__q), 0); iterator __finish(_M_copy_aligned(begin(), end(), __start)); this->_M_deallocate(); this->_M_impl._M_start = __start; this->_M_impl._M_finish = __finish; this->_M_impl._M_end_of_storage = __q + _S_nword(__n); } template<typename _Alloc> constexpr void vector<bool, _Alloc>:: _M_fill_insert(iterator __position, size_type __n, bool __x) { if (__n == 0) return; if (capacity() - size() >= __n) { std::copy_backward(__position, end(), this->_M_impl._M_finish + difference_type(__n)); std::fill(__position, __position + difference_type(__n), __x); this->_M_impl._M_finish += difference_type(__n); } else { const size_type __len = _M_check_len(__n, "vector<bool>::_M_fill_insert"); _Bit_pointer __q = this->_M_allocate(__len); iterator __start(std::__addressof(*__q), 0); iterator __i = _M_copy_aligned(begin(), __position, __start); std::fill(__i, __i + difference_type(__n), __x); iterator __finish = std::copy(__position, end(), __i + difference_type(__n)); this->_M_deallocate(); this->_M_impl._M_end_of_storage = __q + _S_nword(__len); this->_M_impl._M_start = __start; this->_M_impl._M_finish = __finish; } } template<typename _Alloc> template<typename _ForwardIterator> constexpr void vector<bool, _Alloc>:: _M_insert_range(iterator __position, _ForwardIterator __first, _ForwardIterator __last, std::forward_iterator_tag) { if (__first != __last) { size_type __n = std::distance(__first, __last); if (capacity() - size() >= __n) { std::copy_backward(__position, end(), this->_M_impl._M_finish + difference_type(__n)); std::copy(__first, __last, __position); this->_M_impl._M_finish += difference_type(__n); } else { const size_type __len = _M_check_len(__n, "vector<bool>::_M_insert_range"); _Bit_pointer __q = this->_M_allocate(__len); iterator __start(std::__addressof(*__q), 0); iterator __i = _M_copy_aligned(begin(), __position, __start); __i = std::copy(__first, __last, __i); iterator __finish = std::copy(__position, end(), __i); this->_M_deallocate(); this->_M_impl._M_end_of_storage = __q + _S_nword(__len); this->_M_impl._M_start = __start; this->_M_impl._M_finish = __finish; } } } template<typename _Alloc> constexpr void vector<bool, _Alloc>:: _M_insert_aux(iterator __position, bool __x) { if (this->_M_impl._M_finish._M_p != this->_M_impl._M_end_addr()) { std::copy_backward(__position, this->_M_impl._M_finish, this->_M_impl._M_finish + 1); *__position = __x; ++this->_M_impl._M_finish; } else { const size_type __len = _M_check_len(size_type(1), "vector<bool>::_M_insert_aux"); _Bit_pointer __q = this->_M_allocate(__len); iterator __start(std::__addressof(*__q), 0); iterator __i = _M_copy_aligned(begin(), __position, __start); *__i++ = __x; iterator __finish = std::copy(__position, end(), __i); this->_M_deallocate(); this->_M_impl._M_end_of_storage = __q + _S_nword(__len); this->_M_impl._M_start = __start; this->_M_impl._M_finish = __finish; } } template<typename _Alloc> constexpr typename vector<bool, _Alloc>::iterator vector<bool, _Alloc>:: _M_erase(iterator __position) { if (__position + 1 != end()) std::copy(__position + 1, end(), __position); --this->_M_impl._M_finish; return __position; } template<typename _Alloc> constexpr typename vector<bool, _Alloc>::iterator vector<bool, _Alloc>:: _M_erase(iterator __first, iterator __last) { if (__first != __last) _M_erase_at_end(std::copy(__last, end(), __first)); return __first; } template<typename _Alloc> constexpr bool vector<bool, _Alloc>:: _M_shrink_to_fit() { if (capacity() - size() < int(_S_word_bit)) return false; try { if (size_type __n = size()) _M_reallocate(__n); else { this->_M_deallocate(); this->_M_impl._M_reset(); } return true; } catch(...) { return false; } } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Alloc> size_t hash<std::vector<bool, _Alloc>>:: operator()(const std::vector<bool, _Alloc>& __b) const noexcept { size_t __hash = 0; const size_t __words = __b.size() / _S_word_bit; if (__words) { const size_t __clength = __words * sizeof(_Bit_type); __hash = std::_Hash_impl::hash(__b._M_impl._M_start._M_p, __clength); } const size_t __extrabits = __b.size() % _S_word_bit; if (__extrabits) { _Bit_type __hiword = *__b._M_impl._M_finish._M_p; __hiword &= ~((~static_cast<_Bit_type>(0)) << __extrabits); const size_t __clength = (__extrabits + 8 - 1) / 8; if (__words) __hash = std::_Hash_impl::hash(&__hiword, __clength, __hash); else __hash = std::_Hash_impl::hash(&__hiword, __clength); } return __hash; } } # 73 "/usr/include/c++/13/vector" 2 3 # 81 "/usr/include/c++/13/vector" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { template<typename _Tp> using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>; } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp, typename _Alloc, typename _Predicate> constexpr inline typename vector<_Tp, _Alloc>::size_type erase_if(vector<_Tp, _Alloc>& __cont, _Predicate __pred) { using namespace __gnu_cxx; std::vector<_Tp, _Alloc>& __ucont = __cont; const auto __osz = __cont.size(); const auto __end = __ucont.end(); auto __removed = std::__remove_if(__ucont.begin(), __end, __ops::__pred_iter(std::ref(__pred))); if (__removed != __end) { __cont.erase(__niter_wrap(__cont.begin(), __removed), __cont.end()); return __osz - __cont.size(); } return 0; } template<typename _Tp, typename _Alloc, typename _Up> constexpr inline typename vector<_Tp, _Alloc>::size_type erase(vector<_Tp, _Alloc>& __cont, const _Up& __value) { using namespace __gnu_cxx; std::vector<_Tp, _Alloc>& __ucont = __cont; const auto __osz = __cont.size(); const auto __end = __ucont.end(); auto __removed = std::__remove_if(__ucont.begin(), __end, __ops::__iter_equals_val(__value)); if (__removed != __end) { __cont.erase(__niter_wrap(__cont.begin(), __removed), __cont.end()); return __osz - __cont.size(); } return 0; } } # 7 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/config.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/user.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/select_compiler_config.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/compiler/gcc.hpp" 1 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/select_stdlib_config.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/select_stdlib_config.hpp" 3 4 # 1 "/usr/include/c++/13/version" 1 3 4 # 35 "/usr/include/c++/13/version" 3 4 # 36 "/usr/include/c++/13/version" 3 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/select_stdlib_config.hpp" 2 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/stdlib/libstdcpp3.hpp" 1 3 4 # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/stdlib/libstdcpp3.hpp" 3 4 # 1 "/usr/include/unistd.h" 1 3 4 # 27 "/usr/include/unistd.h" 3 4 extern "C" { # 202 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/posix_opt.h" 1 3 4 # 203 "/usr/include/unistd.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/environments.h" 1 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/environments.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/environments.h" 2 3 4 # 207 "/usr/include/unistd.h" 2 3 4 # 226 "/usr/include/unistd.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 227 "/usr/include/unistd.h" 2 3 4 # 267 "/usr/include/unistd.h" 3 4 typedef __intptr_t intptr_t; typedef __socklen_t socklen_t; # 287 "/usr/include/unistd.h" 3 4 extern int access (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int euidaccess (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int eaccess (const char *__name, int __type) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int execveat (int __fd, const char *__path, char *const __argv[], char *const __envp[], int __flags) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); extern int faccessat (int __fd, const char *__file, int __type, int __flag) noexcept (true) __attribute__ ((__nonnull__ (2))) ; # 339 "/usr/include/unistd.h" 3 4 extern __off_t lseek (int __fd, __off_t __offset, int __whence) noexcept (true); # 350 "/usr/include/unistd.h" 3 4 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence) noexcept (true); extern int close (int __fd); extern void closefrom (int __lowfd) noexcept (true); extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __attribute__ ((__access__ (__write_only__, 2, 3))); extern ssize_t write (int __fd, const void *__buf, size_t __n) __attribute__ ((__access__ (__read_only__, 2, 3))); # 389 "/usr/include/unistd.h" 3 4 extern ssize_t pread (int __fd, void *__buf, size_t __nbytes, __off_t __offset) __attribute__ ((__access__ (__write_only__, 2, 3))); extern ssize_t pwrite (int __fd, const void *__buf, size_t __n, __off_t __offset) __attribute__ ((__access__ (__read_only__, 2, 3))); # 422 "/usr/include/unistd.h" 3 4 extern ssize_t pread64 (int __fd, void *__buf, size_t __nbytes, __off64_t __offset) __attribute__ ((__access__ (__write_only__, 2, 3))); extern ssize_t pwrite64 (int __fd, const void *__buf, size_t __n, __off64_t __offset) __attribute__ ((__access__ (__read_only__, 2, 3))); extern int pipe (int __pipedes[2]) noexcept (true) ; extern int pipe2 (int __pipedes[2], int __flags) noexcept (true) ; # 452 "/usr/include/unistd.h" 3 4 extern unsigned int alarm (unsigned int __seconds) noexcept (true); # 464 "/usr/include/unistd.h" 3 4 extern unsigned int sleep (unsigned int __seconds); extern __useconds_t ualarm (__useconds_t __value, __useconds_t __interval) noexcept (true); extern int usleep (__useconds_t __useconds); # 489 "/usr/include/unistd.h" 3 4 extern int pause (void); extern int chown (const char *__file, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern int fchown (int __fd, __uid_t __owner, __gid_t __group) noexcept (true) ; extern int lchown (const char *__file, __uid_t __owner, __gid_t __group) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern int fchownat (int __fd, const char *__file, __uid_t __owner, __gid_t __group, int __flag) noexcept (true) __attribute__ ((__nonnull__ (2))) ; extern int chdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern int fchdir (int __fd) noexcept (true) ; # 531 "/usr/include/unistd.h" 3 4 extern char *getcwd (char *__buf, size_t __size) noexcept (true) ; extern char *get_current_dir_name (void) noexcept (true); extern char *getwd (char *__buf) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)) __attribute__ ((__access__ (__write_only__, 1))); extern int dup (int __fd) noexcept (true) ; extern int dup2 (int __fd, int __fd2) noexcept (true); extern int dup3 (int __fd, int __fd2, int __flags) noexcept (true); extern char **__environ; extern char **environ; extern int execve (const char *__path, char *const __argv[], char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int fexecve (int __fd, char *const __argv[], char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int execv (const char *__path, char *const __argv[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int execle (const char *__path, const char *__arg, ...) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int execl (const char *__path, const char *__arg, ...) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int execvp (const char *__file, char *const __argv[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int execlp (const char *__file, const char *__arg, ...) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int execvpe (const char *__file, char *const __argv[], char *const __envp[]) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int nice (int __inc) noexcept (true) ; extern void _exit (int __status) __attribute__ ((__noreturn__)); # 1 "/usr/include/x86_64-linux-gnu/bits/confname.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/confname.h" 3 4 enum { _PC_LINK_MAX, _PC_MAX_CANON, _PC_MAX_INPUT, _PC_NAME_MAX, _PC_PATH_MAX, _PC_PIPE_BUF, _PC_CHOWN_RESTRICTED, _PC_NO_TRUNC, _PC_VDISABLE, _PC_SYNC_IO, _PC_ASYNC_IO, _PC_PRIO_IO, _PC_SOCK_MAXBUF, _PC_FILESIZEBITS, _PC_REC_INCR_XFER_SIZE, _PC_REC_MAX_XFER_SIZE, _PC_REC_MIN_XFER_SIZE, _PC_REC_XFER_ALIGN, _PC_ALLOC_SIZE_MIN, _PC_SYMLINK_MAX, _PC_2_SYMLINKS }; enum { _SC_ARG_MAX, _SC_CHILD_MAX, _SC_CLK_TCK, _SC_NGROUPS_MAX, _SC_OPEN_MAX, _SC_STREAM_MAX, _SC_TZNAME_MAX, _SC_JOB_CONTROL, _SC_SAVED_IDS, _SC_REALTIME_SIGNALS, _SC_PRIORITY_SCHEDULING, _SC_TIMERS, _SC_ASYNCHRONOUS_IO, _SC_PRIORITIZED_IO, _SC_SYNCHRONIZED_IO, _SC_FSYNC, _SC_MAPPED_FILES, _SC_MEMLOCK, _SC_MEMLOCK_RANGE, _SC_MEMORY_PROTECTION, _SC_MESSAGE_PASSING, _SC_SEMAPHORES, _SC_SHARED_MEMORY_OBJECTS, _SC_AIO_LISTIO_MAX, _SC_AIO_MAX, _SC_AIO_PRIO_DELTA_MAX, _SC_DELAYTIMER_MAX, _SC_MQ_OPEN_MAX, _SC_MQ_PRIO_MAX, _SC_VERSION, _SC_PAGESIZE, _SC_RTSIG_MAX, _SC_SEM_NSEMS_MAX, _SC_SEM_VALUE_MAX, _SC_SIGQUEUE_MAX, _SC_TIMER_MAX, _SC_BC_BASE_MAX, _SC_BC_DIM_MAX, _SC_BC_SCALE_MAX, _SC_BC_STRING_MAX, _SC_COLL_WEIGHTS_MAX, _SC_EQUIV_CLASS_MAX, _SC_EXPR_NEST_MAX, _SC_LINE_MAX, _SC_RE_DUP_MAX, _SC_CHARCLASS_NAME_MAX, _SC_2_VERSION, _SC_2_C_BIND, _SC_2_C_DEV, _SC_2_FORT_DEV, _SC_2_FORT_RUN, _SC_2_SW_DEV, _SC_2_LOCALEDEF, _SC_PII, _SC_PII_XTI, _SC_PII_SOCKET, _SC_PII_INTERNET, _SC_PII_OSI, _SC_POLL, _SC_SELECT, _SC_UIO_MAXIOV, _SC_IOV_MAX = _SC_UIO_MAXIOV, _SC_PII_INTERNET_STREAM, _SC_PII_INTERNET_DGRAM, _SC_PII_OSI_COTS, _SC_PII_OSI_CLTS, _SC_PII_OSI_M, _SC_T_IOV_MAX, _SC_THREADS, _SC_THREAD_SAFE_FUNCTIONS, _SC_GETGR_R_SIZE_MAX, _SC_GETPW_R_SIZE_MAX, _SC_LOGIN_NAME_MAX, _SC_TTY_NAME_MAX, _SC_THREAD_DESTRUCTOR_ITERATIONS, _SC_THREAD_KEYS_MAX, _SC_THREAD_STACK_MIN, _SC_THREAD_THREADS_MAX, _SC_THREAD_ATTR_STACKADDR, _SC_THREAD_ATTR_STACKSIZE, _SC_THREAD_PRIORITY_SCHEDULING, _SC_THREAD_PRIO_INHERIT, _SC_THREAD_PRIO_PROTECT, _SC_THREAD_PROCESS_SHARED, _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES, _SC_AVPHYS_PAGES, _SC_ATEXIT_MAX, _SC_PASS_MAX, _SC_XOPEN_VERSION, _SC_XOPEN_XCU_VERSION, _SC_XOPEN_UNIX, _SC_XOPEN_CRYPT, _SC_XOPEN_ENH_I18N, _SC_XOPEN_SHM, _SC_2_CHAR_TERM, _SC_2_C_VERSION, _SC_2_UPE, _SC_XOPEN_XPG2, _SC_XOPEN_XPG3, _SC_XOPEN_XPG4, _SC_CHAR_BIT, _SC_CHAR_MAX, _SC_CHAR_MIN, _SC_INT_MAX, _SC_INT_MIN, _SC_LONG_BIT, _SC_WORD_BIT, _SC_MB_LEN_MAX, _SC_NZERO, _SC_SSIZE_MAX, _SC_SCHAR_MAX, _SC_SCHAR_MIN, _SC_SHRT_MAX, _SC_SHRT_MIN, _SC_UCHAR_MAX, _SC_UINT_MAX, _SC_ULONG_MAX, _SC_USHRT_MAX, _SC_NL_ARGMAX, _SC_NL_LANGMAX, _SC_NL_MSGMAX, _SC_NL_NMAX, _SC_NL_SETMAX, _SC_NL_TEXTMAX, _SC_XBS5_ILP32_OFF32, _SC_XBS5_ILP32_OFFBIG, _SC_XBS5_LP64_OFF64, _SC_XBS5_LPBIG_OFFBIG, _SC_XOPEN_LEGACY, _SC_XOPEN_REALTIME, _SC_XOPEN_REALTIME_THREADS, _SC_ADVISORY_INFO, _SC_BARRIERS, _SC_BASE, _SC_C_LANG_SUPPORT, _SC_C_LANG_SUPPORT_R, _SC_CLOCK_SELECTION, _SC_CPUTIME, _SC_THREAD_CPUTIME, _SC_DEVICE_IO, _SC_DEVICE_SPECIFIC, _SC_DEVICE_SPECIFIC_R, _SC_FD_MGMT, _SC_FIFO, _SC_PIPE, _SC_FILE_ATTRIBUTES, _SC_FILE_LOCKING, _SC_FILE_SYSTEM, _SC_MONOTONIC_CLOCK, _SC_MULTI_PROCESS, _SC_SINGLE_PROCESS, _SC_NETWORKING, _SC_READER_WRITER_LOCKS, _SC_SPIN_LOCKS, _SC_REGEXP, _SC_REGEX_VERSION, _SC_SHELL, _SC_SIGNALS, _SC_SPAWN, _SC_SPORADIC_SERVER, _SC_THREAD_SPORADIC_SERVER, _SC_SYSTEM_DATABASE, _SC_SYSTEM_DATABASE_R, _SC_TIMEOUTS, _SC_TYPED_MEMORY_OBJECTS, _SC_USER_GROUPS, _SC_USER_GROUPS_R, _SC_2_PBS, _SC_2_PBS_ACCOUNTING, _SC_2_PBS_LOCATE, _SC_2_PBS_MESSAGE, _SC_2_PBS_TRACK, _SC_SYMLOOP_MAX, _SC_STREAMS, _SC_2_PBS_CHECKPOINT, _SC_V6_ILP32_OFF32, _SC_V6_ILP32_OFFBIG, _SC_V6_LP64_OFF64, _SC_V6_LPBIG_OFFBIG, _SC_HOST_NAME_MAX, _SC_TRACE, _SC_TRACE_EVENT_FILTER, _SC_TRACE_INHERIT, _SC_TRACE_LOG, _SC_LEVEL1_ICACHE_SIZE, _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE, _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC, _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE, _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE, _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC, _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE, _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE, _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50, _SC_RAW_SOCKETS, _SC_V7_ILP32_OFF32, _SC_V7_ILP32_OFFBIG, _SC_V7_LP64_OFF64, _SC_V7_LPBIG_OFFBIG, _SC_SS_REPL_MAX, _SC_TRACE_EVENT_NAME_MAX, _SC_TRACE_NAME_MAX, _SC_TRACE_SYS_MAX, _SC_TRACE_USER_EVENT_MAX, _SC_XOPEN_STREAMS, _SC_THREAD_ROBUST_PRIO_INHERIT, _SC_THREAD_ROBUST_PRIO_PROTECT, _SC_MINSIGSTKSZ, _SC_SIGSTKSZ }; enum { _CS_PATH, _CS_V6_WIDTH_RESTRICTED_ENVS, _CS_GNU_LIBC_VERSION, _CS_GNU_LIBPTHREAD_VERSION, _CS_V5_WIDTH_RESTRICTED_ENVS, _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_LFS_CFLAGS = 1000, _CS_LFS_LDFLAGS, _CS_LFS_LIBS, _CS_LFS_LINTFLAGS, _CS_LFS64_CFLAGS, _CS_LFS64_LDFLAGS, _CS_LFS64_LIBS, _CS_LFS64_LINTFLAGS, _CS_XBS5_ILP32_OFF32_CFLAGS = 1100, _CS_XBS5_ILP32_OFF32_LDFLAGS, _CS_XBS5_ILP32_OFF32_LIBS, _CS_XBS5_ILP32_OFF32_LINTFLAGS, _CS_XBS5_ILP32_OFFBIG_CFLAGS, _CS_XBS5_ILP32_OFFBIG_LDFLAGS, _CS_XBS5_ILP32_OFFBIG_LIBS, _CS_XBS5_ILP32_OFFBIG_LINTFLAGS, _CS_XBS5_LP64_OFF64_CFLAGS, _CS_XBS5_LP64_OFF64_LDFLAGS, _CS_XBS5_LP64_OFF64_LIBS, _CS_XBS5_LP64_OFF64_LINTFLAGS, _CS_XBS5_LPBIG_OFFBIG_CFLAGS, _CS_XBS5_LPBIG_OFFBIG_LDFLAGS, _CS_XBS5_LPBIG_OFFBIG_LIBS, _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS, _CS_POSIX_V6_ILP32_OFF32_CFLAGS, _CS_POSIX_V6_ILP32_OFF32_LDFLAGS, _CS_POSIX_V6_ILP32_OFF32_LIBS, _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS, _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS, _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS, _CS_POSIX_V6_ILP32_OFFBIG_LIBS, _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS, _CS_POSIX_V6_LP64_OFF64_CFLAGS, _CS_POSIX_V6_LP64_OFF64_LDFLAGS, _CS_POSIX_V6_LP64_OFF64_LIBS, _CS_POSIX_V6_LP64_OFF64_LINTFLAGS, _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS, _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS, _CS_POSIX_V6_LPBIG_OFFBIG_LIBS, _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS, _CS_POSIX_V7_ILP32_OFF32_CFLAGS, _CS_POSIX_V7_ILP32_OFF32_LDFLAGS, _CS_POSIX_V7_ILP32_OFF32_LIBS, _CS_POSIX_V7_ILP32_OFF32_LINTFLAGS, _CS_POSIX_V7_ILP32_OFFBIG_CFLAGS, _CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS, _CS_POSIX_V7_ILP32_OFFBIG_LIBS, _CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS, _CS_POSIX_V7_LP64_OFF64_CFLAGS, _CS_POSIX_V7_LP64_OFF64_LDFLAGS, _CS_POSIX_V7_LP64_OFF64_LIBS, _CS_POSIX_V7_LP64_OFF64_LINTFLAGS, _CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS, _CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS, _CS_POSIX_V7_LPBIG_OFFBIG_LIBS, _CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS, _CS_V6_ENV, _CS_V7_ENV }; # 631 "/usr/include/unistd.h" 2 3 4 extern long int pathconf (const char *__path, int __name) noexcept (true) __attribute__ ((__nonnull__ (1))); extern long int fpathconf (int __fd, int __name) noexcept (true); extern long int sysconf (int __name) noexcept (true); extern size_t confstr (int __name, char *__buf, size_t __len) noexcept (true) __attribute__ ((__access__ (__write_only__, 2, 3))); extern __pid_t getpid (void) noexcept (true); extern __pid_t getppid (void) noexcept (true); extern __pid_t getpgrp (void) noexcept (true); extern __pid_t __getpgid (__pid_t __pid) noexcept (true); extern __pid_t getpgid (__pid_t __pid) noexcept (true); extern int setpgid (__pid_t __pid, __pid_t __pgid) noexcept (true); # 682 "/usr/include/unistd.h" 3 4 extern int setpgrp (void) noexcept (true); extern __pid_t setsid (void) noexcept (true); extern __pid_t getsid (__pid_t __pid) noexcept (true); extern __uid_t getuid (void) noexcept (true); extern __uid_t geteuid (void) noexcept (true); extern __gid_t getgid (void) noexcept (true); extern __gid_t getegid (void) noexcept (true); extern int getgroups (int __size, __gid_t __list[]) noexcept (true) __attribute__ ((__access__ (__write_only__, 2, 1))); extern int group_member (__gid_t __gid) noexcept (true); extern int setuid (__uid_t __uid) noexcept (true) ; extern int setreuid (__uid_t __ruid, __uid_t __euid) noexcept (true) ; extern int seteuid (__uid_t __uid) noexcept (true) ; extern int setgid (__gid_t __gid) noexcept (true) ; extern int setregid (__gid_t __rgid, __gid_t __egid) noexcept (true) ; extern int setegid (__gid_t __gid) noexcept (true) ; extern int getresuid (__uid_t *__ruid, __uid_t *__euid, __uid_t *__suid) noexcept (true); extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid) noexcept (true); extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid) noexcept (true) ; extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid) noexcept (true) ; extern __pid_t fork (void) noexcept (true); extern __pid_t vfork (void) noexcept (true); extern __pid_t _Fork (void) noexcept (true); extern char *ttyname (int __fd) noexcept (true); extern int ttyname_r (int __fd, char *__buf, size_t __buflen) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); extern int isatty (int __fd) noexcept (true); extern int ttyslot (void) noexcept (true); extern int link (const char *__from, const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) ; extern int linkat (int __fromfd, const char *__from, int __tofd, const char *__to, int __flags) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) ; extern int symlink (const char *__from, const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) ; extern ssize_t readlink (const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 2, 3))); extern int symlinkat (const char *__from, int __tofd, const char *__to) noexcept (true) __attribute__ ((__nonnull__ (1, 3))) ; extern ssize_t readlinkat (int __fd, const char *__restrict __path, char *__restrict __buf, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (2, 3))) __attribute__ ((__access__ (__write_only__, 3, 4))); extern int unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int unlinkat (int __fd, const char *__name, int __flag) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int rmdir (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))); extern __pid_t tcgetpgrp (int __fd) noexcept (true); extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) noexcept (true); extern char *getlogin (void); extern int getlogin_r (char *__name, size_t __name_len) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); extern int setlogin (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); # 1 "/usr/include/x86_64-linux-gnu/bits/getopt_posix.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/getopt_posix.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/getopt_core.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/getopt_core.h" 3 4 extern "C" { extern char *optarg; # 50 "/usr/include/x86_64-linux-gnu/bits/getopt_core.h" 3 4 extern int optind; extern int opterr; extern int optopt; # 91 "/usr/include/x86_64-linux-gnu/bits/getopt_core.h" 3 4 extern int getopt (int ___argc, char *const *___argv, const char *__shortopts) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); } # 28 "/usr/include/x86_64-linux-gnu/bits/getopt_posix.h" 2 3 4 extern "C" { # 49 "/usr/include/x86_64-linux-gnu/bits/getopt_posix.h" 3 4 } # 904 "/usr/include/unistd.h" 2 3 4 extern int gethostname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); extern int sethostname (const char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_only__, 1, 2))); extern int sethostid (long int __id) noexcept (true) ; extern int getdomainname (char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); extern int setdomainname (const char *__name, size_t __len) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_only__, 1, 2))); extern int vhangup (void) noexcept (true); extern int revoke (const char *__file) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern int profil (unsigned short int *__sample_buffer, size_t __size, size_t __offset, unsigned int __scale) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int acct (const char *__name) noexcept (true); extern char *getusershell (void) noexcept (true); extern void endusershell (void) noexcept (true); extern void setusershell (void) noexcept (true); extern int daemon (int __nochdir, int __noclose) noexcept (true) ; extern int chroot (const char *__path) noexcept (true) __attribute__ ((__nonnull__ (1))) ; extern char *getpass (const char *__prompt) __attribute__ ((__nonnull__ (1))); extern int fsync (int __fd); extern int syncfs (int __fd) noexcept (true); extern long int gethostid (void); extern void sync (void) noexcept (true); extern int getpagesize (void) noexcept (true) __attribute__ ((__const__)); extern int getdtablesize (void) noexcept (true); # 1026 "/usr/include/unistd.h" 3 4 extern int truncate (const char *__file, __off_t __length) noexcept (true) __attribute__ ((__nonnull__ (1))) ; # 1038 "/usr/include/unistd.h" 3 4 extern int truncate64 (const char *__file, __off64_t __length) noexcept (true) __attribute__ ((__nonnull__ (1))) ; # 1049 "/usr/include/unistd.h" 3 4 extern int ftruncate (int __fd, __off_t __length) noexcept (true) ; # 1059 "/usr/include/unistd.h" 3 4 extern int ftruncate64 (int __fd, __off64_t __length) noexcept (true) ; # 1070 "/usr/include/unistd.h" 3 4 extern int brk (void *__addr) noexcept (true) ; extern void *sbrk (intptr_t __delta) noexcept (true); # 1091 "/usr/include/unistd.h" 3 4 extern long int syscall (long int __sysno, ...) noexcept (true); # 1114 "/usr/include/unistd.h" 3 4 extern int lockf (int __fd, int __cmd, __off_t __len) ; # 1124 "/usr/include/unistd.h" 3 4 extern int lockf64 (int __fd, int __cmd, __off64_t __len) ; # 1142 "/usr/include/unistd.h" 3 4 ssize_t copy_file_range (int __infd, __off64_t *__pinoff, int __outfd, __off64_t *__poutoff, size_t __length, unsigned int __flags); extern int fdatasync (int __fildes); # 1159 "/usr/include/unistd.h" 3 4 extern char *crypt (const char *__key, const char *__salt) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void swab (const void *__restrict __from, void *__restrict __to, ssize_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__read_only__, 1, 3))) __attribute__ ((__access__ (__write_only__, 2, 3))); # 1198 "/usr/include/unistd.h" 3 4 int getentropy (void *__buffer, size_t __length) __attribute__ ((__access__ (__write_only__, 1, 2))); # 1208 "/usr/include/unistd.h" 3 4 extern int close_range (unsigned int __fd, unsigned int __max_fd, int __flags) noexcept (true); # 1218 "/usr/include/unistd.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/unistd_ext.h" 1 3 4 # 34 "/usr/include/x86_64-linux-gnu/bits/unistd_ext.h" 3 4 extern __pid_t gettid (void) noexcept (true); # 1 "/usr/include/linux/close_range.h" 1 3 4 # 39 "/usr/include/x86_64-linux-gnu/bits/unistd_ext.h" 2 3 4 # 1219 "/usr/include/unistd.h" 2 3 4 } # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/stdlib/libstdcpp3.hpp" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/select_platform_config.hpp" 1 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/platform/linux.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/platform/linux.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/platform/linux.hpp" 2 3 4 # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/platform/linux.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/posix_features.hpp" 1 3 4 # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/platform/linux.hpp" 2 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 3 # 510 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 3 namespace boost{ __extension__ typedef long long long_long_type; __extension__ typedef unsigned long long ulong_long_type; } namespace boost{ __extension__ typedef __int128 int128_type; __extension__ typedef unsigned __int128 uint128_type; } namespace boost { __extension__ typedef __float128 float128_type; } # 572 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 3 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/helper_macros.hpp" 1 3 4 # 573 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 2 3 # 1282 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 3 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/cxx_composite.hpp" 1 3 4 # 1283 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/detail/suffix.hpp" 2 3 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/version.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/config.hpp" 2 3 4 # 1684 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/config.hpp" 3 4 # 1 "/usr/include/linux/version.h" 1 3 4 # 1685 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/config.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/type_traits.hpp" 1 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/type_traits.hpp" 3 4 namespace boost { namespace asio { using std::add_const; using std::add_lvalue_reference; template <std::size_t N, std::size_t A> struct aligned_storage { struct type { alignas(A) unsigned char data[N]; }; }; using std::alignment_of; using std::conditional; using std::decay; using std::declval; using std::enable_if; using std::false_type; using std::integral_constant; using std::is_base_of; using std::is_class; using std::is_const; using std::is_constructible; using std::is_convertible; using std::is_copy_constructible; using std::is_destructible; using std::is_function; using std::is_move_constructible; using std::is_nothrow_copy_constructible; using std::is_nothrow_destructible; using std::is_object; using std::is_pointer; using std::is_reference; using std::is_same; using std::is_scalar; using std::remove_cv; template <typename T> struct remove_cvref : remove_cv<typename std::remove_reference<T>::type> {}; using std::remove_pointer; using std::remove_reference; template <typename> struct result_of; template <typename F, typename... Args> struct result_of<F(Args...)> : std::invoke_result<F, Args...> {}; using std::true_type; # 144 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/type_traits.hpp" 3 4 template <typename> struct void_type { typedef void type; }; template <typename...> struct conjunction : true_type {}; template <typename T> struct conjunction<T> : T {}; template <typename Head, typename... Tail> struct conjunction<Head, Tail...> : conditional<Head::value, conjunction<Tail...>, Head>::type {}; struct defaulted_constraint { constexpr defaulted_constraint() {} }; template <bool Condition, typename Type = int> struct constraint : enable_if<Condition, Type> {}; } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/invocable_archetype.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/invocable_archetype.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/variadic_templates.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/invocable_archetype.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/invocable_archetype.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { struct invocable_archetype { typedef void result_type; template <typename... Args> void operator()(Args&&...) { } # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/invocable_archetype.hpp" 3 4 }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/invocable_archetype.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/equality_comparable.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/equality_comparable.hpp" 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct equality_comparable_default; template <typename T, typename = void> struct equality_comparable; } namespace detail { struct no_equality_comparable { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct equality_comparable_trait : no_equality_comparable { }; template <typename T> struct equality_comparable_trait<T, typename void_type< decltype( static_cast<void>( static_cast<bool>(declval<const T>() == declval<const T>()) ), static_cast<void>( static_cast<bool>(declval<const T>() != declval<const T>()) ) ) >::type> { static constexpr bool is_valid = true; static constexpr bool is_noexcept = noexcept(declval<const T>() == declval<const T>()) && noexcept(declval<const T>() != declval<const T>()) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/equality_comparable.hpp" 3 4 } namespace traits { template <typename T, typename> struct equality_comparable_default : detail::equality_comparable_trait<T> { }; template <typename T, typename> struct equality_comparable : equality_comparable_default<T> { }; } } } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename F, typename = void> struct execute_member_default; template <typename T, typename F, typename = void> struct execute_member; } namespace detail { struct no_execute_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename F, typename = void> struct execute_member_trait : no_execute_member { }; template <typename T, typename F> struct execute_member_trait<T, F, typename void_type< decltype(declval<T>().execute(declval<F>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().execute(declval<F>())); static constexpr bool is_noexcept = noexcept( declval<T>().execute(declval<F>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_member.hpp" 3 4 } namespace traits { template <typename T, typename F, typename> struct execute_member_default : detail::execute_member_trait<T, F> { }; template <typename T, typename F, typename> struct execute_member : execute_member_default<T, F> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_member.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/atomic_count.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/atomic_count.hpp" 3 4 # 1 "/usr/include/c++/13/atomic" 1 3 4 # 35 "/usr/include/c++/13/atomic" 3 4 # 36 "/usr/include/c++/13/atomic" 3 # 1 "/usr/include/c++/13/bits/atomic_base.h" 1 3 # 33 "/usr/include/c++/13/bits/atomic_base.h" 3 # 34 "/usr/include/c++/13/bits/atomic_base.h" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdint.h" 1 3 4 # 9 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdint.h" 3 4 # 1 "/usr/include/stdint.h" 1 3 4 # 26 "/usr/include/stdint.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 30 "/usr/include/stdint.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/stdint-uintn.h" 3 4 typedef __uint8_t uint8_t; typedef __uint16_t uint16_t; typedef __uint32_t uint32_t; typedef __uint64_t uint64_t; # 38 "/usr/include/stdint.h" 2 3 4 typedef __int_least8_t int_least8_t; typedef __int_least16_t int_least16_t; typedef __int_least32_t int_least32_t; typedef __int_least64_t int_least64_t; typedef __uint_least8_t uint_least8_t; typedef __uint_least16_t uint_least16_t; typedef __uint_least32_t uint_least32_t; typedef __uint_least64_t uint_least64_t; typedef signed char int_fast8_t; typedef long int int_fast16_t; typedef long int int_fast32_t; typedef long int int_fast64_t; # 71 "/usr/include/stdint.h" 3 4 typedef unsigned char uint_fast8_t; typedef unsigned long int uint_fast16_t; typedef unsigned long int uint_fast32_t; typedef unsigned long int uint_fast64_t; # 90 "/usr/include/stdint.h" 3 4 typedef unsigned long int uintptr_t; # 101 "/usr/include/stdint.h" 3 4 typedef __intmax_t intmax_t; typedef __uintmax_t uintmax_t; # 10 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdint.h" 2 3 4 # 38 "/usr/include/c++/13/bits/atomic_base.h" 2 3 # 1 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 1 3 # 33 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 3 # 34 "/usr/include/c++/13/bits/atomic_lockfree_defines.h" 3 # 39 "/usr/include/c++/13/bits/atomic_base.h" 2 3 # 1 "/usr/include/c++/13/bits/atomic_wait.h" 1 3 # 33 "/usr/include/c++/13/bits/atomic_wait.h" 3 # 34 "/usr/include/c++/13/bits/atomic_wait.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h" 1 3 # 30 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h" 3 #pragma GCC visibility push(default) # 148 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 1 3 # 35 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 # 1 "/usr/include/pthread.h" 1 3 4 # 22 "/usr/include/pthread.h" 3 4 # 1 "/usr/include/sched.h" 1 3 4 # 29 "/usr/include/sched.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 30 "/usr/include/sched.h" 2 3 4 # 43 "/usr/include/sched.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/sched.h" 1 3 4 # 76 "/usr/include/x86_64-linux-gnu/bits/sched.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/types/struct_sched_param.h" 3 4 struct sched_param { int sched_priority; }; # 77 "/usr/include/x86_64-linux-gnu/bits/sched.h" 2 3 4 extern "C" { extern int clone (int (*__fn) (void *__arg), void *__child_stack, int __flags, void *__arg, ...) noexcept (true); extern int unshare (int __flags) noexcept (true); extern int sched_getcpu (void) noexcept (true); extern int getcpu (unsigned int *, unsigned int *) noexcept (true); extern int setns (int __fd, int __nstype) noexcept (true); } # 44 "/usr/include/sched.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/cpu-set.h" 1 3 4 # 32 "/usr/include/x86_64-linux-gnu/bits/cpu-set.h" 3 4 typedef unsigned long int __cpu_mask; typedef struct { __cpu_mask __bits[1024 / (8 * sizeof (__cpu_mask))]; } cpu_set_t; # 115 "/usr/include/x86_64-linux-gnu/bits/cpu-set.h" 3 4 extern "C" { extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) noexcept (true); extern cpu_set_t *__sched_cpualloc (size_t __count) noexcept (true) ; extern void __sched_cpufree (cpu_set_t *__set) noexcept (true); } # 45 "/usr/include/sched.h" 2 3 4 extern "C" { extern int sched_setparam (__pid_t __pid, const struct sched_param *__param) noexcept (true); extern int sched_getparam (__pid_t __pid, struct sched_param *__param) noexcept (true); extern int sched_setscheduler (__pid_t __pid, int __policy, const struct sched_param *__param) noexcept (true); extern int sched_getscheduler (__pid_t __pid) noexcept (true); extern int sched_yield (void) noexcept (true); extern int sched_get_priority_max (int __algorithm) noexcept (true); extern int sched_get_priority_min (int __algorithm) noexcept (true); extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) noexcept (true); # 130 "/usr/include/sched.h" 3 4 extern int sched_setaffinity (__pid_t __pid, size_t __cpusetsize, const cpu_set_t *__cpuset) noexcept (true); extern int sched_getaffinity (__pid_t __pid, size_t __cpusetsize, cpu_set_t *__cpuset) noexcept (true); } # 23 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/time.h" 1 3 4 # 29 "/usr/include/time.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 30 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/time.h" 1 3 4 # 73 "/usr/include/x86_64-linux-gnu/bits/time.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/timex.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/timex.h" 3 4 struct timex { # 58 "/usr/include/x86_64-linux-gnu/bits/timex.h" 3 4 unsigned int modes; __syscall_slong_t offset; __syscall_slong_t freq; __syscall_slong_t maxerror; __syscall_slong_t esterror; int status; __syscall_slong_t constant; __syscall_slong_t precision; __syscall_slong_t tolerance; struct timeval time; __syscall_slong_t tick; __syscall_slong_t ppsfreq; __syscall_slong_t jitter; int shift; __syscall_slong_t stabil; __syscall_slong_t jitcnt; __syscall_slong_t calcnt; __syscall_slong_t errcnt; __syscall_slong_t stbcnt; int tai; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; int :32; }; # 74 "/usr/include/x86_64-linux-gnu/bits/time.h" 2 3 4 extern "C" { extern int clock_adjtime (__clockid_t __clock_id, struct timex *__utx) noexcept (true); # 90 "/usr/include/x86_64-linux-gnu/bits/time.h" 3 4 } # 34 "/usr/include/time.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_tm.h" 1 3 4 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long int tm_gmtoff; const char *tm_zone; }; # 40 "/usr/include/time.h" 2 3 4 # 48 "/usr/include/time.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_itimerspec.h" 1 3 4 struct itimerspec { struct timespec it_interval; struct timespec it_value; }; # 49 "/usr/include/time.h" 2 3 4 struct sigevent; # 68 "/usr/include/time.h" 3 4 extern "C" { extern clock_t clock (void) noexcept (true); extern time_t time (time_t *__timer) noexcept (true); extern double difftime (time_t __time1, time_t __time0) noexcept (true) __attribute__ ((__const__)); extern time_t mktime (struct tm *__tp) noexcept (true); # 100 "/usr/include/time.h" 3 4 extern size_t strftime (char *__restrict __s, size_t __maxsize, const char *__restrict __format, const struct tm *__restrict __tp) noexcept (true); extern char *strptime (const char *__restrict __s, const char *__restrict __fmt, struct tm *__tp) noexcept (true); extern size_t strftime_l (char *__restrict __s, size_t __maxsize, const char *__restrict __format, const struct tm *__restrict __tp, locale_t __loc) noexcept (true); extern char *strptime_l (const char *__restrict __s, const char *__restrict __fmt, struct tm *__tp, locale_t __loc) noexcept (true); extern struct tm *gmtime (const time_t *__timer) noexcept (true); extern struct tm *localtime (const time_t *__timer) noexcept (true); # 154 "/usr/include/time.h" 3 4 extern struct tm *gmtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true); extern struct tm *localtime_r (const time_t *__restrict __timer, struct tm *__restrict __tp) noexcept (true); # 179 "/usr/include/time.h" 3 4 extern char *asctime (const struct tm *__tp) noexcept (true); extern char *ctime (const time_t *__timer) noexcept (true); # 197 "/usr/include/time.h" 3 4 extern char *asctime_r (const struct tm *__restrict __tp, char *__restrict __buf) noexcept (true); extern char *ctime_r (const time_t *__restrict __timer, char *__restrict __buf) noexcept (true); # 217 "/usr/include/time.h" 3 4 extern char *__tzname[2]; extern int __daylight; extern long int __timezone; extern char *tzname[2]; extern void tzset (void) noexcept (true); extern int daylight; extern long int timezone; # 249 "/usr/include/time.h" 3 4 extern time_t timegm (struct tm *__tp) noexcept (true); extern time_t timelocal (struct tm *__tp) noexcept (true); # 262 "/usr/include/time.h" 3 4 extern int dysize (int __year) noexcept (true) __attribute__ ((__const__)); # 272 "/usr/include/time.h" 3 4 extern int nanosleep (const struct timespec *__requested_time, struct timespec *__remaining); extern int clock_getres (clockid_t __clock_id, struct timespec *__res) noexcept (true); extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) noexcept (true); extern int clock_settime (clockid_t __clock_id, const struct timespec *__tp) noexcept (true); # 311 "/usr/include/time.h" 3 4 extern int clock_nanosleep (clockid_t __clock_id, int __flags, const struct timespec *__req, struct timespec *__rem); # 326 "/usr/include/time.h" 3 4 extern int clock_getcpuclockid (pid_t __pid, clockid_t *__clock_id) noexcept (true); extern int timer_create (clockid_t __clock_id, struct sigevent *__restrict __evp, timer_t *__restrict __timerid) noexcept (true); extern int timer_delete (timer_t __timerid) noexcept (true); extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) noexcept (true); extern int timer_gettime (timer_t __timerid, struct itimerspec *__value) noexcept (true); # 364 "/usr/include/time.h" 3 4 extern int timer_getoverrun (timer_t __timerid) noexcept (true); extern int timespec_get (struct timespec *__ts, int __base) noexcept (true) __attribute__ ((__nonnull__ (1))); # 387 "/usr/include/time.h" 3 4 extern int timespec_getres (struct timespec *__ts, int __base) noexcept (true); # 413 "/usr/include/time.h" 3 4 extern int getdate_err; # 422 "/usr/include/time.h" 3 4 extern struct tm *getdate (const char *__string); # 436 "/usr/include/time.h" 3 4 extern int getdate_r (const char *__restrict __string, struct tm *__restrict __resbufp); } # 24 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/setjmp.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/setjmp.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/setjmp.h" 2 3 4 typedef long int __jmp_buf[8]; # 28 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 29 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/types/struct___jmp_buf_tag.h" 3 4 struct __jmp_buf_tag { __jmp_buf __jmpbuf; int __mask_was_saved; __sigset_t __saved_mask; }; # 32 "/usr/include/pthread.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/pthread_stack_min-dynamic.h" 3 4 extern "C" { extern long int __sysconf (int __name) noexcept (true); } # 34 "/usr/include/pthread.h" 2 3 4 enum { PTHREAD_CREATE_JOINABLE, PTHREAD_CREATE_DETACHED }; enum { PTHREAD_MUTEX_TIMED_NP, PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_ADAPTIVE_NP , PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP, PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP, PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP, PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL , PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP }; enum { PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_STALLED_NP = PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_MUTEX_ROBUST_NP = PTHREAD_MUTEX_ROBUST }; enum { PTHREAD_PRIO_NONE, PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT }; # 104 "/usr/include/pthread.h" 3 4 enum { PTHREAD_RWLOCK_PREFER_READER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NP, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, PTHREAD_RWLOCK_DEFAULT_NP = PTHREAD_RWLOCK_PREFER_READER_NP }; # 124 "/usr/include/pthread.h" 3 4 enum { PTHREAD_INHERIT_SCHED, PTHREAD_EXPLICIT_SCHED }; enum { PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS }; enum { PTHREAD_PROCESS_PRIVATE, PTHREAD_PROCESS_SHARED }; # 159 "/usr/include/pthread.h" 3 4 struct _pthread_cleanup_buffer { void (*__routine) (void *); void *__arg; int __canceltype; struct _pthread_cleanup_buffer *__prev; }; enum { PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE }; enum { PTHREAD_CANCEL_DEFERRED, PTHREAD_CANCEL_ASYNCHRONOUS }; # 197 "/usr/include/pthread.h" 3 4 extern "C" { extern int pthread_create (pthread_t *__restrict __newthread, const pthread_attr_t *__restrict __attr, void *(*__start_routine) (void *), void *__restrict __arg) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern void pthread_exit (void *__retval) __attribute__ ((__noreturn__)); extern int pthread_join (pthread_t __th, void **__thread_return); extern int pthread_tryjoin_np (pthread_t __th, void **__thread_return) noexcept (true); # 233 "/usr/include/pthread.h" 3 4 extern int pthread_timedjoin_np (pthread_t __th, void **__thread_return, const struct timespec *__abstime); # 243 "/usr/include/pthread.h" 3 4 extern int pthread_clockjoin_np (pthread_t __th, void **__thread_return, clockid_t __clockid, const struct timespec *__abstime); # 269 "/usr/include/pthread.h" 3 4 extern int pthread_detach (pthread_t __th) noexcept (true); extern pthread_t pthread_self (void) noexcept (true) __attribute__ ((__const__)); extern int pthread_equal (pthread_t __thread1, pthread_t __thread2) noexcept (true) __attribute__ ((__const__)); extern int pthread_attr_init (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_destroy (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getdetachstate (const pthread_attr_t *__attr, int *__detachstate) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setdetachstate (pthread_attr_t *__attr, int __detachstate) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getguardsize (const pthread_attr_t *__attr, size_t *__guardsize) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setguardsize (pthread_attr_t *__attr, size_t __guardsize) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getschedparam (const pthread_attr_t *__restrict __attr, struct sched_param *__restrict __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setschedparam (pthread_attr_t *__restrict __attr, const struct sched_param *__restrict __param) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_getschedpolicy (const pthread_attr_t *__restrict __attr, int *__restrict __policy) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setschedpolicy (pthread_attr_t *__attr, int __policy) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getinheritsched (const pthread_attr_t *__restrict __attr, int *__restrict __inherit) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setinheritsched (pthread_attr_t *__attr, int __inherit) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getscope (const pthread_attr_t *__restrict __attr, int *__restrict __scope) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setscope (pthread_attr_t *__attr, int __scope) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getstackaddr (const pthread_attr_t *__restrict __attr, void **__restrict __stackaddr) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__deprecated__)); extern int pthread_attr_setstackaddr (pthread_attr_t *__attr, void *__stackaddr) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__)); extern int pthread_attr_getstacksize (const pthread_attr_t *__restrict __attr, size_t *__restrict __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_attr_setstacksize (pthread_attr_t *__attr, size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_getstack (const pthread_attr_t *__restrict __attr, void **__restrict __stackaddr, size_t *__restrict __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); extern int pthread_attr_setstack (pthread_attr_t *__attr, void *__stackaddr, size_t __stacksize) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr, size_t __cpusetsize, const cpu_set_t *__cpuset) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern int pthread_attr_getaffinity_np (const pthread_attr_t *__attr, size_t __cpusetsize, cpu_set_t *__cpuset) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern int pthread_getattr_default_np (pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_attr_setsigmask_np (pthread_attr_t *__attr, const __sigset_t *sigmask); extern int pthread_attr_getsigmask_np (const pthread_attr_t *__attr, __sigset_t *sigmask); extern int pthread_setattr_default_np (const pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int pthread_setschedparam (pthread_t __target_thread, int __policy, const struct sched_param *__param) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int pthread_getschedparam (pthread_t __target_thread, int *__restrict __policy, struct sched_param *__restrict __param) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); extern int pthread_setschedprio (pthread_t __target_thread, int __prio) noexcept (true); extern int pthread_getname_np (pthread_t __target_thread, char *__buf, size_t __buflen) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int pthread_setname_np (pthread_t __target_thread, const char *__name) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int pthread_getconcurrency (void) noexcept (true); extern int pthread_setconcurrency (int __level) noexcept (true); extern int pthread_yield (void) noexcept (true); extern int pthread_yield (void) noexcept (true) __asm__ ("" "sched_yield") __attribute__ ((__deprecated__ ("pthread_yield is deprecated, use sched_yield instead"))) ; extern int pthread_setaffinity_np (pthread_t __th, size_t __cpusetsize, const cpu_set_t *__cpuset) noexcept (true) __attribute__ ((__nonnull__ (3))); extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize, cpu_set_t *__cpuset) noexcept (true) __attribute__ ((__nonnull__ (3))); # 509 "/usr/include/pthread.h" 3 4 extern int pthread_once (pthread_once_t *__once_control, void (*__init_routine) (void)) __attribute__ ((__nonnull__ (1, 2))); # 521 "/usr/include/pthread.h" 3 4 extern int pthread_setcancelstate (int __state, int *__oldstate); extern int pthread_setcanceltype (int __type, int *__oldtype); extern int pthread_cancel (pthread_t __th); extern void pthread_testcancel (void); struct __cancel_jmp_buf_tag { __jmp_buf __cancel_jmp_buf; int __mask_was_saved; }; typedef struct { struct __cancel_jmp_buf_tag __cancel_jmp_buf[1]; void *__pad[4]; } __pthread_unwind_buf_t __attribute__ ((__aligned__)); # 557 "/usr/include/pthread.h" 3 4 struct __pthread_cleanup_frame { void (*__cancel_routine) (void *); void *__cancel_arg; int __do_it; int __cancel_type; }; class __pthread_cleanup_class { void (*__cancel_routine) (void *); void *__cancel_arg; int __do_it; int __cancel_type; public: __pthread_cleanup_class (void (*__fct) (void *), void *__arg) : __cancel_routine (__fct), __cancel_arg (__arg), __do_it (1) { } ~__pthread_cleanup_class () { if (__do_it) __cancel_routine (__cancel_arg); } void __setdoit (int __newval) { __do_it = __newval; } void __defer () { pthread_setcanceltype (PTHREAD_CANCEL_DEFERRED, &__cancel_type); } void __restore () const { pthread_setcanceltype (__cancel_type, 0); } }; # 766 "/usr/include/pthread.h" 3 4 extern int __sigsetjmp_cancel (struct __cancel_jmp_buf_tag __env[1], int __savemask) noexcept (true) __asm__ ("" "__sigsetjmp") __attribute__ ((__returns_twice__)); # 781 "/usr/include/pthread.h" 3 4 extern int pthread_mutex_init (pthread_mutex_t *__mutex, const pthread_mutexattr_t *__mutexattr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_destroy (pthread_mutex_t *__mutex) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_trylock (pthread_mutex_t *__mutex) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_lock (pthread_mutex_t *__mutex) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_timedlock (pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); # 817 "/usr/include/pthread.h" 3 4 extern int pthread_mutex_clocklock (pthread_mutex_t *__restrict __mutex, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 835 "/usr/include/pthread.h" 3 4 extern int pthread_mutex_unlock (pthread_mutex_t *__mutex) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_getprioceiling (const pthread_mutex_t * __restrict __mutex, int *__restrict __prioceiling) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutex_setprioceiling (pthread_mutex_t *__restrict __mutex, int __prioceiling, int *__restrict __old_ceiling) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); extern int pthread_mutex_consistent (pthread_mutex_t *__mutex) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutex_consistent_np (pthread_mutex_t *) noexcept (true) __asm__ ("" "pthread_mutex_consistent") __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__ ("pthread_mutex_consistent_np is deprecated, use pthread_mutex_consistent"))) ; # 874 "/usr/include/pthread.h" 3 4 extern int pthread_mutexattr_init (pthread_mutexattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_destroy (pthread_mutexattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getpshared (const pthread_mutexattr_t * __restrict __attr, int *__restrict __pshared) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setpshared (pthread_mutexattr_t *__attr, int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_gettype (const pthread_mutexattr_t *__restrict __attr, int *__restrict __kind) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_settype (pthread_mutexattr_t *__attr, int __kind) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t * __restrict __attr, int *__restrict __protocol) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setprotocol (pthread_mutexattr_t *__attr, int __protocol) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getprioceiling (const pthread_mutexattr_t * __restrict __attr, int *__restrict __prioceiling) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_setprioceiling (pthread_mutexattr_t *__attr, int __prioceiling) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_getrobust (const pthread_mutexattr_t *__attr, int *__robustness) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_mutexattr_getrobust_np (pthread_mutexattr_t *, int *) noexcept (true) __asm__ ("" "pthread_mutexattr_getrobust") __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__ ("pthread_mutexattr_getrobust_np is deprecated, use pthread_mutexattr_getrobust"))) ; extern int pthread_mutexattr_setrobust (pthread_mutexattr_t *__attr, int __robustness) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_mutexattr_setrobust_np (pthread_mutexattr_t *, int) noexcept (true) __asm__ ("" "pthread_mutexattr_setrobust") __attribute__ ((__nonnull__ (1))) __attribute__ ((__deprecated__ ("pthread_mutexattr_setrobust_np is deprecated, use pthread_mutexattr_setrobust"))) ; # 967 "/usr/include/pthread.h" 3 4 extern int pthread_rwlock_init (pthread_rwlock_t *__restrict __rwlock, const pthread_rwlockattr_t *__restrict __attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_destroy (pthread_rwlock_t *__rwlock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_rdlock (pthread_rwlock_t *__rwlock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); # 1004 "/usr/include/pthread.h" 3 4 extern int pthread_rwlock_clockrdlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 1023 "/usr/include/pthread.h" 3 4 extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock, const struct timespec *__restrict __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); # 1051 "/usr/include/pthread.h" 3 4 extern int pthread_rwlock_clockwrlock (pthread_rwlock_t *__restrict __rwlock, clockid_t __clockid, const struct timespec *__restrict __abstime) noexcept (true) __attribute__ ((__nonnull__ (1, 3))); # 1071 "/usr/include/pthread.h" 3 4 extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_init (pthread_rwlockattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_destroy (pthread_rwlockattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_getpshared (const pthread_rwlockattr_t * __restrict __attr, int *__restrict __pshared) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_rwlockattr_setpshared (pthread_rwlockattr_t *__attr, int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_rwlockattr_getkind_np (const pthread_rwlockattr_t * __restrict __attr, int *__restrict __pref) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_rwlockattr_setkind_np (pthread_rwlockattr_t *__attr, int __pref) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_cond_init (pthread_cond_t *__restrict __cond, const pthread_condattr_t *__restrict __cond_attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_cond_destroy (pthread_cond_t *__cond) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_cond_signal (pthread_cond_t *__cond) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_cond_broadcast (pthread_cond_t *__cond) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_cond_wait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex) __attribute__ ((__nonnull__ (1, 2))); # 1145 "/usr/include/pthread.h" 3 4 extern int pthread_cond_timedwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, const struct timespec *__restrict __abstime) __attribute__ ((__nonnull__ (1, 2, 3))); # 1171 "/usr/include/pthread.h" 3 4 extern int pthread_cond_clockwait (pthread_cond_t *__restrict __cond, pthread_mutex_t *__restrict __mutex, __clockid_t __clock_id, const struct timespec *__restrict __abstime) __attribute__ ((__nonnull__ (1, 2, 4))); # 1194 "/usr/include/pthread.h" 3 4 extern int pthread_condattr_init (pthread_condattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_condattr_destroy (pthread_condattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_condattr_getpshared (const pthread_condattr_t * __restrict __attr, int *__restrict __pshared) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_condattr_setpshared (pthread_condattr_t *__attr, int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_condattr_getclock (const pthread_condattr_t * __restrict __attr, __clockid_t *__restrict __clock_id) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_condattr_setclock (pthread_condattr_t *__attr, __clockid_t __clock_id) noexcept (true) __attribute__ ((__nonnull__ (1))); # 1230 "/usr/include/pthread.h" 3 4 extern int pthread_spin_init (pthread_spinlock_t *__lock, int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_spin_destroy (pthread_spinlock_t *__lock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_spin_lock (pthread_spinlock_t *__lock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_spin_trylock (pthread_spinlock_t *__lock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_spin_unlock (pthread_spinlock_t *__lock) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_barrier_init (pthread_barrier_t *__restrict __barrier, const pthread_barrierattr_t *__restrict __attr, unsigned int __count) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_barrier_destroy (pthread_barrier_t *__barrier) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_barrier_wait (pthread_barrier_t *__barrier) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_barrierattr_init (pthread_barrierattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_barrierattr_destroy (pthread_barrierattr_t *__attr) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_barrierattr_getpshared (const pthread_barrierattr_t * __restrict __attr, int *__restrict __pshared) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int pthread_barrierattr_setpshared (pthread_barrierattr_t *__attr, int __pshared) noexcept (true) __attribute__ ((__nonnull__ (1))); # 1297 "/usr/include/pthread.h" 3 4 extern int pthread_key_create (pthread_key_t *__key, void (*__destr_function) (void *)) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int pthread_key_delete (pthread_key_t __key) noexcept (true); extern void *pthread_getspecific (pthread_key_t __key) noexcept (true); extern int pthread_setspecific (pthread_key_t __key, const void *__pointer) noexcept (true) __attribute__ ((__access__ (__none__, 2))); extern int pthread_getcpuclockid (pthread_t __thread_id, __clockid_t *__clock_id) noexcept (true) __attribute__ ((__nonnull__ (2))); # 1332 "/usr/include/pthread.h" 3 4 extern int pthread_atfork (void (*__prepare) (void), void (*__parent) (void), void (*__child) (void)) noexcept (true); # 1346 "/usr/include/pthread.h" 3 4 } # 36 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 2 3 # 47 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 typedef pthread_t __gthread_t; typedef pthread_key_t __gthread_key_t; typedef pthread_once_t __gthread_once_t; typedef pthread_mutex_t __gthread_mutex_t; typedef pthread_mutex_t __gthread_recursive_mutex_t; typedef pthread_cond_t __gthread_cond_t; typedef struct timespec __gthread_time_t; # 102 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 # 299 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 static inline int __gthread_active_p (void) { return 1; } # 659 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 static inline int __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), void *__args) { return pthread_create (__threadid, __null, __func, __args); } static inline int __gthread_join (__gthread_t __threadid, void **__value_ptr) { return pthread_join (__threadid, __value_ptr); } static inline int __gthread_detach (__gthread_t __threadid) { return pthread_detach (__threadid); } static inline int __gthread_equal (__gthread_t __t1, __gthread_t __t2) { return pthread_equal (__t1, __t2); } static inline __gthread_t __gthread_self (void) { return pthread_self (); } static inline int __gthread_yield (void) { return sched_yield (); } static inline int __gthread_once (__gthread_once_t *__once, void (*__func) (void)) { if (__gthread_active_p ()) return pthread_once (__once, __func); else return -1; } static inline int __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) { return pthread_key_create (__key, __dtor); } static inline int __gthread_key_delete (__gthread_key_t __key) { return pthread_key_delete (__key); } static inline void * __gthread_getspecific (__gthread_key_t __key) { return pthread_getspecific (__key); } static inline int __gthread_setspecific (__gthread_key_t __key, const void *__ptr) { return pthread_setspecific (__key, __ptr); } static inline void __gthread_mutex_init_function (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) pthread_mutex_init (__mutex, __null); } static inline int __gthread_mutex_destroy (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return pthread_mutex_destroy (__mutex); else return 0; } static inline int __gthread_mutex_lock (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return pthread_mutex_lock (__mutex); else return 0; } static inline int __gthread_mutex_trylock (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return pthread_mutex_trylock (__mutex); else return 0; } static inline int __gthread_mutex_timedlock (__gthread_mutex_t *__mutex, const __gthread_time_t *__abs_timeout) { if (__gthread_active_p ()) return pthread_mutex_timedlock (__mutex, __abs_timeout); else return 0; } static inline int __gthread_mutex_unlock (__gthread_mutex_t *__mutex) { if (__gthread_active_p ()) return pthread_mutex_unlock (__mutex); else return 0; } # 808 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 static inline int __gthread_recursive_mutex_lock (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_lock (__mutex); } static inline int __gthread_recursive_mutex_trylock (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_trylock (__mutex); } static inline int __gthread_recursive_mutex_timedlock (__gthread_recursive_mutex_t *__mutex, const __gthread_time_t *__abs_timeout) { return __gthread_mutex_timedlock (__mutex, __abs_timeout); } static inline int __gthread_recursive_mutex_unlock (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_unlock (__mutex); } static inline int __gthread_recursive_mutex_destroy (__gthread_recursive_mutex_t *__mutex) { return __gthread_mutex_destroy (__mutex); } # 850 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr-default.h" 3 static inline int __gthread_cond_broadcast (__gthread_cond_t *__cond) { return pthread_cond_broadcast (__cond); } static inline int __gthread_cond_signal (__gthread_cond_t *__cond) { return pthread_cond_signal (__cond); } static inline int __gthread_cond_wait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex) { return pthread_cond_wait (__cond, __mutex); } static inline int __gthread_cond_timedwait (__gthread_cond_t *__cond, __gthread_mutex_t *__mutex, const __gthread_time_t *__abs_timeout) { return pthread_cond_timedwait (__cond, __mutex, __abs_timeout); } static inline int __gthread_cond_wait_recursive (__gthread_cond_t *__cond, __gthread_recursive_mutex_t *__mutex) { return __gthread_cond_wait (__cond, __mutex); } static inline int __gthread_cond_destroy (__gthread_cond_t* __cond) { return pthread_cond_destroy (__cond); } # 149 "/usr/include/x86_64-linux-gnu/c++/13/bits/gthr.h" 2 3 #pragma GCC visibility pop # 39 "/usr/include/c++/13/bits/atomic_wait.h" 2 3 # 1 "/usr/include/c++/13/cerrno" 1 3 # 39 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/cerrno" 3 # 43 "/usr/include/c++/13/bits/atomic_wait.h" 2 3 # 1 "/usr/include/c++/13/climits" 1 3 # 39 "/usr/include/c++/13/climits" 3 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 34 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/syslimits.h" 1 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 205 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 3 4 # 1 "/usr/include/limits.h" 1 3 4 # 26 "/usr/include/limits.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/limits.h" 2 3 4 # 195 "/usr/include/limits.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 2 3 4 # 161 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 1 3 4 # 38 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 3 4 # 1 "/usr/include/linux/limits.h" 1 3 4 # 39 "/usr/include/x86_64-linux-gnu/bits/local_lim.h" 2 3 4 # 162 "/usr/include/x86_64-linux-gnu/bits/posix1_lim.h" 2 3 4 # 196 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/posix2_lim.h" 1 3 4 # 200 "/usr/include/limits.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/xopen_lim.h" 1 3 4 # 64 "/usr/include/x86_64-linux-gnu/bits/xopen_lim.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/uio_lim.h" 1 3 4 # 65 "/usr/include/x86_64-linux-gnu/bits/xopen_lim.h" 2 3 4 # 204 "/usr/include/limits.h" 2 3 4 # 206 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 2 3 4 # 8 "/usr/lib/gcc/x86_64-linux-gnu/13/include/syslimits.h" 2 3 4 # 35 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 2 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 44 "/usr/include/c++/13/bits/atomic_wait.h" 2 3 # 1 "/usr/include/syscall.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/syscall.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/sys/syscall.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/unistd.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/asm/unistd.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/unistd_64.h" 1 3 4 # 21 "/usr/include/x86_64-linux-gnu/asm/unistd.h" 2 3 4 # 25 "/usr/include/x86_64-linux-gnu/sys/syscall.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/syscall.h" 1 3 4 # 30 "/usr/include/x86_64-linux-gnu/sys/syscall.h" 2 3 4 # 2 "/usr/include/syscall.h" 2 3 4 # 46 "/usr/include/c++/13/bits/atomic_wait.h" 2 3 # 1 "/usr/include/c++/13/bits/std_mutex.h" 1 3 # 33 "/usr/include/c++/13/bits/std_mutex.h" 3 # 34 "/usr/include/c++/13/bits/std_mutex.h" 3 # 43 "/usr/include/c++/13/bits/std_mutex.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/13/bits/std_mutex.h" 3 class __mutex_base { protected: typedef __gthread_mutex_t __native_type; __native_type _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, 0, { 0, 0 } } }; constexpr __mutex_base() noexcept = default; # 80 "/usr/include/c++/13/bits/std_mutex.h" 3 __mutex_base(const __mutex_base&) = delete; __mutex_base& operator=(const __mutex_base&) = delete; }; # 96 "/usr/include/c++/13/bits/std_mutex.h" 3 class mutex : private __mutex_base { public: typedef __native_type* native_handle_type; constexpr mutex() noexcept = default; ~mutex() = default; mutex(const mutex&) = delete; mutex& operator=(const mutex&) = delete; void lock() { int __e = __gthread_mutex_lock(&_M_mutex); if (__e) __throw_system_error(__e); } [[__nodiscard__]] bool try_lock() noexcept { return !__gthread_mutex_trylock(&_M_mutex); } void unlock() { __gthread_mutex_unlock(&_M_mutex); } native_handle_type native_handle() noexcept { return &_M_mutex; } }; class __condvar { using timespec = __gthread_time_t; public: __condvar() noexcept { } ~__condvar() { int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); do { if (std::__is_constant_evaluated() && !bool(__e != 16)) __builtin_unreachable(); } while (false); } __condvar(const __condvar&) = delete; __condvar& operator=(const __condvar&) = delete; __gthread_cond_t* native_handle() noexcept { return &_M_cond; } void wait(mutex& __m) { int __e __attribute__((__unused__)) = __gthread_cond_wait(&_M_cond, __m.native_handle()); do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); } void wait_until(mutex& __m, timespec& __abs_time) { __gthread_cond_timedwait(&_M_cond, __m.native_handle(), &__abs_time); } void wait_until(mutex& __m, clockid_t __clock, timespec& __abs_time) { pthread_cond_clockwait(&_M_cond, __m.native_handle(), __clock, &__abs_time); } void notify_one() noexcept { int __e __attribute__((__unused__)) = __gthread_cond_signal(&_M_cond); do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); } void notify_all() noexcept { int __e __attribute__((__unused__)) = __gthread_cond_broadcast(&_M_cond); do { if (std::__is_constant_evaluated() && !bool(__e == 0)) __builtin_unreachable(); } while (false); } protected: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; }; struct defer_lock_t { explicit defer_lock_t() = default; }; struct try_to_lock_t { explicit try_to_lock_t() = default; }; struct adopt_lock_t { explicit adopt_lock_t() = default; }; inline constexpr defer_lock_t defer_lock { }; inline constexpr try_to_lock_t try_to_lock { }; inline constexpr adopt_lock_t adopt_lock { }; # 242 "/usr/include/c++/13/bits/std_mutex.h" 3 template<typename _Mutex> class lock_guard { public: typedef _Mutex mutex_type; explicit lock_guard(mutex_type& __m) : _M_device(__m) { _M_device.lock(); } lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m) { } ~lock_guard() { _M_device.unlock(); } lock_guard(const lock_guard&) = delete; lock_guard& operator=(const lock_guard&) = delete; private: mutex_type& _M_device; }; } # 50 "/usr/include/c++/13/bits/atomic_wait.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { using __platform_wait_t = int; inline constexpr size_t __platform_wait_alignment = 4; # 75 "/usr/include/c++/13/bits/atomic_wait.h" 3 } template<typename _Tp> inline constexpr bool __platform_wait_uses_type = is_scalar_v<_Tp> && ((sizeof(_Tp) == sizeof(__detail::__platform_wait_t)) && (alignof(_Tp*) >= __detail::__platform_wait_alignment)); namespace __detail { enum class __futex_wait_flags : int { __private_flag = 0, __wait = 0, __wake = 1, __wait_bitset = 9, __wake_bitset = 10, __wait_private = __wait | __private_flag, __wake_private = __wake | __private_flag, __wait_bitset_private = __wait_bitset | __private_flag, __wake_bitset_private = __wake_bitset | __private_flag, __bitset_match_any = -1 }; template<typename _Tp> void __platform_wait(const _Tp* __addr, __platform_wait_t __val) noexcept { auto __e = syscall (202, static_cast<const void*>(__addr), static_cast<int>(__futex_wait_flags::__wait_private), __val, nullptr); if (!__e || (*__errno_location ()) == 11) return; if ((*__errno_location ()) != 4) __throw_system_error((*__errno_location ())); } template<typename _Tp> void __platform_notify(const _Tp* __addr, bool __all) noexcept { syscall (202, static_cast<const void*>(__addr), static_cast<int>(__futex_wait_flags::__wake_private), __all ? 0x7fffffff : 1); } inline void __thread_yield() noexcept { __gthread_yield(); } inline void __thread_relax() noexcept { __builtin_ia32_pause(); } inline constexpr auto __atomic_spin_count_relax = 12; inline constexpr auto __atomic_spin_count = 16; struct __default_spin_policy { bool operator()() const noexcept { return false; } }; template<typename _Pred, typename _Spin = __default_spin_policy> bool __atomic_spin(_Pred& __pred, _Spin __spin = _Spin{ }) noexcept { for (auto __i = 0; __i < __atomic_spin_count; ++__i) { if (__pred()) return true; if (__i < __atomic_spin_count_relax) __detail::__thread_relax(); else __detail::__thread_yield(); } while (__spin()) { if (__pred()) return true; } return false; } template<typename _Tp> bool __atomic_compare(const _Tp& __a, const _Tp& __b) { return __builtin_memcmp(&__a, &__b, sizeof(_Tp)) == 0; } struct __waiter_pool_base { static constexpr auto _S_align = 64; alignas(_S_align) __platform_wait_t _M_wait = 0; alignas(_S_align) __platform_wait_t _M_ver = 0; __waiter_pool_base() = default; void _M_enter_wait() noexcept { __atomic_fetch_add(&_M_wait, 1, 5); } void _M_leave_wait() noexcept { __atomic_fetch_sub(&_M_wait, 1, 3); } bool _M_waiting() const noexcept { __platform_wait_t __res; __atomic_load(&_M_wait, &__res, 5); return __res != 0; } void _M_notify(__platform_wait_t* __addr, [[maybe_unused]] bool __all, bool __bare) noexcept { if (__addr == &_M_ver) { __atomic_fetch_add(__addr, 1, 5); __all = true; } if (__bare || _M_waiting()) __platform_notify(__addr, __all); # 248 "/usr/include/c++/13/bits/atomic_wait.h" 3 } static __waiter_pool_base& _S_for(const void* __addr) noexcept { constexpr uintptr_t __ct = 16; static __waiter_pool_base __w[__ct]; auto __key = (uintptr_t(__addr) >> 2) % __ct; return __w[__key]; } }; struct __waiter_pool : __waiter_pool_base { void _M_do_wait(const __platform_wait_t* __addr, __platform_wait_t __old) noexcept { __platform_wait(__addr, __old); # 278 "/usr/include/c++/13/bits/atomic_wait.h" 3 } }; template<typename _Tp> struct __waiter_base { using __waiter_type = _Tp; __waiter_type& _M_w; __platform_wait_t* _M_addr; template<typename _Up> static __platform_wait_t* _S_wait_addr(const _Up* __a, __platform_wait_t* __b) { if constexpr (__platform_wait_uses_type<_Up>) return reinterpret_cast<__platform_wait_t*>(const_cast<_Up*>(__a)); else return __b; } static __waiter_type& _S_for(const void* __addr) noexcept { static_assert(sizeof(__waiter_type) == sizeof(__waiter_pool_base)); auto& res = __waiter_pool_base::_S_for(__addr); return reinterpret_cast<__waiter_type&>(res); } template<typename _Up> explicit __waiter_base(const _Up* __addr) noexcept : _M_w(_S_for(__addr)) , _M_addr(_S_wait_addr(__addr, &_M_w._M_ver)) { } void _M_notify(bool __all, bool __bare = false) noexcept { _M_w._M_notify(_M_addr, __all, __bare); } template<typename _Up, typename _ValFn, typename _Spin = __default_spin_policy> static bool _S_do_spin_v(__platform_wait_t* __addr, const _Up& __old, _ValFn __vfn, __platform_wait_t& __val, _Spin __spin = _Spin{ }) { auto const __pred = [=] { return !__detail::__atomic_compare(__old, __vfn()); }; if constexpr (__platform_wait_uses_type<_Up>) { __builtin_memcpy(&__val, &__old, sizeof(__val)); } else { __atomic_load(__addr, &__val, 2); } return __atomic_spin(__pred, __spin); } template<typename _Up, typename _ValFn, typename _Spin = __default_spin_policy> bool _M_do_spin_v(const _Up& __old, _ValFn __vfn, __platform_wait_t& __val, _Spin __spin = _Spin{ }) { return _S_do_spin_v(_M_addr, __old, __vfn, __val, __spin); } template<typename _Pred, typename _Spin = __default_spin_policy> static bool _S_do_spin(const __platform_wait_t* __addr, _Pred __pred, __platform_wait_t& __val, _Spin __spin = _Spin{ }) { __atomic_load(__addr, &__val, 2); return __atomic_spin(__pred, __spin); } template<typename _Pred, typename _Spin = __default_spin_policy> bool _M_do_spin(_Pred __pred, __platform_wait_t& __val, _Spin __spin = _Spin{ }) { return _S_do_spin(_M_addr, __pred, __val, __spin); } }; template<typename _EntersWait> struct __waiter : __waiter_base<__waiter_pool> { using __base_type = __waiter_base<__waiter_pool>; template<typename _Tp> explicit __waiter(const _Tp* __addr) noexcept : __base_type(__addr) { if constexpr (_EntersWait::value) _M_w._M_enter_wait(); } ~__waiter() { if constexpr (_EntersWait::value) _M_w._M_leave_wait(); } template<typename _Tp, typename _ValFn> void _M_do_wait_v(_Tp __old, _ValFn __vfn) { do { __platform_wait_t __val; if (__base_type::_M_do_spin_v(__old, __vfn, __val)) return; __base_type::_M_w._M_do_wait(__base_type::_M_addr, __val); } while (__detail::__atomic_compare(__old, __vfn())); } template<typename _Pred> void _M_do_wait(_Pred __pred) noexcept { do { __platform_wait_t __val; if (__base_type::_M_do_spin(__pred, __val)) return; __base_type::_M_w._M_do_wait(__base_type::_M_addr, __val); } while (!__pred()); } }; using __enters_wait = __waiter<std::true_type>; using __bare_wait = __waiter<std::false_type>; } template<typename _Tp, typename _ValFn> void __atomic_wait_address_v(const _Tp* __addr, _Tp __old, _ValFn __vfn) noexcept { __detail::__enters_wait __w(__addr); __w._M_do_wait_v(__old, __vfn); } template<typename _Tp, typename _Pred> void __atomic_wait_address(const _Tp* __addr, _Pred __pred) noexcept { __detail::__enters_wait __w(__addr); __w._M_do_wait(__pred); } template<typename _Pred> void __atomic_wait_address_bare(const __detail::__platform_wait_t* __addr, _Pred __pred) noexcept { do { __detail::__platform_wait_t __val; if (__detail::__bare_wait::_S_do_spin(__addr, __pred, __val)) return; __detail::__platform_wait(__addr, __val); } while (!__pred()); } template<typename _Tp> void __atomic_notify_address(const _Tp* __addr, bool __all) noexcept { __detail::__bare_wait __w(__addr); __w._M_notify(__all); } inline void __atomic_notify_address_bare(const __detail::__platform_wait_t* __addr, bool __all) noexcept { __detail::__platform_notify(__addr, __all); } } # 43 "/usr/include/c++/13/bits/atomic_base.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 62 "/usr/include/c++/13/bits/atomic_base.h" 3 enum class memory_order : int { relaxed, consume, acquire, release, acq_rel, seq_cst }; inline constexpr memory_order memory_order_relaxed = memory_order::relaxed; inline constexpr memory_order memory_order_consume = memory_order::consume; inline constexpr memory_order memory_order_acquire = memory_order::acquire; inline constexpr memory_order memory_order_release = memory_order::release; inline constexpr memory_order memory_order_acq_rel = memory_order::acq_rel; inline constexpr memory_order memory_order_seq_cst = memory_order::seq_cst; # 91 "/usr/include/c++/13/bits/atomic_base.h" 3 enum __memory_order_modifier { __memory_order_mask = 0x0ffff, __memory_order_modifier_mask = 0xffff0000, __memory_order_hle_acquire = 0x10000, __memory_order_hle_release = 0x20000 }; constexpr memory_order operator|(memory_order __m, __memory_order_modifier __mod) { return memory_order(int(__m) | int(__mod)); } constexpr memory_order operator&(memory_order __m, __memory_order_modifier __mod) { return memory_order(int(__m) & int(__mod)); } constexpr memory_order __cmpexch_failure_order2(memory_order __m) noexcept { return __m == memory_order_acq_rel ? memory_order_acquire : __m == memory_order_release ? memory_order_relaxed : __m; } constexpr memory_order __cmpexch_failure_order(memory_order __m) noexcept { return memory_order(__cmpexch_failure_order2(__m & __memory_order_mask) | __memory_order_modifier(__m & __memory_order_modifier_mask)); } constexpr bool __is_valid_cmpexch_failure_order(memory_order __m) noexcept { return (__m & __memory_order_mask) != memory_order_release && (__m & __memory_order_mask) != memory_order_acq_rel; } template<typename _IntTp> struct __atomic_base; inline __attribute__((__always_inline__)) void atomic_thread_fence(memory_order __m) noexcept { __atomic_thread_fence(int(__m)); } inline __attribute__((__always_inline__)) void atomic_signal_fence(memory_order __m) noexcept { __atomic_signal_fence(int(__m)); } template<typename _Tp> inline _Tp kill_dependency(_Tp __y) noexcept { _Tp __ret(__y); return __ret; } # 173 "/usr/include/c++/13/bits/atomic_base.h" 3 template<typename _Tp> struct atomic; template<typename _Tp> struct atomic<_Tp*>; typedef bool __atomic_flag_data_type; # 198 "/usr/include/c++/13/bits/atomic_base.h" 3 extern "C" { struct __atomic_flag_base { __atomic_flag_data_type _M_i = {}; }; } struct atomic_flag : public __atomic_flag_base { atomic_flag() noexcept = default; ~atomic_flag() noexcept = default; atomic_flag(const atomic_flag&) = delete; atomic_flag& operator=(const atomic_flag&) = delete; atomic_flag& operator=(const atomic_flag&) volatile = delete; constexpr atomic_flag(bool __i) noexcept : __atomic_flag_base{ _S_init(__i) } { } inline __attribute__((__always_inline__)) bool test_and_set(memory_order __m = memory_order_seq_cst) noexcept { return __atomic_test_and_set (&_M_i, int(__m)); } inline __attribute__((__always_inline__)) bool test_and_set(memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_test_and_set (&_M_i, int(__m)); } inline __attribute__((__always_inline__)) bool test(memory_order __m = memory_order_seq_cst) const noexcept { __atomic_flag_data_type __v; __atomic_load(&_M_i, &__v, int(__m)); return __v == 1; } inline __attribute__((__always_inline__)) bool test(memory_order __m = memory_order_seq_cst) const volatile noexcept { __atomic_flag_data_type __v; __atomic_load(&_M_i, &__v, int(__m)); return __v == 1; } inline __attribute__((__always_inline__)) void wait(bool __old, memory_order __m = memory_order_seq_cst) const noexcept { const __atomic_flag_data_type __v = __old ? 1 : 0; std::__atomic_wait_address_v(&_M_i, __v, [__m, this] { return __atomic_load_n(&_M_i, int(__m)); }); } inline __attribute__((__always_inline__)) void notify_one() noexcept { std::__atomic_notify_address(&_M_i, false); } inline __attribute__((__always_inline__)) void notify_all() noexcept { std::__atomic_notify_address(&_M_i, true); } inline __attribute__((__always_inline__)) void clear(memory_order __m = memory_order_seq_cst) noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); __atomic_clear (&_M_i, int(__m)); } inline __attribute__((__always_inline__)) void clear(memory_order __m = memory_order_seq_cst) volatile noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); __atomic_clear (&_M_i, int(__m)); } private: static constexpr __atomic_flag_data_type _S_init(bool __i) { return __i ? 1 : 0; } }; # 340 "/usr/include/c++/13/bits/atomic_base.h" 3 template<typename _ITp> struct __atomic_base { using value_type = _ITp; using difference_type = value_type; private: typedef _ITp __int_type; static constexpr int _S_alignment = sizeof(_ITp) > alignof(_ITp) ? sizeof(_ITp) : alignof(_ITp); alignas(_S_alignment) __int_type _M_i = 0; public: __atomic_base() noexcept = default; ~__atomic_base() noexcept = default; __atomic_base(const __atomic_base&) = delete; __atomic_base& operator=(const __atomic_base&) = delete; __atomic_base& operator=(const __atomic_base&) volatile = delete; constexpr __atomic_base(__int_type __i) noexcept : _M_i (__i) { } operator __int_type() const noexcept { return load(); } operator __int_type() const volatile noexcept { return load(); } __int_type operator=(__int_type __i) noexcept { store(__i); return __i; } __int_type operator=(__int_type __i) volatile noexcept { store(__i); return __i; } __int_type operator++(int) noexcept { return fetch_add(1); } __int_type operator++(int) volatile noexcept { return fetch_add(1); } __int_type operator--(int) noexcept { return fetch_sub(1); } __int_type operator--(int) volatile noexcept { return fetch_sub(1); } __int_type operator++() noexcept { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } __int_type operator++() volatile noexcept { return __atomic_add_fetch(&_M_i, 1, int(memory_order_seq_cst)); } __int_type operator--() noexcept { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } __int_type operator--() volatile noexcept { return __atomic_sub_fetch(&_M_i, 1, int(memory_order_seq_cst)); } __int_type operator+=(__int_type __i) noexcept { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator+=(__int_type __i) volatile noexcept { return __atomic_add_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator-=(__int_type __i) noexcept { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator-=(__int_type __i) volatile noexcept { return __atomic_sub_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator&=(__int_type __i) noexcept { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator&=(__int_type __i) volatile noexcept { return __atomic_and_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator|=(__int_type __i) noexcept { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator|=(__int_type __i) volatile noexcept { return __atomic_or_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator^=(__int_type __i) noexcept { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } __int_type operator^=(__int_type __i) volatile noexcept { return __atomic_xor_fetch(&_M_i, __i, int(memory_order_seq_cst)); } bool is_lock_free() const noexcept { return __atomic_is_lock_free(sizeof(_M_i), reinterpret_cast<void *>(-_S_alignment)); } bool is_lock_free() const volatile noexcept { return __atomic_is_lock_free(sizeof(_M_i), reinterpret_cast<void *>(-_S_alignment)); } inline __attribute__((__always_inline__)) void store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); __atomic_store_n(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) void store(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); __atomic_store_n(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type load(memory_order __m = memory_order_seq_cst) const noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); return __atomic_load_n(&_M_i, int(__m)); } inline __attribute__((__always_inline__)) __int_type load(memory_order __m = memory_order_seq_cst) const volatile noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); return __atomic_load_n(&_M_i, int(__m)); } inline __attribute__((__always_inline__)) __int_type exchange(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_exchange_n(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type exchange(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_exchange_n(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) bool compare_exchange_weak(__int_type& __i1, __int_type __i2, memory_order __m1, memory_order __m2) noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_weak(__int_type& __i1, __int_type __i2, memory_order __m1, memory_order __m2) volatile noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 1, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_weak(__int_type& __i1, __int_type __i2, memory_order __m = memory_order_seq_cst) noexcept { return compare_exchange_weak(__i1, __i2, __m, __cmpexch_failure_order(__m)); } inline __attribute__((__always_inline__)) bool compare_exchange_weak(__int_type& __i1, __int_type __i2, memory_order __m = memory_order_seq_cst) volatile noexcept { return compare_exchange_weak(__i1, __i2, __m, __cmpexch_failure_order(__m)); } inline __attribute__((__always_inline__)) bool compare_exchange_strong(__int_type& __i1, __int_type __i2, memory_order __m1, memory_order __m2) noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_strong(__int_type& __i1, __int_type __i2, memory_order __m1, memory_order __m2) volatile noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_i, &__i1, __i2, 0, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_strong(__int_type& __i1, __int_type __i2, memory_order __m = memory_order_seq_cst) noexcept { return compare_exchange_strong(__i1, __i2, __m, __cmpexch_failure_order(__m)); } inline __attribute__((__always_inline__)) bool compare_exchange_strong(__int_type& __i1, __int_type __i2, memory_order __m = memory_order_seq_cst) volatile noexcept { return compare_exchange_strong(__i1, __i2, __m, __cmpexch_failure_order(__m)); } inline __attribute__((__always_inline__)) void wait(__int_type __old, memory_order __m = memory_order_seq_cst) const noexcept { std::__atomic_wait_address_v(&_M_i, __old, [__m, this] { return this->load(__m); }); } inline __attribute__((__always_inline__)) void notify_one() noexcept { std::__atomic_notify_address(&_M_i, false); } inline __attribute__((__always_inline__)) void notify_all() noexcept { std::__atomic_notify_address(&_M_i, true); } inline __attribute__((__always_inline__)) __int_type fetch_add(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_add(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_add(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_add(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_sub(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_sub(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_sub(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_and(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_and(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_and(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_and(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_or(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_or(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_or(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_or(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_xor(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } inline __attribute__((__always_inline__)) __int_type fetch_xor(__int_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_xor(&_M_i, __i, int(__m)); } }; template<typename _PTp> struct __atomic_base<_PTp*> { private: typedef _PTp* __pointer_type; __pointer_type _M_p = nullptr; constexpr ptrdiff_t _M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); } constexpr ptrdiff_t _M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); } public: __atomic_base() noexcept = default; ~__atomic_base() noexcept = default; __atomic_base(const __atomic_base&) = delete; __atomic_base& operator=(const __atomic_base&) = delete; __atomic_base& operator=(const __atomic_base&) volatile = delete; constexpr __atomic_base(__pointer_type __p) noexcept : _M_p (__p) { } operator __pointer_type() const noexcept { return load(); } operator __pointer_type() const volatile noexcept { return load(); } __pointer_type operator=(__pointer_type __p) noexcept { store(__p); return __p; } __pointer_type operator=(__pointer_type __p) volatile noexcept { store(__p); return __p; } __pointer_type operator++(int) noexcept { return fetch_add(1); } __pointer_type operator++(int) volatile noexcept { return fetch_add(1); } __pointer_type operator--(int) noexcept { return fetch_sub(1); } __pointer_type operator--(int) volatile noexcept { return fetch_sub(1); } __pointer_type operator++() noexcept { return __atomic_add_fetch(&_M_p, _M_type_size(1), int(memory_order_seq_cst)); } __pointer_type operator++() volatile noexcept { return __atomic_add_fetch(&_M_p, _M_type_size(1), int(memory_order_seq_cst)); } __pointer_type operator--() noexcept { return __atomic_sub_fetch(&_M_p, _M_type_size(1), int(memory_order_seq_cst)); } __pointer_type operator--() volatile noexcept { return __atomic_sub_fetch(&_M_p, _M_type_size(1), int(memory_order_seq_cst)); } __pointer_type operator+=(ptrdiff_t __d) noexcept { return __atomic_add_fetch(&_M_p, _M_type_size(__d), int(memory_order_seq_cst)); } __pointer_type operator+=(ptrdiff_t __d) volatile noexcept { return __atomic_add_fetch(&_M_p, _M_type_size(__d), int(memory_order_seq_cst)); } __pointer_type operator-=(ptrdiff_t __d) noexcept { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), int(memory_order_seq_cst)); } __pointer_type operator-=(ptrdiff_t __d) volatile noexcept { return __atomic_sub_fetch(&_M_p, _M_type_size(__d), int(memory_order_seq_cst)); } bool is_lock_free() const noexcept { return __atomic_is_lock_free(sizeof(_M_p), reinterpret_cast<void *>(-__alignof(_M_p))); } bool is_lock_free() const volatile noexcept { return __atomic_is_lock_free(sizeof(_M_p), reinterpret_cast<void *>(-__alignof(_M_p))); } inline __attribute__((__always_inline__)) void store(__pointer_type __p, memory_order __m = memory_order_seq_cst) noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); __atomic_store_n(&_M_p, __p, int(__m)); } inline __attribute__((__always_inline__)) void store(__pointer_type __p, memory_order __m = memory_order_seq_cst) volatile noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acquire)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_consume)) __builtin_unreachable(); } while (false); __atomic_store_n(&_M_p, __p, int(__m)); } inline __attribute__((__always_inline__)) __pointer_type load(memory_order __m = memory_order_seq_cst) const noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); return __atomic_load_n(&_M_p, int(__m)); } inline __attribute__((__always_inline__)) __pointer_type load(memory_order __m = memory_order_seq_cst) const volatile noexcept { memory_order __b __attribute__ ((__unused__)) = __m & __memory_order_mask; do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_release)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__b != memory_order_acq_rel)) __builtin_unreachable(); } while (false); return __atomic_load_n(&_M_p, int(__m)); } inline __attribute__((__always_inline__)) __pointer_type exchange(__pointer_type __p, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_exchange_n(&_M_p, __p, int(__m)); } inline __attribute__((__always_inline__)) __pointer_type exchange(__pointer_type __p, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_exchange_n(&_M_p, __p, int(__m)); } inline __attribute__((__always_inline__)) bool compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) volatile noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 1, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) bool compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) volatile noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__m2))) __builtin_unreachable(); } while (false); return __atomic_compare_exchange_n(&_M_p, &__p1, __p2, 0, int(__m1), int(__m2)); } inline __attribute__((__always_inline__)) void wait(__pointer_type __old, memory_order __m = memory_order_seq_cst) const noexcept { std::__atomic_wait_address_v(&_M_p, __old, [__m, this] { return this->load(__m); }); } inline __attribute__((__always_inline__)) void notify_one() const noexcept { std::__atomic_notify_address(&_M_p, false); } inline __attribute__((__always_inline__)) void notify_all() const noexcept { std::__atomic_notify_address(&_M_p, true); } inline __attribute__((__always_inline__)) __pointer_type fetch_add(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } inline __attribute__((__always_inline__)) __pointer_type fetch_add(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_add(&_M_p, _M_type_size(__d), int(__m)); } inline __attribute__((__always_inline__)) __pointer_type fetch_sub(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } inline __attribute__((__always_inline__)) __pointer_type fetch_sub(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_fetch_sub(&_M_p, _M_type_size(__d), int(__m)); } }; namespace __atomic_impl { template<typename _Tp> constexpr bool __maybe_has_padding() { return !__has_unique_object_representations(_Tp) && !is_same<_Tp, float>::value && !is_same<_Tp, double>::value; } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp* __clear_padding(_Tp& __val) noexcept { auto* __ptr = std::__addressof(__val); if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) __builtin_clear_padding(__ptr); return __ptr; } template<typename _Tp> using _Val = typename remove_volatile<_Tp>::type; template<typename _Tp> inline __attribute__((__always_inline__)) bool __compare_exchange(_Tp& __val, _Val<_Tp>& __e, _Val<_Tp>& __i, bool __is_weak, memory_order __s, memory_order __f) noexcept { do { if (std::__is_constant_evaluated() && !bool(__is_valid_cmpexch_failure_order(__f))) __builtin_unreachable(); } while (false); using _Vp = _Val<_Tp>; if constexpr (__atomic_impl::__maybe_has_padding<_Vp>()) { alignas(_Vp) unsigned char __buf[sizeof(_Vp)]; _Vp* __exp = ::new((void*)__buf) _Vp(__e); __atomic_impl::__clear_padding(*__exp); if (__atomic_compare_exchange(std::__addressof(__val), __exp, __atomic_impl::__clear_padding(__i), __is_weak, int(__s), int(__f))) return true; __builtin_memcpy(std::__addressof(__e), __exp, sizeof(_Vp)); return false; } else return __atomic_compare_exchange(std::__addressof(__val), std::__addressof(__e), std::__addressof(__i), __is_weak, int(__s), int(__f)); } } namespace __atomic_impl { template<typename _Tp> using _Diff = __conditional_t<is_pointer_v<_Tp>, ptrdiff_t, _Val<_Tp>>; template<size_t _Size, size_t _Align> inline __attribute__((__always_inline__)) bool is_lock_free() noexcept { return __atomic_is_lock_free(_Size, reinterpret_cast<void *>(-_Align)); } template<typename _Tp> inline __attribute__((__always_inline__)) void store(_Tp* __ptr, _Val<_Tp> __t, memory_order __m) noexcept { __atomic_store(__ptr, __atomic_impl::__clear_padding(__t), int(__m)); } template<typename _Tp> inline __attribute__((__always_inline__)) _Val<_Tp> load(const _Tp* __ptr, memory_order __m) noexcept { alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; auto* __dest = reinterpret_cast<_Val<_Tp>*>(__buf); __atomic_load(__ptr, __dest, int(__m)); return *__dest; } template<typename _Tp> inline __attribute__((__always_inline__)) _Val<_Tp> exchange(_Tp* __ptr, _Val<_Tp> __desired, memory_order __m) noexcept { alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; auto* __dest = reinterpret_cast<_Val<_Tp>*>(__buf); __atomic_exchange(__ptr, __atomic_impl::__clear_padding(__desired), __dest, int(__m)); return *__dest; } template<typename _Tp> inline __attribute__((__always_inline__)) bool compare_exchange_weak(_Tp* __ptr, _Val<_Tp>& __expected, _Val<_Tp> __desired, memory_order __success, memory_order __failure) noexcept { return __atomic_impl::__compare_exchange(*__ptr, __expected, __desired, true, __success, __failure); } template<typename _Tp> inline __attribute__((__always_inline__)) bool compare_exchange_strong(_Tp* __ptr, _Val<_Tp>& __expected, _Val<_Tp> __desired, memory_order __success, memory_order __failure) noexcept { return __atomic_impl::__compare_exchange(*__ptr, __expected, __desired, false, __success, __failure); } template<typename _Tp> inline __attribute__((__always_inline__)) void wait(const _Tp* __ptr, _Val<_Tp> __old, memory_order __m = memory_order_seq_cst) noexcept { std::__atomic_wait_address_v(__ptr, __old, [__ptr, __m]() { return __atomic_impl::load(__ptr, __m); }); } template<typename _Tp> inline __attribute__((__always_inline__)) void notify_one(const _Tp* __ptr) noexcept { std::__atomic_notify_address(__ptr, false); } template<typename _Tp> inline __attribute__((__always_inline__)) void notify_all(const _Tp* __ptr) noexcept { std::__atomic_notify_address(__ptr, true); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp fetch_add(_Tp* __ptr, _Diff<_Tp> __i, memory_order __m) noexcept { return __atomic_fetch_add(__ptr, __i, int(__m)); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp fetch_sub(_Tp* __ptr, _Diff<_Tp> __i, memory_order __m) noexcept { return __atomic_fetch_sub(__ptr, __i, int(__m)); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp fetch_and(_Tp* __ptr, _Val<_Tp> __i, memory_order __m) noexcept { return __atomic_fetch_and(__ptr, __i, int(__m)); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp fetch_or(_Tp* __ptr, _Val<_Tp> __i, memory_order __m) noexcept { return __atomic_fetch_or(__ptr, __i, int(__m)); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp fetch_xor(_Tp* __ptr, _Val<_Tp> __i, memory_order __m) noexcept { return __atomic_fetch_xor(__ptr, __i, int(__m)); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp __add_fetch(_Tp* __ptr, _Diff<_Tp> __i) noexcept { return __atomic_add_fetch(__ptr, __i, 5); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp __sub_fetch(_Tp* __ptr, _Diff<_Tp> __i) noexcept { return __atomic_sub_fetch(__ptr, __i, 5); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp __and_fetch(_Tp* __ptr, _Val<_Tp> __i) noexcept { return __atomic_and_fetch(__ptr, __i, 5); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp __or_fetch(_Tp* __ptr, _Val<_Tp> __i) noexcept { return __atomic_or_fetch(__ptr, __i, 5); } template<typename _Tp> inline __attribute__((__always_inline__)) _Tp __xor_fetch(_Tp* __ptr, _Val<_Tp> __i) noexcept { return __atomic_xor_fetch(__ptr, __i, 5); } template<typename _Tp> _Tp __fetch_add_flt(_Tp* __ptr, _Val<_Tp> __i, memory_order __m) noexcept { _Val<_Tp> __oldval = load(__ptr, memory_order_relaxed); _Val<_Tp> __newval = __oldval + __i; while (!compare_exchange_weak(__ptr, __oldval, __newval, __m, memory_order_relaxed)) __newval = __oldval + __i; return __oldval; } template<typename _Tp> _Tp __fetch_sub_flt(_Tp* __ptr, _Val<_Tp> __i, memory_order __m) noexcept { _Val<_Tp> __oldval = load(__ptr, memory_order_relaxed); _Val<_Tp> __newval = __oldval - __i; while (!compare_exchange_weak(__ptr, __oldval, __newval, __m, memory_order_relaxed)) __newval = __oldval - __i; return __oldval; } template<typename _Tp> _Tp __add_fetch_flt(_Tp* __ptr, _Val<_Tp> __i) noexcept { _Val<_Tp> __oldval = load(__ptr, memory_order_relaxed); _Val<_Tp> __newval = __oldval + __i; while (!compare_exchange_weak(__ptr, __oldval, __newval, memory_order_seq_cst, memory_order_relaxed)) __newval = __oldval + __i; return __newval; } template<typename _Tp> _Tp __sub_fetch_flt(_Tp* __ptr, _Val<_Tp> __i) noexcept { _Val<_Tp> __oldval = load(__ptr, memory_order_relaxed); _Val<_Tp> __newval = __oldval - __i; while (!compare_exchange_weak(__ptr, __oldval, __newval, memory_order_seq_cst, memory_order_relaxed)) __newval = __oldval - __i; return __newval; } } template<typename _Fp> struct __atomic_float { static_assert(is_floating_point_v<_Fp>); static constexpr size_t _S_alignment = __alignof__(_Fp); public: using value_type = _Fp; using difference_type = value_type; static constexpr bool is_always_lock_free = __atomic_always_lock_free(sizeof(_Fp), 0); __atomic_float() = default; constexpr __atomic_float(_Fp __t) : _M_fp(__t) { } __atomic_float(const __atomic_float&) = delete; __atomic_float& operator=(const __atomic_float&) = delete; __atomic_float& operator=(const __atomic_float&) volatile = delete; _Fp operator=(_Fp __t) volatile noexcept { this->store(__t); return __t; } _Fp operator=(_Fp __t) noexcept { this->store(__t); return __t; } bool is_lock_free() const volatile noexcept { return __atomic_impl::is_lock_free<sizeof(_Fp), _S_alignment>(); } bool is_lock_free() const noexcept { return __atomic_impl::is_lock_free<sizeof(_Fp), _S_alignment>(); } void store(_Fp __t, memory_order __m = memory_order_seq_cst) volatile noexcept { __atomic_impl::store(&_M_fp, __t, __m); } void store(_Fp __t, memory_order __m = memory_order_seq_cst) noexcept { __atomic_impl::store(&_M_fp, __t, __m); } _Fp load(memory_order __m = memory_order_seq_cst) const volatile noexcept { return __atomic_impl::load(&_M_fp, __m); } _Fp load(memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::load(&_M_fp, __m); } operator _Fp() const volatile noexcept { return this->load(); } operator _Fp() const noexcept { return this->load(); } _Fp exchange(_Fp __desired, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_impl::exchange(&_M_fp, __desired, __m); } _Fp exchange(_Fp __desired, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_impl::exchange(&_M_fp, __desired, __m); } bool compare_exchange_weak(_Fp& __expected, _Fp __desired, memory_order __success, memory_order __failure) noexcept { return __atomic_impl::compare_exchange_weak(&_M_fp, __expected, __desired, __success, __failure); } bool compare_exchange_weak(_Fp& __expected, _Fp __desired, memory_order __success, memory_order __failure) volatile noexcept { return __atomic_impl::compare_exchange_weak(&_M_fp, __expected, __desired, __success, __failure); } bool compare_exchange_strong(_Fp& __expected, _Fp __desired, memory_order __success, memory_order __failure) noexcept { return __atomic_impl::compare_exchange_strong(&_M_fp, __expected, __desired, __success, __failure); } bool compare_exchange_strong(_Fp& __expected, _Fp __desired, memory_order __success, memory_order __failure) volatile noexcept { return __atomic_impl::compare_exchange_strong(&_M_fp, __expected, __desired, __success, __failure); } bool compare_exchange_weak(_Fp& __expected, _Fp __desired, memory_order __order = memory_order_seq_cst) noexcept { return compare_exchange_weak(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_weak(_Fp& __expected, _Fp __desired, memory_order __order = memory_order_seq_cst) volatile noexcept { return compare_exchange_weak(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_strong(_Fp& __expected, _Fp __desired, memory_order __order = memory_order_seq_cst) noexcept { return compare_exchange_strong(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_strong(_Fp& __expected, _Fp __desired, memory_order __order = memory_order_seq_cst) volatile noexcept { return compare_exchange_strong(__expected, __desired, __order, __cmpexch_failure_order(__order)); } inline __attribute__((__always_inline__)) void wait(_Fp __old, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::wait(&_M_fp, __old, __m); } inline __attribute__((__always_inline__)) void notify_one() const noexcept { __atomic_impl::notify_one(&_M_fp); } inline __attribute__((__always_inline__)) void notify_all() const noexcept { __atomic_impl::notify_all(&_M_fp); } value_type fetch_add(value_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_impl::__fetch_add_flt(&_M_fp, __i, __m); } value_type fetch_add(value_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_impl::__fetch_add_flt(&_M_fp, __i, __m); } value_type fetch_sub(value_type __i, memory_order __m = memory_order_seq_cst) noexcept { return __atomic_impl::__fetch_sub_flt(&_M_fp, __i, __m); } value_type fetch_sub(value_type __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return __atomic_impl::__fetch_sub_flt(&_M_fp, __i, __m); } value_type operator+=(value_type __i) noexcept { return __atomic_impl::__add_fetch_flt(&_M_fp, __i); } value_type operator+=(value_type __i) volatile noexcept { return __atomic_impl::__add_fetch_flt(&_M_fp, __i); } value_type operator-=(value_type __i) noexcept { return __atomic_impl::__sub_fetch_flt(&_M_fp, __i); } value_type operator-=(value_type __i) volatile noexcept { return __atomic_impl::__sub_fetch_flt(&_M_fp, __i); } private: alignas(_S_alignment) _Fp _M_fp = 0; }; template<typename _Tp, bool = is_integral_v<_Tp>, bool = is_floating_point_v<_Tp>> struct __atomic_ref; template<typename _Tp> struct __atomic_ref<_Tp, false, false> { static_assert(is_trivially_copyable_v<_Tp>); static constexpr int _S_min_alignment = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 ? 0 : sizeof(_Tp); public: using value_type = _Tp; static constexpr bool is_always_lock_free = __atomic_always_lock_free(sizeof(_Tp), 0); static constexpr size_t required_alignment = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); __atomic_ref& operator=(const __atomic_ref&) = delete; explicit __atomic_ref(_Tp& __t) : _M_ptr(std::__addressof(__t)) { do { if (std::__is_constant_evaluated() && !bool(((uintptr_t)_M_ptr % required_alignment) == 0)) __builtin_unreachable(); } while (false); } __atomic_ref(const __atomic_ref&) noexcept = default; _Tp operator=(_Tp __t) const noexcept { this->store(__t); return __t; } operator _Tp() const noexcept { return this->load(); } bool is_lock_free() const noexcept { return __atomic_impl::is_lock_free<sizeof(_Tp), required_alignment>(); } void store(_Tp __t, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::store(_M_ptr, __t, __m); } _Tp load(memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::load(_M_ptr, __m); } _Tp exchange(_Tp __desired, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::exchange(_M_ptr, __desired, __m); } bool compare_exchange_weak(_Tp& __expected, _Tp __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_weak(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_strong(_Tp& __expected, _Tp __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_strong(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_weak(_Tp& __expected, _Tp __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_weak(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_strong(_Tp& __expected, _Tp __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_strong(__expected, __desired, __order, __cmpexch_failure_order(__order)); } inline __attribute__((__always_inline__)) void wait(_Tp __old, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::wait(_M_ptr, __old, __m); } inline __attribute__((__always_inline__)) void notify_one() const noexcept { __atomic_impl::notify_one(_M_ptr); } inline __attribute__((__always_inline__)) void notify_all() const noexcept { __atomic_impl::notify_all(_M_ptr); } private: _Tp* _M_ptr; }; template<typename _Tp> struct __atomic_ref<_Tp, true, false> { static_assert(is_integral_v<_Tp>); public: using value_type = _Tp; using difference_type = value_type; static constexpr bool is_always_lock_free = __atomic_always_lock_free(sizeof(_Tp), 0); static constexpr size_t required_alignment = sizeof(_Tp) > alignof(_Tp) ? sizeof(_Tp) : alignof(_Tp); __atomic_ref() = delete; __atomic_ref& operator=(const __atomic_ref&) = delete; explicit __atomic_ref(_Tp& __t) : _M_ptr(&__t) { do { if (std::__is_constant_evaluated() && !bool(((uintptr_t)_M_ptr % required_alignment) == 0)) __builtin_unreachable(); } while (false); } __atomic_ref(const __atomic_ref&) noexcept = default; _Tp operator=(_Tp __t) const noexcept { this->store(__t); return __t; } operator _Tp() const noexcept { return this->load(); } bool is_lock_free() const noexcept { return __atomic_impl::is_lock_free<sizeof(_Tp), required_alignment>(); } void store(_Tp __t, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::store(_M_ptr, __t, __m); } _Tp load(memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::load(_M_ptr, __m); } _Tp exchange(_Tp __desired, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::exchange(_M_ptr, __desired, __m); } bool compare_exchange_weak(_Tp& __expected, _Tp __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_weak(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_strong(_Tp& __expected, _Tp __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_strong(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_weak(_Tp& __expected, _Tp __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_weak(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_strong(_Tp& __expected, _Tp __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_strong(__expected, __desired, __order, __cmpexch_failure_order(__order)); } inline __attribute__((__always_inline__)) void wait(_Tp __old, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::wait(_M_ptr, __old, __m); } inline __attribute__((__always_inline__)) void notify_one() const noexcept { __atomic_impl::notify_one(_M_ptr); } inline __attribute__((__always_inline__)) void notify_all() const noexcept { __atomic_impl::notify_all(_M_ptr); } value_type fetch_add(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_add(_M_ptr, __i, __m); } value_type fetch_sub(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_sub(_M_ptr, __i, __m); } value_type fetch_and(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_and(_M_ptr, __i, __m); } value_type fetch_or(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_or(_M_ptr, __i, __m); } value_type fetch_xor(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_xor(_M_ptr, __i, __m); } inline __attribute__((__always_inline__)) value_type operator++(int) const noexcept { return fetch_add(1); } inline __attribute__((__always_inline__)) value_type operator--(int) const noexcept { return fetch_sub(1); } value_type operator++() const noexcept { return __atomic_impl::__add_fetch(_M_ptr, value_type(1)); } value_type operator--() const noexcept { return __atomic_impl::__sub_fetch(_M_ptr, value_type(1)); } value_type operator+=(value_type __i) const noexcept { return __atomic_impl::__add_fetch(_M_ptr, __i); } value_type operator-=(value_type __i) const noexcept { return __atomic_impl::__sub_fetch(_M_ptr, __i); } value_type operator&=(value_type __i) const noexcept { return __atomic_impl::__and_fetch(_M_ptr, __i); } value_type operator|=(value_type __i) const noexcept { return __atomic_impl::__or_fetch(_M_ptr, __i); } value_type operator^=(value_type __i) const noexcept { return __atomic_impl::__xor_fetch(_M_ptr, __i); } private: _Tp* _M_ptr; }; template<typename _Fp> struct __atomic_ref<_Fp, false, true> { static_assert(is_floating_point_v<_Fp>); public: using value_type = _Fp; using difference_type = value_type; static constexpr bool is_always_lock_free = __atomic_always_lock_free(sizeof(_Fp), 0); static constexpr size_t required_alignment = __alignof__(_Fp); __atomic_ref() = delete; __atomic_ref& operator=(const __atomic_ref&) = delete; explicit __atomic_ref(_Fp& __t) : _M_ptr(&__t) { do { if (std::__is_constant_evaluated() && !bool(((uintptr_t)_M_ptr % required_alignment) == 0)) __builtin_unreachable(); } while (false); } __atomic_ref(const __atomic_ref&) noexcept = default; _Fp operator=(_Fp __t) const noexcept { this->store(__t); return __t; } operator _Fp() const noexcept { return this->load(); } bool is_lock_free() const noexcept { return __atomic_impl::is_lock_free<sizeof(_Fp), required_alignment>(); } void store(_Fp __t, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::store(_M_ptr, __t, __m); } _Fp load(memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::load(_M_ptr, __m); } _Fp exchange(_Fp __desired, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::exchange(_M_ptr, __desired, __m); } bool compare_exchange_weak(_Fp& __expected, _Fp __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_weak(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_strong(_Fp& __expected, _Fp __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_strong(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_weak(_Fp& __expected, _Fp __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_weak(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_strong(_Fp& __expected, _Fp __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_strong(__expected, __desired, __order, __cmpexch_failure_order(__order)); } inline __attribute__((__always_inline__)) void wait(_Fp __old, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::wait(_M_ptr, __old, __m); } inline __attribute__((__always_inline__)) void notify_one() const noexcept { __atomic_impl::notify_one(_M_ptr); } inline __attribute__((__always_inline__)) void notify_all() const noexcept { __atomic_impl::notify_all(_M_ptr); } value_type fetch_add(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::__fetch_add_flt(_M_ptr, __i, __m); } value_type fetch_sub(value_type __i, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::__fetch_sub_flt(_M_ptr, __i, __m); } value_type operator+=(value_type __i) const noexcept { return __atomic_impl::__add_fetch_flt(_M_ptr, __i); } value_type operator-=(value_type __i) const noexcept { return __atomic_impl::__sub_fetch_flt(_M_ptr, __i); } private: _Fp* _M_ptr; }; template<typename _Tp> struct __atomic_ref<_Tp*, false, false> { public: using value_type = _Tp*; using difference_type = ptrdiff_t; static constexpr bool is_always_lock_free = 2 == 2; static constexpr size_t required_alignment = __alignof__(_Tp*); __atomic_ref() = delete; __atomic_ref& operator=(const __atomic_ref&) = delete; explicit __atomic_ref(_Tp*& __t) : _M_ptr(std::__addressof(__t)) { do { if (std::__is_constant_evaluated() && !bool(((uintptr_t)_M_ptr % required_alignment) == 0)) __builtin_unreachable(); } while (false); } __atomic_ref(const __atomic_ref&) noexcept = default; _Tp* operator=(_Tp* __t) const noexcept { this->store(__t); return __t; } operator _Tp*() const noexcept { return this->load(); } bool is_lock_free() const noexcept { return __atomic_impl::is_lock_free<sizeof(_Tp*), required_alignment>(); } void store(_Tp* __t, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::store(_M_ptr, __t, __m); } _Tp* load(memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::load(_M_ptr, __m); } _Tp* exchange(_Tp* __desired, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::exchange(_M_ptr, __desired, __m); } bool compare_exchange_weak(_Tp*& __expected, _Tp* __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_weak(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_strong(_Tp*& __expected, _Tp* __desired, memory_order __success, memory_order __failure) const noexcept { return __atomic_impl::compare_exchange_strong(_M_ptr, __expected, __desired, __success, __failure); } bool compare_exchange_weak(_Tp*& __expected, _Tp* __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_weak(__expected, __desired, __order, __cmpexch_failure_order(__order)); } bool compare_exchange_strong(_Tp*& __expected, _Tp* __desired, memory_order __order = memory_order_seq_cst) const noexcept { return compare_exchange_strong(__expected, __desired, __order, __cmpexch_failure_order(__order)); } inline __attribute__((__always_inline__)) void wait(_Tp* __old, memory_order __m = memory_order_seq_cst) const noexcept { __atomic_impl::wait(_M_ptr, __old, __m); } inline __attribute__((__always_inline__)) void notify_one() const noexcept { __atomic_impl::notify_one(_M_ptr); } inline __attribute__((__always_inline__)) void notify_all() const noexcept { __atomic_impl::notify_all(_M_ptr); } inline __attribute__((__always_inline__)) value_type fetch_add(difference_type __d, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_add(_M_ptr, _S_type_size(__d), __m); } inline __attribute__((__always_inline__)) value_type fetch_sub(difference_type __d, memory_order __m = memory_order_seq_cst) const noexcept { return __atomic_impl::fetch_sub(_M_ptr, _S_type_size(__d), __m); } value_type operator++(int) const noexcept { return fetch_add(1); } value_type operator--(int) const noexcept { return fetch_sub(1); } value_type operator++() const noexcept { return __atomic_impl::__add_fetch(_M_ptr, _S_type_size(1)); } value_type operator--() const noexcept { return __atomic_impl::__sub_fetch(_M_ptr, _S_type_size(1)); } value_type operator+=(difference_type __d) const noexcept { return __atomic_impl::__add_fetch(_M_ptr, _S_type_size(__d)); } value_type operator-=(difference_type __d) const noexcept { return __atomic_impl::__sub_fetch(_M_ptr, _S_type_size(__d)); } private: static constexpr ptrdiff_t _S_type_size(ptrdiff_t __d) noexcept { static_assert(is_object_v<_Tp>); return __d * sizeof(_Tp); } _Tp** _M_ptr; }; } # 42 "/usr/include/c++/13/atomic" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 56 "/usr/include/c++/13/atomic" 3 template<typename _Tp> struct atomic; template<> struct atomic<bool> { using value_type = bool; private: __atomic_base<bool> _M_base; public: atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(bool __i) noexcept : _M_base(__i) { } bool operator=(bool __i) noexcept { return _M_base.operator=(__i); } bool operator=(bool __i) volatile noexcept { return _M_base.operator=(__i); } operator bool() const noexcept { return _M_base.load(); } operator bool() const volatile noexcept { return _M_base.load(); } bool is_lock_free() const noexcept { return _M_base.is_lock_free(); } bool is_lock_free() const volatile noexcept { return _M_base.is_lock_free(); } static constexpr bool is_always_lock_free = 2 == 2; void store(bool __i, memory_order __m = memory_order_seq_cst) noexcept { _M_base.store(__i, __m); } void store(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept { _M_base.store(__i, __m); } bool load(memory_order __m = memory_order_seq_cst) const noexcept { return _M_base.load(__m); } bool load(memory_order __m = memory_order_seq_cst) const volatile noexcept { return _M_base.load(__m); } bool exchange(bool __i, memory_order __m = memory_order_seq_cst) noexcept { return _M_base.exchange(__i, __m); } bool exchange(bool __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return _M_base.exchange(__i, __m); } bool compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, memory_order __m2) noexcept { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } bool compare_exchange_weak(bool& __i1, bool __i2, memory_order __m1, memory_order __m2) volatile noexcept { return _M_base.compare_exchange_weak(__i1, __i2, __m1, __m2); } bool compare_exchange_weak(bool& __i1, bool __i2, memory_order __m = memory_order_seq_cst) noexcept { return _M_base.compare_exchange_weak(__i1, __i2, __m); } bool compare_exchange_weak(bool& __i1, bool __i2, memory_order __m = memory_order_seq_cst) volatile noexcept { return _M_base.compare_exchange_weak(__i1, __i2, __m); } bool compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, memory_order __m2) noexcept { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } bool compare_exchange_strong(bool& __i1, bool __i2, memory_order __m1, memory_order __m2) volatile noexcept { return _M_base.compare_exchange_strong(__i1, __i2, __m1, __m2); } bool compare_exchange_strong(bool& __i1, bool __i2, memory_order __m = memory_order_seq_cst) noexcept { return _M_base.compare_exchange_strong(__i1, __i2, __m); } bool compare_exchange_strong(bool& __i1, bool __i2, memory_order __m = memory_order_seq_cst) volatile noexcept { return _M_base.compare_exchange_strong(__i1, __i2, __m); } void wait(bool __old, memory_order __m = memory_order_seq_cst) const noexcept { _M_base.wait(__old, __m); } void notify_one() noexcept { _M_base.notify_one(); } void notify_all() noexcept { _M_base.notify_all(); } }; # 197 "/usr/include/c++/13/atomic" 3 template<typename _Tp> struct atomic { using value_type = _Tp; private: static constexpr int _S_min_alignment = (sizeof(_Tp) & (sizeof(_Tp) - 1)) || sizeof(_Tp) > 16 ? 0 : sizeof(_Tp); static constexpr int _S_alignment = _S_min_alignment > alignof(_Tp) ? _S_min_alignment : alignof(_Tp); alignas(_S_alignment) _Tp _M_i = _Tp(); static_assert(__is_trivially_copyable(_Tp), "std::atomic requires a trivially copyable type"); static_assert(sizeof(_Tp) > 0, "Incomplete or zero-sized types are not supported"); static_assert(is_copy_constructible_v<_Tp>); static_assert(is_move_constructible_v<_Tp>); static_assert(is_copy_assignable_v<_Tp>); static_assert(is_move_assignable_v<_Tp>); public: atomic() = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(_Tp __i) noexcept : _M_i(__i) { if constexpr (__atomic_impl::__maybe_has_padding<_Tp>()) __builtin_clear_padding(std::__addressof(_M_i)); } operator _Tp() const noexcept { return load(); } operator _Tp() const volatile noexcept { return load(); } _Tp operator=(_Tp __i) noexcept { store(__i); return __i; } _Tp operator=(_Tp __i) volatile noexcept { store(__i); return __i; } bool is_lock_free() const noexcept { return __atomic_is_lock_free(sizeof(_M_i), reinterpret_cast<void *>(-_S_alignment)); } bool is_lock_free() const volatile noexcept { return __atomic_is_lock_free(sizeof(_M_i), reinterpret_cast<void *>(-_S_alignment)); } static constexpr bool is_always_lock_free = __atomic_always_lock_free(sizeof(_M_i), 0); void store(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept { __atomic_store(std::__addressof(_M_i), __atomic_impl::__clear_padding(__i), int(__m)); } void store(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept { __atomic_store(std::__addressof(_M_i), __atomic_impl::__clear_padding(__i), int(__m)); } _Tp load(memory_order __m = memory_order_seq_cst) const noexcept { alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); return *__ptr; } _Tp load(memory_order __m = memory_order_seq_cst) const volatile noexcept { alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); __atomic_load(std::__addressof(_M_i), __ptr, int(__m)); return *__ptr; } _Tp exchange(_Tp __i, memory_order __m = memory_order_seq_cst) noexcept { alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); __atomic_exchange(std::__addressof(_M_i), __atomic_impl::__clear_padding(__i), __ptr, int(__m)); return *__ptr; } _Tp exchange(_Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept { alignas(_Tp) unsigned char __buf[sizeof(_Tp)]; _Tp* __ptr = reinterpret_cast<_Tp*>(__buf); __atomic_exchange(std::__addressof(_M_i), __atomic_impl::__clear_padding(__i), __ptr, int(__m)); return *__ptr; } bool compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, memory_order __f) noexcept { return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, __s, __f); } bool compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __s, memory_order __f) volatile noexcept { return __atomic_impl::__compare_exchange(_M_i, __e, __i, true, __s, __f); } bool compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __m = memory_order_seq_cst) noexcept { return compare_exchange_weak(__e, __i, __m, __cmpexch_failure_order(__m)); } bool compare_exchange_weak(_Tp& __e, _Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return compare_exchange_weak(__e, __i, __m, __cmpexch_failure_order(__m)); } bool compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, memory_order __f) noexcept { return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, __s, __f); } bool compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __s, memory_order __f) volatile noexcept { return __atomic_impl::__compare_exchange(_M_i, __e, __i, false, __s, __f); } bool compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __m = memory_order_seq_cst) noexcept { return compare_exchange_strong(__e, __i, __m, __cmpexch_failure_order(__m)); } bool compare_exchange_strong(_Tp& __e, _Tp __i, memory_order __m = memory_order_seq_cst) volatile noexcept { return compare_exchange_strong(__e, __i, __m, __cmpexch_failure_order(__m)); } void wait(_Tp __old, memory_order __m = memory_order_seq_cst) const noexcept { std::__atomic_wait_address_v(&_M_i, __old, [__m, this] { return this->load(__m); }); } void notify_one() noexcept { std::__atomic_notify_address(&_M_i, false); } void notify_all() noexcept { std::__atomic_notify_address(&_M_i, true); } }; template<typename _Tp> struct atomic<_Tp*> { using value_type = _Tp*; using difference_type = ptrdiff_t; typedef _Tp* __pointer_type; typedef __atomic_base<_Tp*> __base_type; __base_type _M_b; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__pointer_type __p) noexcept : _M_b(__p) { } operator __pointer_type() const noexcept { return __pointer_type(_M_b); } operator __pointer_type() const volatile noexcept { return __pointer_type(_M_b); } __pointer_type operator=(__pointer_type __p) noexcept { return _M_b.operator=(__p); } __pointer_type operator=(__pointer_type __p) volatile noexcept { return _M_b.operator=(__p); } __pointer_type operator++(int) noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b++; } __pointer_type operator++(int) volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b++; } __pointer_type operator--(int) noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b--; } __pointer_type operator--(int) volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b--; } __pointer_type operator++() noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return ++_M_b; } __pointer_type operator++() volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return ++_M_b; } __pointer_type operator--() noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return --_M_b; } __pointer_type operator--() volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return --_M_b; } __pointer_type operator+=(ptrdiff_t __d) noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.operator+=(__d); } __pointer_type operator+=(ptrdiff_t __d) volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.operator+=(__d); } __pointer_type operator-=(ptrdiff_t __d) noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.operator-=(__d); } __pointer_type operator-=(ptrdiff_t __d) volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.operator-=(__d); } bool is_lock_free() const noexcept { return _M_b.is_lock_free(); } bool is_lock_free() const volatile noexcept { return _M_b.is_lock_free(); } static constexpr bool is_always_lock_free = 2 == 2; void store(__pointer_type __p, memory_order __m = memory_order_seq_cst) noexcept { return _M_b.store(__p, __m); } void store(__pointer_type __p, memory_order __m = memory_order_seq_cst) volatile noexcept { return _M_b.store(__p, __m); } __pointer_type load(memory_order __m = memory_order_seq_cst) const noexcept { return _M_b.load(__m); } __pointer_type load(memory_order __m = memory_order_seq_cst) const volatile noexcept { return _M_b.load(__m); } __pointer_type exchange(__pointer_type __p, memory_order __m = memory_order_seq_cst) noexcept { return _M_b.exchange(__p, __m); } __pointer_type exchange(__pointer_type __p, memory_order __m = memory_order_seq_cst) volatile noexcept { return _M_b.exchange(__p, __m); } bool compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) noexcept { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } bool compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) volatile noexcept { return _M_b.compare_exchange_weak(__p1, __p2, __m1, __m2); } bool compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, memory_order __m = memory_order_seq_cst) noexcept { return compare_exchange_weak(__p1, __p2, __m, __cmpexch_failure_order(__m)); } bool compare_exchange_weak(__pointer_type& __p1, __pointer_type __p2, memory_order __m = memory_order_seq_cst) volatile noexcept { return compare_exchange_weak(__p1, __p2, __m, __cmpexch_failure_order(__m)); } bool compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) noexcept { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } bool compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, memory_order __m1, memory_order __m2) volatile noexcept { return _M_b.compare_exchange_strong(__p1, __p2, __m1, __m2); } bool compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, memory_order __m = memory_order_seq_cst) noexcept { return _M_b.compare_exchange_strong(__p1, __p2, __m, __cmpexch_failure_order(__m)); } bool compare_exchange_strong(__pointer_type& __p1, __pointer_type __p2, memory_order __m = memory_order_seq_cst) volatile noexcept { return _M_b.compare_exchange_strong(__p1, __p2, __m, __cmpexch_failure_order(__m)); } void wait(__pointer_type __old, memory_order __m = memory_order_seq_cst) const noexcept { _M_b.wait(__old, __m); } void notify_one() noexcept { _M_b.notify_one(); } void notify_all() noexcept { _M_b.notify_all(); } __pointer_type fetch_add(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.fetch_add(__d, __m); } __pointer_type fetch_add(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.fetch_add(__d, __m); } __pointer_type fetch_sub(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.fetch_sub(__d, __m); } __pointer_type fetch_sub(ptrdiff_t __d, memory_order __m = memory_order_seq_cst) volatile noexcept { static_assert( is_object<_Tp>::value, "pointer to object type" ); return _M_b.fetch_sub(__d, __m); } }; template<> struct atomic<char> : __atomic_base<char> { typedef char __integral_type; typedef __atomic_base<char> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<signed char> : __atomic_base<signed char> { typedef signed char __integral_type; typedef __atomic_base<signed char> __base_type; atomic() noexcept= default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<unsigned char> : __atomic_base<unsigned char> { typedef unsigned char __integral_type; typedef __atomic_base<unsigned char> __base_type; atomic() noexcept= default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<short> : __atomic_base<short> { typedef short __integral_type; typedef __atomic_base<short> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<unsigned short> : __atomic_base<unsigned short> { typedef unsigned short __integral_type; typedef __atomic_base<unsigned short> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<int> : __atomic_base<int> { typedef int __integral_type; typedef __atomic_base<int> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<unsigned int> : __atomic_base<unsigned int> { typedef unsigned int __integral_type; typedef __atomic_base<unsigned int> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<long> : __atomic_base<long> { typedef long __integral_type; typedef __atomic_base<long> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<unsigned long> : __atomic_base<unsigned long> { typedef unsigned long __integral_type; typedef __atomic_base<unsigned long> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<long long> : __atomic_base<long long> { typedef long long __integral_type; typedef __atomic_base<long long> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<unsigned long long> : __atomic_base<unsigned long long> { typedef unsigned long long __integral_type; typedef __atomic_base<unsigned long long> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<wchar_t> : __atomic_base<wchar_t> { typedef wchar_t __integral_type; typedef __atomic_base<wchar_t> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<char8_t> : __atomic_base<char8_t> { typedef char8_t __integral_type; typedef __atomic_base<char8_t> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<char16_t> : __atomic_base<char16_t> { typedef char16_t __integral_type; typedef __atomic_base<char16_t> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; template<> struct atomic<char32_t> : __atomic_base<char32_t> { typedef char32_t __integral_type; typedef __atomic_base<char32_t> __base_type; atomic() noexcept = default; ~atomic() noexcept = default; atomic(const atomic&) = delete; atomic& operator=(const atomic&) = delete; atomic& operator=(const atomic&) volatile = delete; constexpr atomic(__integral_type __i) noexcept : __base_type(__i) { } using __base_type::operator __integral_type; using __base_type::operator=; static constexpr bool is_always_lock_free = 2 == 2; }; typedef atomic<bool> atomic_bool; typedef atomic<char> atomic_char; typedef atomic<signed char> atomic_schar; typedef atomic<unsigned char> atomic_uchar; typedef atomic<short> atomic_short; typedef atomic<unsigned short> atomic_ushort; typedef atomic<int> atomic_int; typedef atomic<unsigned int> atomic_uint; typedef atomic<long> atomic_long; typedef atomic<unsigned long> atomic_ulong; typedef atomic<long long> atomic_llong; typedef atomic<unsigned long long> atomic_ullong; typedef atomic<wchar_t> atomic_wchar_t; typedef atomic<char8_t> atomic_char8_t; typedef atomic<char16_t> atomic_char16_t; typedef atomic<char32_t> atomic_char32_t; typedef atomic<int8_t> atomic_int8_t; typedef atomic<uint8_t> atomic_uint8_t; typedef atomic<int16_t> atomic_int16_t; typedef atomic<uint16_t> atomic_uint16_t; typedef atomic<int32_t> atomic_int32_t; typedef atomic<uint32_t> atomic_uint32_t; typedef atomic<int64_t> atomic_int64_t; typedef atomic<uint64_t> atomic_uint64_t; typedef atomic<int_least8_t> atomic_int_least8_t; typedef atomic<uint_least8_t> atomic_uint_least8_t; typedef atomic<int_least16_t> atomic_int_least16_t; typedef atomic<uint_least16_t> atomic_uint_least16_t; typedef atomic<int_least32_t> atomic_int_least32_t; typedef atomic<uint_least32_t> atomic_uint_least32_t; typedef atomic<int_least64_t> atomic_int_least64_t; typedef atomic<uint_least64_t> atomic_uint_least64_t; typedef atomic<int_fast8_t> atomic_int_fast8_t; typedef atomic<uint_fast8_t> atomic_uint_fast8_t; typedef atomic<int_fast16_t> atomic_int_fast16_t; typedef atomic<uint_fast16_t> atomic_uint_fast16_t; typedef atomic<int_fast32_t> atomic_int_fast32_t; typedef atomic<uint_fast32_t> atomic_uint_fast32_t; typedef atomic<int_fast64_t> atomic_int_fast64_t; typedef atomic<uint_fast64_t> atomic_uint_fast64_t; typedef atomic<intptr_t> atomic_intptr_t; typedef atomic<uintptr_t> atomic_uintptr_t; typedef atomic<size_t> atomic_size_t; typedef atomic<ptrdiff_t> atomic_ptrdiff_t; typedef atomic<intmax_t> atomic_intmax_t; typedef atomic<uintmax_t> atomic_uintmax_t; inline bool atomic_flag_test_and_set_explicit(atomic_flag* __a, memory_order __m) noexcept { return __a->test_and_set(__m); } inline bool atomic_flag_test_and_set_explicit(volatile atomic_flag* __a, memory_order __m) noexcept { return __a->test_and_set(__m); } inline bool atomic_flag_test(const atomic_flag* __a) noexcept { return __a->test(); } inline bool atomic_flag_test(const volatile atomic_flag* __a) noexcept { return __a->test(); } inline bool atomic_flag_test_explicit(const atomic_flag* __a, memory_order __m) noexcept { return __a->test(__m); } inline bool atomic_flag_test_explicit(const volatile atomic_flag* __a, memory_order __m) noexcept { return __a->test(__m); } inline void atomic_flag_clear_explicit(atomic_flag* __a, memory_order __m) noexcept { __a->clear(__m); } inline void atomic_flag_clear_explicit(volatile atomic_flag* __a, memory_order __m) noexcept { __a->clear(__m); } inline bool atomic_flag_test_and_set(atomic_flag* __a) noexcept { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } inline bool atomic_flag_test_and_set(volatile atomic_flag* __a) noexcept { return atomic_flag_test_and_set_explicit(__a, memory_order_seq_cst); } inline void atomic_flag_clear(atomic_flag* __a) noexcept { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } inline void atomic_flag_clear(volatile atomic_flag* __a) noexcept { atomic_flag_clear_explicit(__a, memory_order_seq_cst); } inline void atomic_flag_wait(atomic_flag* __a, bool __old) noexcept { __a->wait(__old); } inline void atomic_flag_wait_explicit(atomic_flag* __a, bool __old, memory_order __m) noexcept { __a->wait(__old, __m); } inline void atomic_flag_notify_one(atomic_flag* __a) noexcept { __a->notify_one(); } inline void atomic_flag_notify_all(atomic_flag* __a) noexcept { __a->notify_all(); } template<typename _Tp> using __atomic_val_t = __type_identity_t<_Tp>; template<typename _Tp> using __atomic_diff_t = typename atomic<_Tp>::difference_type; template<typename _ITp> inline bool atomic_is_lock_free(const atomic<_ITp>* __a) noexcept { return __a->is_lock_free(); } template<typename _ITp> inline bool atomic_is_lock_free(const volatile atomic<_ITp>* __a) noexcept { return __a->is_lock_free(); } template<typename _ITp> inline void atomic_init(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { __a->store(__i, memory_order_relaxed); } template<typename _ITp> inline void atomic_init(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { __a->store(__i, memory_order_relaxed); } template<typename _ITp> inline void atomic_store_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { __a->store(__i, __m); } template<typename _ITp> inline void atomic_store_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { __a->store(__i, __m); } template<typename _ITp> inline _ITp atomic_load_explicit(const atomic<_ITp>* __a, memory_order __m) noexcept { return __a->load(__m); } template<typename _ITp> inline _ITp atomic_load_explicit(const volatile atomic<_ITp>* __a, memory_order __m) noexcept { return __a->load(__m); } template<typename _ITp> inline _ITp atomic_exchange_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->exchange(__i, __m); } template<typename _ITp> inline _ITp atomic_exchange_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->exchange(__i, __m); } template<typename _ITp> inline bool atomic_compare_exchange_weak_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2, memory_order __m1, memory_order __m2) noexcept { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } template<typename _ITp> inline bool atomic_compare_exchange_weak_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2, memory_order __m1, memory_order __m2) noexcept { return __a->compare_exchange_weak(*__i1, __i2, __m1, __m2); } template<typename _ITp> inline bool atomic_compare_exchange_strong_explicit(atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2, memory_order __m1, memory_order __m2) noexcept { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } template<typename _ITp> inline bool atomic_compare_exchange_strong_explicit(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2, memory_order __m1, memory_order __m2) noexcept { return __a->compare_exchange_strong(*__i1, __i2, __m1, __m2); } template<typename _ITp> inline void atomic_store(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { atomic_store_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline void atomic_store(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { atomic_store_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_load(const atomic<_ITp>* __a) noexcept { return atomic_load_explicit(__a, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_load(const volatile atomic<_ITp>* __a) noexcept { return atomic_load_explicit(__a, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_exchange(atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_exchange(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_exchange_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline bool atomic_compare_exchange_weak(atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2) noexcept { return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, memory_order_seq_cst, memory_order_seq_cst); } template<typename _ITp> inline bool atomic_compare_exchange_weak(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2) noexcept { return atomic_compare_exchange_weak_explicit(__a, __i1, __i2, memory_order_seq_cst, memory_order_seq_cst); } template<typename _ITp> inline bool atomic_compare_exchange_strong(atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2) noexcept { return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, memory_order_seq_cst, memory_order_seq_cst); } template<typename _ITp> inline bool atomic_compare_exchange_strong(volatile atomic<_ITp>* __a, __atomic_val_t<_ITp>* __i1, __atomic_val_t<_ITp> __i2) noexcept { return atomic_compare_exchange_strong_explicit(__a, __i1, __i2, memory_order_seq_cst, memory_order_seq_cst); } template<typename _Tp> inline void atomic_wait(const atomic<_Tp>* __a, typename std::atomic<_Tp>::value_type __old) noexcept { __a->wait(__old); } template<typename _Tp> inline void atomic_wait_explicit(const atomic<_Tp>* __a, typename std::atomic<_Tp>::value_type __old, std::memory_order __m) noexcept { __a->wait(__old, __m); } template<typename _Tp> inline void atomic_notify_one(atomic<_Tp>* __a) noexcept { __a->notify_one(); } template<typename _Tp> inline void atomic_notify_all(atomic<_Tp>* __a) noexcept { __a->notify_all(); } template<typename _ITp> inline _ITp atomic_fetch_add_explicit(atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_add(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_add_explicit(volatile atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_add(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_sub_explicit(atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_sub(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_sub_explicit(volatile atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_sub(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_and_explicit(__atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_and(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_and_explicit(volatile __atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_and(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_or_explicit(__atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_or(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_or_explicit(volatile __atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_or(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_xor_explicit(__atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_xor(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_xor_explicit(volatile __atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i, memory_order __m) noexcept { return __a->fetch_xor(__i, __m); } template<typename _ITp> inline _ITp atomic_fetch_add(atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i) noexcept { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_add(volatile atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i) noexcept { return atomic_fetch_add_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_sub(atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i) noexcept { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_sub(volatile atomic<_ITp>* __a, __atomic_diff_t<_ITp> __i) noexcept { return atomic_fetch_sub_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_and(__atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_and(volatile __atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_fetch_and_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_or(__atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_or(volatile __atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_fetch_or_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_xor(__atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } template<typename _ITp> inline _ITp atomic_fetch_xor(volatile __atomic_base<_ITp>* __a, __atomic_val_t<_ITp> __i) noexcept { return atomic_fetch_xor_explicit(__a, __i, memory_order_seq_cst); } template<> struct atomic<float> : __atomic_float<float> { atomic() noexcept = default; constexpr atomic(float __fp) noexcept : __atomic_float<float>(__fp) { } atomic& operator=(const atomic&) volatile = delete; atomic& operator=(const atomic&) = delete; using __atomic_float<float>::operator=; }; template<> struct atomic<double> : __atomic_float<double> { atomic() noexcept = default; constexpr atomic(double __fp) noexcept : __atomic_float<double>(__fp) { } atomic& operator=(const atomic&) volatile = delete; atomic& operator=(const atomic&) = delete; using __atomic_float<double>::operator=; }; template<> struct atomic<long double> : __atomic_float<long double> { atomic() noexcept = default; constexpr atomic(long double __fp) noexcept : __atomic_float<long double>(__fp) { } atomic& operator=(const atomic&) volatile = delete; atomic& operator=(const atomic&) = delete; using __atomic_float<long double>::operator=; }; # 1755 "/usr/include/c++/13/atomic" 3 template<typename _Tp> struct atomic_ref : __atomic_ref<_Tp> { explicit atomic_ref(_Tp& __t) noexcept : __atomic_ref<_Tp>(__t) { } atomic_ref& operator=(const atomic_ref&) = delete; atomic_ref(const atomic_ref&) = default; using __atomic_ref<_Tp>::operator=; }; using atomic_signed_lock_free = atomic<make_signed_t<__detail::__platform_wait_t>>; using atomic_unsigned_lock_free = atomic<make_unsigned_t<__detail::__platform_wait_t>>; # 1790 "/usr/include/c++/13/atomic" 3 } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/atomic_count.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/atomic_count.hpp" 3 4 typedef std::atomic<long> atomic_count; inline void increment(atomic_count& a, long b) { a += b; } inline void decrement(atomic_count& a, long b) { a -= b; } inline void ref_count_up(atomic_count& a) { a.fetch_add(1, std::memory_order_relaxed); } inline bool ref_count_down(atomic_count& a) { if (a.fetch_sub(1, std::memory_order_release) == 1) { std::atomic_thread_fence(std::memory_order_acquire); return true; } return false; } # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/atomic_count.hpp" 3 4 } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 2 3 4 # 1 "/usr/include/c++/13/memory" 1 3 4 # 47 "/usr/include/c++/13/memory" 3 4 # 48 "/usr/include/c++/13/memory" 3 # 66 "/usr/include/c++/13/memory" 3 # 1 "/usr/include/c++/13/bits/stl_tempbuf.h" 1 3 # 65 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template<typename _Tp> inline void __return_temporary_buffer(_Tp* __p, size_t __len __attribute__((__unused__))) { ::operator delete(__p, __len * sizeof(_Tp)); } } # 101 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 template<typename _Tp> [[__deprecated__]] pair<_Tp*, ptrdiff_t> get_temporary_buffer(ptrdiff_t __len) noexcept { const ptrdiff_t __max = __gnu_cxx::__numeric_traits<ptrdiff_t>::__max / sizeof(_Tp); if (__len > __max) __len = __max; while (__len > 0) { _Tp* __tmp = static_cast<_Tp*>(::operator new(__len * sizeof(_Tp), std::nothrow)); if (__tmp != 0) return std::pair<_Tp*, ptrdiff_t>(__tmp, __len); __len = __len == 1 ? 0 : ((__len + 1) / 2); } return std::pair<_Tp*, ptrdiff_t>(static_cast<_Tp*>(0), 0); } # 129 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 template<typename _Tp> inline void return_temporary_buffer(_Tp* __p) { ::operator delete(__p); } template<typename _ForwardIterator, typename _Tp> class _Temporary_buffer { public: typedef _Tp value_type; typedef value_type* pointer; typedef pointer iterator; typedef ptrdiff_t size_type; protected: size_type _M_original_len; size_type _M_len; pointer _M_buffer; public: size_type size() const { return _M_len; } size_type requested_size() const { return _M_original_len; } iterator begin() { return _M_buffer; } iterator end() { return _M_buffer + _M_len; } _Temporary_buffer(_ForwardIterator __seed, size_type __original_len); ~_Temporary_buffer() { std::_Destroy(_M_buffer, _M_buffer + _M_len); std::__detail::__return_temporary_buffer(_M_buffer, _M_len); } private: _Temporary_buffer(const _Temporary_buffer&); void operator=(const _Temporary_buffer&); }; template<bool> struct __uninitialized_construct_buf_dispatch { template<typename _Pointer, typename _ForwardIterator> static void __ucr(_Pointer __first, _Pointer __last, _ForwardIterator __seed) { if (__first == __last) return; _Pointer __cur = __first; try { std::_Construct(std::__addressof(*__first), std::move(*__seed)); _Pointer __prev = __cur; ++__cur; for(; __cur != __last; ++__cur, ++__prev) std::_Construct(std::__addressof(*__cur), std::move(*__prev)); *__seed = std::move(*__prev); } catch(...) { std::_Destroy(__first, __cur); throw; } } }; template<> struct __uninitialized_construct_buf_dispatch<true> { template<typename _Pointer, typename _ForwardIterator> static void __ucr(_Pointer, _Pointer, _ForwardIterator) { } }; # 247 "/usr/include/c++/13/bits/stl_tempbuf.h" 3 template<typename _Pointer, typename _ForwardIterator> inline void __uninitialized_construct_buf(_Pointer __first, _Pointer __last, _ForwardIterator __seed) { typedef typename std::iterator_traits<_Pointer>::value_type _ValueType; std::__uninitialized_construct_buf_dispatch< __has_trivial_constructor(_ValueType)>:: __ucr(__first, __last, __seed); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _ForwardIterator, typename _Tp> _Temporary_buffer<_ForwardIterator, _Tp>:: _Temporary_buffer(_ForwardIterator __seed, size_type __original_len) : _M_original_len(__original_len), _M_len(0), _M_buffer(0) { std::pair<pointer, size_type> __p( std::get_temporary_buffer<value_type>(_M_original_len)); if (__p.first) { try { std::__uninitialized_construct_buf(__p.first, __p.first + __p.second, __seed); _M_buffer = __p.first; _M_len = __p.second; } catch(...) { std::__detail::__return_temporary_buffer(__p.first, __p.second); throw; } } } #pragma GCC diagnostic pop } # 67 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 1 3 # 59 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 64 "/usr/include/c++/13/bits/stl_raw_storage_iter.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template <class _OutputIterator, class _Tp> class [[__deprecated__]] raw_storage_iterator : public iterator<output_iterator_tag, void, void, void, void> { protected: _OutputIterator _M_iter; public: explicit raw_storage_iterator(_OutputIterator __x) : _M_iter(__x) {} raw_storage_iterator& operator*() { return *this; } raw_storage_iterator& operator=(const _Tp& __element) { std::_Construct(std::__addressof(*_M_iter), __element); return *this; } raw_storage_iterator& operator=(_Tp&& __element) { std::_Construct(std::__addressof(*_M_iter), std::move(__element)); return *this; } raw_storage_iterator& operator++() { ++_M_iter; return *this; } raw_storage_iterator operator++(int) { raw_storage_iterator __tmp = *this; ++_M_iter; return __tmp; } _OutputIterator base() const { return _M_iter; } }; #pragma GCC diagnostic pop } # 71 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/bits/align.h" 1 3 # 39 "/usr/include/c++/13/bits/align.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 61 "/usr/include/c++/13/bits/align.h" 3 inline void* align(size_t __align, size_t __size, void*& __ptr, size_t& __space) noexcept { if (__space < __size) return nullptr; const auto __intptr = reinterpret_cast<uintptr_t>(__ptr); const auto __aligned = (__intptr - 1u + __align) & -__align; const auto __diff = __aligned - __intptr; if (__diff > (__space - __size)) return nullptr; else { __space -= __diff; return __ptr = reinterpret_cast<void*>(__aligned); } } # 90 "/usr/include/c++/13/bits/align.h" 3 template<size_t _Align, class _Tp> [[nodiscard,__gnu__::__always_inline__]] constexpr _Tp* assume_aligned(_Tp* __ptr) noexcept { static_assert(std::has_single_bit(_Align)); if (std::is_constant_evaluated()) return __ptr; else { ; return static_cast<_Tp*>(__builtin_assume_aligned(__ptr, _Align)); } } } # 75 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/bits/unique_ptr.h" 1 3 # 42 "/usr/include/c++/13/bits/unique_ptr.h" 3 # 1 "/usr/include/c++/13/ostream" 1 3 # 36 "/usr/include/c++/13/ostream" 3 # 37 "/usr/include/c++/13/ostream" 3 # 1 "/usr/include/c++/13/ios" 1 3 # 36 "/usr/include/c++/13/ios" 3 # 37 "/usr/include/c++/13/ios" 3 # 1 "/usr/include/c++/13/bits/ios_base.h" 1 3 # 37 "/usr/include/c++/13/bits/ios_base.h" 3 # 38 "/usr/include/c++/13/bits/ios_base.h" 3 # 1 "/usr/include/c++/13/ext/atomicity.h" 1 3 # 32 "/usr/include/c++/13/ext/atomicity.h" 3 # 33 "/usr/include/c++/13/ext/atomicity.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/atomic_word.h" 1 3 # 32 "/usr/include/x86_64-linux-gnu/c++/13/bits/atomic_word.h" 3 typedef int _Atomic_word; # 37 "/usr/include/c++/13/ext/atomicity.h" 2 3 # 1 "/usr/include/x86_64-linux-gnu/sys/single_threaded.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/sys/single_threaded.h" 3 4 extern "C" { extern char __libc_single_threaded; } # 39 "/usr/include/c++/13/ext/atomicity.h" 2 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { __attribute__((__always_inline__)) inline bool __is_single_threaded() noexcept { return ::__libc_single_threaded; } inline _Atomic_word __attribute__((__always_inline__)) __exchange_and_add(volatile _Atomic_word* __mem, int __val) { return __atomic_fetch_add(__mem, __val, 4); } inline void __attribute__((__always_inline__)) __atomic_add(volatile _Atomic_word* __mem, int __val) { __atomic_fetch_add(__mem, __val, 4); } # 80 "/usr/include/c++/13/ext/atomicity.h" 3 inline _Atomic_word __attribute__((__always_inline__)) __exchange_and_add_single(_Atomic_word* __mem, int __val) { _Atomic_word __result = *__mem; *__mem += __val; return __result; } inline void __attribute__((__always_inline__)) __atomic_add_single(_Atomic_word* __mem, int __val) { *__mem += __val; } inline _Atomic_word __attribute__ ((__always_inline__)) __exchange_and_add_dispatch(_Atomic_word* __mem, int __val) { if (__is_single_threaded()) return __exchange_and_add_single(__mem, __val); else return __exchange_and_add(__mem, __val); } inline void __attribute__ ((__always_inline__)) __atomic_add_dispatch(_Atomic_word* __mem, int __val) { if (__is_single_threaded()) __atomic_add_single(__mem, __val); else __atomic_add(__mem, __val); } } # 40 "/usr/include/c++/13/bits/ios_base.h" 2 3 # 1 "/usr/include/c++/13/bits/locale_classes.h" 1 3 # 37 "/usr/include/c++/13/bits/locale_classes.h" 3 # 38 "/usr/include/c++/13/bits/locale_classes.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 62 "/usr/include/c++/13/bits/locale_classes.h" 3 class locale { public: typedef int category; class facet; class id; class _Impl; friend class facet; friend class _Impl; template<typename _Facet> friend bool has_facet(const locale&) throw(); template<typename _Facet> friend const _Facet& use_facet(const locale&); template<typename _Facet> friend const _Facet* __try_use_facet(const locale&) noexcept; template<typename _Cache> friend struct __use_cache; # 102 "/usr/include/c++/13/bits/locale_classes.h" 3 static const category none = 0; static const category ctype = 1L << 0; static const category numeric = 1L << 1; static const category collate = 1L << 2; static const category time = 1L << 3; static const category monetary = 1L << 4; static const category messages = 1L << 5; static const category all = (ctype | numeric | collate | time | monetary | messages); # 121 "/usr/include/c++/13/bits/locale_classes.h" 3 locale() throw(); # 130 "/usr/include/c++/13/bits/locale_classes.h" 3 locale(const locale& __other) throw(); # 140 "/usr/include/c++/13/bits/locale_classes.h" 3 explicit locale(const char* __s); # 155 "/usr/include/c++/13/bits/locale_classes.h" 3 locale(const locale& __base, const char* __s, category __cat); # 166 "/usr/include/c++/13/bits/locale_classes.h" 3 explicit locale(const std::string& __s) : locale(__s.c_str()) { } # 181 "/usr/include/c++/13/bits/locale_classes.h" 3 locale(const locale& __base, const std::string& __s, category __cat) : locale(__base, __s.c_str(), __cat) { } # 196 "/usr/include/c++/13/bits/locale_classes.h" 3 locale(const locale& __base, const locale& __add, category __cat); # 209 "/usr/include/c++/13/bits/locale_classes.h" 3 template<typename _Facet> locale(const locale& __other, _Facet* __f); ~locale() throw(); # 223 "/usr/include/c++/13/bits/locale_classes.h" 3 const locale& operator=(const locale& __other) throw(); # 238 "/usr/include/c++/13/bits/locale_classes.h" 3 template<typename _Facet> locale combine(const locale& __other) const; __attribute ((__abi_tag__ ("cxx11"))) string name() const; # 258 "/usr/include/c++/13/bits/locale_classes.h" 3 bool operator==(const locale& __other) const throw(); # 288 "/usr/include/c++/13/bits/locale_classes.h" 3 template<typename _Char, typename _Traits, typename _Alloc> bool operator()(const basic_string<_Char, _Traits, _Alloc>& __s1, const basic_string<_Char, _Traits, _Alloc>& __s2) const; # 304 "/usr/include/c++/13/bits/locale_classes.h" 3 static locale global(const locale& __loc); static const locale& classic(); private: _Impl* _M_impl; static _Impl* _S_classic; static _Impl* _S_global; static const char* const* const _S_categories; # 339 "/usr/include/c++/13/bits/locale_classes.h" 3 enum { _S_categories_size = 6 + 6 }; static __gthread_once_t _S_once; explicit locale(_Impl*) throw(); static void _S_initialize(); static void _S_initialize_once() throw(); static category _S_normalize_category(category); void _M_coalesce(const locale& __base, const locale& __add, category __cat); static const id* const _S_twinned_facets[]; }; # 377 "/usr/include/c++/13/bits/locale_classes.h" 3 class locale::facet { private: friend class locale; friend class locale::_Impl; mutable _Atomic_word _M_refcount; static __c_locale _S_c_locale; static const char _S_c_name[2]; static __gthread_once_t _S_once; static void _S_initialize_once(); protected: # 408 "/usr/include/c++/13/bits/locale_classes.h" 3 explicit facet(size_t __refs = 0) throw() : _M_refcount(__refs ? 1 : 0) { } virtual ~facet(); static void _S_create_c_locale(__c_locale& __cloc, const char* __s, __c_locale __old = 0); static __c_locale _S_clone_c_locale(__c_locale& __cloc) throw(); static void _S_destroy_c_locale(__c_locale& __cloc); static __c_locale _S_lc_ctype_c_locale(__c_locale __cloc, const char* __s); static __c_locale _S_get_c_locale(); __attribute__ ((__const__)) static const char* _S_get_c_name() throw(); # 444 "/usr/include/c++/13/bits/locale_classes.h" 3 facet(const facet&) = delete; facet& operator=(const facet&) = delete; private: void _M_add_reference() const throw() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } void _M_remove_reference() const throw() { ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) { ; try { delete this; } catch(...) { } } } const facet* _M_sso_shim(const id*) const; const facet* _M_cow_shim(const id*) const; protected: class __shim; }; # 489 "/usr/include/c++/13/bits/locale_classes.h" 3 class locale::id { private: friend class locale; friend class locale::_Impl; template<typename _Facet> friend const _Facet& use_facet(const locale&); template<typename _Facet> friend bool has_facet(const locale&) throw(); template<typename _Facet> friend const _Facet* __try_use_facet(const locale&) noexcept; mutable size_t _M_index; static _Atomic_word _S_refcount; void operator=(const id&); id(const id&); public: id() { } size_t _M_id() const throw(); }; class locale::_Impl { public: friend class locale; friend class locale::facet; template<typename _Facet> friend bool has_facet(const locale&) throw(); template<typename _Facet> friend const _Facet& use_facet(const locale&); template<typename _Facet> friend const _Facet* __try_use_facet(const locale&) noexcept; template<typename _Cache> friend struct __use_cache; private: _Atomic_word _M_refcount; const facet** _M_facets; size_t _M_facets_size; const facet** _M_caches; char** _M_names; static const locale::id* const _S_id_ctype[]; static const locale::id* const _S_id_numeric[]; static const locale::id* const _S_id_collate[]; static const locale::id* const _S_id_time[]; static const locale::id* const _S_id_monetary[]; static const locale::id* const _S_id_messages[]; static const locale::id* const* const _S_facet_categories[]; void _M_add_reference() throw() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } void _M_remove_reference() throw() { ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1) == 1) { ; try { delete this; } catch(...) { } } } _Impl(const _Impl&, size_t); _Impl(const char*, size_t); _Impl(size_t) throw(); ~_Impl() throw(); _Impl(const _Impl&); void operator=(const _Impl&); bool _M_check_same_name() { bool __ret = true; if (_M_names[1]) for (size_t __i = 0; __ret && __i < _S_categories_size - 1; ++__i) __ret = __builtin_strcmp(_M_names[__i], _M_names[__i + 1]) == 0; return __ret; } void _M_replace_categories(const _Impl*, category); void _M_replace_category(const _Impl*, const locale::id* const*); void _M_replace_facet(const _Impl*, const locale::id*); void _M_install_facet(const locale::id*, const facet*); template<typename _Facet> void _M_init_facet(_Facet* __facet) { _M_install_facet(&_Facet::id, __facet); } template<typename _Facet> void _M_init_facet_unchecked(_Facet* __facet) { __facet->_M_add_reference(); _M_facets[_Facet::id._M_id()] = __facet; } void _M_install_cache(const facet*, size_t); void _M_init_extra(facet**); void _M_init_extra(void*, void*, const char*, const char*); }; # 659 "/usr/include/c++/13/bits/locale_classes.h" 3 template<typename _CharT> class __cxx11:: collate : public locale::facet { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; protected: __c_locale _M_c_locale_collate; public: static locale::id id; # 686 "/usr/include/c++/13/bits/locale_classes.h" 3 explicit collate(size_t __refs = 0) : facet(__refs), _M_c_locale_collate(_S_get_c_locale()) { } # 700 "/usr/include/c++/13/bits/locale_classes.h" 3 explicit collate(__c_locale __cloc, size_t __refs = 0) : facet(__refs), _M_c_locale_collate(_S_clone_c_locale(__cloc)) { } # 717 "/usr/include/c++/13/bits/locale_classes.h" 3 int compare(const _CharT* __lo1, const _CharT* __hi1, const _CharT* __lo2, const _CharT* __hi2) const { return this->do_compare(__lo1, __hi1, __lo2, __hi2); } # 736 "/usr/include/c++/13/bits/locale_classes.h" 3 string_type transform(const _CharT* __lo, const _CharT* __hi) const { return this->do_transform(__lo, __hi); } # 750 "/usr/include/c++/13/bits/locale_classes.h" 3 long hash(const _CharT* __lo, const _CharT* __hi) const { return this->do_hash(__lo, __hi); } int _M_compare(const _CharT*, const _CharT*) const throw(); size_t _M_transform(_CharT*, const _CharT*, size_t) const throw(); protected: virtual ~collate() { _S_destroy_c_locale(_M_c_locale_collate); } # 779 "/usr/include/c++/13/bits/locale_classes.h" 3 virtual int do_compare(const _CharT* __lo1, const _CharT* __hi1, const _CharT* __lo2, const _CharT* __hi2) const; # 793 "/usr/include/c++/13/bits/locale_classes.h" 3 virtual string_type do_transform(const _CharT* __lo, const _CharT* __hi) const; # 806 "/usr/include/c++/13/bits/locale_classes.h" 3 virtual long do_hash(const _CharT* __lo, const _CharT* __hi) const; }; template<typename _CharT> locale::id collate<_CharT>::id; template<> int collate<char>::_M_compare(const char*, const char*) const throw(); template<> size_t collate<char>::_M_transform(char*, const char*, size_t) const throw(); template<> int collate<wchar_t>::_M_compare(const wchar_t*, const wchar_t*) const throw(); template<> size_t collate<wchar_t>::_M_transform(wchar_t*, const wchar_t*, size_t) const throw(); template<typename _CharT> class __cxx11:: collate_byname : public collate<_CharT> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; explicit collate_byname(const char* __s, size_t __refs = 0) : collate<_CharT>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_collate); this->_S_create_c_locale(this->_M_c_locale_collate, __s); } } explicit collate_byname(const string& __s, size_t __refs = 0) : collate_byname(__s.c_str(), __refs) { } protected: virtual ~collate_byname() { } }; } # 1 "/usr/include/c++/13/bits/locale_classes.tcc" 1 3 # 37 "/usr/include/c++/13/bits/locale_classes.tcc" 3 # 38 "/usr/include/c++/13/bits/locale_classes.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Facet> locale:: locale(const locale& __other, _Facet* __f) { _M_impl = new _Impl(*__other._M_impl, 1); try { _M_impl->_M_install_facet(&_Facet::id, __f); } catch(...) { _M_impl->_M_remove_reference(); throw; } delete [] _M_impl->_M_names[0]; _M_impl->_M_names[0] = 0; } template<typename _Facet> locale locale:: combine(const locale& __other) const { _Impl* __tmp = new _Impl(*_M_impl, 1); try { __tmp->_M_replace_facet(__other._M_impl, &_Facet::id); } catch(...) { __tmp->_M_remove_reference(); throw; } return locale(__tmp); } template<typename _CharT, typename _Traits, typename _Alloc> bool locale:: operator()(const basic_string<_CharT, _Traits, _Alloc>& __s1, const basic_string<_CharT, _Traits, _Alloc>& __s2) const { typedef std::collate<_CharT> __collate_type; const __collate_type& __collate = use_facet<__collate_type>(*this); return (__collate.compare(__s1.data(), __s1.data() + __s1.length(), __s2.data(), __s2.data() + __s2.length()) < 0); } template<typename _Facet> inline const _Facet* __try_use_facet(const locale& __loc) noexcept { const size_t __i = _Facet::id._M_id(); const locale::facet** __facets = __loc._M_impl->_M_facets; if constexpr (__is_same(_Facet, ctype<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, num_get<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, num_put<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, codecvt<char, char, mbstate_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, collate<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, moneypunct<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, moneypunct<char, true>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, money_get<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, money_put<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, numpunct<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, time_get<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, time_put<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, messages<char>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, ctype<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, num_get<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, num_put<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, codecvt<wchar_t, char, mbstate_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, collate<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, moneypunct<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, moneypunct<wchar_t, true>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, money_get<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, money_put<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, numpunct<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, time_get<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, time_put<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, messages<wchar_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, codecvt<char16_t, char, mbstate_t>)) return static_cast<const _Facet*>(__facets[__i]); if constexpr (__is_same(_Facet, codecvt<char32_t, char, mbstate_t>)) return static_cast<const _Facet*>(__facets[__i]); if (__i >= __loc._M_impl->_M_facets_size || !__facets[__i]) return 0; return dynamic_cast<const _Facet*>(__facets[__i]); } # 161 "/usr/include/c++/13/bits/locale_classes.tcc" 3 template<typename _Facet> inline bool has_facet(const locale& __loc) throw() { static_assert(__is_base_of(locale::facet, _Facet), "template argument must be derived from locale::facet"); return std::__try_use_facet<_Facet>(__loc) != 0; } # 188 "/usr/include/c++/13/bits/locale_classes.tcc" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdangling-reference" template<typename _Facet> inline const _Facet& use_facet(const locale& __loc) { static_assert(__is_base_of(locale::facet, _Facet), "template argument must be derived from locale::facet"); if (const _Facet* __f = std::__try_use_facet<_Facet>(__loc)) return *__f; __throw_bad_cast(); } #pragma GCC diagnostic pop template<typename _CharT> int collate<_CharT>::_M_compare(const _CharT*, const _CharT*) const throw () { return 0; } template<typename _CharT> size_t collate<_CharT>::_M_transform(_CharT*, const _CharT*, size_t) const throw () { return 0; } template<typename _CharT> int collate<_CharT>:: do_compare(const _CharT* __lo1, const _CharT* __hi1, const _CharT* __lo2, const _CharT* __hi2) const { const string_type __one(__lo1, __hi1); const string_type __two(__lo2, __hi2); const _CharT* __p = __one.c_str(); const _CharT* __pend = __one.data() + __one.length(); const _CharT* __q = __two.c_str(); const _CharT* __qend = __two.data() + __two.length(); for (;;) { const int __res = _M_compare(__p, __q); if (__res) return __res; __p += char_traits<_CharT>::length(__p); __q += char_traits<_CharT>::length(__q); if (__p == __pend && __q == __qend) return 0; else if (__p == __pend) return -1; else if (__q == __qend) return 1; __p++; __q++; } } template<typename _CharT> typename collate<_CharT>::string_type collate<_CharT>:: do_transform(const _CharT* __lo, const _CharT* __hi) const { string_type __ret; const string_type __str(__lo, __hi); const _CharT* __p = __str.c_str(); const _CharT* __pend = __str.data() + __str.length(); size_t __len = (__hi - __lo) * 2; _CharT* __c = new _CharT[__len]; try { for (;;) { size_t __res = _M_transform(__c, __p, __len); if (__res >= __len) { __len = __res + 1; delete [] __c, __c = 0; __c = new _CharT[__len]; __res = _M_transform(__c, __p, __len); } __ret.append(__c, __res); __p += char_traits<_CharT>::length(__p); if (__p == __pend) break; __p++; __ret.push_back(_CharT()); } } catch(...) { delete [] __c; throw; } delete [] __c; return __ret; } template<typename _CharT> long collate<_CharT>:: do_hash(const _CharT* __lo, const _CharT* __hi) const { unsigned long __val = 0; for (; __lo < __hi; ++__lo) __val = *__lo + ((__val << 7) | (__val >> (__gnu_cxx::__numeric_traits<unsigned long>:: __digits - 7))); return static_cast<long>(__val); } extern template class collate<char>; extern template class collate_byname<char>; extern template const collate<char>* __try_use_facet<collate<char> >(const locale&) noexcept; extern template const collate<char>& use_facet<collate<char> >(const locale&); extern template bool has_facet<collate<char> >(const locale&); extern template class collate<wchar_t>; extern template class collate_byname<wchar_t>; extern template const collate<wchar_t>* __try_use_facet<collate<wchar_t> >(const locale&) noexcept; extern template const collate<wchar_t>& use_facet<collate<wchar_t> >(const locale&); extern template bool has_facet<collate<wchar_t> >(const locale&); } # 870 "/usr/include/c++/13/bits/locale_classes.h" 2 3 # 42 "/usr/include/c++/13/bits/ios_base.h" 2 3 # 1 "/usr/include/c++/13/system_error" 1 3 # 32 "/usr/include/c++/13/system_error" 3 # 33 "/usr/include/c++/13/system_error" 3 # 41 "/usr/include/c++/13/system_error" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h" 1 3 # 34 "/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h" 3 # 1 "/usr/include/c++/13/cerrno" 1 3 # 39 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/cerrno" 3 # 35 "/usr/include/x86_64-linux-gnu/c++/13/bits/error_constants.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum class errc { address_family_not_supported = 97, address_in_use = 98, address_not_available = 99, already_connected = 106, argument_list_too_long = 7, argument_out_of_domain = 33, bad_address = 14, bad_file_descriptor = 9, bad_message = 74, broken_pipe = 32, connection_aborted = 103, connection_already_in_progress = 114, connection_refused = 111, connection_reset = 104, cross_device_link = 18, destination_address_required = 89, device_or_resource_busy = 16, directory_not_empty = 39, executable_format_error = 8, file_exists = 17, file_too_large = 27, filename_too_long = 36, function_not_supported = 38, host_unreachable = 113, identifier_removed = 43, illegal_byte_sequence = 84, inappropriate_io_control_operation = 25, interrupted = 4, invalid_argument = 22, invalid_seek = 29, io_error = 5, is_a_directory = 21, message_size = 90, network_down = 100, network_reset = 102, network_unreachable = 101, no_buffer_space = 105, no_child_process = 10, no_link = 67, no_lock_available = 37, no_message_available = 61, no_message = 42, no_protocol_option = 92, no_space_on_device = 28, no_stream_resources = 63, no_such_device_or_address = 6, no_such_device = 19, no_such_file_or_directory = 2, no_such_process = 3, not_a_directory = 20, not_a_socket = 88, not_a_stream = 60, not_connected = 107, not_enough_memory = 12, not_supported = 95, operation_canceled = 125, operation_in_progress = 115, operation_not_permitted = 1, operation_not_supported = 95, operation_would_block = 11, owner_dead = 130, permission_denied = 13, protocol_error = 71, protocol_not_supported = 93, read_only_file_system = 30, resource_deadlock_would_occur = 35, resource_unavailable_try_again = 11, result_out_of_range = 34, state_not_recoverable = 131, stream_timeout = 62, text_file_busy = 26, timed_out = 110, too_many_files_open_in_system = 23, too_many_files_open = 24, too_many_links = 31, too_many_symbolic_link_levels = 40, value_too_large = 75, wrong_protocol_type = 91 }; } # 42 "/usr/include/c++/13/system_error" 2 3 # 1 "/usr/include/c++/13/stdexcept" 1 3 # 36 "/usr/include/c++/13/stdexcept" 3 # 37 "/usr/include/c++/13/stdexcept" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __cow_string { union { const char* _M_p; char _M_bytes[sizeof(const char*)]; }; __cow_string(); __cow_string(const std::string&); __cow_string(const char*, size_t); __cow_string(const __cow_string&) noexcept; __cow_string& operator=(const __cow_string&) noexcept; ~__cow_string(); __cow_string(__cow_string&&) noexcept; __cow_string& operator=(__cow_string&&) noexcept; }; typedef basic_string<char> __sso_string; # 113 "/usr/include/c++/13/stdexcept" 3 class logic_error : public exception { __cow_string _M_msg; public: explicit logic_error(const string& __arg) ; explicit logic_error(const char*) ; logic_error(logic_error&&) noexcept; logic_error& operator=(logic_error&&) noexcept; logic_error(const logic_error&) noexcept; logic_error& operator=(const logic_error&) noexcept; virtual ~logic_error() noexcept; virtual const char* what() const noexcept; }; class domain_error : public logic_error { public: explicit domain_error(const string& __arg) ; explicit domain_error(const char*) ; domain_error(const domain_error&) = default; domain_error& operator=(const domain_error&) = default; domain_error(domain_error&&) = default; domain_error& operator=(domain_error&&) = default; virtual ~domain_error() noexcept; }; class invalid_argument : public logic_error { public: explicit invalid_argument(const string& __arg) ; explicit invalid_argument(const char*) ; invalid_argument(const invalid_argument&) = default; invalid_argument& operator=(const invalid_argument&) = default; invalid_argument(invalid_argument&&) = default; invalid_argument& operator=(invalid_argument&&) = default; virtual ~invalid_argument() noexcept; }; class length_error : public logic_error { public: explicit length_error(const string& __arg) ; explicit length_error(const char*) ; length_error(const length_error&) = default; length_error& operator=(const length_error&) = default; length_error(length_error&&) = default; length_error& operator=(length_error&&) = default; virtual ~length_error() noexcept; }; class out_of_range : public logic_error { public: explicit out_of_range(const string& __arg) ; explicit out_of_range(const char*) ; out_of_range(const out_of_range&) = default; out_of_range& operator=(const out_of_range&) = default; out_of_range(out_of_range&&) = default; out_of_range& operator=(out_of_range&&) = default; virtual ~out_of_range() noexcept; }; class runtime_error : public exception { __cow_string _M_msg; public: explicit runtime_error(const string& __arg) ; explicit runtime_error(const char*) ; runtime_error(runtime_error&&) noexcept; runtime_error& operator=(runtime_error&&) noexcept; runtime_error(const runtime_error&) noexcept; runtime_error& operator=(const runtime_error&) noexcept; virtual ~runtime_error() noexcept; virtual const char* what() const noexcept; }; class range_error : public runtime_error { public: explicit range_error(const string& __arg) ; explicit range_error(const char*) ; range_error(const range_error&) = default; range_error& operator=(const range_error&) = default; range_error(range_error&&) = default; range_error& operator=(range_error&&) = default; virtual ~range_error() noexcept; }; class overflow_error : public runtime_error { public: explicit overflow_error(const string& __arg) ; explicit overflow_error(const char*) ; overflow_error(const overflow_error&) = default; overflow_error& operator=(const overflow_error&) = default; overflow_error(overflow_error&&) = default; overflow_error& operator=(overflow_error&&) = default; virtual ~overflow_error() noexcept; }; class underflow_error : public runtime_error { public: explicit underflow_error(const string& __arg) ; explicit underflow_error(const char*) ; underflow_error(const underflow_error&) = default; underflow_error& operator=(const underflow_error&) = default; underflow_error(underflow_error&&) = default; underflow_error& operator=(underflow_error&&) = default; virtual ~underflow_error() noexcept; }; } # 44 "/usr/include/c++/13/system_error" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { class error_code; class error_condition; class system_error; template<typename _Tp> struct is_error_code_enum : public false_type { }; template<typename _Tp> struct is_error_condition_enum : public false_type { }; template<> struct is_error_condition_enum<errc> : public true_type { }; template <typename _Tp> inline constexpr bool is_error_code_enum_v = is_error_code_enum<_Tp>::value; template <typename _Tp> inline constexpr bool is_error_condition_enum_v = is_error_condition_enum<_Tp>::value; inline namespace _V2 { # 106 "/usr/include/c++/13/system_error" 3 class error_category { public: constexpr error_category() noexcept = default; virtual ~error_category(); error_category(const error_category&) = delete; error_category& operator=(const error_category&) = delete; virtual const char* name() const noexcept = 0; private: __attribute ((__abi_tag__ ("cxx11"))) virtual __cow_string _M_message(int) const; public: __attribute ((__abi_tag__ ("cxx11"))) virtual string message(int) const = 0; # 144 "/usr/include/c++/13/system_error" 3 public: virtual error_condition default_error_condition(int __i) const noexcept; virtual bool equivalent(int __i, const error_condition& __cond) const noexcept; virtual bool equivalent(const error_code& __code, int __i) const noexcept; [[__nodiscard__]] bool operator==(const error_category& __other) const noexcept { return this == &__other; } [[nodiscard]] strong_ordering operator<=>(const error_category& __rhs) const noexcept { return std::compare_three_way()(this, &__rhs); } # 178 "/usr/include/c++/13/system_error" 3 }; [[__nodiscard__, __gnu__::__const__]] const error_category& generic_category() noexcept; [[__nodiscard__, __gnu__::__const__]] const error_category& system_category() noexcept; } namespace __adl_only { void make_error_code() = delete; void make_error_condition() = delete; } # 223 "/usr/include/c++/13/system_error" 3 class error_code { template<typename _ErrorCodeEnum> using _Check = __enable_if_t<is_error_code_enum<_ErrorCodeEnum>::value>; public: error_code() noexcept : _M_value(0), _M_cat(&system_category()) { } error_code(int __v, const error_category& __cat) noexcept : _M_value(__v), _M_cat(&__cat) { } template<typename _ErrorCodeEnum, typename = _Check<_ErrorCodeEnum>> error_code(_ErrorCodeEnum __e) noexcept { using __adl_only::make_error_code; *this = make_error_code(__e); } error_code(const error_code&) = default; error_code& operator=(const error_code&) = default; void assign(int __v, const error_category& __cat) noexcept { _M_value = __v; _M_cat = &__cat; } void clear() noexcept { assign(0, system_category()); } [[__nodiscard__]] int value() const noexcept { return _M_value; } [[__nodiscard__]] const error_category& category() const noexcept { return *_M_cat; } error_condition default_error_condition() const noexcept; __attribute ((__abi_tag__ ("cxx11"))) string message() const { return category().message(value()); } [[__nodiscard__]] explicit operator bool() const noexcept { return _M_value != 0; } private: int _M_value; const error_category* _M_cat; }; # 300 "/usr/include/c++/13/system_error" 3 [[__nodiscard__]] inline error_code make_error_code(errc __e) noexcept { return error_code(static_cast<int>(__e), generic_category()); } # 314 "/usr/include/c++/13/system_error" 3 [[nodiscard]] inline strong_ordering operator<=>(const error_code& __lhs, const error_code& __rhs) noexcept { if (auto __c = __lhs.category() <=> __rhs.category(); __c != 0) return __c; return __lhs.value() <=> __rhs.value(); } # 337 "/usr/include/c++/13/system_error" 3 template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) { return (__os << __e.category().name() << ':' << __e.value()); } # 354 "/usr/include/c++/13/system_error" 3 class error_condition { template<typename _ErrorConditionEnum> using _Check = __enable_if_t<is_error_condition_enum<_ErrorConditionEnum>::value>; public: error_condition() noexcept : _M_value(0), _M_cat(&generic_category()) { } error_condition(int __v, const error_category& __cat) noexcept : _M_value(__v), _M_cat(&__cat) { } template<typename _ErrorConditionEnum, typename = _Check<_ErrorConditionEnum>> error_condition(_ErrorConditionEnum __e) noexcept { using __adl_only::make_error_condition; *this = make_error_condition(__e); } error_condition(const error_condition&) = default; error_condition& operator=(const error_condition&) = default; void assign(int __v, const error_category& __cat) noexcept { _M_value = __v; _M_cat = &__cat; } void clear() noexcept { assign(0, generic_category()); } [[__nodiscard__]] int value() const noexcept { return _M_value; } [[__nodiscard__]] const error_category& category() const noexcept { return *_M_cat; } __attribute ((__abi_tag__ ("cxx11"))) string message() const { return category().message(value()); } [[__nodiscard__]] explicit operator bool() const noexcept { return _M_value != 0; } private: int _M_value; const error_category* _M_cat; }; # 433 "/usr/include/c++/13/system_error" 3 [[__nodiscard__]] inline error_condition make_error_condition(errc __e) noexcept { return error_condition(static_cast<int>(__e), generic_category()); } # 447 "/usr/include/c++/13/system_error" 3 [[__nodiscard__]] inline bool operator==(const error_code& __lhs, const error_code& __rhs) noexcept { return __lhs.category() == __rhs.category() && __lhs.value() == __rhs.value(); } # 463 "/usr/include/c++/13/system_error" 3 [[__nodiscard__]] inline bool operator==(const error_code& __lhs, const error_condition& __rhs) noexcept { return __lhs.category().equivalent(__lhs.value(), __rhs) || __rhs.category().equivalent(__lhs, __rhs.value()); } # 478 "/usr/include/c++/13/system_error" 3 [[__nodiscard__]] inline bool operator==(const error_condition& __lhs, const error_condition& __rhs) noexcept { return __lhs.category() == __rhs.category() && __lhs.value() == __rhs.value(); } # 496 "/usr/include/c++/13/system_error" 3 [[nodiscard]] inline strong_ordering operator<=>(const error_condition& __lhs, const error_condition& __rhs) noexcept { if (auto __c = __lhs.category() <=> __rhs.category(); __c != 0) return __c; return __lhs.value() <=> __rhs.value(); } # 556 "/usr/include/c++/13/system_error" 3 class system_error : public std::runtime_error { private: error_code _M_code; public: system_error(error_code __ec = error_code()) : runtime_error(__ec.message()), _M_code(__ec) { } system_error(error_code __ec, const string& __what) : runtime_error(__what + ": " + __ec.message()), _M_code(__ec) { } system_error(error_code __ec, const char* __what) : runtime_error(__what + (": " + __ec.message())), _M_code(__ec) { } system_error(int __v, const error_category& __ecat, const char* __what) : system_error(error_code(__v, __ecat), __what) { } system_error(int __v, const error_category& __ecat) : runtime_error(error_code(__v, __ecat).message()), _M_code(__v, __ecat) { } system_error(int __v, const error_category& __ecat, const string& __what) : runtime_error(__what + ": " + error_code(__v, __ecat).message()), _M_code(__v, __ecat) { } system_error (const system_error &) = default; system_error &operator= (const system_error &) = default; virtual ~system_error() noexcept; const error_code& code() const noexcept { return _M_code; } }; } namespace std __attribute__ ((__visibility__ ("default"))) { template<> struct hash<error_code> : public __hash_base<size_t, error_code> { size_t operator()(const error_code& __e) const noexcept { const size_t __tmp = std::_Hash_impl::hash(__e.value()); return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); } }; template<> struct hash<error_condition> : public __hash_base<size_t, error_condition> { size_t operator()(const error_condition& __e) const noexcept { const size_t __tmp = std::_Hash_impl::hash(__e.value()); return std::_Hash_impl::__hash_combine(&__e.category(), __tmp); } }; } # 47 "/usr/include/c++/13/bits/ios_base.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum _Ios_Fmtflags { _S_boolalpha = 1L << 0, _S_dec = 1L << 1, _S_fixed = 1L << 2, _S_hex = 1L << 3, _S_internal = 1L << 4, _S_left = 1L << 5, _S_oct = 1L << 6, _S_right = 1L << 7, _S_scientific = 1L << 8, _S_showbase = 1L << 9, _S_showpoint = 1L << 10, _S_showpos = 1L << 11, _S_skipws = 1L << 12, _S_unitbuf = 1L << 13, _S_uppercase = 1L << 14, _S_adjustfield = _S_left | _S_right | _S_internal, _S_basefield = _S_dec | _S_oct | _S_hex, _S_floatfield = _S_scientific | _S_fixed, _S_ios_fmtflags_end = 1L << 16, _S_ios_fmtflags_max = 0x7fffffff, _S_ios_fmtflags_min = ~0x7fffffff }; inline constexpr _Ios_Fmtflags operator&(_Ios_Fmtflags __a, _Ios_Fmtflags __b) { return _Ios_Fmtflags(static_cast<int>(__a) & static_cast<int>(__b)); } inline constexpr _Ios_Fmtflags operator|(_Ios_Fmtflags __a, _Ios_Fmtflags __b) { return _Ios_Fmtflags(static_cast<int>(__a) | static_cast<int>(__b)); } inline constexpr _Ios_Fmtflags operator^(_Ios_Fmtflags __a, _Ios_Fmtflags __b) { return _Ios_Fmtflags(static_cast<int>(__a) ^ static_cast<int>(__b)); } inline constexpr _Ios_Fmtflags operator~(_Ios_Fmtflags __a) { return _Ios_Fmtflags(~static_cast<int>(__a)); } inline const _Ios_Fmtflags& operator|=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) { return __a = __a | __b; } inline const _Ios_Fmtflags& operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) { return __a = __a & __b; } inline const _Ios_Fmtflags& operator^=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) { return __a = __a ^ __b; } enum _Ios_Openmode { _S_app = 1L << 0, _S_ate = 1L << 1, _S_bin = 1L << 2, _S_in = 1L << 3, _S_out = 1L << 4, _S_trunc = 1L << 5, _S_noreplace = 1L << 6, _S_ios_openmode_end = 1L << 16, _S_ios_openmode_max = 0x7fffffff, _S_ios_openmode_min = ~0x7fffffff }; inline constexpr _Ios_Openmode operator&(_Ios_Openmode __a, _Ios_Openmode __b) { return _Ios_Openmode(static_cast<int>(__a) & static_cast<int>(__b)); } inline constexpr _Ios_Openmode operator|(_Ios_Openmode __a, _Ios_Openmode __b) { return _Ios_Openmode(static_cast<int>(__a) | static_cast<int>(__b)); } inline constexpr _Ios_Openmode operator^(_Ios_Openmode __a, _Ios_Openmode __b) { return _Ios_Openmode(static_cast<int>(__a) ^ static_cast<int>(__b)); } inline constexpr _Ios_Openmode operator~(_Ios_Openmode __a) { return _Ios_Openmode(~static_cast<int>(__a)); } inline const _Ios_Openmode& operator|=(_Ios_Openmode& __a, _Ios_Openmode __b) { return __a = __a | __b; } inline const _Ios_Openmode& operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) { return __a = __a & __b; } inline const _Ios_Openmode& operator^=(_Ios_Openmode& __a, _Ios_Openmode __b) { return __a = __a ^ __b; } enum _Ios_Iostate { _S_goodbit = 0, _S_badbit = 1L << 0, _S_eofbit = 1L << 1, _S_failbit = 1L << 2, _S_ios_iostate_end = 1L << 16, _S_ios_iostate_max = 0x7fffffff, _S_ios_iostate_min = ~0x7fffffff }; inline constexpr _Ios_Iostate operator&(_Ios_Iostate __a, _Ios_Iostate __b) { return _Ios_Iostate(static_cast<int>(__a) & static_cast<int>(__b)); } inline constexpr _Ios_Iostate operator|(_Ios_Iostate __a, _Ios_Iostate __b) { return _Ios_Iostate(static_cast<int>(__a) | static_cast<int>(__b)); } inline constexpr _Ios_Iostate operator^(_Ios_Iostate __a, _Ios_Iostate __b) { return _Ios_Iostate(static_cast<int>(__a) ^ static_cast<int>(__b)); } inline constexpr _Ios_Iostate operator~(_Ios_Iostate __a) { return _Ios_Iostate(~static_cast<int>(__a)); } inline const _Ios_Iostate& operator|=(_Ios_Iostate& __a, _Ios_Iostate __b) { return __a = __a | __b; } inline const _Ios_Iostate& operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) { return __a = __a & __b; } inline const _Ios_Iostate& operator^=(_Ios_Iostate& __a, _Ios_Iostate __b) { return __a = __a ^ __b; } enum _Ios_Seekdir { _S_beg = 0, _S_cur = 1, _S_end = 2, _S_ios_seekdir_end = 1L << 16 }; enum class io_errc { stream = 1 }; template <> struct is_error_code_enum<io_errc> : public true_type { }; [[__nodiscard__, __gnu__::__const__]] const error_category& iostream_category() noexcept; [[__nodiscard__]] inline error_code make_error_code(io_errc __e) noexcept { return error_code(static_cast<int>(__e), iostream_category()); } [[__nodiscard__]] inline error_condition make_error_condition(io_errc __e) noexcept { return error_condition(static_cast<int>(__e), iostream_category()); } # 233 "/usr/include/c++/13/bits/ios_base.h" 3 class ios_base { # 251 "/usr/include/c++/13/bits/ios_base.h" 3 public: # 260 "/usr/include/c++/13/bits/ios_base.h" 3 class __attribute ((__abi_tag__ ("cxx11"))) failure : public system_error { public: explicit failure(const string& __str); explicit failure(const string&, const error_code&); explicit failure(const char*, const error_code& = io_errc::stream); virtual ~failure() throw(); virtual const char* what() const throw(); }; # 346 "/usr/include/c++/13/bits/ios_base.h" 3 typedef _Ios_Fmtflags fmtflags; static const fmtflags boolalpha = _S_boolalpha; static const fmtflags dec = _S_dec; static const fmtflags fixed = _S_fixed; static const fmtflags hex = _S_hex; static const fmtflags internal = _S_internal; static const fmtflags left = _S_left; static const fmtflags oct = _S_oct; static const fmtflags right = _S_right; static const fmtflags scientific = _S_scientific; static const fmtflags showbase = _S_showbase; static const fmtflags showpoint = _S_showpoint; static const fmtflags showpos = _S_showpos; static const fmtflags skipws = _S_skipws; static const fmtflags unitbuf = _S_unitbuf; static const fmtflags uppercase = _S_uppercase; static const fmtflags adjustfield = _S_adjustfield; static const fmtflags basefield = _S_basefield; static const fmtflags floatfield = _S_floatfield; # 421 "/usr/include/c++/13/bits/ios_base.h" 3 typedef _Ios_Iostate iostate; static const iostate badbit = _S_badbit; static const iostate eofbit = _S_eofbit; static const iostate failbit = _S_failbit; static const iostate goodbit = _S_goodbit; # 452 "/usr/include/c++/13/bits/ios_base.h" 3 typedef _Ios_Openmode openmode; static const openmode app = _S_app; static const openmode ate = _S_ate; static const openmode binary = _S_bin; static const openmode in = _S_in; static const openmode out = _S_out; static const openmode trunc = _S_trunc; static const openmode __noreplace = _S_noreplace; # 492 "/usr/include/c++/13/bits/ios_base.h" 3 typedef _Ios_Seekdir seekdir; static const seekdir beg = _S_beg; static const seekdir cur = _S_cur; static const seekdir end = _S_end; # 525 "/usr/include/c++/13/bits/ios_base.h" 3 enum event { erase_event, imbue_event, copyfmt_event }; # 542 "/usr/include/c++/13/bits/ios_base.h" 3 typedef void (*event_callback) (event __e, ios_base& __b, int __i); # 554 "/usr/include/c++/13/bits/ios_base.h" 3 void register_callback(event_callback __fn, int __index); protected: streamsize _M_precision; streamsize _M_width; fmtflags _M_flags; iostate _M_exception; iostate _M_streambuf_state; struct _Callback_list { _Callback_list* _M_next; ios_base::event_callback _M_fn; int _M_index; _Atomic_word _M_refcount; _Callback_list(ios_base::event_callback __fn, int __index, _Callback_list* __cb) : _M_next(__cb), _M_fn(__fn), _M_index(__index), _M_refcount(0) { } void _M_add_reference() { __gnu_cxx::__atomic_add_dispatch(&_M_refcount, 1); } int _M_remove_reference() { ; int __res = __gnu_cxx::__exchange_and_add_dispatch(&_M_refcount, -1); if (__res == 0) { ; } return __res; } }; _Callback_list* _M_callbacks; void _M_call_callbacks(event __ev) throw(); void _M_dispose_callbacks(void) throw(); struct _Words { void* _M_pword; long _M_iword; _Words() : _M_pword(0), _M_iword(0) { } }; _Words _M_word_zero; enum { _S_local_word_size = 8 }; _Words _M_local_word[_S_local_word_size]; int _M_word_size; _Words* _M_word; _Words& _M_grow_words(int __index, bool __iword); locale _M_ios_locale; void _M_init() throw(); public: class Init { friend class ios_base; public: Init(); ~Init(); Init(const Init&) = default; Init& operator=(const Init&) = default; private: static _Atomic_word _S_refcount; static bool _S_synced_with_stdio; }; fmtflags flags() const { return _M_flags; } # 672 "/usr/include/c++/13/bits/ios_base.h" 3 fmtflags flags(fmtflags __fmtfl) { fmtflags __old = _M_flags; _M_flags = __fmtfl; return __old; } # 688 "/usr/include/c++/13/bits/ios_base.h" 3 fmtflags setf(fmtflags __fmtfl) { fmtflags __old = _M_flags; _M_flags |= __fmtfl; return __old; } # 705 "/usr/include/c++/13/bits/ios_base.h" 3 fmtflags setf(fmtflags __fmtfl, fmtflags __mask) { fmtflags __old = _M_flags; _M_flags &= ~__mask; _M_flags |= (__fmtfl & __mask); return __old; } void unsetf(fmtflags __mask) { _M_flags &= ~__mask; } # 731 "/usr/include/c++/13/bits/ios_base.h" 3 streamsize precision() const { return _M_precision; } streamsize precision(streamsize __prec) { streamsize __old = _M_precision; _M_precision = __prec; return __old; } streamsize width() const { return _M_width; } streamsize width(streamsize __wide) { streamsize __old = _M_width; _M_width = __wide; return __old; } # 782 "/usr/include/c++/13/bits/ios_base.h" 3 static bool sync_with_stdio(bool __sync = true); # 794 "/usr/include/c++/13/bits/ios_base.h" 3 locale imbue(const locale& __loc) throw(); # 805 "/usr/include/c++/13/bits/ios_base.h" 3 locale getloc() const { return _M_ios_locale; } # 816 "/usr/include/c++/13/bits/ios_base.h" 3 const locale& _M_getloc() const { return _M_ios_locale; } # 835 "/usr/include/c++/13/bits/ios_base.h" 3 static int xalloc() throw(); # 851 "/usr/include/c++/13/bits/ios_base.h" 3 long& iword(int __ix) { _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) ? _M_word[__ix] : _M_grow_words(__ix, true); return __word._M_iword; } # 872 "/usr/include/c++/13/bits/ios_base.h" 3 void*& pword(int __ix) { _Words& __word = ((unsigned)__ix < (unsigned)_M_word_size) ? _M_word[__ix] : _M_grow_words(__ix, false); return __word._M_pword; } # 889 "/usr/include/c++/13/bits/ios_base.h" 3 virtual ~ios_base(); protected: ios_base() throw (); # 903 "/usr/include/c++/13/bits/ios_base.h" 3 public: ios_base(const ios_base&) = delete; ios_base& operator=(const ios_base&) = delete; protected: void _M_move(ios_base&) noexcept; void _M_swap(ios_base& __rhs) noexcept; }; inline ios_base& boolalpha(ios_base& __base) { __base.setf(ios_base::boolalpha); return __base; } inline ios_base& noboolalpha(ios_base& __base) { __base.unsetf(ios_base::boolalpha); return __base; } inline ios_base& showbase(ios_base& __base) { __base.setf(ios_base::showbase); return __base; } inline ios_base& noshowbase(ios_base& __base) { __base.unsetf(ios_base::showbase); return __base; } inline ios_base& showpoint(ios_base& __base) { __base.setf(ios_base::showpoint); return __base; } inline ios_base& noshowpoint(ios_base& __base) { __base.unsetf(ios_base::showpoint); return __base; } inline ios_base& showpos(ios_base& __base) { __base.setf(ios_base::showpos); return __base; } inline ios_base& noshowpos(ios_base& __base) { __base.unsetf(ios_base::showpos); return __base; } inline ios_base& skipws(ios_base& __base) { __base.setf(ios_base::skipws); return __base; } inline ios_base& noskipws(ios_base& __base) { __base.unsetf(ios_base::skipws); return __base; } inline ios_base& uppercase(ios_base& __base) { __base.setf(ios_base::uppercase); return __base; } inline ios_base& nouppercase(ios_base& __base) { __base.unsetf(ios_base::uppercase); return __base; } inline ios_base& unitbuf(ios_base& __base) { __base.setf(ios_base::unitbuf); return __base; } inline ios_base& nounitbuf(ios_base& __base) { __base.unsetf(ios_base::unitbuf); return __base; } inline ios_base& internal(ios_base& __base) { __base.setf(ios_base::internal, ios_base::adjustfield); return __base; } inline ios_base& left(ios_base& __base) { __base.setf(ios_base::left, ios_base::adjustfield); return __base; } inline ios_base& right(ios_base& __base) { __base.setf(ios_base::right, ios_base::adjustfield); return __base; } inline ios_base& dec(ios_base& __base) { __base.setf(ios_base::dec, ios_base::basefield); return __base; } inline ios_base& hex(ios_base& __base) { __base.setf(ios_base::hex, ios_base::basefield); return __base; } inline ios_base& oct(ios_base& __base) { __base.setf(ios_base::oct, ios_base::basefield); return __base; } inline ios_base& fixed(ios_base& __base) { __base.setf(ios_base::fixed, ios_base::floatfield); return __base; } inline ios_base& scientific(ios_base& __base) { __base.setf(ios_base::scientific, ios_base::floatfield); return __base; } inline ios_base& hexfloat(ios_base& __base) { __base.setf(ios_base::fixed | ios_base::scientific, ios_base::floatfield); return __base; } inline ios_base& defaultfloat(ios_base& __base) { __base.unsetf(ios_base::floatfield); return __base; } } # 45 "/usr/include/c++/13/ios" 2 3 # 1 "/usr/include/c++/13/streambuf" 1 3 # 36 "/usr/include/c++/13/streambuf" 3 # 37 "/usr/include/c++/13/streambuf" 3 # 47 "/usr/include/c++/13/streambuf" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> streamsize __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>*, basic_streambuf<_CharT, _Traits>*, bool&); # 123 "/usr/include/c++/13/streambuf" 3 template<typename _CharT, typename _Traits> class basic_streambuf { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_streambuf<char_type, traits_type> __streambuf_type; friend class basic_ios<char_type, traits_type>; friend class basic_istream<char_type, traits_type>; friend class basic_ostream<char_type, traits_type>; friend class istreambuf_iterator<char_type, traits_type>; friend class ostreambuf_iterator<char_type, traits_type>; friend streamsize __copy_streambufs_eof<>(basic_streambuf*, basic_streambuf*, bool&); template<bool _IsMove, typename _CharT2> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, _CharT2*>::__type __copy_move_a2(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, _CharT2*); template<typename _CharT2> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, istreambuf_iterator<_CharT2> >::__type find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, const _CharT2&); template<typename _CharT2, typename _Distance> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, void>::__type advance(istreambuf_iterator<_CharT2>&, _Distance); friend void __istream_extract(istream&, char*, streamsize); template<typename _CharT2, typename _Traits2, typename _Alloc> friend basic_istream<_CharT2, _Traits2>& operator>>(basic_istream<_CharT2, _Traits2>&, basic_string<_CharT2, _Traits2, _Alloc>&); template<typename _CharT2, typename _Traits2, typename _Alloc> friend basic_istream<_CharT2, _Traits2>& getline(basic_istream<_CharT2, _Traits2>&, basic_string<_CharT2, _Traits2, _Alloc>&, _CharT2); protected: char_type* _M_in_beg; char_type* _M_in_cur; char_type* _M_in_end; char_type* _M_out_beg; char_type* _M_out_cur; char_type* _M_out_end; locale _M_buf_locale; public: virtual ~basic_streambuf() { } # 215 "/usr/include/c++/13/streambuf" 3 locale pubimbue(const locale& __loc) { locale __tmp(this->getloc()); this->imbue(__loc); _M_buf_locale = __loc; return __tmp; } # 232 "/usr/include/c++/13/streambuf" 3 locale getloc() const { return _M_buf_locale; } # 245 "/usr/include/c++/13/streambuf" 3 basic_streambuf* pubsetbuf(char_type* __s, streamsize __n) { return this->setbuf(__s, __n); } # 257 "/usr/include/c++/13/streambuf" 3 pos_type pubseekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode = ios_base::in | ios_base::out) { return this->seekoff(__off, __way, __mode); } # 269 "/usr/include/c++/13/streambuf" 3 pos_type pubseekpos(pos_type __sp, ios_base::openmode __mode = ios_base::in | ios_base::out) { return this->seekpos(__sp, __mode); } int pubsync() { return this->sync(); } # 290 "/usr/include/c++/13/streambuf" 3 streamsize in_avail() { const streamsize __ret = this->egptr() - this->gptr(); return __ret ? __ret : this->showmanyc(); } # 304 "/usr/include/c++/13/streambuf" 3 int_type snextc() { int_type __ret = traits_type::eof(); if (__builtin_expect(!traits_type::eq_int_type(this->sbumpc(), __ret), true)) __ret = this->sgetc(); return __ret; } # 322 "/usr/include/c++/13/streambuf" 3 int_type sbumpc() { int_type __ret; if (__builtin_expect(this->gptr() < this->egptr(), true)) { __ret = traits_type::to_int_type(*this->gptr()); this->gbump(1); } else __ret = this->uflow(); return __ret; } # 344 "/usr/include/c++/13/streambuf" 3 int_type sgetc() { int_type __ret; if (__builtin_expect(this->gptr() < this->egptr(), true)) __ret = traits_type::to_int_type(*this->gptr()); else __ret = this->underflow(); return __ret; } # 363 "/usr/include/c++/13/streambuf" 3 streamsize sgetn(char_type* __s, streamsize __n) { return this->xsgetn(__s, __n); } # 378 "/usr/include/c++/13/streambuf" 3 int_type sputbackc(char_type __c) { int_type __ret; const bool __testpos = this->eback() < this->gptr(); if (__builtin_expect(!__testpos || !traits_type::eq(__c, this->gptr()[-1]), false)) __ret = this->pbackfail(traits_type::to_int_type(__c)); else { this->gbump(-1); __ret = traits_type::to_int_type(*this->gptr()); } return __ret; } # 403 "/usr/include/c++/13/streambuf" 3 int_type sungetc() { int_type __ret; if (__builtin_expect(this->eback() < this->gptr(), true)) { this->gbump(-1); __ret = traits_type::to_int_type(*this->gptr()); } else __ret = this->pbackfail(); return __ret; } # 430 "/usr/include/c++/13/streambuf" 3 int_type sputc(char_type __c) { int_type __ret; if (__builtin_expect(this->pptr() < this->epptr(), true)) { *this->pptr() = __c; this->pbump(1); __ret = traits_type::to_int_type(__c); } else __ret = this->overflow(traits_type::to_int_type(__c)); return __ret; } # 456 "/usr/include/c++/13/streambuf" 3 streamsize sputn(const char_type* __s, streamsize __n) { return this->xsputn(__s, __n); } protected: # 470 "/usr/include/c++/13/streambuf" 3 basic_streambuf() : _M_in_beg(0), _M_in_cur(0), _M_in_end(0), _M_out_beg(0), _M_out_cur(0), _M_out_end(0), _M_buf_locale(locale()) { } # 488 "/usr/include/c++/13/streambuf" 3 char_type* eback() const { return _M_in_beg; } char_type* gptr() const { return _M_in_cur; } char_type* egptr() const { return _M_in_end; } # 504 "/usr/include/c++/13/streambuf" 3 void gbump(int __n) { _M_in_cur += __n; } # 515 "/usr/include/c++/13/streambuf" 3 void setg(char_type* __gbeg, char_type* __gnext, char_type* __gend) { _M_in_beg = __gbeg; _M_in_cur = __gnext; _M_in_end = __gend; } # 535 "/usr/include/c++/13/streambuf" 3 char_type* pbase() const { return _M_out_beg; } char_type* pptr() const { return _M_out_cur; } char_type* epptr() const { return _M_out_end; } # 551 "/usr/include/c++/13/streambuf" 3 void pbump(int __n) { _M_out_cur += __n; } # 561 "/usr/include/c++/13/streambuf" 3 void setp(char_type* __pbeg, char_type* __pend) { _M_out_beg = _M_out_cur = __pbeg; _M_out_end = __pend; } # 582 "/usr/include/c++/13/streambuf" 3 virtual void imbue(const locale& __loc __attribute__ ((__unused__))) { } # 597 "/usr/include/c++/13/streambuf" 3 virtual basic_streambuf<char_type,_Traits>* setbuf(char_type*, streamsize) { return this; } # 608 "/usr/include/c++/13/streambuf" 3 virtual pos_type seekoff(off_type, ios_base::seekdir, ios_base::openmode = ios_base::in | ios_base::out) { return pos_type(off_type(-1)); } # 620 "/usr/include/c++/13/streambuf" 3 virtual pos_type seekpos(pos_type, ios_base::openmode = ios_base::in | ios_base::out) { return pos_type(off_type(-1)); } # 633 "/usr/include/c++/13/streambuf" 3 virtual int sync() { return 0; } # 655 "/usr/include/c++/13/streambuf" 3 virtual streamsize showmanyc() { return 0; } # 671 "/usr/include/c++/13/streambuf" 3 virtual streamsize xsgetn(char_type* __s, streamsize __n); # 693 "/usr/include/c++/13/streambuf" 3 virtual int_type underflow() { return traits_type::eof(); } # 706 "/usr/include/c++/13/streambuf" 3 virtual int_type uflow() { int_type __ret = traits_type::eof(); const bool __testeof = traits_type::eq_int_type(this->underflow(), __ret); if (!__testeof) { __ret = traits_type::to_int_type(*this->gptr()); this->gbump(1); } return __ret; } # 730 "/usr/include/c++/13/streambuf" 3 virtual int_type pbackfail(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) { return traits_type::eof(); } # 748 "/usr/include/c++/13/streambuf" 3 virtual streamsize xsputn(const char_type* __s, streamsize __n); # 774 "/usr/include/c++/13/streambuf" 3 virtual int_type overflow(int_type __c __attribute__ ((__unused__)) = traits_type::eof()) { return traits_type::eof(); } # 801 "/usr/include/c++/13/streambuf" 3 void __safe_gbump(streamsize __n) { _M_in_cur += __n; } void __safe_pbump(streamsize __n) { _M_out_cur += __n; } protected: basic_streambuf(const basic_streambuf&); basic_streambuf& operator=(const basic_streambuf&); void swap(basic_streambuf& __sb) { std::swap(_M_in_beg, __sb._M_in_beg); std::swap(_M_in_cur, __sb._M_in_cur); std::swap(_M_in_end, __sb._M_in_end); std::swap(_M_out_beg, __sb._M_out_beg); std::swap(_M_out_cur, __sb._M_out_cur); std::swap(_M_out_end, __sb._M_out_end); std::swap(_M_buf_locale, __sb._M_buf_locale); } }; template<typename _CharT, typename _Traits> std::basic_streambuf<_CharT, _Traits>:: basic_streambuf(const basic_streambuf&) = default; template<typename _CharT, typename _Traits> std::basic_streambuf<_CharT, _Traits>& std::basic_streambuf<_CharT, _Traits>:: operator=(const basic_streambuf&) = default; template<> streamsize __copy_streambufs_eof(basic_streambuf<char>* __sbin, basic_streambuf<char>* __sbout, bool& __ineof); template<> streamsize __copy_streambufs_eof(basic_streambuf<wchar_t>* __sbin, basic_streambuf<wchar_t>* __sbout, bool& __ineof); } # 1 "/usr/include/c++/13/bits/streambuf.tcc" 1 3 # 37 "/usr/include/c++/13/bits/streambuf.tcc" 3 # 38 "/usr/include/c++/13/bits/streambuf.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> streamsize basic_streambuf<_CharT, _Traits>:: xsgetn(char_type* __s, streamsize __n) { streamsize __ret = 0; while (__ret < __n) { const streamsize __buf_len = this->egptr() - this->gptr(); if (__buf_len) { const streamsize __remaining = __n - __ret; const streamsize __len = std::min(__buf_len, __remaining); traits_type::copy(__s, this->gptr(), __len); __ret += __len; __s += __len; this->__safe_gbump(__len); } if (__ret < __n) { const int_type __c = this->uflow(); if (!traits_type::eq_int_type(__c, traits_type::eof())) { traits_type::assign(*__s++, traits_type::to_char_type(__c)); ++__ret; } else break; } } return __ret; } template<typename _CharT, typename _Traits> streamsize basic_streambuf<_CharT, _Traits>:: xsputn(const char_type* __s, streamsize __n) { streamsize __ret = 0; while (__ret < __n) { const streamsize __buf_len = this->epptr() - this->pptr(); if (__buf_len) { const streamsize __remaining = __n - __ret; const streamsize __len = std::min(__buf_len, __remaining); traits_type::copy(this->pptr(), __s, __len); __ret += __len; __s += __len; this->__safe_pbump(__len); } if (__ret < __n) { int_type __c = this->overflow(traits_type::to_int_type(*__s)); if (!traits_type::eq_int_type(__c, traits_type::eof())) { ++__ret; ++__s; } else break; } } return __ret; } template<typename _CharT, typename _Traits> streamsize __copy_streambufs_eof(basic_streambuf<_CharT, _Traits>* __sbin, basic_streambuf<_CharT, _Traits>* __sbout, bool& __ineof) { streamsize __ret = 0; __ineof = true; typename _Traits::int_type __c = __sbin->sgetc(); while (!_Traits::eq_int_type(__c, _Traits::eof())) { __c = __sbout->sputc(_Traits::to_char_type(__c)); if (_Traits::eq_int_type(__c, _Traits::eof())) { __ineof = false; break; } ++__ret; __c = __sbin->snextc(); } return __ret; } template<typename _CharT, typename _Traits> inline streamsize __copy_streambufs(basic_streambuf<_CharT, _Traits>* __sbin, basic_streambuf<_CharT, _Traits>* __sbout) { bool __ineof; return __copy_streambufs_eof(__sbin, __sbout, __ineof); } extern template class basic_streambuf<char>; extern template streamsize __copy_streambufs(basic_streambuf<char>*, basic_streambuf<char>*); extern template class basic_streambuf<wchar_t>; extern template streamsize __copy_streambufs(basic_streambuf<wchar_t>*, basic_streambuf<wchar_t>*); } # 861 "/usr/include/c++/13/streambuf" 2 3 # 46 "/usr/include/c++/13/ios" 2 3 # 1 "/usr/include/c++/13/bits/basic_ios.h" 1 3 # 33 "/usr/include/c++/13/bits/basic_ios.h" 3 # 34 "/usr/include/c++/13/bits/basic_ios.h" 3 # 1 "/usr/include/c++/13/bits/locale_facets.h" 1 3 # 37 "/usr/include/c++/13/bits/locale_facets.h" 3 # 38 "/usr/include/c++/13/bits/locale_facets.h" 3 # 1 "/usr/include/c++/13/cwctype" 1 3 # 39 "/usr/include/c++/13/cwctype" 3 # 40 "/usr/include/c++/13/cwctype" 3 # 50 "/usr/include/c++/13/cwctype" 3 # 1 "/usr/include/wctype.h" 1 3 4 # 38 "/usr/include/wctype.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h" 1 3 4 # 38 "/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h" 3 4 typedef unsigned long int wctype_t; # 56 "/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h" 3 4 enum { __ISwupper = 0, __ISwlower = 1, __ISwalpha = 2, __ISwdigit = 3, __ISwxdigit = 4, __ISwspace = 5, __ISwprint = 6, __ISwgraph = 7, __ISwblank = 8, __ISwcntrl = 9, __ISwpunct = 10, __ISwalnum = 11, _ISwupper = ((__ISwupper) < 8 ? (int) ((1UL << (__ISwupper)) << 24) : ((__ISwupper) < 16 ? (int) ((1UL << (__ISwupper)) << 8) : ((__ISwupper) < 24 ? (int) ((1UL << (__ISwupper)) >> 8) : (int) ((1UL << (__ISwupper)) >> 24)))), _ISwlower = ((__ISwlower) < 8 ? (int) ((1UL << (__ISwlower)) << 24) : ((__ISwlower) < 16 ? (int) ((1UL << (__ISwlower)) << 8) : ((__ISwlower) < 24 ? (int) ((1UL << (__ISwlower)) >> 8) : (int) ((1UL << (__ISwlower)) >> 24)))), _ISwalpha = ((__ISwalpha) < 8 ? (int) ((1UL << (__ISwalpha)) << 24) : ((__ISwalpha) < 16 ? (int) ((1UL << (__ISwalpha)) << 8) : ((__ISwalpha) < 24 ? (int) ((1UL << (__ISwalpha)) >> 8) : (int) ((1UL << (__ISwalpha)) >> 24)))), _ISwdigit = ((__ISwdigit) < 8 ? (int) ((1UL << (__ISwdigit)) << 24) : ((__ISwdigit) < 16 ? (int) ((1UL << (__ISwdigit)) << 8) : ((__ISwdigit) < 24 ? (int) ((1UL << (__ISwdigit)) >> 8) : (int) ((1UL << (__ISwdigit)) >> 24)))), _ISwxdigit = ((__ISwxdigit) < 8 ? (int) ((1UL << (__ISwxdigit)) << 24) : ((__ISwxdigit) < 16 ? (int) ((1UL << (__ISwxdigit)) << 8) : ((__ISwxdigit) < 24 ? (int) ((1UL << (__ISwxdigit)) >> 8) : (int) ((1UL << (__ISwxdigit)) >> 24)))), _ISwspace = ((__ISwspace) < 8 ? (int) ((1UL << (__ISwspace)) << 24) : ((__ISwspace) < 16 ? (int) ((1UL << (__ISwspace)) << 8) : ((__ISwspace) < 24 ? (int) ((1UL << (__ISwspace)) >> 8) : (int) ((1UL << (__ISwspace)) >> 24)))), _ISwprint = ((__ISwprint) < 8 ? (int) ((1UL << (__ISwprint)) << 24) : ((__ISwprint) < 16 ? (int) ((1UL << (__ISwprint)) << 8) : ((__ISwprint) < 24 ? (int) ((1UL << (__ISwprint)) >> 8) : (int) ((1UL << (__ISwprint)) >> 24)))), _ISwgraph = ((__ISwgraph) < 8 ? (int) ((1UL << (__ISwgraph)) << 24) : ((__ISwgraph) < 16 ? (int) ((1UL << (__ISwgraph)) << 8) : ((__ISwgraph) < 24 ? (int) ((1UL << (__ISwgraph)) >> 8) : (int) ((1UL << (__ISwgraph)) >> 24)))), _ISwblank = ((__ISwblank) < 8 ? (int) ((1UL << (__ISwblank)) << 24) : ((__ISwblank) < 16 ? (int) ((1UL << (__ISwblank)) << 8) : ((__ISwblank) < 24 ? (int) ((1UL << (__ISwblank)) >> 8) : (int) ((1UL << (__ISwblank)) >> 24)))), _ISwcntrl = ((__ISwcntrl) < 8 ? (int) ((1UL << (__ISwcntrl)) << 24) : ((__ISwcntrl) < 16 ? (int) ((1UL << (__ISwcntrl)) << 8) : ((__ISwcntrl) < 24 ? (int) ((1UL << (__ISwcntrl)) >> 8) : (int) ((1UL << (__ISwcntrl)) >> 24)))), _ISwpunct = ((__ISwpunct) < 8 ? (int) ((1UL << (__ISwpunct)) << 24) : ((__ISwpunct) < 16 ? (int) ((1UL << (__ISwpunct)) << 8) : ((__ISwpunct) < 24 ? (int) ((1UL << (__ISwpunct)) >> 8) : (int) ((1UL << (__ISwpunct)) >> 24)))), _ISwalnum = ((__ISwalnum) < 8 ? (int) ((1UL << (__ISwalnum)) << 24) : ((__ISwalnum) < 16 ? (int) ((1UL << (__ISwalnum)) << 8) : ((__ISwalnum) < 24 ? (int) ((1UL << (__ISwalnum)) >> 8) : (int) ((1UL << (__ISwalnum)) >> 24)))) }; extern "C" { extern int iswalnum (wint_t __wc) noexcept (true); extern int iswalpha (wint_t __wc) noexcept (true); extern int iswcntrl (wint_t __wc) noexcept (true); extern int iswdigit (wint_t __wc) noexcept (true); extern int iswgraph (wint_t __wc) noexcept (true); extern int iswlower (wint_t __wc) noexcept (true); extern int iswprint (wint_t __wc) noexcept (true); extern int iswpunct (wint_t __wc) noexcept (true); extern int iswspace (wint_t __wc) noexcept (true); extern int iswupper (wint_t __wc) noexcept (true); extern int iswxdigit (wint_t __wc) noexcept (true); extern int iswblank (wint_t __wc) noexcept (true); # 155 "/usr/include/x86_64-linux-gnu/bits/wctype-wchar.h" 3 4 extern wctype_t wctype (const char *__property) noexcept (true); extern int iswctype (wint_t __wc, wctype_t __desc) noexcept (true); extern wint_t towlower (wint_t __wc) noexcept (true); extern wint_t towupper (wint_t __wc) noexcept (true); } # 39 "/usr/include/wctype.h" 2 3 4 extern "C" { typedef const __int32_t *wctrans_t; extern wctrans_t wctrans (const char *__property) noexcept (true); extern wint_t towctrans (wint_t __wc, wctrans_t __desc) noexcept (true); extern int iswalnum_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswalpha_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswcntrl_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswdigit_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswgraph_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswlower_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswprint_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswpunct_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswspace_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswupper_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswxdigit_l (wint_t __wc, locale_t __locale) noexcept (true); extern int iswblank_l (wint_t __wc, locale_t __locale) noexcept (true); extern wctype_t wctype_l (const char *__property, locale_t __locale) noexcept (true); extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale) noexcept (true); extern wint_t towlower_l (wint_t __wc, locale_t __locale) noexcept (true); extern wint_t towupper_l (wint_t __wc, locale_t __locale) noexcept (true); extern wctrans_t wctrans_l (const char *__property, locale_t __locale) noexcept (true); extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc, locale_t __locale) noexcept (true); } # 51 "/usr/include/c++/13/cwctype" 2 3 # 80 "/usr/include/c++/13/cwctype" 3 namespace std { using ::wctrans_t; using ::wctype_t; using ::wint_t; using ::iswalnum; using ::iswalpha; using ::iswblank; using ::iswcntrl; using ::iswctype; using ::iswdigit; using ::iswgraph; using ::iswlower; using ::iswprint; using ::iswpunct; using ::iswspace; using ::iswupper; using ::iswxdigit; using ::towctrans; using ::towlower; using ::towupper; using ::wctrans; using ::wctype; } # 40 "/usr/include/c++/13/bits/locale_facets.h" 2 3 # 1 "/usr/include/c++/13/cctype" 1 3 # 39 "/usr/include/c++/13/cctype" 3 # 40 "/usr/include/c++/13/cctype" 3 # 41 "/usr/include/c++/13/bits/locale_facets.h" 2 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h" 1 3 # 36 "/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_base.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct ctype_base { typedef const int* __to_type; typedef unsigned short mask; static const mask upper = _ISupper; static const mask lower = _ISlower; static const mask alpha = _ISalpha; static const mask digit = _ISdigit; static const mask xdigit = _ISxdigit; static const mask space = _ISspace; static const mask print = _ISprint; static const mask graph = _ISalpha | _ISdigit | _ISpunct; static const mask cntrl = _IScntrl; static const mask punct = _ISpunct; static const mask alnum = _ISalpha | _ISdigit; static const mask blank = _ISblank; }; } # 42 "/usr/include/c++/13/bits/locale_facets.h" 2 3 # 1 "/usr/include/c++/13/bits/streambuf_iterator.h" 1 3 # 33 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 # 34 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 49 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _CharT, typename _Traits> class istreambuf_iterator : public iterator<input_iterator_tag, _CharT, typename _Traits::off_type, _CharT*, _CharT> { public: # 67 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 using pointer = void; typedef _CharT char_type; typedef _Traits traits_type; typedef typename _Traits::int_type int_type; typedef basic_streambuf<_CharT, _Traits> streambuf_type; typedef basic_istream<_CharT, _Traits> istream_type; template<typename _CharT2> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, ostreambuf_iterator<_CharT2> >::__type copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, ostreambuf_iterator<_CharT2>); template<bool _IsMove, typename _CharT2> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, _CharT2*>::__type __copy_move_a2(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, _CharT2*); template<typename _CharT2, typename _Size> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, _CharT2*>::__type __copy_n_a(istreambuf_iterator<_CharT2>, _Size, _CharT2*, bool); template<typename _CharT2> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, istreambuf_iterator<_CharT2> >::__type find(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, const _CharT2&); template<typename _CharT2, typename _Distance> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, void>::__type advance(istreambuf_iterator<_CharT2>&, _Distance); private: mutable streambuf_type* _M_sbuf; int_type _M_c; public: constexpr istreambuf_iterator() noexcept : _M_sbuf(0), _M_c(traits_type::eof()) { } constexpr istreambuf_iterator(default_sentinel_t) noexcept : istreambuf_iterator() { } istreambuf_iterator(const istreambuf_iterator&) noexcept = default; ~istreambuf_iterator() = default; istreambuf_iterator(istream_type& __s) noexcept : _M_sbuf(__s.rdbuf()), _M_c(traits_type::eof()) { } istreambuf_iterator(streambuf_type* __s) noexcept : _M_sbuf(__s), _M_c(traits_type::eof()) { } istreambuf_iterator& operator=(const istreambuf_iterator&) noexcept = default; [[__nodiscard__]] char_type operator*() const { int_type __c = _M_get(); # 161 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 return traits_type::to_char_type(__c); } istreambuf_iterator& operator++() { ; _M_sbuf->sbumpc(); _M_c = traits_type::eof(); return *this; } istreambuf_iterator operator++(int) { ; istreambuf_iterator __old = *this; __old._M_c = _M_sbuf->sbumpc(); _M_c = traits_type::eof(); return __old; } [[__nodiscard__]] bool equal(const istreambuf_iterator& __b) const { return _M_at_eof() == __b._M_at_eof(); } private: int_type _M_get() const { int_type __ret = _M_c; if (_M_sbuf && _S_is_eof(__ret) && _S_is_eof(__ret = _M_sbuf->sgetc())) _M_sbuf = 0; return __ret; } bool _M_at_eof() const { return _S_is_eof(_M_get()); } static bool _S_is_eof(int_type __c) { const int_type __eof = traits_type::eof(); return traits_type::eq_int_type(__c, __eof); } [[nodiscard]] friend bool operator==(const istreambuf_iterator& __i, default_sentinel_t __s) { return __i._M_at_eof(); } }; template<typename _CharT, typename _Traits> [[__nodiscard__]] inline bool operator==(const istreambuf_iterator<_CharT, _Traits>& __a, const istreambuf_iterator<_CharT, _Traits>& __b) { return __a.equal(__b); } # 248 "/usr/include/c++/13/bits/streambuf_iterator.h" 3 template<typename _CharT, typename _Traits> class ostreambuf_iterator : public iterator<output_iterator_tag, void, void, void, void> { public: using difference_type = ptrdiff_t; typedef _CharT char_type; typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> streambuf_type; typedef basic_ostream<_CharT, _Traits> ostream_type; template<typename _CharT2> friend typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, ostreambuf_iterator<_CharT2> >::__type copy(istreambuf_iterator<_CharT2>, istreambuf_iterator<_CharT2>, ostreambuf_iterator<_CharT2>); private: streambuf_type* _M_sbuf; bool _M_failed; public: constexpr ostreambuf_iterator() noexcept : _M_sbuf(nullptr), _M_failed(true) { } ostreambuf_iterator(ostream_type& __s) noexcept : _M_sbuf(__s.rdbuf()), _M_failed(!_M_sbuf) { } ostreambuf_iterator(streambuf_type* __s) noexcept : _M_sbuf(__s), _M_failed(!_M_sbuf) { } ostreambuf_iterator& operator=(_CharT __c) { if (!_M_failed && _Traits::eq_int_type(_M_sbuf->sputc(__c), _Traits::eof())) _M_failed = true; return *this; } [[__nodiscard__]] ostreambuf_iterator& operator*() { return *this; } ostreambuf_iterator& operator++(int) { return *this; } ostreambuf_iterator& operator++() { return *this; } [[__nodiscard__]] bool failed() const noexcept { return _M_failed; } ostreambuf_iterator& _M_put(const _CharT* __ws, streamsize __len) { if (__builtin_expect(!_M_failed, true) && __builtin_expect(this->_M_sbuf->sputn(__ws, __len) != __len, false)) _M_failed = true; return *this; } }; #pragma GCC diagnostic pop template<typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT> >::__type copy(istreambuf_iterator<_CharT> __first, istreambuf_iterator<_CharT> __last, ostreambuf_iterator<_CharT> __result) { if (__first._M_sbuf && !__last._M_sbuf && !__result._M_failed) { bool __ineof; __copy_streambufs_eof(__first._M_sbuf, __result._M_sbuf, __ineof); if (!__ineof) __result._M_failed = true; } return __result; } template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT> >::__type __copy_move_a2(_CharT* __first, _CharT* __last, ostreambuf_iterator<_CharT> __result) { const streamsize __num = __last - __first; if (__num > 0) __result._M_put(__first, __num); return __result; } template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, ostreambuf_iterator<_CharT> >::__type __copy_move_a2(const _CharT* __first, const _CharT* __last, ostreambuf_iterator<_CharT> __result) { const streamsize __num = __last - __first; if (__num > 0) __result._M_put(__first, __num); return __result; } template<bool _IsMove, typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, _CharT*>::__type __copy_move_a2(istreambuf_iterator<_CharT> __first, istreambuf_iterator<_CharT> __last, _CharT* __result) { typedef istreambuf_iterator<_CharT> __is_iterator_type; typedef typename __is_iterator_type::traits_type traits_type; typedef typename __is_iterator_type::streambuf_type streambuf_type; typedef typename traits_type::int_type int_type; if (__first._M_sbuf && !__last._M_sbuf) { streambuf_type* __sb = __first._M_sbuf; int_type __c = __sb->sgetc(); while (!traits_type::eq_int_type(__c, traits_type::eof())) { const streamsize __n = __sb->egptr() - __sb->gptr(); if (__n > 1) { traits_type::copy(__result, __sb->gptr(), __n); __sb->__safe_gbump(__n); __result += __n; __c = __sb->underflow(); } else { *__result++ = traits_type::to_char_type(__c); __c = __sb->snextc(); } } } return __result; } template<typename _CharT, typename _Size> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, _CharT*>::__type __copy_n_a(istreambuf_iterator<_CharT> __it, _Size __n, _CharT* __result, bool __strict __attribute__((__unused__))) { if (__n == 0) return __result; ; _CharT* __beg = __result; __result += __it._M_sbuf->sgetn(__beg, __n); ; return __result; } template<typename _CharT> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, istreambuf_iterator<_CharT> >::__type find(istreambuf_iterator<_CharT> __first, istreambuf_iterator<_CharT> __last, const _CharT& __val) { typedef istreambuf_iterator<_CharT> __is_iterator_type; typedef typename __is_iterator_type::traits_type traits_type; typedef typename __is_iterator_type::streambuf_type streambuf_type; typedef typename traits_type::int_type int_type; const int_type __eof = traits_type::eof(); if (__first._M_sbuf && !__last._M_sbuf) { const int_type __ival = traits_type::to_int_type(__val); streambuf_type* __sb = __first._M_sbuf; int_type __c = __sb->sgetc(); while (!traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __ival)) { streamsize __n = __sb->egptr() - __sb->gptr(); if (__n > 1) { const _CharT* __p = traits_type::find(__sb->gptr(), __n, __val); if (__p) __n = __p - __sb->gptr(); __sb->__safe_gbump(__n); __c = __sb->sgetc(); } else __c = __sb->snextc(); } __first._M_c = __eof; } return __first; } template<typename _CharT, typename _Distance> typename __gnu_cxx::__enable_if<__is_char<_CharT>::__value, void>::__type advance(istreambuf_iterator<_CharT>& __i, _Distance __n) { if (__n == 0) return; do { if (std::__is_constant_evaluated() && !bool(__n > 0)) __builtin_unreachable(); } while (false); ; typedef istreambuf_iterator<_CharT> __is_iterator_type; typedef typename __is_iterator_type::traits_type traits_type; typedef typename __is_iterator_type::streambuf_type streambuf_type; typedef typename traits_type::int_type int_type; const int_type __eof = traits_type::eof(); streambuf_type* __sb = __i._M_sbuf; while (__n > 0) { streamsize __size = __sb->egptr() - __sb->gptr(); if (__size > __n) { __sb->__safe_gbump(__n); break; } __sb->__safe_gbump(__size); __n -= __size; if (traits_type::eq_int_type(__sb->underflow(), __eof)) { ; break; } } __i._M_c = __eof; } } # 49 "/usr/include/c++/13/bits/locale_facets.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 74 "/usr/include/c++/13/bits/locale_facets.h" 3 template<typename _Tp> void __convert_to_v(const char*, _Tp&, ios_base::iostate&, const __c_locale&) throw(); template<> void __convert_to_v(const char*, float&, ios_base::iostate&, const __c_locale&) throw(); template<> void __convert_to_v(const char*, double&, ios_base::iostate&, const __c_locale&) throw(); template<> void __convert_to_v(const char*, long double&, ios_base::iostate&, const __c_locale&) throw(); template<typename _CharT, typename _Traits> struct __pad { static void _S_pad(ios_base& __io, _CharT __fill, _CharT* __news, const _CharT* __olds, streamsize __newlen, streamsize __oldlen); }; template<typename _CharT> _CharT* __add_grouping(_CharT* __s, _CharT __sep, const char* __gbeg, size_t __gsize, const _CharT* __first, const _CharT* __last); template<typename _CharT> inline ostreambuf_iterator<_CharT> __write(ostreambuf_iterator<_CharT> __s, const _CharT* __ws, int __len) { __s._M_put(__ws, __len); return __s; } template<typename _CharT, typename _OutIter> inline _OutIter __write(_OutIter __s, const _CharT* __ws, int __len) { for (int __j = 0; __j < __len; __j++, ++__s) *__s = __ws[__j]; return __s; } # 152 "/usr/include/c++/13/bits/locale_facets.h" 3 template<typename _CharT> class __ctype_abstract_base : public locale::facet, public ctype_base { public: typedef _CharT char_type; # 171 "/usr/include/c++/13/bits/locale_facets.h" 3 bool is(mask __m, char_type __c) const { return this->do_is(__m, __c); } # 188 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* is(const char_type *__lo, const char_type *__hi, mask *__vec) const { return this->do_is(__lo, __hi, __vec); } # 204 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* scan_is(mask __m, const char_type* __lo, const char_type* __hi) const { return this->do_scan_is(__m, __lo, __hi); } # 220 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* scan_not(mask __m, const char_type* __lo, const char_type* __hi) const { return this->do_scan_not(__m, __lo, __hi); } # 234 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type toupper(char_type __c) const { return this->do_toupper(__c); } # 249 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* toupper(char_type *__lo, const char_type* __hi) const { return this->do_toupper(__lo, __hi); } # 263 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type tolower(char_type __c) const { return this->do_tolower(__c); } # 278 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* tolower(char_type* __lo, const char_type* __hi) const { return this->do_tolower(__lo, __hi); } # 295 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type widen(char __c) const { return this->do_widen(__c); } # 314 "/usr/include/c++/13/bits/locale_facets.h" 3 const char* widen(const char* __lo, const char* __hi, char_type* __to) const { return this->do_widen(__lo, __hi, __to); } # 333 "/usr/include/c++/13/bits/locale_facets.h" 3 char narrow(char_type __c, char __dfault) const { return this->do_narrow(__c, __dfault); } # 355 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const { return this->do_narrow(__lo, __hi, __dfault, __to); } protected: explicit __ctype_abstract_base(size_t __refs = 0): facet(__refs) { } virtual ~__ctype_abstract_base() { } # 380 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual bool do_is(mask __m, char_type __c) const = 0; # 399 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const = 0; # 418 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const = 0; # 437 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const = 0; # 455 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_toupper(char_type __c) const = 0; # 472 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const = 0; # 488 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_tolower(char_type __c) const = 0; # 505 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const = 0; # 524 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_widen(char __c) const = 0; # 545 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __to) const = 0; # 566 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char do_narrow(char_type __c, char __dfault) const = 0; # 591 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const = 0; }; # 614 "/usr/include/c++/13/bits/locale_facets.h" 3 template<typename _CharT> class ctype : public __ctype_abstract_base<_CharT> { public: typedef _CharT char_type; typedef typename __ctype_abstract_base<_CharT>::mask mask; static locale::id id; explicit ctype(size_t __refs = 0) : __ctype_abstract_base<_CharT>(__refs) { } protected: virtual ~ctype(); virtual bool do_is(mask __m, char_type __c) const; virtual const char_type* do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; virtual const char_type* do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; virtual const char_type* do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const; virtual char_type do_toupper(char_type __c) const; virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const; virtual char_type do_tolower(char_type __c) const; virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const; virtual char_type do_widen(char __c) const; virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __dest) const; virtual char do_narrow(char_type, char __dfault) const; virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const; }; template<typename _CharT> locale::id ctype<_CharT>::id; template<typename _CharT, typename _Traits, typename _Alloc> class ctype<basic_string<_CharT, _Traits, _Alloc> >; # 688 "/usr/include/c++/13/bits/locale_facets.h" 3 template<> class ctype<char> : public locale::facet, public ctype_base { public: typedef char char_type; protected: __c_locale _M_c_locale_ctype; bool _M_del; __to_type _M_toupper; __to_type _M_tolower; const mask* _M_table; mutable char _M_widen_ok; mutable char _M_widen[1 + static_cast<unsigned char>(-1)]; mutable char _M_narrow[1 + static_cast<unsigned char>(-1)]; mutable char _M_narrow_ok; public: static locale::id id; static const size_t table_size = 1 + static_cast<unsigned char>(-1); # 725 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit ctype(const mask* __table = 0, bool __del = false, size_t __refs = 0); # 738 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit ctype(__c_locale __cloc, const mask* __table = 0, bool __del = false, size_t __refs = 0); # 751 "/usr/include/c++/13/bits/locale_facets.h" 3 inline bool is(mask __m, char __c) const; # 766 "/usr/include/c++/13/bits/locale_facets.h" 3 inline const char* is(const char* __lo, const char* __hi, mask* __vec) const; # 780 "/usr/include/c++/13/bits/locale_facets.h" 3 inline const char* scan_is(mask __m, const char* __lo, const char* __hi) const; # 794 "/usr/include/c++/13/bits/locale_facets.h" 3 inline const char* scan_not(mask __m, const char* __lo, const char* __hi) const; # 809 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type toupper(char_type __c) const { return this->do_toupper(__c); } # 826 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* toupper(char_type *__lo, const char_type* __hi) const { return this->do_toupper(__lo, __hi); } # 842 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type tolower(char_type __c) const { return this->do_tolower(__c); } # 859 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* tolower(char_type* __lo, const char_type* __hi) const { return this->do_tolower(__lo, __hi); } # 879 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type widen(char __c) const { if (_M_widen_ok) return _M_widen[static_cast<unsigned char>(__c)]; this->_M_widen_init(); return this->do_widen(__c); } # 906 "/usr/include/c++/13/bits/locale_facets.h" 3 const char* widen(const char* __lo, const char* __hi, char_type* __to) const { if (_M_widen_ok == 1) { if (__builtin_expect(__hi != __lo, true)) __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } if (!_M_widen_ok) _M_widen_init(); return this->do_widen(__lo, __hi, __to); } # 938 "/usr/include/c++/13/bits/locale_facets.h" 3 char narrow(char_type __c, char __dfault) const { if (_M_narrow[static_cast<unsigned char>(__c)]) return _M_narrow[static_cast<unsigned char>(__c)]; const char __t = do_narrow(__c, __dfault); if (__t != __dfault) _M_narrow[static_cast<unsigned char>(__c)] = __t; return __t; } # 971 "/usr/include/c++/13/bits/locale_facets.h" 3 const char_type* narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const { if (__builtin_expect(_M_narrow_ok == 1, true)) { if (__builtin_expect(__hi != __lo, true)) __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } if (!_M_narrow_ok) _M_narrow_init(); return this->do_narrow(__lo, __hi, __dfault, __to); } const mask* table() const throw() { return _M_table; } static const mask* classic_table() throw(); protected: virtual ~ctype(); # 1021 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_toupper(char_type __c) const; # 1038 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const; # 1054 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_tolower(char_type __c) const; # 1071 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const; # 1091 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_widen(char __c) const { return __c; } # 1114 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __to) const { if (__builtin_expect(__hi != __lo, true)) __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } # 1141 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char do_narrow(char_type __c, char __dfault __attribute__((__unused__))) const { return __c; } # 1167 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault __attribute__((__unused__)), char* __to) const { if (__builtin_expect(__hi != __lo, true)) __builtin_memcpy(__to, __lo, __hi - __lo); return __hi; } private: void _M_narrow_init() const; void _M_widen_init() const; }; # 1193 "/usr/include/c++/13/bits/locale_facets.h" 3 template<> class ctype<wchar_t> : public __ctype_abstract_base<wchar_t> { public: typedef wchar_t char_type; typedef wctype_t __wmask_type; protected: __c_locale _M_c_locale_ctype; bool _M_narrow_ok; char _M_narrow[128]; wint_t _M_widen[1 + static_cast<unsigned char>(-1)]; mask _M_bit[16]; __wmask_type _M_wmask[16]; public: static locale::id id; # 1226 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit ctype(size_t __refs = 0); # 1237 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit ctype(__c_locale __cloc, size_t __refs = 0); protected: __wmask_type _M_convert_to_wmask(const mask __m) const throw(); virtual ~ctype(); # 1261 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual bool do_is(mask __m, char_type __c) const; # 1280 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_is(const char_type* __lo, const char_type* __hi, mask* __vec) const; # 1298 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_scan_is(mask __m, const char_type* __lo, const char_type* __hi) const; # 1316 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_scan_not(mask __m, const char_type* __lo, const char_type* __hi) const; # 1333 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_toupper(char_type __c) const; # 1350 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_toupper(char_type* __lo, const char_type* __hi) const; # 1366 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_tolower(char_type __c) const; # 1383 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_tolower(char_type* __lo, const char_type* __hi) const; # 1403 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_widen(char __c) const; # 1425 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char* do_widen(const char* __lo, const char* __hi, char_type* __to) const; # 1448 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char do_narrow(char_type __c, char __dfault) const; # 1474 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual const char_type* do_narrow(const char_type* __lo, const char_type* __hi, char __dfault, char* __to) const; void _M_initialize_ctype() throw(); }; template<typename _CharT> class ctype_byname : public ctype<_CharT> { public: typedef typename ctype<_CharT>::mask mask; explicit ctype_byname(const char* __s, size_t __refs = 0); explicit ctype_byname(const string& __s, size_t __refs = 0) : ctype_byname(__s.c_str(), __refs) { } protected: virtual ~ctype_byname() { } }; template<> class ctype_byname<char> : public ctype<char> { public: explicit ctype_byname(const char* __s, size_t __refs = 0); explicit ctype_byname(const string& __s, size_t __refs = 0); protected: virtual ~ctype_byname(); }; template<> class ctype_byname<wchar_t> : public ctype<wchar_t> { public: explicit ctype_byname(const char* __s, size_t __refs = 0); explicit ctype_byname(const string& __s, size_t __refs = 0); protected: virtual ~ctype_byname(); }; } # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h" 1 3 # 37 "/usr/include/x86_64-linux-gnu/c++/13/bits/ctype_inline.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { bool ctype<char>:: is(mask __m, char __c) const { return _M_table[static_cast<unsigned char>(__c)] & __m; } const char* ctype<char>:: is(const char* __low, const char* __high, mask* __vec) const { while (__low < __high) *__vec++ = _M_table[static_cast<unsigned char>(*__low++)]; return __high; } const char* ctype<char>:: scan_is(mask __m, const char* __low, const char* __high) const { while (__low < __high && !(_M_table[static_cast<unsigned char>(*__low)] & __m)) ++__low; return __low; } const char* ctype<char>:: scan_not(mask __m, const char* __low, const char* __high) const { while (__low < __high && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0) ++__low; return __low; } } # 1547 "/usr/include/c++/13/bits/locale_facets.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { class __num_base { public: enum { _S_ominus, _S_oplus, _S_ox, _S_oX, _S_odigits, _S_odigits_end = _S_odigits + 16, _S_oudigits = _S_odigits_end, _S_oudigits_end = _S_oudigits + 16, _S_oe = _S_odigits + 14, _S_oE = _S_oudigits + 14, _S_oend = _S_oudigits_end }; static const char* _S_atoms_out; static const char* _S_atoms_in; enum { _S_iminus, _S_iplus, _S_ix, _S_iX, _S_izero, _S_ie = _S_izero + 14, _S_iE = _S_izero + 20, _S_iend = 26 }; static void _S_format_float(const ios_base& __io, char* __fptr, char __mod) throw(); }; template<typename _CharT> struct __numpunct_cache : public locale::facet { const char* _M_grouping; size_t _M_grouping_size; bool _M_use_grouping; const _CharT* _M_truename; size_t _M_truename_size; const _CharT* _M_falsename; size_t _M_falsename_size; _CharT _M_decimal_point; _CharT _M_thousands_sep; _CharT _M_atoms_out[__num_base::_S_oend]; _CharT _M_atoms_in[__num_base::_S_iend]; bool _M_allocated; __numpunct_cache(size_t __refs = 0) : facet(__refs), _M_grouping(0), _M_grouping_size(0), _M_use_grouping(false), _M_truename(0), _M_truename_size(0), _M_falsename(0), _M_falsename_size(0), _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()), _M_allocated(false) { } ~__numpunct_cache(); void _M_cache(const locale& __loc); private: __numpunct_cache& operator=(const __numpunct_cache&); explicit __numpunct_cache(const __numpunct_cache&); }; template<typename _CharT> __numpunct_cache<_CharT>::~__numpunct_cache() { if (_M_allocated) { delete [] _M_grouping; delete [] _M_truename; delete [] _M_falsename; } } namespace __cxx11 { # 1677 "/usr/include/c++/13/bits/locale_facets.h" 3 template<typename _CharT> class numpunct : public locale::facet { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; typedef __numpunct_cache<_CharT> __cache_type; protected: __cache_type* _M_data; public: static locale::id id; explicit numpunct(size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_numpunct(); } # 1715 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit numpunct(__cache_type* __cache, size_t __refs = 0) : facet(__refs), _M_data(__cache) { _M_initialize_numpunct(); } # 1729 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit numpunct(__c_locale __cloc, size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_numpunct(__cloc); } # 1743 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type decimal_point() const { return this->do_decimal_point(); } # 1756 "/usr/include/c++/13/bits/locale_facets.h" 3 char_type thousands_sep() const { return this->do_thousands_sep(); } # 1787 "/usr/include/c++/13/bits/locale_facets.h" 3 string grouping() const { return this->do_grouping(); } # 1800 "/usr/include/c++/13/bits/locale_facets.h" 3 string_type truename() const { return this->do_truename(); } # 1813 "/usr/include/c++/13/bits/locale_facets.h" 3 string_type falsename() const { return this->do_falsename(); } protected: virtual ~numpunct(); # 1830 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_decimal_point() const { return _M_data->_M_decimal_point; } # 1842 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual char_type do_thousands_sep() const { return _M_data->_M_thousands_sep; } # 1855 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual string do_grouping() const { return _M_data->_M_grouping; } # 1868 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual string_type do_truename() const { return _M_data->_M_truename; } # 1881 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual string_type do_falsename() const { return _M_data->_M_falsename; } void _M_initialize_numpunct(__c_locale __cloc = 0); }; template<typename _CharT> locale::id numpunct<_CharT>::id; template<> numpunct<char>::~numpunct(); template<> void numpunct<char>::_M_initialize_numpunct(__c_locale __cloc); template<> numpunct<wchar_t>::~numpunct(); template<> void numpunct<wchar_t>::_M_initialize_numpunct(__c_locale __cloc); template<typename _CharT> class numpunct_byname : public numpunct<_CharT> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; explicit numpunct_byname(const char* __s, size_t __refs = 0) : numpunct<_CharT>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { __c_locale __tmp; this->_S_create_c_locale(__tmp, __s); this->_M_initialize_numpunct(__tmp); this->_S_destroy_c_locale(__tmp); } } explicit numpunct_byname(const string& __s, size_t __refs = 0) : numpunct_byname(__s.c_str(), __refs) { } protected: virtual ~numpunct_byname() { } }; } # 1959 "/usr/include/c++/13/bits/locale_facets.h" 3 template<typename _CharT, typename _InIter> class num_get : public locale::facet { public: typedef _CharT char_type; typedef _InIter iter_type; static locale::id id; # 1980 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit num_get(size_t __refs = 0) : facet(__refs) { } # 2006 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, bool& __v) const { return this->do_get(__in, __end, __io, __err, __v); } # 2043 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned short& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned int& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, long long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long long& __v) const { return this->do_get(__in, __end, __io, __err, __v); } # 2103 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, float& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, double& __v) const { return this->do_get(__in, __end, __io, __err, __v); } iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, long double& __v) const { return this->do_get(__in, __end, __io, __err, __v); } # 2146 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type get(iter_type __in, iter_type __end, ios_base& __io, ios_base::iostate& __err, void*& __v) const { return this->do_get(__in, __end, __io, __err, __v); } protected: virtual ~num_get() { } __attribute ((__abi_tag__ ("cxx11"))) iter_type _M_extract_float(iter_type, iter_type, ios_base&, ios_base::iostate&, string&) const; template<typename _ValueT> __attribute ((__abi_tag__ ("cxx11"))) iter_type _M_extract_int(iter_type, iter_type, ios_base&, ios_base::iostate&, _ValueT&) const; template<typename _CharT2> typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value, int>::__type _M_find(const _CharT2*, size_t __len, _CharT2 __c) const { int __ret = -1; if (__len <= 10) { if (__c >= _CharT2('0') && __c < _CharT2(_CharT2('0') + __len)) __ret = __c - _CharT2('0'); } else { if (__c >= _CharT2('0') && __c <= _CharT2('9')) __ret = __c - _CharT2('0'); else if (__c >= _CharT2('a') && __c <= _CharT2('f')) __ret = 10 + (__c - _CharT2('a')); else if (__c >= _CharT2('A') && __c <= _CharT2('F')) __ret = 10 + (__c - _CharT2('A')); } return __ret; } template<typename _CharT2> typename __gnu_cxx::__enable_if<!__is_char<_CharT2>::__value, int>::__type _M_find(const _CharT2* __zero, size_t __len, _CharT2 __c) const { int __ret = -1; const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c); if (__q) { __ret = __q - __zero; if (__ret > 15) __ret -= 6; } return __ret; } # 2219 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, bool&) const; virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned short& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned int& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, long long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, unsigned long long& __v) const { return _M_extract_int(__beg, __end, __io, __err, __v); } virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, float&) const; virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, double&) const; # 2271 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, long double&) const; virtual iter_type do_get(iter_type, iter_type, ios_base&, ios_base::iostate&, void*&) const; # 2299 "/usr/include/c++/13/bits/locale_facets.h" 3 }; template<typename _CharT, typename _InIter> locale::id num_get<_CharT, _InIter>::id; # 2317 "/usr/include/c++/13/bits/locale_facets.h" 3 template<typename _CharT, typename _OutIter> class num_put : public locale::facet { public: typedef _CharT char_type; typedef _OutIter iter_type; static locale::id id; # 2338 "/usr/include/c++/13/bits/locale_facets.h" 3 explicit num_put(size_t __refs = 0) : facet(__refs) { } # 2356 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const { return this->do_put(__s, __io, __fill, __v); } # 2398 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, long __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, unsigned long __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, unsigned long long __v) const { return this->do_put(__s, __io, __fill, __v); } # 2461 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, double __v) const { return this->do_put(__s, __io, __fill, __v); } iter_type put(iter_type __s, ios_base& __io, char_type __fill, long double __v) const { return this->do_put(__s, __io, __fill, __v); } # 2486 "/usr/include/c++/13/bits/locale_facets.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, const void* __v) const { return this->do_put(__s, __io, __fill, __v); } protected: template<typename _ValueT> iter_type _M_insert_float(iter_type, ios_base& __io, char_type __fill, char __mod, _ValueT __v) const; void _M_group_float(const char* __grouping, size_t __grouping_size, char_type __sep, const char_type* __p, char_type* __new, char_type* __cs, int& __len) const; template<typename _ValueT> iter_type _M_insert_int(iter_type, ios_base& __io, char_type __fill, _ValueT __v) const; void _M_group_int(const char* __grouping, size_t __grouping_size, char_type __sep, ios_base& __io, char_type* __new, char_type* __cs, int& __len) const; void _M_pad(char_type __fill, streamsize __w, ios_base& __io, char_type* __new, const char_type* __cs, int& __len) const; virtual ~num_put() { } # 2534 "/usr/include/c++/13/bits/locale_facets.h" 3 virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const; virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, unsigned long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, long long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, unsigned long long __v) const { return _M_insert_int(__s, __io, __fill, __v); } virtual iter_type do_put(iter_type, ios_base&, char_type, double) const; virtual iter_type do_put(iter_type, ios_base&, char_type, long double) const; virtual iter_type do_put(iter_type, ios_base&, char_type, const void*) const; # 2586 "/usr/include/c++/13/bits/locale_facets.h" 3 }; template <typename _CharT, typename _OutIter> locale::id num_put<_CharT, _OutIter>::id; template<typename _CharT> inline bool isspace(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); } template<typename _CharT> inline bool isprint(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); } template<typename _CharT> inline bool iscntrl(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); } template<typename _CharT> inline bool isupper(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c); } template<typename _CharT> inline bool islower(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); } template<typename _CharT> inline bool isalpha(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c); } template<typename _CharT> inline bool isdigit(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c); } template<typename _CharT> inline bool ispunct(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, __c); } template<typename _CharT> inline bool isxdigit(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, __c); } template<typename _CharT> inline bool isalnum(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c); } template<typename _CharT> inline bool isgraph(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, __c); } template<typename _CharT> inline bool isblank(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).is(ctype_base::blank, __c); } template<typename _CharT> inline _CharT toupper(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).toupper(__c); } template<typename _CharT> inline _CharT tolower(_CharT __c, const locale& __loc) { return use_facet<ctype<_CharT> >(__loc).tolower(__c); } } # 1 "/usr/include/c++/13/bits/locale_facets.tcc" 1 3 # 33 "/usr/include/c++/13/bits/locale_facets.tcc" 3 # 34 "/usr/include/c++/13/bits/locale_facets.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Facet> struct __use_cache { const _Facet* operator() (const locale& __loc) const; }; template<typename _CharT> struct __use_cache<__numpunct_cache<_CharT> > { const __numpunct_cache<_CharT>* operator() (const locale& __loc) const { const size_t __i = numpunct<_CharT>::id._M_id(); const locale::facet** __caches = __loc._M_impl->_M_caches; if (!__caches[__i]) { __numpunct_cache<_CharT>* __tmp = 0; try { __tmp = new __numpunct_cache<_CharT>; __tmp->_M_cache(__loc); } catch(...) { delete __tmp; throw; } __loc._M_impl->_M_install_cache(__tmp, __i); } return static_cast<const __numpunct_cache<_CharT>*>(__caches[__i]); } }; template<typename _CharT> void __numpunct_cache<_CharT>::_M_cache(const locale& __loc) { const numpunct<_CharT>& __np = use_facet<numpunct<_CharT> >(__loc); char* __grouping = 0; _CharT* __truename = 0; _CharT* __falsename = 0; try { const string& __g = __np.grouping(); _M_grouping_size = __g.size(); __grouping = new char[_M_grouping_size]; __g.copy(__grouping, _M_grouping_size); _M_use_grouping = (_M_grouping_size && static_cast<signed char>(__grouping[0]) > 0 && (__grouping[0] != __gnu_cxx::__numeric_traits<char>::__max)); const basic_string<_CharT>& __tn = __np.truename(); _M_truename_size = __tn.size(); __truename = new _CharT[_M_truename_size]; __tn.copy(__truename, _M_truename_size); const basic_string<_CharT>& __fn = __np.falsename(); _M_falsename_size = __fn.size(); __falsename = new _CharT[_M_falsename_size]; __fn.copy(__falsename, _M_falsename_size); _M_decimal_point = __np.decimal_point(); _M_thousands_sep = __np.thousands_sep(); const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc); __ct.widen(__num_base::_S_atoms_out, __num_base::_S_atoms_out + __num_base::_S_oend, _M_atoms_out); __ct.widen(__num_base::_S_atoms_in, __num_base::_S_atoms_in + __num_base::_S_iend, _M_atoms_in); _M_grouping = __grouping; _M_truename = __truename; _M_falsename = __falsename; _M_allocated = true; } catch(...) { delete [] __grouping; delete [] __truename; delete [] __falsename; throw; } } # 139 "/usr/include/c++/13/bits/locale_facets.tcc" 3 __attribute__ ((__pure__)) bool __verify_grouping(const char* __grouping, size_t __grouping_size, const string& __grouping_tmp) throw (); template<typename _CharT, typename _InIter> __attribute ((__abi_tag__ ("cxx11"))) _InIter num_get<_CharT, _InIter>:: _M_extract_float(_InIter __beg, _InIter __end, ios_base& __io, ios_base::iostate& __err, string& __xtrc) const { typedef char_traits<_CharT> __traits_type; typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __lit = __lc->_M_atoms_in; char_type __c = char_type(); bool __testeof = __beg == __end; if (!__testeof) { __c = *__beg; const bool __plus = __c == __lit[__num_base::_S_iplus]; if ((__plus || __c == __lit[__num_base::_S_iminus]) && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) && !(__c == __lc->_M_decimal_point)) { __xtrc += __plus ? '+' : '-'; if (++__beg != __end) __c = *__beg; else __testeof = true; } } bool __found_mantissa = false; int __sep_pos = 0; while (!__testeof) { if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) || __c == __lc->_M_decimal_point) break; else if (__c == __lit[__num_base::_S_izero]) { if (!__found_mantissa) { __xtrc += '0'; __found_mantissa = true; } ++__sep_pos; if (++__beg != __end) __c = *__beg; else __testeof = true; } else break; } bool __found_dec = false; bool __found_sci = false; string __found_grouping; if (__lc->_M_use_grouping) __found_grouping.reserve(32); const char_type* __lit_zero = __lit + __num_base::_S_izero; if (!__lc->_M_allocated) while (!__testeof) { const int __digit = _M_find(__lit_zero, 10, __c); if (__digit != -1) { __xtrc += '0' + __digit; __found_mantissa = true; } else if (__c == __lc->_M_decimal_point && !__found_dec && !__found_sci) { __xtrc += '.'; __found_dec = true; } else if ((__c == __lit[__num_base::_S_ie] || __c == __lit[__num_base::_S_iE]) && !__found_sci && __found_mantissa) { __xtrc += 'e'; __found_sci = true; if (++__beg != __end) { __c = *__beg; const bool __plus = __c == __lit[__num_base::_S_iplus]; if (__plus || __c == __lit[__num_base::_S_iminus]) __xtrc += __plus ? '+' : '-'; else continue; } else { __testeof = true; break; } } else break; if (++__beg != __end) __c = *__beg; else __testeof = true; } else while (!__testeof) { if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) { if (!__found_dec && !__found_sci) { if (__sep_pos) { __found_grouping += static_cast<char>(__sep_pos); __sep_pos = 0; } else { __xtrc.clear(); break; } } else break; } else if (__c == __lc->_M_decimal_point) { if (!__found_dec && !__found_sci) { if (__found_grouping.size()) __found_grouping += static_cast<char>(__sep_pos); __xtrc += '.'; __found_dec = true; } else break; } else { const char_type* __q = __traits_type::find(__lit_zero, 10, __c); if (__q) { __xtrc += '0' + (__q - __lit_zero); __found_mantissa = true; ++__sep_pos; } else if ((__c == __lit[__num_base::_S_ie] || __c == __lit[__num_base::_S_iE]) && !__found_sci && __found_mantissa) { if (__found_grouping.size() && !__found_dec) __found_grouping += static_cast<char>(__sep_pos); __xtrc += 'e'; __found_sci = true; if (++__beg != __end) { __c = *__beg; const bool __plus = __c == __lit[__num_base::_S_iplus]; if ((__plus || __c == __lit[__num_base::_S_iminus]) && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) && !(__c == __lc->_M_decimal_point)) __xtrc += __plus ? '+' : '-'; else continue; } else { __testeof = true; break; } } else break; } if (++__beg != __end) __c = *__beg; else __testeof = true; } if (__found_grouping.size()) { if (!__found_dec && !__found_sci) __found_grouping += static_cast<char>(__sep_pos); if (!std::__verify_grouping(__lc->_M_grouping, __lc->_M_grouping_size, __found_grouping)) __err = ios_base::failbit; } return __beg; } template<typename _CharT, typename _InIter> template<typename _ValueT> __attribute ((__abi_tag__ ("cxx11"))) _InIter num_get<_CharT, _InIter>:: _M_extract_int(_InIter __beg, _InIter __end, ios_base& __io, ios_base::iostate& __err, _ValueT& __v) const { typedef char_traits<_CharT> __traits_type; using __gnu_cxx::__add_unsigned; typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __lit = __lc->_M_atoms_in; char_type __c = char_type(); const ios_base::fmtflags __basefield = __io.flags() & ios_base::basefield; const bool __oct = __basefield == ios_base::oct; int __base = __oct ? 8 : (__basefield == ios_base::hex ? 16 : 10); bool __testeof = __beg == __end; bool __negative = false; if (!__testeof) { __c = *__beg; __negative = __c == __lit[__num_base::_S_iminus]; if ((__negative || __c == __lit[__num_base::_S_iplus]) && !(__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) && !(__c == __lc->_M_decimal_point)) { if (++__beg != __end) __c = *__beg; else __testeof = true; } } bool __found_zero = false; int __sep_pos = 0; while (!__testeof) { if ((__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) || __c == __lc->_M_decimal_point) break; else if (__c == __lit[__num_base::_S_izero] && (!__found_zero || __base == 10)) { __found_zero = true; ++__sep_pos; if (__basefield == 0) __base = 8; if (__base == 8) __sep_pos = 0; } else if (__found_zero && (__c == __lit[__num_base::_S_ix] || __c == __lit[__num_base::_S_iX])) { if (__basefield == 0) __base = 16; if (__base == 16) { __found_zero = false; __sep_pos = 0; } else break; } else break; if (++__beg != __end) { __c = *__beg; if (!__found_zero) break; } else __testeof = true; } const size_t __len = (__base == 16 ? __num_base::_S_iend - __num_base::_S_izero : __base); typedef __gnu_cxx::__numeric_traits<_ValueT> __num_traits; string __found_grouping; if (__lc->_M_use_grouping) __found_grouping.reserve(32); bool __testfail = false; bool __testoverflow = false; const __unsigned_type __max = (__negative && __num_traits::__is_signed) ? -static_cast<__unsigned_type>(__num_traits::__min) : __num_traits::__max; const __unsigned_type __smax = __max / __base; __unsigned_type __result = 0; int __digit = 0; const char_type* __lit_zero = __lit + __num_base::_S_izero; if (!__lc->_M_allocated) while (!__testeof) { __digit = _M_find(__lit_zero, __len, __c); if (__digit == -1) break; if (__result > __smax) __testoverflow = true; else { __result *= __base; __testoverflow |= __result > __max - __digit; __result += __digit; ++__sep_pos; } if (++__beg != __end) __c = *__beg; else __testeof = true; } else while (!__testeof) { if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep) { if (__sep_pos) { __found_grouping += static_cast<char>(__sep_pos); __sep_pos = 0; } else { __testfail = true; break; } } else if (__c == __lc->_M_decimal_point) break; else { const char_type* __q = __traits_type::find(__lit_zero, __len, __c); if (!__q) break; __digit = __q - __lit_zero; if (__digit > 15) __digit -= 6; if (__result > __smax) __testoverflow = true; else { __result *= __base; __testoverflow |= __result > __max - __digit; __result += __digit; ++__sep_pos; } } if (++__beg != __end) __c = *__beg; else __testeof = true; } if (__found_grouping.size()) { __found_grouping += static_cast<char>(__sep_pos); if (!std::__verify_grouping(__lc->_M_grouping, __lc->_M_grouping_size, __found_grouping)) __err = ios_base::failbit; } if ((!__sep_pos && !__found_zero && !__found_grouping.size()) || __testfail) { __v = 0; __err = ios_base::failbit; } else if (__testoverflow) { if (__negative && __num_traits::__is_signed) __v = __num_traits::__min; else __v = __num_traits::__max; __err = ios_base::failbit; } else __v = __negative ? -__result : __result; if (__testeof) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, bool& __v) const { if (!(__io.flags() & ios_base::boolalpha)) { long __l = -1; __beg = _M_extract_int(__beg, __end, __io, __err, __l); if (__l == 0 || __l == 1) __v = bool(__l); else { __v = true; __err = ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; } } else { typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); bool __testf = true; bool __testt = true; bool __donef = __lc->_M_falsename_size == 0; bool __donet = __lc->_M_truename_size == 0; bool __testeof = false; size_t __n = 0; while (!__donef || !__donet) { if (__beg == __end) { __testeof = true; break; } const char_type __c = *__beg; if (!__donef) __testf = __c == __lc->_M_falsename[__n]; if (!__testf && __donet) break; if (!__donet) __testt = __c == __lc->_M_truename[__n]; if (!__testt && __donef) break; if (!__testt && !__testf) break; ++__n; ++__beg; __donef = !__testf || __n >= __lc->_M_falsename_size; __donet = !__testt || __n >= __lc->_M_truename_size; } if (__testf && __n == __lc->_M_falsename_size && __n) { __v = false; if (__testt && __n == __lc->_M_truename_size) __err = ios_base::failbit; else __err = __testeof ? ios_base::eofbit : ios_base::goodbit; } else if (__testt && __n == __lc->_M_truename_size && __n) { __v = true; __err = __testeof ? ios_base::eofbit : ios_base::goodbit; } else { __v = false; __err = ios_base::failbit; if (__testeof) __err |= ios_base::eofbit; } } return __beg; } template<typename _CharT, typename _InIter> _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, float& __v) const { string __xtrc; __xtrc.reserve(32); __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, double& __v) const { string __xtrc; __xtrc.reserve(32); __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } # 735 "/usr/include/c++/13/bits/locale_facets.tcc" 3 template<typename _CharT, typename _InIter> _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, long double& __v) const { string __xtrc; __xtrc.reserve(32); __beg = _M_extract_float(__beg, __end, __io, __err, __xtrc); std::__convert_to_v(__xtrc.c_str(), __v, __err, _S_get_c_locale()); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter num_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, void*& __v) const { typedef ios_base::fmtflags fmtflags; const fmtflags __fmt = __io.flags(); __io.flags((__fmt & ~ios_base::basefield) | ios_base::hex); typedef __gnu_cxx::__conditional_type<(sizeof(void*) <= sizeof(unsigned long)), unsigned long, unsigned long long>::__type _UIntPtrType; _UIntPtrType __ul; __beg = _M_extract_int(__beg, __end, __io, __err, __ul); __io.flags(__fmt); __v = reinterpret_cast<void*>(__ul); return __beg; } # 795 "/usr/include/c++/13/bits/locale_facets.tcc" 3 template<typename _CharT, typename _OutIter> void num_put<_CharT, _OutIter>:: _M_pad(_CharT __fill, streamsize __w, ios_base& __io, _CharT* __new, const _CharT* __cs, int& __len) const { __pad<_CharT, char_traits<_CharT> >::_S_pad(__io, __fill, __new, __cs, __w, __len); __len = static_cast<int>(__w); } template<typename _CharT, typename _ValueT> int __int_to_char(_CharT* __bufend, _ValueT __v, const _CharT* __lit, ios_base::fmtflags __flags, bool __dec) { _CharT* __buf = __bufend; if (__builtin_expect(__dec, true)) { do { *--__buf = __lit[(__v % 10) + __num_base::_S_odigits]; __v /= 10; } while (__v != 0); } else if ((__flags & ios_base::basefield) == ios_base::oct) { do { *--__buf = __lit[(__v & 0x7) + __num_base::_S_odigits]; __v >>= 3; } while (__v != 0); } else { const bool __uppercase = __flags & ios_base::uppercase; const int __case_offset = __uppercase ? __num_base::_S_oudigits : __num_base::_S_odigits; do { *--__buf = __lit[(__v & 0xf) + __case_offset]; __v >>= 4; } while (__v != 0); } return __bufend - __buf; } template<typename _CharT, typename _OutIter> void num_put<_CharT, _OutIter>:: _M_group_int(const char* __grouping, size_t __grouping_size, _CharT __sep, ios_base&, _CharT* __new, _CharT* __cs, int& __len) const { _CharT* __p = std::__add_grouping(__new, __sep, __grouping, __grouping_size, __cs, __cs + __len); __len = __p - __new; } template<typename _CharT, typename _OutIter> template<typename _ValueT> _OutIter num_put<_CharT, _OutIter>:: _M_insert_int(_OutIter __s, ios_base& __io, _CharT __fill, _ValueT __v) const { using __gnu_cxx::__add_unsigned; typedef typename __add_unsigned<_ValueT>::__type __unsigned_type; typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __lit = __lc->_M_atoms_out; const ios_base::fmtflags __flags = __io.flags(); const int __ilen = 5 * sizeof(_ValueT); _CharT* __cs = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __ilen)); const ios_base::fmtflags __basefield = __flags & ios_base::basefield; const bool __dec = (__basefield != ios_base::oct && __basefield != ios_base::hex); const __unsigned_type __u = ((__v > 0 || !__dec) ? __unsigned_type(__v) : -__unsigned_type(__v)); int __len = __int_to_char(__cs + __ilen, __u, __lit, __flags, __dec); __cs += __ilen - __len; if (__lc->_M_use_grouping) { _CharT* __cs2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * (__len + 1) * 2)); _M_group_int(__lc->_M_grouping, __lc->_M_grouping_size, __lc->_M_thousands_sep, __io, __cs2 + 2, __cs, __len); __cs = __cs2 + 2; } if (__builtin_expect(__dec, true)) { if (__v >= 0) { if (bool(__flags & ios_base::showpos) && __gnu_cxx::__numeric_traits<_ValueT>::__is_signed) *--__cs = __lit[__num_base::_S_oplus], ++__len; } else *--__cs = __lit[__num_base::_S_ominus], ++__len; } else if (bool(__flags & ios_base::showbase) && __v) { if (__basefield == ios_base::oct) *--__cs = __lit[__num_base::_S_odigits], ++__len; else { const bool __uppercase = __flags & ios_base::uppercase; *--__cs = __lit[__num_base::_S_ox + __uppercase]; *--__cs = __lit[__num_base::_S_odigits]; __len += 2; } } const streamsize __w = __io.width(); if (__w > static_cast<streamsize>(__len)) { _CharT* __cs3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w)); _M_pad(__fill, __w, __io, __cs3, __cs, __len); __cs = __cs3; } __io.width(0); return std::__write(__s, __cs, __len); } template<typename _CharT, typename _OutIter> void num_put<_CharT, _OutIter>:: _M_group_float(const char* __grouping, size_t __grouping_size, _CharT __sep, const _CharT* __p, _CharT* __new, _CharT* __cs, int& __len) const { const int __declen = __p ? __p - __cs : __len; _CharT* __p2 = std::__add_grouping(__new, __sep, __grouping, __grouping_size, __cs, __cs + __declen); int __newlen = __p2 - __new; if (__p) { char_traits<_CharT>::copy(__p2, __p, __len - __declen); __newlen += __len - __declen; } __len = __newlen; } # 989 "/usr/include/c++/13/bits/locale_facets.tcc" 3 template<typename _CharT, typename _OutIter> template<typename _ValueT> _OutIter num_put<_CharT, _OutIter>:: _M_insert_float(_OutIter __s, ios_base& __io, _CharT __fill, char __mod, _ValueT __v) const { typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const streamsize __prec = __io.precision() < 0 ? 6 : __io.precision(); const int __max_digits = __gnu_cxx::__numeric_traits<_ValueT>::__digits10; int __len; char __fbuf[16]; __num_base::_S_format_float(__io, __fbuf, __mod); const bool __use_prec = (__io.flags() & ios_base::floatfield) != ios_base::floatfield; int __cs_size = __max_digits * 3; char* __cs = static_cast<char*>(__builtin_alloca(__cs_size)); if (__use_prec) __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __prec, __v); else __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __v); if (__len >= __cs_size) { __cs_size = __len + 1; __cs = static_cast<char*>(__builtin_alloca(__cs_size)); if (__use_prec) __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __prec, __v); else __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __v); } # 1062 "/usr/include/c++/13/bits/locale_facets.tcc" 3 const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); _CharT* __ws = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __len)); __ctype.widen(__cs, __cs + __len, __ws); _CharT* __wp = 0; const char* __p = char_traits<char>::find(__cs, __len, '.'); if (__p) { __wp = __ws + (__p - __cs); *__wp = __lc->_M_decimal_point; } if (__lc->_M_use_grouping && (__wp || __len < 3 || (__cs[1] <= '9' && __cs[2] <= '9' && __cs[1] >= '0' && __cs[2] >= '0'))) { _CharT* __ws2 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __len * 2)); streamsize __off = 0; if (__cs[0] == '-' || __cs[0] == '+') { __off = 1; __ws2[0] = __ws[0]; __len -= 1; } _M_group_float(__lc->_M_grouping, __lc->_M_grouping_size, __lc->_M_thousands_sep, __wp, __ws2 + __off, __ws + __off, __len); __len += __off; __ws = __ws2; } const streamsize __w = __io.width(); if (__w > static_cast<streamsize>(__len)) { _CharT* __ws3 = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w)); _M_pad(__fill, __w, __io, __ws3, __ws, __len); __ws = __ws3; } __io.width(0); return std::__write(__s, __ws, __len); } template<typename _CharT, typename _OutIter> _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, bool __v) const { const ios_base::fmtflags __flags = __io.flags(); if ((__flags & ios_base::boolalpha) == 0) { const long __l = __v; __s = _M_insert_int(__s, __io, __fill, __l); } else { typedef __numpunct_cache<_CharT> __cache_type; __use_cache<__cache_type> __uc; const locale& __loc = __io._M_getloc(); const __cache_type* __lc = __uc(__loc); const _CharT* __name = __v ? __lc->_M_truename : __lc->_M_falsename; int __len = __v ? __lc->_M_truename_size : __lc->_M_falsename_size; const streamsize __w = __io.width(); if (__w > static_cast<streamsize>(__len)) { const streamsize __plen = __w - __len; _CharT* __ps = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __plen)); char_traits<_CharT>::assign(__ps, __plen, __fill); __io.width(0); if ((__flags & ios_base::adjustfield) == ios_base::left) { __s = std::__write(__s, __name, __len); __s = std::__write(__s, __ps, __plen); } else { __s = std::__write(__s, __ps, __plen); __s = std::__write(__s, __name, __len); } return __s; } __io.width(0); __s = std::__write(__s, __name, __len); } return __s; } template<typename _CharT, typename _OutIter> _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, double __v) const { return _M_insert_float(__s, __io, __fill, char(), __v); } # 1187 "/usr/include/c++/13/bits/locale_facets.tcc" 3 template<typename _CharT, typename _OutIter> _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, long double __v) const { return _M_insert_float(__s, __io, __fill, 'L', __v); } template<typename _CharT, typename _OutIter> _OutIter num_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type __fill, const void* __v) const { const ios_base::fmtflags __flags = __io.flags(); const ios_base::fmtflags __fmt = ~(ios_base::basefield | ios_base::uppercase); __io.flags((__flags & __fmt) | (ios_base::hex | ios_base::showbase)); typedef __gnu_cxx::__conditional_type<(sizeof(const void*) <= sizeof(unsigned long)), unsigned long, unsigned long long>::__type _UIntPtrType; __s = _M_insert_int(__s, __io, __fill, reinterpret_cast<_UIntPtrType>(__v)); __io.flags(__flags); return __s; } # 1224 "/usr/include/c++/13/bits/locale_facets.tcc" 3 # 1233 "/usr/include/c++/13/bits/locale_facets.tcc" 3 template<typename _CharT, typename _Traits> void __pad<_CharT, _Traits>::_S_pad(ios_base& __io, _CharT __fill, _CharT* __news, const _CharT* __olds, streamsize __newlen, streamsize __oldlen) { const size_t __plen = static_cast<size_t>(__newlen - __oldlen); const ios_base::fmtflags __adjust = __io.flags() & ios_base::adjustfield; if (__adjust == ios_base::left) { _Traits::copy(__news, __olds, __oldlen); _Traits::assign(__news + __oldlen, __plen, __fill); return; } size_t __mod = 0; if (__adjust == ios_base::internal) { const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); if (__ctype.widen('-') == __olds[0] || __ctype.widen('+') == __olds[0]) { __news[0] = __olds[0]; __mod = 1; ++__news; } else if (__ctype.widen('0') == __olds[0] && __oldlen > 1 && (__ctype.widen('x') == __olds[1] || __ctype.widen('X') == __olds[1])) { __news[0] = __olds[0]; __news[1] = __olds[1]; __mod = 2; __news += 2; } } _Traits::assign(__news, __plen, __fill); _Traits::copy(__news + __plen, __olds + __mod, __oldlen - __mod); } template<typename _CharT> _CharT* __add_grouping(_CharT* __s, _CharT __sep, const char* __gbeg, size_t __gsize, const _CharT* __first, const _CharT* __last) { size_t __idx = 0; size_t __ctr = 0; while (__last - __first > __gbeg[__idx] && static_cast<signed char>(__gbeg[__idx]) > 0 && __gbeg[__idx] != __gnu_cxx::__numeric_traits<char>::__max) { __last -= __gbeg[__idx]; __idx < __gsize - 1 ? ++__idx : ++__ctr; } while (__first != __last) *__s++ = *__first++; while (__ctr--) { *__s++ = __sep; for (char __i = __gbeg[__idx]; __i > 0; --__i) *__s++ = *__first++; } while (__idx--) { *__s++ = __sep; for (char __i = __gbeg[__idx]; __i > 0; --__i) *__s++ = *__first++; } return __s; } extern template class __cxx11:: numpunct<char>; extern template class __cxx11:: numpunct_byname<char>; extern template class num_get<char>; extern template class num_put<char>; extern template class ctype_byname<char>; extern template const ctype<char>* __try_use_facet<ctype<char> >(const locale&) noexcept; extern template const numpunct<char>* __try_use_facet<numpunct<char> >(const locale&) noexcept; extern template const num_put<char>* __try_use_facet<num_put<char> >(const locale&) noexcept; extern template const num_get<char>* __try_use_facet<num_get<char> >(const locale&) noexcept; extern template const ctype<char>& use_facet<ctype<char> >(const locale&); extern template const numpunct<char>& use_facet<numpunct<char> >(const locale&); extern template const num_put<char>& use_facet<num_put<char> >(const locale&); extern template const num_get<char>& use_facet<num_get<char> >(const locale&); extern template bool has_facet<ctype<char> >(const locale&); extern template bool has_facet<numpunct<char> >(const locale&); extern template bool has_facet<num_put<char> >(const locale&); extern template bool has_facet<num_get<char> >(const locale&); extern template class __cxx11:: numpunct<wchar_t>; extern template class __cxx11:: numpunct_byname<wchar_t>; extern template class num_get<wchar_t>; extern template class num_put<wchar_t>; extern template class ctype_byname<wchar_t>; extern template const ctype<wchar_t>* __try_use_facet<ctype<wchar_t> >(const locale&) noexcept; extern template const numpunct<wchar_t>* __try_use_facet<numpunct<wchar_t> >(const locale&) noexcept; extern template const num_put<wchar_t>* __try_use_facet<num_put<wchar_t> >(const locale&) noexcept; extern template const num_get<wchar_t>* __try_use_facet<num_get<wchar_t> >(const locale&) noexcept; extern template const ctype<wchar_t>& use_facet<ctype<wchar_t> >(const locale&); extern template const numpunct<wchar_t>& use_facet<numpunct<wchar_t> >(const locale&); extern template const num_put<wchar_t>& use_facet<num_put<wchar_t> >(const locale&); extern template const num_get<wchar_t>& use_facet<num_get<wchar_t> >(const locale&); extern template bool has_facet<ctype<wchar_t> >(const locale&); extern template bool has_facet<numpunct<wchar_t> >(const locale&); extern template bool has_facet<num_put<wchar_t> >(const locale&); extern template bool has_facet<num_get<wchar_t> >(const locale&); } # 2688 "/usr/include/c++/13/bits/locale_facets.h" 2 3 # 38 "/usr/include/c++/13/bits/basic_ios.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Facet> inline const _Facet& __check_facet(const _Facet* __f) { if (!__f) __throw_bad_cast(); return *__f; } # 66 "/usr/include/c++/13/bits/basic_ios.h" 3 template<typename _CharT, typename _Traits> class basic_ios : public ios_base { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef ctype<_CharT> __ctype_type; typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > __num_put_type; typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > __num_get_type; protected: basic_ostream<_CharT, _Traits>* _M_tie; mutable char_type _M_fill; mutable bool _M_fill_init; basic_streambuf<_CharT, _Traits>* _M_streambuf; const __ctype_type* _M_ctype; const __num_put_type* _M_num_put; const __num_get_type* _M_num_get; public: # 117 "/usr/include/c++/13/bits/basic_ios.h" 3 explicit operator bool() const { return !this->fail(); } bool operator!() const { return this->fail(); } # 136 "/usr/include/c++/13/bits/basic_ios.h" 3 iostate rdstate() const { return _M_streambuf_state; } # 147 "/usr/include/c++/13/bits/basic_ios.h" 3 void clear(iostate __state = goodbit); void setstate(iostate __state) { this->clear(this->rdstate() | __state); } void _M_setstate(iostate __state) { _M_streambuf_state |= __state; if (this->exceptions() & __state) throw; } bool good() const { return this->rdstate() == 0; } bool eof() const { return (this->rdstate() & eofbit) != 0; } # 200 "/usr/include/c++/13/bits/basic_ios.h" 3 bool fail() const { return (this->rdstate() & (badbit | failbit)) != 0; } bool bad() const { return (this->rdstate() & badbit) != 0; } # 221 "/usr/include/c++/13/bits/basic_ios.h" 3 iostate exceptions() const { return _M_exception; } # 256 "/usr/include/c++/13/bits/basic_ios.h" 3 void exceptions(iostate __except) { _M_exception = __except; this->clear(_M_streambuf_state); } explicit basic_ios(basic_streambuf<_CharT, _Traits>* __sb) : ios_base(), _M_tie(0), _M_fill(), _M_fill_init(false), _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) { this->init(__sb); } virtual ~basic_ios() { } # 294 "/usr/include/c++/13/bits/basic_ios.h" 3 basic_ostream<_CharT, _Traits>* tie() const { return _M_tie; } # 306 "/usr/include/c++/13/bits/basic_ios.h" 3 basic_ostream<_CharT, _Traits>* tie(basic_ostream<_CharT, _Traits>* __tiestr) { basic_ostream<_CharT, _Traits>* __old = _M_tie; _M_tie = __tiestr; return __old; } basic_streambuf<_CharT, _Traits>* rdbuf() const { return _M_streambuf; } # 346 "/usr/include/c++/13/bits/basic_ios.h" 3 basic_streambuf<_CharT, _Traits>* rdbuf(basic_streambuf<_CharT, _Traits>* __sb); # 360 "/usr/include/c++/13/bits/basic_ios.h" 3 basic_ios& copyfmt(const basic_ios& __rhs); char_type fill() const { if (!_M_fill_init) { _M_fill = this->widen(' '); _M_fill_init = true; } return _M_fill; } # 389 "/usr/include/c++/13/bits/basic_ios.h" 3 char_type fill(char_type __ch) { char_type __old = this->fill(); _M_fill = __ch; return __old; } # 409 "/usr/include/c++/13/bits/basic_ios.h" 3 locale imbue(const locale& __loc); # 429 "/usr/include/c++/13/bits/basic_ios.h" 3 char narrow(char_type __c, char __dfault) const { return __check_facet(_M_ctype).narrow(__c, __dfault); } # 448 "/usr/include/c++/13/bits/basic_ios.h" 3 char_type widen(char __c) const { return __check_facet(_M_ctype).widen(__c); } protected: basic_ios() : ios_base(), _M_tie(0), _M_fill(char_type()), _M_fill_init(false), _M_streambuf(0), _M_ctype(0), _M_num_put(0), _M_num_get(0) { } void init(basic_streambuf<_CharT, _Traits>* __sb); basic_ios(const basic_ios&) = delete; basic_ios& operator=(const basic_ios&) = delete; void move(basic_ios& __rhs) { ios_base::_M_move(__rhs); _M_cache_locale(_M_ios_locale); this->tie(__rhs.tie(nullptr)); _M_fill = __rhs._M_fill; _M_fill_init = __rhs._M_fill_init; _M_streambuf = nullptr; } void move(basic_ios&& __rhs) { this->move(__rhs); } void swap(basic_ios& __rhs) noexcept { ios_base::_M_swap(__rhs); _M_cache_locale(_M_ios_locale); __rhs._M_cache_locale(__rhs._M_ios_locale); std::swap(_M_tie, __rhs._M_tie); std::swap(_M_fill, __rhs._M_fill); std::swap(_M_fill_init, __rhs._M_fill_init); } void set_rdbuf(basic_streambuf<_CharT, _Traits>* __sb) { _M_streambuf = __sb; } void _M_cache_locale(const locale& __loc); }; } # 1 "/usr/include/c++/13/bits/basic_ios.tcc" 1 3 # 33 "/usr/include/c++/13/bits/basic_ios.tcc" 3 # 34 "/usr/include/c++/13/bits/basic_ios.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> void basic_ios<_CharT, _Traits>::clear(iostate __state) { if (this->rdbuf()) _M_streambuf_state = __state; else _M_streambuf_state = __state | badbit; if (this->exceptions() & this->rdstate()) __throw_ios_failure(("basic_ios::clear")); } template<typename _CharT, typename _Traits> basic_streambuf<_CharT, _Traits>* basic_ios<_CharT, _Traits>::rdbuf(basic_streambuf<_CharT, _Traits>* __sb) { basic_streambuf<_CharT, _Traits>* __old = _M_streambuf; _M_streambuf = __sb; this->clear(); return __old; } template<typename _CharT, typename _Traits> basic_ios<_CharT, _Traits>& basic_ios<_CharT, _Traits>::copyfmt(const basic_ios& __rhs) { if (this != std::__addressof(__rhs)) { _Words* __words = (__rhs._M_word_size <= _S_local_word_size) ? _M_local_word : new _Words[__rhs._M_word_size]; _Callback_list* __cb = __rhs._M_callbacks; if (__cb) __cb->_M_add_reference(); _M_call_callbacks(erase_event); if (_M_word != _M_local_word) { delete [] _M_word; _M_word = 0; } _M_dispose_callbacks(); _M_callbacks = __cb; for (int __i = 0; __i < __rhs._M_word_size; ++__i) __words[__i] = __rhs._M_word[__i]; _M_word = __words; _M_word_size = __rhs._M_word_size; this->flags(__rhs.flags()); this->width(__rhs.width()); this->precision(__rhs.precision()); this->tie(__rhs.tie()); this->fill(__rhs.fill()); _M_ios_locale = __rhs.getloc(); _M_cache_locale(_M_ios_locale); _M_call_callbacks(copyfmt_event); this->exceptions(__rhs.exceptions()); } return *this; } template<typename _CharT, typename _Traits> locale basic_ios<_CharT, _Traits>::imbue(const locale& __loc) { locale __old(this->getloc()); ios_base::imbue(__loc); _M_cache_locale(__loc); if (this->rdbuf() != 0) this->rdbuf()->pubimbue(__loc); return __old; } template<typename _CharT, typename _Traits> void basic_ios<_CharT, _Traits>::init(basic_streambuf<_CharT, _Traits>* __sb) { ios_base::_M_init(); _M_cache_locale(_M_ios_locale); # 146 "/usr/include/c++/13/bits/basic_ios.tcc" 3 _M_fill = _CharT(); _M_fill_init = false; _M_tie = 0; _M_exception = goodbit; _M_streambuf = __sb; _M_streambuf_state = __sb ? goodbit : badbit; } template<typename _CharT, typename _Traits> void basic_ios<_CharT, _Traits>::_M_cache_locale(const locale& __loc) { _M_ctype = std::__try_use_facet<__ctype_type>(__loc); _M_num_put = std::__try_use_facet<__num_put_type>(__loc); _M_num_get = std::__try_use_facet<__num_get_type>(__loc); } extern template class basic_ios<char>; extern template class basic_ios<wchar_t>; } # 517 "/usr/include/c++/13/bits/basic_ios.h" 2 3 # 47 "/usr/include/c++/13/ios" 2 3 # 41 "/usr/include/c++/13/ostream" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/13/ostream" 3 template<typename _CharT, typename _Traits> class basic_ostream : virtual public basic_ios<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef basic_ios<_CharT, _Traits> __ios_type; typedef basic_ostream<_CharT, _Traits> __ostream_type; typedef num_put<_CharT, ostreambuf_iterator<_CharT, _Traits> > __num_put_type; typedef ctype<_CharT> __ctype_type; # 85 "/usr/include/c++/13/ostream" 3 explicit basic_ostream(__streambuf_type* __sb) { this->init(__sb); } virtual ~basic_ostream() { } class sentry; friend class sentry; # 109 "/usr/include/c++/13/ostream" 3 __ostream_type& operator<<(__ostream_type& (*__pf)(__ostream_type&)) { return __pf(*this); } __ostream_type& operator<<(__ios_type& (*__pf)(__ios_type&)) { __pf(*this); return *this; } __ostream_type& operator<<(ios_base& (*__pf) (ios_base&)) { __pf(*this); return *this; } # 167 "/usr/include/c++/13/ostream" 3 __ostream_type& operator<<(long __n) { return _M_insert(__n); } __ostream_type& operator<<(unsigned long __n) { return _M_insert(__n); } __ostream_type& operator<<(bool __n) { return _M_insert(__n); } __ostream_type& operator<<(short __n); __ostream_type& operator<<(unsigned short __n) { return _M_insert(static_cast<unsigned long>(__n)); } __ostream_type& operator<<(int __n); __ostream_type& operator<<(unsigned int __n) { return _M_insert(static_cast<unsigned long>(__n)); } __ostream_type& operator<<(long long __n) { return _M_insert(__n); } __ostream_type& operator<<(unsigned long long __n) { return _M_insert(__n); } # 221 "/usr/include/c++/13/ostream" 3 __ostream_type& operator<<(double __f) { return _M_insert(__f); } __ostream_type& operator<<(float __f) { return _M_insert(static_cast<double>(__f)); } __ostream_type& operator<<(long double __f) { return _M_insert(__f); } # 291 "/usr/include/c++/13/ostream" 3 __ostream_type& operator<<(const void* __p) { return _M_insert(__p); } __ostream_type& operator<<(nullptr_t) { return *this << "nullptr"; } # 329 "/usr/include/c++/13/ostream" 3 __ostream_type& operator<<(__streambuf_type* __sb); # 362 "/usr/include/c++/13/ostream" 3 __ostream_type& put(char_type __c); # 381 "/usr/include/c++/13/ostream" 3 __ostream_type& write(const char_type* __s, streamsize __n); # 394 "/usr/include/c++/13/ostream" 3 __ostream_type& flush(); # 404 "/usr/include/c++/13/ostream" 3 pos_type tellp(); # 415 "/usr/include/c++/13/ostream" 3 __ostream_type& seekp(pos_type); # 427 "/usr/include/c++/13/ostream" 3 __ostream_type& seekp(off_type, ios_base::seekdir); protected: basic_ostream() { this->init(0); } basic_ostream(basic_iostream<_CharT, _Traits>&) { } basic_ostream(const basic_ostream&) = delete; basic_ostream(basic_ostream&& __rhs) : __ios_type() { __ios_type::move(__rhs); } basic_ostream& operator=(const basic_ostream&) = delete; basic_ostream& operator=(basic_ostream&& __rhs) { swap(__rhs); return *this; } void swap(basic_ostream& __rhs) { __ios_type::swap(__rhs); } template<typename _ValueT> __ostream_type& _M_insert(_ValueT __v); private: void _M_write(const char_type* __s, streamsize __n) { std::__ostream_insert(*this, __s, __n); } }; # 479 "/usr/include/c++/13/ostream" 3 template <typename _CharT, typename _Traits> class basic_ostream<_CharT, _Traits>::sentry { bool _M_ok; basic_ostream<_CharT, _Traits>& _M_os; public: # 498 "/usr/include/c++/13/ostream" 3 explicit sentry(basic_ostream<_CharT, _Traits>& __os); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" ~sentry() { if (bool(_M_os.flags() & ios_base::unitbuf) && !uncaught_exception()) { if (_M_os.rdbuf() && _M_os.rdbuf()->pubsync() == -1) _M_os.setstate(ios_base::badbit); } } #pragma GCC diagnostic pop # 530 "/usr/include/c++/13/ostream" 3 explicit operator bool() const { return _M_ok; } }; # 552 "/usr/include/c++/13/ostream" 3 template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) { if (__out.width() != 0) return __ostream_insert(__out, &__c, 1); __out.put(__c); return __out; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) { return (__out << __out.widen(__c)); } template<typename _Traits> inline basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>& __out, char __c) { if (__out.width() != 0) return __ostream_insert(__out, &__c, 1); __out.put(__c); return __out; } template<typename _Traits> inline basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>& __out, signed char __c) { return (__out << static_cast<char>(__c)); } template<typename _Traits> inline basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c) { return (__out << static_cast<char>(__c)); } template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, wchar_t) = delete; template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, char8_t) = delete; template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, char16_t) = delete; template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, char32_t) = delete; template<typename _Traits> basic_ostream<wchar_t, _Traits>& operator<<(basic_ostream<wchar_t, _Traits>&, char8_t) = delete; template<typename _Traits> basic_ostream<wchar_t, _Traits>& operator<<(basic_ostream<wchar_t, _Traits>&, char16_t) = delete; template<typename _Traits> basic_ostream<wchar_t, _Traits>& operator<<(basic_ostream<wchar_t, _Traits>&, char32_t) = delete; # 643 "/usr/include/c++/13/ostream" 3 template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s) { if (!__s) __out.setstate(ios_base::badbit); else __ostream_insert(__out, __s, static_cast<streamsize>(_Traits::length(__s))); return __out; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits> & operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s); template<typename _Traits> inline basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>& __out, const char* __s) { if (!__s) __out.setstate(ios_base::badbit); else __ostream_insert(__out, __s, static_cast<streamsize>(_Traits::length(__s))); return __out; } template<typename _Traits> inline basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s) { return (__out << reinterpret_cast<const char*>(__s)); } template<typename _Traits> inline basic_ostream<char, _Traits> & operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s) { return (__out << reinterpret_cast<const char*>(__s)); } template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, const wchar_t*) = delete; template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, const char8_t*) = delete; template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete; template<typename _Traits> basic_ostream<char, _Traits>& operator<<(basic_ostream<char, _Traits>&, const char32_t*) = delete; template<typename _Traits> basic_ostream<wchar_t, _Traits>& operator<<(basic_ostream<wchar_t, _Traits>&, const char8_t*) = delete; template<typename _Traits> basic_ostream<wchar_t, _Traits>& operator<<(basic_ostream<wchar_t, _Traits>&, const char16_t*) = delete; template<typename _Traits> basic_ostream<wchar_t, _Traits>& operator<<(basic_ostream<wchar_t, _Traits>&, const char32_t*) = delete; # 733 "/usr/include/c++/13/ostream" 3 template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& endl(basic_ostream<_CharT, _Traits>& __os) { return flush(__os.put(__os.widen('\n'))); } # 745 "/usr/include/c++/13/ostream" 3 template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& ends(basic_ostream<_CharT, _Traits>& __os) { return __os.put(_CharT()); } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& flush(basic_ostream<_CharT, _Traits>& __os) { return __os.flush(); } # 767 "/usr/include/c++/13/ostream" 3 template<typename _Tp> concept __derived_from_ios_base = is_class_v<_Tp> && (!is_same_v<_Tp, ios_base>) && requires (_Tp* __t, ios_base* __b) { __b = __t; }; template<typename _Os, typename _Tp> requires __derived_from_ios_base<_Os> && requires (_Os& __os, const _Tp& __t) { __os << __t; } using __rvalue_stream_insertion_t = _Os&&; # 799 "/usr/include/c++/13/ostream" 3 template<typename _Ostream, typename _Tp> inline __rvalue_stream_insertion_t<_Ostream, _Tp> operator<<(_Ostream&& __os, const _Tp& __x) { __os << __x; return std::move(__os); } template<typename _CharT, typename _Traits> class __syncbuf_base : public basic_streambuf<_CharT, _Traits> { public: static bool* _S_get(basic_streambuf<_CharT, _Traits>* __buf [[maybe_unused]]) noexcept { if (auto __p = dynamic_cast<__syncbuf_base*>(__buf)) return &__p->_M_emit_on_sync; return nullptr; } protected: __syncbuf_base(basic_streambuf<_CharT, _Traits>* __w = nullptr) : _M_wrapped(__w) { } basic_streambuf<_CharT, _Traits>* _M_wrapped = nullptr; bool _M_emit_on_sync = false; bool _M_needs_sync = false; }; template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& emit_on_flush(basic_ostream<_CharT, _Traits>& __os) { if (bool* __flag = __syncbuf_base<_CharT, _Traits>::_S_get(__os.rdbuf())) *__flag = true; return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& noemit_on_flush(basic_ostream<_CharT, _Traits>& __os) { if (bool* __flag = __syncbuf_base<_CharT, _Traits>::_S_get(__os.rdbuf())) *__flag = false; return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& flush_emit(basic_ostream<_CharT, _Traits>& __os) { struct _Restore { ~_Restore() { *_M_flag = _M_prev; } bool _M_prev = false; bool* _M_flag = &_M_prev; } __restore; if (bool* __flag = __syncbuf_base<_CharT, _Traits>::_S_get(__os.rdbuf())) { __restore._M_prev = *__flag; __restore._M_flag = __flag; *__flag = true; } __os.flush(); return __os; } } # 1 "/usr/include/c++/13/bits/ostream.tcc" 1 3 # 37 "/usr/include/c++/13/bits/ostream.tcc" 3 # 38 "/usr/include/c++/13/bits/ostream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>::sentry:: sentry(basic_ostream<_CharT, _Traits>& __os) : _M_ok(false), _M_os(__os) { if (__os.tie() && __os.good()) __os.tie()->flush(); if (__os.good()) _M_ok = true; else if (__os.bad()) __os.setstate(ios_base::failbit); } template<typename _CharT, typename _Traits> template<typename _ValueT> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: _M_insert(_ValueT __v) { sentry __cerb(*this); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __num_put_type& __np = __check_facet(this->_M_num_put); if (__np.put(*this, *this, this->fill(), __v).failed()) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: operator<<(short __n) { const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; if (__fmt == ios_base::oct || __fmt == ios_base::hex) return _M_insert(static_cast<long>(static_cast<unsigned short>(__n))); else return _M_insert(static_cast<long>(__n)); } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: operator<<(int __n) { const ios_base::fmtflags __fmt = this->flags() & ios_base::basefield; if (__fmt == ios_base::oct || __fmt == ios_base::hex) return _M_insert(static_cast<long>(static_cast<unsigned int>(__n))); else return _M_insert(static_cast<long>(__n)); } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: operator<<(__streambuf_type* __sbin) { ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this); if (__cerb && __sbin) { try { if (!__copy_streambufs(__sbin, this->rdbuf())) __err |= ios_base::failbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::failbit); } } else if (!__sbin) __err |= ios_base::badbit; if (__err) this->setstate(__err); return *this; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: put(char_type __c) { sentry __cerb(*this); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __put = this->rdbuf()->sputc(__c); if (traits_type::eq_int_type(__put, traits_type::eof())) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: write(const _CharT* __s, streamsize __n) { sentry __cerb(*this); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { if (this->rdbuf()->sputn(__s, __n) != __n) __err = ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(ios_base::badbit); } return *this; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: flush() { if (__streambuf_type* __buf = this->rdbuf()) { sentry __cerb(*this); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { if (this->rdbuf()->pubsync() == -1) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } } return *this; } template<typename _CharT, typename _Traits> typename basic_ostream<_CharT, _Traits>::pos_type basic_ostream<_CharT, _Traits>:: tellp() { sentry __cerb(*this); pos_type __ret = pos_type(-1); if (!this->fail()) __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::out); return __ret; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: seekp(pos_type __pos) { sentry __cerb(*this); if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::out); if (__p == pos_type(off_type(-1))) this->setstate(ios_base::failbit); } return *this; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& basic_ostream<_CharT, _Traits>:: seekp(off_type __off, ios_base::seekdir __dir) { sentry __cerb(*this); if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, ios_base::out); if (__p == pos_type(off_type(-1))) this->setstate(ios_base::failbit); } return *this; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s) { if (!__s) __out.setstate(ios_base::badbit); else { const size_t __clen = char_traits<char>::length(__s); try { struct __ptr_guard { _CharT *__p; __ptr_guard (_CharT *__ip): __p(__ip) { } ~__ptr_guard() { delete[] __p; } _CharT* __get() { return __p; } } __pg (new _CharT[__clen]); _CharT *__ws = __pg.__get(); for (size_t __i = 0; __i < __clen; ++__i) __ws[__i] = __out.widen(__s[__i]); __ostream_insert(__out, __ws, __clen); } catch(__cxxabiv1::__forced_unwind&) { __out._M_setstate(ios_base::badbit); throw; } catch(...) { __out._M_setstate(ios_base::badbit); } } return __out; } extern template class basic_ostream<char>; extern template ostream& endl(ostream&); extern template ostream& ends(ostream&); extern template ostream& flush(ostream&); extern template ostream& operator<<(ostream&, char); extern template ostream& operator<<(ostream&, unsigned char); extern template ostream& operator<<(ostream&, signed char); extern template ostream& operator<<(ostream&, const char*); extern template ostream& operator<<(ostream&, const unsigned char*); extern template ostream& operator<<(ostream&, const signed char*); extern template ostream& ostream::_M_insert(long); extern template ostream& ostream::_M_insert(unsigned long); extern template ostream& ostream::_M_insert(bool); extern template ostream& ostream::_M_insert(long long); extern template ostream& ostream::_M_insert(unsigned long long); extern template ostream& ostream::_M_insert(double); extern template ostream& ostream::_M_insert(long double); extern template ostream& ostream::_M_insert(const void*); extern template class basic_ostream<wchar_t>; extern template wostream& endl(wostream&); extern template wostream& ends(wostream&); extern template wostream& flush(wostream&); extern template wostream& operator<<(wostream&, wchar_t); extern template wostream& operator<<(wostream&, char); extern template wostream& operator<<(wostream&, const wchar_t*); extern template wostream& operator<<(wostream&, const char*); extern template wostream& wostream::_M_insert(long); extern template wostream& wostream::_M_insert(unsigned long); extern template wostream& wostream::_M_insert(bool); extern template wostream& wostream::_M_insert(long long); extern template wostream& wostream::_M_insert(unsigned long long); extern template wostream& wostream::_M_insert(double); extern template wostream& wostream::_M_insert(long double); extern template wostream& wostream::_M_insert(const void*); } # 881 "/usr/include/c++/13/ostream" 2 3 # 43 "/usr/include/c++/13/bits/unique_ptr.h" 2 3 # 53 "/usr/include/c++/13/bits/unique_ptr.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/13/bits/unique_ptr.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename> class auto_ptr; #pragma GCC diagnostic pop template<typename _Tp> struct default_delete { constexpr default_delete() noexcept = default; template<typename _Up, typename = _Require<is_convertible<_Up*, _Tp*>>> default_delete(const default_delete<_Up>&) noexcept { } void operator()(_Tp* __ptr) const { static_assert(!is_void<_Tp>::value, "can't delete pointer to incomplete type"); static_assert(sizeof(_Tp)>0, "can't delete pointer to incomplete type"); delete __ptr; } }; # 111 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp> struct default_delete<_Tp[]> { public: constexpr default_delete() noexcept = default; # 127 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Up, typename = _Require<is_convertible<_Up(*)[], _Tp(*)[]>>> default_delete(const default_delete<_Up[]>&) noexcept { } template<typename _Up> typename enable_if<is_convertible<_Up(*)[], _Tp(*)[]>::value>::type operator()(_Up* __ptr) const { static_assert(sizeof(_Tp)>0, "can't delete pointer to incomplete type"); delete [] __ptr; } }; template <typename _Tp, typename _Dp> class __uniq_ptr_impl { template <typename _Up, typename _Ep, typename = void> struct _Ptr { using type = _Up*; }; template <typename _Up, typename _Ep> struct _Ptr<_Up, _Ep, __void_t<typename remove_reference<_Ep>::type::pointer>> { using type = typename remove_reference<_Ep>::type::pointer; }; public: using _DeleterConstraint = enable_if< __and_<__not_<is_pointer<_Dp>>, is_default_constructible<_Dp>>::value>; using pointer = typename _Ptr<_Tp, _Dp>::type; static_assert( !is_rvalue_reference<_Dp>::value, "unique_ptr's deleter type must be a function object type" " or an lvalue reference type" ); __uniq_ptr_impl() = default; __uniq_ptr_impl(pointer __p) : _M_t() { _M_ptr() = __p; } template<typename _Del> __uniq_ptr_impl(pointer __p, _Del&& __d) : _M_t(__p, std::forward<_Del>(__d)) { } __uniq_ptr_impl(__uniq_ptr_impl&& __u) noexcept : _M_t(std::move(__u._M_t)) { __u._M_ptr() = nullptr; } __uniq_ptr_impl& operator=(__uniq_ptr_impl&& __u) noexcept { reset(__u.release()); _M_deleter() = std::forward<_Dp>(__u._M_deleter()); return *this; } pointer& _M_ptr() noexcept { return std::get<0>(_M_t); } pointer _M_ptr() const noexcept { return std::get<0>(_M_t); } _Dp& _M_deleter() noexcept { return std::get<1>(_M_t); } const _Dp& _M_deleter() const noexcept { return std::get<1>(_M_t); } void reset(pointer __p) noexcept { const pointer __old_p = _M_ptr(); _M_ptr() = __p; if (__old_p) _M_deleter()(__old_p); } pointer release() noexcept { pointer __p = _M_ptr(); _M_ptr() = nullptr; return __p; } void swap(__uniq_ptr_impl& __rhs) noexcept { using std::swap; swap(this->_M_ptr(), __rhs._M_ptr()); swap(this->_M_deleter(), __rhs._M_deleter()); } private: tuple<pointer, _Dp> _M_t; }; template <typename _Tp, typename _Dp, bool = is_move_constructible<_Dp>::value, bool = is_move_assignable<_Dp>::value> struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp> { using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; __uniq_ptr_data(__uniq_ptr_data&&) = default; __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; }; template <typename _Tp, typename _Dp> struct __uniq_ptr_data<_Tp, _Dp, true, false> : __uniq_ptr_impl<_Tp, _Dp> { using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; __uniq_ptr_data(__uniq_ptr_data&&) = default; __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; }; template <typename _Tp, typename _Dp> struct __uniq_ptr_data<_Tp, _Dp, false, true> : __uniq_ptr_impl<_Tp, _Dp> { using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; __uniq_ptr_data(__uniq_ptr_data&&) = delete; __uniq_ptr_data& operator=(__uniq_ptr_data&&) = default; }; template <typename _Tp, typename _Dp> struct __uniq_ptr_data<_Tp, _Dp, false, false> : __uniq_ptr_impl<_Tp, _Dp> { using __uniq_ptr_impl<_Tp, _Dp>::__uniq_ptr_impl; __uniq_ptr_data(__uniq_ptr_data&&) = delete; __uniq_ptr_data& operator=(__uniq_ptr_data&&) = delete; }; template <typename _Tp, typename _Dp = default_delete<_Tp>> class unique_ptr { template <typename _Up> using _DeleterConstraint = typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; __uniq_ptr_data<_Tp, _Dp> _M_t; public: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; using element_type = _Tp; using deleter_type = _Dp; private: template<typename _Up, typename _Ep> using __safe_conversion_up = __and_< is_convertible<typename unique_ptr<_Up, _Ep>::pointer, pointer>, __not_<is_array<_Up>> >; public: template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>> constexpr unique_ptr() noexcept : _M_t() { } template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>> explicit unique_ptr(pointer __p) noexcept : _M_t(__p) { } # 328 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Del = deleter_type, typename = _Require<is_copy_constructible<_Del>>> unique_ptr(pointer __p, const deleter_type& __d) noexcept : _M_t(__p, __d) { } # 341 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Del = deleter_type, typename = _Require<is_move_constructible<_Del>>> unique_ptr(pointer __p, __enable_if_t<!is_lvalue_reference<_Del>::value, _Del&&> __d) noexcept : _M_t(__p, std::move(__d)) { } template<typename _Del = deleter_type, typename _DelUnref = typename remove_reference<_Del>::type> unique_ptr(pointer, __enable_if_t<is_lvalue_reference<_Del>::value, _DelUnref&&>) = delete; template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>> constexpr unique_ptr(nullptr_t) noexcept : _M_t() { } unique_ptr(unique_ptr&&) = default; template<typename _Up, typename _Ep, typename = _Require< __safe_conversion_up<_Up, _Ep>, __conditional_t<is_reference<_Dp>::value, is_same<_Ep, _Dp>, is_convertible<_Ep, _Dp>>>> unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) { } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Up, typename = _Require< is_convertible<_Up*, _Tp*>, is_same<_Dp, default_delete<_Tp>>>> unique_ptr(auto_ptr<_Up>&& __u) noexcept; #pragma GCC diagnostic pop ~unique_ptr() noexcept { static_assert(__is_invocable<deleter_type&, pointer>::value, "unique_ptr's deleter must be invocable with a pointer"); auto& __ptr = _M_t._M_ptr(); if (__ptr != nullptr) get_deleter()(std::move(__ptr)); __ptr = pointer(); } unique_ptr& operator=(unique_ptr&&) = default; # 423 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Up, typename _Ep> typename enable_if< __and_< __safe_conversion_up<_Up, _Ep>, is_assignable<deleter_type&, _Ep&&> >::value, unique_ptr&>::type operator=(unique_ptr<_Up, _Ep>&& __u) noexcept { reset(__u.release()); get_deleter() = std::forward<_Ep>(__u.get_deleter()); return *this; } unique_ptr& operator=(nullptr_t) noexcept { reset(); return *this; } typename add_lvalue_reference<element_type>::type operator*() const noexcept(noexcept(*std::declval<pointer>())) { do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); return *get(); } pointer operator->() const noexcept { ; return get(); } pointer get() const noexcept { return _M_t._M_ptr(); } deleter_type& get_deleter() noexcept { return _M_t._M_deleter(); } const deleter_type& get_deleter() const noexcept { return _M_t._M_deleter(); } explicit operator bool() const noexcept { return get() == pointer() ? false : true; } pointer release() noexcept { return _M_t.release(); } void reset(pointer __p = pointer()) noexcept { static_assert(__is_invocable<deleter_type&, pointer>::value, "unique_ptr's deleter must be invocable with a pointer"); _M_t.reset(std::move(__p)); } void swap(unique_ptr& __u) noexcept { static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); _M_t.swap(__u._M_t); } unique_ptr(const unique_ptr&) = delete; unique_ptr& operator=(const unique_ptr&) = delete; }; # 534 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp, typename _Dp> class unique_ptr<_Tp[], _Dp> { template <typename _Up> using _DeleterConstraint = typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type; __uniq_ptr_data<_Tp, _Dp> _M_t; template<typename _Up> using __is_derived_Tp = __and_< is_base_of<_Tp, _Up>, __not_<is_same<__remove_cv_t<_Tp>, __remove_cv_t<_Up>>> >; public: using pointer = typename __uniq_ptr_impl<_Tp, _Dp>::pointer; using element_type = _Tp; using deleter_type = _Dp; template<typename _Up, typename _Ep, typename _UPtr = unique_ptr<_Up, _Ep>, typename _UP_pointer = typename _UPtr::pointer, typename _UP_element_type = typename _UPtr::element_type> using __safe_conversion_up = __and_< is_array<_Up>, is_same<pointer, element_type*>, is_same<_UP_pointer, _UP_element_type*>, is_convertible<_UP_element_type(*)[], element_type(*)[]> >; template<typename _Up> using __safe_conversion_raw = __and_< __or_<__or_<is_same<_Up, pointer>, is_same<_Up, nullptr_t>>, __and_<is_pointer<_Up>, is_same<pointer, element_type*>, is_convertible< typename remove_pointer<_Up>::type(*)[], element_type(*)[]> > > >; template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>> constexpr unique_ptr() noexcept : _M_t() { } # 596 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Up, typename _Vp = _Dp, typename = _DeleterConstraint<_Vp>, typename = typename enable_if< __safe_conversion_raw<_Up>::value, bool>::type> explicit unique_ptr(_Up __p) noexcept : _M_t(__p) { } # 615 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Up, typename _Del = deleter_type, typename = _Require<__safe_conversion_raw<_Up>, is_copy_constructible<_Del>>> unique_ptr(_Up __p, const deleter_type& __d) noexcept : _M_t(__p, __d) { } # 630 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Up, typename _Del = deleter_type, typename = _Require<__safe_conversion_raw<_Up>, is_move_constructible<_Del>>> unique_ptr(_Up __p, __enable_if_t<!is_lvalue_reference<_Del>::value, _Del&&> __d) noexcept : _M_t(std::move(__p), std::move(__d)) { } template<typename _Up, typename _Del = deleter_type, typename _DelUnref = typename remove_reference<_Del>::type, typename = _Require<__safe_conversion_raw<_Up>>> unique_ptr(_Up, __enable_if_t<is_lvalue_reference<_Del>::value, _DelUnref&&>) = delete; unique_ptr(unique_ptr&&) = default; template<typename _Del = _Dp, typename = _DeleterConstraint<_Del>> constexpr unique_ptr(nullptr_t) noexcept : _M_t() { } template<typename _Up, typename _Ep, typename = _Require< __safe_conversion_up<_Up, _Ep>, __conditional_t<is_reference<_Dp>::value, is_same<_Ep, _Dp>, is_convertible<_Ep, _Dp>>>> unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept : _M_t(__u.release(), std::forward<_Ep>(__u.get_deleter())) { } ~unique_ptr() { auto& __ptr = _M_t._M_ptr(); if (__ptr != nullptr) get_deleter()(__ptr); __ptr = pointer(); } unique_ptr& operator=(unique_ptr&&) = default; # 694 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Up, typename _Ep> typename enable_if<__and_<__safe_conversion_up<_Up, _Ep>, is_assignable<deleter_type&, _Ep&&> >::value, unique_ptr&>::type operator=(unique_ptr<_Up, _Ep>&& __u) noexcept { reset(__u.release()); get_deleter() = std::forward<_Ep>(__u.get_deleter()); return *this; } unique_ptr& operator=(nullptr_t) noexcept { reset(); return *this; } typename std::add_lvalue_reference<element_type>::type operator[](size_t __i) const { do { if (std::__is_constant_evaluated() && !bool(get() != pointer())) __builtin_unreachable(); } while (false); return get()[__i]; } pointer get() const noexcept { return _M_t._M_ptr(); } deleter_type& get_deleter() noexcept { return _M_t._M_deleter(); } const deleter_type& get_deleter() const noexcept { return _M_t._M_deleter(); } explicit operator bool() const noexcept { return get() == pointer() ? false : true; } pointer release() noexcept { return _M_t.release(); } template <typename _Up, typename = _Require< __or_<is_same<_Up, pointer>, __and_<is_same<pointer, element_type*>, is_pointer<_Up>, is_convertible< typename remove_pointer<_Up>::type(*)[], element_type(*)[] > > > >> void reset(_Up __p) noexcept { _M_t.reset(std::move(__p)); } void reset(nullptr_t = nullptr) noexcept { reset(pointer()); } void swap(unique_ptr& __u) noexcept { static_assert(__is_swappable<_Dp>::value, "deleter must be swappable"); _M_t.swap(__u._M_t); } unique_ptr(const unique_ptr&) = delete; unique_ptr& operator=(const unique_ptr&) = delete; }; template<typename _Tp, typename _Dp> inline typename enable_if<__is_swappable<_Dp>::value>::type swap(unique_ptr<_Tp, _Dp>& __x, unique_ptr<_Tp, _Dp>& __y) noexcept { __x.swap(__y); } template<typename _Tp, typename _Dp> typename enable_if<!__is_swappable<_Dp>::value>::type swap(unique_ptr<_Tp, _Dp>&, unique_ptr<_Tp, _Dp>&) = delete; template<typename _Tp, typename _Dp, typename _Up, typename _Ep> [[__nodiscard__]] inline bool operator==(const unique_ptr<_Tp, _Dp>& __x, const unique_ptr<_Up, _Ep>& __y) { return __x.get() == __y.get(); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator==(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) noexcept { return !__x; } # 873 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp, typename _Dp, typename _Up, typename _Ep> [[__nodiscard__]] inline bool operator<(const unique_ptr<_Tp, _Dp>& __x, const unique_ptr<_Up, _Ep>& __y) { typedef typename std::common_type<typename unique_ptr<_Tp, _Dp>::pointer, typename unique_ptr<_Up, _Ep>::pointer>::type _CT; return std::less<_CT>()(__x.get(), __y.get()); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator<(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(), nullptr); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator<(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr, __x.get()); } template<typename _Tp, typename _Dp, typename _Up, typename _Ep> [[__nodiscard__]] inline bool operator<=(const unique_ptr<_Tp, _Dp>& __x, const unique_ptr<_Up, _Ep>& __y) { return !(__y < __x); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator<=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) { return !(nullptr < __x); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator<=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) { return !(__x < nullptr); } template<typename _Tp, typename _Dp, typename _Up, typename _Ep> [[__nodiscard__]] inline bool operator>(const unique_ptr<_Tp, _Dp>& __x, const unique_ptr<_Up, _Ep>& __y) { return (__y < __x); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(nullptr, __x.get()); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator>(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) { return std::less<typename unique_ptr<_Tp, _Dp>::pointer>()(__x.get(), nullptr); } template<typename _Tp, typename _Dp, typename _Up, typename _Ep> [[__nodiscard__]] inline bool operator>=(const unique_ptr<_Tp, _Dp>& __x, const unique_ptr<_Up, _Ep>& __y) { return !(__x < __y); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator>=(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) { return !(__x < nullptr); } template<typename _Tp, typename _Dp> [[__nodiscard__]] inline bool operator>=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) { return !(nullptr < __x); } template<typename _Tp, typename _Dp, typename _Up, typename _Ep> requires three_way_comparable_with<typename unique_ptr<_Tp, _Dp>::pointer, typename unique_ptr<_Up, _Ep>::pointer> inline compare_three_way_result_t<typename unique_ptr<_Tp, _Dp>::pointer, typename unique_ptr<_Up, _Ep>::pointer> operator<=>(const unique_ptr<_Tp, _Dp>& __x, const unique_ptr<_Up, _Ep>& __y) { return compare_three_way()(__x.get(), __y.get()); } template<typename _Tp, typename _Dp> requires three_way_comparable<typename unique_ptr<_Tp, _Dp>::pointer> inline compare_three_way_result_t<typename unique_ptr<_Tp, _Dp>::pointer> operator<=>(const unique_ptr<_Tp, _Dp>& __x, nullptr_t) { using pointer = typename unique_ptr<_Tp, _Dp>::pointer; return compare_three_way()(__x.get(), static_cast<pointer>(nullptr)); } template<typename _Up, typename _Ptr = typename _Up::pointer, bool = __poison_hash<_Ptr>::__enable_hash_call> struct __uniq_ptr_hash : private __poison_hash<_Ptr> { size_t operator()(const _Up& __u) const noexcept(noexcept(std::declval<hash<_Ptr>>()(std::declval<_Ptr>()))) { return hash<_Ptr>()(__u.get()); } }; template<typename _Up, typename _Ptr> struct __uniq_ptr_hash<_Up, _Ptr, false> : private __poison_hash<_Ptr> { }; template<typename _Tp, typename _Dp> struct hash<unique_ptr<_Tp, _Dp>> : public __hash_base<size_t, unique_ptr<_Tp, _Dp>>, public __uniq_ptr_hash<unique_ptr<_Tp, _Dp>> { }; namespace __detail { template<typename _Tp> struct _MakeUniq { typedef unique_ptr<_Tp> __single_object; }; template<typename _Tp> struct _MakeUniq<_Tp[]> { typedef unique_ptr<_Tp[]> __array; }; template<typename _Tp, size_t _Bound> struct _MakeUniq<_Tp[_Bound]> { struct __invalid_type { }; }; template<typename _Tp> using __unique_ptr_t = typename _MakeUniq<_Tp>::__single_object; template<typename _Tp> using __unique_ptr_array_t = typename _MakeUniq<_Tp>::__array; template<typename _Tp> using __invalid_make_unique_t = typename _MakeUniq<_Tp>::__invalid_type; } # 1066 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp, typename... _Args> inline __detail::__unique_ptr_t<_Tp> make_unique(_Args&&... __args) { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } # 1081 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp> inline __detail::__unique_ptr_array_t<_Tp> make_unique(size_t __num) { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]()); } template<typename _Tp, typename... _Args> __detail::__invalid_make_unique_t<_Tp> make_unique(_Args&&...) = delete; # 1103 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp> inline __detail::__unique_ptr_t<_Tp> make_unique_for_overwrite() { return unique_ptr<_Tp>(new _Tp); } # 1116 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _Tp> inline __detail::__unique_ptr_array_t<_Tp> make_unique_for_overwrite(size_t __num) { return unique_ptr<_Tp>(new remove_extent_t<_Tp>[__num]); } template<typename _Tp, typename... _Args> __detail::__invalid_make_unique_t<_Tp> make_unique_for_overwrite(_Args&&...) = delete; # 1140 "/usr/include/c++/13/bits/unique_ptr.h" 3 template<typename _CharT, typename _Traits, typename _Tp, typename _Dp> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const unique_ptr<_Tp, _Dp>& __p) requires requires { __os << __p.get(); } { __os << __p.get(); return __os; } namespace __detail::__variant { template<typename> struct _Never_valueless_alt; template<typename _Tp, typename _Del> struct _Never_valueless_alt<std::unique_ptr<_Tp, _Del>> : std::true_type { }; } } # 79 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/bits/shared_ptr.h" 1 3 # 53 "/usr/include/c++/13/bits/shared_ptr.h" 3 # 1 "/usr/include/c++/13/bits/shared_ptr_base.h" 1 3 # 53 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 # 1 "/usr/include/c++/13/bits/allocated_ptr.h" 1 3 # 40 "/usr/include/c++/13/bits/allocated_ptr.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Alloc> struct __allocated_ptr { using pointer = typename allocator_traits<_Alloc>::pointer; using value_type = typename allocator_traits<_Alloc>::value_type; __allocated_ptr(_Alloc& __a, pointer __ptr) noexcept : _M_alloc(std::__addressof(__a)), _M_ptr(__ptr) { } template<typename _Ptr, typename _Req = _Require<is_same<_Ptr, value_type*>>> __allocated_ptr(_Alloc& __a, _Ptr __ptr) : _M_alloc(std::__addressof(__a)), _M_ptr(pointer_traits<pointer>::pointer_to(*__ptr)) { } __allocated_ptr(__allocated_ptr&& __gd) noexcept : _M_alloc(__gd._M_alloc), _M_ptr(__gd._M_ptr) { __gd._M_ptr = nullptr; } ~__allocated_ptr() { if (_M_ptr != nullptr) std::allocator_traits<_Alloc>::deallocate(*_M_alloc, _M_ptr, 1); } __allocated_ptr& operator=(std::nullptr_t) noexcept { _M_ptr = nullptr; return *this; } value_type* get() { return std::__to_address(_M_ptr); } private: _Alloc* _M_alloc; pointer _M_ptr; }; template<typename _Alloc> __allocated_ptr<_Alloc> __allocate_guarded(_Alloc& __a) { return { __a, std::allocator_traits<_Alloc>::allocate(__a, 1) }; } } # 54 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 # 1 "/usr/include/c++/13/ext/aligned_buffer.h" 1 3 # 32 "/usr/include/c++/13/ext/aligned_buffer.h" 3 # 33 "/usr/include/c++/13/ext/aligned_buffer.h" 3 namespace __gnu_cxx { template<typename _Tp> struct __aligned_membuf { struct _Tp2 { _Tp _M_t; }; alignas(__alignof__(_Tp2::_M_t)) unsigned char _M_storage[sizeof(_Tp)]; __aligned_membuf() = default; __aligned_membuf(std::nullptr_t) { } void* _M_addr() noexcept { return static_cast<void*>(&_M_storage); } const void* _M_addr() const noexcept { return static_cast<const void*>(&_M_storage); } _Tp* _M_ptr() noexcept { return static_cast<_Tp*>(_M_addr()); } const _Tp* _M_ptr() const noexcept { return static_cast<const _Tp*>(_M_addr()); } }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp> struct __aligned_buffer : std::aligned_storage<sizeof(_Tp), __alignof__(_Tp)> { typename std::aligned_storage<sizeof(_Tp), __alignof__(_Tp)>::type _M_storage; __aligned_buffer() = default; __aligned_buffer(std::nullptr_t) { } void* _M_addr() noexcept { return static_cast<void*>(&_M_storage); } const void* _M_addr() const noexcept { return static_cast<const void*>(&_M_storage); } _Tp* _M_ptr() noexcept { return static_cast<_Tp*>(_M_addr()); } const _Tp* _M_ptr() const noexcept { return static_cast<const _Tp*>(_M_addr()); } }; #pragma GCC diagnostic pop } # 61 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 # 1 "/usr/include/c++/13/ext/concurrence.h" 1 3 # 32 "/usr/include/c++/13/ext/concurrence.h" 3 # 33 "/usr/include/c++/13/ext/concurrence.h" 3 namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { enum _Lock_policy { _S_single, _S_mutex, _S_atomic }; inline const _Lock_policy __default_lock_policy = _S_atomic; class __concurrence_lock_error : public std::exception { public: virtual char const* what() const throw() { return "__gnu_cxx::__concurrence_lock_error"; } }; class __concurrence_unlock_error : public std::exception { public: virtual char const* what() const throw() { return "__gnu_cxx::__concurrence_unlock_error"; } }; class __concurrence_broadcast_error : public std::exception { public: virtual char const* what() const throw() { return "__gnu_cxx::__concurrence_broadcast_error"; } }; class __concurrence_wait_error : public std::exception { public: virtual char const* what() const throw() { return "__gnu_cxx::__concurrence_wait_error"; } }; inline void __throw_concurrence_lock_error() { (throw (__concurrence_lock_error())); } inline void __throw_concurrence_unlock_error() { (throw (__concurrence_unlock_error())); } inline void __throw_concurrence_broadcast_error() { (throw (__concurrence_broadcast_error())); } inline void __throw_concurrence_wait_error() { (throw (__concurrence_wait_error())); } class __mutex { private: __gthread_mutex_t _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, 0, { 0, 0 } } }; __mutex(const __mutex&); __mutex& operator=(const __mutex&); public: __mutex() { } # 144 "/usr/include/c++/13/ext/concurrence.h" 3 void lock() { if (__gthread_active_p()) { if (__gthread_mutex_lock(&_M_mutex) != 0) __throw_concurrence_lock_error(); } } void unlock() { if (__gthread_active_p()) { if (__gthread_mutex_unlock(&_M_mutex) != 0) __throw_concurrence_unlock_error(); } } __gthread_mutex_t* gthread_mutex(void) { return &_M_mutex; } }; class __recursive_mutex { private: __gthread_recursive_mutex_t _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0, { 0, 0 } } }; __recursive_mutex(const __recursive_mutex&); __recursive_mutex& operator=(const __recursive_mutex&); public: __recursive_mutex() { } # 199 "/usr/include/c++/13/ext/concurrence.h" 3 void lock() { if (__gthread_active_p()) { if (__gthread_recursive_mutex_lock(&_M_mutex) != 0) __throw_concurrence_lock_error(); } } void unlock() { if (__gthread_active_p()) { if (__gthread_recursive_mutex_unlock(&_M_mutex) != 0) __throw_concurrence_unlock_error(); } } __gthread_recursive_mutex_t* gthread_recursive_mutex(void) { return &_M_mutex; } }; class __scoped_lock { public: typedef __mutex __mutex_type; private: __mutex_type& _M_device; __scoped_lock(const __scoped_lock&); __scoped_lock& operator=(const __scoped_lock&); public: explicit __scoped_lock(__mutex_type& __name) : _M_device(__name) { _M_device.lock(); } ~__scoped_lock() throw() { _M_device.unlock(); } }; class __cond { private: __gthread_cond_t _M_cond = { { {0}, {0}, {0, 0}, {0, 0}, 0, 0, {0, 0} } }; __cond(const __cond&); __cond& operator=(const __cond&); public: __cond() { } # 277 "/usr/include/c++/13/ext/concurrence.h" 3 void broadcast() { if (__gthread_active_p()) { if (__gthread_cond_broadcast(&_M_cond) != 0) __throw_concurrence_broadcast_error(); } } void wait(__mutex *mutex) { { if (__gthread_cond_wait(&_M_cond, mutex->gthread_mutex()) != 0) __throw_concurrence_wait_error(); } } void wait_recursive(__recursive_mutex *mutex) { { if (__gthread_cond_wait_recursive(&_M_cond, mutex->gthread_recursive_mutex()) != 0) __throw_concurrence_wait_error(); } } }; } # 63 "/usr/include/c++/13/bits/shared_ptr_base.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 75 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename> class auto_ptr; #pragma GCC diagnostic pop class bad_weak_ptr : public std::exception { public: virtual char const* what() const noexcept; virtual ~bad_weak_ptr() noexcept; }; inline void __throw_bad_weak_ptr() { (throw (bad_weak_ptr())); } using __gnu_cxx::_Lock_policy; using __gnu_cxx::__default_lock_policy; using __gnu_cxx::_S_single; using __gnu_cxx::_S_mutex; using __gnu_cxx::_S_atomic; template<_Lock_policy _Lp> class _Mutex_base { protected: enum { _S_need_barriers = 0 }; }; template<> class _Mutex_base<_S_mutex> : public __gnu_cxx::__mutex { protected: enum { _S_need_barriers = 1 }; }; template<_Lock_policy _Lp = __default_lock_policy> class _Sp_counted_base : public _Mutex_base<_Lp> { public: _Sp_counted_base() noexcept : _M_use_count(1), _M_weak_count(1) { } virtual ~_Sp_counted_base() noexcept { } virtual void _M_dispose() noexcept = 0; virtual void _M_destroy() noexcept { delete this; } virtual void* _M_get_deleter(const std::type_info&) noexcept = 0; void _M_add_ref_copy() { __gnu_cxx::__atomic_add_dispatch(&_M_use_count, 1); } void _M_add_ref_lock() { if (!_M_add_ref_lock_nothrow()) __throw_bad_weak_ptr(); } bool _M_add_ref_lock_nothrow() noexcept; void _M_release() noexcept; void _M_release_last_use() noexcept { ; _M_dispose(); if (_Mutex_base<_Lp>::_S_need_barriers) { __atomic_thread_fence (4); } ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) { ; _M_destroy(); } } __attribute__((__noinline__)) void _M_release_last_use_cold() noexcept { _M_release_last_use(); } void _M_weak_add_ref() noexcept { __gnu_cxx::__atomic_add_dispatch(&_M_weak_count, 1); } void _M_weak_release() noexcept { ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_weak_count, -1) == 1) { ; if (_Mutex_base<_Lp>::_S_need_barriers) { __atomic_thread_fence (4); } _M_destroy(); } } long _M_get_use_count() const noexcept { return __atomic_load_n(&_M_use_count, 0); } private: _Sp_counted_base(_Sp_counted_base const&) = delete; _Sp_counted_base& operator=(_Sp_counted_base const&) = delete; _Atomic_word _M_use_count; _Atomic_word _M_weak_count; }; template<> inline bool _Sp_counted_base<_S_single>:: _M_add_ref_lock_nothrow() noexcept { if (_M_use_count == 0) return false; ++_M_use_count; return true; } template<> inline bool _Sp_counted_base<_S_mutex>:: _M_add_ref_lock_nothrow() noexcept { __gnu_cxx::__scoped_lock sentry(*this); if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, 1) == 0) { _M_use_count = 0; return false; } return true; } template<> inline bool _Sp_counted_base<_S_atomic>:: _M_add_ref_lock_nothrow() noexcept { _Atomic_word __count = _M_get_use_count(); do { if (__count == 0) return false; } while (!__atomic_compare_exchange_n(&_M_use_count, &__count, __count + 1, true, 4, 0)); return true; } template<> inline void _Sp_counted_base<_S_single>::_M_add_ref_copy() { ++_M_use_count; } template<> inline void _Sp_counted_base<_S_single>::_M_release() noexcept { if (--_M_use_count == 0) { _M_dispose(); if (--_M_weak_count == 0) _M_destroy(); } } template<> inline void _Sp_counted_base<_S_mutex>::_M_release() noexcept { ; if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) { _M_release_last_use(); } } template<> inline void _Sp_counted_base<_S_atomic>::_M_release() noexcept { ; constexpr bool __lock_free = __atomic_always_lock_free(sizeof(long long), 0) && __atomic_always_lock_free(sizeof(_Atomic_word), 0); constexpr bool __double_word = sizeof(long long) == 2 * sizeof(_Atomic_word); constexpr bool __aligned = __alignof(long long) <= alignof(void*); if constexpr (__lock_free && __double_word && __aligned) { constexpr int __wordbits = 8 * sizeof(_Atomic_word); constexpr int __shiftbits = __double_word ? __wordbits : 0; constexpr long long __unique_ref = 1LL + (1LL << __shiftbits); auto __both_counts = reinterpret_cast<long long*>(&_M_use_count); ; if (__atomic_load_n(__both_counts, 2) == __unique_ref) { _M_weak_count = _M_use_count = 0; ; ; _M_dispose(); _M_destroy(); return; } if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) [[__unlikely__]] { _M_release_last_use_cold(); return; } } else if (__gnu_cxx::__exchange_and_add_dispatch(&_M_use_count, -1) == 1) { _M_release_last_use(); } } template<> inline void _Sp_counted_base<_S_single>::_M_weak_add_ref() noexcept { ++_M_weak_count; } template<> inline void _Sp_counted_base<_S_single>::_M_weak_release() noexcept { if (--_M_weak_count == 0) _M_destroy(); } template<> inline long _Sp_counted_base<_S_single>::_M_get_use_count() const noexcept { return _M_use_count; } template<typename _Tp, _Lock_policy _Lp = __default_lock_policy> class __shared_ptr; template<typename _Tp, _Lock_policy _Lp = __default_lock_policy> class __weak_ptr; template<typename _Tp, _Lock_policy _Lp = __default_lock_policy> class __enable_shared_from_this; template<typename _Tp> class shared_ptr; template<typename _Tp> class weak_ptr; template<typename _Tp> struct owner_less; template<typename _Tp> class enable_shared_from_this; template<_Lock_policy _Lp = __default_lock_policy> class __weak_count; template<_Lock_policy _Lp = __default_lock_policy> class __shared_count; template<typename> class _Sp_atomic; template<typename _Ptr, _Lock_policy _Lp> class _Sp_counted_ptr final : public _Sp_counted_base<_Lp> { public: explicit _Sp_counted_ptr(_Ptr __p) noexcept : _M_ptr(__p) { } virtual void _M_dispose() noexcept { delete _M_ptr; } virtual void _M_destroy() noexcept { delete this; } virtual void* _M_get_deleter(const std::type_info&) noexcept { return nullptr; } _Sp_counted_ptr(const _Sp_counted_ptr&) = delete; _Sp_counted_ptr& operator=(const _Sp_counted_ptr&) = delete; private: _Ptr _M_ptr; }; template<> inline void _Sp_counted_ptr<nullptr_t, _S_single>::_M_dispose() noexcept { } template<> inline void _Sp_counted_ptr<nullptr_t, _S_mutex>::_M_dispose() noexcept { } template<> inline void _Sp_counted_ptr<nullptr_t, _S_atomic>::_M_dispose() noexcept { } template<int _Nm, typename _Tp, bool __use_ebo = !__is_final(_Tp) && __is_empty(_Tp)> struct _Sp_ebo_helper; template<int _Nm, typename _Tp> struct _Sp_ebo_helper<_Nm, _Tp, true> : private _Tp { explicit _Sp_ebo_helper(const _Tp& __tp) : _Tp(__tp) { } explicit _Sp_ebo_helper(_Tp&& __tp) : _Tp(std::move(__tp)) { } static _Tp& _S_get(_Sp_ebo_helper& __eboh) { return static_cast<_Tp&>(__eboh); } }; template<int _Nm, typename _Tp> struct _Sp_ebo_helper<_Nm, _Tp, false> { explicit _Sp_ebo_helper(const _Tp& __tp) : _M_tp(__tp) { } explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { } static _Tp& _S_get(_Sp_ebo_helper& __eboh) { return __eboh._M_tp; } private: _Tp _M_tp; }; template<typename _Ptr, typename _Deleter, typename _Alloc, _Lock_policy _Lp> class _Sp_counted_deleter final : public _Sp_counted_base<_Lp> { class _Impl : _Sp_ebo_helper<0, _Deleter>, _Sp_ebo_helper<1, _Alloc> { typedef _Sp_ebo_helper<0, _Deleter> _Del_base; typedef _Sp_ebo_helper<1, _Alloc> _Alloc_base; public: _Impl(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept : _Del_base(std::move(__d)), _Alloc_base(__a), _M_ptr(__p) { } _Deleter& _M_del() noexcept { return _Del_base::_S_get(*this); } _Alloc& _M_alloc() noexcept { return _Alloc_base::_S_get(*this); } _Ptr _M_ptr; }; public: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_deleter>; _Sp_counted_deleter(_Ptr __p, _Deleter __d) noexcept : _M_impl(__p, std::move(__d), _Alloc()) { } _Sp_counted_deleter(_Ptr __p, _Deleter __d, const _Alloc& __a) noexcept : _M_impl(__p, std::move(__d), __a) { } ~_Sp_counted_deleter() noexcept { } virtual void _M_dispose() noexcept { _M_impl._M_del()(_M_impl._M_ptr); } virtual void _M_destroy() noexcept { __allocator_type __a(_M_impl._M_alloc()); __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; this->~_Sp_counted_deleter(); } virtual void* _M_get_deleter(const type_info& __ti [[__gnu__::__unused__]]) noexcept { return __ti == typeid(_Deleter) ? std::__addressof(_M_impl._M_del()) : nullptr; } private: _Impl _M_impl; }; struct _Sp_make_shared_tag { private: template<typename _Tp, typename _Alloc, _Lock_policy _Lp> friend class _Sp_counted_ptr_inplace; static const type_info& _S_ti() noexcept __attribute__ ((__visibility__ ("default"))) { alignas(type_info) static constexpr char __tag[sizeof(type_info)] = { }; return reinterpret_cast<const type_info&>(__tag); } static bool _S_eq(const type_info&) noexcept; }; template<typename _Alloc> struct _Sp_alloc_shared_tag { const _Alloc& _M_a; }; template<typename _Tp, typename _Alloc, _Lock_policy _Lp> class _Sp_counted_ptr_inplace final : public _Sp_counted_base<_Lp> { class _Impl : _Sp_ebo_helper<0, _Alloc> { typedef _Sp_ebo_helper<0, _Alloc> _A_base; public: explicit _Impl(_Alloc __a) noexcept : _A_base(__a) { } _Alloc& _M_alloc() noexcept { return _A_base::_S_get(*this); } __gnu_cxx::__aligned_buffer<_Tp> _M_storage; }; public: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; template<typename... _Args> _Sp_counted_ptr_inplace(_Alloc __a, _Args&&... __args) : _M_impl(__a) { allocator_traits<_Alloc>::construct(__a, _M_ptr(), std::forward<_Args>(__args)...); } ~_Sp_counted_ptr_inplace() noexcept { } virtual void _M_dispose() noexcept { allocator_traits<_Alloc>::destroy(_M_impl._M_alloc(), _M_ptr()); } virtual void _M_destroy() noexcept { __allocator_type __a(_M_impl._M_alloc()); __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; this->~_Sp_counted_ptr_inplace(); } private: friend class __shared_count<_Lp>; virtual void* _M_get_deleter(const std::type_info& __ti) noexcept override { auto __ptr = const_cast<typename remove_cv<_Tp>::type*>(_M_ptr()); if (&__ti == &_Sp_make_shared_tag::_S_ti() || __ti == typeid(_Sp_make_shared_tag) ) return __ptr; return nullptr; } _Tp* _M_ptr() noexcept { return _M_impl._M_storage._M_ptr(); } _Impl _M_impl; }; struct _Sp_overwrite_tag { }; template<typename _Tp, typename _Alloc, _Lock_policy _Lp> requires is_same_v<typename _Alloc::value_type, _Sp_overwrite_tag> class _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> final : public _Sp_counted_base<_Lp> { [[no_unique_address]] _Alloc _M_alloc; union { _Tp _M_obj; char _M_unused; }; friend class __shared_count<_Lp>; _Tp* _M_ptr() noexcept { return std::__addressof(_M_obj); } public: using __allocator_type = __alloc_rebind<_Alloc, _Sp_counted_ptr_inplace>; _Sp_counted_ptr_inplace(const _Alloc& __a) : _M_alloc(__a) { ::new((void*)_M_ptr()) _Tp; } ~_Sp_counted_ptr_inplace() noexcept { } virtual void _M_dispose() noexcept { _M_obj.~_Tp(); } virtual void _M_destroy() noexcept { using pointer = typename allocator_traits<__allocator_type>::pointer; __allocator_type __a(_M_alloc); auto __p = pointer_traits<pointer>::pointer_to(*this); __allocated_ptr<__allocator_type> __guard_ptr{ __a, __p }; this->~_Sp_counted_ptr_inplace(); } void* _M_get_deleter(const std::type_info&) noexcept override { return nullptr; } }; struct _Sp_overwrite_tag; template<typename _Alloc> struct _Sp_counted_array_base { [[no_unique_address]] _Alloc _M_alloc{}; size_t _M_n = 0; bool _M_overwrite = false; typename allocator_traits<_Alloc>::pointer _M_alloc_array(size_t __tail) { return allocator_traits<_Alloc>::allocate(_M_alloc, _M_n + __tail); } void _M_dealloc_array(typename allocator_traits<_Alloc>::pointer __p, size_t __tail) { allocator_traits<_Alloc>::deallocate(_M_alloc, __p, _M_n + __tail); } template<typename _Init> void _M_init(typename allocator_traits<_Alloc>::value_type* __p, _Init __init) { using _Tp = remove_pointer_t<_Init>; using _Up = typename allocator_traits<_Alloc>::value_type; if constexpr (is_same_v<_Init, _Sp_overwrite_tag>) { std::uninitialized_default_construct_n(__p, _M_n); _M_overwrite = true; } else if (__init == nullptr) std::__uninitialized_default_n_a(__p, _M_n, _M_alloc); else if constexpr (!is_array_v<_Tp>) std::__uninitialized_fill_n_a(__p, _M_n, *__init, _M_alloc); else { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-local-typedefs" struct _Iter { using value_type = _Up; using difference_type = ptrdiff_t; using pointer = const _Up*; using reference = const _Up&; using iterator_category = forward_iterator_tag; const _Up* _M_p; size_t _M_len; size_t _M_pos; _Iter& operator++() { ++_M_pos; return *this; } _Iter operator++(int) { auto __i(*this); ++_M_pos; return __i; } reference operator*() const { return _M_p[_M_pos % _M_len]; } pointer operator->() const { return _M_p + (_M_pos % _M_len); } bool operator==(const _Iter& __i) const { return _M_pos == __i._M_pos; } }; #pragma GCC diagnostic pop _Iter __first{_S_first_elem(__init), sizeof(_Tp) / sizeof(_Up)}; _Iter __last = __first; __last._M_pos = _M_n; std::__uninitialized_copy_a(__first, __last, __p, _M_alloc); } } protected: void _M_dispose_array(typename allocator_traits<_Alloc>::value_type* __p) { if (_M_overwrite) std::destroy_n(__p, _M_n); else { size_t __n = _M_n; while (__n--) allocator_traits<_Alloc>::destroy(_M_alloc, __p + __n); } } private: template<typename _Tp> static _Tp* _S_first_elem(_Tp* __p) { return __p; } template<typename _Tp, size_t _Nm> static auto _S_first_elem(_Tp (*__p)[_Nm]) { return _S_first_elem(*__p); } }; template<typename _Alloc, _Lock_policy _Lp> class _Sp_counted_array final : public _Sp_counted_base<_Lp>, _Sp_counted_array_base<_Alloc> { using pointer = typename allocator_traits<_Alloc>::pointer; pointer _M_alloc_ptr; auto _M_ptr() const noexcept { return std::to_address(_M_alloc_ptr); } friend class __shared_count<_Lp>; public: _Sp_counted_array(const _Sp_counted_array_base<_Alloc>& __a, pointer __p) noexcept : _Sp_counted_array_base<_Alloc>(__a), _M_alloc_ptr(__p) { } ~_Sp_counted_array() = default; virtual void _M_dispose() noexcept { if (this->_M_n) this->_M_dispose_array(_M_ptr()); } virtual void _M_destroy() noexcept { _Sp_counted_array_base<_Alloc> __a = *this; pointer __p = _M_alloc_ptr; this->~_Sp_counted_array(); __a._M_dealloc_array(__p, _S_tail()); } static constexpr size_t _S_tail() { using _Tp = typename allocator_traits<_Alloc>::value_type; size_t __bytes = sizeof(_Sp_counted_array); if constexpr (alignof(_Tp) < alignof(_Sp_counted_array)) __bytes += alignof(_Sp_counted_array) - alignof(_Tp); return (__bytes + sizeof(_Tp) - 1) / sizeof(_Tp); } void* _M_get_deleter(const std::type_info&) noexcept override { return nullptr; } }; struct __sp_array_delete { template<typename _Yp> void operator()(_Yp* __p) const { delete[] __p; } }; template<_Lock_policy _Lp> class __shared_count { template<typename _Tp> struct __not_alloc_shared_tag { using type = void; }; template<typename _Tp> struct __not_alloc_shared_tag<_Sp_alloc_shared_tag<_Tp>> { }; template<typename _Alloc> struct __not_alloc_shared_tag<_Sp_counted_array_base<_Alloc>> { }; public: constexpr __shared_count() noexcept : _M_pi(0) { } template<typename _Ptr> explicit __shared_count(_Ptr __p) : _M_pi(0) { try { _M_pi = new _Sp_counted_ptr<_Ptr, _Lp>(__p); } catch(...) { delete __p; throw; } } template<typename _Ptr> __shared_count(_Ptr __p, false_type) : __shared_count(__p) { } template<typename _Ptr> __shared_count(_Ptr __p, true_type) : __shared_count(__p, __sp_array_delete{}, allocator<void>()) { } template<typename _Ptr, typename _Deleter, typename = typename __not_alloc_shared_tag<_Deleter>::type> __shared_count(_Ptr __p, _Deleter __d) : __shared_count(__p, std::move(__d), allocator<void>()) { } template<typename _Ptr, typename _Deleter, typename _Alloc, typename = typename __not_alloc_shared_tag<_Deleter>::type> __shared_count(_Ptr __p, _Deleter __d, _Alloc __a) : _M_pi(0) { typedef _Sp_counted_deleter<_Ptr, _Deleter, _Alloc, _Lp> _Sp_cd_type; try { typename _Sp_cd_type::__allocator_type __a2(__a); auto __guard = std::__allocate_guarded(__a2); _Sp_cd_type* __mem = __guard.get(); ::new (__mem) _Sp_cd_type(__p, std::move(__d), std::move(__a)); _M_pi = __mem; __guard = nullptr; } catch(...) { __d(__p); throw; } } template<typename _Tp, typename _Alloc, typename... _Args> __shared_count(_Tp*& __p, _Sp_alloc_shared_tag<_Alloc> __a, _Args&&... __args) { typedef _Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp> _Sp_cp_type; typename _Sp_cp_type::__allocator_type __a2(__a._M_a); auto __guard = std::__allocate_guarded(__a2); _Sp_cp_type* __mem = __guard.get(); auto __pi = ::new (__mem) _Sp_cp_type(__a._M_a, std::forward<_Args>(__args)...); __guard = nullptr; _M_pi = __pi; __p = __pi->_M_ptr(); } template<typename _Tp, typename _Alloc, typename _Init> __shared_count(_Tp*& __p, const _Sp_counted_array_base<_Alloc>& __a, _Init __init) { using _Up = remove_all_extents_t<_Tp>; static_assert(is_same_v<_Up, typename _Alloc::value_type>); using _Sp_ca_type = _Sp_counted_array<_Alloc, _Lp>; const size_t __tail = _Sp_ca_type::_S_tail(); struct _Guarded_ptr : _Sp_counted_array_base<_Alloc> { typename allocator_traits<_Alloc>::pointer _M_ptr; _Guarded_ptr(_Sp_counted_array_base<_Alloc> __a) : _Sp_counted_array_base<_Alloc>(__a), _M_ptr(this->_M_alloc_array(_Sp_ca_type::_S_tail())) { } ~_Guarded_ptr() { if (_M_ptr) this->_M_dealloc_array(_M_ptr, _Sp_ca_type::_S_tail()); } }; _Guarded_ptr __guard{__a}; _Up* const __raw = std::to_address(__guard._M_ptr); __guard._M_init(__raw, __init); void* __c = __raw + __a._M_n; if constexpr (alignof(_Up) < alignof(_Sp_ca_type)) { size_t __space = sizeof(_Up) * __tail; __c = std::align(alignof(_Sp_ca_type), sizeof(_Sp_ca_type), __c, __space); } auto __pi = ::new(__c) _Sp_ca_type(__guard, __guard._M_ptr); __guard._M_ptr = nullptr; _M_pi = __pi; __p = reinterpret_cast<_Tp*>(__raw); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp> explicit __shared_count(std::auto_ptr<_Tp>&& __r); #pragma GCC diagnostic pop template<typename _Tp, typename _Del> explicit __shared_count(std::unique_ptr<_Tp, _Del>&& __r) : _M_pi(0) { if (__r.get() == nullptr) return; using _Ptr = typename unique_ptr<_Tp, _Del>::pointer; using _Del2 = __conditional_t<is_reference<_Del>::value, reference_wrapper<typename remove_reference<_Del>::type>, _Del>; using _Sp_cd_type = _Sp_counted_deleter<_Ptr, _Del2, allocator<void>, _Lp>; using _Alloc = allocator<_Sp_cd_type>; using _Alloc_traits = allocator_traits<_Alloc>; _Alloc __a; _Sp_cd_type* __mem = _Alloc_traits::allocate(__a, 1); _Alloc_traits::construct(__a, __mem, __r.release(), std::forward<_Del>(__r.get_deleter())); _M_pi = __mem; } explicit __shared_count(const __weak_count<_Lp>& __r); explicit __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept; ~__shared_count() noexcept { if (_M_pi != nullptr) _M_pi->_M_release(); } __shared_count(const __shared_count& __r) noexcept : _M_pi(__r._M_pi) { if (_M_pi != nullptr) _M_pi->_M_add_ref_copy(); } __shared_count& operator=(const __shared_count& __r) noexcept { _Sp_counted_base<_Lp>* __tmp = __r._M_pi; if (__tmp != _M_pi) { if (__tmp != nullptr) __tmp->_M_add_ref_copy(); if (_M_pi != nullptr) _M_pi->_M_release(); _M_pi = __tmp; } return *this; } void _M_swap(__shared_count& __r) noexcept { _Sp_counted_base<_Lp>* __tmp = __r._M_pi; __r._M_pi = _M_pi; _M_pi = __tmp; } long _M_get_use_count() const noexcept { return _M_pi ? _M_pi->_M_get_use_count() : 0; } bool _M_unique() const noexcept { return this->_M_get_use_count() == 1; } void* _M_get_deleter(const std::type_info& __ti) const noexcept { return _M_pi ? _M_pi->_M_get_deleter(__ti) : nullptr; } bool _M_less(const __shared_count& __rhs) const noexcept { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } bool _M_less(const __weak_count<_Lp>& __rhs) const noexcept { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } friend inline bool operator==(const __shared_count& __a, const __shared_count& __b) noexcept { return __a._M_pi == __b._M_pi; } private: friend class __weak_count<_Lp>; template<typename> friend class _Sp_atomic; _Sp_counted_base<_Lp>* _M_pi; }; template<_Lock_policy _Lp> class __weak_count { public: constexpr __weak_count() noexcept : _M_pi(nullptr) { } __weak_count(const __shared_count<_Lp>& __r) noexcept : _M_pi(__r._M_pi) { if (_M_pi != nullptr) _M_pi->_M_weak_add_ref(); } __weak_count(const __weak_count& __r) noexcept : _M_pi(__r._M_pi) { if (_M_pi != nullptr) _M_pi->_M_weak_add_ref(); } __weak_count(__weak_count&& __r) noexcept : _M_pi(__r._M_pi) { __r._M_pi = nullptr; } ~__weak_count() noexcept { if (_M_pi != nullptr) _M_pi->_M_weak_release(); } __weak_count& operator=(const __shared_count<_Lp>& __r) noexcept { _Sp_counted_base<_Lp>* __tmp = __r._M_pi; if (__tmp != nullptr) __tmp->_M_weak_add_ref(); if (_M_pi != nullptr) _M_pi->_M_weak_release(); _M_pi = __tmp; return *this; } __weak_count& operator=(const __weak_count& __r) noexcept { _Sp_counted_base<_Lp>* __tmp = __r._M_pi; if (__tmp != nullptr) __tmp->_M_weak_add_ref(); if (_M_pi != nullptr) _M_pi->_M_weak_release(); _M_pi = __tmp; return *this; } __weak_count& operator=(__weak_count&& __r) noexcept { if (_M_pi != nullptr) _M_pi->_M_weak_release(); _M_pi = __r._M_pi; __r._M_pi = nullptr; return *this; } void _M_swap(__weak_count& __r) noexcept { _Sp_counted_base<_Lp>* __tmp = __r._M_pi; __r._M_pi = _M_pi; _M_pi = __tmp; } long _M_get_use_count() const noexcept { return _M_pi != nullptr ? _M_pi->_M_get_use_count() : 0; } bool _M_less(const __weak_count& __rhs) const noexcept { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } bool _M_less(const __shared_count<_Lp>& __rhs) const noexcept { return std::less<_Sp_counted_base<_Lp>*>()(this->_M_pi, __rhs._M_pi); } friend inline bool operator==(const __weak_count& __a, const __weak_count& __b) noexcept { return __a._M_pi == __b._M_pi; } private: friend class __shared_count<_Lp>; template<typename> friend class _Sp_atomic; _Sp_counted_base<_Lp>* _M_pi; }; template<_Lock_policy _Lp> inline __shared_count<_Lp>::__shared_count(const __weak_count<_Lp>& __r) : _M_pi(__r._M_pi) { if (_M_pi == nullptr || !_M_pi->_M_add_ref_lock_nothrow()) __throw_bad_weak_ptr(); } template<_Lock_policy _Lp> inline __shared_count<_Lp>:: __shared_count(const __weak_count<_Lp>& __r, std::nothrow_t) noexcept : _M_pi(__r._M_pi) { if (_M_pi && !_M_pi->_M_add_ref_lock_nothrow()) _M_pi = nullptr; } template<typename _Yp_ptr, typename _Tp_ptr> struct __sp_compatible_with : false_type { }; template<typename _Yp, typename _Tp> struct __sp_compatible_with<_Yp*, _Tp*> : is_convertible<_Yp*, _Tp*>::type { }; template<typename _Up, size_t _Nm> struct __sp_compatible_with<_Up(*)[_Nm], _Up(*)[]> : true_type { }; template<typename _Up, size_t _Nm> struct __sp_compatible_with<_Up(*)[_Nm], const _Up(*)[]> : true_type { }; template<typename _Up, size_t _Nm> struct __sp_compatible_with<_Up(*)[_Nm], volatile _Up(*)[]> : true_type { }; template<typename _Up, size_t _Nm> struct __sp_compatible_with<_Up(*)[_Nm], const volatile _Up(*)[]> : true_type { }; template<typename _Up, size_t _Nm, typename _Yp, typename = void> struct __sp_is_constructible_arrN : false_type { }; template<typename _Up, size_t _Nm, typename _Yp> struct __sp_is_constructible_arrN<_Up, _Nm, _Yp, __void_t<_Yp[_Nm]>> : is_convertible<_Yp(*)[_Nm], _Up(*)[_Nm]>::type { }; template<typename _Up, typename _Yp, typename = void> struct __sp_is_constructible_arr : false_type { }; template<typename _Up, typename _Yp> struct __sp_is_constructible_arr<_Up, _Yp, __void_t<_Yp[]>> : is_convertible<_Yp(*)[], _Up(*)[]>::type { }; template<typename _Tp, typename _Yp> struct __sp_is_constructible; template<typename _Up, size_t _Nm, typename _Yp> struct __sp_is_constructible<_Up[_Nm], _Yp> : __sp_is_constructible_arrN<_Up, _Nm, _Yp>::type { }; template<typename _Up, typename _Yp> struct __sp_is_constructible<_Up[], _Yp> : __sp_is_constructible_arr<_Up, _Yp>::type { }; template<typename _Tp, typename _Yp> struct __sp_is_constructible : is_convertible<_Yp*, _Tp*>::type { }; template<typename _Tp, _Lock_policy _Lp, bool = is_array<_Tp>::value, bool = is_void<_Tp>::value> class __shared_ptr_access { public: using element_type = _Tp; element_type& operator*() const noexcept { do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); return *_M_get(); } element_type* operator->() const noexcept { ; return _M_get(); } private: element_type* _M_get() const noexcept { return static_cast<const __shared_ptr<_Tp, _Lp>*>(this)->get(); } }; template<typename _Tp, _Lock_policy _Lp> class __shared_ptr_access<_Tp, _Lp, false, true> { public: using element_type = _Tp; element_type* operator->() const noexcept { auto __ptr = static_cast<const __shared_ptr<_Tp, _Lp>*>(this)->get(); ; return __ptr; } }; template<typename _Tp, _Lock_policy _Lp> class __shared_ptr_access<_Tp, _Lp, true, false> { public: using element_type = typename remove_extent<_Tp>::type; # 1407 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 element_type& operator[](ptrdiff_t __i) const noexcept { do { if (std::__is_constant_evaluated() && !bool(_M_get() != nullptr)) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(!extent<_Tp>::value || __i < extent<_Tp>::value)) __builtin_unreachable(); } while (false); return _M_get()[__i]; } private: element_type* _M_get() const noexcept { return static_cast<const __shared_ptr<_Tp, _Lp>*>(this)->get(); } }; template<typename _Tp, _Lock_policy _Lp> class __shared_ptr : public __shared_ptr_access<_Tp, _Lp> { public: using element_type = typename remove_extent<_Tp>::type; private: template<typename _Yp> using _SafeConv = typename enable_if<__sp_is_constructible<_Tp, _Yp>::value>::type; template<typename _Yp, typename _Res = void> using _Compatible = typename enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; template<typename _Yp> using _Assignable = _Compatible<_Yp, __shared_ptr&>; template<typename _Yp, typename _Del, typename _Res = void, typename _Ptr = typename unique_ptr<_Yp, _Del>::pointer> using _UniqCompatible = __enable_if_t<__and_< __sp_compatible_with<_Yp*, _Tp*>, is_convertible<_Ptr, element_type*>, is_move_constructible<_Del> >::value, _Res>; template<typename _Yp, typename _Del> using _UniqAssignable = _UniqCompatible<_Yp, _Del, __shared_ptr&>; public: using weak_type = __weak_ptr<_Tp, _Lp>; constexpr __shared_ptr() noexcept : _M_ptr(0), _M_refcount() { } template<typename _Yp, typename = _SafeConv<_Yp>> explicit __shared_ptr(_Yp* __p) : _M_ptr(__p), _M_refcount(__p, typename is_array<_Tp>::type()) { static_assert( !is_void<_Yp>::value, "incomplete type" ); static_assert( sizeof(_Yp) > 0, "incomplete type" ); _M_enable_shared_from_this_with(__p); } template<typename _Yp, typename _Deleter, typename = _SafeConv<_Yp>> __shared_ptr(_Yp* __p, _Deleter __d) : _M_ptr(__p), _M_refcount(__p, std::move(__d)) { static_assert(__is_invocable<_Deleter&, _Yp*&>::value, "deleter expression d(p) is well-formed"); _M_enable_shared_from_this_with(__p); } template<typename _Yp, typename _Deleter, typename _Alloc, typename = _SafeConv<_Yp>> __shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) : _M_ptr(__p), _M_refcount(__p, std::move(__d), std::move(__a)) { static_assert(__is_invocable<_Deleter&, _Yp*&>::value, "deleter expression d(p) is well-formed"); _M_enable_shared_from_this_with(__p); } template<typename _Deleter> __shared_ptr(nullptr_t __p, _Deleter __d) : _M_ptr(0), _M_refcount(__p, std::move(__d)) { } template<typename _Deleter, typename _Alloc> __shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) : _M_ptr(0), _M_refcount(__p, std::move(__d), std::move(__a)) { } template<typename _Yp> __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r, element_type* __p) noexcept : _M_ptr(__p), _M_refcount(__r._M_refcount) { } template<typename _Yp> __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r, element_type* __p) noexcept : _M_ptr(__p), _M_refcount() { _M_refcount._M_swap(__r._M_refcount); __r._M_ptr = nullptr; } __shared_ptr(const __shared_ptr&) noexcept = default; __shared_ptr& operator=(const __shared_ptr&) noexcept = default; ~__shared_ptr() = default; template<typename _Yp, typename = _Compatible<_Yp>> __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) { } __shared_ptr(__shared_ptr&& __r) noexcept : _M_ptr(__r._M_ptr), _M_refcount() { _M_refcount._M_swap(__r._M_refcount); __r._M_ptr = nullptr; } template<typename _Yp, typename = _Compatible<_Yp>> __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept : _M_ptr(__r._M_ptr), _M_refcount() { _M_refcount._M_swap(__r._M_refcount); __r._M_ptr = nullptr; } template<typename _Yp, typename = _Compatible<_Yp>> explicit __shared_ptr(const __weak_ptr<_Yp, _Lp>& __r) : _M_refcount(__r._M_refcount) { _M_ptr = __r._M_ptr; } template<typename _Yp, typename _Del, typename = _UniqCompatible<_Yp, _Del>> __shared_ptr(unique_ptr<_Yp, _Del>&& __r) : _M_ptr(__r.get()), _M_refcount() { auto __raw = __to_address(__r.get()); _M_refcount = __shared_count<_Lp>(std::move(__r)); _M_enable_shared_from_this_with(__raw); } # 1585 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Yp, typename = _Compatible<_Yp>> __shared_ptr(auto_ptr<_Yp>&& __r); #pragma GCC diagnostic pop constexpr __shared_ptr(nullptr_t) noexcept : __shared_ptr() { } template<typename _Yp> _Assignable<_Yp> operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept { _M_ptr = __r._M_ptr; _M_refcount = __r._M_refcount; return *this; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Yp> _Assignable<_Yp> operator=(auto_ptr<_Yp>&& __r) { __shared_ptr(std::move(__r)).swap(*this); return *this; } #pragma GCC diagnostic pop __shared_ptr& operator=(__shared_ptr&& __r) noexcept { __shared_ptr(std::move(__r)).swap(*this); return *this; } template<class _Yp> _Assignable<_Yp> operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept { __shared_ptr(std::move(__r)).swap(*this); return *this; } template<typename _Yp, typename _Del> _UniqAssignable<_Yp, _Del> operator=(unique_ptr<_Yp, _Del>&& __r) { __shared_ptr(std::move(__r)).swap(*this); return *this; } void reset() noexcept { __shared_ptr().swap(*this); } template<typename _Yp> _SafeConv<_Yp> reset(_Yp* __p) { do { if (std::__is_constant_evaluated() && !bool(__p == nullptr || __p != _M_ptr)) __builtin_unreachable(); } while (false); __shared_ptr(__p).swap(*this); } template<typename _Yp, typename _Deleter> _SafeConv<_Yp> reset(_Yp* __p, _Deleter __d) { __shared_ptr(__p, std::move(__d)).swap(*this); } template<typename _Yp, typename _Deleter, typename _Alloc> _SafeConv<_Yp> reset(_Yp* __p, _Deleter __d, _Alloc __a) { __shared_ptr(__p, std::move(__d), std::move(__a)).swap(*this); } element_type* get() const noexcept { return _M_ptr; } explicit operator bool() const noexcept { return _M_ptr != nullptr; } bool unique() const noexcept { return _M_refcount._M_unique(); } long use_count() const noexcept { return _M_refcount._M_get_use_count(); } void swap(__shared_ptr<_Tp, _Lp>& __other) noexcept { std::swap(_M_ptr, __other._M_ptr); _M_refcount._M_swap(__other._M_refcount); } # 1697 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 template<typename _Tp1> bool owner_before(__shared_ptr<_Tp1, _Lp> const& __rhs) const noexcept { return _M_refcount._M_less(__rhs._M_refcount); } template<typename _Tp1> bool owner_before(__weak_ptr<_Tp1, _Lp> const& __rhs) const noexcept { return _M_refcount._M_less(__rhs._M_refcount); } protected: template<typename _Alloc, typename... _Args> __shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) : _M_ptr(), _M_refcount(_M_ptr, __tag, std::forward<_Args>(__args)...) { _M_enable_shared_from_this_with(_M_ptr); } template<typename _Tp1, _Lock_policy _Lp1, typename _Alloc, typename... _Args> friend __shared_ptr<_Tp1, _Lp1> __allocate_shared(const _Alloc& __a, _Args&&... __args); template<typename _Alloc, typename _Init = const remove_extent_t<_Tp>*> __shared_ptr(const _Sp_counted_array_base<_Alloc>& __a, _Init __init = nullptr) : _M_ptr(), _M_refcount(_M_ptr, __a, __init) { } __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) noexcept : _M_refcount(__r._M_refcount, std::nothrow) { _M_ptr = _M_refcount._M_get_use_count() ? __r._M_ptr : nullptr; } friend class __weak_ptr<_Tp, _Lp>; private: template<typename _Yp> using __esft_base_t = decltype(__enable_shared_from_this_base( std::declval<const __shared_count<_Lp>&>(), std::declval<_Yp*>())); template<typename _Yp, typename = void> struct __has_esft_base : false_type { }; template<typename _Yp> struct __has_esft_base<_Yp, __void_t<__esft_base_t<_Yp>>> : __not_<is_array<_Tp>> { }; template<typename _Yp, typename _Yp2 = typename remove_cv<_Yp>::type> typename enable_if<__has_esft_base<_Yp2>::value>::type _M_enable_shared_from_this_with(_Yp* __p) noexcept { if (auto __base = __enable_shared_from_this_base(_M_refcount, __p)) __base->_M_weak_assign(const_cast<_Yp2*>(__p), _M_refcount); } template<typename _Yp, typename _Yp2 = typename remove_cv<_Yp>::type> typename enable_if<!__has_esft_base<_Yp2>::value>::type _M_enable_shared_from_this_with(_Yp*) noexcept { } void* _M_get_deleter(const std::type_info& __ti) const noexcept { return _M_refcount._M_get_deleter(__ti); } template<typename _Tp1, _Lock_policy _Lp1> friend class __shared_ptr; template<typename _Tp1, _Lock_policy _Lp1> friend class __weak_ptr; template<typename _Del, typename _Tp1, _Lock_policy _Lp1> friend _Del* get_deleter(const __shared_ptr<_Tp1, _Lp1>&) noexcept; template<typename _Del, typename _Tp1> friend _Del* get_deleter(const shared_ptr<_Tp1>&) noexcept; friend _Sp_atomic<shared_ptr<_Tp>>; element_type* _M_ptr; __shared_count<_Lp> _M_refcount; }; template<typename _Tp1, typename _Tp2, _Lock_policy _Lp> inline bool operator==(const __shared_ptr<_Tp1, _Lp>& __a, const __shared_ptr<_Tp2, _Lp>& __b) noexcept { return __a.get() == __b.get(); } template<typename _Tp, _Lock_policy _Lp> inline bool operator==(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept { return !__a; } template<typename _Tp, typename _Up, _Lock_policy _Lp> inline strong_ordering operator<=>(const __shared_ptr<_Tp, _Lp>& __a, const __shared_ptr<_Up, _Lp>& __b) noexcept { return compare_three_way()(__a.get(), __b.get()); } template<typename _Tp, _Lock_policy _Lp> inline strong_ordering operator<=>(const __shared_ptr<_Tp, _Lp>& __a, nullptr_t) noexcept { using pointer = typename __shared_ptr<_Tp, _Lp>::element_type*; return compare_three_way()(__a.get(), static_cast<pointer>(nullptr)); } # 1915 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 template<typename _Tp, _Lock_policy _Lp> inline void swap(__shared_ptr<_Tp, _Lp>& __a, __shared_ptr<_Tp, _Lp>& __b) noexcept { __a.swap(__b); } # 1927 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 template<typename _Tp, typename _Tp1, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> static_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept { using _Sp = __shared_ptr<_Tp, _Lp>; return _Sp(__r, static_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Tp1, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> const_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept { using _Sp = __shared_ptr<_Tp, _Lp>; return _Sp(__r, const_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Tp1, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> dynamic_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept { using _Sp = __shared_ptr<_Tp, _Lp>; if (auto* __p = dynamic_cast<typename _Sp::element_type*>(__r.get())) return _Sp(__r, __p); return _Sp(); } template<typename _Tp, typename _Tp1, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> reinterpret_pointer_cast(const __shared_ptr<_Tp1, _Lp>& __r) noexcept { using _Sp = __shared_ptr<_Tp, _Lp>; return _Sp(__r, reinterpret_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, _Lock_policy _Lp> class __weak_ptr { template<typename _Yp, typename _Res = void> using _Compatible = typename enable_if<__sp_compatible_with<_Yp*, _Tp*>::value, _Res>::type; template<typename _Yp> using _Assignable = _Compatible<_Yp, __weak_ptr&>; public: using element_type = typename remove_extent<_Tp>::type; constexpr __weak_ptr() noexcept : _M_ptr(nullptr), _M_refcount() { } __weak_ptr(const __weak_ptr&) noexcept = default; ~__weak_ptr() = default; # 2009 "/usr/include/c++/13/bits/shared_ptr_base.h" 3 template<typename _Yp, typename = _Compatible<_Yp>> __weak_ptr(const __weak_ptr<_Yp, _Lp>& __r) noexcept : _M_refcount(__r._M_refcount) { _M_ptr = __r.lock().get(); } template<typename _Yp, typename = _Compatible<_Yp>> __weak_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept : _M_ptr(__r._M_ptr), _M_refcount(__r._M_refcount) { } __weak_ptr(__weak_ptr&& __r) noexcept : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) { __r._M_ptr = nullptr; } template<typename _Yp, typename = _Compatible<_Yp>> __weak_ptr(__weak_ptr<_Yp, _Lp>&& __r) noexcept : _M_ptr(__r.lock().get()), _M_refcount(std::move(__r._M_refcount)) { __r._M_ptr = nullptr; } __weak_ptr& operator=(const __weak_ptr& __r) noexcept = default; template<typename _Yp> _Assignable<_Yp> operator=(const __weak_ptr<_Yp, _Lp>& __r) noexcept { _M_ptr = __r.lock().get(); _M_refcount = __r._M_refcount; return *this; } template<typename _Yp> _Assignable<_Yp> operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept { _M_ptr = __r._M_ptr; _M_refcount = __r._M_refcount; return *this; } __weak_ptr& operator=(__weak_ptr&& __r) noexcept { __weak_ptr(std::move(__r)).swap(*this); return *this; } template<typename _Yp> _Assignable<_Yp> operator=(__weak_ptr<_Yp, _Lp>&& __r) noexcept { _M_ptr = __r.lock().get(); _M_refcount = std::move(__r._M_refcount); __r._M_ptr = nullptr; return *this; } __shared_ptr<_Tp, _Lp> lock() const noexcept { return __shared_ptr<element_type, _Lp>(*this, std::nothrow); } long use_count() const noexcept { return _M_refcount._M_get_use_count(); } bool expired() const noexcept { return _M_refcount._M_get_use_count() == 0; } template<typename _Tp1> bool owner_before(const __shared_ptr<_Tp1, _Lp>& __rhs) const noexcept { return _M_refcount._M_less(__rhs._M_refcount); } template<typename _Tp1> bool owner_before(const __weak_ptr<_Tp1, _Lp>& __rhs) const noexcept { return _M_refcount._M_less(__rhs._M_refcount); } void reset() noexcept { __weak_ptr().swap(*this); } void swap(__weak_ptr& __s) noexcept { std::swap(_M_ptr, __s._M_ptr); _M_refcount._M_swap(__s._M_refcount); } private: void _M_assign(_Tp* __ptr, const __shared_count<_Lp>& __refcount) noexcept { if (use_count() == 0) { _M_ptr = __ptr; _M_refcount = __refcount; } } template<typename _Tp1, _Lock_policy _Lp1> friend class __shared_ptr; template<typename _Tp1, _Lock_policy _Lp1> friend class __weak_ptr; friend class __enable_shared_from_this<_Tp, _Lp>; friend class enable_shared_from_this<_Tp>; friend _Sp_atomic<weak_ptr<_Tp>>; element_type* _M_ptr; __weak_count<_Lp> _M_refcount; }; template<typename _Tp, _Lock_policy _Lp> inline void swap(__weak_ptr<_Tp, _Lp>& __a, __weak_ptr<_Tp, _Lp>& __b) noexcept { __a.swap(__b); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp, typename _Tp1> struct _Sp_owner_less : public binary_function<_Tp, _Tp, bool> { bool operator()(const _Tp& __lhs, const _Tp& __rhs) const noexcept { return __lhs.owner_before(__rhs); } bool operator()(const _Tp& __lhs, const _Tp1& __rhs) const noexcept { return __lhs.owner_before(__rhs); } bool operator()(const _Tp1& __lhs, const _Tp& __rhs) const noexcept { return __lhs.owner_before(__rhs); } }; #pragma GCC diagnostic pop template<> struct _Sp_owner_less<void, void> { template<typename _Tp, typename _Up> auto operator()(const _Tp& __lhs, const _Up& __rhs) const noexcept -> decltype(__lhs.owner_before(__rhs)) { return __lhs.owner_before(__rhs); } using is_transparent = void; }; template<typename _Tp, _Lock_policy _Lp> struct owner_less<__shared_ptr<_Tp, _Lp>> : public _Sp_owner_less<__shared_ptr<_Tp, _Lp>, __weak_ptr<_Tp, _Lp>> { }; template<typename _Tp, _Lock_policy _Lp> struct owner_less<__weak_ptr<_Tp, _Lp>> : public _Sp_owner_less<__weak_ptr<_Tp, _Lp>, __shared_ptr<_Tp, _Lp>> { }; template<typename _Tp, _Lock_policy _Lp> class __enable_shared_from_this { protected: constexpr __enable_shared_from_this() noexcept { } __enable_shared_from_this(const __enable_shared_from_this&) noexcept { } __enable_shared_from_this& operator=(const __enable_shared_from_this&) noexcept { return *this; } ~__enable_shared_from_this() { } public: __shared_ptr<_Tp, _Lp> shared_from_this() { return __shared_ptr<_Tp, _Lp>(this->_M_weak_this); } __shared_ptr<const _Tp, _Lp> shared_from_this() const { return __shared_ptr<const _Tp, _Lp>(this->_M_weak_this); } __weak_ptr<_Tp, _Lp> weak_from_this() noexcept { return this->_M_weak_this; } __weak_ptr<const _Tp, _Lp> weak_from_this() const noexcept { return this->_M_weak_this; } private: template<typename _Tp1> void _M_weak_assign(_Tp1* __p, const __shared_count<_Lp>& __n) const noexcept { _M_weak_this._M_assign(__p, __n); } friend const __enable_shared_from_this* __enable_shared_from_this_base(const __shared_count<_Lp>&, const __enable_shared_from_this* __p) { return __p; } template<typename, _Lock_policy> friend class __shared_ptr; mutable __weak_ptr<_Tp, _Lp> _M_weak_this; }; template<typename _Tp, _Lock_policy _Lp = __default_lock_policy, typename _Alloc, typename... _Args> inline __shared_ptr<_Tp, _Lp> __allocate_shared(const _Alloc& __a, _Args&&... __args) { static_assert(!is_array<_Tp>::value, "make_shared<T[]> not supported"); return __shared_ptr<_Tp, _Lp>(_Sp_alloc_shared_tag<_Alloc>{__a}, std::forward<_Args>(__args)...); } template<typename _Tp, _Lock_policy _Lp = __default_lock_policy, typename... _Args> inline __shared_ptr<_Tp, _Lp> __make_shared(_Args&&... __args) { typedef typename std::remove_const<_Tp>::type _Tp_nc; return std::__allocate_shared<_Tp, _Lp>(std::allocator<_Tp_nc>(), std::forward<_Args>(__args)...); } template<typename _Tp, _Lock_policy _Lp> struct hash<__shared_ptr<_Tp, _Lp>> : public __hash_base<size_t, __shared_ptr<_Tp, _Lp>> { size_t operator()(const __shared_ptr<_Tp, _Lp>& __s) const noexcept { return hash<typename __shared_ptr<_Tp, _Lp>::element_type*>()( __s.get()); } }; } # 54 "/usr/include/c++/13/bits/shared_ptr.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 68 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Ch, typename _Tr, typename _Tp, _Lock_policy _Lp> inline std::basic_ostream<_Ch, _Tr>& operator<<(std::basic_ostream<_Ch, _Tr>& __os, const __shared_ptr<_Tp, _Lp>& __p) { __os << __p.get(); return __os; } template<typename _Del, typename _Tp, _Lock_policy _Lp> inline _Del* get_deleter(const __shared_ptr<_Tp, _Lp>& __p) noexcept { return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); } template<typename _Del, typename _Tp> inline _Del* get_deleter(const shared_ptr<_Tp>& __p) noexcept { return static_cast<_Del*>(__p._M_get_deleter(typeid(_Del))); } template<typename _Tp> requires (!is_array_v<_Tp>) using _NonArray = _Tp; # 118 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp> requires is_array_v<_Tp> && (extent_v<_Tp> == 0) using _UnboundedArray = _Tp; # 129 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp> requires (extent_v<_Tp> != 0) using _BoundedArray = _Tp; # 141 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp> requires (!is_array_v<_Tp>) || (extent_v<_Tp> != 0) using _NotUnboundedArray = _Tp; # 174 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp> class shared_ptr : public __shared_ptr<_Tp> { template<typename... _Args> using _Constructible = typename enable_if< is_constructible<__shared_ptr<_Tp>, _Args...>::value >::type; template<typename _Arg> using _Assignable = typename enable_if< is_assignable<__shared_ptr<_Tp>&, _Arg>::value, shared_ptr& >::type; public: using element_type = typename __shared_ptr<_Tp>::element_type; using weak_type = weak_ptr<_Tp>; constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { } shared_ptr(const shared_ptr&) noexcept = default; template<typename _Yp, typename = _Constructible<_Yp*>> explicit shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } # 229 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Yp, typename _Deleter, typename = _Constructible<_Yp*, _Deleter>> shared_ptr(_Yp* __p, _Deleter __d) : __shared_ptr<_Tp>(__p, std::move(__d)) { } # 247 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Deleter> shared_ptr(nullptr_t __p, _Deleter __d) : __shared_ptr<_Tp>(__p, std::move(__d)) { } # 266 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Yp, typename _Deleter, typename _Alloc, typename = _Constructible<_Yp*, _Deleter, _Alloc>> shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a) : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } # 286 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Deleter, typename _Alloc> shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a) : __shared_ptr<_Tp>(__p, std::move(__d), std::move(__a)) { } # 310 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Yp> shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept : __shared_ptr<_Tp>(__r, __p) { } # 338 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Yp> shared_ptr(shared_ptr<_Yp>&& __r, element_type* __p) noexcept : __shared_ptr<_Tp>(std::move(__r), __p) { } # 349 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Yp, typename = _Constructible<const shared_ptr<_Yp>&>> shared_ptr(const shared_ptr<_Yp>& __r) noexcept : __shared_ptr<_Tp>(__r) { } shared_ptr(shared_ptr&& __r) noexcept : __shared_ptr<_Tp>(std::move(__r)) { } template<typename _Yp, typename = _Constructible<shared_ptr<_Yp>>> shared_ptr(shared_ptr<_Yp>&& __r) noexcept : __shared_ptr<_Tp>(std::move(__r)) { } # 379 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Yp, typename = _Constructible<const weak_ptr<_Yp>&>> explicit shared_ptr(const weak_ptr<_Yp>& __r) : __shared_ptr<_Tp>(__r) { } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Yp, typename = _Constructible<auto_ptr<_Yp>>> shared_ptr(auto_ptr<_Yp>&& __r); #pragma GCC diagnostic pop template<typename _Yp, typename _Del, typename = _Constructible<unique_ptr<_Yp, _Del>>> shared_ptr(unique_ptr<_Yp, _Del>&& __r) : __shared_ptr<_Tp>(std::move(__r)) { } # 412 "/usr/include/c++/13/bits/shared_ptr.h" 3 constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { } shared_ptr& operator=(const shared_ptr&) noexcept = default; template<typename _Yp> _Assignable<const shared_ptr<_Yp>&> operator=(const shared_ptr<_Yp>& __r) noexcept { this->__shared_ptr<_Tp>::operator=(__r); return *this; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Yp> _Assignable<auto_ptr<_Yp>> operator=(auto_ptr<_Yp>&& __r) { this->__shared_ptr<_Tp>::operator=(std::move(__r)); return *this; } #pragma GCC diagnostic pop shared_ptr& operator=(shared_ptr&& __r) noexcept { this->__shared_ptr<_Tp>::operator=(std::move(__r)); return *this; } template<class _Yp> _Assignable<shared_ptr<_Yp>> operator=(shared_ptr<_Yp>&& __r) noexcept { this->__shared_ptr<_Tp>::operator=(std::move(__r)); return *this; } template<typename _Yp, typename _Del> _Assignable<unique_ptr<_Yp, _Del>> operator=(unique_ptr<_Yp, _Del>&& __r) { this->__shared_ptr<_Tp>::operator=(std::move(__r)); return *this; } private: template<typename _Alloc, typename... _Args> shared_ptr(_Sp_alloc_shared_tag<_Alloc> __tag, _Args&&... __args) : __shared_ptr<_Tp>(__tag, std::forward<_Args>(__args)...) { } template<typename _Yp, typename _Alloc, typename... _Args> friend shared_ptr<_NonArray<_Yp>> allocate_shared(const _Alloc&, _Args&&...); template<typename _Yp, typename... _Args> friend shared_ptr<_NonArray<_Yp>> make_shared(_Args&&...); template<typename _Alloc, typename _Init = const remove_extent_t<_Tp>*> shared_ptr(const _Sp_counted_array_base<_Alloc>& __a, _Init __init = nullptr) : __shared_ptr<_Tp>(__a, __init) { } template<typename _Yp, typename _Alloc> friend shared_ptr<_UnboundedArray<_Yp>> allocate_shared(const _Alloc&, size_t); template<typename _Yp> friend shared_ptr<_UnboundedArray<_Yp>> make_shared(size_t); template<typename _Yp, typename _Alloc> friend shared_ptr<_UnboundedArray<_Yp>> allocate_shared(const _Alloc&, size_t, const remove_extent_t<_Yp>&); template<typename _Yp> friend shared_ptr<_UnboundedArray<_Yp>> make_shared(size_t, const remove_extent_t<_Yp>&); template<typename _Yp, typename _Alloc> friend shared_ptr<_BoundedArray<_Yp>> allocate_shared(const _Alloc&); template<typename _Yp> friend shared_ptr<_BoundedArray<_Yp>> make_shared(); template<typename _Yp, typename _Alloc> friend shared_ptr<_BoundedArray<_Yp>> allocate_shared(const _Alloc&, const remove_extent_t<_Yp>&); template<typename _Yp> friend shared_ptr<_BoundedArray<_Yp>> make_shared(const remove_extent_t<_Yp>&); template<typename _Yp, typename _Alloc> friend shared_ptr<_NotUnboundedArray<_Yp>> allocate_shared_for_overwrite(const _Alloc&); template<typename _Yp> friend shared_ptr<_NotUnboundedArray<_Yp>> make_shared_for_overwrite(); template<typename _Yp, typename _Alloc> friend shared_ptr<_UnboundedArray<_Yp>> allocate_shared_for_overwrite(const _Alloc&, size_t); template<typename _Yp> friend shared_ptr<_UnboundedArray<_Yp>> make_shared_for_overwrite(size_t); shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t) noexcept : __shared_ptr<_Tp>(__r, std::nothrow) { } friend class weak_ptr<_Tp>; }; template<typename _Tp> shared_ptr(weak_ptr<_Tp>) -> shared_ptr<_Tp>; template<typename _Tp, typename _Del> shared_ptr(unique_ptr<_Tp, _Del>) -> shared_ptr<_Tp>; template<typename _Tp, typename _Up> [[__nodiscard__]] inline bool operator==(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept { return __a.get() == __b.get(); } template<typename _Tp> [[__nodiscard__]] inline bool operator==(const shared_ptr<_Tp>& __a, nullptr_t) noexcept { return !__a; } template<typename _Tp, typename _Up> inline strong_ordering operator<=>(const shared_ptr<_Tp>& __a, const shared_ptr<_Up>& __b) noexcept { return compare_three_way()(__a.get(), __b.get()); } template<typename _Tp> inline strong_ordering operator<=>(const shared_ptr<_Tp>& __a, nullptr_t) noexcept { using pointer = typename shared_ptr<_Tp>::element_type*; return compare_three_way()(__a.get(), static_cast<pointer>(nullptr)); } # 690 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp> inline void swap(shared_ptr<_Tp>& __a, shared_ptr<_Tp>& __b) noexcept { __a.swap(__b); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> static_pointer_cast(const shared_ptr<_Up>& __r) noexcept { using _Sp = shared_ptr<_Tp>; return _Sp(__r, static_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> const_pointer_cast(const shared_ptr<_Up>& __r) noexcept { using _Sp = shared_ptr<_Tp>; return _Sp(__r, const_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> dynamic_pointer_cast(const shared_ptr<_Up>& __r) noexcept { using _Sp = shared_ptr<_Tp>; if (auto* __p = dynamic_cast<typename _Sp::element_type*>(__r.get())) return _Sp(__r, __p); return _Sp(); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> reinterpret_pointer_cast(const shared_ptr<_Up>& __r) noexcept { using _Sp = shared_ptr<_Tp>; return _Sp(__r, reinterpret_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> static_pointer_cast(shared_ptr<_Up>&& __r) noexcept { using _Sp = shared_ptr<_Tp>; return _Sp(std::move(__r), static_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> const_pointer_cast(shared_ptr<_Up>&& __r) noexcept { using _Sp = shared_ptr<_Tp>; return _Sp(std::move(__r), const_cast<typename _Sp::element_type*>(__r.get())); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> dynamic_pointer_cast(shared_ptr<_Up>&& __r) noexcept { using _Sp = shared_ptr<_Tp>; if (auto* __p = dynamic_cast<typename _Sp::element_type*>(__r.get())) return _Sp(std::move(__r), __p); return _Sp(); } template<typename _Tp, typename _Up> inline shared_ptr<_Tp> reinterpret_pointer_cast(shared_ptr<_Up>&& __r) noexcept { using _Sp = shared_ptr<_Tp>; return _Sp(std::move(__r), reinterpret_cast<typename _Sp::element_type*>(__r.get())); } # 810 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp> class weak_ptr : public __weak_ptr<_Tp> { template<typename _Arg> using _Constructible = typename enable_if< is_constructible<__weak_ptr<_Tp>, _Arg>::value >::type; template<typename _Arg> using _Assignable = typename enable_if< is_assignable<__weak_ptr<_Tp>&, _Arg>::value, weak_ptr& >::type; public: constexpr weak_ptr() noexcept = default; template<typename _Yp, typename = _Constructible<const shared_ptr<_Yp>&>> weak_ptr(const shared_ptr<_Yp>& __r) noexcept : __weak_ptr<_Tp>(__r) { } weak_ptr(const weak_ptr&) noexcept = default; template<typename _Yp, typename = _Constructible<const weak_ptr<_Yp>&>> weak_ptr(const weak_ptr<_Yp>& __r) noexcept : __weak_ptr<_Tp>(__r) { } weak_ptr(weak_ptr&&) noexcept = default; template<typename _Yp, typename = _Constructible<weak_ptr<_Yp>>> weak_ptr(weak_ptr<_Yp>&& __r) noexcept : __weak_ptr<_Tp>(std::move(__r)) { } weak_ptr& operator=(const weak_ptr& __r) noexcept = default; template<typename _Yp> _Assignable<const weak_ptr<_Yp>&> operator=(const weak_ptr<_Yp>& __r) noexcept { this->__weak_ptr<_Tp>::operator=(__r); return *this; } template<typename _Yp> _Assignable<const shared_ptr<_Yp>&> operator=(const shared_ptr<_Yp>& __r) noexcept { this->__weak_ptr<_Tp>::operator=(__r); return *this; } weak_ptr& operator=(weak_ptr&& __r) noexcept = default; template<typename _Yp> _Assignable<weak_ptr<_Yp>> operator=(weak_ptr<_Yp>&& __r) noexcept { this->__weak_ptr<_Tp>::operator=(std::move(__r)); return *this; } shared_ptr<_Tp> lock() const noexcept { return shared_ptr<_Tp>(*this, std::nothrow); } }; template<typename _Tp> weak_ptr(shared_ptr<_Tp>) -> weak_ptr<_Tp>; template<typename _Tp> inline void swap(weak_ptr<_Tp>& __a, weak_ptr<_Tp>& __b) noexcept { __a.swap(__b); } template<typename _Tp = void> struct owner_less; template<> struct owner_less<void> : _Sp_owner_less<void, void> { }; template<typename _Tp> struct owner_less<shared_ptr<_Tp>> : public _Sp_owner_less<shared_ptr<_Tp>, weak_ptr<_Tp>> { }; template<typename _Tp> struct owner_less<weak_ptr<_Tp>> : public _Sp_owner_less<weak_ptr<_Tp>, shared_ptr<_Tp>> { }; template<typename _Tp> class enable_shared_from_this { protected: constexpr enable_shared_from_this() noexcept { } enable_shared_from_this(const enable_shared_from_this&) noexcept { } enable_shared_from_this& operator=(const enable_shared_from_this&) noexcept { return *this; } ~enable_shared_from_this() { } public: shared_ptr<_Tp> shared_from_this() { return shared_ptr<_Tp>(this->_M_weak_this); } shared_ptr<const _Tp> shared_from_this() const { return shared_ptr<const _Tp>(this->_M_weak_this); } weak_ptr<_Tp> weak_from_this() noexcept { return this->_M_weak_this; } weak_ptr<const _Tp> weak_from_this() const noexcept { return this->_M_weak_this; } private: template<typename _Tp1> void _M_weak_assign(_Tp1* __p, const __shared_count<>& __n) const noexcept { _M_weak_this._M_assign(__p, __n); } friend const enable_shared_from_this* __enable_shared_from_this_base(const __shared_count<>&, const enable_shared_from_this* __p) { return __p; } template<typename, _Lock_policy> friend class __shared_ptr; mutable weak_ptr<_Tp> _M_weak_this; }; # 988 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp, typename _Alloc, typename... _Args> inline shared_ptr<_NonArray<_Tp>> allocate_shared(const _Alloc& __a, _Args&&... __args) { return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, std::forward<_Args>(__args)...); } # 1003 "/usr/include/c++/13/bits/shared_ptr.h" 3 template<typename _Tp, typename... _Args> inline shared_ptr<_NonArray<_Tp>> make_shared(_Args&&... __args) { using _Alloc = allocator<void>; _Alloc __a; return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{__a}, std::forward<_Args>(__args)...); } template<typename _Tp, typename _Alloc = allocator<void>> auto __make_shared_arr_tag(size_t __n, const _Alloc& __a = _Alloc()) noexcept { using _Up = remove_all_extents_t<_Tp>; using _UpAlloc = __alloc_rebind<_Alloc, _Up>; size_t __s = sizeof(remove_extent_t<_Tp>) / sizeof(_Up); if (__builtin_mul_overflow(__s, __n, &__n)) std::__throw_bad_array_new_length(); return _Sp_counted_array_base<_UpAlloc>{_UpAlloc(__a), __n}; } template<typename _Tp, typename _Alloc> inline shared_ptr<_UnboundedArray<_Tp>> allocate_shared(const _Alloc& __a, size_t __n) { return shared_ptr<_Tp>(std::__make_shared_arr_tag<_Tp>(__n, __a)); } template<typename _Tp> inline shared_ptr<_UnboundedArray<_Tp>> make_shared(size_t __n) { return shared_ptr<_Tp>(std::__make_shared_arr_tag<_Tp>(__n)); } template<typename _Tp, typename _Alloc> inline shared_ptr<_UnboundedArray<_Tp>> allocate_shared(const _Alloc& __a, size_t __n, const remove_extent_t<_Tp>& __u) { return shared_ptr<_Tp>(std::__make_shared_arr_tag<_Tp>(__n, __a), std::__addressof(__u)); } template<typename _Tp> inline shared_ptr<_UnboundedArray<_Tp>> make_shared(size_t __n, const remove_extent_t<_Tp>& __u) { return shared_ptr<_Tp>(std::__make_shared_arr_tag<_Tp>(__n), std::__addressof(__u)); } template<typename _Tp, typename _Alloc = allocator<void>> auto __make_shared_arrN_tag(const _Alloc& __a = _Alloc()) noexcept { using _Up = remove_all_extents_t<_Tp>; using _UpAlloc = __alloc_rebind<_Alloc, _Up>; size_t __n = sizeof(_Tp) / sizeof(_Up); return _Sp_counted_array_base<_UpAlloc>{_UpAlloc(__a), __n}; } template<typename _Tp, typename _Alloc> inline shared_ptr<_BoundedArray<_Tp>> allocate_shared(const _Alloc& __a) { return shared_ptr<_Tp>(std::__make_shared_arrN_tag<_Tp>(__a)); } template<typename _Tp> inline shared_ptr<_BoundedArray<_Tp>> make_shared() { return shared_ptr<_Tp>(std::__make_shared_arrN_tag<_Tp>()); } template<typename _Tp, typename _Alloc> inline shared_ptr<_BoundedArray<_Tp>> allocate_shared(const _Alloc& __a, const remove_extent_t<_Tp>& __u) { return shared_ptr<_Tp>(std::__make_shared_arrN_tag<_Tp>(__a), std::__addressof(__u)); } template<typename _Tp> inline shared_ptr<_BoundedArray<_Tp>> make_shared(const remove_extent_t<_Tp>& __u) { return shared_ptr<_Tp>(std::__make_shared_arrN_tag<_Tp>(), std::__addressof(__u)); } template<typename _Tp, typename _Alloc> inline shared_ptr<_NotUnboundedArray<_Tp>> allocate_shared_for_overwrite(const _Alloc& __a) { if constexpr (is_array_v<_Tp>) return shared_ptr<_Tp>(std::__make_shared_arrN_tag<_Tp>(__a), _Sp_overwrite_tag{}); else { using _Alloc2 = __alloc_rebind<_Alloc, _Sp_overwrite_tag>; _Alloc2 __a2 = __a; return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc2>{__a2}); } } template<typename _Tp> inline shared_ptr<_NotUnboundedArray<_Tp>> make_shared_for_overwrite() { if constexpr (is_array_v<_Tp>) return shared_ptr<_Tp>(std::__make_shared_arrN_tag<_Tp>(), _Sp_overwrite_tag{}); else { using _Alloc = allocator<_Sp_overwrite_tag>; return shared_ptr<_Tp>(_Sp_alloc_shared_tag<_Alloc>{{}}); } } template<typename _Tp, typename _Alloc> inline shared_ptr<_UnboundedArray<_Tp>> allocate_shared_for_overwrite(const _Alloc& __a, size_t __n) { return shared_ptr<_Tp>(std::__make_shared_arr_tag<_Tp>(__n, __a), _Sp_overwrite_tag{}); } template<typename _Tp> inline shared_ptr<_UnboundedArray<_Tp>> make_shared_for_overwrite(size_t __n) { return shared_ptr<_Tp>(std::__make_shared_arr_tag<_Tp>(__n), _Sp_overwrite_tag{}); } template<typename _Tp> struct hash<shared_ptr<_Tp>> : public __hash_base<size_t, shared_ptr<_Tp>> { size_t operator()(const shared_ptr<_Tp>& __s) const noexcept { return std::hash<typename shared_ptr<_Tp>::element_type*>()(__s.get()); } }; namespace __detail::__variant { template<typename> struct _Never_valueless_alt; template<typename _Tp> struct _Never_valueless_alt<std::shared_ptr<_Tp>> : std::true_type { }; template<typename _Tp> struct _Never_valueless_alt<std::weak_ptr<_Tp>> : std::true_type { }; } } # 81 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 1 3 # 61 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 73 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 struct _Sp_locker { _Sp_locker(const _Sp_locker&) = delete; _Sp_locker& operator=(const _Sp_locker&) = delete; explicit _Sp_locker(const void*) noexcept; _Sp_locker(const void*, const void*) noexcept; ~_Sp_locker(); private: unsigned char _M_key1; unsigned char _M_key2; }; # 100 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 template<typename _Tp, _Lock_policy _Lp> inline bool atomic_is_lock_free(const __shared_ptr<_Tp, _Lp>* __p) { return __gthread_active_p() == 0; } template<typename _Tp> inline bool atomic_is_lock_free(const shared_ptr<_Tp>* __p) { return std::atomic_is_lock_free<_Tp, __default_lock_policy>(__p); } # 127 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 template<typename _Tp> inline shared_ptr<_Tp> atomic_load_explicit(const shared_ptr<_Tp>* __p, memory_order) { _Sp_locker __lock{__p}; return *__p; } template<typename _Tp> inline shared_ptr<_Tp> atomic_load(const shared_ptr<_Tp>* __p) { return std::atomic_load_explicit(__p, memory_order_seq_cst); } template<typename _Tp, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> atomic_load_explicit(const __shared_ptr<_Tp, _Lp>* __p, memory_order) { _Sp_locker __lock{__p}; return *__p; } template<typename _Tp, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> atomic_load(const __shared_ptr<_Tp, _Lp>* __p) { return std::atomic_load_explicit(__p, memory_order_seq_cst); } # 163 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 template<typename _Tp> inline void atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order) { _Sp_locker __lock{__p}; __p->swap(__r); } template<typename _Tp> inline void atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } template<typename _Tp, _Lock_policy _Lp> inline void atomic_store_explicit(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r, memory_order) { _Sp_locker __lock{__p}; __p->swap(__r); } template<typename _Tp, _Lock_policy _Lp> inline void atomic_store(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) { std::atomic_store_explicit(__p, std::move(__r), memory_order_seq_cst); } # 200 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 template<typename _Tp> inline shared_ptr<_Tp> atomic_exchange_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order) { _Sp_locker __lock{__p}; __p->swap(__r); return __r; } template<typename _Tp> inline shared_ptr<_Tp> atomic_exchange(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) { return std::atomic_exchange_explicit(__p, std::move(__r), memory_order_seq_cst); } template<typename _Tp, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> atomic_exchange_explicit(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r, memory_order) { _Sp_locker __lock{__p}; __p->swap(__r); return __r; } template<typename _Tp, _Lock_policy _Lp> inline __shared_ptr<_Tp, _Lp> atomic_exchange(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp> __r) { return std::atomic_exchange_explicit(__p, std::move(__r), memory_order_seq_cst); } # 249 "/usr/include/c++/13/bits/shared_ptr_atomic.h" 3 template<typename _Tp> bool atomic_compare_exchange_strong_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, shared_ptr<_Tp> __w, memory_order, memory_order) { shared_ptr<_Tp> __x; _Sp_locker __lock{__p, __v}; owner_less<shared_ptr<_Tp>> __less; if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) { __x = std::move(*__p); *__p = std::move(__w); return true; } __x = std::move(*__v); *__v = *__p; return false; } template<typename _Tp> inline bool atomic_compare_exchange_strong(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, shared_ptr<_Tp> __w) { return std::atomic_compare_exchange_strong_explicit(__p, __v, std::move(__w), memory_order_seq_cst, memory_order_seq_cst); } template<typename _Tp> inline bool atomic_compare_exchange_weak_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, shared_ptr<_Tp> __w, memory_order __success, memory_order __failure) { return std::atomic_compare_exchange_strong_explicit(__p, __v, std::move(__w), __success, __failure); } template<typename _Tp> inline bool atomic_compare_exchange_weak(shared_ptr<_Tp>* __p, shared_ptr<_Tp>* __v, shared_ptr<_Tp> __w) { return std::atomic_compare_exchange_weak_explicit(__p, __v, std::move(__w), memory_order_seq_cst, memory_order_seq_cst); } template<typename _Tp, _Lock_policy _Lp> bool atomic_compare_exchange_strong_explicit(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp>* __v, __shared_ptr<_Tp, _Lp> __w, memory_order, memory_order) { __shared_ptr<_Tp, _Lp> __x; _Sp_locker __lock{__p, __v}; owner_less<__shared_ptr<_Tp, _Lp>> __less; if (*__p == *__v && !__less(*__p, *__v) && !__less(*__v, *__p)) { __x = std::move(*__p); *__p = std::move(__w); return true; } __x = std::move(*__v); *__v = *__p; return false; } template<typename _Tp, _Lock_policy _Lp> inline bool atomic_compare_exchange_strong(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp>* __v, __shared_ptr<_Tp, _Lp> __w) { return std::atomic_compare_exchange_strong_explicit(__p, __v, std::move(__w), memory_order_seq_cst, memory_order_seq_cst); } template<typename _Tp, _Lock_policy _Lp> inline bool atomic_compare_exchange_weak_explicit(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp>* __v, __shared_ptr<_Tp, _Lp> __w, memory_order __success, memory_order __failure) { return std::atomic_compare_exchange_strong_explicit(__p, __v, std::move(__w), __success, __failure); } template<typename _Tp, _Lock_policy _Lp> inline bool atomic_compare_exchange_weak(__shared_ptr<_Tp, _Lp>* __p, __shared_ptr<_Tp, _Lp>* __v, __shared_ptr<_Tp, _Lp> __w) { return std::atomic_compare_exchange_weak_explicit(__p, __v, std::move(__w), memory_order_seq_cst, memory_order_seq_cst); } template<typename _Tp> class atomic; template<typename _Up> static constexpr bool __is_shared_ptr = false; template<typename _Up> static constexpr bool __is_shared_ptr<shared_ptr<_Up>> = true; template<typename _Tp> class _Sp_atomic { using value_type = _Tp; friend class atomic<_Tp>; struct _Atomic_count { using __count_type = decltype(_Tp::_M_refcount); using pointer = decltype(__count_type::_M_pi); static_assert(alignof(remove_pointer_t<pointer>) > 1); constexpr _Atomic_count() noexcept = default; explicit _Atomic_count(__count_type&& __c) noexcept : _M_val(reinterpret_cast<uintptr_t>(__c._M_pi)) { __c._M_pi = nullptr; } ~_Atomic_count() { auto __val = _M_val.load(memory_order_relaxed); ; do { if (std::__is_constant_evaluated() && !bool(!(__val & _S_lock_bit))) __builtin_unreachable(); } while (false); if (auto __pi = reinterpret_cast<pointer>(__val)) { if constexpr (__is_shared_ptr<_Tp>) __pi->_M_release(); else __pi->_M_weak_release(); } } _Atomic_count(const _Atomic_count&) = delete; _Atomic_count& operator=(const _Atomic_count&) = delete; pointer lock(memory_order __o) const noexcept { auto __current = _M_val.load(memory_order_relaxed); while (__current & _S_lock_bit) { __detail::__thread_relax(); __current = _M_val.load(memory_order_relaxed); } ; while (!_M_val.compare_exchange_strong(__current, __current | _S_lock_bit, __o, memory_order_relaxed)) { ; __detail::__thread_relax(); __current = __current & ~_S_lock_bit; ; } ; return reinterpret_cast<pointer>(__current); } void unlock(memory_order __o) const noexcept { ; _M_val.fetch_sub(1, __o); ; } void _M_swap_unlock(__count_type& __c, memory_order __o) noexcept { if (__o != memory_order_seq_cst) __o = memory_order_release; auto __x = reinterpret_cast<uintptr_t>(__c._M_pi); ; __x = _M_val.exchange(__x, __o); ; __c._M_pi = reinterpret_cast<pointer>(__x & ~_S_lock_bit); } void _M_wait_unlock(memory_order __o) const noexcept { ; auto __v = _M_val.fetch_sub(1, memory_order_relaxed); ; _M_val.wait(__v & ~_S_lock_bit, __o); } void notify_one() noexcept { ; _M_val.notify_one(); ; } void notify_all() noexcept { ; _M_val.notify_all(); ; } private: mutable __atomic_base<uintptr_t> _M_val{0}; static constexpr uintptr_t _S_lock_bit{1}; }; typename _Tp::element_type* _M_ptr = nullptr; _Atomic_count _M_refcount; static typename _Atomic_count::pointer _S_add_ref(typename _Atomic_count::pointer __p) { if (__p) { if constexpr (__is_shared_ptr<_Tp>) __p->_M_add_ref_copy(); else __p->_M_weak_add_ref(); } return __p; } constexpr _Sp_atomic() noexcept = default; explicit _Sp_atomic(value_type __r) noexcept : _M_ptr(__r._M_ptr), _M_refcount(std::move(__r._M_refcount)) { } ~_Sp_atomic() = default; _Sp_atomic(const _Sp_atomic&) = delete; void operator=(const _Sp_atomic&) = delete; value_type load(memory_order __o) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__o != memory_order_release && __o != memory_order_acq_rel)) __builtin_unreachable(); } while (false) ; if (__o != memory_order_seq_cst) __o = memory_order_acquire; value_type __ret; auto __pi = _M_refcount.lock(__o); __ret._M_ptr = _M_ptr; __ret._M_refcount._M_pi = _S_add_ref(__pi); _M_refcount.unlock(memory_order_relaxed); return __ret; } void swap(value_type& __r, memory_order __o) noexcept { _M_refcount.lock(memory_order_acquire); std::swap(_M_ptr, __r._M_ptr); _M_refcount._M_swap_unlock(__r._M_refcount, __o); } bool compare_exchange_strong(value_type& __expected, value_type __desired, memory_order __o, memory_order __o2) noexcept { bool __result = true; auto __pi = _M_refcount.lock(memory_order_acquire); if (_M_ptr == __expected._M_ptr && __pi == __expected._M_refcount._M_pi) { _M_ptr = __desired._M_ptr; _M_refcount._M_swap_unlock(__desired._M_refcount, __o); } else { _Tp __sink = std::move(__expected); __expected._M_ptr = _M_ptr; __expected._M_refcount._M_pi = _S_add_ref(__pi); _M_refcount.unlock(__o2); __result = false; } return __result; } void wait(value_type __old, memory_order __o) const noexcept { auto __pi = _M_refcount.lock(memory_order_acquire); if (_M_ptr == __old._M_ptr && __pi == __old._M_refcount._M_pi) _M_refcount._M_wait_unlock(__o); else _M_refcount.unlock(memory_order_relaxed); } void notify_one() noexcept { _M_refcount.notify_one(); } void notify_all() noexcept { _M_refcount.notify_all(); } }; template<typename _Tp> class atomic<shared_ptr<_Tp>> { public: using value_type = shared_ptr<_Tp>; static constexpr bool is_always_lock_free = false; bool is_lock_free() const noexcept { return false; } constexpr atomic() noexcept = default; constexpr atomic(nullptr_t) noexcept : atomic() { } atomic(shared_ptr<_Tp> __r) noexcept : _M_impl(std::move(__r)) { } atomic(const atomic&) = delete; void operator=(const atomic&) = delete; shared_ptr<_Tp> load(memory_order __o = memory_order_seq_cst) const noexcept { return _M_impl.load(__o); } operator shared_ptr<_Tp>() const noexcept { return _M_impl.load(memory_order_seq_cst); } void store(shared_ptr<_Tp> __desired, memory_order __o = memory_order_seq_cst) noexcept { _M_impl.swap(__desired, __o); } void operator=(shared_ptr<_Tp> __desired) noexcept { _M_impl.swap(__desired, memory_order_seq_cst); } void operator=(nullptr_t) noexcept { store(nullptr); } shared_ptr<_Tp> exchange(shared_ptr<_Tp> __desired, memory_order __o = memory_order_seq_cst) noexcept { _M_impl.swap(__desired, __o); return __desired; } bool compare_exchange_strong(shared_ptr<_Tp>& __expected, shared_ptr<_Tp> __desired, memory_order __o, memory_order __o2) noexcept { return _M_impl.compare_exchange_strong(__expected, __desired, __o, __o2); } bool compare_exchange_strong(value_type& __expected, value_type __desired, memory_order __o = memory_order_seq_cst) noexcept { memory_order __o2; switch (__o) { case memory_order_acq_rel: __o2 = memory_order_acquire; break; case memory_order_release: __o2 = memory_order_relaxed; break; default: __o2 = __o; } return compare_exchange_strong(__expected, std::move(__desired), __o, __o2); } bool compare_exchange_weak(value_type& __expected, value_type __desired, memory_order __o, memory_order __o2) noexcept { return compare_exchange_strong(__expected, std::move(__desired), __o, __o2); } bool compare_exchange_weak(value_type& __expected, value_type __desired, memory_order __o = memory_order_seq_cst) noexcept { return compare_exchange_strong(__expected, std::move(__desired), __o); } void wait(value_type __old, memory_order __o = memory_order_seq_cst) const noexcept { _M_impl.wait(std::move(__old), __o); } void notify_one() noexcept { _M_impl.notify_one(); } void notify_all() noexcept { _M_impl.notify_all(); } private: _Sp_atomic<shared_ptr<_Tp>> _M_impl; }; template<typename _Tp> class atomic<weak_ptr<_Tp>> { public: using value_type = weak_ptr<_Tp>; static constexpr bool is_always_lock_free = false; bool is_lock_free() const noexcept { return false; } constexpr atomic() noexcept = default; atomic(weak_ptr<_Tp> __r) noexcept : _M_impl(move(__r)) { } atomic(const atomic&) = delete; void operator=(const atomic&) = delete; weak_ptr<_Tp> load(memory_order __o = memory_order_seq_cst) const noexcept { return _M_impl.load(__o); } operator weak_ptr<_Tp>() const noexcept { return _M_impl.load(memory_order_seq_cst); } void store(weak_ptr<_Tp> __desired, memory_order __o = memory_order_seq_cst) noexcept { _M_impl.swap(__desired, __o); } void operator=(weak_ptr<_Tp> __desired) noexcept { _M_impl.swap(__desired, memory_order_seq_cst); } weak_ptr<_Tp> exchange(weak_ptr<_Tp> __desired, memory_order __o = memory_order_seq_cst) noexcept { _M_impl.swap(__desired, __o); return __desired; } bool compare_exchange_strong(weak_ptr<_Tp>& __expected, weak_ptr<_Tp> __desired, memory_order __o, memory_order __o2) noexcept { return _M_impl.compare_exchange_strong(__expected, __desired, __o, __o2); } bool compare_exchange_strong(value_type& __expected, value_type __desired, memory_order __o = memory_order_seq_cst) noexcept { memory_order __o2; switch (__o) { case memory_order_acq_rel: __o2 = memory_order_acquire; break; case memory_order_release: __o2 = memory_order_relaxed; break; default: __o2 = __o; } return compare_exchange_strong(__expected, std::move(__desired), __o, __o2); } bool compare_exchange_weak(value_type& __expected, value_type __desired, memory_order __o, memory_order __o2) noexcept { return compare_exchange_strong(__expected, std::move(__desired), __o, __o2); } bool compare_exchange_weak(value_type& __expected, value_type __desired, memory_order __o = memory_order_seq_cst) noexcept { return compare_exchange_strong(__expected, std::move(__desired), __o); } void wait(value_type __old, memory_order __o = memory_order_seq_cst) const noexcept { _M_impl.wait(std::move(__old), __o); } void notify_one() noexcept { _M_impl.notify_one(); } void notify_all() noexcept { _M_impl.notify_all(); } private: _Sp_atomic<weak_ptr<_Tp>> _M_impl; }; } # 82 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/backward/auto_ptr.h" 1 3 # 36 "/usr/include/c++/13/backward/auto_ptr.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 47 "/usr/include/c++/13/backward/auto_ptr.h" 3 template<typename _Tp1> struct auto_ptr_ref { _Tp1* _M_ptr; explicit auto_ptr_ref(_Tp1* __p): _M_ptr(__p) { } } __attribute__ ((__deprecated__)); #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" # 92 "/usr/include/c++/13/backward/auto_ptr.h" 3 template<typename _Tp> class auto_ptr { private: _Tp* _M_ptr; public: typedef _Tp element_type; explicit auto_ptr(element_type* __p = 0) throw() : _M_ptr(__p) { } # 118 "/usr/include/c++/13/backward/auto_ptr.h" 3 auto_ptr(auto_ptr& __a) throw() : _M_ptr(__a.release()) { } # 130 "/usr/include/c++/13/backward/auto_ptr.h" 3 template<typename _Tp1> auto_ptr(auto_ptr<_Tp1>& __a) throw() : _M_ptr(__a.release()) { } # 141 "/usr/include/c++/13/backward/auto_ptr.h" 3 auto_ptr& operator=(auto_ptr& __a) throw() { reset(__a.release()); return *this; } # 158 "/usr/include/c++/13/backward/auto_ptr.h" 3 template<typename _Tp1> auto_ptr& operator=(auto_ptr<_Tp1>& __a) throw() { reset(__a.release()); return *this; } # 176 "/usr/include/c++/13/backward/auto_ptr.h" 3 ~auto_ptr() { delete _M_ptr; } # 186 "/usr/include/c++/13/backward/auto_ptr.h" 3 element_type& operator*() const throw() { do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); return *_M_ptr; } element_type* operator->() const throw() { do { if (std::__is_constant_evaluated() && !bool(_M_ptr != 0)) __builtin_unreachable(); } while (false); return _M_ptr; } # 216 "/usr/include/c++/13/backward/auto_ptr.h" 3 element_type* get() const throw() { return _M_ptr; } # 230 "/usr/include/c++/13/backward/auto_ptr.h" 3 element_type* release() throw() { element_type* __tmp = _M_ptr; _M_ptr = 0; return __tmp; } # 245 "/usr/include/c++/13/backward/auto_ptr.h" 3 void reset(element_type* __p = 0) throw() { if (__p != _M_ptr) { delete _M_ptr; _M_ptr = __p; } } # 270 "/usr/include/c++/13/backward/auto_ptr.h" 3 auto_ptr(auto_ptr_ref<element_type> __ref) throw() : _M_ptr(__ref._M_ptr) { } auto_ptr& operator=(auto_ptr_ref<element_type> __ref) throw() { if (__ref._M_ptr != this->get()) { delete _M_ptr; _M_ptr = __ref._M_ptr; } return *this; } template<typename _Tp1> operator auto_ptr_ref<_Tp1>() throw() { return auto_ptr_ref<_Tp1>(this->release()); } template<typename _Tp1> operator auto_ptr<_Tp1>() throw() { return auto_ptr<_Tp1>(this->release()); } } __attribute__ ((__deprecated__ ("use '" "std::unique_ptr" "' instead"))); template<> class auto_ptr<void> { public: typedef void element_type; } __attribute__ ((__deprecated__)); template<_Lock_policy _Lp> template<typename _Tp> inline __shared_count<_Lp>::__shared_count(std::auto_ptr<_Tp>&& __r) : _M_pi(new _Sp_counted_ptr<_Tp*, _Lp>(__r.get())) { __r.release(); } template<typename _Tp, _Lock_policy _Lp> template<typename _Tp1, typename> inline __shared_ptr<_Tp, _Lp>::__shared_ptr(std::auto_ptr<_Tp1>&& __r) : _M_ptr(__r.get()), _M_refcount() { static_assert( sizeof(_Tp1) > 0, "incomplete type" ); _Tp1* __tmp = __r.get(); _M_refcount = __shared_count<_Lp>(std::move(__r)); _M_enable_shared_from_this_with(__tmp); } template<typename _Tp> template<typename _Tp1, typename> inline shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Tp1>&& __r) : __shared_ptr<_Tp>(std::move(__r)) { } template<typename _Tp, typename _Dp> template<typename _Up, typename> inline unique_ptr<_Tp, _Dp>::unique_ptr(auto_ptr<_Up>&& __u) noexcept : _M_t(__u.release(), deleter_type()) { } #pragma GCC diagnostic pop } # 87 "/usr/include/c++/13/memory" 2 3 # 1 "/usr/include/c++/13/bits/ranges_uninitialized.h" 1 3 # 36 "/usr/include/c++/13/bits/ranges_uninitialized.h" 3 # 1 "/usr/include/c++/13/bits/ranges_algobase.h" 1 3 # 43 "/usr/include/c++/13/bits/ranges_algobase.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { namespace __detail { template<typename _Tp> constexpr inline bool __is_normal_iterator = false; template<typename _Iterator, typename _Container> constexpr inline bool __is_normal_iterator<__gnu_cxx::__normal_iterator<_Iterator, _Container>> = true; template<typename _Tp> constexpr inline bool __is_reverse_iterator = false; template<typename _Iterator> constexpr inline bool __is_reverse_iterator<reverse_iterator<_Iterator>> = true; template<typename _Tp> constexpr inline bool __is_move_iterator = false; template<typename _Iterator> constexpr inline bool __is_move_iterator<move_iterator<_Iterator>> = true; } struct __equal_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr bool operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if constexpr (__detail::__is_normal_iterator<_Iter1> && same_as<_Iter1, _Sent1>) return (*this)(__first1.base(), __last1.base(), std::move(__first2), std::move(__last2), std::move(__pred), std::move(__proj1), std::move(__proj2)); else if constexpr (__detail::__is_normal_iterator<_Iter2> && same_as<_Iter2, _Sent2>) return (*this)(std::move(__first1), std::move(__last1), __first2.base(), __last2.base(), std::move(__pred), std::move(__proj1), std::move(__proj2)); else if constexpr (sized_sentinel_for<_Sent1, _Iter1> && sized_sentinel_for<_Sent2, _Iter2>) { auto __d1 = ranges::distance(__first1, __last1); auto __d2 = ranges::distance(__first2, __last2); if (__d1 != __d2) return false; using _ValueType1 = iter_value_t<_Iter1>; constexpr bool __use_memcmp = ((is_integral_v<_ValueType1> || is_pointer_v<_ValueType1>) && __memcmpable<_Iter1, _Iter2>::__value && is_same_v<_Pred, ranges::equal_to> && is_same_v<_Proj1, identity> && is_same_v<_Proj2, identity>); if constexpr (__use_memcmp) { if (const size_t __len = (__last1 - __first1)) return !std::__memcmp(__first1, __first2, __len); return true; } else { for (; __first1 != __last1; ++__first1, (void)++__first2) if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) return false; return true; } } else { for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) return false; return __first1 == __last1 && __first2 == __last2; } } template<input_range _Range1, input_range _Range2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<iterator_t<_Range1>, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr bool operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __equal_fn equal{}; template<typename _Iter, typename _Out> struct in_out_result { [[no_unique_address]] _Iter in; [[no_unique_address]] _Out out; template<typename _Iter2, typename _Out2> requires convertible_to<const _Iter&, _Iter2> && convertible_to<const _Out&, _Out2> constexpr operator in_out_result<_Iter2, _Out2>() const & { return {in, out}; } template<typename _Iter2, typename _Out2> requires convertible_to<_Iter, _Iter2> && convertible_to<_Out, _Out2> constexpr operator in_out_result<_Iter2, _Out2>() && { return {std::move(in), std::move(out)}; } }; template<typename _Iter, typename _Out> using copy_result = in_out_result<_Iter, _Out>; template<typename _Iter, typename _Out> using move_result = in_out_result<_Iter, _Out>; template<typename _Iter1, typename _Iter2> using move_backward_result = in_out_result<_Iter1, _Iter2>; template<typename _Iter1, typename _Iter2> using copy_backward_result = in_out_result<_Iter1, _Iter2>; template<bool _IsMove, bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, bidirectional_iterator _Out> requires (_IsMove ? indirectly_movable<_Iter, _Out> : indirectly_copyable<_Iter, _Out>) constexpr __conditional_t<_IsMove, move_backward_result<_Iter, _Out>, copy_backward_result<_Iter, _Out>> __copy_or_move_backward(_Iter __first, _Sent __last, _Out __result); template<bool _IsMove, input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out> requires (_IsMove ? indirectly_movable<_Iter, _Out> : indirectly_copyable<_Iter, _Out>) constexpr __conditional_t<_IsMove, move_result<_Iter, _Out>, copy_result<_Iter, _Out>> __copy_or_move(_Iter __first, _Sent __last, _Out __result) { using __detail::__is_move_iterator; using __detail::__is_reverse_iterator; using __detail::__is_normal_iterator; if constexpr (__is_move_iterator<_Iter> && same_as<_Iter, _Sent>) { auto [__in, __out] = ranges::__copy_or_move<true>(std::move(__first).base(), std::move(__last).base(), std::move(__result)); return {move_iterator{std::move(__in)}, std::move(__out)}; } else if constexpr (__is_reverse_iterator<_Iter> && same_as<_Iter, _Sent> && __is_reverse_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move_backward<_IsMove>(std::move(__last).base(), std::move(__first).base(), std::move(__result).base()); return {reverse_iterator{std::move(__in)}, reverse_iterator{std::move(__out)}}; } else if constexpr (__is_normal_iterator<_Iter> && same_as<_Iter, _Sent>) { auto [__in,__out] = ranges::__copy_or_move<_IsMove>(__first.base(), __last.base(), std::move(__result)); return {decltype(__first){__in}, std::move(__out)}; } else if constexpr (__is_normal_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move<_IsMove>(std::move(__first), __last, __result.base()); return {std::move(__in), decltype(__result){__out}}; } else if constexpr (sized_sentinel_for<_Sent, _Iter>) { if (!std::__is_constant_evaluated()) { if constexpr (__memcpyable<_Iter, _Out>::__value) { using _ValueTypeI = iter_value_t<_Iter>; static_assert(_IsMove ? is_move_assignable_v<_ValueTypeI> : is_copy_assignable_v<_ValueTypeI>); auto __num = __last - __first; if (__num) __builtin_memmove(__result, __first, sizeof(_ValueTypeI) * __num); return {__first + __num, __result + __num}; } } for (auto __n = __last - __first; __n > 0; --__n) { if constexpr (_IsMove) *__result = std::move(*__first); else *__result = *__first; ++__first; ++__result; } return {std::move(__first), std::move(__result)}; } else { while (__first != __last) { if constexpr (_IsMove) *__result = std::move(*__first); else *__result = *__first; ++__first; ++__result; } return {std::move(__first), std::move(__result)}; } } struct __copy_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out> requires indirectly_copyable<_Iter, _Out> constexpr copy_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result) const { return ranges::__copy_or_move<false>(std::move(__first), std::move(__last), std::move(__result)); } template<input_range _Range, weakly_incrementable _Out> requires indirectly_copyable<iterator_t<_Range>, _Out> constexpr copy_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __copy_fn copy{}; struct __move_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out> requires indirectly_movable<_Iter, _Out> constexpr move_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result) const { return ranges::__copy_or_move<true>(std::move(__first), std::move(__last), std::move(__result)); } template<input_range _Range, weakly_incrementable _Out> requires indirectly_movable<iterator_t<_Range>, _Out> constexpr move_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __move_fn move{}; template<bool _IsMove, bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, bidirectional_iterator _Out> requires (_IsMove ? indirectly_movable<_Iter, _Out> : indirectly_copyable<_Iter, _Out>) constexpr __conditional_t<_IsMove, move_backward_result<_Iter, _Out>, copy_backward_result<_Iter, _Out>> __copy_or_move_backward(_Iter __first, _Sent __last, _Out __result) { using __detail::__is_reverse_iterator; using __detail::__is_normal_iterator; if constexpr (__is_reverse_iterator<_Iter> && same_as<_Iter, _Sent> && __is_reverse_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move<_IsMove>(std::move(__last).base(), std::move(__first).base(), std::move(__result).base()); return {reverse_iterator{std::move(__in)}, reverse_iterator{std::move(__out)}}; } else if constexpr (__is_normal_iterator<_Iter> && same_as<_Iter, _Sent>) { auto [__in,__out] = ranges::__copy_or_move_backward<_IsMove>(__first.base(), __last.base(), std::move(__result)); return {decltype(__first){__in}, std::move(__out)}; } else if constexpr (__is_normal_iterator<_Out>) { auto [__in,__out] = ranges::__copy_or_move_backward<_IsMove>(std::move(__first), std::move(__last), __result.base()); return {std::move(__in), decltype(__result){__out}}; } else if constexpr (sized_sentinel_for<_Sent, _Iter>) { if (!std::__is_constant_evaluated()) { if constexpr (__memcpyable<_Out, _Iter>::__value) { using _ValueTypeI = iter_value_t<_Iter>; static_assert(_IsMove ? is_move_assignable_v<_ValueTypeI> : is_copy_assignable_v<_ValueTypeI>); auto __num = __last - __first; if (__num) __builtin_memmove(__result - __num, __first, sizeof(_ValueTypeI) * __num); return {__first + __num, __result - __num}; } } auto __lasti = ranges::next(__first, __last); auto __tail = __lasti; for (auto __n = __last - __first; __n > 0; --__n) { --__tail; --__result; if constexpr (_IsMove) *__result = std::move(*__tail); else *__result = *__tail; } return {std::move(__lasti), std::move(__result)}; } else { auto __lasti = ranges::next(__first, __last); auto __tail = __lasti; while (__first != __tail) { --__tail; --__result; if constexpr (_IsMove) *__result = std::move(*__tail); else *__result = *__tail; } return {std::move(__lasti), std::move(__result)}; } } struct __copy_backward_fn { template<bidirectional_iterator _Iter1, sentinel_for<_Iter1> _Sent1, bidirectional_iterator _Iter2> requires indirectly_copyable<_Iter1, _Iter2> constexpr copy_backward_result<_Iter1, _Iter2> operator()(_Iter1 __first, _Sent1 __last, _Iter2 __result) const { return ranges::__copy_or_move_backward<false>(std::move(__first), std::move(__last), std::move(__result)); } template<bidirectional_range _Range, bidirectional_iterator _Iter> requires indirectly_copyable<iterator_t<_Range>, _Iter> constexpr copy_backward_result<borrowed_iterator_t<_Range>, _Iter> operator()(_Range&& __r, _Iter __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __copy_backward_fn copy_backward{}; struct __move_backward_fn { template<bidirectional_iterator _Iter1, sentinel_for<_Iter1> _Sent1, bidirectional_iterator _Iter2> requires indirectly_movable<_Iter1, _Iter2> constexpr move_backward_result<_Iter1, _Iter2> operator()(_Iter1 __first, _Sent1 __last, _Iter2 __result) const { return ranges::__copy_or_move_backward<true>(std::move(__first), std::move(__last), std::move(__result)); } template<bidirectional_range _Range, bidirectional_iterator _Iter> requires indirectly_movable<iterator_t<_Range>, _Iter> constexpr move_backward_result<borrowed_iterator_t<_Range>, _Iter> operator()(_Range&& __r, _Iter __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __move_backward_fn move_backward{}; template<typename _Iter, typename _Out> using copy_n_result = in_out_result<_Iter, _Out>; struct __copy_n_fn { template<input_iterator _Iter, weakly_incrementable _Out> requires indirectly_copyable<_Iter, _Out> constexpr copy_n_result<_Iter, _Out> operator()(_Iter __first, iter_difference_t<_Iter> __n, _Out __result) const { if constexpr (random_access_iterator<_Iter>) { if (__n > 0) return ranges::copy(__first, __first + __n, std::move(__result)); } else { for (; __n > 0; --__n, (void)++__result, (void)++__first) *__result = *__first; } return {std::move(__first), std::move(__result)}; } }; inline constexpr __copy_n_fn copy_n{}; struct __fill_n_fn { template<typename _Tp, output_iterator<const _Tp&> _Out> constexpr _Out operator()(_Out __first, iter_difference_t<_Out> __n, const _Tp& __value) const { if (__n <= 0) return __first; if constexpr (is_scalar_v<_Tp>) { if constexpr (is_pointer_v<_Out> && __is_byte<remove_pointer_t<_Out>>::__value && integral<_Tp>) { if (!std::__is_constant_evaluated()) { __builtin_memset(__first, static_cast<unsigned char>(__value), __n); return __first + __n; } } const auto __tmp = __value; for (; __n > 0; --__n, (void)++__first) *__first = __tmp; return __first; } else { for (; __n > 0; --__n, (void)++__first) *__first = __value; return __first; } } }; inline constexpr __fill_n_fn fill_n{}; struct __fill_fn { template<typename _Tp, output_iterator<const _Tp&> _Out, sentinel_for<_Out> _Sent> constexpr _Out operator()(_Out __first, _Sent __last, const _Tp& __value) const { if constexpr (sized_sentinel_for<_Sent, _Out>) { const auto __len = __last - __first; return ranges::fill_n(__first, __len, __value); } else if constexpr (is_scalar_v<_Tp>) { const auto __tmp = __value; for (; __first != __last; ++__first) *__first = __tmp; return __first; } else { for (; __first != __last; ++__first) *__first = __value; return __first; } } template<typename _Tp, output_range<const _Tp&> _Range> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __value) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value); } }; inline constexpr __fill_fn fill{}; } } # 37 "/usr/include/c++/13/bits/ranges_uninitialized.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { namespace __detail { template<typename _Tp> constexpr void* __voidify(_Tp& __obj) noexcept { return const_cast<void*> (static_cast<const volatile void*>(std::__addressof(__obj))); } template<typename _Iter> concept __nothrow_input_iterator = (input_iterator<_Iter> && is_lvalue_reference_v<iter_reference_t<_Iter>> && same_as<remove_cvref_t<iter_reference_t<_Iter>>, iter_value_t<_Iter>>); template<typename _Sent, typename _Iter> concept __nothrow_sentinel = sentinel_for<_Sent, _Iter>; template<typename _Range> concept __nothrow_input_range = (range<_Range> && __nothrow_input_iterator<iterator_t<_Range>> && __nothrow_sentinel<sentinel_t<_Range>, iterator_t<_Range>>); template<typename _Iter> concept __nothrow_forward_iterator = (__nothrow_input_iterator<_Iter> && forward_iterator<_Iter> && __nothrow_sentinel<_Iter, _Iter>); template<typename _Range> concept __nothrow_forward_range = (__nothrow_input_range<_Range> && __nothrow_forward_iterator<iterator_t<_Range>>); } struct __destroy_fn { template<__detail::__nothrow_input_iterator _Iter, __detail::__nothrow_sentinel<_Iter> _Sent> requires destructible<iter_value_t<_Iter>> constexpr _Iter operator()(_Iter __first, _Sent __last) const noexcept; template<__detail::__nothrow_input_range _Range> requires destructible<range_value_t<_Range>> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r) const noexcept; }; inline constexpr __destroy_fn destroy{}; namespace __detail { template<typename _Iter> requires destructible<iter_value_t<_Iter>> struct _DestroyGuard { private: _Iter _M_first; const _Iter* _M_cur; public: explicit _DestroyGuard(const _Iter& __iter) : _M_first(__iter), _M_cur(std::__addressof(__iter)) { } void release() noexcept { _M_cur = nullptr; } ~_DestroyGuard() { if (_M_cur != nullptr) ranges::destroy(std::move(_M_first), *_M_cur); } }; template<typename _Iter> requires destructible<iter_value_t<_Iter>> && is_trivially_destructible_v<iter_value_t<_Iter>> struct _DestroyGuard<_Iter> { explicit _DestroyGuard(const _Iter&) { } void release() noexcept { } }; } struct __uninitialized_default_construct_fn { template<__detail::__nothrow_forward_iterator _Iter, __detail::__nothrow_sentinel<_Iter> _Sent> requires default_initializable<iter_value_t<_Iter>> _Iter operator()(_Iter __first, _Sent __last) const { using _ValueType = remove_reference_t<iter_reference_t<_Iter>>; if constexpr (is_trivially_default_constructible_v<_ValueType>) return ranges::next(__first, __last); else { auto __guard = __detail::_DestroyGuard(__first); for (; __first != __last; ++__first) ::new (__detail::__voidify(*__first)) _ValueType; __guard.release(); return __first; } } template<__detail::__nothrow_forward_range _Range> requires default_initializable<range_value_t<_Range>> borrowed_iterator_t<_Range> operator()(_Range&& __r) const { return (*this)(ranges::begin(__r), ranges::end(__r)); } }; inline constexpr __uninitialized_default_construct_fn uninitialized_default_construct{}; struct __uninitialized_default_construct_n_fn { template<__detail::__nothrow_forward_iterator _Iter> requires default_initializable<iter_value_t<_Iter>> _Iter operator()(_Iter __first, iter_difference_t<_Iter> __n) const { using _ValueType = remove_reference_t<iter_reference_t<_Iter>>; if constexpr (is_trivially_default_constructible_v<_ValueType>) return ranges::next(__first, __n); else { auto __guard = __detail::_DestroyGuard(__first); for (; __n > 0; ++__first, (void) --__n) ::new (__detail::__voidify(*__first)) _ValueType; __guard.release(); return __first; } } }; inline constexpr __uninitialized_default_construct_n_fn uninitialized_default_construct_n; struct __uninitialized_value_construct_fn { template<__detail::__nothrow_forward_iterator _Iter, __detail::__nothrow_sentinel<_Iter> _Sent> requires default_initializable<iter_value_t<_Iter>> _Iter operator()(_Iter __first, _Sent __last) const { using _ValueType = remove_reference_t<iter_reference_t<_Iter>>; if constexpr (is_trivial_v<_ValueType> && is_copy_assignable_v<_ValueType>) return ranges::fill(__first, __last, _ValueType()); else { auto __guard = __detail::_DestroyGuard(__first); for (; __first != __last; ++__first) ::new (__detail::__voidify(*__first)) _ValueType(); __guard.release(); return __first; } } template<__detail::__nothrow_forward_range _Range> requires default_initializable<range_value_t<_Range>> borrowed_iterator_t<_Range> operator()(_Range&& __r) const { return (*this)(ranges::begin(__r), ranges::end(__r)); } }; inline constexpr __uninitialized_value_construct_fn uninitialized_value_construct{}; struct __uninitialized_value_construct_n_fn { template<__detail::__nothrow_forward_iterator _Iter> requires default_initializable<iter_value_t<_Iter>> _Iter operator()(_Iter __first, iter_difference_t<_Iter> __n) const { using _ValueType = remove_reference_t<iter_reference_t<_Iter>>; if constexpr (is_trivial_v<_ValueType> && is_copy_assignable_v<_ValueType>) return ranges::fill_n(__first, __n, _ValueType()); else { auto __guard = __detail::_DestroyGuard(__first); for (; __n > 0; ++__first, (void) --__n) ::new (__detail::__voidify(*__first)) _ValueType(); __guard.release(); return __first; } } }; inline constexpr __uninitialized_value_construct_n_fn uninitialized_value_construct_n; template<typename _Iter, typename _Out> using uninitialized_copy_result = in_out_result<_Iter, _Out>; struct __uninitialized_copy_fn { template<input_iterator _Iter, sentinel_for<_Iter> _ISent, __detail::__nothrow_forward_iterator _Out, __detail::__nothrow_sentinel<_Out> _OSent> requires constructible_from<iter_value_t<_Out>, iter_reference_t<_Iter>> uninitialized_copy_result<_Iter, _Out> operator()(_Iter __ifirst, _ISent __ilast, _Out __ofirst, _OSent __olast) const { using _OutType = remove_reference_t<iter_reference_t<_Out>>; if constexpr (sized_sentinel_for<_ISent, _Iter> && sized_sentinel_for<_OSent, _Out> && is_trivial_v<_OutType> && is_nothrow_assignable_v<_OutType&, iter_reference_t<_Iter>>) { auto __d1 = __ilast - __ifirst; auto __d2 = __olast - __ofirst; return ranges::copy_n(std::move(__ifirst), std::min(__d1, __d2), __ofirst); } else { auto __guard = __detail::_DestroyGuard(__ofirst); for (; __ifirst != __ilast && __ofirst != __olast; ++__ofirst, (void)++__ifirst) ::new (__detail::__voidify(*__ofirst)) _OutType(*__ifirst); __guard.release(); return {std::move(__ifirst), __ofirst}; } } template<input_range _IRange, __detail::__nothrow_forward_range _ORange> requires constructible_from<range_value_t<_ORange>, range_reference_t<_IRange>> uninitialized_copy_result<borrowed_iterator_t<_IRange>, borrowed_iterator_t<_ORange>> operator()(_IRange&& __inr, _ORange&& __outr) const { return (*this)(ranges::begin(__inr), ranges::end(__inr), ranges::begin(__outr), ranges::end(__outr)); } }; inline constexpr __uninitialized_copy_fn uninitialized_copy{}; template<typename _Iter, typename _Out> using uninitialized_copy_n_result = in_out_result<_Iter, _Out>; struct __uninitialized_copy_n_fn { template<input_iterator _Iter, __detail::__nothrow_forward_iterator _Out, __detail::__nothrow_sentinel<_Out> _Sent> requires constructible_from<iter_value_t<_Out>, iter_reference_t<_Iter>> uninitialized_copy_n_result<_Iter, _Out> operator()(_Iter __ifirst, iter_difference_t<_Iter> __n, _Out __ofirst, _Sent __olast) const { using _OutType = remove_reference_t<iter_reference_t<_Out>>; if constexpr (sized_sentinel_for<_Sent, _Out> && is_trivial_v<_OutType> && is_nothrow_assignable_v<_OutType&, iter_reference_t<_Iter>>) { auto __d = __olast - __ofirst; return ranges::copy_n(std::move(__ifirst), std::min(__n, __d), __ofirst); } else { auto __guard = __detail::_DestroyGuard(__ofirst); for (; __n > 0 && __ofirst != __olast; ++__ofirst, (void)++__ifirst, (void)--__n) ::new (__detail::__voidify(*__ofirst)) _OutType(*__ifirst); __guard.release(); return {std::move(__ifirst), __ofirst}; } } }; inline constexpr __uninitialized_copy_n_fn uninitialized_copy_n{}; template<typename _Iter, typename _Out> using uninitialized_move_result = in_out_result<_Iter, _Out>; struct __uninitialized_move_fn { template<input_iterator _Iter, sentinel_for<_Iter> _ISent, __detail::__nothrow_forward_iterator _Out, __detail::__nothrow_sentinel<_Out> _OSent> requires constructible_from<iter_value_t<_Out>, iter_rvalue_reference_t<_Iter>> uninitialized_move_result<_Iter, _Out> operator()(_Iter __ifirst, _ISent __ilast, _Out __ofirst, _OSent __olast) const { using _OutType = remove_reference_t<iter_reference_t<_Out>>; if constexpr (sized_sentinel_for<_ISent, _Iter> && sized_sentinel_for<_OSent, _Out> && is_trivial_v<_OutType> && is_nothrow_assignable_v<_OutType&, iter_rvalue_reference_t<_Iter>>) { auto __d1 = __ilast - __ifirst; auto __d2 = __olast - __ofirst; auto [__in, __out] = ranges::copy_n(std::make_move_iterator(std::move(__ifirst)), std::min(__d1, __d2), __ofirst); return {std::move(__in).base(), __out}; } else { auto __guard = __detail::_DestroyGuard(__ofirst); for (; __ifirst != __ilast && __ofirst != __olast; ++__ofirst, (void)++__ifirst) ::new (__detail::__voidify(*__ofirst)) _OutType(ranges::iter_move(__ifirst)); __guard.release(); return {std::move(__ifirst), __ofirst}; } } template<input_range _IRange, __detail::__nothrow_forward_range _ORange> requires constructible_from<range_value_t<_ORange>, range_rvalue_reference_t<_IRange>> uninitialized_move_result<borrowed_iterator_t<_IRange>, borrowed_iterator_t<_ORange>> operator()(_IRange&& __inr, _ORange&& __outr) const { return (*this)(ranges::begin(__inr), ranges::end(__inr), ranges::begin(__outr), ranges::end(__outr)); } }; inline constexpr __uninitialized_move_fn uninitialized_move{}; template<typename _Iter, typename _Out> using uninitialized_move_n_result = in_out_result<_Iter, _Out>; struct __uninitialized_move_n_fn { template<input_iterator _Iter, __detail::__nothrow_forward_iterator _Out, __detail::__nothrow_sentinel<_Out> _Sent> requires constructible_from<iter_value_t<_Out>, iter_rvalue_reference_t<_Iter>> uninitialized_move_n_result<_Iter, _Out> operator()(_Iter __ifirst, iter_difference_t<_Iter> __n, _Out __ofirst, _Sent __olast) const { using _OutType = remove_reference_t<iter_reference_t<_Out>>; if constexpr (sized_sentinel_for<_Sent, _Out> && is_trivial_v<_OutType> && is_nothrow_assignable_v<_OutType&, iter_rvalue_reference_t<_Iter>>) { auto __d = __olast - __ofirst; auto [__in, __out] = ranges::copy_n(std::make_move_iterator(std::move(__ifirst)), std::min(__n, __d), __ofirst); return {std::move(__in).base(), __out}; } else { auto __guard = __detail::_DestroyGuard(__ofirst); for (; __n > 0 && __ofirst != __olast; ++__ofirst, (void)++__ifirst, (void)--__n) ::new (__detail::__voidify(*__ofirst)) _OutType(ranges::iter_move(__ifirst)); __guard.release(); return {std::move(__ifirst), __ofirst}; } } }; inline constexpr __uninitialized_move_n_fn uninitialized_move_n{}; struct __uninitialized_fill_fn { template<__detail::__nothrow_forward_iterator _Iter, __detail::__nothrow_sentinel<_Iter> _Sent, typename _Tp> requires constructible_from<iter_value_t<_Iter>, const _Tp&> _Iter operator()(_Iter __first, _Sent __last, const _Tp& __x) const { using _ValueType = remove_reference_t<iter_reference_t<_Iter>>; if constexpr (is_trivial_v<_ValueType> && is_nothrow_assignable_v<_ValueType&, const _Tp&>) return ranges::fill(__first, __last, __x); else { auto __guard = __detail::_DestroyGuard(__first); for (; __first != __last; ++__first) ::new (__detail::__voidify(*__first)) _ValueType(__x); __guard.release(); return __first; } } template<__detail::__nothrow_forward_range _Range, typename _Tp> requires constructible_from<range_value_t<_Range>, const _Tp&> borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __x) const { return (*this)(ranges::begin(__r), ranges::end(__r), __x); } }; inline constexpr __uninitialized_fill_fn uninitialized_fill{}; struct __uninitialized_fill_n_fn { template<__detail::__nothrow_forward_iterator _Iter, typename _Tp> requires constructible_from<iter_value_t<_Iter>, const _Tp&> _Iter operator()(_Iter __first, iter_difference_t<_Iter> __n, const _Tp& __x) const { using _ValueType = remove_reference_t<iter_reference_t<_Iter>>; if constexpr (is_trivial_v<_ValueType> && is_nothrow_assignable_v<_ValueType&, const _Tp&>) return ranges::fill_n(__first, __n, __x); else { auto __guard = __detail::_DestroyGuard(__first); for (; __n > 0; ++__first, (void)--__n) ::new (__detail::__voidify(*__first)) _ValueType(__x); __guard.release(); return __first; } } }; inline constexpr __uninitialized_fill_n_fn uninitialized_fill_n{}; struct __construct_at_fn { template<typename _Tp, typename... _Args> requires requires { ::new (std::declval<void*>()) _Tp(std::declval<_Args>()...); } constexpr _Tp* operator()(_Tp* __location, _Args&&... __args) const noexcept(noexcept(std::construct_at(__location, std::forward<_Args>(__args)...))) { return std::construct_at(__location, std::forward<_Args>(__args)...); } }; inline constexpr __construct_at_fn construct_at{}; struct __destroy_at_fn { template<destructible _Tp> constexpr void operator()(_Tp* __location) const noexcept { if constexpr (is_array_v<_Tp>) ranges::destroy(ranges::begin(*__location), ranges::end(*__location)); else __location->~_Tp(); } }; inline constexpr __destroy_at_fn destroy_at{}; template<__detail::__nothrow_input_iterator _Iter, __detail::__nothrow_sentinel<_Iter> _Sent> requires destructible<iter_value_t<_Iter>> constexpr _Iter __destroy_fn::operator()(_Iter __first, _Sent __last) const noexcept { if constexpr (is_trivially_destructible_v<iter_value_t<_Iter>>) return ranges::next(std::move(__first), __last); else { for (; __first != __last; ++__first) ranges::destroy_at(std::__addressof(*__first)); return __first; } } template<__detail::__nothrow_input_range _Range> requires destructible<range_value_t<_Range>> constexpr borrowed_iterator_t<_Range> __destroy_fn::operator()(_Range&& __r) const noexcept { return (*this)(ranges::begin(__r), ranges::end(__r)); } struct __destroy_n_fn { template<__detail::__nothrow_input_iterator _Iter> requires destructible<iter_value_t<_Iter>> constexpr _Iter operator()(_Iter __first, iter_difference_t<_Iter> __n) const noexcept { if constexpr (is_trivially_destructible_v<iter_value_t<_Iter>>) return ranges::next(std::move(__first), __n); else { for (; __n > 0; ++__first, (void)--__n) ranges::destroy_at(std::__addressof(*__first)); return __first; } } }; inline constexpr __destroy_n_fn destroy_n{}; } } # 91 "/usr/include/c++/13/memory" 2 3 # 101 "/usr/include/c++/13/memory" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 119 "/usr/include/c++/13/memory" 3 enum class pointer_safety { relaxed, preferred, strict }; inline void declare_reachable(void*) { } template <typename _Tp> inline _Tp* undeclare_reachable(_Tp* __p) { return __p; } inline void declare_no_pointers(char*, size_t) { } inline void undeclare_no_pointers(char*, size_t) { } inline pointer_safety get_pointer_safety() noexcept { return pointer_safety::relaxed; } } # 154 "/usr/include/c++/13/memory" 3 # 1 "/usr/include/c++/13/pstl/glue_memory_defs.h" 1 3 # 13 "/usr/include/c++/13/pstl/glue_memory_defs.h" 3 # 1 "/usr/include/c++/13/pstl/execution_defs.h" 1 3 # 15 "/usr/include/c++/13/pstl/execution_defs.h" 3 namespace __pstl { namespace execution { inline namespace v1 { class sequenced_policy { public: static constexpr std::false_type __allow_unsequenced() { return std::false_type{}; } static constexpr std::false_type __allow_vector() { return std::false_type{}; } static constexpr std::false_type __allow_parallel() { return std::false_type{}; } }; class parallel_policy { public: static constexpr std::false_type __allow_unsequenced() { return std::false_type{}; } static constexpr std::false_type __allow_vector() { return std::false_type{}; } static constexpr std::true_type __allow_parallel() { return std::true_type{}; } }; class parallel_unsequenced_policy { public: static constexpr std::true_type __allow_unsequenced() { return std::true_type{}; } static constexpr std::true_type __allow_vector() { return std::true_type{}; } static constexpr std::true_type __allow_parallel() { return std::true_type{}; } }; class unsequenced_policy { public: static constexpr std::true_type __allow_unsequenced() { return std::true_type{}; } static constexpr std::true_type __allow_vector() { return std::true_type{}; } static constexpr std::false_type __allow_parallel() { return std::false_type{}; } }; inline constexpr sequenced_policy seq{}; inline constexpr parallel_policy par{}; inline constexpr parallel_unsequenced_policy par_unseq{}; inline constexpr unsequenced_policy unseq{}; template <class _Tp> struct is_execution_policy : std::false_type { }; template <> struct is_execution_policy<__pstl::execution::sequenced_policy> : std::true_type { }; template <> struct is_execution_policy<__pstl::execution::parallel_policy> : std::true_type { }; template <> struct is_execution_policy<__pstl::execution::parallel_unsequenced_policy> : std::true_type { }; template <> struct is_execution_policy<__pstl::execution::unsequenced_policy> : std::true_type { }; template <class _Tp> constexpr bool is_execution_policy_v = __pstl::execution::is_execution_policy<_Tp>::value; } } namespace __internal { template <class _ExecPolicy, class _Tp> using __enable_if_execution_policy = typename std::enable_if<__pstl::execution::is_execution_policy<std::__remove_cvref_t<_ExecPolicy>>::value, _Tp>::type; } } # 14 "/usr/include/c++/13/pstl/glue_memory_defs.h" 2 3 namespace std { template <class _ExecutionPolicy, class _InputIterator, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_copy(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); template <class _ExecutionPolicy, class _InputIterator, class _Size, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_copy_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); template <class _ExecutionPolicy, class _InputIterator, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_move(_ExecutionPolicy&& __exec, _InputIterator __first, _InputIterator __last, _ForwardIterator __result); template <class _ExecutionPolicy, class _InputIterator, class _Size, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_move_n(_ExecutionPolicy&& __exec, _InputIterator __first, _Size __n, _ForwardIterator __result); template <class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> uninitialized_fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator, class _Size, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> destroy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Size> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> destroy_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> uninitialized_default_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Size> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_default_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> uninitialized_value_construct(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Size> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> uninitialized_value_construct_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n); } # 155 "/usr/include/c++/13/memory" 2 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/cstdint.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/cstdint.hpp" 3 4 # 1 "/usr/include/c++/13/cstdint" 1 3 4 # 32 "/usr/include/c++/13/cstdint" 3 4 # 33 "/usr/include/c++/13/cstdint" 3 # 48 "/usr/include/c++/13/cstdint" 3 namespace std { using ::int8_t; using ::int16_t; using ::int32_t; using ::int64_t; using ::int_fast8_t; using ::int_fast16_t; using ::int_fast32_t; using ::int_fast64_t; using ::int_least8_t; using ::int_least16_t; using ::int_least32_t; using ::int_least64_t; using ::intmax_t; using ::intptr_t; using ::uint8_t; using ::uint16_t; using ::uint32_t; using ::uint64_t; using ::uint_fast8_t; using ::uint_fast16_t; using ::uint_fast32_t; using ::uint_fast64_t; using ::uint_least8_t; using ::uint_least16_t; using ::uint_least32_t; using ::uint_least64_t; using ::uintmax_t; using ::uintptr_t; # 142 "/usr/include/c++/13/cstdint" 3 } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/cstdint.hpp" 2 3 4 namespace boost { namespace asio { using std::int16_t; using std::int_least16_t; using std::uint16_t; using std::uint_least16_t; using std::int32_t; using std::int_least32_t; using std::uint32_t; using std::uint_least32_t; using std::int64_t; using std::int_least64_t; using std::uint64_t; using std::uint_least64_t; using std::uintptr_t; using std::uintmax_t; # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/cstdint.hpp" 3 4 } } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_exception.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_exception.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/exception.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/exception.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/current_function.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/current_function.hpp" 3 4 namespace boost { namespace detail { inline void current_function_helper() { # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/current_function.hpp" 3 4 } } } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/workaround.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 3 # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 3 namespace boost { using ::int8_t; using ::int_least8_t; using ::int_fast8_t; using ::uint8_t; using ::uint_least8_t; using ::uint_fast8_t; using ::int16_t; using ::int_least16_t; using ::int_fast16_t; using ::uint16_t; using ::uint_least16_t; using ::uint_fast16_t; using ::int32_t; using ::int_least32_t; using ::int_fast32_t; using ::uint32_t; using ::uint_least32_t; using ::uint_fast32_t; using ::int64_t; using ::int_least64_t; using ::int_fast64_t; using ::uint64_t; using ::uint_least64_t; using ::uint_fast64_t; using ::intmax_t; using ::uintmax_t; } # 387 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 3 namespace boost { using ::intptr_t; using ::uintptr_t; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 2 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 2 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 1 "/usr/include/string.h" 1 3 4 # 26 "/usr/include/string.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 27 "/usr/include/string.h" 2 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 34 "/usr/include/string.h" 2 3 4 # 43 "/usr/include/string.h" 3 4 extern void *memcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *memmove (void *__dest, const void *__src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *memccpy (void *__restrict __dest, const void *__restrict __src, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))) __attribute__ ((__access__ (__write_only__, 1, 4))); extern void *memset (void *__s, int __c, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int memcmp (const void *__s1, const void *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 80 "/usr/include/string.h" 3 4 extern int __memcmpeq (const void *__s1, const void *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern void *memchr (void *__s, int __c, size_t __n) noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const void *memchr (const void *__s, int __c, size_t __n) noexcept (true) __asm ("memchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 105 "/usr/include/string.h" 3 4 } # 115 "/usr/include/string.h" 3 4 extern "C++" void *rawmemchr (void *__s, int __c) noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const void *rawmemchr (const void *__s, int __c) noexcept (true) __asm ("rawmemchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" void *memrchr (void *__s, int __c, size_t __n) noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_only__, 1, 3))); extern "C++" const void *memrchr (const void *__s, int __c, size_t __n) noexcept (true) __asm ("memrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_only__, 1, 3))); # 141 "/usr/include/string.h" 3 4 extern char *strcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strcat (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strncat (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int strcmp (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncmp (const char *__s1, const char *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcoll (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strxfrm (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 1, 3))); extern int strcoll_l (const char *__s1, const char *__s2, locale_t __l) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern size_t strxfrm_l (char *__dest, const char *__src, size_t __n, locale_t __l) noexcept (true) __attribute__ ((__nonnull__ (2, 4))) __attribute__ ((__access__ (__write_only__, 1, 3))); extern char *strdup (const char *__s) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); extern char *strndup (const char *__string, size_t __n) noexcept (true) __attribute__ ((__malloc__)) __attribute__ ((__nonnull__ (1))); # 224 "/usr/include/string.h" 3 4 extern "C++" { extern char *strchr (char *__s, int __c) noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *strchr (const char *__s, int __c) noexcept (true) __asm ("strchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 244 "/usr/include/string.h" 3 4 } extern "C++" { extern char *strrchr (char *__s, int __c) noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *strrchr (const char *__s, int __c) noexcept (true) __asm ("strrchr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 271 "/usr/include/string.h" 3 4 } # 281 "/usr/include/string.h" 3 4 extern "C++" char *strchrnul (char *__s, int __c) noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern "C++" const char *strchrnul (const char *__s, int __c) noexcept (true) __asm ("strchrnul") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 293 "/usr/include/string.h" 3 4 extern size_t strcspn (const char *__s, const char *__reject) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern size_t strspn (const char *__s, const char *__accept) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" { extern char *strpbrk (char *__s, const char *__accept) noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern const char *strpbrk (const char *__s, const char *__accept) noexcept (true) __asm ("strpbrk") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 321 "/usr/include/string.h" 3 4 } extern "C++" { extern char *strstr (char *__haystack, const char *__needle) noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern const char *strstr (const char *__haystack, const char *__needle) noexcept (true) __asm ("strstr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 348 "/usr/include/string.h" 3 4 } extern char *strtok (char *__restrict __s, const char *__restrict __delim) noexcept (true) __attribute__ ((__nonnull__ (2))); extern char *__strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); extern char *strtok_r (char *__restrict __s, const char *__restrict __delim, char **__restrict __save_ptr) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); extern "C++" char *strcasestr (char *__haystack, const char *__needle) noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern "C++" const char *strcasestr (const char *__haystack, const char *__needle) noexcept (true) __asm ("strcasestr") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); # 389 "/usr/include/string.h" 3 4 extern void *memmem (const void *__haystack, size_t __haystacklen, const void *__needle, size_t __needlelen) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 3))) __attribute__ ((__access__ (__read_only__, 1, 2))) __attribute__ ((__access__ (__read_only__, 3, 4))); extern void *__mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void *mempcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern size_t strlen (const char *__s) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern size_t strnlen (const char *__string, size_t __maxlen) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern char *strerror (int __errnum) noexcept (true); # 444 "/usr/include/string.h" 3 4 extern char *strerror_r (int __errnum, char *__buf, size_t __buflen) noexcept (true) __attribute__ ((__nonnull__ (2))) __attribute__ ((__access__ (__write_only__, 2, 3))); extern const char *strerrordesc_np (int __err) noexcept (true); extern const char *strerrorname_np (int __err) noexcept (true); extern char *strerror_l (int __errnum, locale_t __l) noexcept (true); # 1 "/usr/include/strings.h" 1 3 4 # 23 "/usr/include/strings.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 24 "/usr/include/strings.h" 2 3 4 extern "C" { extern int bcmp (const void *__s1, const void *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern void bcopy (const void *__src, void *__dest, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern void bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))); extern "C++" { extern char *index (char *__s, int __c) noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *index (const char *__s, int __c) noexcept (true) __asm ("index") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 66 "/usr/include/strings.h" 3 4 } extern "C++" { extern char *rindex (char *__s, int __c) noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); extern const char *rindex (const char *__s, int __c) noexcept (true) __asm ("rindex") __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1))); # 94 "/usr/include/strings.h" 3 4 } # 104 "/usr/include/strings.h" 3 4 extern int ffs (int __i) noexcept (true) __attribute__ ((__const__)); extern int ffsl (long int __l) noexcept (true) __attribute__ ((__const__)); __extension__ extern int ffsll (long long int __ll) noexcept (true) __attribute__ ((__const__)); extern int strcasecmp (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strncasecmp (const char *__s1, const char *__s2, size_t __n) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern int strcasecmp_l (const char *__s1, const char *__s2, locale_t __loc) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 3))); extern int strncasecmp_l (const char *__s1, const char *__s2, size_t __n, locale_t __loc) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2, 4))); } # 463 "/usr/include/string.h" 2 3 4 extern void explicit_bzero (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__write_only__, 1, 2))); extern char *strsep (char **__restrict __stringp, const char *__restrict __delim) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *strsignal (int __sig) noexcept (true); extern const char *sigabbrev_np (int __sig) noexcept (true); extern const char *sigdescr_np (int __sig) noexcept (true); extern char *__stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *__stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern char *stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int strverscmp (const char *__s1, const char *__s2) noexcept (true) __attribute__ ((__pure__)) __attribute__ ((__nonnull__ (1, 2))); extern char *strfry (char *__string) noexcept (true) __attribute__ ((__nonnull__ (1))); extern void *memfrob (void *__s, size_t __n) noexcept (true) __attribute__ ((__nonnull__ (1))) __attribute__ ((__access__ (__read_write__, 1, 2))); extern "C++" char *basename (char *__filename) noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); extern "C++" const char *basename (const char *__filename) noexcept (true) __asm ("basename") __attribute__ ((__nonnull__ (1))); # 539 "/usr/include/string.h" 3 4 } # 43 "/usr/include/c++/13/cstring" 2 3 # 71 "/usr/include/c++/13/cstring" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::memchr; using ::memcmp; using ::memcpy; using ::memmove; using ::memset; using ::strcat; using ::strcmp; using ::strcoll; using ::strcpy; using ::strcspn; using ::strerror; using ::strlen; using ::strncat; using ::strncmp; using ::strncpy; using ::strspn; using ::strtok; using ::strxfrm; using ::strchr; using ::strpbrk; using ::strrchr; using ::strstr; # 122 "/usr/include/c++/13/cstring" 3 } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 2 3 4 # 1 "/usr/include/c++/13/source_location" 1 3 4 # 35 "/usr/include/c++/13/source_location" 3 4 namespace std { struct source_location { private: using uint_least32_t = unsigned int; struct __impl { const char* _M_file_name; const char* _M_function_name; unsigned _M_line; unsigned _M_column; }; using __builtin_ret_type = decltype(__builtin_source_location()); public: static consteval source_location current(__builtin_ret_type __p = __builtin_source_location()) noexcept { source_location __ret; __ret._M_impl = static_cast <const __impl*>(__p); return __ret; } constexpr source_location() noexcept { } constexpr uint_least32_t line() const noexcept { return _M_impl ? _M_impl->_M_line : 0u; } constexpr uint_least32_t column() const noexcept { return _M_impl ? _M_impl->_M_column : 0u; } constexpr const char* file_name() const noexcept { return _M_impl ? _M_impl->_M_file_name : ""; } constexpr const char* function_name() const noexcept { return _M_impl ? _M_impl->_M_function_name : ""; } private: const __impl* _M_impl = nullptr; }; } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 2 3 4 namespace boost { struct source_location { private: char const * file_; char const * function_; boost::uint_least32_t line_; boost::uint_least32_t column_; public: constexpr source_location() noexcept: file_( "" ), function_( "" ), line_( 0 ), column_( 0 ) { } constexpr source_location( char const * file, boost::uint_least32_t ln, char const * function, boost::uint_least32_t col = 0 ) noexcept: file_( file ), function_( function ), line_( ln ), column_( col ) { } constexpr source_location( std::source_location const& loc ) noexcept: file_( loc.file_name() ), function_( loc.function_name() ), line_( loc.line() ), column_( loc.column() ) { } constexpr char const * file_name() const noexcept { return file_; } constexpr char const * function_name() const noexcept { return function_; } constexpr boost::uint_least32_t line() const noexcept { return line_; } constexpr boost::uint_least32_t column() const noexcept { return column_; } # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert/source_location.hpp" 3 4 std::string to_string() const { unsigned long ln = line(); if( ln == 0 ) { return "(unknown source location)"; } std::string r = file_name(); char buffer[ 16 ]; std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), ":%lu", ln); r += buffer; unsigned long co = column(); if( co ) { std::snprintf(buffer, sizeof(buffer)/sizeof(buffer[0]), ":%lu", co); r += buffer; } char const* fn = function_name(); if( *fn != 0 ) { r += " in function '"; r += fn; r += '\''; } return r; } inline friend bool operator==( source_location const& s1, source_location const& s2 ) noexcept { return std::strcmp( s1.file_, s2.file_ ) == 0 && std::strcmp( s1.function_, s2.function_ ) == 0 && s1.line_ == s2.line_ && s1.column_ == s2.column_; } inline friend bool operator!=( source_location const& s1, source_location const& s2 ) noexcept { return !( s1 == s2 ); } }; template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ostream<E, T> & os, source_location const & loc ) { os << loc.to_string(); return os; } } # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/exception.hpp" 2 3 4 namespace boost { template <class T> class shared_ptr; } namespace boost { namespace exception_detail { using boost::shared_ptr; } } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/exception.hpp" 3 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/exception.hpp" 3 namespace boost { namespace exception_detail { template <class T> class refcount_ptr { public: refcount_ptr(): px_(0) { } ~refcount_ptr() { release(); } refcount_ptr( refcount_ptr const & x ): px_(x.px_) { add_ref(); } refcount_ptr & operator=( refcount_ptr const & x ) { adopt(x.px_); return *this; } void adopt( T * px ) { release(); px_=px; add_ref(); } T * get() const { return px_; } private: T * px_; void add_ref() { if( px_ ) px_->add_ref(); } void release() { if( px_ && px_->release() ) px_=0; } }; } template <class Tag,class T> class error_info; typedef error_info<struct throw_function_,char const *> throw_function; typedef error_info<struct throw_file_,char const *> throw_file; typedef error_info<struct throw_line_,int> throw_line; typedef error_info<struct throw_column_,int> throw_column; template <> class error_info<throw_function_,char const *> { public: typedef char const * value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; template <> class error_info<throw_file_,char const *> { public: typedef char const * value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; template <> class error_info<throw_line_,int> { public: typedef int value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; template <> class error_info<throw_column_,int> { public: typedef int value_type; value_type v_; explicit error_info( value_type v ): v_(v) { } }; class __attribute__((__visibility__("default"))) exception; namespace exception_detail { class error_info_base; struct type_info_; struct error_info_container { virtual char const * diagnostic_information( char const * ) const = 0; virtual shared_ptr<error_info_base> get( type_info_ const & ) const = 0; virtual void set( shared_ptr<error_info_base> const &, type_info_ const & ) = 0; virtual void add_ref() const = 0; virtual bool release() const = 0; virtual refcount_ptr<exception_detail::error_info_container> clone() const = 0; protected: ~error_info_container() noexcept { } }; template <class> struct get_info; template <> struct get_info<throw_function>; template <> struct get_info<throw_file>; template <> struct get_info<throw_line>; template <> struct get_info<throw_column>; template <class> struct set_info_rv; template <> struct set_info_rv<throw_function>; template <> struct set_info_rv<throw_file>; template <> struct set_info_rv<throw_line>; template <> struct set_info_rv<throw_column>; char const * get_diagnostic_information( exception const &, char const * ); void copy_boost_exception( exception *, exception const * ); template <class E,class Tag,class T> E const & set_info( E const &, error_info<Tag,T> const & ); template <class E> E const & set_info( E const &, throw_function const & ); template <class E> E const & set_info( E const &, throw_file const & ); template <class E> E const & set_info( E const &, throw_line const & ); template <class E> E const & set_info( E const &, throw_column const & ); boost::source_location get_exception_throw_location( exception const & ); } class __attribute__((__visibility__("default"))) exception { public: template <class Tag> void set( typename Tag::type const & ); template <class Tag> typename Tag::type const * get() const; protected: exception(): throw_function_(0), throw_file_(0), throw_line_(-1), throw_column_(-1) { } # 281 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/exception.hpp" 3 virtual ~exception() noexcept = 0 ; private: template <class E> friend E const & exception_detail::set_info( E const &, throw_function const & ); template <class E> friend E const & exception_detail::set_info( E const &, throw_file const & ); template <class E> friend E const & exception_detail::set_info( E const &, throw_line const & ); template <class E> friend E const & exception_detail::set_info( E const &, throw_column const & ); template <class E,class Tag,class T> friend E const & exception_detail::set_info( E const &, error_info<Tag,T> const & ); friend char const * exception_detail::get_diagnostic_information( exception const &, char const * ); friend boost::source_location exception_detail::get_exception_throw_location( exception const & ); template <class> friend struct exception_detail::get_info; friend struct exception_detail::get_info<throw_function>; friend struct exception_detail::get_info<throw_file>; friend struct exception_detail::get_info<throw_line>; friend struct exception_detail::get_info<throw_column>; template <class> friend struct exception_detail::set_info_rv; friend struct exception_detail::set_info_rv<throw_function>; friend struct exception_detail::set_info_rv<throw_file>; friend struct exception_detail::set_info_rv<throw_line>; friend struct exception_detail::set_info_rv<throw_column>; friend void exception_detail::copy_boost_exception( exception *, exception const * ); mutable exception_detail::refcount_ptr<exception_detail::error_info_container> data_; mutable char const * throw_function_; mutable char const * throw_file_; mutable int throw_line_; mutable int throw_column_; }; inline exception:: ~exception() noexcept { } namespace exception_detail { template <class E> E const & set_info( E const & x, throw_function const & y ) { x.throw_function_=y.v_; return x; } template <class E> E const & set_info( E const & x, throw_file const & y ) { x.throw_file_=y.v_; return x; } template <class E> E const & set_info( E const & x, throw_line const & y ) { x.throw_line_=y.v_; return x; } template <class E> E const & set_info( E const & x, throw_column const & y ) { x.throw_column_=y.v_; return x; } template <> struct set_info_rv<throw_column> { template <class E> static E const & set( E const & x, throw_column && y ) { x.throw_column_=y.v_; return x; } }; inline boost::source_location get_exception_throw_location( exception const & x ) { return boost::source_location( x.throw_file_? x.throw_file_: "", x.throw_line_ >= 0? x.throw_line_: 0, x.throw_function_? x.throw_function_: "", x.throw_column_ >= 0? x.throw_column_: 0 ); } } namespace exception_detail { template <class T> struct __attribute__((__visibility__("default"))) error_info_injector: public T, public exception { explicit error_info_injector( T const & x ): T(x) { } ~error_info_injector() noexcept { } }; struct large_size { char c[256]; }; large_size dispatch_boost_exception( exception const * ); struct small_size { }; small_size dispatch_boost_exception( void const * ); template <class,int> struct enable_error_info_helper; template <class T> struct enable_error_info_helper<T,sizeof(large_size)> { typedef T type; }; template <class T> struct enable_error_info_helper<T,sizeof(small_size)> { typedef error_info_injector<T> type; }; template <class T> struct enable_error_info_return_type { typedef typename enable_error_info_helper<T,sizeof(exception_detail::dispatch_boost_exception(static_cast<T *>(0)))>::type type; }; } template <class T> inline typename exception_detail::enable_error_info_return_type<T>::type enable_error_info( T const & x ) { typedef typename exception_detail::enable_error_info_return_type<T>::type rt; return rt(x); } namespace exception_detail { class __attribute__((__visibility__("default"))) clone_base { public: virtual clone_base const * clone() const = 0; virtual void rethrow() const = 0; virtual ~clone_base() noexcept { } }; inline void copy_boost_exception( exception * a, exception const * b ) { refcount_ptr<error_info_container> data; if( error_info_container * d=b->data_.get() ) data = d->clone(); a->throw_file_ = b->throw_file_; a->throw_line_ = b->throw_line_; a->throw_function_ = b->throw_function_; a->throw_column_ = b->throw_column_; a->data_ = data; } inline void copy_boost_exception( void *, void const * ) { } template <class T> class __attribute__((__visibility__("default"))) clone_impl: public T, public virtual clone_base { struct clone_tag { }; clone_impl( clone_impl const & x, clone_tag ): T(x) { copy_boost_exception(this,&x); } public: explicit clone_impl( T const & x ): T(x) { copy_boost_exception(this,&x); } ~clone_impl() noexcept { } private: clone_base const * clone() const { return new clone_impl(*this,clone_tag()); } void rethrow() const { throw*this; } }; } template <class T> inline exception_detail::clone_impl<T> enable_current_exception( T const & x ) { return exception_detail::clone_impl<T>(x); } } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 2 3 4 # 1 "/usr/include/c++/13/utility" 1 3 4 # 58 "/usr/include/c++/13/utility" 3 4 # 59 "/usr/include/c++/13/utility" 3 # 68 "/usr/include/c++/13/utility" 3 # 1 "/usr/include/c++/13/bits/stl_relops.h" 1 3 # 62 "/usr/include/c++/13/bits/stl_relops.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace rel_ops { # 86 "/usr/include/c++/13/bits/stl_relops.h" 3 template <class _Tp> inline bool operator!=(const _Tp& __x, const _Tp& __y) { return !(__x == __y); } # 99 "/usr/include/c++/13/bits/stl_relops.h" 3 template <class _Tp> inline bool operator>(const _Tp& __x, const _Tp& __y) { return __y < __x; } # 112 "/usr/include/c++/13/bits/stl_relops.h" 3 template <class _Tp> inline bool operator<=(const _Tp& __x, const _Tp& __y) { return !(__y < __x); } # 125 "/usr/include/c++/13/bits/stl_relops.h" 3 template <class _Tp> inline bool operator>=(const _Tp& __x, const _Tp& __y) { return !(__x < __y); } } } # 69 "/usr/include/c++/13/utility" 2 3 # 82 "/usr/include/c++/13/utility" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 94 "/usr/include/c++/13/utility" 3 template <typename _Tp, typename _Up = _Tp> constexpr inline _Tp exchange(_Tp& __obj, _Up&& __new_val) noexcept(__and_<is_nothrow_move_constructible<_Tp>, is_nothrow_assignable<_Tp&, _Up>>::value) { return std::__exchange(__obj, std::forward<_Up>(__new_val)); } template<typename _Tp> [[nodiscard]] constexpr add_const_t<_Tp>& as_const(_Tp& __t) noexcept { return __t; } template<typename _Tp> void as_const(const _Tp&&) = delete; template<typename _Tp, typename _Up> constexpr bool cmp_equal(_Tp __t, _Up __u) noexcept { static_assert(__is_standard_integer<_Tp>::value); static_assert(__is_standard_integer<_Up>::value); if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>) return __t == __u; else if constexpr (is_signed_v<_Tp>) return __t >= 0 && make_unsigned_t<_Tp>(__t) == __u; else return __u >= 0 && __t == make_unsigned_t<_Up>(__u); } template<typename _Tp, typename _Up> constexpr bool cmp_not_equal(_Tp __t, _Up __u) noexcept { return !std::cmp_equal(__t, __u); } template<typename _Tp, typename _Up> constexpr bool cmp_less(_Tp __t, _Up __u) noexcept { static_assert(__is_standard_integer<_Tp>::value); static_assert(__is_standard_integer<_Up>::value); if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>) return __t < __u; else if constexpr (is_signed_v<_Tp>) return __t < 0 || make_unsigned_t<_Tp>(__t) < __u; else return __u >= 0 && __t < make_unsigned_t<_Up>(__u); } template<typename _Tp, typename _Up> constexpr bool cmp_greater(_Tp __t, _Up __u) noexcept { return std::cmp_less(__u, __t); } template<typename _Tp, typename _Up> constexpr bool cmp_less_equal(_Tp __t, _Up __u) noexcept { return !std::cmp_less(__u, __t); } template<typename _Tp, typename _Up> constexpr bool cmp_greater_equal(_Tp __t, _Up __u) noexcept { return !std::cmp_less(__t, __u); } template<typename _Up, typename _Tp> constexpr bool in_range(_Tp __t) noexcept { static_assert(__is_standard_integer<_Up>::value); static_assert(__is_standard_integer<_Tp>::value); using __gnu_cxx::__int_traits; if constexpr (is_signed_v<_Tp> == is_signed_v<_Up>) return __int_traits<_Up>::__min <= __t && __t <= __int_traits<_Up>::__max; else if constexpr (is_signed_v<_Tp>) return __t >= 0 && make_unsigned_t<_Tp>(__t) <= __int_traits<_Up>::__max; else return __t <= make_unsigned_t<_Up>(__int_traits<_Up>::__max); } # 224 "/usr/include/c++/13/utility" 3 } # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 3 4 namespace boost { # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 3 4 namespace detail { typedef char (&wrapexcept_s1)[ 1 ]; typedef char (&wrapexcept_s2)[ 2 ]; template<class T> wrapexcept_s1 wrapexcept_is_convertible( T* ); template<class T> wrapexcept_s2 wrapexcept_is_convertible( void* ); template<class E, class B, std::size_t I = sizeof( wrapexcept_is_convertible<B>( static_cast< E* >( nullptr ) ) ) > struct wrapexcept_add_base; template<class E, class B> struct wrapexcept_add_base<E, B, 1> { struct type {}; }; template<class E, class B> struct wrapexcept_add_base<E, B, 2> { typedef B type; }; } template<class E> struct __attribute__((__visibility__("default"))) wrapexcept: public detail::wrapexcept_add_base<E, boost::exception_detail::clone_base>::type, public E, public detail::wrapexcept_add_base<E, boost::exception>::type { private: struct deleter { wrapexcept * p_; ~deleter() { delete p_; } }; private: void copy_from( void const* ) { } void copy_from( boost::exception const* p ) { static_cast<boost::exception&>( *this ) = *p; } public: explicit wrapexcept( E const & e ): E( e ) { copy_from( &e ); } explicit wrapexcept( E const & e, boost::source_location const & loc ): E( e ) { copy_from( &e ); set_info( *this, throw_file( loc.file_name() ) ); set_info( *this, throw_line( static_cast<int>( loc.line() ) ) ); set_info( *this, throw_function( loc.function_name() ) ); set_info( *this, throw_column( static_cast<int>( loc.column() ) ) ); } virtual boost::exception_detail::clone_base const * clone() const override { wrapexcept * p = new wrapexcept( *this ); deleter del = { p }; boost::exception_detail::copy_boost_exception( p, this ); del.p_ = nullptr; return p; } virtual void rethrow() const override { throw *this; } }; inline void throw_exception_assert_compatibility( std::exception const & ) {} # 162 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 3 4 template<class E> __attribute__ ((__noreturn__)) void throw_exception( E const & e ) { throw_exception_assert_compatibility( e ); throw wrapexcept<E>( e ); } template<class E> __attribute__ ((__noreturn__)) void throw_exception( E const & e, boost::source_location const & loc ) { throw_exception_assert_compatibility( e ); throw wrapexcept<E>( e, loc ); } } namespace boost { namespace detail { struct __attribute__((__visibility__("default"))) throw_location { boost::source_location location_; explicit throw_location( boost::source_location const & loc ): location_( loc ) { } }; template<class E> class __attribute__((__visibility__("default"))) with_throw_location: public E, public throw_location { public: with_throw_location( E const & e, boost::source_location const & loc ): E( e ), throw_location( loc ) { } with_throw_location( E && e, boost::source_location const & loc ): E( std::move( e ) ), throw_location( loc ) { } }; } template<class E> __attribute__ ((__noreturn__)) void throw_with_location( E && e, boost::source_location const & loc = ::boost::source_location(::std::source_location::current()) ) { throw_exception_assert_compatibility( e ); throw detail::with_throw_location<typename std::decay<E>::type>( std::forward<E>( e ), loc ); } # 251 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/throw_exception.hpp" 3 4 template<class E> boost::source_location get_throw_location( E const & e ) { if( detail::throw_location const* pl = dynamic_cast< detail::throw_location const* >( &e ) ) { return pl->location_; } else if( boost::exception const* px = dynamic_cast< boost::exception const* >( &e ) ) { return exception_detail::get_exception_throw_location( *px ); } else { return boost::source_location(); } } } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_exception.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { using boost::throw_exception; # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_exception.hpp" 3 4 } } } # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 namespace boost { namespace asio { namespace detail { using std::allocate_shared; using std::make_shared; using std::shared_ptr; using std::weak_ptr; # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 using std::addressof; using std::to_address; # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 inline void* align(std::size_t alignment, std::size_t size, void*& ptr, std::size_t& space) { return std::align(alignment, size, ptr, space); # 94 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 } } using std::allocator_arg_t; # 117 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 inline void* aligned_new(std::size_t align, std::size_t size) { align = (align < 16) ? 16 : align; size = (size % align == 0) ? size : size + (align - size % align); void* ptr = std::aligned_alloc(align, size); if (!ptr) { std::bad_alloc ex; boost::asio::detail::throw_exception(ex); } return ptr; # 153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/memory.hpp" 3 4 } inline void aligned_delete(void* ptr) { std::free(ptr); } } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver_invocation_error.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver_invocation_error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver_invocation_error.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { class receiver_invocation_error : public std::runtime_error , public std::nested_exception { public: inline receiver_invocation_error(); }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver_invocation_error.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/receiver_invocation_error.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/receiver_invocation_error.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver_invocation_error.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/receiver_invocation_error.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/receiver_invocation_error.ipp" 2 3 4 namespace boost { namespace asio { namespace execution { receiver_invocation_error::receiver_invocation_error() : std::runtime_error("receiver invocation error") { } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/receiver_invocation_error.ipp" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver_invocation_error.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct set_done_member_default; template <typename T, typename = void> struct set_done_member; } namespace detail { struct no_set_done_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct set_done_member_trait : no_set_done_member { }; template <typename T> struct set_done_member_trait<T, typename void_type< decltype(declval<T>().set_done()) >::type> { static constexpr bool is_valid = true; using result_type = decltype(declval<T>().set_done()); static constexpr bool is_noexcept = noexcept(declval<T>().set_done()) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_member.hpp" 3 4 } namespace traits { template <typename T, typename> struct set_done_member_default : detail::set_done_member_trait<T> { }; template <typename T, typename> struct set_done_member : set_done_member_default<T> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_member.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct set_done_free_default; template <typename T, typename = void> struct set_done_free; } namespace detail { struct no_set_done_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct set_done_free_trait : no_set_done_free { }; template <typename T> struct set_done_free_trait<T, typename void_type< decltype(set_done(declval<T>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype(set_done(declval<T>())); static constexpr bool is_noexcept = noexcept(set_done(declval<T>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_free.hpp" 3 4 } namespace traits { template <typename T, typename> struct set_done_free_default : detail::set_done_free_trait<T> { }; template <typename T, typename> struct set_done_free : set_done_free_default<T> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_done_free.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 2 3 4 # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 3 4 namespace boost_asio_execution_set_done_fn { using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::traits::set_done_free; using boost::asio::traits::set_done_member; void set_done(); enum overload_type { call_member, call_free, ill_formed }; template <typename R, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename R> struct call_traits<R, typename enable_if< set_done_member<R>::is_valid >::type> : set_done_member<R> { static constexpr overload_type overload = call_member; }; template <typename R> struct call_traits<R, typename enable_if< !set_done_member<R>::is_valid >::type, typename enable_if< set_done_free<R>::is_valid >::type> : set_done_free<R> { static constexpr overload_type overload = call_free; }; struct impl { template <typename R> constexpr typename enable_if< call_traits<R>::overload == call_member, typename call_traits<R>::result_type >::type operator()(R&& r) const noexcept((( call_traits<R>::is_noexcept))) { return static_cast<R&&>(r).set_done(); } template <typename R> constexpr typename enable_if< call_traits<R>::overload == call_free, typename call_traits<R>::result_type >::type operator()(R&& r) const noexcept((( call_traits<R>::is_noexcept))) { return set_done(static_cast<R&&>(r)); } # 197 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_set_done_fn::impl& set_done = boost_asio_execution_set_done_fn::static_instance<>::instance; } template <typename R> struct can_set_done : integral_constant<bool, boost_asio_execution_set_done_fn::call_traits<R>::overload != boost_asio_execution_set_done_fn::ill_formed> { }; template <typename R> constexpr bool can_set_done_v = can_set_done<R>::value; template <typename R> struct is_nothrow_set_done : integral_constant<bool, boost_asio_execution_set_done_fn::call_traits<R>::is_noexcept> { }; template <typename R> constexpr bool is_nothrow_set_done_v = is_nothrow_set_done<R>::value; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 256 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_done.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename E, typename = void> struct set_error_member_default; template <typename T, typename E, typename = void> struct set_error_member; } namespace detail { struct no_set_error_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename E, typename = void> struct set_error_member_trait : no_set_error_member { }; template <typename T, typename E> struct set_error_member_trait<T, E, typename void_type< decltype(declval<T>().set_error(declval<E>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().set_error(declval<E>())); static constexpr bool is_noexcept = noexcept( declval<T>().set_error(declval<E>())) ; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_member.hpp" 3 4 } namespace traits { template <typename T, typename E, typename> struct set_error_member_default : detail::set_error_member_trait<T, E> { }; template <typename T, typename E, typename> struct set_error_member : set_error_member_default<T, E> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_member.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename E, typename = void> struct set_error_free_default; template <typename T, typename E, typename = void> struct set_error_free; } namespace detail { struct no_set_error_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename E, typename = void> struct set_error_free_trait : no_set_error_free { }; template <typename T, typename E> struct set_error_free_trait<T, E, typename void_type< decltype(set_error(declval<T>(), declval<E>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( set_error(declval<T>(), declval<E>())); static constexpr bool is_noexcept = noexcept( set_error(declval<T>(), declval<E>())) ; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_free.hpp" 3 4 } namespace traits { template <typename T, typename E, typename> struct set_error_free_default : detail::set_error_free_trait<T, E> { }; template <typename T, typename E, typename> struct set_error_free : set_error_free_default<T, E> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_error_free.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 2 3 4 # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 3 4 namespace boost_asio_execution_set_error_fn { using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::traits::set_error_free; using boost::asio::traits::set_error_member; void set_error(); enum overload_type { call_member, call_free, ill_formed }; template <typename R, typename E, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename R, typename E> struct call_traits<R, void(E), typename enable_if< set_error_member<R, E>::is_valid >::type> : set_error_member<R, E> { static constexpr overload_type overload = call_member; }; template <typename R, typename E> struct call_traits<R, void(E), typename enable_if< !set_error_member<R, E>::is_valid >::type, typename enable_if< set_error_free<R, E>::is_valid >::type> : set_error_free<R, E> { static constexpr overload_type overload = call_free; }; struct impl { template <typename R, typename E> constexpr typename enable_if< call_traits<R, void(E)>::overload == call_member, typename call_traits<R, void(E)>::result_type >::type operator()(R&& r, E&& e) const noexcept((( call_traits<R, void(E)>::is_noexcept))) { return static_cast<R&&>(r).set_error(static_cast<E&&>(e)); } template <typename R, typename E> constexpr typename enable_if< call_traits<R, void(E)>::overload == call_free, typename call_traits<R, void(E)>::result_type >::type operator()(R&& r, E&& e) const noexcept((( call_traits<R, void(E)>::is_noexcept))) { return set_error(static_cast<R&&>(r), static_cast<E&&>(e)); } # 197 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_set_error_fn::impl& set_error = boost_asio_execution_set_error_fn::static_instance<>::instance; } template <typename R, typename E> struct can_set_error : integral_constant<bool, boost_asio_execution_set_error_fn::call_traits<R, void(E)>::overload != boost_asio_execution_set_error_fn::ill_formed> { }; template <typename R, typename E> constexpr bool can_set_error_v = can_set_error<R, E>::value; template <typename R, typename E> struct is_nothrow_set_error : integral_constant<bool, boost_asio_execution_set_error_fn::call_traits<R, void(E)>::is_noexcept> { }; template <typename R, typename E> constexpr bool is_nothrow_set_error_v = is_nothrow_set_error<R, E>::value; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 256 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_error.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_member.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Vs, typename = void> struct set_value_member_default; template <typename T, typename Vs, typename = void> struct set_value_member; } namespace detail { struct no_set_value_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Vs, typename = void> struct set_value_member_trait : no_set_value_member { }; template <typename T, typename... Vs> struct set_value_member_trait<T, void(Vs...), typename void_type< decltype(declval<T>().set_value(declval<Vs>()...)) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().set_value(declval<Vs>()...)); static constexpr bool is_noexcept = noexcept( declval<T>().set_value(declval<Vs>()...)) ; }; # 215 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_member.hpp" 3 4 } namespace traits { template <typename T, typename Vs, typename> struct set_value_member_default : detail::set_value_member_trait<T, Vs> { }; template <typename T, typename Vs, typename> struct set_value_member : set_value_member_default<T, Vs> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 235 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_member.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_free.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Vs, typename = void> struct set_value_free_default; template <typename T, typename Vs, typename = void> struct set_value_free; } namespace detail { struct no_set_value_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Vs, typename = void> struct set_value_free_trait : no_set_value_free { }; template <typename T, typename... Vs> struct set_value_free_trait<T, void(Vs...), typename void_type< decltype(set_value(declval<T>(), declval<Vs>()...)) >::type> { static constexpr bool is_valid = true; using result_type = decltype( set_value(declval<T>(), declval<Vs>()...)); static constexpr bool is_noexcept = noexcept( set_value(declval<T>(), declval<Vs>()...)) ; }; # 215 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_free.hpp" 3 4 } namespace traits { template <typename T, typename Vs, typename> struct set_value_free_default : detail::set_value_free_trait<T, Vs> { }; template <typename T, typename Vs, typename> struct set_value_free : set_value_free_default<T, Vs> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 235 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/set_value_free.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 2 3 4 # 77 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 3 4 namespace boost_asio_execution_set_value_fn { using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::traits::set_value_free; using boost::asio::traits::set_value_member; void set_value(); enum overload_type { call_member, call_free, ill_formed }; template <typename R, typename Vs, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename R, typename Vs> struct call_traits<R, Vs, typename enable_if< set_value_member<R, Vs>::is_valid >::type> : set_value_member<R, Vs> { static constexpr overload_type overload = call_member; }; template <typename R, typename Vs> struct call_traits<R, Vs, typename enable_if< !set_value_member<R, Vs>::is_valid >::type, typename enable_if< set_value_free<R, Vs>::is_valid >::type> : set_value_free<R, Vs> { static constexpr overload_type overload = call_free; }; struct impl { template <typename R, typename... Vs> constexpr typename enable_if< call_traits<R, void(Vs...)>::overload == call_member, typename call_traits<R, void(Vs...)>::result_type >::type operator()(R&& r, Vs&&... v) const noexcept((( call_traits<R, void(Vs...)>::is_noexcept))) { return static_cast<R&&>(r).set_value(static_cast<Vs&&>(v)...); } template <typename R, typename... Vs> constexpr typename enable_if< call_traits<R, void(Vs...)>::overload == call_free, typename call_traits<R, void(Vs...)>::result_type >::type operator()(R&& r, Vs&&... v) const noexcept((( call_traits<R, void(Vs...)>::is_noexcept))) { return set_value(static_cast<R&&>(r), static_cast<Vs&&>(v)...); } # 378 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_set_value_fn::impl& set_value = boost_asio_execution_set_value_fn::static_instance<>::instance; } template <typename R, typename... Vs> struct can_set_value : integral_constant<bool, boost_asio_execution_set_value_fn::call_traits<R, void(Vs...)>::overload != boost_asio_execution_set_value_fn::ill_formed> { }; template <typename R, typename... Vs> constexpr bool can_set_value_v = can_set_value<R, Vs...>::value; template <typename R, typename... Vs> struct is_nothrow_set_value : integral_constant<bool, boost_asio_execution_set_value_fn::call_traits<R, void(Vs...)>::is_noexcept> { }; template <typename R, typename... Vs> constexpr bool is_nothrow_set_value_v = is_nothrow_set_value<R, Vs...>::value; # 482 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 489 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/set_value.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename Receiver, typename> struct as_invocable { Receiver* receiver_; explicit as_invocable(Receiver& r) noexcept : receiver_(boost::asio::detail::addressof(r)) { } as_invocable(as_invocable&& other) noexcept : receiver_(other.receiver_) { other.receiver_ = 0; } ~as_invocable() { if (receiver_) execution::set_done(static_cast<Receiver&&>(*receiver_)); } void operator()() & noexcept { try { execution::set_value(static_cast<Receiver&&>(*receiver_)); receiver_ = 0; } catch (...) { execution::set_error(static_cast<Receiver&&>(*receiver_), std::make_exception_ptr(receiver_invocation_error())); receiver_ = 0; } } }; # 137 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 3 4 template <typename T> struct is_as_invocable : false_type { }; template <typename Function, typename T> struct is_as_invocable<as_invocable<Function, T> > : true_type { }; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_invocable.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_receiver.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_receiver.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_receiver.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename Function, typename> struct as_receiver { Function f_; template <typename F> explicit as_receiver(F&& f, int) : f_(static_cast<F&&>(f)) { } # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_receiver.hpp" 3 4 void set_value() noexcept((noexcept(declval<Function&>()()))) { f_(); } template <typename E> void set_error(E) noexcept { std::terminate(); } void set_done() noexcept { } }; template <typename T> struct is_as_receiver : false_type { }; template <typename Function, typename T> struct is_as_receiver<as_receiver<Function, T> > : true_type { }; } } namespace traits { # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_receiver.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_receiver.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename F, typename = void> struct execute_free_default; template <typename T, typename F, typename = void> struct execute_free; } namespace detail { struct no_execute_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename F, typename = void> struct execute_free_trait : no_execute_free { }; template <typename T, typename F> struct execute_free_trait<T, F, typename void_type< decltype(execute(declval<T>(), declval<F>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( execute(declval<T>(), declval<F>())); static constexpr bool is_noexcept = noexcept( execute(declval<T>(), declval<F>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_free.hpp" 3 4 } namespace traits { template <typename T, typename F, typename> struct execute_free_default : detail::execute_free_trait<T, F> { }; template <typename T, typename F, typename> struct execute_free : execute_free_default<T, F> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/execute_free.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 2 3 4 # 80 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 3 4 namespace boost { namespace asio { namespace execution { template <typename T, typename R> struct is_sender_to; namespace detail { template <typename S, typename R> void submit_helper(S&& s, R&& r); } } } } namespace boost_asio_execution_execute_fn { using boost::asio::conditional; using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::execution::detail::as_receiver; using boost::asio::execution::detail::is_as_invocable; using boost::asio::execution::is_sender_to; using boost::asio::false_type; using boost::asio::result_of; using boost::asio::traits::execute_free; using boost::asio::traits::execute_member; using boost::asio::true_type; using boost::asio::void_type; void execute(); enum overload_type { call_member, call_free, adapter, ill_formed }; template <typename Impl, typename T, typename F, typename = void, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; }; template <typename Impl, typename T, typename F> struct call_traits<Impl, T, void(F), typename enable_if< execute_member<typename Impl::template proxy<T>::type, F>::is_valid >::type> : execute_member<typename Impl::template proxy<T>::type, F> { static constexpr overload_type overload = call_member; }; template <typename Impl, typename T, typename F> struct call_traits<Impl, T, void(F), typename enable_if< !execute_member<typename Impl::template proxy<T>, F>::is_valid >::type, typename enable_if< execute_free<T, F>::is_valid >::type> : execute_free<T, F> { static constexpr overload_type overload = call_free; }; template <typename Impl, typename T, typename F> struct call_traits<Impl, T, void(F), typename enable_if< !execute_member<typename Impl::template proxy<T>::type, F>::is_valid >::type, typename enable_if< !execute_free<T, F>::is_valid >::type, typename void_type< typename result_of<typename decay<F>::type&()>::type >::type, typename enable_if< !is_as_invocable<typename decay<F>::type>::value >::type, typename enable_if< is_sender_to<T, as_receiver<typename decay<F>::type, T> >::value >::type> { static constexpr overload_type overload = adapter; static constexpr bool is_valid = true; static constexpr bool is_noexcept = false; typedef void result_type; }; struct impl { template <typename T> struct proxy { struct type { template <typename F> auto execute(F&& f) noexcept( noexcept( declval<typename conditional<true, T, F>::type>().execute( static_cast<F&&>(f)) ) ) -> decltype( declval<typename conditional<true, T, F>::type>().execute( static_cast<F&&>(f)) ); }; }; template <typename T, typename F> constexpr typename enable_if< call_traits<impl, T, void(F)>::overload == call_member, typename call_traits<impl, T, void(F)>::result_type >::type operator()( T&& t, F&& f) const noexcept((( call_traits<impl, T, void(F)>::is_noexcept))) { return static_cast<T&&>(t).execute(static_cast<F&&>(f)); } template <typename T, typename F> constexpr typename enable_if< call_traits<impl, T, void(F)>::overload == call_free, typename call_traits<impl, T, void(F)>::result_type >::type operator()( T&& t, F&& f) const noexcept((( call_traits<impl, T, void(F)>::is_noexcept))) { return execute(static_cast<T&&>(t), static_cast<F&&>(f)); } template <typename T, typename F> constexpr typename enable_if< call_traits<impl, T, void(F)>::overload == adapter, typename call_traits<impl, T, void(F)>::result_type >::type operator()( T&& t, F&& f) const noexcept((( call_traits<impl, T, void(F)>::is_noexcept))) { return boost::asio::execution::detail::submit_helper( static_cast<T&&>(t), as_receiver<typename decay<F>::type, T>( static_cast<F&&>(f), 0)); } }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_execute_fn::impl& execute = boost_asio_execution_execute_fn::static_instance<>::instance; } typedef boost_asio_execution_execute_fn::impl execute_t; template <typename T, typename F> struct can_execute : integral_constant<bool, boost_asio_execution_execute_fn::call_traits< execute_t, T, void(F)>::overload != boost_asio_execution_execute_fn::ill_formed> { }; template <typename T, typename F> constexpr bool can_execute_v = can_execute<T, F>::value; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 293 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/execute.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename T, typename F, typename = void, typename = void, typename = void, typename = void, typename = void, typename = void, typename = void, typename = void> struct is_executor_of_impl : false_type { }; template <typename T, typename F> struct is_executor_of_impl<T, F, typename enable_if< can_execute<typename add_const<T>::type, F>::value >::type, typename void_type< typename result_of<typename decay<F>::type&()>::type >::type, typename enable_if< is_constructible<typename decay<F>::type, F>::value >::type, typename enable_if< is_move_constructible<typename decay<F>::type>::value >::type, typename enable_if< is_nothrow_copy_constructible<T>::value >::type, typename enable_if< is_nothrow_destructible<T>::value >::type, # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 typename enable_if< traits::equality_comparable<T>::is_valid >::type, typename enable_if< traits::equality_comparable<T>::is_noexcept >::type> : true_type { }; template <typename T, typename = void> struct executor_shape { typedef std::size_t type; }; template <typename T> struct executor_shape<T, typename void_type< typename T::shape_type >::type> { typedef typename T::shape_type type; }; template <typename T, typename Default, typename = void> struct executor_index { typedef Default type; }; template <typename T, typename Default> struct executor_index<T, Default, typename void_type< typename T::index_type >::type> { typedef typename T::index_type type; }; } # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 template <typename T> struct is_executor : detail::is_executor_of_impl<T, invocable_archetype> { }; template <typename T> constexpr const bool is_executor_v = is_executor<T>::value; template <typename T> concept executor = is_executor<T>::value; # 171 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 template <typename T, typename F> struct is_executor_of : integral_constant<bool, is_executor<T>::value && detail::is_executor_of_impl<T, F>::value > { }; template <typename T, typename F> constexpr const bool is_executor_of_v = is_executor_of<T, F>::value; template <typename T, typename F> concept executor_of = is_executor_of<T, F>::value; # 212 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 template <typename T> struct executor_shape : detail::executor_shape<T> { }; template <typename T> using executor_shape_t = typename executor_shape<T>::type; # 238 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 3 4 template <typename T> struct executor_index : detail::executor_index<T, typename executor_shape<T>::type> { }; template <typename T> using executor_index_t = typename executor_index<T>::type; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 263 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/executor.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct schedule_member_default; template <typename T, typename = void> struct schedule_member; } namespace detail { struct no_schedule_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct schedule_member_trait : no_schedule_member { }; template <typename T> struct schedule_member_trait<T, typename void_type< decltype(declval<T>().schedule()) >::type> { static constexpr bool is_valid = true; using result_type = decltype(declval<T>().schedule()); static constexpr bool is_noexcept = noexcept(declval<T>().schedule()) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_member.hpp" 3 4 } namespace traits { template <typename T, typename> struct schedule_member_default : detail::schedule_member_trait<T> { }; template <typename T, typename> struct schedule_member : schedule_member_default<T> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_member.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct schedule_free_default; template <typename T, typename = void> struct schedule_free; } namespace detail { struct no_schedule_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct schedule_free_trait : no_schedule_free { }; template <typename T> struct schedule_free_trait<T, typename void_type< decltype(schedule(declval<T>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype(schedule(declval<T>())); static constexpr bool is_noexcept = noexcept(schedule(declval<T>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_free.hpp" 3 4 } namespace traits { template <typename T, typename> struct schedule_free_default : detail::schedule_free_trait<T> { }; template <typename T, typename> struct schedule_free : schedule_free_default<T> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/schedule_free.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 2 3 4 # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 3 4 namespace boost_asio_execution_schedule_fn { using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::execution::is_executor; using boost::asio::traits::schedule_free; using boost::asio::traits::schedule_member; void schedule(); enum overload_type { identity, call_member, call_free, ill_formed }; template <typename S, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename S> struct call_traits<S, typename enable_if< schedule_member<S>::is_valid >::type> : schedule_member<S> { static constexpr overload_type overload = call_member; }; template <typename S> struct call_traits<S, typename enable_if< !schedule_member<S>::is_valid >::type, typename enable_if< schedule_free<S>::is_valid >::type> : schedule_free<S> { static constexpr overload_type overload = call_free; }; template <typename S> struct call_traits<S, typename enable_if< !schedule_member<S>::is_valid >::type, typename enable_if< !schedule_free<S>::is_valid >::type, typename enable_if< is_executor<typename decay<S>::type>::value >::type> { static constexpr overload_type overload = identity; static constexpr bool is_noexcept = true; typedef S&& result_type; }; struct impl { template <typename S> constexpr typename enable_if< call_traits<S>::overload == identity, typename call_traits<S>::result_type >::type operator()(S&& s) const noexcept((( call_traits<S>::is_noexcept))) { return static_cast<S&&>(s); } template <typename S> constexpr typename enable_if< call_traits<S>::overload == call_member, typename call_traits<S>::result_type >::type operator()(S&& s) const noexcept((( call_traits<S>::is_noexcept))) { return static_cast<S&&>(s).schedule(); } template <typename S> constexpr typename enable_if< call_traits<S>::overload == call_free, typename call_traits<S>::result_type >::type operator()(S&& s) const noexcept((( call_traits<S>::is_noexcept))) { return schedule(static_cast<S&&>(s)); } # 234 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_schedule_fn::impl& schedule = boost_asio_execution_schedule_fn::static_instance<>::instance; } template <typename S> struct can_schedule : integral_constant<bool, boost_asio_execution_schedule_fn::call_traits<S>::overload != boost_asio_execution_schedule_fn::ill_formed> { }; template <typename S> constexpr bool can_schedule_v = can_schedule<S>::value; template <typename S> struct is_nothrow_schedule : integral_constant<bool, boost_asio_execution_schedule_fn::call_traits<S>::is_noexcept> { }; template <typename S> constexpr bool is_nothrow_schedule_v = is_nothrow_schedule<S>::value; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 293 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/schedule.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename T> struct is_scheduler_base : integral_constant<bool, is_copy_constructible<typename remove_cvref<T>::type>::value && traits::equality_comparable<typename remove_cvref<T>::type>::is_valid > { }; } # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 3 4 template <typename T> struct is_scheduler : conditional< can_schedule<T>::value, detail::is_scheduler_base<T>, false_type >::type { }; template <typename T> constexpr const bool is_scheduler_v = is_scheduler<T>::value; template <typename T> concept scheduler = is_scheduler<T>::value; # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 90 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/scheduler.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/void_receiver.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/void_receiver.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/void_receiver.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { struct void_receiver { void set_value() noexcept { } template <typename E> void set_error(E&&) noexcept { } void set_done() noexcept { } }; } } namespace traits { # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/void_receiver.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 91 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/void_receiver.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename T, typename E> struct is_receiver_base : integral_constant<bool, is_move_constructible<typename remove_cvref<T>::type>::value && is_constructible<typename remove_cvref<T>::type, T>::value > { }; } # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 3 4 template <typename T, typename E = std::exception_ptr> struct is_receiver : conditional< can_set_done<typename remove_cvref<T>::type>::value && is_nothrow_set_done<typename remove_cvref<T>::type>::value && can_set_error<typename remove_cvref<T>::type, E>::value && is_nothrow_set_error<typename remove_cvref<T>::type, E>::value, detail::is_receiver_base<T, E>, false_type >::type { }; template <typename T, typename E = std::exception_ptr> constexpr const bool is_receiver_v = is_receiver<T, E>::value; template <typename T, typename E = std::exception_ptr> concept receiver = is_receiver<T, E>::value; # 131 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 3 4 template <typename T, typename... Vs> struct is_receiver_of : conditional< is_receiver<T>::value, can_set_value<typename remove_cvref<T>::type, Vs...>, false_type >::type { }; template <typename T, typename... Vs> constexpr const bool is_receiver_of_v = is_receiver_of<T, Vs...>::value; template <typename T, typename... Vs> concept receiver_of = is_receiver_of<T, Vs...>::value; # 224 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 3 4 template <typename T, typename... Vs> struct is_nothrow_receiver_of : integral_constant<bool, is_receiver_of<T, Vs...>::value && is_nothrow_set_value<typename remove_cvref<T>::type, Vs...>::value > { }; template <typename T, typename... Vs> constexpr const bool is_nothrow_receiver_of_v = is_nothrow_receiver_of<T, Vs...>::value; # 279 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 284 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/receiver.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 2 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 namespace boost { namespace asio { namespace execution { namespace detail { namespace sender_base_ns { struct sender_base {}; } template <typename S, typename = void> struct sender_traits_base { typedef void asio_execution_sender_traits_base_is_unspecialised; }; template <typename S> struct sender_traits_base<S, typename enable_if< is_base_of<sender_base_ns::sender_base, S>::value >::type> { }; template <typename S, typename = void, typename = void, typename = void> struct has_sender_types : false_type { }; template < template < template <typename...> class Tuple, template <typename...> class Variant > class> struct has_value_types { typedef void type; }; template < template < template <typename...> class Variant > class> struct has_error_types { typedef void type; }; template <typename S> struct has_sender_types<S, typename has_value_types<S::template value_types>::type, typename has_error_types<S::template error_types>::type, typename conditional<S::sends_done, void, void>::type> : true_type { }; template <typename S> struct sender_traits_base<S, typename enable_if< has_sender_types<S>::value >::type> { template < template <typename...> class Tuple, template <typename...> class Variant> using value_types = typename S::template value_types<Tuple, Variant>; template <template <typename...> class Variant> using error_types = typename S::template error_types<Variant>; static constexpr bool sends_done = S::sends_done; }; template <typename S> struct sender_traits_base<S, typename enable_if< !has_sender_types<S>::value && detail::is_executor_of_impl<S, as_invocable<void_receiver, S> >::value >::type> { template < template <typename...> class Tuple, template <typename...> class Variant> using value_types = Variant<Tuple<>>; template <template <typename...> class Variant> using error_types = Variant<std::exception_ptr>; static constexpr bool sends_done = true; }; } typedef detail::sender_base_ns::sender_base sender_base; template <typename S> struct sender_traits : detail::sender_traits_base<S> { }; namespace detail { template <typename S, typename = void> struct has_sender_traits : true_type { }; template <typename S> struct has_sender_traits<S, typename enable_if< is_same< typename boost::asio::execution::sender_traits< S>::asio_execution_sender_traits_base_is_unspecialised, void >::value >::type> : false_type { }; } # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 template <typename T> struct is_sender : conditional< detail::has_sender_traits<typename remove_cvref<T>::type>::value, is_move_constructible<typename remove_cvref<T>::type>, false_type >::type { }; template <typename T> constexpr const bool is_sender_v = is_sender<T>::value; template <typename T> concept sender = is_sender<T>::value; # 220 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 template <typename S, typename R> struct can_connect; # 230 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 template <typename T, typename R> struct is_sender_to : integral_constant<bool, is_sender<T>::value && is_receiver<R>::value && can_connect<T, R>::value > { }; template <typename T, typename R> constexpr const bool is_sender_to_v = is_sender_to<T, R>::value; template <typename T, typename R> concept sender_to = is_sender_to<T, R>::value; # 273 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 template <typename T> struct is_typed_sender : integral_constant<bool, is_sender<T>::value && detail::has_sender_types< sender_traits<typename remove_cvref<T>::type> >::value > { }; template <typename T> constexpr const bool is_typed_sender_v = is_typed_sender<T>::value; template <typename T> concept typed_sender = is_typed_sender<T>::value; # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 313 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_operation.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_operation.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct start_member_default; template <typename T, typename = void> struct start_member; } namespace detail { struct no_start_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct start_member_trait : no_start_member { }; template <typename T> struct start_member_trait<T, typename void_type< decltype(declval<T>().start()) >::type> { static constexpr bool is_valid = true; using result_type = decltype(declval<T>().start()); static constexpr bool is_noexcept = noexcept(declval<T>().start()) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_member.hpp" 3 4 } namespace traits { template <typename T, typename> struct start_member_default : detail::start_member_trait<T> { }; template <typename T, typename> struct start_member : start_member_default<T> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_member.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_operation.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_operation.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename Executor, typename Receiver> struct as_operation { typename remove_cvref<Executor>::type ex_; typename remove_cvref<Receiver>::type receiver_; template <typename E, typename R> explicit as_operation(E&& e, R&& r) : ex_(static_cast<E&&>(e)), receiver_(static_cast<R&&>(r)) { } void start() noexcept { try { execution::execute( static_cast<typename remove_cvref<Executor>::type&&>(ex_), as_invocable<typename remove_cvref<Receiver>::type, Executor>(receiver_ )); } catch (...) { execution::set_error( static_cast<typename remove_cvref<Receiver>::type&&> ( receiver_), std::current_exception()); } } }; } } namespace traits { # 105 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_operation.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/as_operation.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename = void> struct start_free_default; template <typename T, typename = void> struct start_free; } namespace detail { struct no_start_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename = void> struct start_free_trait : no_start_free { }; template <typename T> struct start_free_trait<T, typename void_type< decltype(start(declval<T>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype(start(declval<T>())); static constexpr bool is_noexcept = noexcept(start(declval<T>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_free.hpp" 3 4 } namespace traits { template <typename T, typename> struct start_free_default : detail::start_free_trait<T> { }; template <typename T, typename> struct start_free : start_free_default<T> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/start_free.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 2 3 4 # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 3 4 namespace boost_asio_execution_start_fn { using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::traits::start_free; using boost::asio::traits::start_member; void start(); enum overload_type { call_member, call_free, ill_formed }; template <typename R, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename R> struct call_traits<R, typename enable_if< start_member<R>::is_valid >::type> : start_member<R> { static constexpr overload_type overload = call_member; }; template <typename R> struct call_traits<R, typename enable_if< !start_member<R>::is_valid >::type, typename enable_if< start_free<R>::is_valid >::type> : start_free<R> { static constexpr overload_type overload = call_free; }; struct impl { template <typename R> constexpr typename enable_if< call_traits<R>::overload == call_member, typename call_traits<R>::result_type >::type operator()(R&& r) const noexcept((( call_traits<R>::is_noexcept))) { return static_cast<R&&>(r).start(); } template <typename R> constexpr typename enable_if< call_traits<R>::overload == call_free, typename call_traits<R>::result_type >::type operator()(R&& r) const noexcept((( call_traits<R>::is_noexcept))) { return start(static_cast<R&&>(r)); } # 194 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_start_fn::impl& start = boost_asio_execution_start_fn::static_instance<>::instance; } template <typename R> struct can_start : integral_constant<bool, boost_asio_execution_start_fn::call_traits<R>::overload != boost_asio_execution_start_fn::ill_formed> { }; template <typename R> constexpr bool can_start_v = can_start<R>::value; template <typename R> struct is_nothrow_start : integral_constant<bool, boost_asio_execution_start_fn::call_traits<R>::is_noexcept> { }; template <typename R> constexpr bool is_nothrow_start_v = is_nothrow_start<R>::value; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/start.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename T> struct is_operation_state_base : integral_constant<bool, is_destructible<T>::value && is_object<T>::value > { }; } # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 3 4 template <typename T> struct is_operation_state : conditional< can_start<typename add_lvalue_reference<T>::type>::value && is_nothrow_start<typename add_lvalue_reference<T>::type>::value, detail::is_operation_state_base<T>, false_type >::type { }; template <typename T> constexpr const bool is_operation_state_v = is_operation_state<T>::value; template <typename T> concept operation_state = is_operation_state<T>::value; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/operation_state.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename S, typename R, typename = void> struct connect_member_default; template <typename S, typename R, typename = void> struct connect_member; } namespace detail { struct no_connect_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename S, typename R, typename = void> struct connect_member_trait : no_connect_member { }; template <typename S, typename R> struct connect_member_trait<S, R, typename void_type< decltype(declval<S>().connect(declval<R>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<S>().connect(declval<R>())); static constexpr bool is_noexcept = noexcept( declval<S>().connect(declval<R>())) ; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_member.hpp" 3 4 } namespace traits { template <typename S, typename R, typename> struct connect_member_default : detail::connect_member_trait<S, R> { }; template <typename S, typename R, typename> struct connect_member : connect_member_default<S, R> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_member.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename S, typename R, typename = void> struct connect_free_default; template <typename S, typename R, typename = void> struct connect_free; } namespace detail { struct no_connect_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename S, typename R, typename = void> struct connect_free_trait : no_connect_free { }; template <typename S, typename R> struct connect_free_trait<S, R, typename void_type< decltype(connect(declval<S>(), declval<R>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( connect(declval<S>(), declval<R>())); static constexpr bool is_noexcept = noexcept( connect(declval<S>(), declval<R>())) ; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_free.hpp" 3 4 } namespace traits { template <typename S, typename R, typename> struct connect_free_default : detail::connect_free_trait<S, R> { }; template <typename S, typename R, typename> struct connect_free : connect_free_default<S, R> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/connect_free.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 138 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 3 4 namespace boost_asio_execution_connect_fn { using boost::asio::conditional; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::execution::detail::as_invocable; using boost::asio::execution::detail::as_operation; using boost::asio::execution::detail::is_as_receiver; using boost::asio::execution::is_executor_of; using boost::asio::execution::is_operation_state; using boost::asio::execution::is_receiver; using boost::asio::execution::is_sender; using boost::asio::false_type; using boost::asio::remove_cvref; using boost::asio::traits::connect_free; using boost::asio::traits::connect_member; void connect(); enum overload_type { call_member, call_free, adapter, ill_formed }; template <typename S, typename R, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename S, typename R> struct call_traits<S, void(R), typename enable_if< connect_member<S, R>::is_valid >::type, typename enable_if< is_operation_state<typename connect_member<S, R>::result_type>::value >::type, typename enable_if< is_sender<typename remove_cvref<S>::type>::value >::type> : connect_member<S, R> { static constexpr overload_type overload = call_member; }; template <typename S, typename R> struct call_traits<S, void(R), typename enable_if< !connect_member<S, R>::is_valid >::type, typename enable_if< connect_free<S, R>::is_valid >::type, typename enable_if< is_operation_state<typename connect_free<S, R>::result_type>::value >::type, typename enable_if< is_sender<typename remove_cvref<S>::type>::value >::type> : connect_free<S, R> { static constexpr overload_type overload = call_free; }; template <typename S, typename R> struct call_traits<S, void(R), typename enable_if< !connect_member<S, R>::is_valid >::type, typename enable_if< !connect_free<S, R>::is_valid >::type, typename enable_if< is_receiver<R>::value >::type, typename enable_if< conditional< !is_as_receiver< typename remove_cvref<R>::type >::value, is_executor_of< typename remove_cvref<S>::type, as_invocable<typename remove_cvref<R>::type, S> >, false_type >::type::value >::type> { static constexpr overload_type overload = adapter; static constexpr bool is_noexcept = false; typedef as_operation<S, R> result_type; }; struct impl { template <typename S, typename R> constexpr typename enable_if< call_traits<S, void(R)>::overload == call_member, typename call_traits<S, void(R)>::result_type >::type operator()(S&& s, R&& r) const noexcept((( call_traits<S, void(R)>::is_noexcept))) { return static_cast<S&&>(s).connect(static_cast<R&&>(r)); } template <typename S, typename R> constexpr typename enable_if< call_traits<S, void(R)>::overload == call_free, typename call_traits<S, void(R)>::result_type >::type operator()(S&& s, R&& r) const noexcept((( call_traits<S, void(R)>::is_noexcept))) { return connect(static_cast<S&&>(s), static_cast<R&&>(r)); } template <typename S, typename R> constexpr typename enable_if< call_traits<S, void(R)>::overload == adapter, typename call_traits<S, void(R)>::result_type >::type operator()(S&& s, R&& r) const noexcept((( call_traits<S, void(R)>::is_noexcept))) { return typename call_traits<S, void(R)>::result_type( static_cast<S&&>(s), static_cast<R&&>(r)); } # 422 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_connect_fn::impl& connect = boost_asio_execution_connect_fn::static_instance<>::instance; } template <typename S, typename R> struct can_connect : integral_constant<bool, boost_asio_execution_connect_fn::call_traits<S, void(R)>::overload != boost_asio_execution_connect_fn::ill_formed> { }; template <typename S, typename R> constexpr bool can_connect_v = can_connect<S, R>::value; template <typename S, typename R> struct is_nothrow_connect : integral_constant<bool, boost_asio_execution_connect_fn::call_traits<S, void(R)>::is_noexcept> { }; template <typename S, typename R> constexpr bool is_nothrow_connect_v = is_nothrow_connect<S, R>::value; template <typename S, typename R> struct connect_result { typedef typename boost_asio_execution_connect_fn::call_traits< S, void(R)>::result_type type; }; template <typename S, typename R> using connect_result_t = typename connect_result<S, R>::type; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 495 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/connect.hpp" 2 3 4 # 315 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/sender.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_applicable_property.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_applicable_property.hpp" 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename Property, typename = void> struct is_applicable_property_trait : false_type { }; template <typename T, typename Property> struct is_applicable_property_trait<T, Property, typename void_type< typename enable_if< !!Property::template is_applicable_property_v<T> >::type >::type> : true_type { }; } template <typename T, typename Property, typename = void> struct is_applicable_property : detail::is_applicable_property_trait<T, Property> { }; template <typename T, typename Property> constexpr const bool is_applicable_property_v = is_applicable_property<T, Property>::value; } } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_static_constexpr_member.hpp" 1 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_static_constexpr_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_static_constexpr_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct query_static_constexpr_member_default; template <typename T, typename Property, typename = void> struct query_static_constexpr_member; } namespace detail { struct no_query_static_constexpr_member { static constexpr bool is_valid = false; }; template <typename T, typename Property, typename = void> struct query_static_constexpr_member_trait : conditional< is_same<T, typename decay<T>::type>::value && is_same<Property, typename decay<Property>::type>::value, no_query_static_constexpr_member, traits::query_static_constexpr_member< typename decay<T>::type, typename decay<Property>::type> >::type { }; template <typename T, typename Property> struct query_static_constexpr_member_trait<T, Property, typename enable_if< (static_cast<void>(T::query(Property{})), true) >::type> { static constexpr bool is_valid = true; using result_type = decltype(T::query(Property{})); static constexpr bool is_noexcept = noexcept(T::query(Property{})) ; static constexpr result_type value() noexcept(is_noexcept) { return T::query(Property{}); } }; } namespace traits { template <typename T, typename Property, typename> struct query_static_constexpr_member_default : detail::query_static_constexpr_member_trait<T, Property> { }; template <typename T, typename Property, typename> struct query_static_constexpr_member : query_static_constexpr_member_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_static_constexpr_member.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_query.hpp" 1 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_query.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_query.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct static_query_default; template <typename T, typename Property, typename = void> struct static_query; } namespace detail { struct no_static_query { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct static_query_trait : conditional< is_same<T, typename decay<T>::type>::value && is_same<Property, typename decay<Property>::type>::value, no_static_query, traits::static_query< typename decay<T>::type, typename decay<Property>::type> >::type { }; template <typename T, typename Property> struct static_query_trait<T, Property, typename void_type< decltype(decay<Property>::type::template static_query_v<T>) >::type> { static constexpr bool is_valid = true; using result_type = decltype( decay<Property>::type::template static_query_v<T>); static constexpr bool is_noexcept = noexcept(decay<Property>::type::template static_query_v<T>) ; static constexpr result_type value() noexcept(is_noexcept) { return decay<Property>::type::template static_query_v<T>; } }; } namespace traits { template <typename T, typename Property, typename> struct static_query_default : detail::static_query_trait<T, Property> { }; template <typename T, typename Property, typename> struct static_query : static_query_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_query.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 namespace boost { namespace asio { # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 namespace execution { template <typename ProtoAllocator> struct allocator_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, allocator_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(allocator_t::static_query<E>())> static constexpr const T static_query_v = allocator_t::static_query<E>(); constexpr ProtoAllocator value() const { return a_; } private: friend struct allocator_t<void>; explicit constexpr allocator_t(const ProtoAllocator& a) : a_(a) { } ProtoAllocator a_; }; template <typename ProtoAllocator> template <typename E, typename T> const T allocator_t<ProtoAllocator>::static_query_v; template <> struct allocator_t<void> { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 204 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; constexpr allocator_t() { } template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, allocator_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(allocator_t::static_query<E>())> static constexpr const T static_query_v = allocator_t::static_query<E>(); template <typename OtherProtoAllocator> constexpr allocator_t<OtherProtoAllocator> operator()( const OtherProtoAllocator& a) const { return allocator_t<OtherProtoAllocator>(a); } }; template <typename E, typename T> const T allocator_t<void>::static_query_v; constexpr allocator_t<void> allocator; # 295 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 } # 321 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 namespace traits { # 349 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 357 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/allocator.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/assert.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/assert.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 66 "/usr/include/assert.h" 3 4 extern "C" { extern void __assert_fail (const char *__assertion, const char *__file, unsigned int __line, const char *__function) noexcept (true) __attribute__ ((__noreturn__)); extern void __assert_perror_fail (int __errnum, const char *__file, unsigned int __line, const char *__function) noexcept (true) __attribute__ ((__noreturn__)); extern void __assert (const char *__assertion, const char *__file, int __line) noexcept (true) __attribute__ ((__noreturn__)); } # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/assert.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/cstddef.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/cstddef.hpp" 3 4 namespace boost { namespace asio { using std::nullptr_t; } } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/noncopyable.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/noncopyable.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/noncopyable.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class noncopyable { protected: noncopyable() {} ~noncopyable() {} private: noncopyable(const noncopyable&); const noncopyable& operator=(const noncopyable&); }; } using boost::asio::detail::noncopyable; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/noncopyable.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/recycling_allocator.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/recycling_allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 3 4 # 1 "/usr/include/c++/13/climits" 1 3 4 # 39 "/usr/include/c++/13/climits" 3 4 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/call_stack.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/call_stack.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/tss_ptr.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/tss_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/keyword_tss_ptr.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/keyword_tss_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/keyword_tss_ptr.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> class keyword_tss_ptr : private noncopyable { public: keyword_tss_ptr() { } ~keyword_tss_ptr() { } operator T*() const { return value_; } void operator=(T* value) { value_ = value; } private: static __thread T* value_; }; template <typename T> __thread T* keyword_tss_ptr<T>::value_; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/keyword_tss_ptr.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/tss_ptr.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/tss_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/tss_ptr.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> class tss_ptr : public keyword_tss_ptr<T> { public: void operator=(T* value) { keyword_tss_ptr<T>::operator=(value); } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 70 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/tss_ptr.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/call_stack.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/call_stack.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Key, typename Value = unsigned char> class call_stack { public: class context : private noncopyable { public: explicit context(Key* k) : key_(k), next_(call_stack<Key, Value>::top_) { value_ = reinterpret_cast<unsigned char*>(this); call_stack<Key, Value>::top_ = this; } context(Key* k, Value& v) : key_(k), value_(&v), next_(call_stack<Key, Value>::top_) { call_stack<Key, Value>::top_ = this; } ~context() { call_stack<Key, Value>::top_ = next_; } Value* next_by_key() const { context* elem = next_; while (elem) { if (elem->key_ == key_) return elem->value_; elem = elem->next_; } return 0; } private: friend class call_stack<Key, Value>; Key* key_; Value* value_; context* next_; }; friend class context; static Value* contains(Key* k) { context* elem = top_; while (elem) { if (elem->key_ == k) return elem->value_; elem = elem->next_; } return 0; } static Value* top() { context* elem = top_; return elem ? elem->value_ : 0; } private: static tss_ptr<context> top_; }; template <typename Key, typename Value> tss_ptr<typename call_stack<Key, Value>::context> call_stack<Key, Value>::top_; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 126 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/call_stack.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class thread_info_base; class thread_context { public: inline static thread_info_base* top_of_thread_call_stack(); protected: typedef call_stack<thread_context, thread_info_base> thread_call_stack; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/thread_context.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/thread_context.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/thread_context.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { thread_info_base* thread_context::top_of_thread_call_stack() { return thread_call_stack::top(); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/thread_context.ipp" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_context.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/recycling_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_info_base.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_info_base.hpp" 3 4 # 1 "/usr/include/c++/13/climits" 1 3 4 # 39 "/usr/include/c++/13/climits" 3 4 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_info_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/multiple_exceptions.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/multiple_exceptions.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/multiple_exceptions.hpp" 2 3 4 namespace boost { namespace asio { class multiple_exceptions : public std::exception { public: inline multiple_exceptions( std::exception_ptr first) noexcept; inline virtual const char* what() const noexcept; inline std::exception_ptr first_exception() const; private: std::exception_ptr first_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/multiple_exceptions.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/multiple_exceptions.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/multiple_exceptions.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/multiple_exceptions.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/multiple_exceptions.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/multiple_exceptions.ipp" 2 3 4 namespace boost { namespace asio { multiple_exceptions::multiple_exceptions( std::exception_ptr first) noexcept : first_(static_cast<std::exception_ptr&&>(first)) { } const char* multiple_exceptions::what() const noexcept { return "multiple exceptions"; } std::exception_ptr multiple_exceptions::first_exception() const { return first_; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/multiple_exceptions.ipp" 2 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/multiple_exceptions.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_info_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_info_base.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class thread_info_base : private noncopyable { public: struct default_tag { enum { cache_size = 2, begin_mem_index = 0, end_mem_index = cache_size }; }; struct awaitable_frame_tag { enum { cache_size = 2, begin_mem_index = default_tag::end_mem_index, end_mem_index = begin_mem_index + cache_size }; }; struct executor_function_tag { enum { cache_size = 2, begin_mem_index = awaitable_frame_tag::end_mem_index, end_mem_index = begin_mem_index + cache_size }; }; struct cancellation_signal_tag { enum { cache_size = 2, begin_mem_index = executor_function_tag::end_mem_index, end_mem_index = begin_mem_index + cache_size }; }; struct parallel_group_tag { enum { cache_size = 2, begin_mem_index = cancellation_signal_tag::end_mem_index, end_mem_index = begin_mem_index + cache_size }; }; enum { max_mem_index = parallel_group_tag::end_mem_index }; thread_info_base() : has_pending_exception_(0) { for (int i = 0; i < max_mem_index; ++i) reusable_memory_[i] = 0; } ~thread_info_base() { for (int i = 0; i < max_mem_index; ++i) { if (reusable_memory_[i]) aligned_delete(reusable_memory_[i]); } } static void* allocate(thread_info_base* this_thread, std::size_t size, std::size_t align = 16) { return allocate(default_tag(), this_thread, size, align); } static void deallocate(thread_info_base* this_thread, void* pointer, std::size_t size) { deallocate(default_tag(), this_thread, pointer, size); } template <typename Purpose> static void* allocate(Purpose, thread_info_base* this_thread, std::size_t size, std::size_t align = 16) { std::size_t chunks = (size + chunk_size - 1) / chunk_size; if (this_thread) { for (int mem_index = Purpose::begin_mem_index; mem_index < Purpose::end_mem_index; ++mem_index) { if (this_thread->reusable_memory_[mem_index]) { void* const pointer = this_thread->reusable_memory_[mem_index]; unsigned char* const mem = static_cast<unsigned char*>(pointer); if (static_cast<std::size_t>(mem[0]) >= chunks && reinterpret_cast<std::size_t>(pointer) % align == 0) { this_thread->reusable_memory_[mem_index] = 0; mem[size] = mem[0]; return pointer; } } } for (int mem_index = Purpose::begin_mem_index; mem_index < Purpose::end_mem_index; ++mem_index) { if (this_thread->reusable_memory_[mem_index]) { void* const pointer = this_thread->reusable_memory_[mem_index]; this_thread->reusable_memory_[mem_index] = 0; aligned_delete(pointer); break; } } } void* const pointer = aligned_new(align, chunks * chunk_size + 1); unsigned char* const mem = static_cast<unsigned char*>(pointer); mem[size] = (chunks <= (0x7f * 2 + 1)) ? static_cast<unsigned char>(chunks) : 0; return pointer; } template <typename Purpose> static void deallocate(Purpose, thread_info_base* this_thread, void* pointer, std::size_t size) { if (size <= chunk_size * (0x7f * 2 + 1)) { if (this_thread) { for (int mem_index = Purpose::begin_mem_index; mem_index < Purpose::end_mem_index; ++mem_index) { if (this_thread->reusable_memory_[mem_index] == 0) { unsigned char* const mem = static_cast<unsigned char*>(pointer); mem[0] = mem[size]; this_thread->reusable_memory_[mem_index] = pointer; return; } } } } aligned_delete(pointer); } void capture_current_exception() { switch (has_pending_exception_) { case 0: has_pending_exception_ = 1; pending_exception_ = std::current_exception(); break; case 1: has_pending_exception_ = 2; pending_exception_ = std::make_exception_ptr<multiple_exceptions>( multiple_exceptions(pending_exception_)); break; default: break; } } void rethrow_pending_exception() { if (has_pending_exception_ > 0) { has_pending_exception_ = 0; std::exception_ptr ex( static_cast<std::exception_ptr&&>( pending_exception_)); std::rethrow_exception(ex); } } private: enum { chunk_size = 4 }; void* reusable_memory_[max_mem_index]; int has_pending_exception_; std::exception_ptr pending_exception_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 261 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_info_base.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/recycling_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/recycling_allocator.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename Purpose = thread_info_base::default_tag> class recycling_allocator { public: typedef T value_type; template <typename U> struct rebind { typedef recycling_allocator<U, Purpose> other; }; recycling_allocator() { } template <typename U> recycling_allocator(const recycling_allocator<U, Purpose>&) { } T* allocate(std::size_t n) { void* p = thread_info_base::allocate(Purpose(), thread_context::top_of_thread_call_stack(), sizeof(T) * n, alignof(T)); return static_cast<T*>(p); } void deallocate(T* p, std::size_t n) { thread_info_base::deallocate(Purpose(), thread_context::top_of_thread_call_stack(), p, sizeof(T) * n); } }; template <typename Purpose> class recycling_allocator<void, Purpose> { public: typedef void value_type; template <typename U> struct rebind { typedef recycling_allocator<U, Purpose> other; }; recycling_allocator() { } template <typename U> recycling_allocator(const recycling_allocator<U, Purpose>&) { } }; template <typename Allocator, typename Purpose> struct get_recycling_allocator { typedef Allocator type; static type get(const Allocator& a) { return a; } }; template <typename T, typename Purpose> struct get_recycling_allocator<std::allocator<T>, Purpose> { typedef recycling_allocator<T, Purpose> type; static type get(const std::allocator<T>&) { return type(); } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/recycling_allocator.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associator.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associator.hpp" 2 3 4 namespace boost { namespace asio { template <template <typename, typename> class Associator, typename T, typename DefaultCandidate> struct associator { }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associator.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/functional.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/functional.hpp" 3 4 # 1 "/usr/include/c++/13/functional" 1 3 4 # 46 "/usr/include/c++/13/functional" 3 4 # 47 "/usr/include/c++/13/functional" 3 # 59 "/usr/include/c++/13/functional" 3 # 1 "/usr/include/c++/13/bits/std_function.h" 1 3 # 33 "/usr/include/c++/13/bits/std_function.h" 3 # 34 "/usr/include/c++/13/bits/std_function.h" 3 # 45 "/usr/include/c++/13/bits/std_function.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { class bad_function_call : public std::exception { public: virtual ~bad_function_call() noexcept; const char* what() const noexcept; }; template<typename _Tp> struct __is_location_invariant : is_trivially_copyable<_Tp>::type { }; class _Undefined_class; union _Nocopy_types { void* _M_object; const void* _M_const_object; void (*_M_function_pointer)(); void (_Undefined_class::*_M_member_pointer)(); }; union [[gnu::may_alias]] _Any_data { void* _M_access() noexcept { return &_M_pod_data[0]; } const void* _M_access() const noexcept { return &_M_pod_data[0]; } template<typename _Tp> _Tp& _M_access() noexcept { return *static_cast<_Tp*>(_M_access()); } template<typename _Tp> const _Tp& _M_access() const noexcept { return *static_cast<const _Tp*>(_M_access()); } _Nocopy_types _M_unused; char _M_pod_data[sizeof(_Nocopy_types)]; }; enum _Manager_operation { __get_type_info, __get_functor_ptr, __clone_functor, __destroy_functor }; template<typename _Signature> class function; class _Function_base { public: static const size_t _M_max_size = sizeof(_Nocopy_types); static const size_t _M_max_align = __alignof__(_Nocopy_types); template<typename _Functor> class _Base_manager { protected: static const bool __stored_locally = (__is_location_invariant<_Functor>::value && sizeof(_Functor) <= _M_max_size && __alignof__(_Functor) <= _M_max_align && (_M_max_align % __alignof__(_Functor) == 0)); using _Local_storage = integral_constant<bool, __stored_locally>; static _Functor* _M_get_pointer(const _Any_data& __source) noexcept { if constexpr (__stored_locally) { const _Functor& __f = __source._M_access<_Functor>(); return const_cast<_Functor*>(std::__addressof(__f)); } else return __source._M_access<_Functor*>(); } private: template<typename _Fn> static void _M_create(_Any_data& __dest, _Fn&& __f, true_type) { ::new (__dest._M_access()) _Functor(std::forward<_Fn>(__f)); } template<typename _Fn> static void _M_create(_Any_data& __dest, _Fn&& __f, false_type) { __dest._M_access<_Functor*>() = new _Functor(std::forward<_Fn>(__f)); } static void _M_destroy(_Any_data& __victim, true_type) { __victim._M_access<_Functor>().~_Functor(); } static void _M_destroy(_Any_data& __victim, false_type) { delete __victim._M_access<_Functor*>(); } public: static bool _M_manager(_Any_data& __dest, const _Any_data& __source, _Manager_operation __op) { switch (__op) { case __get_type_info: __dest._M_access<const type_info*>() = &typeid(_Functor); break; case __get_functor_ptr: __dest._M_access<_Functor*>() = _M_get_pointer(__source); break; case __clone_functor: _M_init_functor(__dest, *const_cast<const _Functor*>(_M_get_pointer(__source))); break; case __destroy_functor: _M_destroy(__dest, _Local_storage()); break; } return false; } template<typename _Fn> static void _M_init_functor(_Any_data& __functor, _Fn&& __f) noexcept(__and_<_Local_storage, is_nothrow_constructible<_Functor, _Fn>>::value) { _M_create(__functor, std::forward<_Fn>(__f), _Local_storage()); } template<typename _Signature> static bool _M_not_empty_function(const function<_Signature>& __f) noexcept { return static_cast<bool>(__f); } template<typename _Tp> static bool _M_not_empty_function(_Tp* __fp) noexcept { return __fp != nullptr; } template<typename _Class, typename _Tp> static bool _M_not_empty_function(_Tp _Class::* __mp) noexcept { return __mp != nullptr; } template<typename _Tp> static bool _M_not_empty_function(const _Tp&) noexcept { return true; } }; _Function_base() = default; ~_Function_base() { if (_M_manager) _M_manager(_M_functor, _M_functor, __destroy_functor); } bool _M_empty() const { return !_M_manager; } using _Manager_type = bool (*)(_Any_data&, const _Any_data&, _Manager_operation); _Any_data _M_functor{}; _Manager_type _M_manager{}; }; template<typename _Signature, typename _Functor> class _Function_handler; template<typename _Res, typename _Functor, typename... _ArgTypes> class _Function_handler<_Res(_ArgTypes...), _Functor> : public _Function_base::_Base_manager<_Functor> { using _Base = _Function_base::_Base_manager<_Functor>; public: static bool _M_manager(_Any_data& __dest, const _Any_data& __source, _Manager_operation __op) { switch (__op) { case __get_type_info: __dest._M_access<const type_info*>() = &typeid(_Functor); break; case __get_functor_ptr: __dest._M_access<_Functor*>() = _Base::_M_get_pointer(__source); break; default: _Base::_M_manager(__dest, __source, __op); } return false; } static _Res _M_invoke(const _Any_data& __functor, _ArgTypes&&... __args) { return std::__invoke_r<_Res>(*_Base::_M_get_pointer(__functor), std::forward<_ArgTypes>(__args)...); } template<typename _Fn> static constexpr bool _S_nothrow_init() noexcept { return __and_<typename _Base::_Local_storage, is_nothrow_constructible<_Functor, _Fn>>::value; } }; template<> class _Function_handler<void, void> { public: static bool _M_manager(_Any_data&, const _Any_data&, _Manager_operation) { return false; } }; template<typename _Signature, typename _Functor, bool __valid = is_object<_Functor>::value> struct _Target_handler : _Function_handler<_Signature, typename remove_cv<_Functor>::type> { }; template<typename _Signature, typename _Functor> struct _Target_handler<_Signature, _Functor, false> : _Function_handler<void, void> { }; template<typename _Res, typename... _ArgTypes> class function<_Res(_ArgTypes...)> : public _Maybe_unary_or_binary_function<_Res, _ArgTypes...>, private _Function_base { template<typename _Func, bool _Self = is_same<__remove_cvref_t<_Func>, function>::value> using _Decay_t = typename __enable_if_t<!_Self, decay<_Func>>::type; template<typename _Func, typename _DFunc = _Decay_t<_Func>, typename _Res2 = __invoke_result<_DFunc&, _ArgTypes...>> struct _Callable : __is_invocable_impl<_Res2, _Res>::type { }; template<typename _Cond, typename _Tp = void> using _Requires = __enable_if_t<_Cond::value, _Tp>; template<typename _Functor> using _Handler = _Function_handler<_Res(_ArgTypes...), __decay_t<_Functor>>; public: typedef _Res result_type; function() noexcept : _Function_base() { } function(nullptr_t) noexcept : _Function_base() { } # 386 "/usr/include/c++/13/bits/std_function.h" 3 function(const function& __x) : _Function_base() { if (static_cast<bool>(__x)) { __x._M_manager(_M_functor, __x._M_functor, __clone_functor); _M_invoker = __x._M_invoker; _M_manager = __x._M_manager; } } # 404 "/usr/include/c++/13/bits/std_function.h" 3 function(function&& __x) noexcept : _Function_base(), _M_invoker(__x._M_invoker) { if (static_cast<bool>(__x)) { _M_functor = __x._M_functor; _M_manager = __x._M_manager; __x._M_manager = nullptr; __x._M_invoker = nullptr; } } # 433 "/usr/include/c++/13/bits/std_function.h" 3 template<typename _Functor, typename _Constraints = _Requires<_Callable<_Functor>>> function(_Functor&& __f) noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) : _Function_base() { static_assert(is_copy_constructible<__decay_t<_Functor>>::value, "std::function target must be copy-constructible"); static_assert(is_constructible<__decay_t<_Functor>, _Functor>::value, "std::function target must be constructible from the " "constructor argument"); using _My_handler = _Handler<_Functor>; if (_My_handler::_M_not_empty_function(__f)) { _My_handler::_M_init_functor(_M_functor, std::forward<_Functor>(__f)); _M_invoker = &_My_handler::_M_invoke; _M_manager = &_My_handler::_M_manager; } } # 468 "/usr/include/c++/13/bits/std_function.h" 3 function& operator=(const function& __x) { function(__x).swap(*this); return *this; } # 486 "/usr/include/c++/13/bits/std_function.h" 3 function& operator=(function&& __x) noexcept { function(std::move(__x)).swap(*this); return *this; } # 500 "/usr/include/c++/13/bits/std_function.h" 3 function& operator=(nullptr_t) noexcept { if (_M_manager) { _M_manager(_M_functor, _M_functor, __destroy_functor); _M_manager = nullptr; _M_invoker = nullptr; } return *this; } # 529 "/usr/include/c++/13/bits/std_function.h" 3 template<typename _Functor> _Requires<_Callable<_Functor>, function&> operator=(_Functor&& __f) noexcept(_Handler<_Functor>::template _S_nothrow_init<_Functor>()) { function(std::forward<_Functor>(__f)).swap(*this); return *this; } template<typename _Functor> function& operator=(reference_wrapper<_Functor> __f) noexcept { function(__f).swap(*this); return *this; } # 556 "/usr/include/c++/13/bits/std_function.h" 3 void swap(function& __x) noexcept { std::swap(_M_functor, __x._M_functor); std::swap(_M_manager, __x._M_manager); std::swap(_M_invoker, __x._M_invoker); } # 573 "/usr/include/c++/13/bits/std_function.h" 3 explicit operator bool() const noexcept { return !_M_empty(); } # 586 "/usr/include/c++/13/bits/std_function.h" 3 _Res operator()(_ArgTypes... __args) const { if (_M_empty()) __throw_bad_function_call(); return _M_invoker(_M_functor, std::forward<_ArgTypes>(__args)...); } # 605 "/usr/include/c++/13/bits/std_function.h" 3 const type_info& target_type() const noexcept { if (_M_manager) { _Any_data __typeinfo_result; _M_manager(__typeinfo_result, _M_functor, __get_type_info); if (auto __ti = __typeinfo_result._M_access<const type_info*>()) return *__ti; } return typeid(void); } # 630 "/usr/include/c++/13/bits/std_function.h" 3 template<typename _Functor> _Functor* target() noexcept { const function* __const_this = this; const _Functor* __func = __const_this->template target<_Functor>(); return *const_cast<_Functor**>(&__func); } template<typename _Functor> const _Functor* target() const noexcept { if constexpr (is_object<_Functor>::value) { using _Handler = _Target_handler<_Res(_ArgTypes...), _Functor>; if (_M_manager == &_Handler::_M_manager || (_M_manager && typeid(_Functor) == target_type()) ) { _Any_data __ptr; _M_manager(__ptr, _M_functor, __get_functor_ptr); return __ptr._M_access<const _Functor*>(); } } return nullptr; } private: using _Invoker_type = _Res (*)(const _Any_data&, _ArgTypes&&...); _Invoker_type _M_invoker = nullptr; }; template<typename> struct __function_guide_helper { }; template<typename _Res, typename _Tp, bool _Nx, typename... _Args> struct __function_guide_helper< _Res (_Tp::*) (_Args...) noexcept(_Nx) > { using type = _Res(_Args...); }; template<typename _Res, typename _Tp, bool _Nx, typename... _Args> struct __function_guide_helper< _Res (_Tp::*) (_Args...) & noexcept(_Nx) > { using type = _Res(_Args...); }; template<typename _Res, typename _Tp, bool _Nx, typename... _Args> struct __function_guide_helper< _Res (_Tp::*) (_Args...) const noexcept(_Nx) > { using type = _Res(_Args...); }; template<typename _Res, typename _Tp, bool _Nx, typename... _Args> struct __function_guide_helper< _Res (_Tp::*) (_Args...) const & noexcept(_Nx) > { using type = _Res(_Args...); }; # 715 "/usr/include/c++/13/bits/std_function.h" 3 template<typename _Fn, typename _Op> using __function_guide_t = typename __function_guide_helper<_Op>::type; template<typename _Res, typename... _ArgTypes> function(_Res(*)(_ArgTypes...)) -> function<_Res(_ArgTypes...)>; template<typename _Fn, typename _Signature = __function_guide_t<_Fn, decltype(&_Fn::operator())>> function(_Fn) -> function<_Signature>; # 735 "/usr/include/c++/13/bits/std_function.h" 3 template<typename _Res, typename... _Args> inline bool operator==(const function<_Res(_Args...)>& __f, nullptr_t) noexcept { return !static_cast<bool>(__f); } # 774 "/usr/include/c++/13/bits/std_function.h" 3 template<typename _Res, typename... _Args> inline void swap(function<_Res(_Args...)>& __x, function<_Res(_Args...)>& __y) noexcept { __x.swap(__y); } namespace __detail::__variant { template<typename> struct _Never_valueless_alt; template<typename _Signature> struct _Never_valueless_alt<std::function<_Signature>> : std::true_type { }; } } # 60 "/usr/include/c++/13/functional" 2 3 # 1 "/usr/include/c++/13/unordered_map" 1 3 # 32 "/usr/include/c++/13/unordered_map" 3 # 33 "/usr/include/c++/13/unordered_map" 3 # 41 "/usr/include/c++/13/unordered_map" 3 # 1 "/usr/include/c++/13/bits/unordered_map.h" 1 3 # 33 "/usr/include/c++/13/bits/unordered_map.h" 3 # 1 "/usr/include/c++/13/bits/hashtable.h" 1 3 # 33 "/usr/include/c++/13/bits/hashtable.h" 3 # 34 "/usr/include/c++/13/bits/hashtable.h" 3 # 1 "/usr/include/c++/13/bits/hashtable_policy.h" 1 3 # 42 "/usr/include/c++/13/bits/hashtable_policy.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> class _Hashtable; namespace __detail { template<typename _Key, typename _Value, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _Traits> struct _Hashtable_base; template<typename _Iterator> inline typename std::iterator_traits<_Iterator>::difference_type __distance_fw(_Iterator __first, _Iterator __last, std::input_iterator_tag) { return __first != __last ? 1 : 0; } template<typename _Iterator> inline typename std::iterator_traits<_Iterator>::difference_type __distance_fw(_Iterator __first, _Iterator __last, std::forward_iterator_tag) { return std::distance(__first, __last); } template<typename _Iterator> inline typename std::iterator_traits<_Iterator>::difference_type __distance_fw(_Iterator __first, _Iterator __last) { return __distance_fw(__first, __last, std::__iterator_category(__first)); } struct _Identity { template<typename _Tp> _Tp&& operator()(_Tp&& __x) const noexcept { return std::forward<_Tp>(__x); } }; struct _Select1st { template<typename _Pair> struct __1st_type; template<typename _Tp, typename _Up> struct __1st_type<pair<_Tp, _Up>> { using type = _Tp; }; template<typename _Tp, typename _Up> struct __1st_type<const pair<_Tp, _Up>> { using type = const _Tp; }; template<typename _Pair> struct __1st_type<_Pair&> { using type = typename __1st_type<_Pair>::type&; }; template<typename _Tp> typename __1st_type<_Tp>::type&& operator()(_Tp&& __x) const noexcept { return std::forward<_Tp>(__x).first; } }; template<typename _ExKey, typename _Value> struct _ConvertToValueType; template<typename _Value> struct _ConvertToValueType<_Identity, _Value> { template<typename _Kt> constexpr _Kt&& operator()(_Kt&& __k) const noexcept { return std::forward<_Kt>(__k); } }; template<typename _Value> struct _ConvertToValueType<_Select1st, _Value> { constexpr _Value&& operator()(_Value&& __x) const noexcept { return std::move(__x); } constexpr const _Value& operator()(const _Value& __x) const noexcept { return __x; } template<typename _Kt, typename _Val> constexpr std::pair<_Kt, _Val>&& operator()(std::pair<_Kt, _Val>&& __x) const noexcept { return std::move(__x); } template<typename _Kt, typename _Val> constexpr const std::pair<_Kt, _Val>& operator()(const std::pair<_Kt, _Val>& __x) const noexcept { return __x; } }; template<typename _ExKey> struct _NodeBuilder; template<> struct _NodeBuilder<_Select1st> { template<typename _Kt, typename _Arg, typename _NodeGenerator> static auto _S_build(_Kt&& __k, _Arg&& __arg, const _NodeGenerator& __node_gen) -> typename _NodeGenerator::__node_type* { return __node_gen(std::forward<_Kt>(__k), std::forward<_Arg>(__arg).second); } }; template<> struct _NodeBuilder<_Identity> { template<typename _Kt, typename _Arg, typename _NodeGenerator> static auto _S_build(_Kt&& __k, _Arg&&, const _NodeGenerator& __node_gen) -> typename _NodeGenerator::__node_type* { return __node_gen(std::forward<_Kt>(__k)); } }; template<typename _NodeAlloc> struct _Hashtable_alloc; template<typename _NodeAlloc> struct _ReuseOrAllocNode { private: using __node_alloc_type = _NodeAlloc; using __hashtable_alloc = _Hashtable_alloc<__node_alloc_type>; using __node_alloc_traits = typename __hashtable_alloc::__node_alloc_traits; public: using __node_type = typename __hashtable_alloc::__node_type; _ReuseOrAllocNode(__node_type* __nodes, __hashtable_alloc& __h) : _M_nodes(__nodes), _M_h(__h) { } _ReuseOrAllocNode(const _ReuseOrAllocNode&) = delete; ~_ReuseOrAllocNode() { _M_h._M_deallocate_nodes(_M_nodes); } template<typename... _Args> __node_type* operator()(_Args&&... __args) const { if (_M_nodes) { __node_type* __node = _M_nodes; _M_nodes = _M_nodes->_M_next(); __node->_M_nxt = nullptr; auto& __a = _M_h._M_node_allocator(); __node_alloc_traits::destroy(__a, __node->_M_valptr()); try { __node_alloc_traits::construct(__a, __node->_M_valptr(), std::forward<_Args>(__args)...); } catch(...) { _M_h._M_deallocate_node_ptr(__node); throw; } return __node; } return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } private: mutable __node_type* _M_nodes; __hashtable_alloc& _M_h; }; template<typename _NodeAlloc> struct _AllocNode { private: using __hashtable_alloc = _Hashtable_alloc<_NodeAlloc>; public: using __node_type = typename __hashtable_alloc::__node_type; _AllocNode(__hashtable_alloc& __h) : _M_h(__h) { } template<typename... _Args> __node_type* operator()(_Args&&... __args) const { return _M_h._M_allocate_node(std::forward<_Args>(__args)...); } private: __hashtable_alloc& _M_h; }; # 279 "/usr/include/c++/13/bits/hashtable_policy.h" 3 template<bool _Cache_hash_code, bool _Constant_iterators, bool _Unique_keys> struct _Hashtable_traits { using __hash_cached = __bool_constant<_Cache_hash_code>; using __constant_iterators = __bool_constant<_Constant_iterators>; using __unique_keys = __bool_constant<_Unique_keys>; }; template<typename _Hash> struct _Hashtable_hash_traits { static constexpr std::size_t __small_size_threshold() noexcept { return std::__is_fast_hash<_Hash>::value ? 0 : 20; } }; # 309 "/usr/include/c++/13/bits/hashtable_policy.h" 3 struct _Hash_node_base { _Hash_node_base* _M_nxt; _Hash_node_base() noexcept : _M_nxt() { } _Hash_node_base(_Hash_node_base* __next) noexcept : _M_nxt(__next) { } }; template<typename _Value> struct _Hash_node_value_base { typedef _Value value_type; __gnu_cxx::__aligned_buffer<_Value> _M_storage; _Value* _M_valptr() noexcept { return _M_storage._M_ptr(); } const _Value* _M_valptr() const noexcept { return _M_storage._M_ptr(); } _Value& _M_v() noexcept { return *_M_valptr(); } const _Value& _M_v() const noexcept { return *_M_valptr(); } }; template<bool _Cache_hash_code> struct _Hash_node_code_cache { }; template<> struct _Hash_node_code_cache<true> { std::size_t _M_hash_code; }; template<typename _Value, bool _Cache_hash_code> struct _Hash_node_value : _Hash_node_value_base<_Value> , _Hash_node_code_cache<_Cache_hash_code> { }; template<typename _Value, bool _Cache_hash_code> struct _Hash_node : _Hash_node_base , _Hash_node_value<_Value, _Cache_hash_code> { _Hash_node* _M_next() const noexcept { return static_cast<_Hash_node*>(this->_M_nxt); } }; template<typename _Value, bool _Cache_hash_code> struct _Node_iterator_base { using __node_type = _Hash_node<_Value, _Cache_hash_code>; __node_type* _M_cur; _Node_iterator_base() : _M_cur(nullptr) { } _Node_iterator_base(__node_type* __p) noexcept : _M_cur(__p) { } void _M_incr() noexcept { _M_cur = _M_cur->_M_next(); } friend bool operator==(const _Node_iterator_base& __x, const _Node_iterator_base& __y) noexcept { return __x._M_cur == __y._M_cur; } }; template<typename _Value, bool __constant_iterators, bool __cache> struct _Node_iterator : public _Node_iterator_base<_Value, __cache> { private: using __base_type = _Node_iterator_base<_Value, __cache>; using __node_type = typename __base_type::__node_type; public: using value_type = _Value; using difference_type = std::ptrdiff_t; using iterator_category = std::forward_iterator_tag; using pointer = __conditional_t<__constant_iterators, const value_type*, value_type*>; using reference = __conditional_t<__constant_iterators, const value_type&, value_type&>; _Node_iterator() = default; explicit _Node_iterator(__node_type* __p) noexcept : __base_type(__p) { } reference operator*() const noexcept { return this->_M_cur->_M_v(); } pointer operator->() const noexcept { return this->_M_cur->_M_valptr(); } _Node_iterator& operator++() noexcept { this->_M_incr(); return *this; } _Node_iterator operator++(int) noexcept { _Node_iterator __tmp(*this); this->_M_incr(); return __tmp; } }; template<typename _Value, bool __constant_iterators, bool __cache> struct _Node_const_iterator : public _Node_iterator_base<_Value, __cache> { private: using __base_type = _Node_iterator_base<_Value, __cache>; using __node_type = typename __base_type::__node_type; public: typedef _Value value_type; typedef std::ptrdiff_t difference_type; typedef std::forward_iterator_tag iterator_category; typedef const value_type* pointer; typedef const value_type& reference; _Node_const_iterator() = default; explicit _Node_const_iterator(__node_type* __p) noexcept : __base_type(__p) { } _Node_const_iterator(const _Node_iterator<_Value, __constant_iterators, __cache>& __x) noexcept : __base_type(__x._M_cur) { } reference operator*() const noexcept { return this->_M_cur->_M_v(); } pointer operator->() const noexcept { return this->_M_cur->_M_valptr(); } _Node_const_iterator& operator++() noexcept { this->_M_incr(); return *this; } _Node_const_iterator operator++(int) noexcept { _Node_const_iterator __tmp(*this); this->_M_incr(); return __tmp; } }; struct _Mod_range_hashing { typedef std::size_t first_argument_type; typedef std::size_t second_argument_type; typedef std::size_t result_type; result_type operator()(first_argument_type __num, second_argument_type __den) const noexcept { return __num % __den; } }; struct _Default_ranged_hash { }; struct _Prime_rehash_policy { using __has_load_factor = true_type; _Prime_rehash_policy(float __z = 1.0) noexcept : _M_max_load_factor(__z), _M_next_resize(0) { } float max_load_factor() const noexcept { return _M_max_load_factor; } std::size_t _M_next_bkt(std::size_t __n) const; std::size_t _M_bkt_for_elements(std::size_t __n) const { return __builtin_ceil(__n / (double)_M_max_load_factor); } std::pair<bool, std::size_t> _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, std::size_t __n_ins) const; typedef std::size_t _State; _State _M_state() const { return _M_next_resize; } void _M_reset() noexcept { _M_next_resize = 0; } void _M_reset(_State __state) { _M_next_resize = __state; } static const std::size_t _S_growth_factor = 2; float _M_max_load_factor; mutable std::size_t _M_next_resize; }; struct _Mask_range_hashing { typedef std::size_t first_argument_type; typedef std::size_t second_argument_type; typedef std::size_t result_type; result_type operator()(first_argument_type __num, second_argument_type __den) const noexcept { return __num & (__den - 1); } }; inline std::size_t __clp2(std::size_t __n) noexcept { using __gnu_cxx::__int_traits; if (__n < 2) return __n; const unsigned __lz = sizeof(size_t) > sizeof(long) ? __builtin_clzll(__n - 1ull) : __builtin_clzl(__n - 1ul); return (size_t(1) << (__int_traits<size_t>::__digits - __lz - 1)) << 1; } struct _Power2_rehash_policy { using __has_load_factor = true_type; _Power2_rehash_policy(float __z = 1.0) noexcept : _M_max_load_factor(__z), _M_next_resize(0) { } float max_load_factor() const noexcept { return _M_max_load_factor; } std::size_t _M_next_bkt(std::size_t __n) noexcept { if (__n == 0) return 1; const auto __max_width = std::min<size_t>(sizeof(size_t), 8); const auto __max_bkt = size_t(1) << (__max_width * 8 - 1); std::size_t __res = __clp2(__n); if (__res == 0) __res = __max_bkt; else if (__res == 1) __res = 2; if (__res == __max_bkt) _M_next_resize = size_t(-1); else _M_next_resize = __builtin_floor(__res * (double)_M_max_load_factor); return __res; } std::size_t _M_bkt_for_elements(std::size_t __n) const noexcept { return __builtin_ceil(__n / (double)_M_max_load_factor); } std::pair<bool, std::size_t> _M_need_rehash(std::size_t __n_bkt, std::size_t __n_elt, std::size_t __n_ins) noexcept { if (__n_elt + __n_ins > _M_next_resize) { double __min_bkts = std::max<std::size_t>(__n_elt + __n_ins, _M_next_resize ? 0 : 11) / (double)_M_max_load_factor; if (__min_bkts >= __n_bkt) return { true, _M_next_bkt(std::max<std::size_t>(__builtin_floor(__min_bkts) + 1, __n_bkt * _S_growth_factor)) }; _M_next_resize = __builtin_floor(__n_bkt * (double)_M_max_load_factor); return { false, 0 }; } else return { false, 0 }; } typedef std::size_t _State; _State _M_state() const noexcept { return _M_next_resize; } void _M_reset() noexcept { _M_next_resize = 0; } void _M_reset(_State __state) noexcept { _M_next_resize = __state; } static const std::size_t _S_growth_factor = 2; float _M_max_load_factor; std::size_t _M_next_resize; }; # 732 "/usr/include/c++/13/bits/hashtable_policy.h" 3 template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits, bool _Unique_keys = _Traits::__unique_keys::value> struct _Map_base { }; template<typename _Key, typename _Val, typename _Alloc, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Map_base<_Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> { using mapped_type = _Val; }; template<typename _Key, typename _Val, typename _Alloc, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Map_base<_Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> { private: using __hashtable_base = _Hashtable_base<_Key, pair<const _Key, _Val>, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _Traits>; using __hashtable = _Hashtable<_Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using __hash_code = typename __hashtable_base::__hash_code; public: using key_type = typename __hashtable_base::key_type; using mapped_type = _Val; mapped_type& operator[](const key_type& __k); mapped_type& operator[](key_type&& __k); mapped_type& at(const key_type& __k) { auto __ite = static_cast<__hashtable*>(this)->find(__k); if (!__ite._M_cur) __throw_out_of_range(("unordered_map::at")); return __ite->second; } const mapped_type& at(const key_type& __k) const { auto __ite = static_cast<const __hashtable*>(this)->find(__k); if (!__ite._M_cur) __throw_out_of_range(("unordered_map::at")); return __ite->second; } }; template<typename _Key, typename _Val, typename _Alloc, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Map_base<_Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: operator[](const key_type& __k) -> mapped_type& { __hashtable* __h = static_cast<__hashtable*>(this); __hash_code __code = __h->_M_hash_code(__k); std::size_t __bkt = __h->_M_bucket_index(__code); if (auto __node = __h->_M_find_node(__bkt, __k, __code)) return __node->_M_v().second; typename __hashtable::_Scoped_node __node { __h, std::piecewise_construct, std::tuple<const key_type&>(__k), std::tuple<>() }; auto __pos = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); __node._M_node = nullptr; return __pos->second; } template<typename _Key, typename _Val, typename _Alloc, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Map_base<_Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: operator[](key_type&& __k) -> mapped_type& { __hashtable* __h = static_cast<__hashtable*>(this); __hash_code __code = __h->_M_hash_code(__k); std::size_t __bkt = __h->_M_bucket_index(__code); if (auto __node = __h->_M_find_node(__bkt, __k, __code)) return __node->_M_v().second; typename __hashtable::_Scoped_node __node { __h, std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::tuple<>() }; auto __pos = __h->_M_insert_unique_node(__bkt, __code, __node._M_node); __node._M_node = nullptr; return __pos->second; } template<typename _Key, typename _Val, typename _Alloc, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits, bool __uniq> struct _Map_base<const _Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> : _Map_base<_Key, pair<const _Key, _Val>, _Alloc, _Select1st, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, __uniq> { }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Insert_base { protected: using __hashtable_base = _Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>; using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using __hash_cached = typename _Traits::__hash_cached; using __constant_iterators = typename _Traits::__constant_iterators; using __hashtable_alloc = _Hashtable_alloc< __alloc_rebind<_Alloc, _Hash_node<_Value, __hash_cached::value>>>; using value_type = typename __hashtable_base::value_type; using size_type = typename __hashtable_base::size_type; using __unique_keys = typename _Traits::__unique_keys; using __node_alloc_type = typename __hashtable_alloc::__node_alloc_type; using __node_gen_type = _AllocNode<__node_alloc_type>; __hashtable& _M_conjure_hashtable() { return *(static_cast<__hashtable*>(this)); } template<typename _InputIterator, typename _NodeGetter> void _M_insert_range(_InputIterator __first, _InputIterator __last, const _NodeGetter&, true_type __uks); template<typename _InputIterator, typename _NodeGetter> void _M_insert_range(_InputIterator __first, _InputIterator __last, const _NodeGetter&, false_type __uks); public: using iterator = _Node_iterator<_Value, __constant_iterators::value, __hash_cached::value>; using const_iterator = _Node_const_iterator<_Value, __constant_iterators::value, __hash_cached::value>; using __ireturn_type = __conditional_t<__unique_keys::value, std::pair<iterator, bool>, iterator>; __ireturn_type insert(const value_type& __v) { __hashtable& __h = _M_conjure_hashtable(); __node_gen_type __node_gen(__h); return __h._M_insert(__v, __node_gen, __unique_keys{}); } iterator insert(const_iterator __hint, const value_type& __v) { __hashtable& __h = _M_conjure_hashtable(); __node_gen_type __node_gen(__h); return __h._M_insert(__hint, __v, __node_gen, __unique_keys{}); } template<typename _KType, typename... _Args> std::pair<iterator, bool> try_emplace(const_iterator, _KType&& __k, _Args&&... __args) { __hashtable& __h = _M_conjure_hashtable(); auto __code = __h._M_hash_code(__k); std::size_t __bkt = __h._M_bucket_index(__code); if (auto __node = __h._M_find_node(__bkt, __k, __code)) return { iterator(__node), false }; typename __hashtable::_Scoped_node __node { &__h, std::piecewise_construct, std::forward_as_tuple(std::forward<_KType>(__k)), std::forward_as_tuple(std::forward<_Args>(__args)...) }; auto __it = __h._M_insert_unique_node(__bkt, __code, __node._M_node); __node._M_node = nullptr; return { __it, true }; } void insert(initializer_list<value_type> __l) { this->insert(__l.begin(), __l.end()); } template<typename _InputIterator> void insert(_InputIterator __first, _InputIterator __last) { __hashtable& __h = _M_conjure_hashtable(); __node_gen_type __node_gen(__h); return _M_insert_range(__first, __last, __node_gen, __unique_keys{}); } }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _InputIterator, typename _NodeGetter> void _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert_range(_InputIterator __first, _InputIterator __last, const _NodeGetter& __node_gen, true_type __uks) { __hashtable& __h = _M_conjure_hashtable(); for (; __first != __last; ++__first) __h._M_insert(*__first, __node_gen, __uks); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _InputIterator, typename _NodeGetter> void _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert_range(_InputIterator __first, _InputIterator __last, const _NodeGetter& __node_gen, false_type __uks) { using __rehash_type = typename __hashtable::__rehash_type; using __rehash_state = typename __hashtable::__rehash_state; using pair_type = std::pair<bool, std::size_t>; size_type __n_elt = __detail::__distance_fw(__first, __last); if (__n_elt == 0) return; __hashtable& __h = _M_conjure_hashtable(); __rehash_type& __rehash = __h._M_rehash_policy; const __rehash_state& __saved_state = __rehash._M_state(); pair_type __do_rehash = __rehash._M_need_rehash(__h._M_bucket_count, __h._M_element_count, __n_elt); if (__do_rehash.first) __h._M_rehash(__do_rehash.second, __saved_state); for (; __first != __last; ++__first) __h._M_insert(*__first, __node_gen, __uks); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits, bool _Constant_iterators = _Traits::__constant_iterators::value> struct _Insert; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> { using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using value_type = typename __base_type::value_type; using iterator = typename __base_type::iterator; using const_iterator = typename __base_type::const_iterator; using __ireturn_type = typename __base_type::__ireturn_type; using __unique_keys = typename __base_type::__unique_keys; using __hashtable = typename __base_type::__hashtable; using __node_gen_type = typename __base_type::__node_gen_type; using __base_type::insert; __ireturn_type insert(value_type&& __v) { __hashtable& __h = this->_M_conjure_hashtable(); __node_gen_type __node_gen(__h); return __h._M_insert(std::move(__v), __node_gen, __unique_keys{}); } iterator insert(const_iterator __hint, value_type&& __v) { __hashtable& __h = this->_M_conjure_hashtable(); __node_gen_type __node_gen(__h); return __h._M_insert(__hint, std::move(__v), __node_gen, __unique_keys{}); } }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> : public _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits> { using __base_type = _Insert_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using value_type = typename __base_type::value_type; using iterator = typename __base_type::iterator; using const_iterator = typename __base_type::const_iterator; using __unique_keys = typename __base_type::__unique_keys; using __hashtable = typename __base_type::__hashtable; using __ireturn_type = typename __base_type::__ireturn_type; using __base_type::insert; template<typename _Pair> using __is_cons = std::is_constructible<value_type, _Pair&&>; template<typename _Pair> using _IFcons = std::enable_if<__is_cons<_Pair>::value>; template<typename _Pair> using _IFconsp = typename _IFcons<_Pair>::type; template<typename _Pair, typename = _IFconsp<_Pair>> __ireturn_type insert(_Pair&& __v) { __hashtable& __h = this->_M_conjure_hashtable(); return __h._M_emplace(__unique_keys{}, std::forward<_Pair>(__v)); } template<typename _Pair, typename = _IFconsp<_Pair>> iterator insert(const_iterator __hint, _Pair&& __v) { __hashtable& __h = this->_M_conjure_hashtable(); return __h._M_emplace(__hint, __unique_keys{}, std::forward<_Pair>(__v)); } }; template<typename _Policy> using __has_load_factor = typename _Policy::__has_load_factor; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits, typename = __detected_or_t<false_type, __has_load_factor, _RehashPolicy>> struct _Rehash_base; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false_type > { }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true_type > { private: using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; public: float max_load_factor() const noexcept { const __hashtable* __this = static_cast<const __hashtable*>(this); return __this->__rehash_policy().max_load_factor(); } void max_load_factor(float __z) { __hashtable* __this = static_cast<__hashtable*>(this); __this->__rehash_policy(_RehashPolicy(__z)); } void reserve(std::size_t __n) { __hashtable* __this = static_cast<__hashtable*>(this); __this->rehash(__this->__rehash_policy()._M_bkt_for_elements(__n)); } }; template<int _Nm, typename _Tp, bool __use_ebo = !__is_final(_Tp) && __is_empty(_Tp)> struct _Hashtable_ebo_helper; template<int _Nm, typename _Tp> struct _Hashtable_ebo_helper<_Nm, _Tp, true> : private _Tp { _Hashtable_ebo_helper() noexcept(noexcept(_Tp())) : _Tp() { } template<typename _OtherTp> _Hashtable_ebo_helper(_OtherTp&& __tp) : _Tp(std::forward<_OtherTp>(__tp)) { } const _Tp& _M_cget() const { return static_cast<const _Tp&>(*this); } _Tp& _M_get() { return static_cast<_Tp&>(*this); } }; template<int _Nm, typename _Tp> struct _Hashtable_ebo_helper<_Nm, _Tp, false> { _Hashtable_ebo_helper() = default; template<typename _OtherTp> _Hashtable_ebo_helper(_OtherTp&& __tp) : _M_tp(std::forward<_OtherTp>(__tp)) { } const _Tp& _M_cget() const { return _M_tp; } _Tp& _M_get() { return _M_tp; } private: _Tp _M_tp{}; }; template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused, bool __cache_hash_code> struct _Local_iterator_base; # 1272 "/usr/include/c++/13/bits/hashtable_policy.h" 3 template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused, bool __cache_hash_code> struct _Hash_code_base : private _Hashtable_ebo_helper<1, _Hash> { private: using __ebo_hash = _Hashtable_ebo_helper<1, _Hash>; friend struct _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>; public: typedef _Hash hasher; hasher hash_function() const { return _M_hash(); } protected: typedef std::size_t __hash_code; _Hash_code_base() = default; _Hash_code_base(const _Hash& __hash) : __ebo_hash(__hash) { } __hash_code _M_hash_code(const _Key& __k) const { static_assert(__is_invocable<const _Hash&, const _Key&>{}, "hash function must be invocable with an argument of key type"); return _M_hash()(__k); } template<typename _Kt> __hash_code _M_hash_code_tr(const _Kt& __k) const { static_assert(__is_invocable<const _Hash&, const _Kt&>{}, "hash function must be invocable with an argument of key type"); return _M_hash()(__k); } __hash_code _M_hash_code(const _Hash&, const _Hash_node_value<_Value, true>& __n) const { return __n._M_hash_code; } template<typename _H2> __hash_code _M_hash_code(const _H2&, const _Hash_node_value<_Value, __cache_hash_code>& __n) const { return _M_hash_code(_ExtractKey{}(__n._M_v())); } __hash_code _M_hash_code(const _Hash_node_value<_Value, false>& __n) const { return _M_hash_code(_ExtractKey{}(__n._M_v())); } __hash_code _M_hash_code(const _Hash_node_value<_Value, true>& __n) const { return __n._M_hash_code; } std::size_t _M_bucket_index(__hash_code __c, std::size_t __bkt_count) const { return _RangeHash{}(__c, __bkt_count); } std::size_t _M_bucket_index(const _Hash_node_value<_Value, false>& __n, std::size_t __bkt_count) const noexcept( noexcept(declval<const _Hash&>()(declval<const _Key&>())) && noexcept(declval<const _RangeHash&>()((__hash_code)0, (std::size_t)0)) ) { return _RangeHash{}(_M_hash_code(_ExtractKey{}(__n._M_v())), __bkt_count); } std::size_t _M_bucket_index(const _Hash_node_value<_Value, true>& __n, std::size_t __bkt_count) const noexcept( noexcept(declval<const _RangeHash&>()((__hash_code)0, (std::size_t)0)) ) { return _RangeHash{}(__n._M_hash_code, __bkt_count); } void _M_store_code(_Hash_node_code_cache<false>&, __hash_code) const { } void _M_copy_code(_Hash_node_code_cache<false>&, const _Hash_node_code_cache<false>&) const { } void _M_store_code(_Hash_node_code_cache<true>& __n, __hash_code __c) const { __n._M_hash_code = __c; } void _M_copy_code(_Hash_node_code_cache<true>& __to, const _Hash_node_code_cache<true>& __from) const { __to._M_hash_code = __from._M_hash_code; } void _M_swap(_Hash_code_base& __x) { std::swap(__ebo_hash::_M_get(), __x.__ebo_hash::_M_get()); } const _Hash& _M_hash() const { return __ebo_hash::_M_cget(); } }; template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused> struct _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, true> : public _Node_iterator_base<_Value, true> { protected: using __base_node_iter = _Node_iterator_base<_Value, true>; using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, true>; _Local_iterator_base() = default; _Local_iterator_base(const __hash_code_base&, _Hash_node<_Value, true>* __p, std::size_t __bkt, std::size_t __bkt_count) : __base_node_iter(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) { } void _M_incr() { __base_node_iter::_M_incr(); if (this->_M_cur) { std::size_t __bkt = _RangeHash{}(this->_M_cur->_M_hash_code, _M_bucket_count); if (__bkt != _M_bucket) this->_M_cur = nullptr; } } std::size_t _M_bucket; std::size_t _M_bucket_count; public: std::size_t _M_get_bucket() const { return _M_bucket; } }; template<typename _Tp, bool _IsEmpty = std::is_empty<_Tp>::value> struct _Hash_code_storage { __gnu_cxx::__aligned_buffer<_Tp> _M_storage; _Tp* _M_h() { return _M_storage._M_ptr(); } const _Tp* _M_h() const { return _M_storage._M_ptr(); } }; template<typename _Tp> struct _Hash_code_storage<_Tp, true> { static_assert( std::is_empty<_Tp>::value, "Type must be empty" ); _Tp* _M_h() { return reinterpret_cast<_Tp*>(this); } const _Tp* _M_h() const { return reinterpret_cast<const _Tp*>(this); } }; template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused> using __hash_code_for_local_iter = _Hash_code_storage<_Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>>; template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused> struct _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false> : __hash_code_for_local_iter<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused> , _Node_iterator_base<_Value, false> { protected: using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, false>; using __node_iter_base = _Node_iterator_base<_Value, false>; _Local_iterator_base() : _M_bucket_count(-1) { } _Local_iterator_base(const __hash_code_base& __base, _Hash_node<_Value, false>* __p, std::size_t __bkt, std::size_t __bkt_count) : __node_iter_base(__p), _M_bucket(__bkt), _M_bucket_count(__bkt_count) { _M_init(__base); } ~_Local_iterator_base() { if (_M_bucket_count != size_t(-1)) _M_destroy(); } _Local_iterator_base(const _Local_iterator_base& __iter) : __node_iter_base(__iter._M_cur), _M_bucket(__iter._M_bucket) , _M_bucket_count(__iter._M_bucket_count) { if (_M_bucket_count != size_t(-1)) _M_init(*__iter._M_h()); } _Local_iterator_base& operator=(const _Local_iterator_base& __iter) { if (_M_bucket_count != -1) _M_destroy(); this->_M_cur = __iter._M_cur; _M_bucket = __iter._M_bucket; _M_bucket_count = __iter._M_bucket_count; if (_M_bucket_count != -1) _M_init(*__iter._M_h()); return *this; } void _M_incr() { __node_iter_base::_M_incr(); if (this->_M_cur) { std::size_t __bkt = this->_M_h()->_M_bucket_index(*this->_M_cur, _M_bucket_count); if (__bkt != _M_bucket) this->_M_cur = nullptr; } } std::size_t _M_bucket; std::size_t _M_bucket_count; void _M_init(const __hash_code_base& __base) { ::new(this->_M_h()) __hash_code_base(__base); } void _M_destroy() { this->_M_h()->~__hash_code_base(); } public: std::size_t _M_get_bucket() const { return _M_bucket; } }; template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused, bool __constant_iterators, bool __cache> struct _Local_iterator : public _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache> { private: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache>; using __hash_code_base = typename __base_type::__hash_code_base; public: using value_type = _Value; using pointer = __conditional_t<__constant_iterators, const value_type*, value_type*>; using reference = __conditional_t<__constant_iterators, const value_type&, value_type&>; using difference_type = ptrdiff_t; using iterator_category = forward_iterator_tag; _Local_iterator() = default; _Local_iterator(const __hash_code_base& __base, _Hash_node<_Value, __cache>* __n, std::size_t __bkt, std::size_t __bkt_count) : __base_type(__base, __n, __bkt, __bkt_count) { } reference operator*() const { return this->_M_cur->_M_v(); } pointer operator->() const { return this->_M_cur->_M_valptr(); } _Local_iterator& operator++() { this->_M_incr(); return *this; } _Local_iterator operator++(int) { _Local_iterator __tmp(*this); this->_M_incr(); return __tmp; } }; template<typename _Key, typename _Value, typename _ExtractKey, typename _Hash, typename _RangeHash, typename _Unused, bool __constant_iterators, bool __cache> struct _Local_const_iterator : public _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache> { private: using __base_type = _Local_iterator_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __cache>; using __hash_code_base = typename __base_type::__hash_code_base; public: typedef _Value value_type; typedef const value_type* pointer; typedef const value_type& reference; typedef std::ptrdiff_t difference_type; typedef std::forward_iterator_tag iterator_category; _Local_const_iterator() = default; _Local_const_iterator(const __hash_code_base& __base, _Hash_node<_Value, __cache>* __n, std::size_t __bkt, std::size_t __bkt_count) : __base_type(__base, __n, __bkt, __bkt_count) { } _Local_const_iterator(const _Local_iterator<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __constant_iterators, __cache>& __x) : __base_type(__x) { } reference operator*() const { return this->_M_cur->_M_v(); } pointer operator->() const { return this->_M_cur->_M_valptr(); } _Local_const_iterator& operator++() { this->_M_incr(); return *this; } _Local_const_iterator operator++(int) { _Local_const_iterator __tmp(*this); this->_M_incr(); return __tmp; } }; # 1664 "/usr/include/c++/13/bits/hashtable_policy.h" 3 template<typename _Key, typename _Value, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _Traits> struct _Hashtable_base : public _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, _Traits::__hash_cached::value>, private _Hashtable_ebo_helper<0, _Equal> { public: typedef _Key key_type; typedef _Value value_type; typedef _Equal key_equal; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; using __traits_type = _Traits; using __hash_cached = typename __traits_type::__hash_cached; using __hash_code_base = _Hash_code_base<_Key, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __hash_cached::value>; using __hash_code = typename __hash_code_base::__hash_code; private: using _EqualEBO = _Hashtable_ebo_helper<0, _Equal>; static bool _S_equals(__hash_code, const _Hash_node_code_cache<false>&) { return true; } static bool _S_node_equals(const _Hash_node_code_cache<false>&, const _Hash_node_code_cache<false>&) { return true; } static bool _S_equals(__hash_code __c, const _Hash_node_code_cache<true>& __n) { return __c == __n._M_hash_code; } static bool _S_node_equals(const _Hash_node_code_cache<true>& __lhn, const _Hash_node_code_cache<true>& __rhn) { return __lhn._M_hash_code == __rhn._M_hash_code; } protected: _Hashtable_base() = default; _Hashtable_base(const _Hash& __hash, const _Equal& __eq) : __hash_code_base(__hash), _EqualEBO(__eq) { } bool _M_key_equals(const _Key& __k, const _Hash_node_value<_Value, __hash_cached::value>& __n) const { static_assert(__is_invocable<const _Equal&, const _Key&, const _Key&>{}, "key equality predicate must be invocable with two arguments of " "key type"); return _M_eq()(__k, _ExtractKey{}(__n._M_v())); } template<typename _Kt> bool _M_key_equals_tr(const _Kt& __k, const _Hash_node_value<_Value, __hash_cached::value>& __n) const { static_assert( __is_invocable<const _Equal&, const _Kt&, const _Key&>{}, "key equality predicate must be invocable with two arguments of " "key type"); return _M_eq()(__k, _ExtractKey{}(__n._M_v())); } bool _M_equals(const _Key& __k, __hash_code __c, const _Hash_node_value<_Value, __hash_cached::value>& __n) const { return _S_equals(__c, __n) && _M_key_equals(__k, __n); } template<typename _Kt> bool _M_equals_tr(const _Kt& __k, __hash_code __c, const _Hash_node_value<_Value, __hash_cached::value>& __n) const { return _S_equals(__c, __n) && _M_key_equals_tr(__k, __n); } bool _M_node_equals( const _Hash_node_value<_Value, __hash_cached::value>& __lhn, const _Hash_node_value<_Value, __hash_cached::value>& __rhn) const { return _S_node_equals(__lhn, __rhn) && _M_key_equals(_ExtractKey{}(__lhn._M_v()), __rhn); } void _M_swap(_Hashtable_base& __x) { __hash_code_base::_M_swap(__x); std::swap(_EqualEBO::_M_get(), __x._EqualEBO::_M_get()); } const _Equal& _M_eq() const { return _EqualEBO::_M_cget(); } }; # 1780 "/usr/include/c++/13/bits/hashtable_policy.h" 3 template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits, bool _Unique_keys = _Traits::__unique_keys::value> struct _Equality; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true> { using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; bool _M_equal(const __hashtable&) const; }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> bool _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, true>:: _M_equal(const __hashtable& __other) const { using __node_type = typename __hashtable::__node_type; const __hashtable* __this = static_cast<const __hashtable*>(this); if (__this->size() != __other.size()) return false; for (auto __itx = __this->begin(); __itx != __this->end(); ++__itx) { std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); auto __prev_n = __other._M_buckets[__ybkt]; if (!__prev_n) return false; for (__node_type* __n = static_cast<__node_type*>(__prev_n->_M_nxt);; __n = __n->_M_next()) { if (__n->_M_v() == *__itx) break; if (!__n->_M_nxt || __other._M_bucket_index(*__n->_M_next()) != __ybkt) return false; } } return true; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> struct _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false> { using __hashtable = _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; bool _M_equal(const __hashtable&) const; }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> bool _Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits, false>:: _M_equal(const __hashtable& __other) const { using __node_type = typename __hashtable::__node_type; const __hashtable* __this = static_cast<const __hashtable*>(this); if (__this->size() != __other.size()) return false; for (auto __itx = __this->begin(); __itx != __this->end();) { std::size_t __x_count = 1; auto __itx_end = __itx; for (++__itx_end; __itx_end != __this->end() && __this->key_eq()(_ExtractKey{}(*__itx), _ExtractKey{}(*__itx_end)); ++__itx_end) ++__x_count; std::size_t __ybkt = __other._M_bucket_index(*__itx._M_cur); auto __y_prev_n = __other._M_buckets[__ybkt]; if (!__y_prev_n) return false; __node_type* __y_n = static_cast<__node_type*>(__y_prev_n->_M_nxt); for (;;) { if (__this->key_eq()(_ExtractKey{}(__y_n->_M_v()), _ExtractKey{}(*__itx))) break; auto __y_ref_n = __y_n; for (__y_n = __y_n->_M_next(); __y_n; __y_n = __y_n->_M_next()) if (!__other._M_node_equals(*__y_ref_n, *__y_n)) break; if (!__y_n || __other._M_bucket_index(*__y_n) != __ybkt) return false; } typename __hashtable::const_iterator __ity(__y_n); for (auto __ity_end = __ity; __ity_end != __other.end(); ++__ity_end) if (--__x_count == 0) break; if (__x_count != 0) return false; if (!std::is_permutation(__itx, __itx_end, __ity)) return false; __itx = __itx_end; } return true; } template<typename _NodeAlloc> struct _Hashtable_alloc : private _Hashtable_ebo_helper<0, _NodeAlloc> { private: using __ebo_node_alloc = _Hashtable_ebo_helper<0, _NodeAlloc>; template<typename> struct __get_value_type; template<typename _Val, bool _Cache_hash_code> struct __get_value_type<_Hash_node<_Val, _Cache_hash_code>> { using type = _Val; }; public: using __node_type = typename _NodeAlloc::value_type; using __node_alloc_type = _NodeAlloc; using __node_alloc_traits = __gnu_cxx::__alloc_traits<__node_alloc_type>; using __value_alloc_traits = typename __node_alloc_traits::template rebind_traits<typename __get_value_type<__node_type>::type>; using __node_ptr = __node_type*; using __node_base = _Hash_node_base; using __node_base_ptr = __node_base*; using __buckets_alloc_type = __alloc_rebind<__node_alloc_type, __node_base_ptr>; using __buckets_alloc_traits = std::allocator_traits<__buckets_alloc_type>; using __buckets_ptr = __node_base_ptr*; _Hashtable_alloc() = default; _Hashtable_alloc(const _Hashtable_alloc&) = default; _Hashtable_alloc(_Hashtable_alloc&&) = default; template<typename _Alloc> _Hashtable_alloc(_Alloc&& __a) : __ebo_node_alloc(std::forward<_Alloc>(__a)) { } __node_alloc_type& _M_node_allocator() { return __ebo_node_alloc::_M_get(); } const __node_alloc_type& _M_node_allocator() const { return __ebo_node_alloc::_M_cget(); } template<typename... _Args> __node_ptr _M_allocate_node(_Args&&... __args); void _M_deallocate_node(__node_ptr __n); void _M_deallocate_node_ptr(__node_ptr __n); void _M_deallocate_nodes(__node_ptr __n); __buckets_ptr _M_allocate_buckets(std::size_t __bkt_count); void _M_deallocate_buckets(__buckets_ptr, std::size_t __bkt_count); }; template<typename _NodeAlloc> template<typename... _Args> auto _Hashtable_alloc<_NodeAlloc>::_M_allocate_node(_Args&&... __args) -> __node_ptr { auto __nptr = __node_alloc_traits::allocate(_M_node_allocator(), 1); __node_ptr __n = std::__to_address(__nptr); try { ::new ((void*)__n) __node_type; __node_alloc_traits::construct(_M_node_allocator(), __n->_M_valptr(), std::forward<_Args>(__args)...); return __n; } catch(...) { __node_alloc_traits::deallocate(_M_node_allocator(), __nptr, 1); throw; } } template<typename _NodeAlloc> void _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node(__node_ptr __n) { __node_alloc_traits::destroy(_M_node_allocator(), __n->_M_valptr()); _M_deallocate_node_ptr(__n); } template<typename _NodeAlloc> void _Hashtable_alloc<_NodeAlloc>::_M_deallocate_node_ptr(__node_ptr __n) { typedef typename __node_alloc_traits::pointer _Ptr; auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__n); __n->~__node_type(); __node_alloc_traits::deallocate(_M_node_allocator(), __ptr, 1); } template<typename _NodeAlloc> void _Hashtable_alloc<_NodeAlloc>::_M_deallocate_nodes(__node_ptr __n) { while (__n) { __node_ptr __tmp = __n; __n = __n->_M_next(); _M_deallocate_node(__tmp); } } template<typename _NodeAlloc> auto _Hashtable_alloc<_NodeAlloc>::_M_allocate_buckets(std::size_t __bkt_count) -> __buckets_ptr { __buckets_alloc_type __alloc(_M_node_allocator()); auto __ptr = __buckets_alloc_traits::allocate(__alloc, __bkt_count); __buckets_ptr __p = std::__to_address(__ptr); __builtin_memset(__p, 0, __bkt_count * sizeof(__node_base_ptr)); return __p; } template<typename _NodeAlloc> void _Hashtable_alloc<_NodeAlloc>:: _M_deallocate_buckets(__buckets_ptr __bkts, std::size_t __bkt_count) { typedef typename __buckets_alloc_traits::pointer _Ptr; auto __ptr = std::pointer_traits<_Ptr>::pointer_to(*__bkts); __buckets_alloc_type __alloc(_M_node_allocator()); __buckets_alloc_traits::deallocate(__alloc, __ptr, __bkt_count); } } } # 36 "/usr/include/c++/13/bits/hashtable.h" 2 3 # 1 "/usr/include/c++/13/bits/node_handle.h" 1 3 # 34 "/usr/include/c++/13/bits/node_handle.h" 3 # 35 "/usr/include/c++/13/bits/node_handle.h" 3 # 43 "/usr/include/c++/13/bits/node_handle.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/13/bits/node_handle.h" 3 template<typename _Val, typename _NodeAlloc> class _Node_handle_common { using _AllocTraits = allocator_traits<_NodeAlloc>; public: using allocator_type = __alloc_rebind<_NodeAlloc, _Val>; allocator_type get_allocator() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); return allocator_type(_M_alloc._M_alloc); } explicit operator bool() const noexcept { return _M_ptr != nullptr; } [[nodiscard]] bool empty() const noexcept { return _M_ptr == nullptr; } protected: constexpr _Node_handle_common() noexcept : _M_ptr() { } ~_Node_handle_common() { if (!empty()) _M_reset(); } _Node_handle_common(_Node_handle_common&& __nh) noexcept : _M_ptr(__nh._M_ptr) { if (_M_ptr) _M_move(std::move(__nh)); } _Node_handle_common& operator=(_Node_handle_common&& __nh) noexcept { if (empty()) { if (!__nh.empty()) _M_move(std::move(__nh)); } else if (__nh.empty()) _M_reset(); else { _AllocTraits::destroy(*_M_alloc, _M_ptr->_M_valptr()); _AllocTraits::deallocate(*_M_alloc, _M_ptr, 1); _M_alloc = __nh._M_alloc.release(); _M_ptr = __nh._M_ptr; __nh._M_ptr = nullptr; } return *this; } _Node_handle_common(typename _AllocTraits::pointer __ptr, const _NodeAlloc& __alloc) : _M_ptr(__ptr), _M_alloc(__alloc) { do { if (std::__is_constant_evaluated() && !bool(__ptr != nullptr)) __builtin_unreachable(); } while (false); } void _M_swap(_Node_handle_common& __nh) noexcept { if (empty()) { if (!__nh.empty()) _M_move(std::move(__nh)); } else if (__nh.empty()) __nh._M_move(std::move(*this)); else { using std::swap; swap(_M_ptr, __nh._M_ptr); _M_alloc.swap(__nh._M_alloc); } } private: void _M_move(_Node_handle_common&& __nh) noexcept { ::new (std::__addressof(_M_alloc)) _NodeAlloc(__nh._M_alloc.release()); _M_ptr = __nh._M_ptr; __nh._M_ptr = nullptr; } void _M_reset() noexcept { _NodeAlloc __alloc = _M_alloc.release(); _AllocTraits::destroy(__alloc, _M_ptr->_M_valptr()); _AllocTraits::deallocate(__alloc, _M_ptr, 1); _M_ptr = nullptr; } protected: typename _AllocTraits::pointer _M_ptr; private: union _Optional_alloc { _Optional_alloc() { } ~_Optional_alloc() { } _Optional_alloc(_Optional_alloc&&) = delete; _Optional_alloc& operator=(_Optional_alloc&&) = delete; _Optional_alloc(const _NodeAlloc& __alloc) noexcept : _M_alloc(__alloc) { } void operator=(_NodeAlloc&& __alloc) noexcept { using _ATr = _AllocTraits; if constexpr (_ATr::propagate_on_container_move_assignment::value) _M_alloc = std::move(__alloc); else if constexpr (!_AllocTraits::is_always_equal::value) do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __alloc)) __builtin_unreachable(); } while (false); } void swap(_Optional_alloc& __other) noexcept { using std::swap; if constexpr (_AllocTraits::propagate_on_container_swap::value) swap(_M_alloc, __other._M_alloc); else if constexpr (!_AllocTraits::is_always_equal::value) do { if (std::__is_constant_evaluated() && !bool(_M_alloc == __other._M_alloc)) __builtin_unreachable(); } while (false); } _NodeAlloc& operator*() noexcept { return _M_alloc; } _NodeAlloc release() noexcept { _NodeAlloc __tmp = std::move(_M_alloc); _M_alloc.~_NodeAlloc(); return __tmp; } struct _Empty { }; [[__no_unique_address__]] _Empty _M_empty; [[__no_unique_address__]] _NodeAlloc _M_alloc; }; [[__no_unique_address__]] _Optional_alloc _M_alloc; template<typename _Key2, typename _Value2, typename _KeyOfValue, typename _Compare, typename _ValueAlloc> friend class _Rb_tree; }; template<typename _Key, typename _Value, typename _NodeAlloc> class _Node_handle : public _Node_handle_common<_Value, _NodeAlloc> { public: constexpr _Node_handle() noexcept = default; ~_Node_handle() = default; _Node_handle(_Node_handle&&) noexcept = default; _Node_handle& operator=(_Node_handle&&) noexcept = default; using key_type = _Key; using mapped_type = typename _Value::second_type; key_type& key() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); return *_M_pkey; } mapped_type& mapped() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); return *_M_pmapped; } void swap(_Node_handle& __nh) noexcept { this->_M_swap(__nh); using std::swap; swap(_M_pkey, __nh._M_pkey); swap(_M_pmapped, __nh._M_pmapped); } friend void swap(_Node_handle& __x, _Node_handle& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } private: using _AllocTraits = allocator_traits<_NodeAlloc>; _Node_handle(typename _AllocTraits::pointer __ptr, const _NodeAlloc& __alloc) : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { if (__ptr) { auto& __key = const_cast<_Key&>(__ptr->_M_valptr()->first); _M_pkey = _S_pointer_to(__key); _M_pmapped = _S_pointer_to(__ptr->_M_valptr()->second); } else { _M_pkey = nullptr; _M_pmapped = nullptr; } } template<typename _Tp> using __pointer = __ptr_rebind<typename _AllocTraits::pointer, remove_reference_t<_Tp>>; __pointer<_Key> _M_pkey = nullptr; __pointer<typename _Value::second_type> _M_pmapped = nullptr; template<typename _Tp> __pointer<_Tp> _S_pointer_to(_Tp& __obj) { return pointer_traits<__pointer<_Tp>>::pointer_to(__obj); } const key_type& _M_key() const noexcept { return key(); } template<typename _Key2, typename _Value2, typename _KeyOfValue, typename _Compare, typename _ValueAlloc> friend class _Rb_tree; template<typename _Key2, typename _Value2, typename _ValueAlloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> friend class _Hashtable; }; template<typename _Value, typename _NodeAlloc> class _Node_handle<_Value, _Value, _NodeAlloc> : public _Node_handle_common<_Value, _NodeAlloc> { public: constexpr _Node_handle() noexcept = default; ~_Node_handle() = default; _Node_handle(_Node_handle&&) noexcept = default; _Node_handle& operator=(_Node_handle&&) noexcept = default; using value_type = _Value; value_type& value() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!this->empty())) __builtin_unreachable(); } while (false); return *this->_M_ptr->_M_valptr(); } void swap(_Node_handle& __nh) noexcept { this->_M_swap(__nh); } friend void swap(_Node_handle& __x, _Node_handle& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } private: using _AllocTraits = allocator_traits<_NodeAlloc>; _Node_handle(typename _AllocTraits::pointer __ptr, const _NodeAlloc& __alloc) : _Node_handle_common<_Value, _NodeAlloc>(__ptr, __alloc) { } const value_type& _M_key() const noexcept { return value(); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> friend class _Rb_tree; template<typename _Key2, typename _Value2, typename _ValueAlloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> friend class _Hashtable; }; template<typename _Iterator, typename _NodeHandle> struct _Node_insert_return { _Iterator position = _Iterator(); bool inserted = false; _NodeHandle node; }; } # 40 "/usr/include/c++/13/bits/hashtable.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp, typename _Hash> using __cache_default = __not_<__and_< __is_fast_hash<_Hash>, __is_nothrow_invocable<const _Hash&, const _Tp&>>>; template<typename _Equal, typename _Hash, typename _Allocator> using _Hashtable_enable_default_ctor = _Enable_default_constructor<__and_<is_default_constructible<_Equal>, is_default_constructible<_Hash>, is_default_constructible<_Allocator>>{}, __detail::_Hash_node_base>; # 177 "/usr/include/c++/13/bits/hashtable.h" 3 template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> class _Hashtable : public __detail::_Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>, public __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>, public __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>, public __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>, public __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>, private __detail::_Hashtable_alloc< __alloc_rebind<_Alloc, __detail::_Hash_node<_Value, _Traits::__hash_cached::value>>>, private _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc> { static_assert(is_same<typename remove_cv<_Value>::type, _Value>::value, "unordered container must have a non-const, non-volatile value_type"); static_assert(is_same<typename _Alloc::value_type, _Value>{}, "unordered container must have the same value_type as its allocator"); using __traits_type = _Traits; using __hash_cached = typename __traits_type::__hash_cached; using __constant_iterators = typename __traits_type::__constant_iterators; using __node_type = __detail::_Hash_node<_Value, __hash_cached::value>; using __node_alloc_type = __alloc_rebind<_Alloc, __node_type>; using __hashtable_alloc = __detail::_Hashtable_alloc<__node_alloc_type>; using __node_value_type = __detail::_Hash_node_value<_Value, __hash_cached::value>; using __node_ptr = typename __hashtable_alloc::__node_ptr; using __value_alloc_traits = typename __hashtable_alloc::__value_alloc_traits; using __node_alloc_traits = typename __hashtable_alloc::__node_alloc_traits; using __node_base = typename __hashtable_alloc::__node_base; using __node_base_ptr = typename __hashtable_alloc::__node_base_ptr; using __buckets_ptr = typename __hashtable_alloc::__buckets_ptr; using __insert_base = __detail::_Insert<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using __enable_default_ctor = _Hashtable_enable_default_ctor<_Equal, _Hash, _Alloc>; public: typedef _Key key_type; typedef _Value value_type; typedef _Alloc allocator_type; typedef _Equal key_equal; typedef typename __value_alloc_traits::pointer pointer; typedef typename __value_alloc_traits::const_pointer const_pointer; typedef value_type& reference; typedef const value_type& const_reference; using iterator = typename __insert_base::iterator; using const_iterator = typename __insert_base::const_iterator; using local_iterator = __detail::_Local_iterator<key_type, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __constant_iterators::value, __hash_cached::value>; using const_local_iterator = __detail::_Local_const_iterator< key_type, _Value, _ExtractKey, _Hash, _RangeHash, _Unused, __constant_iterators::value, __hash_cached::value>; private: using __rehash_type = _RehashPolicy; using __rehash_state = typename __rehash_type::_State; using __unique_keys = typename __traits_type::__unique_keys; using __hashtable_base = __detail:: _Hashtable_base<_Key, _Value, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _Traits>; using __hash_code_base = typename __hashtable_base::__hash_code_base; using __hash_code = typename __hashtable_base::__hash_code; using __ireturn_type = typename __insert_base::__ireturn_type; using __map_base = __detail::_Map_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using __rehash_base = __detail::_Rehash_base<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using __eq_base = __detail::_Equality<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>; using __reuse_or_alloc_node_gen_t = __detail::_ReuseOrAllocNode<__node_alloc_type>; using __alloc_node_gen_t = __detail::_AllocNode<__node_alloc_type>; using __node_builder_t = __detail::_NodeBuilder<_ExtractKey>; struct _Scoped_node { _Scoped_node(__node_ptr __n, __hashtable_alloc* __h) : _M_h(__h), _M_node(__n) { } template<typename... _Args> _Scoped_node(__hashtable_alloc* __h, _Args&&... __args) : _M_h(__h), _M_node(__h->_M_allocate_node(std::forward<_Args>(__args)...)) { } ~_Scoped_node() { if (_M_node) _M_h->_M_deallocate_node(_M_node); }; _Scoped_node(const _Scoped_node&) = delete; _Scoped_node& operator=(const _Scoped_node&) = delete; __hashtable_alloc* _M_h; __node_ptr _M_node; }; template<typename _Ht> static constexpr __conditional_t<std::is_lvalue_reference<_Ht>::value, const value_type&, value_type&&> __fwd_value_for(value_type& __val) noexcept { return std::move(__val); } struct __hash_code_base_access : __hash_code_base { using __hash_code_base::_M_bucket_index; }; static_assert(is_nothrow_default_constructible<_RangeHash>::value, "Functor used to map hash code to bucket index" " must be nothrow default constructible"); static_assert(noexcept( std::declval<const _RangeHash&>()((std::size_t)0, (std::size_t)0)), "Functor used to map hash code to bucket index must be" " noexcept"); static_assert(is_nothrow_default_constructible<_ExtractKey>::value, "_ExtractKey must be nothrow default constructible"); static_assert(noexcept( std::declval<const _ExtractKey&>()(std::declval<_Value>())), "_ExtractKey functor must be noexcept invocable"); template<typename _Keya, typename _Valuea, typename _Alloca, typename _ExtractKeya, typename _Equala, typename _Hasha, typename _RangeHasha, typename _Unuseda, typename _RehashPolicya, typename _Traitsa, bool _Unique_keysa> friend struct __detail::_Map_base; template<typename _Keya, typename _Valuea, typename _Alloca, typename _ExtractKeya, typename _Equala, typename _Hasha, typename _RangeHasha, typename _Unuseda, typename _RehashPolicya, typename _Traitsa> friend struct __detail::_Insert_base; template<typename _Keya, typename _Valuea, typename _Alloca, typename _ExtractKeya, typename _Equala, typename _Hasha, typename _RangeHasha, typename _Unuseda, typename _RehashPolicya, typename _Traitsa, bool _Constant_iteratorsa> friend struct __detail::_Insert; template<typename _Keya, typename _Valuea, typename _Alloca, typename _ExtractKeya, typename _Equala, typename _Hasha, typename _RangeHasha, typename _Unuseda, typename _RehashPolicya, typename _Traitsa, bool _Unique_keysa> friend struct __detail::_Equality; public: using size_type = typename __hashtable_base::size_type; using difference_type = typename __hashtable_base::difference_type; using node_type = _Node_handle<_Key, _Value, __node_alloc_type>; using insert_return_type = _Node_insert_return<iterator, node_type>; private: __buckets_ptr _M_buckets = &_M_single_bucket; size_type _M_bucket_count = 1; __node_base _M_before_begin; size_type _M_element_count = 0; _RehashPolicy _M_rehash_policy; __node_base_ptr _M_single_bucket = nullptr; void _M_update_bbegin() { if (_M_begin()) _M_buckets[_M_bucket_index(*_M_begin())] = &_M_before_begin; } void _M_update_bbegin(__node_ptr __n) { _M_before_begin._M_nxt = __n; _M_update_bbegin(); } bool _M_uses_single_bucket(__buckets_ptr __bkts) const { return __builtin_expect(__bkts == &_M_single_bucket, false); } bool _M_uses_single_bucket() const { return _M_uses_single_bucket(_M_buckets); } static constexpr size_t __small_size_threshold() noexcept { return __detail::_Hashtable_hash_traits<_Hash>::__small_size_threshold(); } __hashtable_alloc& _M_base_alloc() { return *this; } __buckets_ptr _M_allocate_buckets(size_type __bkt_count) { if (__builtin_expect(__bkt_count == 1, false)) { _M_single_bucket = nullptr; return &_M_single_bucket; } return __hashtable_alloc::_M_allocate_buckets(__bkt_count); } void _M_deallocate_buckets(__buckets_ptr __bkts, size_type __bkt_count) { if (_M_uses_single_bucket(__bkts)) return; __hashtable_alloc::_M_deallocate_buckets(__bkts, __bkt_count); } void _M_deallocate_buckets() { _M_deallocate_buckets(_M_buckets, _M_bucket_count); } __node_ptr _M_bucket_begin(size_type __bkt) const; __node_ptr _M_begin() const { return static_cast<__node_ptr>(_M_before_begin._M_nxt); } template<typename _Ht> void _M_assign_elements(_Ht&&); template<typename _Ht, typename _NodeGenerator> void _M_assign(_Ht&&, const _NodeGenerator&); void _M_move_assign(_Hashtable&&, true_type); void _M_move_assign(_Hashtable&&, false_type); void _M_reset() noexcept; _Hashtable(const _Hash& __h, const _Equal& __eq, const allocator_type& __a) : __hashtable_base(__h, __eq), __hashtable_alloc(__node_alloc_type(__a)), __enable_default_ctor(_Enable_default_constructor_tag{}) { } template<bool _No_realloc = true> static constexpr bool _S_nothrow_move() { if constexpr (_No_realloc) if constexpr (is_nothrow_copy_constructible<_Hash>()) return is_nothrow_copy_constructible<_Equal>(); return false; } _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, true_type ) noexcept(_S_nothrow_move()); _Hashtable(_Hashtable&&, __node_alloc_type&&, false_type ); template<typename _InputIterator> _Hashtable(_InputIterator __first, _InputIterator __last, size_type __bkt_count_hint, const _Hash&, const _Equal&, const allocator_type&, true_type __uks); template<typename _InputIterator> _Hashtable(_InputIterator __first, _InputIterator __last, size_type __bkt_count_hint, const _Hash&, const _Equal&, const allocator_type&, false_type __uks); public: _Hashtable() = default; _Hashtable(const _Hashtable&); _Hashtable(const _Hashtable&, const allocator_type&); explicit _Hashtable(size_type __bkt_count_hint, const _Hash& __hf = _Hash(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()); _Hashtable(_Hashtable&& __ht) noexcept(_S_nothrow_move()) : _Hashtable(std::move(__ht), std::move(__ht._M_node_allocator()), true_type{}) { } _Hashtable(_Hashtable&& __ht, const allocator_type& __a) noexcept(_S_nothrow_move<__node_alloc_traits::_S_always_equal()>()) : _Hashtable(std::move(__ht), __node_alloc_type(__a), typename __node_alloc_traits::is_always_equal{}) { } explicit _Hashtable(const allocator_type& __a) : __hashtable_alloc(__node_alloc_type(__a)), __enable_default_ctor(_Enable_default_constructor_tag{}) { } template<typename _InputIterator> _Hashtable(_InputIterator __f, _InputIterator __l, size_type __bkt_count_hint = 0, const _Hash& __hf = _Hash(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _Hashtable(__f, __l, __bkt_count_hint, __hf, __eql, __a, __unique_keys{}) { } _Hashtable(initializer_list<value_type> __l, size_type __bkt_count_hint = 0, const _Hash& __hf = _Hash(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _Hashtable(__l.begin(), __l.end(), __bkt_count_hint, __hf, __eql, __a, __unique_keys{}) { } _Hashtable& operator=(const _Hashtable& __ht); _Hashtable& operator=(_Hashtable&& __ht) noexcept(__node_alloc_traits::_S_nothrow_move() && is_nothrow_move_assignable<_Hash>::value && is_nothrow_move_assignable<_Equal>::value) { constexpr bool __move_storage = __node_alloc_traits::_S_propagate_on_move_assign() || __node_alloc_traits::_S_always_equal(); _M_move_assign(std::move(__ht), __bool_constant<__move_storage>()); return *this; } _Hashtable& operator=(initializer_list<value_type> __l) { __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); _M_before_begin._M_nxt = nullptr; clear(); auto __l_bkt_count = _M_rehash_policy._M_bkt_for_elements(__l.size()); if (_M_bucket_count < __l_bkt_count) rehash(__l_bkt_count); this->_M_insert_range(__l.begin(), __l.end(), __roan, __unique_keys{}); return *this; } ~_Hashtable() noexcept; void swap(_Hashtable&) noexcept(__and_<__is_nothrow_swappable<_Hash>, __is_nothrow_swappable<_Equal>>::value); iterator begin() noexcept { return iterator(_M_begin()); } const_iterator begin() const noexcept { return const_iterator(_M_begin()); } iterator end() noexcept { return iterator(nullptr); } const_iterator end() const noexcept { return const_iterator(nullptr); } const_iterator cbegin() const noexcept { return const_iterator(_M_begin()); } const_iterator cend() const noexcept { return const_iterator(nullptr); } size_type size() const noexcept { return _M_element_count; } [[__nodiscard__]] bool empty() const noexcept { return size() == 0; } allocator_type get_allocator() const noexcept { return allocator_type(this->_M_node_allocator()); } size_type max_size() const noexcept { return __node_alloc_traits::max_size(this->_M_node_allocator()); } key_equal key_eq() const { return this->_M_eq(); } size_type bucket_count() const noexcept { return _M_bucket_count; } size_type max_bucket_count() const noexcept { return max_size(); } size_type bucket_size(size_type __bkt) const { return std::distance(begin(__bkt), end(__bkt)); } size_type bucket(const key_type& __k) const { return _M_bucket_index(this->_M_hash_code(__k)); } local_iterator begin(size_type __bkt) { return local_iterator(*this, _M_bucket_begin(__bkt), __bkt, _M_bucket_count); } local_iterator end(size_type __bkt) { return local_iterator(*this, nullptr, __bkt, _M_bucket_count); } const_local_iterator begin(size_type __bkt) const { return const_local_iterator(*this, _M_bucket_begin(__bkt), __bkt, _M_bucket_count); } const_local_iterator end(size_type __bkt) const { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } const_local_iterator cbegin(size_type __bkt) const { return const_local_iterator(*this, _M_bucket_begin(__bkt), __bkt, _M_bucket_count); } const_local_iterator cend(size_type __bkt) const { return const_local_iterator(*this, nullptr, __bkt, _M_bucket_count); } float load_factor() const noexcept { return static_cast<float>(size()) / static_cast<float>(bucket_count()); } const _RehashPolicy& __rehash_policy() const { return _M_rehash_policy; } void __rehash_policy(const _RehashPolicy& __pol) { _M_rehash_policy = __pol; } iterator find(const key_type& __k); const_iterator find(const key_type& __k) const; size_type count(const key_type& __k) const; std::pair<iterator, iterator> equal_range(const key_type& __k); std::pair<const_iterator, const_iterator> equal_range(const key_type& __k) const; template<typename _Kt, typename = __has_is_transparent_t<_Hash, _Kt>, typename = __has_is_transparent_t<_Equal, _Kt>> iterator _M_find_tr(const _Kt& __k); template<typename _Kt, typename = __has_is_transparent_t<_Hash, _Kt>, typename = __has_is_transparent_t<_Equal, _Kt>> const_iterator _M_find_tr(const _Kt& __k) const; template<typename _Kt, typename = __has_is_transparent_t<_Hash, _Kt>, typename = __has_is_transparent_t<_Equal, _Kt>> size_type _M_count_tr(const _Kt& __k) const; template<typename _Kt, typename = __has_is_transparent_t<_Hash, _Kt>, typename = __has_is_transparent_t<_Equal, _Kt>> pair<iterator, iterator> _M_equal_range_tr(const _Kt& __k); template<typename _Kt, typename = __has_is_transparent_t<_Hash, _Kt>, typename = __has_is_transparent_t<_Equal, _Kt>> pair<const_iterator, const_iterator> _M_equal_range_tr(const _Kt& __k) const; private: size_type _M_bucket_index(const __node_value_type& __n) const noexcept { return __hash_code_base::_M_bucket_index(__n, _M_bucket_count); } size_type _M_bucket_index(__hash_code __c) const { return __hash_code_base::_M_bucket_index(__c, _M_bucket_count); } __node_base_ptr _M_find_before_node(const key_type&); __node_base_ptr _M_find_before_node(size_type, const key_type&, __hash_code) const; template<typename _Kt> __node_base_ptr _M_find_before_node_tr(size_type, const _Kt&, __hash_code) const; __node_ptr _M_find_node(size_type __bkt, const key_type& __key, __hash_code __c) const { __node_base_ptr __before_n = _M_find_before_node(__bkt, __key, __c); if (__before_n) return static_cast<__node_ptr>(__before_n->_M_nxt); return nullptr; } template<typename _Kt> __node_ptr _M_find_node_tr(size_type __bkt, const _Kt& __key, __hash_code __c) const { auto __before_n = _M_find_before_node_tr(__bkt, __key, __c); if (__before_n) return static_cast<__node_ptr>(__before_n->_M_nxt); return nullptr; } void _M_insert_bucket_begin(size_type, __node_ptr); void _M_remove_bucket_begin(size_type __bkt, __node_ptr __next_n, size_type __next_bkt); __node_base_ptr _M_get_previous_node(size_type __bkt, __node_ptr __n); pair<const_iterator, __hash_code> _M_compute_hash_code(const_iterator __hint, const key_type& __k) const; iterator _M_insert_unique_node(size_type __bkt, __hash_code, __node_ptr __n, size_type __n_elt = 1); iterator _M_insert_multi_node(__node_ptr __hint, __hash_code __code, __node_ptr __n); template<typename... _Args> std::pair<iterator, bool> _M_emplace(true_type __uks, _Args&&... __args); template<typename... _Args> iterator _M_emplace(false_type __uks, _Args&&... __args) { return _M_emplace(cend(), __uks, std::forward<_Args>(__args)...); } template<typename... _Args> iterator _M_emplace(const_iterator, true_type __uks, _Args&&... __args) { return _M_emplace(__uks, std::forward<_Args>(__args)...).first; } template<typename... _Args> iterator _M_emplace(const_iterator, false_type __uks, _Args&&... __args); template<typename _Kt, typename _Arg, typename _NodeGenerator> std::pair<iterator, bool> _M_insert_unique(_Kt&&, _Arg&&, const _NodeGenerator&); template<typename _Kt> static __conditional_t< __and_<__is_nothrow_invocable<_Hash&, const key_type&>, __not_<__is_nothrow_invocable<_Hash&, _Kt>>>::value, key_type, _Kt&&> _S_forward_key(_Kt&& __k) { return std::forward<_Kt>(__k); } static const key_type& _S_forward_key(const key_type& __k) { return __k; } static key_type&& _S_forward_key(key_type&& __k) { return std::move(__k); } template<typename _Arg, typename _NodeGenerator> std::pair<iterator, bool> _M_insert_unique_aux(_Arg&& __arg, const _NodeGenerator& __node_gen) { return _M_insert_unique( _S_forward_key(_ExtractKey{}(std::forward<_Arg>(__arg))), std::forward<_Arg>(__arg), __node_gen); } template<typename _Arg, typename _NodeGenerator> std::pair<iterator, bool> _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, true_type ) { using __to_value = __detail::_ConvertToValueType<_ExtractKey, value_type>; return _M_insert_unique_aux( __to_value{}(std::forward<_Arg>(__arg)), __node_gen); } template<typename _Arg, typename _NodeGenerator> iterator _M_insert(_Arg&& __arg, const _NodeGenerator& __node_gen, false_type __uks) { using __to_value = __detail::_ConvertToValueType<_ExtractKey, value_type>; return _M_insert(cend(), __to_value{}(std::forward<_Arg>(__arg)), __node_gen, __uks); } template<typename _Arg, typename _NodeGenerator> iterator _M_insert(const_iterator, _Arg&& __arg, const _NodeGenerator& __node_gen, true_type __uks) { return _M_insert(std::forward<_Arg>(__arg), __node_gen, __uks).first; } template<typename _Arg, typename _NodeGenerator> iterator _M_insert(const_iterator, _Arg&&, const _NodeGenerator&, false_type __uks); size_type _M_erase(true_type __uks, const key_type&); size_type _M_erase(false_type __uks, const key_type&); iterator _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n); public: template<typename... _Args> __ireturn_type emplace(_Args&&... __args) { return _M_emplace(__unique_keys{}, std::forward<_Args>(__args)...); } template<typename... _Args> iterator emplace_hint(const_iterator __hint, _Args&&... __args) { return _M_emplace(__hint, __unique_keys{}, std::forward<_Args>(__args)...); } iterator erase(const_iterator); iterator erase(iterator __it) { return erase(const_iterator(__it)); } size_type erase(const key_type& __k) { return _M_erase(__unique_keys{}, __k); } iterator erase(const_iterator, const_iterator); void clear() noexcept; void rehash(size_type __bkt_count); insert_return_type _M_reinsert_node(node_type&& __nh) { insert_return_type __ret; if (__nh.empty()) __ret.position = end(); else { do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); const key_type& __k = __nh._M_key(); __hash_code __code = this->_M_hash_code(__k); size_type __bkt = _M_bucket_index(__code); if (__node_ptr __n = _M_find_node(__bkt, __k, __code)) { __ret.node = std::move(__nh); __ret.position = iterator(__n); __ret.inserted = false; } else { __ret.position = _M_insert_unique_node(__bkt, __code, __nh._M_ptr); __nh._M_ptr = nullptr; __ret.inserted = true; } } return __ret; } iterator _M_reinsert_node_multi(const_iterator __hint, node_type&& __nh) { if (__nh.empty()) return end(); do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __nh.get_allocator())) __builtin_unreachable(); } while (false); const key_type& __k = __nh._M_key(); auto __code = this->_M_hash_code(__k); auto __ret = _M_insert_multi_node(__hint._M_cur, __code, __nh._M_ptr); __nh._M_ptr = nullptr; return __ret; } private: node_type _M_extract_node(size_t __bkt, __node_base_ptr __prev_n) { __node_ptr __n = static_cast<__node_ptr>(__prev_n->_M_nxt); if (__prev_n == _M_buckets[__bkt]) _M_remove_bucket_begin(__bkt, __n->_M_next(), __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); else if (__n->_M_nxt) { size_type __next_bkt = _M_bucket_index(*__n->_M_next()); if (__next_bkt != __bkt) _M_buckets[__next_bkt] = __prev_n; } __prev_n->_M_nxt = __n->_M_nxt; __n->_M_nxt = nullptr; --_M_element_count; return { __n, this->_M_node_allocator() }; } public: node_type extract(const_iterator __pos) { size_t __bkt = _M_bucket_index(*__pos._M_cur); return _M_extract_node(__bkt, _M_get_previous_node(__bkt, __pos._M_cur)); } node_type extract(const _Key& __k) { node_type __nh; __hash_code __code = this->_M_hash_code(__k); std::size_t __bkt = _M_bucket_index(__code); if (__node_base_ptr __prev_node = _M_find_before_node(__bkt, __k, __code)) __nh = _M_extract_node(__bkt, __prev_node); return __nh; } template<typename _Compatible_Hashtable> void _M_merge_unique(_Compatible_Hashtable& __src) { static_assert(is_same_v<typename _Compatible_Hashtable::node_type, node_type>, "Node types are compatible"); do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); auto __n_elt = __src.size(); for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) { auto __pos = __i++; const key_type& __k = _ExtractKey{}(*__pos); __hash_code __code = this->_M_hash_code(__src.hash_function(), *__pos._M_cur); size_type __bkt = _M_bucket_index(__code); if (_M_find_node(__bkt, __k, __code) == nullptr) { auto __nh = __src.extract(__pos); _M_insert_unique_node(__bkt, __code, __nh._M_ptr, __n_elt); __nh._M_ptr = nullptr; __n_elt = 1; } else if (__n_elt != 1) --__n_elt; } } template<typename _Compatible_Hashtable> void _M_merge_multi(_Compatible_Hashtable& __src) { static_assert(is_same_v<typename _Compatible_Hashtable::node_type, node_type>, "Node types are compatible"); do { if (std::__is_constant_evaluated() && !bool(get_allocator() == __src.get_allocator())) __builtin_unreachable(); } while (false); __node_ptr __hint = nullptr; this->reserve(size() + __src.size()); for (auto __i = __src.cbegin(), __end = __src.cend(); __i != __end;) { auto __pos = __i++; __hash_code __code = this->_M_hash_code(__src.hash_function(), *__pos._M_cur); auto __nh = __src.extract(__pos); __hint = _M_insert_multi_node(__hint, __code, __nh._M_ptr)._M_cur; __nh._M_ptr = nullptr; } } private: void _M_rehash_aux(size_type __bkt_count, true_type __uks); void _M_rehash_aux(size_type __bkt_count, false_type __uks); void _M_rehash(size_type __bkt_count, const __rehash_state& __state); }; template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_bucket_begin(size_type __bkt) const -> __node_ptr { __node_base_ptr __n = _M_buckets[__bkt]; return __n ? static_cast<__node_ptr>(__n->_M_nxt) : nullptr; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(size_type __bkt_count_hint, const _Hash& __h, const _Equal& __eq, const allocator_type& __a) : _Hashtable(__h, __eq, __a) { auto __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count_hint); if (__bkt_count > _M_bucket_count) { _M_buckets = _M_allocate_buckets(__bkt_count); _M_bucket_count = __bkt_count; } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _InputIterator> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(_InputIterator __f, _InputIterator __l, size_type __bkt_count_hint, const _Hash& __h, const _Equal& __eq, const allocator_type& __a, true_type ) : _Hashtable(__bkt_count_hint, __h, __eq, __a) { this->insert(__f, __l); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _InputIterator> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(_InputIterator __f, _InputIterator __l, size_type __bkt_count_hint, const _Hash& __h, const _Equal& __eq, const allocator_type& __a, false_type __uks) : _Hashtable(__h, __eq, __a) { auto __nb_elems = __detail::__distance_fw(__f, __l); auto __bkt_count = _M_rehash_policy._M_next_bkt( std::max(_M_rehash_policy._M_bkt_for_elements(__nb_elems), __bkt_count_hint)); if (__bkt_count > _M_bucket_count) { _M_buckets = _M_allocate_buckets(__bkt_count); _M_bucket_count = __bkt_count; } __alloc_node_gen_t __node_gen(*this); for (; __f != __l; ++__f) _M_insert(*__f, __node_gen, __uks); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: operator=(const _Hashtable& __ht) -> _Hashtable& { if (&__ht == this) return *this; if (__node_alloc_traits::_S_propagate_on_copy_assign()) { auto& __this_alloc = this->_M_node_allocator(); auto& __that_alloc = __ht._M_node_allocator(); if (!__node_alloc_traits::_S_always_equal() && __this_alloc != __that_alloc) { this->_M_deallocate_nodes(_M_begin()); _M_before_begin._M_nxt = nullptr; _M_deallocate_buckets(); _M_buckets = nullptr; std::__alloc_on_copy(__this_alloc, __that_alloc); __hashtable_base::operator=(__ht); _M_bucket_count = __ht._M_bucket_count; _M_element_count = __ht._M_element_count; _M_rehash_policy = __ht._M_rehash_policy; __alloc_node_gen_t __alloc_node_gen(*this); try { _M_assign(__ht, __alloc_node_gen); } catch(...) { _M_reset(); throw; } return *this; } std::__alloc_on_copy(__this_alloc, __that_alloc); } _M_assign_elements(__ht); return *this; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Ht> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_assign_elements(_Ht&& __ht) { __buckets_ptr __former_buckets = nullptr; std::size_t __former_bucket_count = _M_bucket_count; const __rehash_state& __former_state = _M_rehash_policy._M_state(); if (_M_bucket_count != __ht._M_bucket_count) { __former_buckets = _M_buckets; _M_buckets = _M_allocate_buckets(__ht._M_bucket_count); _M_bucket_count = __ht._M_bucket_count; } else __builtin_memset(_M_buckets, 0, _M_bucket_count * sizeof(__node_base_ptr)); try { __hashtable_base::operator=(std::forward<_Ht>(__ht)); _M_element_count = __ht._M_element_count; _M_rehash_policy = __ht._M_rehash_policy; __reuse_or_alloc_node_gen_t __roan(_M_begin(), *this); _M_before_begin._M_nxt = nullptr; _M_assign(std::forward<_Ht>(__ht), __roan); if (__former_buckets) _M_deallocate_buckets(__former_buckets, __former_bucket_count); } catch(...) { if (__former_buckets) { _M_deallocate_buckets(); _M_rehash_policy._M_reset(__former_state); _M_buckets = __former_buckets; _M_bucket_count = __former_bucket_count; } __builtin_memset(_M_buckets, 0, _M_bucket_count * sizeof(__node_base_ptr)); throw; } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Ht, typename _NodeGenerator> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_assign(_Ht&& __ht, const _NodeGenerator& __node_gen) { __buckets_ptr __buckets = nullptr; if (!_M_buckets) _M_buckets = __buckets = _M_allocate_buckets(_M_bucket_count); try { if (!__ht._M_before_begin._M_nxt) return; __node_ptr __ht_n = __ht._M_begin(); __node_ptr __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); this->_M_copy_code(*__this_n, *__ht_n); _M_update_bbegin(__this_n); __node_ptr __prev_n = __this_n; for (__ht_n = __ht_n->_M_next(); __ht_n; __ht_n = __ht_n->_M_next()) { __this_n = __node_gen(__fwd_value_for<_Ht>(__ht_n->_M_v())); __prev_n->_M_nxt = __this_n; this->_M_copy_code(*__this_n, *__ht_n); size_type __bkt = _M_bucket_index(*__this_n); if (!_M_buckets[__bkt]) _M_buckets[__bkt] = __prev_n; __prev_n = __this_n; } } catch(...) { clear(); if (__buckets) _M_deallocate_buckets(); throw; } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_reset() noexcept { _M_rehash_policy._M_reset(); _M_bucket_count = 1; _M_single_bucket = nullptr; _M_buckets = &_M_single_bucket; _M_before_begin._M_nxt = nullptr; _M_element_count = 0; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_move_assign(_Hashtable&& __ht, true_type) { if (__builtin_expect(std::__addressof(__ht) == this, false)) return; this->_M_deallocate_nodes(_M_begin()); _M_deallocate_buckets(); __hashtable_base::operator=(std::move(__ht)); _M_rehash_policy = __ht._M_rehash_policy; if (!__ht._M_uses_single_bucket()) _M_buckets = __ht._M_buckets; else { _M_buckets = &_M_single_bucket; _M_single_bucket = __ht._M_single_bucket; } _M_bucket_count = __ht._M_bucket_count; _M_before_begin._M_nxt = __ht._M_before_begin._M_nxt; _M_element_count = __ht._M_element_count; std::__alloc_on_move(this->_M_node_allocator(), __ht._M_node_allocator()); _M_update_bbegin(); __ht._M_reset(); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_move_assign(_Hashtable&& __ht, false_type) { if (__ht._M_node_allocator() == this->_M_node_allocator()) _M_move_assign(std::move(__ht), true_type{}); else { _M_assign_elements(std::move(__ht)); __ht.clear(); } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(const _Hashtable& __ht) : __hashtable_base(__ht), __map_base(__ht), __rehash_base(__ht), __hashtable_alloc( __node_alloc_traits::_S_select_on_copy(__ht._M_node_allocator())), __enable_default_ctor(__ht), _M_buckets(nullptr), _M_bucket_count(__ht._M_bucket_count), _M_element_count(__ht._M_element_count), _M_rehash_policy(__ht._M_rehash_policy) { __alloc_node_gen_t __alloc_node_gen(*this); _M_assign(__ht, __alloc_node_gen); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, true_type ) noexcept(_S_nothrow_move()) : __hashtable_base(__ht), __map_base(__ht), __rehash_base(__ht), __hashtable_alloc(std::move(__a)), __enable_default_ctor(__ht), _M_buckets(__ht._M_buckets), _M_bucket_count(__ht._M_bucket_count), _M_before_begin(__ht._M_before_begin._M_nxt), _M_element_count(__ht._M_element_count), _M_rehash_policy(__ht._M_rehash_policy) { if (__ht._M_uses_single_bucket()) { _M_buckets = &_M_single_bucket; _M_single_bucket = __ht._M_single_bucket; } _M_update_bbegin(); __ht._M_reset(); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(const _Hashtable& __ht, const allocator_type& __a) : __hashtable_base(__ht), __map_base(__ht), __rehash_base(__ht), __hashtable_alloc(__node_alloc_type(__a)), __enable_default_ctor(__ht), _M_buckets(), _M_bucket_count(__ht._M_bucket_count), _M_element_count(__ht._M_element_count), _M_rehash_policy(__ht._M_rehash_policy) { __alloc_node_gen_t __alloc_node_gen(*this); _M_assign(__ht, __alloc_node_gen); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _Hashtable(_Hashtable&& __ht, __node_alloc_type&& __a, false_type ) : __hashtable_base(__ht), __map_base(__ht), __rehash_base(__ht), __hashtable_alloc(std::move(__a)), __enable_default_ctor(__ht), _M_buckets(nullptr), _M_bucket_count(__ht._M_bucket_count), _M_element_count(__ht._M_element_count), _M_rehash_policy(__ht._M_rehash_policy) { if (__ht._M_node_allocator() == this->_M_node_allocator()) { if (__ht._M_uses_single_bucket()) { _M_buckets = &_M_single_bucket; _M_single_bucket = __ht._M_single_bucket; } else _M_buckets = __ht._M_buckets; _M_update_bbegin(__ht._M_begin()); __ht._M_reset(); } else { __alloc_node_gen_t __alloc_gen(*this); using _Fwd_Ht = __conditional_t< __move_if_noexcept_cond<value_type>::value, const _Hashtable&, _Hashtable&&>; _M_assign(std::forward<_Fwd_Ht>(__ht), __alloc_gen); __ht.clear(); } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: ~_Hashtable() noexcept { static_assert(noexcept(declval<const __hash_code_base_access&>() ._M_bucket_index(declval<const __node_value_type&>(), (std::size_t)0)), "Cache the hash code or qualify your functors involved" " in hash code and bucket index computation with noexcept"); clear(); _M_deallocate_buckets(); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: swap(_Hashtable& __x) noexcept(__and_<__is_nothrow_swappable<_Hash>, __is_nothrow_swappable<_Equal>>::value) { this->_M_swap(__x); std::__alloc_on_swap(this->_M_node_allocator(), __x._M_node_allocator()); std::swap(_M_rehash_policy, __x._M_rehash_policy); if (this->_M_uses_single_bucket()) { if (!__x._M_uses_single_bucket()) { _M_buckets = __x._M_buckets; __x._M_buckets = &__x._M_single_bucket; } } else if (__x._M_uses_single_bucket()) { __x._M_buckets = _M_buckets; _M_buckets = &_M_single_bucket; } else std::swap(_M_buckets, __x._M_buckets); std::swap(_M_bucket_count, __x._M_bucket_count); std::swap(_M_before_begin._M_nxt, __x._M_before_begin._M_nxt); std::swap(_M_element_count, __x._M_element_count); std::swap(_M_single_bucket, __x._M_single_bucket); _M_update_bbegin(); __x._M_update_bbegin(); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: find(const key_type& __k) -> iterator { if (size() <= __small_size_threshold()) { for (auto __it = begin(); __it != end(); ++__it) if (this->_M_key_equals(__k, *__it._M_cur)) return __it; return end(); } __hash_code __code = this->_M_hash_code(__k); std::size_t __bkt = _M_bucket_index(__code); return iterator(_M_find_node(__bkt, __k, __code)); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: find(const key_type& __k) const -> const_iterator { if (size() <= __small_size_threshold()) { for (auto __it = begin(); __it != end(); ++__it) if (this->_M_key_equals(__k, *__it._M_cur)) return __it; return end(); } __hash_code __code = this->_M_hash_code(__k); std::size_t __bkt = _M_bucket_index(__code); return const_iterator(_M_find_node(__bkt, __k, __code)); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt, typename, typename> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_find_tr(const _Kt& __k) -> iterator { __hash_code __code = this->_M_hash_code_tr(__k); std::size_t __bkt = _M_bucket_index(__code); return iterator(_M_find_node_tr(__bkt, __k, __code)); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt, typename, typename> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_find_tr(const _Kt& __k) const -> const_iterator { __hash_code __code = this->_M_hash_code_tr(__k); std::size_t __bkt = _M_bucket_index(__code); return const_iterator(_M_find_node_tr(__bkt, __k, __code)); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: count(const key_type& __k) const -> size_type { auto __it = find(__k); if (!__it._M_cur) return 0; if (__unique_keys::value) return 1; size_type __result = 1; for (auto __ref = __it++; __it._M_cur && this->_M_node_equals(*__ref._M_cur, *__it._M_cur); ++__it) ++__result; return __result; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt, typename, typename> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_count_tr(const _Kt& __k) const -> size_type { __hash_code __code = this->_M_hash_code_tr(__k); std::size_t __bkt = _M_bucket_index(__code); auto __n = _M_find_node_tr(__bkt, __k, __code); if (!__n) return 0; iterator __it(__n); size_type __result = 1; for (++__it; __it._M_cur && this->_M_equals_tr(__k, __code, *__it._M_cur); ++__it) ++__result; return __result; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: equal_range(const key_type& __k) -> pair<iterator, iterator> { auto __ite = find(__k); if (!__ite._M_cur) return { __ite, __ite }; auto __beg = __ite++; if (__unique_keys::value) return { __beg, __ite }; while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) ++__ite; return { __beg, __ite }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: equal_range(const key_type& __k) const -> pair<const_iterator, const_iterator> { auto __ite = find(__k); if (!__ite._M_cur) return { __ite, __ite }; auto __beg = __ite++; if (__unique_keys::value) return { __beg, __ite }; while (__ite._M_cur && this->_M_node_equals(*__beg._M_cur, *__ite._M_cur)) ++__ite; return { __beg, __ite }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt, typename, typename> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_equal_range_tr(const _Kt& __k) -> pair<iterator, iterator> { __hash_code __code = this->_M_hash_code_tr(__k); std::size_t __bkt = _M_bucket_index(__code); auto __n = _M_find_node_tr(__bkt, __k, __code); iterator __ite(__n); if (!__n) return { __ite, __ite }; auto __beg = __ite++; while (__ite._M_cur && this->_M_equals_tr(__k, __code, *__ite._M_cur)) ++__ite; return { __beg, __ite }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt, typename, typename> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_equal_range_tr(const _Kt& __k) const -> pair<const_iterator, const_iterator> { __hash_code __code = this->_M_hash_code_tr(__k); std::size_t __bkt = _M_bucket_index(__code); auto __n = _M_find_node_tr(__bkt, __k, __code); const_iterator __ite(__n); if (!__n) return { __ite, __ite }; auto __beg = __ite++; while (__ite._M_cur && this->_M_equals_tr(__k, __code, *__ite._M_cur)) ++__ite; return { __beg, __ite }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_find_before_node(const key_type& __k) -> __node_base_ptr { __node_base_ptr __prev_p = &_M_before_begin; if (!__prev_p->_M_nxt) return nullptr; for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt); __p != nullptr; __p = __p->_M_next()) { if (this->_M_key_equals(__k, *__p)) return __prev_p; __prev_p = __p; } return nullptr; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_find_before_node(size_type __bkt, const key_type& __k, __hash_code __code) const -> __node_base_ptr { __node_base_ptr __prev_p = _M_buckets[__bkt]; if (!__prev_p) return nullptr; for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; __p = __p->_M_next()) { if (this->_M_equals(__k, __code, *__p)) return __prev_p; if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) break; __prev_p = __p; } return nullptr; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_find_before_node_tr(size_type __bkt, const _Kt& __k, __hash_code __code) const -> __node_base_ptr { __node_base_ptr __prev_p = _M_buckets[__bkt]; if (!__prev_p) return nullptr; for (__node_ptr __p = static_cast<__node_ptr>(__prev_p->_M_nxt);; __p = __p->_M_next()) { if (this->_M_equals_tr(__k, __code, *__p)) return __prev_p; if (!__p->_M_nxt || _M_bucket_index(*__p->_M_next()) != __bkt) break; __prev_p = __p; } return nullptr; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert_bucket_begin(size_type __bkt, __node_ptr __node) { if (_M_buckets[__bkt]) { __node->_M_nxt = _M_buckets[__bkt]->_M_nxt; _M_buckets[__bkt]->_M_nxt = __node; } else { __node->_M_nxt = _M_before_begin._M_nxt; _M_before_begin._M_nxt = __node; if (__node->_M_nxt) _M_buckets[_M_bucket_index(*__node->_M_next())] = __node; _M_buckets[__bkt] = &_M_before_begin; } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_remove_bucket_begin(size_type __bkt, __node_ptr __next, size_type __next_bkt) { if (!__next || __next_bkt != __bkt) { if (__next) _M_buckets[__next_bkt] = _M_buckets[__bkt]; if (&_M_before_begin == _M_buckets[__bkt]) _M_before_begin._M_nxt = __next; _M_buckets[__bkt] = nullptr; } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_get_previous_node(size_type __bkt, __node_ptr __n) -> __node_base_ptr { __node_base_ptr __prev_n = _M_buckets[__bkt]; while (__prev_n->_M_nxt != __n) __prev_n = __prev_n->_M_nxt; return __prev_n; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename... _Args> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_emplace(true_type , _Args&&... __args) -> pair<iterator, bool> { _Scoped_node __node { this, std::forward<_Args>(__args)... }; const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); if (size() <= __small_size_threshold()) { for (auto __it = begin(); __it != end(); ++__it) if (this->_M_key_equals(__k, *__it._M_cur)) return { __it, false }; } __hash_code __code = this->_M_hash_code(__k); size_type __bkt = _M_bucket_index(__code); if (size() > __small_size_threshold()) if (__node_ptr __p = _M_find_node(__bkt, __k, __code)) return { iterator(__p), false }; auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); __node._M_node = nullptr; return { __pos, true }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename... _Args> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_emplace(const_iterator __hint, false_type , _Args&&... __args) -> iterator { _Scoped_node __node { this, std::forward<_Args>(__args)... }; const key_type& __k = _ExtractKey{}(__node._M_node->_M_v()); auto __res = this->_M_compute_hash_code(__hint, __k); auto __pos = _M_insert_multi_node(__res.first._M_cur, __res.second, __node._M_node); __node._M_node = nullptr; return __pos; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_compute_hash_code(const_iterator __hint, const key_type& __k) const -> pair<const_iterator, __hash_code> { if (size() <= __small_size_threshold()) { if (__hint != cend()) { for (auto __it = __hint; __it != cend(); ++__it) if (this->_M_key_equals(__k, *__it._M_cur)) return { __it, this->_M_hash_code(*__it._M_cur) }; } for (auto __it = cbegin(); __it != __hint; ++__it) if (this->_M_key_equals(__k, *__it._M_cur)) return { __it, this->_M_hash_code(*__it._M_cur) }; } return { __hint, this->_M_hash_code(__k) }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert_unique_node(size_type __bkt, __hash_code __code, __node_ptr __node, size_type __n_elt) -> iterator { const __rehash_state& __saved_state = _M_rehash_policy._M_state(); std::pair<bool, std::size_t> __do_rehash = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, __n_elt); if (__do_rehash.first) { _M_rehash(__do_rehash.second, __saved_state); __bkt = _M_bucket_index(__code); } this->_M_store_code(*__node, __code); _M_insert_bucket_begin(__bkt, __node); ++_M_element_count; return iterator(__node); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert_multi_node(__node_ptr __hint, __hash_code __code, __node_ptr __node) -> iterator { const __rehash_state& __saved_state = _M_rehash_policy._M_state(); std::pair<bool, std::size_t> __do_rehash = _M_rehash_policy._M_need_rehash(_M_bucket_count, _M_element_count, 1); if (__do_rehash.first) _M_rehash(__do_rehash.second, __saved_state); this->_M_store_code(*__node, __code); const key_type& __k = _ExtractKey{}(__node->_M_v()); size_type __bkt = _M_bucket_index(__code); __node_base_ptr __prev = __builtin_expect(__hint != nullptr, false) && this->_M_equals(__k, __code, *__hint) ? __hint : _M_find_before_node(__bkt, __k, __code); if (__prev) { __node->_M_nxt = __prev->_M_nxt; __prev->_M_nxt = __node; if (__builtin_expect(__prev == __hint, false)) if (__node->_M_nxt && !this->_M_equals(__k, __code, *__node->_M_next())) { size_type __next_bkt = _M_bucket_index(*__node->_M_next()); if (__next_bkt != __bkt) _M_buckets[__next_bkt] = __node; } } else _M_insert_bucket_begin(__bkt, __node); ++_M_element_count; return iterator(__node); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Kt, typename _Arg, typename _NodeGenerator> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert_unique(_Kt&& __k, _Arg&& __v, const _NodeGenerator& __node_gen) -> pair<iterator, bool> { if (size() <= __small_size_threshold()) for (auto __it = begin(); __it != end(); ++__it) if (this->_M_key_equals_tr(__k, *__it._M_cur)) return { __it, false }; __hash_code __code = this->_M_hash_code_tr(__k); size_type __bkt = _M_bucket_index(__code); if (size() > __small_size_threshold()) if (__node_ptr __node = _M_find_node_tr(__bkt, __k, __code)) return { iterator(__node), false }; _Scoped_node __node { __node_builder_t::_S_build(std::forward<_Kt>(__k), std::forward<_Arg>(__v), __node_gen), this }; auto __pos = _M_insert_unique_node(__bkt, __code, __node._M_node); __node._M_node = nullptr; return { __pos, true }; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> template<typename _Arg, typename _NodeGenerator> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_insert(const_iterator __hint, _Arg&& __v, const _NodeGenerator& __node_gen, false_type ) -> iterator { _Scoped_node __node{ __node_gen(std::forward<_Arg>(__v)), this }; auto __res = this->_M_compute_hash_code( __hint, _ExtractKey{}(__node._M_node->_M_v())); auto __pos = _M_insert_multi_node(__res.first._M_cur, __res.second, __node._M_node); __node._M_node = nullptr; return __pos; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: erase(const_iterator __it) -> iterator { __node_ptr __n = __it._M_cur; std::size_t __bkt = _M_bucket_index(*__n); __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); return _M_erase(__bkt, __prev_n, __n); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_erase(size_type __bkt, __node_base_ptr __prev_n, __node_ptr __n) -> iterator { if (__prev_n == _M_buckets[__bkt]) _M_remove_bucket_begin(__bkt, __n->_M_next(), __n->_M_nxt ? _M_bucket_index(*__n->_M_next()) : 0); else if (__n->_M_nxt) { size_type __next_bkt = _M_bucket_index(*__n->_M_next()); if (__next_bkt != __bkt) _M_buckets[__next_bkt] = __prev_n; } __prev_n->_M_nxt = __n->_M_nxt; iterator __result(__n->_M_next()); this->_M_deallocate_node(__n); --_M_element_count; return __result; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_erase(true_type , const key_type& __k) -> size_type { __node_base_ptr __prev_n; __node_ptr __n; std::size_t __bkt; if (size() <= __small_size_threshold()) { __prev_n = _M_find_before_node(__k); if (!__prev_n) return 0; __n = static_cast<__node_ptr>(__prev_n->_M_nxt); __bkt = _M_bucket_index(*__n); } else { __hash_code __code = this->_M_hash_code(__k); __bkt = _M_bucket_index(__code); __prev_n = _M_find_before_node(__bkt, __k, __code); if (!__prev_n) return 0; __n = static_cast<__node_ptr>(__prev_n->_M_nxt); } _M_erase(__bkt, __prev_n, __n); return 1; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_erase(false_type , const key_type& __k) -> size_type { std::size_t __bkt; __node_base_ptr __prev_n; __node_ptr __n; if (size() <= __small_size_threshold()) { __prev_n = _M_find_before_node(__k); if (!__prev_n) return 0; __n = static_cast<__node_ptr>(__prev_n->_M_nxt); __bkt = _M_bucket_index(*__n); } else { __hash_code __code = this->_M_hash_code(__k); __bkt = _M_bucket_index(__code); __prev_n = _M_find_before_node(__bkt, __k, __code); if (!__prev_n) return 0; __n = static_cast<__node_ptr>(__prev_n->_M_nxt); } __node_ptr __n_last = __n->_M_next(); while (__n_last && this->_M_node_equals(*__n, *__n_last)) __n_last = __n_last->_M_next(); std::size_t __n_last_bkt = __n_last ? _M_bucket_index(*__n_last) : __bkt; size_type __result = 0; do { __node_ptr __p = __n->_M_next(); this->_M_deallocate_node(__n); __n = __p; ++__result; } while (__n != __n_last); _M_element_count -= __result; if (__prev_n == _M_buckets[__bkt]) _M_remove_bucket_begin(__bkt, __n_last, __n_last_bkt); else if (__n_last_bkt != __bkt) _M_buckets[__n_last_bkt] = __prev_n; __prev_n->_M_nxt = __n_last; return __result; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> auto _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: erase(const_iterator __first, const_iterator __last) -> iterator { __node_ptr __n = __first._M_cur; __node_ptr __last_n = __last._M_cur; if (__n == __last_n) return iterator(__n); std::size_t __bkt = _M_bucket_index(*__n); __node_base_ptr __prev_n = _M_get_previous_node(__bkt, __n); bool __is_bucket_begin = __n == _M_bucket_begin(__bkt); std::size_t __n_bkt = __bkt; for (;;) { do { __node_ptr __tmp = __n; __n = __n->_M_next(); this->_M_deallocate_node(__tmp); --_M_element_count; if (!__n) break; __n_bkt = _M_bucket_index(*__n); } while (__n != __last_n && __n_bkt == __bkt); if (__is_bucket_begin) _M_remove_bucket_begin(__bkt, __n, __n_bkt); if (__n == __last_n) break; __is_bucket_begin = true; __bkt = __n_bkt; } if (__n && (__n_bkt != __bkt || __is_bucket_begin)) _M_buckets[__n_bkt] = __prev_n; __prev_n->_M_nxt = __n; return iterator(__n); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: clear() noexcept { this->_M_deallocate_nodes(_M_begin()); __builtin_memset(_M_buckets, 0, _M_bucket_count * sizeof(__node_base_ptr)); _M_element_count = 0; _M_before_begin._M_nxt = nullptr; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: rehash(size_type __bkt_count) { const __rehash_state& __saved_state = _M_rehash_policy._M_state(); __bkt_count = std::max(_M_rehash_policy._M_bkt_for_elements(_M_element_count + 1), __bkt_count); __bkt_count = _M_rehash_policy._M_next_bkt(__bkt_count); if (__bkt_count != _M_bucket_count) _M_rehash(__bkt_count, __saved_state); else _M_rehash_policy._M_reset(__saved_state); } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_rehash(size_type __bkt_count, const __rehash_state& __state) { try { _M_rehash_aux(__bkt_count, __unique_keys{}); } catch(...) { _M_rehash_policy._M_reset(__state); throw; } } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_rehash_aux(size_type __bkt_count, true_type ) { __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); __node_ptr __p = _M_begin(); _M_before_begin._M_nxt = nullptr; std::size_t __bbegin_bkt = 0; while (__p) { __node_ptr __next = __p->_M_next(); std::size_t __bkt = __hash_code_base::_M_bucket_index(*__p, __bkt_count); if (!__new_buckets[__bkt]) { __p->_M_nxt = _M_before_begin._M_nxt; _M_before_begin._M_nxt = __p; __new_buckets[__bkt] = &_M_before_begin; if (__p->_M_nxt) __new_buckets[__bbegin_bkt] = __p; __bbegin_bkt = __bkt; } else { __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; __new_buckets[__bkt]->_M_nxt = __p; } __p = __next; } _M_deallocate_buckets(); _M_bucket_count = __bkt_count; _M_buckets = __new_buckets; } template<typename _Key, typename _Value, typename _Alloc, typename _ExtractKey, typename _Equal, typename _Hash, typename _RangeHash, typename _Unused, typename _RehashPolicy, typename _Traits> void _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _Hash, _RangeHash, _Unused, _RehashPolicy, _Traits>:: _M_rehash_aux(size_type __bkt_count, false_type ) { __buckets_ptr __new_buckets = _M_allocate_buckets(__bkt_count); __node_ptr __p = _M_begin(); _M_before_begin._M_nxt = nullptr; std::size_t __bbegin_bkt = 0; std::size_t __prev_bkt = 0; __node_ptr __prev_p = nullptr; bool __check_bucket = false; while (__p) { __node_ptr __next = __p->_M_next(); std::size_t __bkt = __hash_code_base::_M_bucket_index(*__p, __bkt_count); if (__prev_p && __prev_bkt == __bkt) { __p->_M_nxt = __prev_p->_M_nxt; __prev_p->_M_nxt = __p; __check_bucket = true; } else { if (__check_bucket) { if (__prev_p->_M_nxt) { std::size_t __next_bkt = __hash_code_base::_M_bucket_index( *__prev_p->_M_next(), __bkt_count); if (__next_bkt != __prev_bkt) __new_buckets[__next_bkt] = __prev_p; } __check_bucket = false; } if (!__new_buckets[__bkt]) { __p->_M_nxt = _M_before_begin._M_nxt; _M_before_begin._M_nxt = __p; __new_buckets[__bkt] = &_M_before_begin; if (__p->_M_nxt) __new_buckets[__bbegin_bkt] = __p; __bbegin_bkt = __bkt; } else { __p->_M_nxt = __new_buckets[__bkt]->_M_nxt; __new_buckets[__bkt]->_M_nxt = __p; } } __prev_p = __p; __prev_bkt = __bkt; __p = __next; } if (__check_bucket && __prev_p->_M_nxt) { std::size_t __next_bkt = __hash_code_base::_M_bucket_index(*__prev_p->_M_next(), __bkt_count); if (__next_bkt != __prev_bkt) __new_buckets[__next_bkt] = __prev_p; } _M_deallocate_buckets(); _M_bucket_count = __bkt_count; _M_buckets = __new_buckets; } template<typename, typename, typename> class _Hash_merge_helper { }; template<typename _Hash> using _RequireNotAllocatorOrIntegral = __enable_if_t<!__or_<is_integral<_Hash>, __is_allocator<_Hash>>::value>; } # 34 "/usr/include/c++/13/bits/unordered_map.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<bool _Cache> using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>; template<typename _Key, typename _Tp, typename _Hash = hash<_Key>, typename _Pred = std::equal_to<_Key>, typename _Alloc = std::allocator<std::pair<const _Key, _Tp> >, typename _Tr = __umap_traits<__cache_default<_Key, _Hash>::value>> using __umap_hashtable = _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, __detail::_Select1st, _Pred, _Hash, __detail::_Mod_range_hashing, __detail::_Default_ranged_hash, __detail::_Prime_rehash_policy, _Tr>; template<bool _Cache> using __ummap_traits = __detail::_Hashtable_traits<_Cache, false, false>; template<typename _Key, typename _Tp, typename _Hash = hash<_Key>, typename _Pred = std::equal_to<_Key>, typename _Alloc = std::allocator<std::pair<const _Key, _Tp> >, typename _Tr = __ummap_traits<__cache_default<_Key, _Hash>::value>> using __ummap_hashtable = _Hashtable<_Key, std::pair<const _Key, _Tp>, _Alloc, __detail::_Select1st, _Pred, _Hash, __detail::_Mod_range_hashing, __detail::_Default_ranged_hash, __detail::_Prime_rehash_policy, _Tr>; template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class unordered_multimap; # 105 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _Key, typename _Tp, typename _Hash = hash<_Key>, typename _Pred = equal_to<_Key>, typename _Alloc = allocator<std::pair<const _Key, _Tp>>> class unordered_map { typedef __umap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; _Hashtable _M_h; public: typedef typename _Hashtable::key_type key_type; typedef typename _Hashtable::value_type value_type; typedef typename _Hashtable::mapped_type mapped_type; typedef typename _Hashtable::hasher hasher; typedef typename _Hashtable::key_equal key_equal; typedef typename _Hashtable::allocator_type allocator_type; typedef typename _Hashtable::pointer pointer; typedef typename _Hashtable::const_pointer const_pointer; typedef typename _Hashtable::reference reference; typedef typename _Hashtable::const_reference const_reference; typedef typename _Hashtable::iterator iterator; typedef typename _Hashtable::const_iterator const_iterator; typedef typename _Hashtable::local_iterator local_iterator; typedef typename _Hashtable::const_local_iterator const_local_iterator; typedef typename _Hashtable::size_type size_type; typedef typename _Hashtable::difference_type difference_type; using node_type = typename _Hashtable::node_type; using insert_return_type = typename _Hashtable::insert_return_type; unordered_map() = default; # 157 "/usr/include/c++/13/bits/unordered_map.h" 3 explicit unordered_map(size_type __n, const hasher& __hf = hasher(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _M_h(__n, __hf, __eql, __a) { } # 178 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _InputIterator> unordered_map(_InputIterator __first, _InputIterator __last, size_type __n = 0, const hasher& __hf = hasher(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _M_h(__first, __last, __n, __hf, __eql, __a) { } unordered_map(const unordered_map&) = default; unordered_map(unordered_map&&) = default; explicit unordered_map(const allocator_type& __a) : _M_h(__a) { } unordered_map(const unordered_map& __umap, const allocator_type& __a) : _M_h(__umap._M_h, __a) { } unordered_map(unordered_map&& __umap, const allocator_type& __a) noexcept( noexcept(_Hashtable(std::move(__umap._M_h), __a)) ) : _M_h(std::move(__umap._M_h), __a) { } # 234 "/usr/include/c++/13/bits/unordered_map.h" 3 unordered_map(initializer_list<value_type> __l, size_type __n = 0, const hasher& __hf = hasher(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _M_h(__l, __n, __hf, __eql, __a) { } unordered_map(size_type __n, const allocator_type& __a) : unordered_map(__n, hasher(), key_equal(), __a) { } unordered_map(size_type __n, const hasher& __hf, const allocator_type& __a) : unordered_map(__n, __hf, key_equal(), __a) { } template<typename _InputIterator> unordered_map(_InputIterator __first, _InputIterator __last, size_type __n, const allocator_type& __a) : unordered_map(__first, __last, __n, hasher(), key_equal(), __a) { } template<typename _InputIterator> unordered_map(_InputIterator __first, _InputIterator __last, size_type __n, const hasher& __hf, const allocator_type& __a) : unordered_map(__first, __last, __n, __hf, key_equal(), __a) { } unordered_map(initializer_list<value_type> __l, size_type __n, const allocator_type& __a) : unordered_map(__l, __n, hasher(), key_equal(), __a) { } unordered_map(initializer_list<value_type> __l, size_type __n, const hasher& __hf, const allocator_type& __a) : unordered_map(__l, __n, __hf, key_equal(), __a) { } unordered_map& operator=(const unordered_map&) = default; unordered_map& operator=(unordered_map&&) = default; # 296 "/usr/include/c++/13/bits/unordered_map.h" 3 unordered_map& operator=(initializer_list<value_type> __l) { _M_h = __l; return *this; } allocator_type get_allocator() const noexcept { return _M_h.get_allocator(); } [[__nodiscard__]] bool empty() const noexcept { return _M_h.empty(); } size_type size() const noexcept { return _M_h.size(); } size_type max_size() const noexcept { return _M_h.max_size(); } iterator begin() noexcept { return _M_h.begin(); } const_iterator begin() const noexcept { return _M_h.begin(); } const_iterator cbegin() const noexcept { return _M_h.begin(); } iterator end() noexcept { return _M_h.end(); } const_iterator end() const noexcept { return _M_h.end(); } const_iterator cend() const noexcept { return _M_h.end(); } # 393 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename... _Args> std::pair<iterator, bool> emplace(_Args&&... __args) { return _M_h.emplace(std::forward<_Args>(__args)...); } # 424 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename... _Args> iterator emplace_hint(const_iterator __pos, _Args&&... __args) { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } node_type extract(const_iterator __pos) { do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); return _M_h.extract(__pos); } node_type extract(const key_type& __key) { return _M_h.extract(__key); } insert_return_type insert(node_type&& __nh) { return _M_h._M_reinsert_node(std::move(__nh)); } iterator insert(const_iterator, node_type&& __nh) { return _M_h._M_reinsert_node(std::move(__nh)).position; } # 476 "/usr/include/c++/13/bits/unordered_map.h" 3 template <typename... _Args> pair<iterator, bool> try_emplace(const key_type& __k, _Args&&... __args) { return _M_h.try_emplace(cend(), __k, std::forward<_Args>(__args)...); } template <typename... _Args> pair<iterator, bool> try_emplace(key_type&& __k, _Args&&... __args) { return _M_h.try_emplace(cend(), std::move(__k), std::forward<_Args>(__args)...); } # 520 "/usr/include/c++/13/bits/unordered_map.h" 3 template <typename... _Args> iterator try_emplace(const_iterator __hint, const key_type& __k, _Args&&... __args) { return _M_h.try_emplace(__hint, __k, std::forward<_Args>(__args)...).first; } template <typename... _Args> iterator try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) { return _M_h.try_emplace(__hint, std::move(__k), std::forward<_Args>(__args)...).first; } # 557 "/usr/include/c++/13/bits/unordered_map.h" 3 std::pair<iterator, bool> insert(const value_type& __x) { return _M_h.insert(__x); } std::pair<iterator, bool> insert(value_type&& __x) { return _M_h.insert(std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair&&>::value, pair<iterator, bool>> insert(_Pair&& __x) { return _M_h.emplace(std::forward<_Pair>(__x)); } # 596 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator insert(const_iterator __hint, const value_type& __x) { return _M_h.insert(__hint, __x); } iterator insert(const_iterator __hint, value_type&& __x) { return _M_h.insert(__hint, std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair&&>::value, iterator> insert(const_iterator __hint, _Pair&& __x) { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } # 621 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _InputIterator> void insert(_InputIterator __first, _InputIterator __last) { _M_h.insert(__first, __last); } # 633 "/usr/include/c++/13/bits/unordered_map.h" 3 void insert(initializer_list<value_type> __l) { _M_h.insert(__l); } # 659 "/usr/include/c++/13/bits/unordered_map.h" 3 template <typename _Obj> pair<iterator, bool> insert_or_assign(const key_type& __k, _Obj&& __obj) { auto __ret = _M_h.try_emplace(cend(), __k, std::forward<_Obj>(__obj)); if (!__ret.second) __ret.first->second = std::forward<_Obj>(__obj); return __ret; } template <typename _Obj> pair<iterator, bool> insert_or_assign(key_type&& __k, _Obj&& __obj) { auto __ret = _M_h.try_emplace(cend(), std::move(__k), std::forward<_Obj>(__obj)); if (!__ret.second) __ret.first->second = std::forward<_Obj>(__obj); return __ret; } # 708 "/usr/include/c++/13/bits/unordered_map.h" 3 template <typename _Obj> iterator insert_or_assign(const_iterator __hint, const key_type& __k, _Obj&& __obj) { auto __ret = _M_h.try_emplace(__hint, __k, std::forward<_Obj>(__obj)); if (!__ret.second) __ret.first->second = std::forward<_Obj>(__obj); return __ret.first; } template <typename _Obj> iterator insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) { auto __ret = _M_h.try_emplace(__hint, std::move(__k), std::forward<_Obj>(__obj)); if (!__ret.second) __ret.first->second = std::forward<_Obj>(__obj); return __ret.first; } # 746 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator erase(const_iterator __position) { return _M_h.erase(__position); } iterator erase(iterator __position) { return _M_h.erase(__position); } # 768 "/usr/include/c++/13/bits/unordered_map.h" 3 size_type erase(const key_type& __x) { return _M_h.erase(__x); } # 786 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator erase(const_iterator __first, const_iterator __last) { return _M_h.erase(__first, __last); } void clear() noexcept { _M_h.clear(); } # 810 "/usr/include/c++/13/bits/unordered_map.h" 3 void swap(unordered_map& __x) noexcept( noexcept(_M_h.swap(__x._M_h)) ) { _M_h.swap(__x._M_h); } template<typename, typename, typename> friend class std::_Hash_merge_helper; template<typename _H2, typename _P2> void merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) { using _Merge_helper = _Hash_merge_helper<unordered_map, _H2, _P2>; _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); } template<typename _H2, typename _P2> void merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) { merge(__source); } template<typename _H2, typename _P2> void merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) { using _Merge_helper = _Hash_merge_helper<unordered_map, _H2, _P2>; _M_h._M_merge_unique(_Merge_helper::_S_get_table(__source)); } template<typename _H2, typename _P2> void merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) { merge(__source); } hasher hash_function() const { return _M_h.hash_function(); } key_equal key_eq() const { return _M_h.key_eq(); } # 874 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator find(const key_type& __x) { return _M_h.find(__x); } template<typename _Kt> auto find(const _Kt& __x) -> decltype(_M_h._M_find_tr(__x)) { return _M_h._M_find_tr(__x); } const_iterator find(const key_type& __x) const { return _M_h.find(__x); } template<typename _Kt> auto find(const _Kt& __x) const -> decltype(_M_h._M_find_tr(__x)) { return _M_h._M_find_tr(__x); } # 907 "/usr/include/c++/13/bits/unordered_map.h" 3 size_type count(const key_type& __x) const { return _M_h.count(__x); } template<typename _Kt> auto count(const _Kt& __x) const -> decltype(_M_h._M_count_tr(__x)) { return _M_h._M_count_tr(__x); } # 926 "/usr/include/c++/13/bits/unordered_map.h" 3 bool contains(const key_type& __x) const { return _M_h.find(__x) != _M_h.end(); } template<typename _Kt> auto contains(const _Kt& __x) const -> decltype(_M_h._M_find_tr(__x), void(), true) { return _M_h._M_find_tr(__x) != _M_h.end(); } # 947 "/usr/include/c++/13/bits/unordered_map.h" 3 std::pair<iterator, iterator> equal_range(const key_type& __x) { return _M_h.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) -> decltype(_M_h._M_equal_range_tr(__x)) { return _M_h._M_equal_range_tr(__x); } std::pair<const_iterator, const_iterator> equal_range(const key_type& __x) const { return _M_h.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) const -> decltype(_M_h._M_equal_range_tr(__x)) { return _M_h._M_equal_range_tr(__x); } # 985 "/usr/include/c++/13/bits/unordered_map.h" 3 mapped_type& operator[](const key_type& __k) { return _M_h[__k]; } mapped_type& operator[](key_type&& __k) { return _M_h[std::move(__k)]; } # 1002 "/usr/include/c++/13/bits/unordered_map.h" 3 mapped_type& at(const key_type& __k) { return _M_h.at(__k); } const mapped_type& at(const key_type& __k) const { return _M_h.at(__k); } size_type bucket_count() const noexcept { return _M_h.bucket_count(); } size_type max_bucket_count() const noexcept { return _M_h.max_bucket_count(); } size_type bucket_size(size_type __n) const { return _M_h.bucket_size(__n); } size_type bucket(const key_type& __key) const { return _M_h.bucket(__key); } local_iterator begin(size_type __n) { return _M_h.begin(__n); } # 1058 "/usr/include/c++/13/bits/unordered_map.h" 3 const_local_iterator begin(size_type __n) const { return _M_h.begin(__n); } const_local_iterator cbegin(size_type __n) const { return _M_h.cbegin(__n); } # 1073 "/usr/include/c++/13/bits/unordered_map.h" 3 local_iterator end(size_type __n) { return _M_h.end(__n); } # 1084 "/usr/include/c++/13/bits/unordered_map.h" 3 const_local_iterator end(size_type __n) const { return _M_h.end(__n); } const_local_iterator cend(size_type __n) const { return _M_h.cend(__n); } float load_factor() const noexcept { return _M_h.load_factor(); } float max_load_factor() const noexcept { return _M_h.max_load_factor(); } void max_load_factor(float __z) { _M_h.max_load_factor(__z); } # 1121 "/usr/include/c++/13/bits/unordered_map.h" 3 void rehash(size_type __n) { _M_h.rehash(__n); } # 1132 "/usr/include/c++/13/bits/unordered_map.h" 3 void reserve(size_type __n) { _M_h.reserve(__n); } template<typename _Key1, typename _Tp1, typename _Hash1, typename _Pred1, typename _Alloc1> friend bool operator==(const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, const unordered_map<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); }; template<typename _InputIterator, typename _Hash = hash<__iter_key_t<_InputIterator>>, typename _Pred = equal_to<__iter_key_t<_InputIterator>>, typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, typename = _RequireInputIter<_InputIterator>, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireNotAllocator<_Pred>, typename = _RequireAllocator<_Allocator>> unordered_map(_InputIterator, _InputIterator, typename unordered_map<int, int>::size_type = {}, _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) -> unordered_map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, _Hash, _Pred, _Allocator>; template<typename _Key, typename _Tp, typename _Hash = hash<_Key>, typename _Pred = equal_to<_Key>, typename _Allocator = allocator<pair<const _Key, _Tp>>, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireNotAllocator<_Pred>, typename = _RequireAllocator<_Allocator>> unordered_map(initializer_list<pair<_Key, _Tp>>, typename unordered_map<int, int>::size_type = {}, _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) -> unordered_map<_Key, _Tp, _Hash, _Pred, _Allocator>; template<typename _InputIterator, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> unordered_map(_InputIterator, _InputIterator, typename unordered_map<int, int>::size_type, _Allocator) -> unordered_map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, hash<__iter_key_t<_InputIterator>>, equal_to<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _InputIterator, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> unordered_map(_InputIterator, _InputIterator, _Allocator) -> unordered_map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, hash<__iter_key_t<_InputIterator>>, equal_to<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _InputIterator, typename _Hash, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireAllocator<_Allocator>> unordered_map(_InputIterator, _InputIterator, typename unordered_map<int, int>::size_type, _Hash, _Allocator) -> unordered_map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, _Hash, equal_to<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _Key, typename _Tp, typename _Allocator, typename = _RequireAllocator<_Allocator>> unordered_map(initializer_list<pair<_Key, _Tp>>, typename unordered_map<int, int>::size_type, _Allocator) -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; template<typename _Key, typename _Tp, typename _Allocator, typename = _RequireAllocator<_Allocator>> unordered_map(initializer_list<pair<_Key, _Tp>>, _Allocator) -> unordered_map<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; template<typename _Key, typename _Tp, typename _Hash, typename _Allocator, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireAllocator<_Allocator>> unordered_map(initializer_list<pair<_Key, _Tp>>, typename unordered_map<int, int>::size_type, _Hash, _Allocator) -> unordered_map<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; # 1250 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _Key, typename _Tp, typename _Hash = hash<_Key>, typename _Pred = equal_to<_Key>, typename _Alloc = allocator<std::pair<const _Key, _Tp>>> class unordered_multimap { typedef __ummap_hashtable<_Key, _Tp, _Hash, _Pred, _Alloc> _Hashtable; _Hashtable _M_h; public: typedef typename _Hashtable::key_type key_type; typedef typename _Hashtable::value_type value_type; typedef typename _Hashtable::mapped_type mapped_type; typedef typename _Hashtable::hasher hasher; typedef typename _Hashtable::key_equal key_equal; typedef typename _Hashtable::allocator_type allocator_type; typedef typename _Hashtable::pointer pointer; typedef typename _Hashtable::const_pointer const_pointer; typedef typename _Hashtable::reference reference; typedef typename _Hashtable::const_reference const_reference; typedef typename _Hashtable::iterator iterator; typedef typename _Hashtable::const_iterator const_iterator; typedef typename _Hashtable::local_iterator local_iterator; typedef typename _Hashtable::const_local_iterator const_local_iterator; typedef typename _Hashtable::size_type size_type; typedef typename _Hashtable::difference_type difference_type; using node_type = typename _Hashtable::node_type; unordered_multimap() = default; # 1301 "/usr/include/c++/13/bits/unordered_map.h" 3 explicit unordered_multimap(size_type __n, const hasher& __hf = hasher(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _M_h(__n, __hf, __eql, __a) { } # 1322 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _InputIterator> unordered_multimap(_InputIterator __first, _InputIterator __last, size_type __n = 0, const hasher& __hf = hasher(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _M_h(__first, __last, __n, __hf, __eql, __a) { } unordered_multimap(const unordered_multimap&) = default; unordered_multimap(unordered_multimap&&) = default; explicit unordered_multimap(const allocator_type& __a) : _M_h(__a) { } unordered_multimap(const unordered_multimap& __ummap, const allocator_type& __a) : _M_h(__ummap._M_h, __a) { } unordered_multimap(unordered_multimap&& __ummap, const allocator_type& __a) noexcept( noexcept(_Hashtable(std::move(__ummap._M_h), __a)) ) : _M_h(std::move(__ummap._M_h), __a) { } # 1378 "/usr/include/c++/13/bits/unordered_map.h" 3 unordered_multimap(initializer_list<value_type> __l, size_type __n = 0, const hasher& __hf = hasher(), const key_equal& __eql = key_equal(), const allocator_type& __a = allocator_type()) : _M_h(__l, __n, __hf, __eql, __a) { } unordered_multimap(size_type __n, const allocator_type& __a) : unordered_multimap(__n, hasher(), key_equal(), __a) { } unordered_multimap(size_type __n, const hasher& __hf, const allocator_type& __a) : unordered_multimap(__n, __hf, key_equal(), __a) { } template<typename _InputIterator> unordered_multimap(_InputIterator __first, _InputIterator __last, size_type __n, const allocator_type& __a) : unordered_multimap(__first, __last, __n, hasher(), key_equal(), __a) { } template<typename _InputIterator> unordered_multimap(_InputIterator __first, _InputIterator __last, size_type __n, const hasher& __hf, const allocator_type& __a) : unordered_multimap(__first, __last, __n, __hf, key_equal(), __a) { } unordered_multimap(initializer_list<value_type> __l, size_type __n, const allocator_type& __a) : unordered_multimap(__l, __n, hasher(), key_equal(), __a) { } unordered_multimap(initializer_list<value_type> __l, size_type __n, const hasher& __hf, const allocator_type& __a) : unordered_multimap(__l, __n, __hf, key_equal(), __a) { } unordered_multimap& operator=(const unordered_multimap&) = default; unordered_multimap& operator=(unordered_multimap&&) = default; # 1440 "/usr/include/c++/13/bits/unordered_map.h" 3 unordered_multimap& operator=(initializer_list<value_type> __l) { _M_h = __l; return *this; } allocator_type get_allocator() const noexcept { return _M_h.get_allocator(); } [[__nodiscard__]] bool empty() const noexcept { return _M_h.empty(); } size_type size() const noexcept { return _M_h.size(); } size_type max_size() const noexcept { return _M_h.max_size(); } iterator begin() noexcept { return _M_h.begin(); } const_iterator begin() const noexcept { return _M_h.begin(); } const_iterator cbegin() const noexcept { return _M_h.begin(); } iterator end() noexcept { return _M_h.end(); } const_iterator end() const noexcept { return _M_h.end(); } const_iterator cend() const noexcept { return _M_h.end(); } # 1532 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename... _Args> iterator emplace(_Args&&... __args) { return _M_h.emplace(std::forward<_Args>(__args)...); } # 1559 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename... _Args> iterator emplace_hint(const_iterator __pos, _Args&&... __args) { return _M_h.emplace_hint(__pos, std::forward<_Args>(__args)...); } # 1574 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator insert(const value_type& __x) { return _M_h.insert(__x); } iterator insert(value_type&& __x) { return _M_h.insert(std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair&&>::value, iterator> insert(_Pair&& __x) { return _M_h.emplace(std::forward<_Pair>(__x)); } # 1608 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator insert(const_iterator __hint, const value_type& __x) { return _M_h.insert(__hint, __x); } iterator insert(const_iterator __hint, value_type&& __x) { return _M_h.insert(__hint, std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair&&>::value, iterator> insert(const_iterator __hint, _Pair&& __x) { return _M_h.emplace_hint(__hint, std::forward<_Pair>(__x)); } # 1633 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _InputIterator> void insert(_InputIterator __first, _InputIterator __last) { _M_h.insert(__first, __last); } # 1646 "/usr/include/c++/13/bits/unordered_map.h" 3 void insert(initializer_list<value_type> __l) { _M_h.insert(__l); } node_type extract(const_iterator __pos) { do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); return _M_h.extract(__pos); } node_type extract(const key_type& __key) { return _M_h.extract(__key); } iterator insert(node_type&& __nh) { return _M_h._M_reinsert_node_multi(cend(), std::move(__nh)); } iterator insert(const_iterator __hint, node_type&& __nh) { return _M_h._M_reinsert_node_multi(__hint, std::move(__nh)); } # 1689 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator erase(const_iterator __position) { return _M_h.erase(__position); } iterator erase(iterator __position) { return _M_h.erase(__position); } # 1710 "/usr/include/c++/13/bits/unordered_map.h" 3 size_type erase(const key_type& __x) { return _M_h.erase(__x); } # 1729 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator erase(const_iterator __first, const_iterator __last) { return _M_h.erase(__first, __last); } void clear() noexcept { _M_h.clear(); } # 1753 "/usr/include/c++/13/bits/unordered_map.h" 3 void swap(unordered_multimap& __x) noexcept( noexcept(_M_h.swap(__x._M_h)) ) { _M_h.swap(__x._M_h); } template<typename, typename, typename> friend class std::_Hash_merge_helper; template<typename _H2, typename _P2> void merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>& __source) { using _Merge_helper = _Hash_merge_helper<unordered_multimap, _H2, _P2>; _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); } template<typename _H2, typename _P2> void merge(unordered_multimap<_Key, _Tp, _H2, _P2, _Alloc>&& __source) { merge(__source); } template<typename _H2, typename _P2> void merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>& __source) { using _Merge_helper = _Hash_merge_helper<unordered_multimap, _H2, _P2>; _M_h._M_merge_multi(_Merge_helper::_S_get_table(__source)); } template<typename _H2, typename _P2> void merge(unordered_map<_Key, _Tp, _H2, _P2, _Alloc>&& __source) { merge(__source); } hasher hash_function() const { return _M_h.hash_function(); } key_equal key_eq() const { return _M_h.key_eq(); } # 1819 "/usr/include/c++/13/bits/unordered_map.h" 3 iterator find(const key_type& __x) { return _M_h.find(__x); } template<typename _Kt> auto find(const _Kt& __x) -> decltype(_M_h._M_find_tr(__x)) { return _M_h._M_find_tr(__x); } const_iterator find(const key_type& __x) const { return _M_h.find(__x); } template<typename _Kt> auto find(const _Kt& __x) const -> decltype(_M_h._M_find_tr(__x)) { return _M_h._M_find_tr(__x); } # 1848 "/usr/include/c++/13/bits/unordered_map.h" 3 size_type count(const key_type& __x) const { return _M_h.count(__x); } template<typename _Kt> auto count(const _Kt& __x) const -> decltype(_M_h._M_count_tr(__x)) { return _M_h._M_count_tr(__x); } # 1867 "/usr/include/c++/13/bits/unordered_map.h" 3 bool contains(const key_type& __x) const { return _M_h.find(__x) != _M_h.end(); } template<typename _Kt> auto contains(const _Kt& __x) const -> decltype(_M_h._M_find_tr(__x), void(), true) { return _M_h._M_find_tr(__x) != _M_h.end(); } # 1886 "/usr/include/c++/13/bits/unordered_map.h" 3 std::pair<iterator, iterator> equal_range(const key_type& __x) { return _M_h.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) -> decltype(_M_h._M_equal_range_tr(__x)) { return _M_h._M_equal_range_tr(__x); } std::pair<const_iterator, const_iterator> equal_range(const key_type& __x) const { return _M_h.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) const -> decltype(_M_h._M_equal_range_tr(__x)) { return _M_h._M_equal_range_tr(__x); } size_type bucket_count() const noexcept { return _M_h.bucket_count(); } size_type max_bucket_count() const noexcept { return _M_h.max_bucket_count(); } size_type bucket_size(size_type __n) const { return _M_h.bucket_size(__n); } size_type bucket(const key_type& __key) const { return _M_h.bucket(__key); } local_iterator begin(size_type __n) { return _M_h.begin(__n); } # 1958 "/usr/include/c++/13/bits/unordered_map.h" 3 const_local_iterator begin(size_type __n) const { return _M_h.begin(__n); } const_local_iterator cbegin(size_type __n) const { return _M_h.cbegin(__n); } # 1973 "/usr/include/c++/13/bits/unordered_map.h" 3 local_iterator end(size_type __n) { return _M_h.end(__n); } # 1984 "/usr/include/c++/13/bits/unordered_map.h" 3 const_local_iterator end(size_type __n) const { return _M_h.end(__n); } const_local_iterator cend(size_type __n) const { return _M_h.cend(__n); } float load_factor() const noexcept { return _M_h.load_factor(); } float max_load_factor() const noexcept { return _M_h.max_load_factor(); } void max_load_factor(float __z) { _M_h.max_load_factor(__z); } # 2021 "/usr/include/c++/13/bits/unordered_map.h" 3 void rehash(size_type __n) { _M_h.rehash(__n); } # 2032 "/usr/include/c++/13/bits/unordered_map.h" 3 void reserve(size_type __n) { _M_h.reserve(__n); } template<typename _Key1, typename _Tp1, typename _Hash1, typename _Pred1, typename _Alloc1> friend bool operator==(const unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&, const unordered_multimap<_Key1, _Tp1, _Hash1, _Pred1, _Alloc1>&); }; template<typename _InputIterator, typename _Hash = hash<__iter_key_t<_InputIterator>>, typename _Pred = equal_to<__iter_key_t<_InputIterator>>, typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, typename = _RequireInputIter<_InputIterator>, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireNotAllocator<_Pred>, typename = _RequireAllocator<_Allocator>> unordered_multimap(_InputIterator, _InputIterator, unordered_multimap<int, int>::size_type = {}, _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) -> unordered_multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, _Hash, _Pred, _Allocator>; template<typename _Key, typename _Tp, typename _Hash = hash<_Key>, typename _Pred = equal_to<_Key>, typename _Allocator = allocator<pair<const _Key, _Tp>>, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireNotAllocator<_Pred>, typename = _RequireAllocator<_Allocator>> unordered_multimap(initializer_list<pair<_Key, _Tp>>, unordered_multimap<int, int>::size_type = {}, _Hash = _Hash(), _Pred = _Pred(), _Allocator = _Allocator()) -> unordered_multimap<_Key, _Tp, _Hash, _Pred, _Allocator>; template<typename _InputIterator, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> unordered_multimap(_InputIterator, _InputIterator, unordered_multimap<int, int>::size_type, _Allocator) -> unordered_multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, hash<__iter_key_t<_InputIterator>>, equal_to<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _InputIterator, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> unordered_multimap(_InputIterator, _InputIterator, _Allocator) -> unordered_multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, hash<__iter_key_t<_InputIterator>>, equal_to<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _InputIterator, typename _Hash, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireAllocator<_Allocator>> unordered_multimap(_InputIterator, _InputIterator, unordered_multimap<int, int>::size_type, _Hash, _Allocator) -> unordered_multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, _Hash, equal_to<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _Key, typename _Tp, typename _Allocator, typename = _RequireAllocator<_Allocator>> unordered_multimap(initializer_list<pair<_Key, _Tp>>, unordered_multimap<int, int>::size_type, _Allocator) -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; template<typename _Key, typename _Tp, typename _Allocator, typename = _RequireAllocator<_Allocator>> unordered_multimap(initializer_list<pair<_Key, _Tp>>, _Allocator) -> unordered_multimap<_Key, _Tp, hash<_Key>, equal_to<_Key>, _Allocator>; template<typename _Key, typename _Tp, typename _Hash, typename _Allocator, typename = _RequireNotAllocatorOrIntegral<_Hash>, typename = _RequireAllocator<_Allocator>> unordered_multimap(initializer_list<pair<_Key, _Tp>>, unordered_multimap<int, int>::size_type, _Hash, _Allocator) -> unordered_multimap<_Key, _Tp, _Hash, equal_to<_Key>, _Allocator>; template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> inline void swap(unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> inline void swap(unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> inline bool operator==(const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, const unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) { return __x._M_h._M_equal(__y._M_h); } # 2155 "/usr/include/c++/13/bits/unordered_map.h" 3 template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> inline bool operator==(const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __x, const unordered_multimap<_Key, _Tp, _Hash, _Pred, _Alloc>& __y) { return __x._M_h._M_equal(__y._M_h); } # 2169 "/usr/include/c++/13/bits/unordered_map.h" 3 template<typename _Key, typename _Val, typename _Hash1, typename _Eq1, typename _Alloc, typename _Hash2, typename _Eq2> struct _Hash_merge_helper< std::unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> { private: template<typename... _Tp> using unordered_map = std::unordered_map<_Tp...>; template<typename... _Tp> using unordered_multimap = std::unordered_multimap<_Tp...>; friend unordered_map<_Key, _Val, _Hash1, _Eq1, _Alloc>; static auto& _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) { return __map._M_h; } static auto& _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) { return __map._M_h; } }; template<typename _Key, typename _Val, typename _Hash1, typename _Eq1, typename _Alloc, typename _Hash2, typename _Eq2> struct _Hash_merge_helper< std::unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>, _Hash2, _Eq2> { private: template<typename... _Tp> using unordered_map = std::unordered_map<_Tp...>; template<typename... _Tp> using unordered_multimap = std::unordered_multimap<_Tp...>; friend unordered_multimap<_Key, _Val, _Hash1, _Eq1, _Alloc>; static auto& _S_get_table(unordered_map<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) { return __map._M_h; } static auto& _S_get_table(unordered_multimap<_Key, _Val, _Hash2, _Eq2, _Alloc>& __map) { return __map._M_h; } }; } # 42 "/usr/include/c++/13/unordered_map" 2 3 # 1 "/usr/include/c++/13/bits/erase_if.h" 1 3 # 33 "/usr/include/c++/13/bits/erase_if.h" 3 # 34 "/usr/include/c++/13/bits/erase_if.h" 3 namespace std { namespace __detail { template<typename _Container, typename _UnsafeContainer, typename _Predicate> typename _Container::size_type __erase_nodes_if(_Container& __cont, _UnsafeContainer& __ucont, _Predicate __pred) { typename _Container::size_type __num = 0; for (auto __iter = __ucont.begin(), __last = __ucont.end(); __iter != __last;) { if (__pred(*__iter)) { __iter = __cont.erase(__iter); ++__num; } else ++__iter; } return __num; } } } # 44 "/usr/include/c++/13/unordered_map" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { template<typename _Key, typename _Tp, typename _Hash = std::hash<_Key>, typename _Pred = std::equal_to<_Key>> using unordered_map = std::unordered_map<_Key, _Tp, _Hash, _Pred, polymorphic_allocator<pair<const _Key, _Tp>>>; template<typename _Key, typename _Tp, typename _Hash = std::hash<_Key>, typename _Pred = std::equal_to<_Key>> using unordered_multimap = std::unordered_multimap<_Key, _Tp, _Hash, _Pred, polymorphic_allocator<pair<const _Key, _Tp>>>; } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Key, typename _Tp, typename _Hash, typename _CPred, typename _Alloc, typename _Predicate> inline typename unordered_map<_Key, _Tp, _Hash, _CPred, _Alloc>::size_type erase_if(unordered_map<_Key, _Tp, _Hash, _CPred, _Alloc>& __cont, _Predicate __pred) { std::unordered_map<_Key, _Tp, _Hash, _CPred, _Alloc>& __ucont = __cont; return __detail::__erase_nodes_if(__cont, __ucont, __pred); } template<typename _Key, typename _Tp, typename _Hash, typename _CPred, typename _Alloc, typename _Predicate> inline typename unordered_multimap<_Key, _Tp, _Hash, _CPred, _Alloc>:: size_type erase_if(unordered_multimap<_Key, _Tp, _Hash, _CPred, _Alloc>& __cont, _Predicate __pred) { std::unordered_multimap<_Key, _Tp, _Hash, _CPred, _Alloc>& __ucont = __cont; return __detail::__erase_nodes_if(__cont, __ucont, __pred); } } # 64 "/usr/include/c++/13/functional" 2 3 # 1 "/usr/include/c++/13/array" 1 3 # 32 "/usr/include/c++/13/array" 3 # 33 "/usr/include/c++/13/array" 3 # 48 "/usr/include/c++/13/array" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp, size_t _Nm> struct __array_traits { using _Type = _Tp[_Nm]; using _Is_swappable = __is_swappable<_Tp>; using _Is_nothrow_swappable = __is_nothrow_swappable<_Tp>; }; template<typename _Tp> struct __array_traits<_Tp, 0> { struct _Type { __attribute__((__always_inline__,__noreturn__)) _Tp& operator[](size_t) const noexcept { __builtin_trap(); } __attribute__((__always_inline__)) constexpr explicit operator _Tp*() const noexcept { return nullptr; } }; using _Is_swappable = true_type; using _Is_nothrow_swappable = true_type; }; # 93 "/usr/include/c++/13/array" 3 template<typename _Tp, std::size_t _Nm> struct array { typedef _Tp value_type; typedef value_type* pointer; typedef const value_type* const_pointer; typedef value_type& reference; typedef const value_type& const_reference; typedef value_type* iterator; typedef const value_type* const_iterator; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; typedef std::reverse_iterator<iterator> reverse_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typename __array_traits<_Tp, _Nm>::_Type _M_elems; constexpr void fill(const value_type& __u) { std::fill_n(begin(), size(), __u); } constexpr void swap(array& __other) noexcept(__array_traits<_Tp, _Nm>::_Is_nothrow_swappable::value) { std::swap_ranges(begin(), end(), __other.begin()); } [[__gnu__::__const__, __nodiscard__]] constexpr iterator begin() noexcept { return iterator(data()); } [[__nodiscard__]] constexpr const_iterator begin() const noexcept { return const_iterator(data()); } [[__gnu__::__const__, __nodiscard__]] constexpr iterator end() noexcept { return iterator(data() + _Nm); } [[__nodiscard__]] constexpr const_iterator end() const noexcept { return const_iterator(data() + _Nm); } [[__gnu__::__const__, __nodiscard__]] constexpr reverse_iterator rbegin() noexcept { return reverse_iterator(end()); } [[__nodiscard__]] constexpr const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(end()); } [[__gnu__::__const__, __nodiscard__]] constexpr reverse_iterator rend() noexcept { return reverse_iterator(begin()); } [[__nodiscard__]] constexpr const_reverse_iterator rend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__]] constexpr const_iterator cbegin() const noexcept { return const_iterator(data()); } [[__nodiscard__]] constexpr const_iterator cend() const noexcept { return const_iterator(data() + _Nm); } [[__nodiscard__]] constexpr const_reverse_iterator crbegin() const noexcept { return const_reverse_iterator(end()); } [[__nodiscard__]] constexpr const_reverse_iterator crend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] constexpr size_type size() const noexcept { return _Nm; } [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] constexpr size_type max_size() const noexcept { return _Nm; } [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] constexpr bool empty() const noexcept { return size() == 0; } [[__nodiscard__]] constexpr reference operator[](size_type __n) noexcept { ; return _M_elems[__n]; } [[__nodiscard__]] constexpr const_reference operator[](size_type __n) const noexcept { ; return _M_elems[__n]; } constexpr reference at(size_type __n) { if (__n >= _Nm) std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") , __n, _Nm); return _M_elems[__n]; } constexpr const_reference at(size_type __n) const { return __n < _Nm ? _M_elems[__n] : (std::__throw_out_of_range_fmt(("array::at: __n (which is %zu) " ">= _Nm (which is %zu)") , __n, _Nm), _M_elems[__n]); } [[__nodiscard__]] constexpr reference front() noexcept { ; return _M_elems[(size_type)0]; } [[__nodiscard__]] constexpr const_reference front() const noexcept { ; return _M_elems[(size_type)0]; } [[__nodiscard__]] constexpr reference back() noexcept { ; return _M_elems[_Nm - 1]; } [[__nodiscard__]] constexpr const_reference back() const noexcept { ; return _M_elems[_Nm - 1]; } [[__nodiscard__, __gnu__::__const__, __gnu__::__always_inline__]] constexpr pointer data() noexcept { return static_cast<pointer>(_M_elems); } [[__nodiscard__]] constexpr const_pointer data() const noexcept { return static_cast<const_pointer>(_M_elems); } }; template<typename _Tp, typename... _Up> array(_Tp, _Up...) -> array<enable_if_t<(is_same_v<_Tp, _Up> && ...), _Tp>, 1 + sizeof...(_Up)>; template<typename _Tp, std::size_t _Nm> [[__nodiscard__]] constexpr inline bool operator==(const array<_Tp, _Nm>& __one, const array<_Tp, _Nm>& __two) { return std::equal(__one.begin(), __one.end(), __two.begin()); } template<typename _Tp, size_t _Nm> [[nodiscard]] constexpr __detail::__synth3way_t<_Tp> operator<=>(const array<_Tp, _Nm>& __a, const array<_Tp, _Nm>& __b) { if constexpr (_Nm && __is_memcmp_ordered<_Tp>::__value) if (!std::__is_constant_evaluated()) { constexpr size_t __n = _Nm * sizeof(_Tp); return __builtin_memcmp(__a.data(), __b.data(), __n) <=> 0; } for (size_t __i = 0; __i < _Nm; ++__i) { auto __c = __detail::__synth3way(__a[__i], __b[__i]); if (__c != 0) return __c; } return strong_ordering::equal; } # 362 "/usr/include/c++/13/array" 3 template<typename _Tp, std::size_t _Nm> constexpr inline __enable_if_t<__array_traits<_Tp, _Nm>::_Is_swappable::value> swap(array<_Tp, _Nm>& __one, array<_Tp, _Nm>& __two) noexcept(noexcept(__one.swap(__two))) { __one.swap(__two); } template<typename _Tp, std::size_t _Nm> __enable_if_t<!__array_traits<_Tp, _Nm>::_Is_swappable::value> swap(array<_Tp, _Nm>&, array<_Tp, _Nm>&) = delete; template<std::size_t _Int, typename _Tp, std::size_t _Nm> [[__nodiscard__]] constexpr _Tp& get(array<_Tp, _Nm>& __arr) noexcept { static_assert(_Int < _Nm, "array index is within bounds"); return __arr._M_elems[_Int]; } template<std::size_t _Int, typename _Tp, std::size_t _Nm> [[__nodiscard__]] constexpr _Tp&& get(array<_Tp, _Nm>&& __arr) noexcept { static_assert(_Int < _Nm, "array index is within bounds"); return std::move(std::get<_Int>(__arr)); } template<std::size_t _Int, typename _Tp, std::size_t _Nm> [[__nodiscard__]] constexpr const _Tp& get(const array<_Tp, _Nm>& __arr) noexcept { static_assert(_Int < _Nm, "array index is within bounds"); return __arr._M_elems[_Int]; } template<std::size_t _Int, typename _Tp, std::size_t _Nm> [[__nodiscard__]] constexpr const _Tp&& get(const array<_Tp, _Nm>&& __arr) noexcept { static_assert(_Int < _Nm, "array index is within bounds"); return std::move(std::get<_Int>(__arr)); } template<bool _Move = false, typename _Tp, size_t... _Idx> constexpr array<remove_cv_t<_Tp>, sizeof...(_Idx)> __to_array(_Tp (&__a)[sizeof...(_Idx)], index_sequence<_Idx...>) { if constexpr (_Move) return {{std::move(__a[_Idx])...}}; else return {{__a[_Idx]...}}; } template<typename _Tp, size_t _Nm> [[nodiscard]] constexpr array<remove_cv_t<_Tp>, _Nm> to_array(_Tp (&__a)[_Nm]) noexcept(is_nothrow_constructible_v<_Tp, _Tp&>) { static_assert(!is_array_v<_Tp>); static_assert(is_constructible_v<_Tp, _Tp&>); if constexpr (is_constructible_v<_Tp, _Tp&>) return __to_array(__a, make_index_sequence<_Nm>{}); __builtin_unreachable(); } template<typename _Tp, size_t _Nm> [[nodiscard]] constexpr array<remove_cv_t<_Tp>, _Nm> to_array(_Tp (&&__a)[_Nm]) noexcept(is_nothrow_move_constructible_v<_Tp>) { static_assert(!is_array_v<_Tp>); static_assert(is_move_constructible_v<_Tp>); if constexpr (is_move_constructible_v<_Tp>) return __to_array<1>(__a, make_index_sequence<_Nm>{}); __builtin_unreachable(); } template<typename _Tp, size_t _Nm> struct tuple_size<array<_Tp, _Nm>> : public integral_constant<size_t, _Nm> { }; template<size_t _Ind, typename _Tp, size_t _Nm> struct tuple_element<_Ind, array<_Tp, _Nm>> { static_assert(_Ind < _Nm, "array index is in range"); using type = _Tp; }; template<typename _Tp, size_t _Nm> inline constexpr size_t tuple_size_v<array<_Tp, _Nm>> = _Nm; template<typename _Tp, size_t _Nm> inline constexpr size_t tuple_size_v<const array<_Tp, _Nm>> = _Nm; template<typename _Tp, size_t _Nm> struct __is_tuple_like_impl<array<_Tp, _Nm>> : true_type { }; } # 66 "/usr/include/c++/13/functional" 2 3 # 1 "/usr/include/c++/13/bits/stl_algo.h" 1 3 # 59 "/usr/include/c++/13/bits/stl_algo.h" 3 # 1 "/usr/include/c++/13/bits/algorithmfwd.h" 1 3 # 33 "/usr/include/c++/13/bits/algorithmfwd.h" 3 # 34 "/usr/include/c++/13/bits/algorithmfwd.h" 3 # 42 "/usr/include/c++/13/bits/algorithmfwd.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 199 "/usr/include/c++/13/bits/algorithmfwd.h" 3 template<typename _IIter, typename _Predicate> constexpr bool all_of(_IIter, _IIter, _Predicate); template<typename _IIter, typename _Predicate> constexpr bool any_of(_IIter, _IIter, _Predicate); template<typename _FIter, typename _Tp> constexpr bool binary_search(_FIter, _FIter, const _Tp&); template<typename _FIter, typename _Tp, typename _Compare> constexpr bool binary_search(_FIter, _FIter, const _Tp&, _Compare); template<typename _Tp> constexpr const _Tp& clamp(const _Tp&, const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> constexpr const _Tp& clamp(const _Tp&, const _Tp&, const _Tp&, _Compare); template<typename _IIter, typename _OIter> constexpr _OIter copy(_IIter, _IIter, _OIter); template<typename _BIter1, typename _BIter2> constexpr _BIter2 copy_backward(_BIter1, _BIter1, _BIter2); template<typename _IIter, typename _OIter, typename _Predicate> constexpr _OIter copy_if(_IIter, _IIter, _OIter, _Predicate); template<typename _IIter, typename _Size, typename _OIter> constexpr _OIter copy_n(_IIter, _Size, _OIter); template<typename _FIter, typename _Tp> constexpr pair<_FIter, _FIter> equal_range(_FIter, _FIter, const _Tp&); template<typename _FIter, typename _Tp, typename _Compare> constexpr pair<_FIter, _FIter> equal_range(_FIter, _FIter, const _Tp&, _Compare); template<typename _FIter, typename _Tp> constexpr void fill(_FIter, _FIter, const _Tp&); template<typename _OIter, typename _Size, typename _Tp> constexpr _OIter fill_n(_OIter, _Size, const _Tp&); template<typename _FIter1, typename _FIter2> constexpr _FIter1 find_end(_FIter1, _FIter1, _FIter2, _FIter2); template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> constexpr _FIter1 find_end(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); template<typename _IIter, typename _Predicate> constexpr _IIter find_if_not(_IIter, _IIter, _Predicate); template<typename _IIter1, typename _IIter2> constexpr bool includes(_IIter1, _IIter1, _IIter2, _IIter2); template<typename _IIter1, typename _IIter2, typename _Compare> constexpr bool includes(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); template<typename _BIter> void inplace_merge(_BIter, _BIter, _BIter); template<typename _BIter, typename _Compare> void inplace_merge(_BIter, _BIter, _BIter, _Compare); template<typename _RAIter> constexpr bool is_heap(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr bool is_heap(_RAIter, _RAIter, _Compare); template<typename _RAIter> constexpr _RAIter is_heap_until(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr _RAIter is_heap_until(_RAIter, _RAIter, _Compare); template<typename _IIter, typename _Predicate> constexpr bool is_partitioned(_IIter, _IIter, _Predicate); template<typename _FIter1, typename _FIter2> constexpr bool is_permutation(_FIter1, _FIter1, _FIter2); template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> constexpr bool is_permutation(_FIter1, _FIter1, _FIter2, _BinaryPredicate); template<typename _FIter> constexpr bool is_sorted(_FIter, _FIter); template<typename _FIter, typename _Compare> constexpr bool is_sorted(_FIter, _FIter, _Compare); template<typename _FIter> constexpr _FIter is_sorted_until(_FIter, _FIter); template<typename _FIter, typename _Compare> constexpr _FIter is_sorted_until(_FIter, _FIter, _Compare); template<typename _FIter1, typename _FIter2> constexpr void iter_swap(_FIter1, _FIter2); template<typename _FIter, typename _Tp> constexpr _FIter lower_bound(_FIter, _FIter, const _Tp&); template<typename _FIter, typename _Tp, typename _Compare> constexpr _FIter lower_bound(_FIter, _FIter, const _Tp&, _Compare); template<typename _RAIter> constexpr void make_heap(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void make_heap(_RAIter, _RAIter, _Compare); template<typename _Tp> constexpr const _Tp& max(const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> constexpr const _Tp& max(const _Tp&, const _Tp&, _Compare); template<typename _Tp> constexpr const _Tp& min(const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> constexpr const _Tp& min(const _Tp&, const _Tp&, _Compare); template<typename _Tp> constexpr pair<const _Tp&, const _Tp&> minmax(const _Tp&, const _Tp&); template<typename _Tp, typename _Compare> constexpr pair<const _Tp&, const _Tp&> minmax(const _Tp&, const _Tp&, _Compare); template<typename _FIter> constexpr pair<_FIter, _FIter> minmax_element(_FIter, _FIter); template<typename _FIter, typename _Compare> constexpr pair<_FIter, _FIter> minmax_element(_FIter, _FIter, _Compare); template<typename _Tp> constexpr _Tp min(initializer_list<_Tp>); template<typename _Tp, typename _Compare> constexpr _Tp min(initializer_list<_Tp>, _Compare); template<typename _Tp> constexpr _Tp max(initializer_list<_Tp>); template<typename _Tp, typename _Compare> constexpr _Tp max(initializer_list<_Tp>, _Compare); template<typename _Tp> constexpr pair<_Tp, _Tp> minmax(initializer_list<_Tp>); template<typename _Tp, typename _Compare> constexpr pair<_Tp, _Tp> minmax(initializer_list<_Tp>, _Compare); template<typename _BIter> constexpr bool next_permutation(_BIter, _BIter); template<typename _BIter, typename _Compare> constexpr bool next_permutation(_BIter, _BIter, _Compare); template<typename _IIter, typename _Predicate> constexpr bool none_of(_IIter, _IIter, _Predicate); template<typename _IIter, typename _RAIter> constexpr _RAIter partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter); template<typename _IIter, typename _RAIter, typename _Compare> constexpr _RAIter partial_sort_copy(_IIter, _IIter, _RAIter, _RAIter, _Compare); template<typename _IIter, typename _OIter1, typename _OIter2, typename _Predicate> constexpr pair<_OIter1, _OIter2> partition_copy(_IIter, _IIter, _OIter1, _OIter2, _Predicate); template<typename _FIter, typename _Predicate> constexpr _FIter partition_point(_FIter, _FIter, _Predicate); template<typename _RAIter> constexpr void pop_heap(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void pop_heap(_RAIter, _RAIter, _Compare); template<typename _BIter> constexpr bool prev_permutation(_BIter, _BIter); template<typename _BIter, typename _Compare> constexpr bool prev_permutation(_BIter, _BIter, _Compare); template<typename _RAIter> constexpr void push_heap(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void push_heap(_RAIter, _RAIter, _Compare); template<typename _FIter, typename _Tp> constexpr _FIter remove(_FIter, _FIter, const _Tp&); template<typename _FIter, typename _Predicate> constexpr _FIter remove_if(_FIter, _FIter, _Predicate); template<typename _IIter, typename _OIter, typename _Tp> constexpr _OIter remove_copy(_IIter, _IIter, _OIter, const _Tp&); template<typename _IIter, typename _OIter, typename _Predicate> constexpr _OIter remove_copy_if(_IIter, _IIter, _OIter, _Predicate); template<typename _IIter, typename _OIter, typename _Tp> constexpr _OIter replace_copy(_IIter, _IIter, _OIter, const _Tp&, const _Tp&); template<typename _Iter, typename _OIter, typename _Predicate, typename _Tp> constexpr _OIter replace_copy_if(_Iter, _Iter, _OIter, _Predicate, const _Tp&); template<typename _BIter> constexpr void reverse(_BIter, _BIter); template<typename _BIter, typename _OIter> constexpr _OIter reverse_copy(_BIter, _BIter, _OIter); inline namespace _V2 { template<typename _FIter> constexpr _FIter rotate(_FIter, _FIter, _FIter); } template<typename _FIter, typename _OIter> constexpr _OIter rotate_copy(_FIter, _FIter, _FIter, _OIter); # 626 "/usr/include/c++/13/bits/algorithmfwd.h" 3 template<typename _RAIter, typename _UGenerator> void shuffle(_RAIter, _RAIter, _UGenerator&&); template<typename _RAIter> constexpr void sort_heap(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void sort_heap(_RAIter, _RAIter, _Compare); template<typename _BIter, typename _Predicate> _BIter stable_partition(_BIter, _BIter, _Predicate); # 661 "/usr/include/c++/13/bits/algorithmfwd.h" 3 template<typename _FIter1, typename _FIter2> constexpr _FIter2 swap_ranges(_FIter1, _FIter1, _FIter2); template<typename _FIter> constexpr _FIter unique(_FIter, _FIter); template<typename _FIter, typename _BinaryPredicate> constexpr _FIter unique(_FIter, _FIter, _BinaryPredicate); template<typename _FIter, typename _Tp> constexpr _FIter upper_bound(_FIter, _FIter, const _Tp&); template<typename _FIter, typename _Tp, typename _Compare> constexpr _FIter upper_bound(_FIter, _FIter, const _Tp&, _Compare); template<typename _FIter> constexpr _FIter adjacent_find(_FIter, _FIter); template<typename _FIter, typename _BinaryPredicate> constexpr _FIter adjacent_find(_FIter, _FIter, _BinaryPredicate); template<typename _IIter, typename _Tp> constexpr typename iterator_traits<_IIter>::difference_type count(_IIter, _IIter, const _Tp&); template<typename _IIter, typename _Predicate> constexpr typename iterator_traits<_IIter>::difference_type count_if(_IIter, _IIter, _Predicate); template<typename _IIter1, typename _IIter2> constexpr bool equal(_IIter1, _IIter1, _IIter2); template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> constexpr bool equal(_IIter1, _IIter1, _IIter2, _BinaryPredicate); template<typename _IIter, typename _Tp> constexpr _IIter find(_IIter, _IIter, const _Tp&); template<typename _FIter1, typename _FIter2> constexpr _FIter1 find_first_of(_FIter1, _FIter1, _FIter2, _FIter2); template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> constexpr _FIter1 find_first_of(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); template<typename _IIter, typename _Predicate> constexpr _IIter find_if(_IIter, _IIter, _Predicate); template<typename _IIter, typename _Funct> constexpr _Funct for_each(_IIter, _IIter, _Funct); template<typename _FIter, typename _Generator> constexpr void generate(_FIter, _FIter, _Generator); template<typename _OIter, typename _Size, typename _Generator> constexpr _OIter generate_n(_OIter, _Size, _Generator); template<typename _IIter1, typename _IIter2> constexpr bool lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2); template<typename _IIter1, typename _IIter2, typename _Compare> constexpr bool lexicographical_compare(_IIter1, _IIter1, _IIter2, _IIter2, _Compare); template<typename _FIter> constexpr _FIter max_element(_FIter, _FIter); template<typename _FIter, typename _Compare> constexpr _FIter max_element(_FIter, _FIter, _Compare); template<typename _IIter1, typename _IIter2, typename _OIter> constexpr _OIter merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template<typename _IIter1, typename _IIter2, typename _OIter, typename _Compare> constexpr _OIter merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template<typename _FIter> constexpr _FIter min_element(_FIter, _FIter); template<typename _FIter, typename _Compare> constexpr _FIter min_element(_FIter, _FIter, _Compare); template<typename _IIter1, typename _IIter2> constexpr pair<_IIter1, _IIter2> mismatch(_IIter1, _IIter1, _IIter2); template<typename _IIter1, typename _IIter2, typename _BinaryPredicate> constexpr pair<_IIter1, _IIter2> mismatch(_IIter1, _IIter1, _IIter2, _BinaryPredicate); template<typename _RAIter> constexpr void nth_element(_RAIter, _RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void nth_element(_RAIter, _RAIter, _RAIter, _Compare); template<typename _RAIter> constexpr void partial_sort(_RAIter, _RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void partial_sort(_RAIter, _RAIter, _RAIter, _Compare); template<typename _BIter, typename _Predicate> constexpr _BIter partition(_BIter, _BIter, _Predicate); template<typename _RAIter> void random_shuffle(_RAIter, _RAIter); template<typename _RAIter, typename _Generator> void random_shuffle(_RAIter, _RAIter, _Generator&&); template<typename _FIter, typename _Tp> constexpr void replace(_FIter, _FIter, const _Tp&, const _Tp&); template<typename _FIter, typename _Predicate, typename _Tp> constexpr void replace_if(_FIter, _FIter, _Predicate, const _Tp&); template<typename _FIter1, typename _FIter2> constexpr _FIter1 search(_FIter1, _FIter1, _FIter2, _FIter2); template<typename _FIter1, typename _FIter2, typename _BinaryPredicate> constexpr _FIter1 search(_FIter1, _FIter1, _FIter2, _FIter2, _BinaryPredicate); template<typename _FIter, typename _Size, typename _Tp> constexpr _FIter search_n(_FIter, _FIter, _Size, const _Tp&); template<typename _FIter, typename _Size, typename _Tp, typename _BinaryPredicate> constexpr _FIter search_n(_FIter, _FIter, _Size, const _Tp&, _BinaryPredicate); template<typename _IIter1, typename _IIter2, typename _OIter> constexpr _OIter set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template<typename _IIter1, typename _IIter2, typename _OIter, typename _Compare> constexpr _OIter set_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template<typename _IIter1, typename _IIter2, typename _OIter> constexpr _OIter set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template<typename _IIter1, typename _IIter2, typename _OIter, typename _Compare> constexpr _OIter set_intersection(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template<typename _IIter1, typename _IIter2, typename _OIter> constexpr _OIter set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template<typename _IIter1, typename _IIter2, typename _OIter, typename _Compare> constexpr _OIter set_symmetric_difference(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template<typename _IIter1, typename _IIter2, typename _OIter> constexpr _OIter set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter); template<typename _IIter1, typename _IIter2, typename _OIter, typename _Compare> constexpr _OIter set_union(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare); template<typename _RAIter> constexpr void sort(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> constexpr void sort(_RAIter, _RAIter, _Compare); template<typename _RAIter> void stable_sort(_RAIter, _RAIter); template<typename _RAIter, typename _Compare> void stable_sort(_RAIter, _RAIter, _Compare); template<typename _IIter, typename _OIter, typename _UnaryOperation> constexpr _OIter transform(_IIter, _IIter, _OIter, _UnaryOperation); template<typename _IIter1, typename _IIter2, typename _OIter, typename _BinaryOperation> constexpr _OIter transform(_IIter1, _IIter1, _IIter2, _OIter, _BinaryOperation); template<typename _IIter, typename _OIter> constexpr _OIter unique_copy(_IIter, _IIter, _OIter); template<typename _IIter, typename _OIter, typename _BinaryPredicate> constexpr _OIter unique_copy(_IIter, _IIter, _OIter, _BinaryPredicate); } # 60 "/usr/include/c++/13/bits/stl_algo.h" 2 3 # 1 "/usr/include/c++/13/bits/stl_heap.h" 1 3 # 63 "/usr/include/c++/13/bits/stl_heap.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _RandomAccessIterator, typename _Distance, typename _Compare> constexpr _Distance __is_heap_until(_RandomAccessIterator __first, _Distance __n, _Compare& __comp) { _Distance __parent = 0; for (_Distance __child = 1; __child < __n; ++__child) { if (__comp(__first + __parent, __first + __child)) return __child; if ((__child & 1) == 0) ++__parent; } return __n; } template<typename _RandomAccessIterator, typename _Distance> constexpr inline bool __is_heap(_RandomAccessIterator __first, _Distance __n) { __gnu_cxx::__ops::_Iter_less_iter __comp; return std::__is_heap_until(__first, __n, __comp) == __n; } template<typename _RandomAccessIterator, typename _Compare, typename _Distance> constexpr inline bool __is_heap(_RandomAccessIterator __first, _Compare __comp, _Distance __n) { typedef __decltype(__comp) _Cmp; __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); return std::__is_heap_until(__first, __n, __cmp) == __n; } template<typename _RandomAccessIterator> constexpr inline bool __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { return std::__is_heap(__first, std::distance(__first, __last)); } template<typename _RandomAccessIterator, typename _Compare> constexpr inline bool __is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { return std::__is_heap(__first, std::move(__comp), std::distance(__first, __last)); } template<typename _RandomAccessIterator, typename _Distance, typename _Tp, typename _Compare> constexpr void __push_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __topIndex, _Tp __value, _Compare& __comp) { _Distance __parent = (__holeIndex - 1) / 2; while (__holeIndex > __topIndex && __comp(__first + __parent, __value)) { *(__first + __holeIndex) = std::move(*(__first + __parent)); __holeIndex = __parent; __parent = (__holeIndex - 1) / 2; } *(__first + __holeIndex) = std::move(__value); } # 159 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator> constexpr inline void push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; ; ; ; __gnu_cxx::__ops::_Iter_less_val __comp; _ValueType __value = std::move(*(__last - 1)); std::__push_heap(__first, _DistanceType((__last - __first) - 1), _DistanceType(0), std::move(__value), __comp); } # 195 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void push_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; ; ; ; __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) __cmp(std::move(__comp)); _ValueType __value = std::move(*(__last - 1)); std::__push_heap(__first, _DistanceType((__last - __first) - 1), _DistanceType(0), std::move(__value), __cmp); } template<typename _RandomAccessIterator, typename _Distance, typename _Tp, typename _Compare> constexpr void __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, _Distance __len, _Tp __value, _Compare __comp) { const _Distance __topIndex = __holeIndex; _Distance __secondChild = __holeIndex; while (__secondChild < (__len - 1) / 2) { __secondChild = 2 * (__secondChild + 1); if (__comp(__first + __secondChild, __first + (__secondChild - 1))) __secondChild--; *(__first + __holeIndex) = std::move(*(__first + __secondChild)); __holeIndex = __secondChild; } if ((__len & 1) == 0 && __secondChild == (__len - 2) / 2) { __secondChild = 2 * (__secondChild + 1); *(__first + __holeIndex) = std::move(*(__first + (__secondChild - 1))) ; __holeIndex = __secondChild - 1; } __decltype(__gnu_cxx::__ops::__iter_comp_val(std::move(__comp))) __cmp(std::move(__comp)); std::__push_heap(__first, __holeIndex, __topIndex, std::move(__value), __cmp); } template<typename _RandomAccessIterator, typename _Compare> constexpr inline void __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomAccessIterator __result, _Compare& __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; _ValueType __value = std::move(*__result); *__result = std::move(*__first); std::__adjust_heap(__first, _DistanceType(0), _DistanceType(__last - __first), std::move(__value), __comp); } # 280 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator> constexpr inline void pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; ; ; if (__last - __first > 1) { --__last; __gnu_cxx::__ops::_Iter_less_iter __comp; std::__pop_heap(__first, __last, __last, __comp); } } # 314 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; ; ; if (__last - __first > 1) { typedef __decltype(__comp) _Cmp; __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); --__last; std::__pop_heap(__first, __last, __last, __cmp); } } template<typename _RandomAccessIterator, typename _Compare> constexpr void __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare& __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; if (__last - __first < 2) return; const _DistanceType __len = __last - __first; _DistanceType __parent = (__len - 2) / 2; while (true) { _ValueType __value = std::move(*(__first + __parent)); std::__adjust_heap(__first, __parent, __len, std::move(__value), __comp); if (__parent == 0) return; __parent--; } } # 372 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator> constexpr inline void make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; __gnu_cxx::__ops::_Iter_less_iter __comp; std::__make_heap(__first, __last, __comp); } # 399 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; typedef __decltype(__comp) _Cmp; __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); std::__make_heap(__first, __last, __cmp); } template<typename _RandomAccessIterator, typename _Compare> constexpr void __sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare& __comp) { while (__last - __first > 1) { --__last; std::__pop_heap(__first, __last, __last, __comp); } } # 437 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator> constexpr inline void sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; ; __gnu_cxx::__ops::_Iter_less_iter __comp; std::__sort_heap(__first, __last, __comp); } # 465 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; ; typedef __decltype(__comp) _Cmp; __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); std::__sort_heap(__first, __last, __cmp); } # 494 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator> constexpr inline _RandomAccessIterator is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; __gnu_cxx::__ops::_Iter_less_iter __comp; return __first + std::__is_heap_until(__first, std::distance(__first, __last), __comp); } # 523 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline _RandomAccessIterator is_heap_until(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; typedef __decltype(__comp) _Cmp; __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); return __first + std::__is_heap_until(__first, std::distance(__first, __last), __cmp); } # 548 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator> constexpr inline bool is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { return std::is_heap_until(__first, __last) == __last; } # 562 "/usr/include/c++/13/bits/stl_heap.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline bool is_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; const auto __dist = std::distance(__first, __last); typedef __decltype(__comp) _Cmp; __gnu_cxx::__ops::_Iter_comp_iter<_Cmp> __cmp(std::move(__comp)); return std::__is_heap_until(__first, __dist, __cmp) == __dist; } } # 62 "/usr/include/c++/13/bits/stl_algo.h" 2 3 # 1 "/usr/include/c++/13/bits/uniform_int_dist.h" 1 3 # 41 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 template<typename _Gen> concept uniform_random_bit_generator = invocable<_Gen&> && unsigned_integral<invoke_result_t<_Gen&>> && requires { { _Gen::min() } -> same_as<invoke_result_t<_Gen&>>; { _Gen::max() } -> same_as<invoke_result_t<_Gen&>>; requires bool_constant<(_Gen::min() < _Gen::max())>::value; }; namespace __detail { template<typename _Tp> constexpr bool _Power_of_2(_Tp __x) { return ((__x - 1) & __x) == 0; } } # 87 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 template<typename _IntType = int> class uniform_int_distribution { static_assert(std::is_integral<_IntType>::value, "template argument must be an integral type"); public: typedef _IntType result_type; struct param_type { typedef uniform_int_distribution<_IntType> distribution_type; param_type() : param_type(0) { } explicit param_type(_IntType __a, _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) : _M_a(__a), _M_b(__b) { do { if (std::__is_constant_evaluated() && !bool(_M_a <= _M_b)) __builtin_unreachable(); } while (false); } result_type a() const { return _M_a; } result_type b() const { return _M_b; } friend bool operator==(const param_type& __p1, const param_type& __p2) { return __p1._M_a == __p2._M_a && __p1._M_b == __p2._M_b; } friend bool operator!=(const param_type& __p1, const param_type& __p2) { return !(__p1 == __p2); } private: _IntType _M_a; _IntType _M_b; }; public: uniform_int_distribution() : uniform_int_distribution(0) { } explicit uniform_int_distribution(_IntType __a, _IntType __b = __gnu_cxx::__int_traits<_IntType>::__max) : _M_param(__a, __b) { } explicit uniform_int_distribution(const param_type& __p) : _M_param(__p) { } void reset() { } result_type a() const { return _M_param.a(); } result_type b() const { return _M_param.b(); } param_type param() const { return _M_param; } void param(const param_type& __param) { _M_param = __param; } result_type min() const { return this->a(); } result_type max() const { return this->b(); } template<typename _UniformRandomBitGenerator> result_type operator()(_UniformRandomBitGenerator& __urng) { return this->operator()(__urng, _M_param); } template<typename _UniformRandomBitGenerator> result_type operator()(_UniformRandomBitGenerator& __urng, const param_type& __p); template<typename _ForwardIterator, typename _UniformRandomBitGenerator> void __generate(_ForwardIterator __f, _ForwardIterator __t, _UniformRandomBitGenerator& __urng) { this->__generate(__f, __t, __urng, _M_param); } template<typename _ForwardIterator, typename _UniformRandomBitGenerator> void __generate(_ForwardIterator __f, _ForwardIterator __t, _UniformRandomBitGenerator& __urng, const param_type& __p) { this->__generate_impl(__f, __t, __urng, __p); } template<typename _UniformRandomBitGenerator> void __generate(result_type* __f, result_type* __t, _UniformRandomBitGenerator& __urng, const param_type& __p) { this->__generate_impl(__f, __t, __urng, __p); } friend bool operator==(const uniform_int_distribution& __d1, const uniform_int_distribution& __d2) { return __d1._M_param == __d2._M_param; } private: template<typename _ForwardIterator, typename _UniformRandomBitGenerator> void __generate_impl(_ForwardIterator __f, _ForwardIterator __t, _UniformRandomBitGenerator& __urng, const param_type& __p); param_type _M_param; template<typename _Wp, typename _Urbg, typename _Up> static _Up _S_nd(_Urbg& __g, _Up __range) { using _Up_traits = __gnu_cxx::__int_traits<_Up>; using _Wp_traits = __gnu_cxx::__int_traits<_Wp>; static_assert(!_Up_traits::__is_signed, "U must be unsigned"); static_assert(!_Wp_traits::__is_signed, "W must be unsigned"); static_assert(_Wp_traits::__digits == (2 * _Up_traits::__digits), "W must be twice as wide as U"); _Wp __product = _Wp(__g()) * _Wp(__range); _Up __low = _Up(__product); if (__low < __range) { _Up __threshold = -__range % __range; while (__low < __threshold) { __product = _Wp(__g()) * _Wp(__range); __low = _Up(__product); } } return __product >> _Up_traits::__digits; } }; template<typename _IntType> template<typename _UniformRandomBitGenerator> typename uniform_int_distribution<_IntType>::result_type uniform_int_distribution<_IntType>:: operator()(_UniformRandomBitGenerator& __urng, const param_type& __param) { typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; typedef typename make_unsigned<result_type>::type __utype; typedef typename common_type<_Gresult_type, __utype>::type __uctype; constexpr __uctype __urngmin = _UniformRandomBitGenerator::min(); constexpr __uctype __urngmax = _UniformRandomBitGenerator::max(); static_assert( __urngmin < __urngmax, "Uniform random bit generator must define min() < max()"); constexpr __uctype __urngrange = __urngmax - __urngmin; const __uctype __urange = __uctype(__param.b()) - __uctype(__param.a()); __uctype __ret; if (__urngrange > __urange) { const __uctype __uerange = __urange + 1; if constexpr (__urngrange == 0xffffffffffffffffUL) { long unsigned int __u64erange = __uerange; __ret = __extension__ _S_nd<unsigned __int128>(__urng, __u64erange); } else if constexpr (__urngrange == 0xffffffffU) { unsigned int __u32erange = __uerange; __ret = _S_nd<long unsigned int>(__urng, __u32erange); } else { const __uctype __scaling = __urngrange / __uerange; const __uctype __past = __uerange * __scaling; do __ret = __uctype(__urng()) - __urngmin; while (__ret >= __past); __ret /= __scaling; } } else if (__urngrange < __urange) { # 359 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 __uctype __tmp; do { const __uctype __uerngrange = __urngrange + 1; __tmp = (__uerngrange * operator() (__urng, param_type(0, __urange / __uerngrange))); __ret = __tmp + (__uctype(__urng()) - __urngmin); } while (__ret > __urange || __ret < __tmp); } else __ret = __uctype(__urng()) - __urngmin; return __ret + __param.a(); } template<typename _IntType> template<typename _ForwardIterator, typename _UniformRandomBitGenerator> void uniform_int_distribution<_IntType>:: __generate_impl(_ForwardIterator __f, _ForwardIterator __t, _UniformRandomBitGenerator& __urng, const param_type& __param) { typedef typename _UniformRandomBitGenerator::result_type _Gresult_type; typedef typename make_unsigned<result_type>::type __utype; typedef typename common_type<_Gresult_type, __utype>::type __uctype; static_assert( __urng.min() < __urng.max(), "Uniform random bit generator must define min() < max()"); constexpr __uctype __urngmin = __urng.min(); constexpr __uctype __urngmax = __urng.max(); constexpr __uctype __urngrange = __urngmax - __urngmin; const __uctype __urange = __uctype(__param.b()) - __uctype(__param.a()); __uctype __ret; if (__urngrange > __urange) { if (__detail::_Power_of_2(__urngrange + 1) && __detail::_Power_of_2(__urange + 1)) { while (__f != __t) { __ret = __uctype(__urng()) - __urngmin; *__f++ = (__ret & __urange) + __param.a(); } } else { const __uctype __uerange = __urange + 1; const __uctype __scaling = __urngrange / __uerange; const __uctype __past = __uerange * __scaling; while (__f != __t) { do __ret = __uctype(__urng()) - __urngmin; while (__ret >= __past); *__f++ = __ret / __scaling + __param.a(); } } } else if (__urngrange < __urange) { # 444 "/usr/include/c++/13/bits/uniform_int_dist.h" 3 __uctype __tmp; while (__f != __t) { do { constexpr __uctype __uerngrange = __urngrange + 1; __tmp = (__uerngrange * operator() (__urng, param_type(0, __urange / __uerngrange))); __ret = __tmp + (__uctype(__urng()) - __urngmin); } while (__ret > __urange || __ret < __tmp); *__f++ = __ret; } } else while (__f != __t) *__f++ = __uctype(__urng()) - __urngmin + __param.a(); } } # 66 "/usr/include/c++/13/bits/stl_algo.h" 2 3 # 1 "/usr/include/c++/13/cstdlib" 1 3 # 39 "/usr/include/c++/13/cstdlib" 3 # 40 "/usr/include/c++/13/cstdlib" 3 # 72 "/usr/include/c++/13/bits/stl_algo.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Iterator, typename _Compare> constexpr void __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, _Iterator __c, _Compare __comp) { if (__comp(__a, __b)) { if (__comp(__b, __c)) std::iter_swap(__result, __b); else if (__comp(__a, __c)) std::iter_swap(__result, __c); else std::iter_swap(__result, __a); } else if (__comp(__a, __c)) std::iter_swap(__result, __a); else if (__comp(__b, __c)) std::iter_swap(__result, __c); else std::iter_swap(__result, __b); } template<typename _InputIterator, typename _Predicate> constexpr inline _InputIterator __find_if_not(_InputIterator __first, _InputIterator __last, _Predicate __pred) { return std::__find_if(__first, __last, __gnu_cxx::__ops::__negate(__pred), std::__iterator_category(__first)); } template<typename _InputIterator, typename _Predicate, typename _Distance> constexpr _InputIterator __find_if_not_n(_InputIterator __first, _Distance& __len, _Predicate __pred) { for (; __len; --__len, (void) ++__first) if (!__pred(__first)) break; return __first; } # 144 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr _ForwardIterator1 __search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __predicate) { if (__first1 == __last1 || __first2 == __last2) return __first1; _ForwardIterator2 __p1(__first2); if (++__p1 == __last2) return std::__find_if(__first1, __last1, __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); _ForwardIterator1 __current = __first1; for (;;) { __first1 = std::__find_if(__first1, __last1, __gnu_cxx::__ops::__iter_comp_iter(__predicate, __first2)); if (__first1 == __last1) return __last1; _ForwardIterator2 __p = __p1; __current = __first1; if (++__current == __last1) return __last1; while (__predicate(__current, __p)) { if (++__p == __last2) return __first1; if (++__current == __last1) return __last1; } ++__first1; } return __first1; } template<typename _ForwardIterator, typename _Integer, typename _UnaryPredicate> constexpr _ForwardIterator __search_n_aux(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, _UnaryPredicate __unary_pred, std::forward_iterator_tag) { __first = std::__find_if(__first, __last, __unary_pred); while (__first != __last) { typename iterator_traits<_ForwardIterator>::difference_type __n = __count; _ForwardIterator __i = __first; ++__i; while (__i != __last && __n != 1 && __unary_pred(__i)) { ++__i; --__n; } if (__n == 1) return __first; if (__i == __last) return __last; __first = std::__find_if(++__i, __last, __unary_pred); } return __last; } template<typename _RandomAccessIter, typename _Integer, typename _UnaryPredicate> constexpr _RandomAccessIter __search_n_aux(_RandomAccessIter __first, _RandomAccessIter __last, _Integer __count, _UnaryPredicate __unary_pred, std::random_access_iterator_tag) { typedef typename std::iterator_traits<_RandomAccessIter>::difference_type _DistanceType; _DistanceType __tailSize = __last - __first; _DistanceType __remainder = __count; while (__remainder <= __tailSize) { __first += __remainder; __tailSize -= __remainder; _RandomAccessIter __backTrack = __first; while (__unary_pred(--__backTrack)) { if (--__remainder == 0) return (__first - __count); } __remainder = __count + 1 - (__first - __backTrack); } return __last; } template<typename _ForwardIterator, typename _Integer, typename _UnaryPredicate> constexpr _ForwardIterator __search_n(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, _UnaryPredicate __unary_pred) { if (__count <= 0) return __first; if (__count == 1) return std::__find_if(__first, __last, __unary_pred); return std::__search_n_aux(__first, __last, __count, __unary_pred, std::__iterator_category(__first)); } template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr _ForwardIterator1 __find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, forward_iterator_tag, forward_iterator_tag, _BinaryPredicate __comp) { if (__first2 == __last2) return __last1; _ForwardIterator1 __result = __last1; while (1) { _ForwardIterator1 __new_result = std::__search(__first1, __last1, __first2, __last2, __comp); if (__new_result == __last1) return __result; else { __result = __new_result; __first1 = __new_result; ++__first1; } } } template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, typename _BinaryPredicate> constexpr _BidirectionalIterator1 __find_end(_BidirectionalIterator1 __first1, _BidirectionalIterator1 __last1, _BidirectionalIterator2 __first2, _BidirectionalIterator2 __last2, bidirectional_iterator_tag, bidirectional_iterator_tag, _BinaryPredicate __comp) { typedef reverse_iterator<_BidirectionalIterator1> _RevIterator1; typedef reverse_iterator<_BidirectionalIterator2> _RevIterator2; _RevIterator1 __rlast1(__first1); _RevIterator2 __rlast2(__first2); _RevIterator1 __rresult = std::__search(_RevIterator1(__last1), __rlast1, _RevIterator2(__last2), __rlast2, __comp); if (__rresult == __rlast1) return __last1; else { _BidirectionalIterator1 __result = __rresult.base(); std::advance(__result, -std::distance(__first2, __last2)); return __result; } } # 370 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2> constexpr inline _ForwardIterator1 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) { ; ; return std::__find_end(__first1, __last1, __first2, __last2, std::__iterator_category(__first1), std::__iterator_category(__first2), __gnu_cxx::__ops::__iter_equal_to_iter()); } # 419 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr inline _ForwardIterator1 find_end(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __comp) { ; ; return std::__find_end(__first1, __last1, __first2, __last2, std::__iterator_category(__first1), std::__iterator_category(__first2), __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 455 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline bool all_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) { return __last == std::find_if_not(__first, __last, __pred); } # 473 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline bool none_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) { return __last == std::find_if(__first, __last, __pred); } # 492 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline bool any_of(_InputIterator __first, _InputIterator __last, _Predicate __pred) { return !std::none_of(__first, __last, __pred); } # 508 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline _InputIterator find_if_not(_InputIterator __first, _InputIterator __last, _Predicate __pred) { ; return std::__find_if_not(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } # 533 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline bool is_partitioned(_InputIterator __first, _InputIterator __last, _Predicate __pred) { __first = std::find_if_not(__first, __last, __pred); if (__first == __last) return true; ++__first; return std::none_of(__first, __last, __pred); } # 555 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Predicate> constexpr _ForwardIterator partition_point(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__pred(*__middle)) { __first = __middle; ++__first; __len = __len - __half - 1; } else __len = __half; } return __first; } template<typename _InputIterator, typename _OutputIterator, typename _Predicate> constexpr _OutputIterator __remove_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred) { for (; __first != __last; ++__first) if (!__pred(__first)) { *__result = *__first; ++__result; } return __result; } # 622 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _Tp> constexpr inline _OutputIterator remove_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, const _Tp& __value) { ; return std::__remove_copy_if(__first, __last, __result, __gnu_cxx::__ops::__iter_equals_val(__value)); } # 655 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _Predicate> constexpr inline _OutputIterator remove_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred) { ; return std::__remove_copy_if(__first, __last, __result, __gnu_cxx::__ops::__pred_iter(__pred)); } # 690 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _Predicate> constexpr _OutputIterator copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred) { ; for (; __first != __last; ++__first) if (__pred(*__first)) { *__result = *__first; ++__result; } return __result; } template<typename _InputIterator, typename _Size, typename _OutputIterator> constexpr _OutputIterator __copy_n(_InputIterator __first, _Size __n, _OutputIterator __result, input_iterator_tag) { return std::__niter_wrap(__result, __copy_n_a(__first, __n, std::__niter_base(__result), true)); } template<typename _RandomAccessIterator, typename _Size, typename _OutputIterator> constexpr inline _OutputIterator __copy_n(_RandomAccessIterator __first, _Size __n, _OutputIterator __result, random_access_iterator_tag) { return std::copy(__first, __first + __n, __result); } # 746 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Size, typename _OutputIterator> constexpr inline _OutputIterator copy_n(_InputIterator __first, _Size __n, _OutputIterator __result) { const auto __n2 = std::__size_to_integer(__n); if (__n2 <= 0) return __result; ; ; return std::__copy_n(__first, __n2, __result, std::__iterator_category(__first)); } # 782 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator1, typename _OutputIterator2, typename _Predicate> constexpr pair<_OutputIterator1, _OutputIterator2> partition_copy(_InputIterator __first, _InputIterator __last, _OutputIterator1 __out_true, _OutputIterator2 __out_false, _Predicate __pred) { ; for (; __first != __last; ++__first) if (__pred(*__first)) { *__out_true = *__first; ++__out_true; } else { *__out_false = *__first; ++__out_false; } return pair<_OutputIterator1, _OutputIterator2>(__out_true, __out_false); } # 833 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr inline _ForwardIterator remove(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __value) { ; return std::__remove_if(__first, __last, __gnu_cxx::__ops::__iter_equals_val(__value)); } # 867 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Predicate> constexpr inline _ForwardIterator remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; return std::__remove_if(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } template<typename _ForwardIterator, typename _BinaryPredicate> constexpr _ForwardIterator __adjacent_find(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { if (__first == __last) return __last; _ForwardIterator __next = __first; while (++__next != __last) { if (__binary_pred(__first, __next)) return __first; __first = __next; } return __last; } template<typename _ForwardIterator, typename _BinaryPredicate> constexpr _ForwardIterator __unique(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { __first = std::__adjacent_find(__first, __last, __binary_pred); if (__first == __last) return __last; _ForwardIterator __dest = __first; ++__first; while (++__first != __last) if (!__binary_pred(__dest, __first)) *++__dest = std::move(*__first); return ++__dest; } # 936 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline _ForwardIterator unique(_ForwardIterator __first, _ForwardIterator __last) { ; return std::__unique(__first, __last, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 967 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _BinaryPredicate> constexpr inline _ForwardIterator unique(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { ; return std::__unique(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } template<typename _ForwardIterator, typename _OutputIterator, typename _BinaryPredicate> constexpr _OutputIterator __unique_copy(_ForwardIterator __first, _ForwardIterator __last, _OutputIterator __result, _BinaryPredicate __binary_pred, forward_iterator_tag, output_iterator_tag) { _ForwardIterator __next = __first; *__result = *__first; while (++__next != __last) if (!__binary_pred(__first, __next)) { __first = __next; *++__result = *__first; } return ++__result; } template<typename _InputIterator, typename _OutputIterator, typename _BinaryPredicate> constexpr _OutputIterator __unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __binary_pred, input_iterator_tag, output_iterator_tag) { typename iterator_traits<_InputIterator>::value_type __value = *__first; __decltype(__gnu_cxx::__ops::__iter_comp_val(__binary_pred)) __rebound_pred = __gnu_cxx::__ops::__iter_comp_val(__binary_pred); *__result = __value; while (++__first != __last) if (!__rebound_pred(__first, __value)) { __value = *__first; *++__result = __value; } return ++__result; } template<typename _InputIterator, typename _ForwardIterator, typename _BinaryPredicate> constexpr _ForwardIterator __unique_copy(_InputIterator __first, _InputIterator __last, _ForwardIterator __result, _BinaryPredicate __binary_pred, input_iterator_tag, forward_iterator_tag) { *__result = *__first; while (++__first != __last) if (!__binary_pred(__result, __first)) *++__result = *__first; return ++__result; } template<typename _BidirectionalIterator> constexpr void __reverse(_BidirectionalIterator __first, _BidirectionalIterator __last, bidirectional_iterator_tag) { while (true) if (__first == __last || __first == --__last) return; else { std::iter_swap(__first, __last); ++__first; } } template<typename _RandomAccessIterator> constexpr void __reverse(_RandomAccessIterator __first, _RandomAccessIterator __last, random_access_iterator_tag) { if (__first == __last) return; --__last; while (__first < __last) { std::iter_swap(__first, __last); ++__first; --__last; } } # 1128 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator> constexpr inline void reverse(_BidirectionalIterator __first, _BidirectionalIterator __last) { ; std::__reverse(__first, __last, std::__iterator_category(__first)); } # 1156 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator, typename _OutputIterator> constexpr _OutputIterator reverse_copy(_BidirectionalIterator __first, _BidirectionalIterator __last, _OutputIterator __result) { ; while (__first != __last) { --__last; *__result = *__last; ++__result; } return __result; } template<typename _EuclideanRingElement> constexpr _EuclideanRingElement __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n) { while (__n != 0) { _EuclideanRingElement __t = __m % __n; __m = __n; __n = __t; } return __m; } inline namespace _V2 { template<typename _ForwardIterator> constexpr _ForwardIterator __rotate(_ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last, forward_iterator_tag) { if (__first == __middle) return __last; else if (__last == __middle) return __first; _ForwardIterator __first2 = __middle; do { std::iter_swap(__first, __first2); ++__first; ++__first2; if (__first == __middle) __middle = __first2; } while (__first2 != __last); _ForwardIterator __ret = __first; __first2 = __middle; while (__first2 != __last) { std::iter_swap(__first, __first2); ++__first; ++__first2; if (__first == __middle) __middle = __first2; else if (__first2 == __last) __first2 = __middle; } return __ret; } template<typename _BidirectionalIterator> constexpr _BidirectionalIterator __rotate(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, bidirectional_iterator_tag) { if (__first == __middle) return __last; else if (__last == __middle) return __first; std::__reverse(__first, __middle, bidirectional_iterator_tag()); std::__reverse(__middle, __last, bidirectional_iterator_tag()); while (__first != __middle && __middle != __last) { std::iter_swap(__first, --__last); ++__first; } if (__first == __middle) { std::__reverse(__middle, __last, bidirectional_iterator_tag()); return __last; } else { std::__reverse(__first, __middle, bidirectional_iterator_tag()); return __first; } } template<typename _RandomAccessIterator> constexpr _RandomAccessIterator __rotate(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, random_access_iterator_tag) { if (__first == __middle) return __last; else if (__last == __middle) return __first; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _Distance; typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; _Distance __n = __last - __first; _Distance __k = __middle - __first; if (__k == __n - __k) { std::swap_ranges(__first, __middle, __middle); return __middle; } _RandomAccessIterator __p = __first; _RandomAccessIterator __ret = __first + (__last - __middle); for (;;) { if (__k < __n - __k) { if (__is_pod(_ValueType) && __k == 1) { _ValueType __t = std::move(*__p); std::move(__p + 1, __p + __n, __p); *(__p + __n - 1) = std::move(__t); return __ret; } _RandomAccessIterator __q = __p + __k; for (_Distance __i = 0; __i < __n - __k; ++ __i) { std::iter_swap(__p, __q); ++__p; ++__q; } __n %= __k; if (__n == 0) return __ret; std::swap(__n, __k); __k = __n - __k; } else { __k = __n - __k; if (__is_pod(_ValueType) && __k == 1) { _ValueType __t = std::move(*(__p + __n - 1)); std::move_backward(__p, __p + __n - 1, __p + __n); *__p = std::move(__t); return __ret; } _RandomAccessIterator __q = __p + __n; __p = __q - __k; for (_Distance __i = 0; __i < __n - __k; ++ __i) { --__p; --__q; std::iter_swap(__p, __q); } __n %= __k; if (__n == 0) return __ret; std::swap(__n, __k); } } } # 1387 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline _ForwardIterator rotate(_ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last) { ; ; return std::__rotate(__first, __middle, __last, std::__iterator_category(__first)); } } # 1425 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _OutputIterator> constexpr inline _OutputIterator rotate_copy(_ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last, _OutputIterator __result) { ; ; return std::copy(__first, __middle, std::copy(__middle, __last, __result)); } template<typename _ForwardIterator, typename _Predicate> constexpr _ForwardIterator __partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, forward_iterator_tag) { if (__first == __last) return __first; while (__pred(*__first)) if (++__first == __last) return __first; _ForwardIterator __next = __first; while (++__next != __last) if (__pred(*__next)) { std::iter_swap(__first, __next); ++__first; } return __first; } template<typename _BidirectionalIterator, typename _Predicate> constexpr _BidirectionalIterator __partition(_BidirectionalIterator __first, _BidirectionalIterator __last, _Predicate __pred, bidirectional_iterator_tag) { while (true) { while (true) if (__first == __last) return __first; else if (__pred(*__first)) ++__first; else break; --__last; while (true) if (__first == __last) return __first; else if (!bool(__pred(*__last))) --__last; else break; std::iter_swap(__first, __last); ++__first; } } # 1506 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Pointer, typename _Predicate, typename _Distance> _ForwardIterator __stable_partition_adaptive(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, _Distance __len, _Pointer __buffer, _Distance __buffer_size) { if (__len == 1) return __first; if (__len <= __buffer_size) { _ForwardIterator __result1 = __first; _Pointer __result2 = __buffer; *__result2 = std::move(*__first); ++__result2; ++__first; for (; __first != __last; ++__first) if (__pred(__first)) { *__result1 = std::move(*__first); ++__result1; } else { *__result2 = std::move(*__first); ++__result2; } std::move(__buffer, __result2, __result1); return __result1; } _ForwardIterator __middle = __first; std::advance(__middle, __len / 2); _ForwardIterator __left_split = std::__stable_partition_adaptive(__first, __middle, __pred, __len / 2, __buffer, __buffer_size); _Distance __right_len = __len - __len / 2; _ForwardIterator __right_split = std::__find_if_not_n(__middle, __right_len, __pred); if (__right_len) __right_split = std::__stable_partition_adaptive(__right_split, __last, __pred, __right_len, __buffer, __buffer_size); return std::rotate(__left_split, __middle, __right_split); } template<typename _ForwardIterator, typename _Predicate> _ForwardIterator __stable_partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { __first = std::__find_if_not(__first, __last, __pred); if (__first == __last) return __first; typedef typename iterator_traits<_ForwardIterator>::value_type _ValueType; typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _Temporary_buffer<_ForwardIterator, _ValueType> __buf(__first, std::distance(__first, __last)); return std::__stable_partition_adaptive(__first, __last, __pred, _DistanceType(__buf.requested_size()), __buf.begin(), _DistanceType(__buf.size())); } # 1608 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Predicate> inline _ForwardIterator stable_partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; return std::__stable_partition(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } template<typename _RandomAccessIterator, typename _Compare> constexpr void __heap_select(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { std::__make_heap(__first, __middle, __comp); for (_RandomAccessIterator __i = __middle; __i < __last; ++__i) if (__comp(__i, __first)) std::__pop_heap(__first, __middle, __i, __comp); } template<typename _InputIterator, typename _RandomAccessIterator, typename _Compare> constexpr _RandomAccessIterator __partial_sort_copy(_InputIterator __first, _InputIterator __last, _RandomAccessIterator __result_first, _RandomAccessIterator __result_last, _Compare __comp) { typedef typename iterator_traits<_InputIterator>::value_type _InputValueType; typedef iterator_traits<_RandomAccessIterator> _RItTraits; typedef typename _RItTraits::difference_type _DistanceType; if (__result_first == __result_last) return __result_last; _RandomAccessIterator __result_real_last = __result_first; while (__first != __last && __result_real_last != __result_last) { *__result_real_last = *__first; ++__result_real_last; ++__first; } std::__make_heap(__result_first, __result_real_last, __comp); while (__first != __last) { if (__comp(__first, __result_first)) std::__adjust_heap(__result_first, _DistanceType(0), _DistanceType(__result_real_last - __result_first), _InputValueType(*__first), __comp); ++__first; } std::__sort_heap(__result_first, __result_real_last, __comp); return __result_real_last; } # 1701 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _RandomAccessIterator> constexpr inline _RandomAccessIterator partial_sort_copy(_InputIterator __first, _InputIterator __last, _RandomAccessIterator __result_first, _RandomAccessIterator __result_last) { # 1716 "/usr/include/c++/13/bits/stl_algo.h" 3 ; ; ; return std::__partial_sort_copy(__first, __last, __result_first, __result_last, __gnu_cxx::__ops::__iter_less_iter()); } # 1751 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _RandomAccessIterator, typename _Compare> constexpr inline _RandomAccessIterator partial_sort_copy(_InputIterator __first, _InputIterator __last, _RandomAccessIterator __result_first, _RandomAccessIterator __result_last, _Compare __comp) { # 1768 "/usr/include/c++/13/bits/stl_algo.h" 3 ; ; ; return std::__partial_sort_copy(__first, __last, __result_first, __result_last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _RandomAccessIterator, typename _Compare> constexpr void __unguarded_linear_insert(_RandomAccessIterator __last, _Compare __comp) { typename iterator_traits<_RandomAccessIterator>::value_type __val = std::move(*__last); _RandomAccessIterator __next = __last; --__next; while (__comp(__val, __next)) { *__last = std::move(*__next); __last = __next; --__next; } *__last = std::move(__val); } template<typename _RandomAccessIterator, typename _Compare> constexpr void __insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__first == __last) return; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) { if (__comp(__i, __first)) { typename iterator_traits<_RandomAccessIterator>::value_type __val = std::move(*__i); std::move_backward(__first, __i, __i + 1); *__first = std::move(__val); } else std::__unguarded_linear_insert(__i, __gnu_cxx::__ops::__val_comp_iter(__comp)); } } template<typename _RandomAccessIterator, typename _Compare> constexpr inline void __unguarded_insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { for (_RandomAccessIterator __i = __first; __i != __last; ++__i) std::__unguarded_linear_insert(__i, __gnu_cxx::__ops::__val_comp_iter(__comp)); } enum { _S_threshold = 16 }; template<typename _RandomAccessIterator, typename _Compare> constexpr void __final_insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__last - __first > int(_S_threshold)) { std::__insertion_sort(__first, __first + int(_S_threshold), __comp); std::__unguarded_insertion_sort(__first + int(_S_threshold), __last, __comp); } else std::__insertion_sort(__first, __last, __comp); } template<typename _RandomAccessIterator, typename _Compare> constexpr _RandomAccessIterator __unguarded_partition(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomAccessIterator __pivot, _Compare __comp) { while (true) { while (__comp(__first, __pivot)) ++__first; --__last; while (__comp(__pivot, __last)) --__last; if (!(__first < __last)) return __first; std::iter_swap(__first, __last); ++__first; } } template<typename _RandomAccessIterator, typename _Compare> constexpr inline _RandomAccessIterator __unguarded_partition_pivot(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { _RandomAccessIterator __mid = __first + (__last - __first) / 2; std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, __comp); return std::__unguarded_partition(__first + 1, __last, __first, __comp); } template<typename _RandomAccessIterator, typename _Compare> constexpr inline void __partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { std::__heap_select(__first, __middle, __last, __comp); std::__sort_heap(__first, __middle, __comp); } template<typename _RandomAccessIterator, typename _Size, typename _Compare> constexpr void __introsort_loop(_RandomAccessIterator __first, _RandomAccessIterator __last, _Size __depth_limit, _Compare __comp) { while (__last - __first > int(_S_threshold)) { if (__depth_limit == 0) { std::__partial_sort(__first, __last, __last, __comp); return; } --__depth_limit; _RandomAccessIterator __cut = std::__unguarded_partition_pivot(__first, __last, __comp); std::__introsort_loop(__cut, __last, __depth_limit, __comp); __last = __cut; } } template<typename _RandomAccessIterator, typename _Compare> constexpr inline void __sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__first != __last) { std::__introsort_loop(__first, __last, std::__lg(__last - __first) * 2, __comp); std::__final_insertion_sort(__first, __last, __comp); } } template<typename _RandomAccessIterator, typename _Size, typename _Compare> constexpr void __introselect(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last, _Size __depth_limit, _Compare __comp) { while (__last - __first > 3) { if (__depth_limit == 0) { std::__heap_select(__first, __nth + 1, __last, __comp); std::iter_swap(__first, __nth); return; } --__depth_limit; _RandomAccessIterator __cut = std::__unguarded_partition_pivot(__first, __last, __comp); if (__cut <= __nth) __first = __cut; else __last = __cut; } std::__insertion_sort(__first, __last, __comp); } # 2002 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp, typename _Compare> constexpr inline _ForwardIterator lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { ; return std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_comp_val(__comp)); } template<typename _ForwardIterator, typename _Tp, typename _Compare> constexpr _ForwardIterator __upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp(__val, __middle)) __len = __half; else { __first = __middle; ++__first; __len = __len - __half - 1; } } return __first; } # 2058 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr inline _ForwardIterator upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { ; return std::__upper_bound(__first, __last, __val, __gnu_cxx::__ops::__val_less_iter()); } # 2089 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp, typename _Compare> constexpr inline _ForwardIterator upper_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { ; return std::__upper_bound(__first, __last, __val, __gnu_cxx::__ops::__val_comp_iter(__comp)); } template<typename _ForwardIterator, typename _Tp, typename _CompareItTp, typename _CompareTpIt> constexpr pair<_ForwardIterator, _ForwardIterator> __equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _CompareItTp __comp_it_val, _CompareTpIt __comp_val_it) { typedef typename iterator_traits<_ForwardIterator>::difference_type _DistanceType; _DistanceType __len = std::distance(__first, __last); while (__len > 0) { _DistanceType __half = __len >> 1; _ForwardIterator __middle = __first; std::advance(__middle, __half); if (__comp_it_val(__middle, __val)) { __first = __middle; ++__first; __len = __len - __half - 1; } else if (__comp_val_it(__val, __middle)) __len = __half; else { _ForwardIterator __left = std::__lower_bound(__first, __middle, __val, __comp_it_val); std::advance(__first, __len); _ForwardIterator __right = std::__upper_bound(++__middle, __first, __val, __comp_val_it); return pair<_ForwardIterator, _ForwardIterator>(__left, __right); } } return pair<_ForwardIterator, _ForwardIterator>(__first, __first); } # 2162 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr inline pair<_ForwardIterator, _ForwardIterator> equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { ; ; return std::__equal_range(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val(), __gnu_cxx::__ops::__val_less_iter()); } # 2199 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp, typename _Compare> constexpr inline pair<_ForwardIterator, _ForwardIterator> equal_range(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { ; ; return std::__equal_range(__first, __last, __val, __gnu_cxx::__ops::__iter_comp_val(__comp), __gnu_cxx::__ops::__val_comp_iter(__comp)); } # 2233 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr bool binary_search(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val) { ; ; _ForwardIterator __i = std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_less_val()); return __i != __last && !(__val < *__i); } # 2267 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp, typename _Compare> constexpr bool binary_search(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { ; ; _ForwardIterator __i = std::__lower_bound(__first, __last, __val, __gnu_cxx::__ops::__iter_comp_val(__comp)); return __i != __last && !bool(__comp(__val, *__i)); } template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> void __move_merge_adaptive(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) { *__result = std::move(*__first2); ++__first2; } else { *__result = std::move(*__first1); ++__first1; } ++__result; } if (__first1 != __last1) std::move(__first1, __last1, __result); } template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, typename _BidirectionalIterator3, typename _Compare> void __move_merge_adaptive_backward(_BidirectionalIterator1 __first1, _BidirectionalIterator1 __last1, _BidirectionalIterator2 __first2, _BidirectionalIterator2 __last2, _BidirectionalIterator3 __result, _Compare __comp) { if (__first1 == __last1) { std::move_backward(__first2, __last2, __result); return; } else if (__first2 == __last2) return; --__last1; --__last2; while (true) { if (__comp(__last2, __last1)) { *--__result = std::move(*__last1); if (__first1 == __last1) { std::move_backward(__first2, ++__last2, __result); return; } --__last1; } else { *--__result = std::move(*__last2); if (__first2 == __last2) return; --__last2; } } } template<typename _BidirectionalIterator1, typename _BidirectionalIterator2, typename _Distance> _BidirectionalIterator1 __rotate_adaptive(_BidirectionalIterator1 __first, _BidirectionalIterator1 __middle, _BidirectionalIterator1 __last, _Distance __len1, _Distance __len2, _BidirectionalIterator2 __buffer, _Distance __buffer_size) { _BidirectionalIterator2 __buffer_end; if (__len1 > __len2 && __len2 <= __buffer_size) { if (__len2) { __buffer_end = std::move(__middle, __last, __buffer); std::move_backward(__first, __middle, __last); return std::move(__buffer, __buffer_end, __first); } else return __first; } else if (__len1 <= __buffer_size) { if (__len1) { __buffer_end = std::move(__first, __middle, __buffer); std::move(__middle, __last, __first); return std::move_backward(__buffer, __buffer_end, __last); } else return __last; } else return std::rotate(__first, __middle, __last); } template<typename _BidirectionalIterator, typename _Distance, typename _Pointer, typename _Compare> void __merge_adaptive(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Distance __len1, _Distance __len2, _Pointer __buffer, _Compare __comp) { if (__len1 <= __len2) { _Pointer __buffer_end = std::move(__first, __middle, __buffer); std::__move_merge_adaptive(__buffer, __buffer_end, __middle, __last, __first, __comp); } else { _Pointer __buffer_end = std::move(__middle, __last, __buffer); std::__move_merge_adaptive_backward(__first, __middle, __buffer, __buffer_end, __last, __comp); } } template<typename _BidirectionalIterator, typename _Distance, typename _Pointer, typename _Compare> void __merge_adaptive_resize(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Distance __len1, _Distance __len2, _Pointer __buffer, _Distance __buffer_size, _Compare __comp) { if (__len1 <= __buffer_size || __len2 <= __buffer_size) std::__merge_adaptive(__first, __middle, __last, __len1, __len2, __buffer, __comp); else { _BidirectionalIterator __first_cut = __first; _BidirectionalIterator __second_cut = __middle; _Distance __len11 = 0; _Distance __len22 = 0; if (__len1 > __len2) { __len11 = __len1 / 2; std::advance(__first_cut, __len11); __second_cut = std::__lower_bound(__middle, __last, *__first_cut, __gnu_cxx::__ops::__iter_comp_val(__comp)); __len22 = std::distance(__middle, __second_cut); } else { __len22 = __len2 / 2; std::advance(__second_cut, __len22); __first_cut = std::__upper_bound(__first, __middle, *__second_cut, __gnu_cxx::__ops::__val_comp_iter(__comp)); __len11 = std::distance(__first, __first_cut); } _BidirectionalIterator __new_middle = std::__rotate_adaptive(__first_cut, __middle, __second_cut, _Distance(__len1 - __len11), __len22, __buffer, __buffer_size); std::__merge_adaptive_resize(__first, __first_cut, __new_middle, __len11, __len22, __buffer, __buffer_size, __comp); std::__merge_adaptive_resize(__new_middle, __second_cut, __last, _Distance(__len1 - __len11), _Distance(__len2 - __len22), __buffer, __buffer_size, __comp); } } template<typename _BidirectionalIterator, typename _Distance, typename _Compare> void __merge_without_buffer(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Distance __len1, _Distance __len2, _Compare __comp) { if (__len1 == 0 || __len2 == 0) return; if (__len1 + __len2 == 2) { if (__comp(__middle, __first)) std::iter_swap(__first, __middle); return; } _BidirectionalIterator __first_cut = __first; _BidirectionalIterator __second_cut = __middle; _Distance __len11 = 0; _Distance __len22 = 0; if (__len1 > __len2) { __len11 = __len1 / 2; std::advance(__first_cut, __len11); __second_cut = std::__lower_bound(__middle, __last, *__first_cut, __gnu_cxx::__ops::__iter_comp_val(__comp)); __len22 = std::distance(__middle, __second_cut); } else { __len22 = __len2 / 2; std::advance(__second_cut, __len22); __first_cut = std::__upper_bound(__first, __middle, *__second_cut, __gnu_cxx::__ops::__val_comp_iter(__comp)); __len11 = std::distance(__first, __first_cut); } _BidirectionalIterator __new_middle = std::rotate(__first_cut, __middle, __second_cut); std::__merge_without_buffer(__first, __first_cut, __new_middle, __len11, __len22, __comp); std::__merge_without_buffer(__new_middle, __second_cut, __last, __len1 - __len11, __len2 - __len22, __comp); } template<typename _BidirectionalIterator, typename _Compare> void __inplace_merge(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Compare __comp) { typedef typename iterator_traits<_BidirectionalIterator>::value_type _ValueType; typedef typename iterator_traits<_BidirectionalIterator>::difference_type _DistanceType; if (__first == __middle || __middle == __last) return; const _DistanceType __len1 = std::distance(__first, __middle); const _DistanceType __len2 = std::distance(__middle, __last); typedef _Temporary_buffer<_BidirectionalIterator, _ValueType> _TmpBuf; _TmpBuf __buf(__first, std::min(__len1, __len2)); if (__builtin_expect(__buf.size() == __buf.requested_size(), true)) std::__merge_adaptive (__first, __middle, __last, __len1, __len2, __buf.begin(), __comp); else if (__builtin_expect(__buf.begin() == 0, false)) std::__merge_without_buffer (__first, __middle, __last, __len1, __len2, __comp); else std::__merge_adaptive_resize (__first, __middle, __last, __len1, __len2, __buf.begin(), _DistanceType(__buf.size()), __comp); } # 2582 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator> inline void inplace_merge(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last) { ; ; ; std::__inplace_merge(__first, __middle, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 2623 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator, typename _Compare> inline void inplace_merge(_BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Compare __comp) { ; ; ; std::__inplace_merge(__first, __middle, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator, typename _OutputIterator, typename _Compare> _OutputIterator __move_merge(_InputIterator __first1, _InputIterator __last1, _InputIterator __first2, _InputIterator __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) { *__result = std::move(*__first2); ++__first2; } else { *__result = std::move(*__first1); ++__first1; } ++__result; } return std::move(__first2, __last2, std::move(__first1, __last1, __result)) ; } template<typename _RandomAccessIterator1, typename _RandomAccessIterator2, typename _Distance, typename _Compare> void __merge_sort_loop(_RandomAccessIterator1 __first, _RandomAccessIterator1 __last, _RandomAccessIterator2 __result, _Distance __step_size, _Compare __comp) { const _Distance __two_step = 2 * __step_size; while (__last - __first >= __two_step) { __result = std::__move_merge(__first, __first + __step_size, __first + __step_size, __first + __two_step, __result, __comp); __first += __two_step; } __step_size = std::min(_Distance(__last - __first), __step_size); std::__move_merge(__first, __first + __step_size, __first + __step_size, __last, __result, __comp); } template<typename _RandomAccessIterator, typename _Distance, typename _Compare> constexpr void __chunk_insertion_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Distance __chunk_size, _Compare __comp) { while (__last - __first >= __chunk_size) { std::__insertion_sort(__first, __first + __chunk_size, __comp); __first += __chunk_size; } std::__insertion_sort(__first, __last, __comp); } enum { _S_chunk_size = 7 }; template<typename _RandomAccessIterator, typename _Pointer, typename _Compare> void __merge_sort_with_buffer(_RandomAccessIterator __first, _RandomAccessIterator __last, _Pointer __buffer, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::difference_type _Distance; const _Distance __len = __last - __first; const _Pointer __buffer_last = __buffer + __len; _Distance __step_size = _S_chunk_size; std::__chunk_insertion_sort(__first, __last, __step_size, __comp); while (__step_size < __len) { std::__merge_sort_loop(__first, __last, __buffer, __step_size, __comp); __step_size *= 2; std::__merge_sort_loop(__buffer, __buffer_last, __first, __step_size, __comp); __step_size *= 2; } } template<typename _RandomAccessIterator, typename _Pointer, typename _Compare> void __stable_sort_adaptive(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Pointer __buffer, _Compare __comp) { std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); std::__merge_adaptive(__first, __middle, __last, __middle - __first, __last - __middle, __buffer, __comp); } template<typename _RandomAccessIterator, typename _Pointer, typename _Distance, typename _Compare> void __stable_sort_adaptive_resize(_RandomAccessIterator __first, _RandomAccessIterator __last, _Pointer __buffer, _Distance __buffer_size, _Compare __comp) { const _Distance __len = (__last - __first + 1) / 2; const _RandomAccessIterator __middle = __first + __len; if (__len > __buffer_size) { std::__stable_sort_adaptive_resize(__first, __middle, __buffer, __buffer_size, __comp); std::__stable_sort_adaptive_resize(__middle, __last, __buffer, __buffer_size, __comp); std::__merge_adaptive_resize(__first, __middle, __last, _Distance(__middle - __first), _Distance(__last - __middle), __buffer, __buffer_size, __comp); } else std::__stable_sort_adaptive(__first, __middle, __last, __buffer, __comp); } template<typename _RandomAccessIterator, typename _Compare> void __inplace_stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { if (__last - __first < 15) { std::__insertion_sort(__first, __last, __comp); return; } _RandomAccessIterator __middle = __first + (__last - __first) / 2; std::__inplace_stable_sort(__first, __middle, __comp); std::__inplace_stable_sort(__middle, __last, __comp); std::__merge_without_buffer(__first, __middle, __last, __middle - __first, __last - __middle, __comp); } # 2809 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _Compare> constexpr bool __includes(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) return false; if (!__comp(__first1, __first2)) ++__first2; ++__first1; } return __first2 == __last2; } # 2847 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2> constexpr inline bool includes(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2) { ; ; ; ; return std::__includes(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_less_iter()); } # 2892 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _Compare> constexpr inline bool includes(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _Compare __comp) { ; ; ; ; return std::__includes(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 2928 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator, typename _Compare> constexpr bool __next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { if (__first == __last) return false; _BidirectionalIterator __i = __first; ++__i; if (__i == __last) return false; __i = __last; --__i; for(;;) { _BidirectionalIterator __ii = __i; --__i; if (__comp(__i, __ii)) { _BidirectionalIterator __j = __last; while (!__comp(__i, --__j)) {} std::iter_swap(__i, __j); std::__reverse(__ii, __last, std::__iterator_category(__first)); return true; } if (__i == __first) { std::__reverse(__first, __last, std::__iterator_category(__first)); return false; } } } # 2978 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator> constexpr inline bool next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last) { ; ; return std::__next_permutation (__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 3011 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator, typename _Compare> constexpr inline bool next_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { ; ; return std::__next_permutation (__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _BidirectionalIterator, typename _Compare> constexpr bool __prev_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { if (__first == __last) return false; _BidirectionalIterator __i = __first; ++__i; if (__i == __last) return false; __i = __last; --__i; for(;;) { _BidirectionalIterator __ii = __i; --__i; if (__comp(__ii, __i)) { _BidirectionalIterator __j = __last; while (!__comp(--__j, __i)) {} std::iter_swap(__i, __j); std::__reverse(__ii, __last, std::__iterator_category(__first)); return true; } if (__i == __first) { std::__reverse(__first, __last, std::__iterator_category(__first)); return false; } } } # 3081 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator> constexpr inline bool prev_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last) { ; ; return std::__prev_permutation(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 3114 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _BidirectionalIterator, typename _Compare> constexpr inline bool prev_permutation(_BidirectionalIterator __first, _BidirectionalIterator __last, _Compare __comp) { ; ; return std::__prev_permutation(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator, typename _OutputIterator, typename _Predicate, typename _Tp> constexpr _OutputIterator __replace_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred, const _Tp& __new_value) { for (; __first != __last; ++__first, (void)++__result) if (__pred(__first)) *__result = __new_value; else *__result = *__first; return __result; } # 3166 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _Tp> constexpr inline _OutputIterator replace_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, const _Tp& __old_value, const _Tp& __new_value) { ; return std::__replace_copy_if(__first, __last, __result, __gnu_cxx::__ops::__iter_equals_val(__old_value), __new_value); } # 3201 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _Predicate, typename _Tp> constexpr inline _OutputIterator replace_copy_if(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _Predicate __pred, const _Tp& __new_value) { ; return std::__replace_copy_if(__first, __last, __result, __gnu_cxx::__ops::__pred_iter(__pred), __new_value); } # 3230 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline bool is_sorted(_ForwardIterator __first, _ForwardIterator __last) { return std::is_sorted_until(__first, __last) == __last; } # 3245 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Compare> constexpr inline bool is_sorted(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { return std::is_sorted_until(__first, __last, __comp) == __last; } template<typename _ForwardIterator, typename _Compare> constexpr _ForwardIterator __is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { if (__first == __last) return __last; _ForwardIterator __next = __first; for (++__next; __next != __last; __first = __next, (void)++__next) if (__comp(__next, __first)) return __next; return __next; } # 3276 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline _ForwardIterator is_sorted_until(_ForwardIterator __first, _ForwardIterator __last) { ; ; return std::__is_sorted_until(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 3301 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Compare> constexpr inline _ForwardIterator is_sorted_until(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { ; ; return std::__is_sorted_until(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 3327 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _Tp> constexpr inline pair<const _Tp&, const _Tp&> minmax(const _Tp& __a, const _Tp& __b) { return __b < __a ? pair<const _Tp&, const _Tp&>(__b, __a) : pair<const _Tp&, const _Tp&>(__a, __b); } # 3348 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _Tp, typename _Compare> constexpr inline pair<const _Tp&, const _Tp&> minmax(const _Tp& __a, const _Tp& __b, _Compare __comp) { return __comp(__b, __a) ? pair<const _Tp&, const _Tp&>(__b, __a) : pair<const _Tp&, const _Tp&>(__a, __b); } template<typename _ForwardIterator, typename _Compare> constexpr pair<_ForwardIterator, _ForwardIterator> __minmax_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { _ForwardIterator __next = __first; if (__first == __last || ++__next == __last) return std::make_pair(__first, __first); _ForwardIterator __min{}, __max{}; if (__comp(__next, __first)) { __min = __next; __max = __first; } else { __min = __first; __max = __next; } __first = __next; ++__first; while (__first != __last) { __next = __first; if (++__next == __last) { if (__comp(__first, __min)) __min = __first; else if (!__comp(__first, __max)) __max = __first; break; } if (__comp(__next, __first)) { if (__comp(__next, __min)) __min = __next; if (!__comp(__first, __max)) __max = __first; } else { if (__comp(__first, __min)) __min = __first; if (!__comp(__next, __max)) __max = __next; } __first = __next; ++__first; } return std::make_pair(__min, __max); } # 3428 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline pair<_ForwardIterator, _ForwardIterator> minmax_element(_ForwardIterator __first, _ForwardIterator __last) { ; ; return std::__minmax_element(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 3456 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Compare> constexpr inline pair<_ForwardIterator, _ForwardIterator> minmax_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { ; ; return std::__minmax_element(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _Tp> constexpr inline pair<_Tp, _Tp> minmax(initializer_list<_Tp> __l) { ; pair<const _Tp*, const _Tp*> __p = std::__minmax_element(__l.begin(), __l.end(), __gnu_cxx::__ops::__iter_less_iter()); return std::make_pair(*__p.first, *__p.second); } template<typename _Tp, typename _Compare> constexpr inline pair<_Tp, _Tp> minmax(initializer_list<_Tp> __l, _Compare __comp) { ; pair<const _Tp*, const _Tp*> __p = std::__minmax_element(__l.begin(), __l.end(), __gnu_cxx::__ops::__iter_comp_iter(__comp)); return std::make_pair(*__p.first, *__p.second); } # 3512 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr inline bool is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _BinaryPredicate __pred) { ; return std::__is_permutation(__first1, __last1, __first2, __gnu_cxx::__ops::__iter_comp_iter(__pred)); } template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr bool __is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred) { using _Cat1 = typename iterator_traits<_ForwardIterator1>::iterator_category; using _Cat2 = typename iterator_traits<_ForwardIterator2>::iterator_category; using _It1_is_RA = is_same<_Cat1, random_access_iterator_tag>; using _It2_is_RA = is_same<_Cat2, random_access_iterator_tag>; constexpr bool __ra_iters = _It1_is_RA() && _It2_is_RA(); if (__ra_iters) { auto __d1 = std::distance(__first1, __last1); auto __d2 = std::distance(__first2, __last2); if (__d1 != __d2) return false; } for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!__pred(__first1, __first2)) break; if (__ra_iters) { if (__first1 == __last1) return true; } else { auto __d1 = std::distance(__first1, __last1); auto __d2 = std::distance(__first2, __last2); if (__d1 == 0 && __d2 == 0) return true; if (__d1 != __d2) return false; } for (_ForwardIterator1 __scan = __first1; __scan != __last1; ++__scan) { if (__scan != std::__find_if(__first1, __scan, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan))) continue; auto __matches = std::__count_if(__first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)); if (0 == __matches || std::__count_if(__scan, __last1, __gnu_cxx::__ops::__iter_comp_iter(__pred, __scan)) != __matches) return false; } return true; } # 3607 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2> constexpr inline bool is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) { ; ; return std::__is_permutation(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 3635 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr inline bool is_permutation(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred) { ; ; return std::__is_permutation(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__pred)); } # 3665 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _Tp> constexpr const _Tp& clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi) { do { if (std::__is_constant_evaluated() && !bool(!(__hi < __lo))) __builtin_unreachable(); } while (false); return std::min(std::max(__val, __lo), __hi); } # 3685 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _Tp, typename _Compare> constexpr const _Tp& clamp(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Compare __comp) { do { if (std::__is_constant_evaluated() && !bool(!__comp(__hi, __lo))) __builtin_unreachable(); } while (false); return std::min(std::max(__val, __lo, __comp), __hi, __comp); } # 3717 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _IntType, typename _UniformRandomBitGenerator> pair<_IntType, _IntType> __gen_two_uniform_ints(_IntType __b0, _IntType __b1, _UniformRandomBitGenerator&& __g) { _IntType __x = uniform_int_distribution<_IntType>{0, (__b0 * __b1) - 1}(__g); return std::make_pair(__x / __b1, __x % __b1); } # 3739 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator, typename _UniformRandomNumberGenerator> void shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, _UniformRandomNumberGenerator&& __g) { ; if (__first == __last) return; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; typedef typename std::make_unsigned<_DistanceType>::type __ud_type; typedef typename std::uniform_int_distribution<__ud_type> __distr_type; typedef typename __distr_type::param_type __p_type; typedef typename remove_reference<_UniformRandomNumberGenerator>::type _Gen; typedef typename common_type<typename _Gen::result_type, __ud_type>::type __uc_type; const __uc_type __urngrange = __g.max() - __g.min(); const __uc_type __urange = __uc_type(__last - __first); if (__urngrange / __urange >= __urange) { _RandomAccessIterator __i = __first + 1; if ((__urange % 2) == 0) { __distr_type __d{0, 1}; std::iter_swap(__i++, __first + __d(__g)); } while (__i != __last) { const __uc_type __swap_range = __uc_type(__i - __first) + 1; const pair<__uc_type, __uc_type> __pospos = __gen_two_uniform_ints(__swap_range, __swap_range + 1, __g); std::iter_swap(__i++, __first + __pospos.first); std::iter_swap(__i++, __first + __pospos.second); } return; } __distr_type __d; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) std::iter_swap(__i, __first + __d(__g, __p_type(0, __i - __first))); } # 3824 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Function> constexpr _Function for_each(_InputIterator __first, _InputIterator __last, _Function __f) { ; for (; __first != __last; ++__first) __f(*__first); return __f; } # 3850 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Size, typename _Function> constexpr _InputIterator for_each_n(_InputIterator __first, _Size __n, _Function __f) { auto __n2 = std::__size_to_integer(__n); using _Cat = typename iterator_traits<_InputIterator>::iterator_category; if constexpr (is_base_of_v<random_access_iterator_tag, _Cat>) { if (__n2 <= 0) return __first; auto __last = __first + __n2; std::for_each(__first, __last, std::move(__f)); return __last; } else { while (__n2-->0) { __f(*__first); ++__first; } return __first; } } # 3886 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Tp> constexpr inline _InputIterator find(_InputIterator __first, _InputIterator __last, const _Tp& __val) { ; return std::__find_if(__first, __last, __gnu_cxx::__ops::__iter_equals_val(__val)); } # 3911 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline _InputIterator find_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { ; return std::__find_if(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } # 3943 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _ForwardIterator> constexpr _InputIterator find_first_of(_InputIterator __first1, _InputIterator __last1, _ForwardIterator __first2, _ForwardIterator __last2) { ; ; for (; __first1 != __last1; ++__first1) for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) if (*__first1 == *__iter) return __first1; return __last1; } # 3984 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _ForwardIterator, typename _BinaryPredicate> constexpr _InputIterator find_first_of(_InputIterator __first1, _InputIterator __last1, _ForwardIterator __first2, _ForwardIterator __last2, _BinaryPredicate __comp) { ; ; for (; __first1 != __last1; ++__first1) for (_ForwardIterator __iter = __first2; __iter != __last2; ++__iter) if (__comp(*__first1, *__iter)) return __first1; return __last1; } # 4017 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline _ForwardIterator adjacent_find(_ForwardIterator __first, _ForwardIterator __last) { ; return std::__adjacent_find(__first, __last, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 4043 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _BinaryPredicate> constexpr inline _ForwardIterator adjacent_find(_ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __binary_pred) { ; return std::__adjacent_find(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred)); } # 4069 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Tp> constexpr inline typename iterator_traits<_InputIterator>::difference_type count(_InputIterator __first, _InputIterator __last, const _Tp& __value) { ; return std::__count_if(__first, __last, __gnu_cxx::__ops::__iter_equals_val(__value)); } # 4093 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _Predicate> constexpr inline typename iterator_traits<_InputIterator>::difference_type count_if(_InputIterator __first, _InputIterator __last, _Predicate __pred) { ; return std::__count_if(__first, __last, __gnu_cxx::__ops::__pred_iter(__pred)); } # 4134 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2> constexpr inline _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2) { ; ; return std::__search(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_equal_to_iter()); } # 4174 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator1, typename _ForwardIterator2, typename _BinaryPredicate> constexpr inline _ForwardIterator1 search(_ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __predicate) { ; ; return std::__search(__first1, __last1, __first2, __last2, __gnu_cxx::__ops::__iter_comp_iter(__predicate)); } # 4210 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Integer, typename _Tp> constexpr inline _ForwardIterator search_n(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, const _Tp& __val) { ; return std::__search_n(__first, __last, __count, __gnu_cxx::__ops::__iter_equals_val(__val)); } # 4244 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Integer, typename _Tp, typename _BinaryPredicate> constexpr inline _ForwardIterator search_n(_ForwardIterator __first, _ForwardIterator __last, _Integer __count, const _Tp& __val, _BinaryPredicate __binary_pred) { ; return std::__search_n(__first, __last, __count, __gnu_cxx::__ops::__iter_comp_val(__binary_pred, __val)); } # 4270 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Searcher> constexpr inline _ForwardIterator search(_ForwardIterator __first, _ForwardIterator __last, const _Searcher& __searcher) { return __searcher(__first, __last).first; } # 4294 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _UnaryOperation> constexpr _OutputIterator transform(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _UnaryOperation __unary_op) { ; for (; __first != __last; ++__first, (void)++__result) *__result = __unary_op(*__first); return __result; } # 4332 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _BinaryOperation> constexpr _OutputIterator transform(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _OutputIterator __result, _BinaryOperation __binary_op) { ; for (; __first1 != __last1; ++__first1, (void)++__first2, ++__result) *__result = __binary_op(*__first1, *__first2); return __result; } # 4366 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Tp> constexpr void replace(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, const _Tp& __new_value) { ; for (; __first != __last; ++__first) if (*__first == __old_value) *__first = __new_value; } # 4399 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Predicate, typename _Tp> constexpr void replace_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, const _Tp& __new_value) { ; for (; __first != __last; ++__first) if (__pred(*__first)) *__first = __new_value; } # 4431 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Generator> constexpr void generate(_ForwardIterator __first, _ForwardIterator __last, _Generator __gen) { ; for (; __first != __last; ++__first) *__first = __gen(); } # 4464 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _OutputIterator, typename _Size, typename _Generator> constexpr _OutputIterator generate_n(_OutputIterator __first, _Size __n, _Generator __gen) { typedef __decltype(std::__size_to_integer(__n)) _IntSize; for (_IntSize __niter = std::__size_to_integer(__n); __niter > 0; --__niter, (void) ++__first) *__first = __gen(); return __first; } # 4499 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator> constexpr inline _OutputIterator unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result) { ; if (__first == __last) return __result; return std::__unique_copy(__first, __last, __result, __gnu_cxx::__ops::__iter_equal_to_iter(), std::__iterator_category(__first), std::__iterator_category(__result)); } # 4539 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator, typename _OutputIterator, typename _BinaryPredicate> constexpr inline _OutputIterator unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __binary_pred) { ; if (__first == __last) return __result; return std::__unique_copy(__first, __last, __result, __gnu_cxx::__ops::__iter_comp_iter(__binary_pred), std::__iterator_category(__first), std::__iterator_category(__result)); } # 4578 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator> __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) inline void random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; if (__first != __last) for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) { _RandomAccessIterator __j = __first + std::rand() % ((__i - __first) + 1); if (__i != __j) std::iter_swap(__i, __j); } } # 4617 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator, typename _RandomNumberGenerator> __attribute__ ((__deprecated__ ("use '" "std::shuffle" "' instead"))) void random_shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, _RandomNumberGenerator&& __rand) { ; if (__first == __last) return; for (_RandomAccessIterator __i = __first + 1; __i != __last; ++__i) { _RandomAccessIterator __j = __first + __rand((__i - __first) + 1); if (__i != __j) std::iter_swap(__i, __j); } } # 4659 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Predicate> constexpr inline _ForwardIterator partition(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) { ; return std::__partition(__first, __last, __pred, std::__iterator_category(__first)); } # 4694 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator> constexpr inline void partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last) { ; ; ; std::__partial_sort(__first, __middle, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 4733 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp) { ; ; ; std::__partial_sort(__first, __middle, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 4770 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator> constexpr inline void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last) { ; ; ; if (__first == __last || __nth == __last) return; std::__introselect(__first, __nth, __last, std::__lg(__last - __first) * 2, __gnu_cxx::__ops::__iter_less_iter()); } # 4810 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void nth_element(_RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last, _Compare __comp) { ; ; ; if (__first == __last || __nth == __last) return; std::__introselect(__first, __nth, __last, std::__lg(__last - __first) * 2, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } # 4848 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator> constexpr inline void sort(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; std::__sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 4879 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator, typename _Compare> constexpr inline void sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; std::__sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr _OutputIterator __merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first2, __first1)) { *__result = *__first2; ++__first2; } else { *__result = *__first1; ++__first1; } ++__result; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)); } # 4942 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator> constexpr inline _OutputIterator merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; ; ; return std::__merge(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 4993 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr inline _OutputIterator merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; ; ; return std::__merge(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _RandomAccessIterator, typename _Compare> inline void __stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { typedef typename iterator_traits<_RandomAccessIterator>::value_type _ValueType; typedef typename iterator_traits<_RandomAccessIterator>::difference_type _DistanceType; if (__first == __last) return; typedef _Temporary_buffer<_RandomAccessIterator, _ValueType> _TmpBuf; _TmpBuf __buf(__first, (__last - __first + 1) / 2); if (__builtin_expect(__buf.requested_size() == __buf.size(), true)) std::__stable_sort_adaptive(__first, __first + _DistanceType(__buf.size()), __last, __buf.begin(), __comp); else if (__builtin_expect(__buf.begin() == 0, false)) std::__inplace_stable_sort(__first, __last, __comp); else std::__stable_sort_adaptive_resize(__first, __last, __buf.begin(), _DistanceType(__buf.size()), __comp); } # 5071 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator> inline void stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last) { ; ; std::__stable_sort(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 5105 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _RandomAccessIterator, typename _Compare> inline void stable_sort(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { ; ; std::__stable_sort(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr _OutputIterator __set_union(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) { if (__comp(__first1, __first2)) { *__result = *__first1; ++__first1; } else if (__comp(__first2, __first1)) { *__result = *__first2; ++__first2; } else { *__result = *__first1; ++__first1; ++__first2; } ++__result; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)); } # 5175 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator> constexpr inline _OutputIterator set_union(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; ; ; return std::__set_union(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5226 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr inline _OutputIterator set_union(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; ; ; return std::__set_union(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr _OutputIterator __set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first1, __first2)) ++__first1; else if (__comp(__first2, __first1)) ++__first2; else { *__result = *__first1; ++__first1; ++__first2; ++__result; } return __result; } # 5299 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator> constexpr inline _OutputIterator set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; ; ; return std::__set_intersection(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5349 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr inline _OutputIterator set_intersection(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; ; ; return std::__set_intersection(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr _OutputIterator __set_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first1, __first2)) { *__result = *__first1; ++__first1; ++__result; } else if (__comp(__first2, __first1)) ++__first2; else { ++__first1; ++__first2; } return std::copy(__first1, __last1, __result); } # 5424 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator> constexpr inline _OutputIterator set_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; ; ; return std::__set_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5476 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr inline _OutputIterator set_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; ; ; return std::__set_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr _OutputIterator __set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { while (__first1 != __last1 && __first2 != __last2) if (__comp(__first1, __first2)) { *__result = *__first1; ++__first1; ++__result; } else if (__comp(__first2, __first1)) { *__result = *__first2; ++__first2; ++__result; } else { ++__first1; ++__first2; } return std::copy(__first2, __last2, std::copy(__first1, __last1, __result)); } # 5557 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator> constexpr inline _OutputIterator set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result) { ; ; ; ; return std::__set_symmetric_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_less_iter()); } # 5609 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _InputIterator1, typename _InputIterator2, typename _OutputIterator, typename _Compare> constexpr inline _OutputIterator set_symmetric_difference(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result, _Compare __comp) { ; ; ; ; return std::__set_symmetric_difference(__first1, __last1, __first2, __last2, __result, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _ForwardIterator, typename _Compare> constexpr _ForwardIterator __min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { if (__first == __last) return __first; _ForwardIterator __result = __first; while (++__first != __last) if (__comp(__first, __result)) __result = __first; return __result; } # 5663 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr _ForwardIterator inline min_element(_ForwardIterator __first, _ForwardIterator __last) { ; ; return std::__min_element(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 5688 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Compare> constexpr inline _ForwardIterator min_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { ; ; return std::__min_element(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _ForwardIterator, typename _Compare> constexpr _ForwardIterator __max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { if (__first == __last) return __first; _ForwardIterator __result = __first; while (++__first != __last) if (__comp(__result, __first)) __result = __first; return __result; } # 5727 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator> constexpr inline _ForwardIterator max_element(_ForwardIterator __first, _ForwardIterator __last) { ; ; return std::__max_element(__first, __last, __gnu_cxx::__ops::__iter_less_iter()); } # 5752 "/usr/include/c++/13/bits/stl_algo.h" 3 template<typename _ForwardIterator, typename _Compare> constexpr inline _ForwardIterator max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) { ; ; return std::__max_element(__first, __last, __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _Tp> constexpr inline _Tp min(initializer_list<_Tp> __l) { ; return *std::__min_element(__l.begin(), __l.end(), __gnu_cxx::__ops::__iter_less_iter()); } template<typename _Tp, typename _Compare> constexpr inline _Tp min(initializer_list<_Tp> __l, _Compare __comp) { ; return *std::__min_element(__l.begin(), __l.end(), __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _Tp> constexpr inline _Tp max(initializer_list<_Tp> __l) { ; return *std::__max_element(__l.begin(), __l.end(), __gnu_cxx::__ops::__iter_less_iter()); } template<typename _Tp, typename _Compare> constexpr inline _Tp max(initializer_list<_Tp> __l, _Compare __comp) { ; return *std::__max_element(__l.begin(), __l.end(), __gnu_cxx::__ops::__iter_comp_iter(__comp)); } template<typename _InputIterator, typename _RandomAccessIterator, typename _Size, typename _UniformRandomBitGenerator> _RandomAccessIterator __sample(_InputIterator __first, _InputIterator __last, input_iterator_tag, _RandomAccessIterator __out, random_access_iterator_tag, _Size __n, _UniformRandomBitGenerator&& __g) { using __distrib_type = uniform_int_distribution<_Size>; using __param_type = typename __distrib_type::param_type; __distrib_type __d{}; _Size __sample_sz = 0; while (__first != __last && __sample_sz != __n) { __out[__sample_sz++] = *__first; ++__first; } for (auto __pop_sz = __sample_sz; __first != __last; ++__first, (void) ++__pop_sz) { const auto __k = __d(__g, __param_type{0, __pop_sz}); if (__k < __n) __out[__k] = *__first; } return __out + __sample_sz; } template<typename _ForwardIterator, typename _OutputIterator, typename _Cat, typename _Size, typename _UniformRandomBitGenerator> _OutputIterator __sample(_ForwardIterator __first, _ForwardIterator __last, forward_iterator_tag, _OutputIterator __out, _Cat, _Size __n, _UniformRandomBitGenerator&& __g) { using __distrib_type = uniform_int_distribution<_Size>; using __param_type = typename __distrib_type::param_type; using _USize = make_unsigned_t<_Size>; using _Gen = remove_reference_t<_UniformRandomBitGenerator>; using __uc_type = common_type_t<typename _Gen::result_type, _USize>; if (__first == __last) return __out; __distrib_type __d{}; _Size __unsampled_sz = std::distance(__first, __last); __n = std::min(__n, __unsampled_sz); const __uc_type __urngrange = __g.max() - __g.min(); if (__urngrange / __uc_type(__unsampled_sz) >= __uc_type(__unsampled_sz)) { while (__n != 0 && __unsampled_sz >= 2) { const pair<_Size, _Size> __p = __gen_two_uniform_ints(__unsampled_sz, __unsampled_sz - 1, __g); --__unsampled_sz; if (__p.first < __n) { *__out++ = *__first; --__n; } ++__first; if (__n == 0) break; --__unsampled_sz; if (__p.second < __n) { *__out++ = *__first; --__n; } ++__first; } } for (; __n != 0; ++__first) if (__d(__g, __param_type{0, --__unsampled_sz}) < __n) { *__out++ = *__first; --__n; } return __out; } template<typename _PopulationIterator, typename _SampleIterator, typename _Distance, typename _UniformRandomBitGenerator> _SampleIterator sample(_PopulationIterator __first, _PopulationIterator __last, _SampleIterator __out, _Distance __n, _UniformRandomBitGenerator&& __g) { using __pop_cat = typename std::iterator_traits<_PopulationIterator>::iterator_category; using __samp_cat = typename std::iterator_traits<_SampleIterator>::iterator_category; static_assert( __or_<is_convertible<__pop_cat, forward_iterator_tag>, is_convertible<__samp_cat, random_access_iterator_tag>>::value, "output range must use a RandomAccessIterator when input range" " does not meet the ForwardIterator requirements"); static_assert(is_integral<_Distance>::value, "sample size must be an integer type"); typename iterator_traits<_PopulationIterator>::difference_type __d = __n; return std:: __sample(__first, __last, __pop_cat{}, __out, __samp_cat{}, __d, std::forward<_UniformRandomBitGenerator>(__g)); } } # 68 "/usr/include/c++/13/functional" 2 3 # 79 "/usr/include/c++/13/functional" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<int _Num> struct _Placeholder { }; # 108 "/usr/include/c++/13/functional" 3 template<typename _Callable, typename... _Args> inline constexpr invoke_result_t<_Callable, _Args...> invoke(_Callable&& __fn, _Args&&... __args) noexcept(is_nothrow_invocable_v<_Callable, _Args...>) { return std::__invoke(std::forward<_Callable>(__fn), std::forward<_Args>(__args)...); } # 141 "/usr/include/c++/13/functional" 3 template<typename _MemFunPtr, bool __is_mem_fn = is_member_function_pointer<_MemFunPtr>::value> class _Mem_fn_base : public _Mem_fn_traits<_MemFunPtr>::__maybe_type { using _Traits = _Mem_fn_traits<_MemFunPtr>; using _Arity = typename _Traits::__arity; using _Varargs = typename _Traits::__vararg; template<typename _Func, typename... _BoundArgs> friend struct _Bind_check_arity; _MemFunPtr _M_pmf; public: using result_type = typename _Traits::__result_type; explicit constexpr _Mem_fn_base(_MemFunPtr __pmf) noexcept : _M_pmf(__pmf) { } template<typename... _Args> constexpr auto operator()(_Args&&... __args) const noexcept(noexcept( std::__invoke(_M_pmf, std::forward<_Args>(__args)...))) -> decltype(std::__invoke(_M_pmf, std::forward<_Args>(__args)...)) { return std::__invoke(_M_pmf, std::forward<_Args>(__args)...); } }; template<typename _MemObjPtr> class _Mem_fn_base<_MemObjPtr, false> { using _Arity = integral_constant<size_t, 0>; using _Varargs = false_type; template<typename _Func, typename... _BoundArgs> friend struct _Bind_check_arity; _MemObjPtr _M_pm; public: explicit constexpr _Mem_fn_base(_MemObjPtr __pm) noexcept : _M_pm(__pm) { } template<typename _Tp> constexpr auto operator()(_Tp&& __obj) const noexcept(noexcept(std::__invoke(_M_pm, std::forward<_Tp>(__obj)))) -> decltype(std::__invoke(_M_pm, std::forward<_Tp>(__obj))) { return std::__invoke(_M_pm, std::forward<_Tp>(__obj)); } }; template<typename _MemberPointer> struct _Mem_fn; template<typename _Res, typename _Class> struct _Mem_fn<_Res _Class::*> : _Mem_fn_base<_Res _Class::*> { using _Mem_fn_base<_Res _Class::*>::_Mem_fn_base; }; # 234 "/usr/include/c++/13/functional" 3 template<typename _Tp, typename _Class> constexpr inline _Mem_fn<_Tp _Class::*> mem_fn(_Tp _Class::* __pm) noexcept { return _Mem_fn<_Tp _Class::*>(__pm); } # 253 "/usr/include/c++/13/functional" 3 template<typename _Tp> struct is_bind_expression : public false_type { }; # 265 "/usr/include/c++/13/functional" 3 template<typename _Tp> struct is_placeholder : public integral_constant<int, 0> { }; template <typename _Tp> inline constexpr bool is_bind_expression_v = is_bind_expression<_Tp>::value; template <typename _Tp> inline constexpr int is_placeholder_v = is_placeholder<_Tp>::value; namespace placeholders { # 294 "/usr/include/c++/13/functional" 3 inline const _Placeholder<1> _1; inline const _Placeholder<2> _2; inline const _Placeholder<3> _3; inline const _Placeholder<4> _4; inline const _Placeholder<5> _5; inline const _Placeholder<6> _6; inline const _Placeholder<7> _7; inline const _Placeholder<8> _8; inline const _Placeholder<9> _9; inline const _Placeholder<10> _10; inline const _Placeholder<11> _11; inline const _Placeholder<12> _12; inline const _Placeholder<13> _13; inline const _Placeholder<14> _14; inline const _Placeholder<15> _15; inline const _Placeholder<16> _16; inline const _Placeholder<17> _17; inline const _Placeholder<18> _18; inline const _Placeholder<19> _19; inline const _Placeholder<20> _20; inline const _Placeholder<21> _21; inline const _Placeholder<22> _22; inline const _Placeholder<23> _23; inline const _Placeholder<24> _24; inline const _Placeholder<25> _25; inline const _Placeholder<26> _26; inline const _Placeholder<27> _27; inline const _Placeholder<28> _28; inline const _Placeholder<29> _29; } template<int _Num> struct is_placeholder<_Placeholder<_Num> > : public integral_constant<int, _Num> { }; template<int _Num> struct is_placeholder<const _Placeholder<_Num> > : public integral_constant<int, _Num> { }; template<std::size_t __i, typename _Tuple> using _Safe_tuple_element_t = typename enable_if<(__i < tuple_size<_Tuple>::value), tuple_element<__i, _Tuple>>::type::type; # 362 "/usr/include/c++/13/functional" 3 template<typename _Arg, bool _IsBindExp = is_bind_expression<_Arg>::value, bool _IsPlaceholder = (is_placeholder<_Arg>::value > 0)> class _Mu; template<typename _Tp> class _Mu<reference_wrapper<_Tp>, false, false> { public: template<typename _CVRef, typename _Tuple> constexpr _Tp& operator()(_CVRef& __arg, _Tuple&) const volatile { return __arg.get(); } }; template<typename _Arg> class _Mu<_Arg, true, false> { public: template<typename _CVArg, typename... _Args> constexpr auto operator()(_CVArg& __arg, tuple<_Args...>& __tuple) const volatile -> decltype(__arg(declval<_Args>()...)) { typedef typename _Build_index_tuple<sizeof...(_Args)>::__type _Indexes; return this->__call(__arg, __tuple, _Indexes()); } private: template<typename _CVArg, typename... _Args, std::size_t... _Indexes> constexpr auto __call(_CVArg& __arg, tuple<_Args...>& __tuple, const _Index_tuple<_Indexes...>&) const volatile -> decltype(__arg(declval<_Args>()...)) { return __arg(std::get<_Indexes>(std::move(__tuple))...); } }; template<typename _Arg> class _Mu<_Arg, false, true> { public: template<typename _Tuple> constexpr _Safe_tuple_element_t<(is_placeholder<_Arg>::value - 1), _Tuple>&& operator()(const volatile _Arg&, _Tuple& __tuple) const volatile { return ::std::get<(is_placeholder<_Arg>::value - 1)>(std::move(__tuple)); } }; template<typename _Arg> class _Mu<_Arg, false, false> { public: template<typename _CVArg, typename _Tuple> constexpr _CVArg&& operator()(_CVArg&& __arg, _Tuple&) const volatile { return std::forward<_CVArg>(__arg); } }; template<std::size_t _Ind, typename... _Tp> inline auto __volget(volatile tuple<_Tp...>& __tuple) -> __tuple_element_t<_Ind, tuple<_Tp...>> volatile& { return std::get<_Ind>(const_cast<tuple<_Tp...>&>(__tuple)); } template<std::size_t _Ind, typename... _Tp> inline auto __volget(const volatile tuple<_Tp...>& __tuple) -> __tuple_element_t<_Ind, tuple<_Tp...>> const volatile& { return std::get<_Ind>(const_cast<const tuple<_Tp...>&>(__tuple)); } # 487 "/usr/include/c++/13/functional" 3 template<typename _Signature> class _Bind; template<typename _Functor, typename... _Bound_args> class _Bind<_Functor(_Bound_args...)> : public _Weak_result_type<_Functor> { typedef typename _Build_index_tuple<sizeof...(_Bound_args)>::__type _Bound_indexes; _Functor _M_f; tuple<_Bound_args...> _M_bound_args; template<typename _Result, typename... _Args, std::size_t... _Indexes> constexpr _Result __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) { return std::__invoke(_M_f, _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... ); } template<typename _Result, typename... _Args, std::size_t... _Indexes> constexpr _Result __call_c(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const { return std::__invoke(_M_f, _Mu<_Bound_args>()(std::get<_Indexes>(_M_bound_args), __args)... ); } # 546 "/usr/include/c++/13/functional" 3 template<typename _BoundArg, typename _CallArgs> using _Mu_type = decltype( _Mu<typename remove_cv<_BoundArg>::type>()( std::declval<_BoundArg&>(), std::declval<_CallArgs&>()) ); template<typename _Fn, typename _CallArgs, typename... _BArgs> using _Res_type_impl = typename result_of< _Fn&(_Mu_type<_BArgs, _CallArgs>&&...) >::type; template<typename _CallArgs> using _Res_type = _Res_type_impl<_Functor, _CallArgs, _Bound_args...>; template<typename _CallArgs> using __dependent = typename enable_if<bool(tuple_size<_CallArgs>::value+1), _Functor>::type; template<typename _CallArgs, template<class> class __cv_quals> using _Res_type_cv = _Res_type_impl< typename __cv_quals<__dependent<_CallArgs>>::type, _CallArgs, typename __cv_quals<_Bound_args>::type...>; public: template<typename... _Args> explicit constexpr _Bind(const _Functor& __f, _Args&&... __args) : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) { } template<typename... _Args> explicit constexpr _Bind(_Functor&& __f, _Args&&... __args) : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) { } _Bind(const _Bind&) = default; _Bind(_Bind&&) = default; template<typename... _Args, typename _Result = _Res_type<tuple<_Args...>>> constexpr _Result operator()(_Args&&... __args) { return this->__call<_Result>( std::forward_as_tuple(std::forward<_Args>(__args)...), _Bound_indexes()); } template<typename... _Args, typename _Result = _Res_type_cv<tuple<_Args...>, add_const>> constexpr _Result operator()(_Args&&... __args) const { return this->__call_c<_Result>( std::forward_as_tuple(std::forward<_Args>(__args)...), _Bound_indexes()); } # 633 "/usr/include/c++/13/functional" 3 }; template<typename _Result, typename _Signature> class _Bind_result; template<typename _Result, typename _Functor, typename... _Bound_args> class _Bind_result<_Result, _Functor(_Bound_args...)> { typedef typename _Build_index_tuple<sizeof...(_Bound_args)>::__type _Bound_indexes; _Functor _M_f; tuple<_Bound_args...> _M_bound_args; template<typename _Res, typename... _Args, std::size_t... _Indexes> constexpr _Res __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) { return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() (std::get<_Indexes>(_M_bound_args), __args)...); } template<typename _Res, typename... _Args, std::size_t... _Indexes> constexpr _Res __call(tuple<_Args...>&& __args, _Index_tuple<_Indexes...>) const { return std::__invoke_r<_Res>(_M_f, _Mu<_Bound_args>() (std::get<_Indexes>(_M_bound_args), __args)...); } # 689 "/usr/include/c++/13/functional" 3 public: typedef _Result result_type; template<typename... _Args> explicit constexpr _Bind_result(const _Functor& __f, _Args&&... __args) : _M_f(__f), _M_bound_args(std::forward<_Args>(__args)...) { } template<typename... _Args> explicit constexpr _Bind_result(_Functor&& __f, _Args&&... __args) : _M_f(std::move(__f)), _M_bound_args(std::forward<_Args>(__args)...) { } _Bind_result(const _Bind_result&) = default; _Bind_result(_Bind_result&&) = default; template<typename... _Args> constexpr result_type operator()(_Args&&... __args) { return this->__call<_Result>( std::forward_as_tuple(std::forward<_Args>(__args)...), _Bound_indexes()); } template<typename... _Args> constexpr result_type operator()(_Args&&... __args) const { return this->__call<_Result>( std::forward_as_tuple(std::forward<_Args>(__args)...), _Bound_indexes()); } # 752 "/usr/include/c++/13/functional" 3 template<typename... _Args> void operator()(_Args&&...) const volatile = delete; }; # 764 "/usr/include/c++/13/functional" 3 template<typename _Signature> struct is_bind_expression<_Bind<_Signature> > : public true_type { }; template<typename _Signature> struct is_bind_expression<const _Bind<_Signature> > : public true_type { }; template<typename _Signature> struct is_bind_expression<volatile _Bind<_Signature> > : public true_type { }; template<typename _Signature> struct is_bind_expression<const volatile _Bind<_Signature>> : public true_type { }; template<typename _Result, typename _Signature> struct is_bind_expression<_Bind_result<_Result, _Signature>> : public true_type { }; template<typename _Result, typename _Signature> struct is_bind_expression<const _Bind_result<_Result, _Signature>> : public true_type { }; template<typename _Result, typename _Signature> struct is_bind_expression<volatile _Bind_result<_Result, _Signature>> : public true_type { }; template<typename _Result, typename _Signature> struct is_bind_expression<const volatile _Bind_result<_Result, _Signature>> : public true_type { }; template<typename _Func, typename... _BoundArgs> struct _Bind_check_arity { }; template<typename _Ret, typename... _Args, typename... _BoundArgs> struct _Bind_check_arity<_Ret (*)(_Args...), _BoundArgs...> { static_assert(sizeof...(_BoundArgs) == sizeof...(_Args), "Wrong number of arguments for function"); }; template<typename _Ret, typename... _Args, typename... _BoundArgs> struct _Bind_check_arity<_Ret (*)(_Args......), _BoundArgs...> { static_assert(sizeof...(_BoundArgs) >= sizeof...(_Args), "Wrong number of arguments for function"); }; template<typename _Tp, typename _Class, typename... _BoundArgs> struct _Bind_check_arity<_Tp _Class::*, _BoundArgs...> { using _Arity = typename _Mem_fn<_Tp _Class::*>::_Arity; using _Varargs = typename _Mem_fn<_Tp _Class::*>::_Varargs; static_assert(_Varargs::value ? sizeof...(_BoundArgs) >= _Arity::value + 1 : sizeof...(_BoundArgs) == _Arity::value + 1, "Wrong number of arguments for pointer-to-member"); }; template<typename _Tp, typename _Tp2 = typename decay<_Tp>::type> using __is_socketlike = __or_<is_integral<_Tp2>, is_enum<_Tp2>>; template<bool _SocketLike, typename _Func, typename... _BoundArgs> struct _Bind_helper : _Bind_check_arity<typename decay<_Func>::type, _BoundArgs...> { typedef typename decay<_Func>::type __func_type; typedef _Bind<__func_type(typename decay<_BoundArgs>::type...)> type; }; template<typename _Func, typename... _BoundArgs> struct _Bind_helper<true, _Func, _BoundArgs...> { }; template<typename _Func, typename... _BoundArgs> inline constexpr typename _Bind_helper<__is_socketlike<_Func>::value, _Func, _BoundArgs...>::type bind(_Func&& __f, _BoundArgs&&... __args) { typedef _Bind_helper<false, _Func, _BoundArgs...> __helper_type; return typename __helper_type::type(std::forward<_Func>(__f), std::forward<_BoundArgs>(__args)...); } template<typename _Result, typename _Func, typename... _BoundArgs> struct _Bindres_helper : _Bind_check_arity<typename decay<_Func>::type, _BoundArgs...> { typedef typename decay<_Func>::type __functor_type; typedef _Bind_result<_Result, __functor_type(typename decay<_BoundArgs>::type...)> type; }; template<typename _Result, typename _Func, typename... _BoundArgs> inline constexpr typename _Bindres_helper<_Result, _Func, _BoundArgs...>::type bind(_Func&& __f, _BoundArgs&&... __args) { typedef _Bindres_helper<_Result, _Func, _BoundArgs...> __helper_type; return typename __helper_type::type(std::forward<_Func>(__f), std::forward<_BoundArgs>(__args)...); } template<typename _Fd, typename... _BoundArgs> struct _Bind_front { static_assert(is_move_constructible_v<_Fd>); static_assert((is_move_constructible_v<_BoundArgs> && ...)); template<typename _Fn, typename... _Args> explicit constexpr _Bind_front(int, _Fn&& __fn, _Args&&... __args) noexcept(__and_<is_nothrow_constructible<_Fd, _Fn>, is_nothrow_constructible<_BoundArgs, _Args>...>::value) : _M_fd(std::forward<_Fn>(__fn)), _M_bound_args(std::forward<_Args>(__args)...) { static_assert(sizeof...(_Args) == sizeof...(_BoundArgs)); } _Bind_front(const _Bind_front&) = default; _Bind_front(_Bind_front&&) = default; _Bind_front& operator=(const _Bind_front&) = default; _Bind_front& operator=(_Bind_front&&) = default; ~_Bind_front() = default; template<typename... _CallArgs> constexpr invoke_result_t<_Fd&, _BoundArgs&..., _CallArgs...> operator()(_CallArgs&&... __call_args) & noexcept(is_nothrow_invocable_v<_Fd&, _BoundArgs&..., _CallArgs...>) { return _S_call(*this, _BoundIndices(), std::forward<_CallArgs>(__call_args)...); } template<typename... _CallArgs> constexpr invoke_result_t<const _Fd&, const _BoundArgs&..., _CallArgs...> operator()(_CallArgs&&... __call_args) const & noexcept(is_nothrow_invocable_v<const _Fd&, const _BoundArgs&..., _CallArgs...>) { return _S_call(*this, _BoundIndices(), std::forward<_CallArgs>(__call_args)...); } template<typename... _CallArgs> constexpr invoke_result_t<_Fd, _BoundArgs..., _CallArgs...> operator()(_CallArgs&&... __call_args) && noexcept(is_nothrow_invocable_v<_Fd, _BoundArgs..., _CallArgs...>) { return _S_call(std::move(*this), _BoundIndices(), std::forward<_CallArgs>(__call_args)...); } template<typename... _CallArgs> constexpr invoke_result_t<const _Fd, const _BoundArgs..., _CallArgs...> operator()(_CallArgs&&... __call_args) const && noexcept(is_nothrow_invocable_v<const _Fd, const _BoundArgs..., _CallArgs...>) { return _S_call(std::move(*this), _BoundIndices(), std::forward<_CallArgs>(__call_args)...); } private: using _BoundIndices = index_sequence_for<_BoundArgs...>; template<typename _Tp, size_t... _Ind, typename... _CallArgs> static constexpr decltype(auto) _S_call(_Tp&& __g, index_sequence<_Ind...>, _CallArgs&&... __call_args) { return std::invoke(std::forward<_Tp>(__g)._M_fd, std::get<_Ind>(std::forward<_Tp>(__g)._M_bound_args)..., std::forward<_CallArgs>(__call_args)...); } [[no_unique_address]] _Fd _M_fd; [[no_unique_address]] std::tuple<_BoundArgs...> _M_bound_args; }; template<typename _Fd> struct _Bind_front0 { static_assert(is_move_constructible_v<_Fd>); template<typename _Fn> explicit constexpr _Bind_front0(int, _Fn&& __fn) noexcept(is_nothrow_constructible_v<_Fd, _Fn>) : _M_fd(std::forward<_Fn>(__fn)) { } _Bind_front0(const _Bind_front0&) = default; _Bind_front0(_Bind_front0&&) = default; _Bind_front0& operator=(const _Bind_front0&) = default; _Bind_front0& operator=(_Bind_front0&&) = default; ~_Bind_front0() = default; template<typename... _CallArgs> constexpr invoke_result_t<_Fd&, _CallArgs...> operator()(_CallArgs&&... __call_args) & noexcept(is_nothrow_invocable_v<_Fd&, _CallArgs...>) { return std::invoke(_M_fd, std::forward<_CallArgs>(__call_args)...); } template<typename... _CallArgs> constexpr invoke_result_t<const _Fd&, _CallArgs...> operator()(_CallArgs&&... __call_args) const & noexcept(is_nothrow_invocable_v<const _Fd&, _CallArgs...>) { return std::invoke(_M_fd, std::forward<_CallArgs>(__call_args)...); } template<typename... _CallArgs> constexpr invoke_result_t<_Fd, _CallArgs...> operator()(_CallArgs&&... __call_args) && noexcept(is_nothrow_invocable_v<_Fd, _CallArgs...>) { return std::invoke(std::move(_M_fd), std::forward<_CallArgs>(__call_args)...); } template<typename... _CallArgs> constexpr invoke_result_t<const _Fd, _CallArgs...> operator()(_CallArgs&&... __call_args) const && noexcept(is_nothrow_invocable_v<const _Fd, _CallArgs...>) { return std::invoke(std::move(_M_fd), std::forward<_CallArgs>(__call_args)...); } private: [[no_unique_address]] _Fd _M_fd; }; template<typename _Fn, typename... _Args> using _Bind_front_t = __conditional_t<sizeof...(_Args) == 0, _Bind_front0<decay_t<_Fn>>, _Bind_front<decay_t<_Fn>, decay_t<_Args>...>>; # 1071 "/usr/include/c++/13/functional" 3 template<typename _Fn, typename... _Args> constexpr _Bind_front_t<_Fn, _Args...> bind_front(_Fn&& __fn, _Args&&... __args) noexcept(is_nothrow_constructible_v<_Bind_front_t<_Fn, _Args...>, int, _Fn, _Args...>) { return _Bind_front_t<_Fn, _Args...>(0, std::forward<_Fn>(__fn), std::forward<_Args>(__args)...); } template<typename _Fn> class _Not_fn { template<typename _Fn2, typename... _Args> using __inv_res_t = typename __invoke_result<_Fn2, _Args...>::type; template<typename _Tp> static decltype(!std::declval<_Tp>()) _S_not() noexcept(noexcept(!std::declval<_Tp>())); public: template<typename _Fn2> constexpr _Not_fn(_Fn2&& __fn, int) : _M_fn(std::forward<_Fn2>(__fn)) { } _Not_fn(const _Not_fn& __fn) = default; _Not_fn(_Not_fn&& __fn) = default; ~_Not_fn() = default; # 1118 "/usr/include/c++/13/functional" 3 template<typename... _Args> constexpr decltype(_S_not<__inv_res_t<_Fn &, _Args...>>()) operator()(_Args&&... __args) & noexcept(__is_nothrow_invocable<_Fn &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &, _Args...>>())) { return !std::__invoke(std::forward< _Fn & >(_M_fn), std::forward<_Args>(__args)...); } template<typename... _Args> constexpr decltype(_S_not<__inv_res_t<_Fn const &, _Args...>>()) operator()(_Args&&... __args) const & noexcept(__is_nothrow_invocable<_Fn const &, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &, _Args...>>())) { return !std::__invoke(std::forward< _Fn const & >(_M_fn), std::forward<_Args>(__args)...); } template<typename... _Args> constexpr decltype(_S_not<__inv_res_t<_Fn &&, _Args...>>()) operator()(_Args&&... __args) && noexcept(__is_nothrow_invocable<_Fn &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn && >(_M_fn), std::forward<_Args>(__args)...); } template<typename... _Args> constexpr decltype(_S_not<__inv_res_t<_Fn const &&, _Args...>>()) operator()(_Args&&... __args) const && noexcept(__is_nothrow_invocable<_Fn const &&, _Args...>::value && noexcept(_S_not<__inv_res_t<_Fn const &&, _Args...>>())) { return !std::__invoke(std::forward< _Fn const && >(_M_fn), std::forward<_Args>(__args)...); } private: _Fn _M_fn; }; template<typename _Tp, typename _Pred> struct __is_byte_like : false_type { }; template<typename _Tp> struct __is_byte_like<_Tp, equal_to<_Tp>> : __bool_constant<sizeof(_Tp) == 1 && is_integral<_Tp>::value> { }; template<typename _Tp> struct __is_byte_like<_Tp, equal_to<void>> : __bool_constant<sizeof(_Tp) == 1 && is_integral<_Tp>::value> { }; enum class byte : unsigned char; template<> struct __is_byte_like<byte, equal_to<byte>> : true_type { }; template<> struct __is_byte_like<byte, equal_to<void>> : true_type { }; # 1165 "/usr/include/c++/13/functional" 3 template<typename _Fn> constexpr inline auto not_fn(_Fn&& __fn) noexcept(std::is_nothrow_constructible<std::decay_t<_Fn>, _Fn&&>::value) { return _Not_fn<std::decay_t<_Fn>>{std::forward<_Fn>(__fn), 0}; } template<typename _ForwardIterator1, typename _BinaryPredicate = equal_to<>> class default_searcher { public: constexpr default_searcher(_ForwardIterator1 __pat_first, _ForwardIterator1 __pat_last, _BinaryPredicate __pred = _BinaryPredicate()) : _M_m(__pat_first, __pat_last, std::move(__pred)) { } template<typename _ForwardIterator2> constexpr pair<_ForwardIterator2, _ForwardIterator2> operator()(_ForwardIterator2 __first, _ForwardIterator2 __last) const { _ForwardIterator2 __first_ret = std::search(__first, __last, std::get<0>(_M_m), std::get<1>(_M_m), std::get<2>(_M_m)); auto __ret = std::make_pair(__first_ret, __first_ret); if (__ret.first != __last) std::advance(__ret.second, std::distance(std::get<0>(_M_m), std::get<1>(_M_m))); return __ret; } private: tuple<_ForwardIterator1, _ForwardIterator1, _BinaryPredicate> _M_m; }; template<typename _Key, typename _Tp, typename _Hash, typename _Pred> struct __boyer_moore_map_base { template<typename _RAIter> __boyer_moore_map_base(_RAIter __pat, size_t __patlen, _Hash&& __hf, _Pred&& __pred) : _M_bad_char{ __patlen, std::move(__hf), std::move(__pred) } { if (__patlen > 0) for (__diff_type __i = 0; __i < __patlen - 1; ++__i) _M_bad_char[__pat[__i]] = __patlen - 1 - __i; } using __diff_type = _Tp; __diff_type _M_lookup(_Key __key, __diff_type __not_found) const { auto __iter = _M_bad_char.find(__key); if (__iter == _M_bad_char.end()) return __not_found; return __iter->second; } _Pred _M_pred() const { return _M_bad_char.key_eq(); } std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; }; template<typename _Tp, size_t _Len, typename _Pred> struct __boyer_moore_array_base { template<typename _RAIter, typename _Unused> __boyer_moore_array_base(_RAIter __pat, size_t __patlen, _Unused&&, _Pred&& __pred) : _M_bad_char{ array<_Tp, _Len>{}, std::move(__pred) } { std::get<0>(_M_bad_char).fill(__patlen); if (__patlen > 0) for (__diff_type __i = 0; __i < __patlen - 1; ++__i) { auto __ch = __pat[__i]; using _UCh = make_unsigned_t<decltype(__ch)>; auto __uch = static_cast<_UCh>(__ch); std::get<0>(_M_bad_char)[__uch] = __patlen - 1 - __i; } } using __diff_type = _Tp; template<typename _Key> __diff_type _M_lookup(_Key __key, __diff_type __not_found) const { auto __ukey = static_cast<make_unsigned_t<_Key>>(__key); if (__ukey >= _Len) return __not_found; return std::get<0>(_M_bad_char)[__ukey]; } const _Pred& _M_pred() const { return std::get<1>(_M_bad_char); } tuple<array<_Tp, _Len>, _Pred> _M_bad_char; }; template<typename _RAIter, typename _Hash, typename _Pred, typename _Val = typename iterator_traits<_RAIter>::value_type, typename _Diff = typename iterator_traits<_RAIter>::difference_type> using __boyer_moore_base_t = __conditional_t<__is_byte_like<_Val, _Pred>::value, __boyer_moore_array_base<_Diff, 256, _Pred>, __boyer_moore_map_base<_Val, _Diff, _Hash, _Pred>>; template<typename _RAIter, typename _Hash = hash<typename iterator_traits<_RAIter>::value_type>, typename _BinaryPredicate = equal_to<>> class boyer_moore_searcher : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> { using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; using typename _Base::__diff_type; public: boyer_moore_searcher(_RAIter __pat_first, _RAIter __pat_last, _Hash __hf = _Hash(), _BinaryPredicate __pred = _BinaryPredicate()); template<typename _RandomAccessIterator2> pair<_RandomAccessIterator2, _RandomAccessIterator2> operator()(_RandomAccessIterator2 __first, _RandomAccessIterator2 __last) const; private: bool _M_is_prefix(_RAIter __word, __diff_type __len, __diff_type __pos) { const auto& __pred = this->_M_pred(); __diff_type __suffixlen = __len - __pos; for (__diff_type __i = 0; __i < __suffixlen; ++__i) if (!__pred(__word[__i], __word[__pos + __i])) return false; return true; } __diff_type _M_suffix_length(_RAIter __word, __diff_type __len, __diff_type __pos) { const auto& __pred = this->_M_pred(); __diff_type __i = 0; while (__pred(__word[__pos - __i], __word[__len - 1 - __i]) && __i < __pos) { ++__i; } return __i; } template<typename _Tp> __diff_type _M_bad_char_shift(_Tp __c) const { return this->_M_lookup(__c, _M_pat_end - _M_pat); } _RAIter _M_pat; _RAIter _M_pat_end; std::vector<__diff_type> _M_good_suffix; }; template<typename _RAIter, typename _Hash = hash<typename iterator_traits<_RAIter>::value_type>, typename _BinaryPredicate = equal_to<>> class boyer_moore_horspool_searcher : __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate> { using _Base = __boyer_moore_base_t<_RAIter, _Hash, _BinaryPredicate>; using typename _Base::__diff_type; public: boyer_moore_horspool_searcher(_RAIter __pat, _RAIter __pat_end, _Hash __hf = _Hash(), _BinaryPredicate __pred = _BinaryPredicate()) : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), _M_pat(__pat), _M_pat_end(__pat_end) { } template<typename _RandomAccessIterator2> pair<_RandomAccessIterator2, _RandomAccessIterator2> operator()(_RandomAccessIterator2 __first, _RandomAccessIterator2 __last) const { const auto& __pred = this->_M_pred(); auto __patlen = _M_pat_end - _M_pat; if (__patlen == 0) return std::make_pair(__first, __first); auto __len = __last - __first; while (__len >= __patlen) { for (auto __scan = __patlen - 1; __pred(__first[__scan], _M_pat[__scan]); --__scan) if (__scan == 0) return std::make_pair(__first, __first + __patlen); auto __shift = _M_bad_char_shift(__first[__patlen - 1]); __len -= __shift; __first += __shift; } return std::make_pair(__last, __last); } private: template<typename _Tp> __diff_type _M_bad_char_shift(_Tp __c) const { return this->_M_lookup(__c, _M_pat_end - _M_pat); } _RAIter _M_pat; _RAIter _M_pat_end; }; template<typename _RAIter, typename _Hash, typename _BinaryPredicate> boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: boyer_moore_searcher(_RAIter __pat, _RAIter __pat_end, _Hash __hf, _BinaryPredicate __pred) : _Base(__pat, __pat_end - __pat, std::move(__hf), std::move(__pred)), _M_pat(__pat), _M_pat_end(__pat_end), _M_good_suffix(__pat_end - __pat) { auto __patlen = __pat_end - __pat; if (__patlen == 0) return; __diff_type __last_prefix = __patlen - 1; for (__diff_type __p = __patlen - 1; __p >= 0; --__p) { if (_M_is_prefix(__pat, __patlen, __p + 1)) __last_prefix = __p + 1; _M_good_suffix[__p] = __last_prefix + (__patlen - 1 - __p); } for (__diff_type __p = 0; __p < __patlen - 1; ++__p) { auto __slen = _M_suffix_length(__pat, __patlen, __p); auto __pos = __patlen - 1 - __slen; if (!__pred(__pat[__p - __slen], __pat[__pos])) _M_good_suffix[__pos] = __patlen - 1 - __p + __slen; } } template<typename _RAIter, typename _Hash, typename _BinaryPredicate> template<typename _RandomAccessIterator2> pair<_RandomAccessIterator2, _RandomAccessIterator2> boyer_moore_searcher<_RAIter, _Hash, _BinaryPredicate>:: operator()(_RandomAccessIterator2 __first, _RandomAccessIterator2 __last) const { auto __patlen = _M_pat_end - _M_pat; if (__patlen == 0) return std::make_pair(__first, __first); const auto& __pred = this->_M_pred(); __diff_type __i = __patlen - 1; auto __stringlen = __last - __first; while (__i < __stringlen) { __diff_type __j = __patlen - 1; while (__j >= 0 && __pred(__first[__i], _M_pat[__j])) { --__i; --__j; } if (__j < 0) { const auto __match = __first + __i + 1; return std::make_pair(__match, __match + __patlen); } __i += std::max(_M_bad_char_shift(__first[__i]), _M_good_suffix[__j]); } return std::make_pair(__last, __last); } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/functional.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { using std::function; } using std::ref; using std::reference_wrapper; } } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 2 3 4 namespace boost { namespace asio { template <typename T, typename Allocator> struct associated_allocator; namespace detail { template <typename T, typename = void> struct has_allocator_type : false_type { }; template <typename T> struct has_allocator_type<T, typename void_type<typename T::allocator_type>::type> : true_type { }; template <typename T, typename A, typename = void, typename = void> struct associated_allocator_impl { typedef void asio_associated_allocator_is_unspecialised; typedef A type; static type get(const T&) noexcept { return type(); } static const type& get(const T&, const A& a) noexcept { return a; } }; template <typename T, typename A> struct associated_allocator_impl<T, A, typename void_type<typename T::allocator_type>::type> { typedef typename T::allocator_type type; static auto get( const T& t) noexcept -> decltype (t.get_allocator()) { return t.get_allocator(); } static auto get( const T& t, const A&) noexcept -> decltype (t.get_allocator()) { return t.get_allocator(); } }; template <typename T, typename A> struct associated_allocator_impl<T, A, typename enable_if< !has_allocator_type<T>::value >::type, typename void_type< typename associator<associated_allocator, T, A>::type >::type> : associator<associated_allocator, T, A> { }; } # 119 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 3 4 template <typename T, typename Allocator = std::allocator<void> > struct associated_allocator : detail::associated_allocator_impl<T, Allocator> { # 138 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 3 4 }; template <typename T> [[nodiscard]] inline typename associated_allocator<T>::type get_associated_allocator(const T& t) noexcept { return associated_allocator<T>::get(t); } template <typename T, typename Allocator> [[nodiscard]] inline auto get_associated_allocator(const T& t, const Allocator& a) noexcept -> decltype ( associated_allocator<T, Allocator>::get(t, a)) { return associated_allocator<T, Allocator>::get(t, a); } template <typename T, typename Allocator = std::allocator<void> > using associated_allocator_t = typename associated_allocator<T, Allocator>::type; namespace detail { template <typename T, typename A, typename = void> struct associated_allocator_forwarding_base { }; template <typename T, typename A> struct associated_allocator_forwarding_base<T, A, typename enable_if< is_same< typename associated_allocator<T, A>::asio_associated_allocator_is_unspecialised, void >::value >::type> { typedef void asio_associated_allocator_is_unspecialised; }; } template <typename T, typename Allocator> struct associated_allocator<reference_wrapper<T>, Allocator> : detail::associated_allocator_forwarding_base<T, Allocator> { typedef typename associated_allocator<T, Allocator>::type type; static type get(reference_wrapper<T> t) noexcept { return associated_allocator<T, Allocator>::get(t.get()); } static auto get( reference_wrapper<T> t, const Allocator& a) noexcept -> decltype ( associated_allocator<T, Allocator>::get(t.get(), a)) { return associated_allocator<T, Allocator>::get(t.get(), a); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 234 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_allocator.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 2 3 4 namespace boost { namespace asio { # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 3 4 typedef void* asio_handler_allocate_is_deprecated; typedef void asio_handler_deallocate_is_deprecated; # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 3 4 inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, ...); # 94 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 3 4 inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, ...); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/handler_alloc_hook.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/handler_alloc_hook.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/handler_alloc_hook.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/handler_alloc_hook.ipp" 2 3 4 namespace boost { namespace asio { asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, ...) { return detail::thread_info_base::allocate( detail::thread_context::top_of_thread_call_stack(), size); } asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, ...) { detail::thread_info_base::deallocate( detail::thread_context::top_of_thread_call_stack(), pointer, size); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/handler_alloc_hook.ipp" 2 3 4 # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_alloc_hook.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 2 3 4 namespace boost_asio_handler_alloc_helpers { # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 3 4 template <typename Handler> inline void* allocate(std::size_t s, Handler& h, std::size_t align = 16) { # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 3 4 (void)align; using boost::asio::asio_handler_allocate; return asio_handler_allocate(s, boost::asio::detail::addressof(h)); } template <typename Handler> inline void deallocate(void* p, std::size_t s, Handler& h) { # 94 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 3 4 using boost::asio::asio_handler_deallocate; asio_handler_deallocate(p, s, boost::asio::detail::addressof(h)); } } namespace boost { namespace asio { namespace detail { template <typename Handler, typename T> class hook_allocator { public: typedef T value_type; template <typename U> struct rebind { typedef hook_allocator<Handler, U> other; }; explicit hook_allocator(Handler& h) : handler_(h) { } template <typename U> hook_allocator(const hook_allocator<Handler, U>& a) : handler_(a.handler_) { } T* allocate(std::size_t n) { return static_cast<T*>( boost_asio_handler_alloc_helpers::allocate( sizeof(T) * n, handler_, alignof(T))); } void deallocate(T* p, std::size_t n) { boost_asio_handler_alloc_helpers::deallocate(p, sizeof(T) * n, handler_); } Handler& handler_; }; template <typename Handler> class hook_allocator<Handler, void> { public: typedef void value_type; template <typename U> struct rebind { typedef hook_allocator<Handler, U> other; }; explicit hook_allocator(Handler& h) : handler_(h) { } template <typename U> hook_allocator(const hook_allocator<Handler, U>& a) : handler_(a.handler_) { } Handler& handler_; }; template <typename Handler, typename Allocator> struct get_hook_allocator { typedef Allocator type; static type get(Handler&, const Allocator& a) { return a; } }; template <typename Handler, typename T> struct get_hook_allocator<Handler, std::allocator<T> > { typedef hook_allocator<Handler, T> type; static type get(Handler& handler, const std::allocator<T>&) { return type(handler); } }; } } } # 288 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 289 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_alloc_helpers.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_invoke_hook.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_invoke_hook.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_invoke_hook.hpp" 2 3 4 namespace boost { namespace asio { # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_invoke_hook.hpp" 3 4 typedef void asio_handler_invoke_is_deprecated; template <typename Function> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, ...) { function(); } template <typename Function> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, ...) { Function tmp(function); tmp(); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 112 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_invoke_hook.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 2 3 4 namespace boost_asio_handler_invoke_helpers { # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 3 4 template <typename Function, typename Context> inline void invoke(Function& function, Context& context) { # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 3 4 using boost::asio::asio_handler_invoke; asio_handler_invoke(function, boost::asio::detail::addressof(context)); } template <typename Function, typename Context> inline void invoke(const Function& function, Context& context) { # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 3 4 using boost::asio::asio_handler_invoke; asio_handler_invoke(function, boost::asio::detail::addressof(context)); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_invoke_helpers.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class executor_function { public: template <typename F, typename Alloc> explicit executor_function(F f, const Alloc& a) { typedef impl<F, Alloc> impl_type; typename impl_type::ptr p = { detail::addressof(a), impl_type::ptr::allocate(a), 0 }; impl_ = new (p.v) impl_type(static_cast<F&&>(f), a); p.v = 0; } executor_function(executor_function&& other) noexcept : impl_(other.impl_) { other.impl_ = 0; } ~executor_function() { if (impl_) impl_->complete_(impl_, false); } void operator()() { if (impl_) { impl_base* i = impl_; impl_ = 0; i->complete_(i, true); } } private: struct impl_base { void (*complete_)(impl_base*, bool); }; template <typename Function, typename Alloc> struct impl : impl_base { struct ptr { const Alloc* a; void* v; impl* p; ~ptr() { reset(); } static impl* allocate(const Alloc& a) { typedef typename ::boost::asio::detail::get_recycling_allocator< Alloc, thread_info_base::executor_function_tag>::type recycling_allocator_type; typename std::allocator_traits<recycling_allocator_type>::template rebind_alloc<impl> a1( ::boost::asio::detail::get_recycling_allocator< Alloc, thread_info_base::executor_function_tag>::get(a)); return a1.allocate(1); } void reset() { if (p) { p->~impl(); p = 0; } if (v) { typedef typename ::boost::asio::detail::get_recycling_allocator< Alloc, thread_info_base::executor_function_tag>::type recycling_allocator_type; typename std::allocator_traits<recycling_allocator_type>::template rebind_alloc<impl> a1( ::boost::asio::detail::get_recycling_allocator< Alloc, thread_info_base::executor_function_tag>::get(*a)); a1.deallocate(static_cast<impl*>(v), 1); v = 0; } } } ; template <typename F> impl(F&& f, const Alloc& a) : function_(static_cast<F&&>(f)), allocator_(a) { complete_ = &executor_function::complete<Function, Alloc>; } Function function_; Alloc allocator_; }; template <typename Function, typename Alloc> static void complete(impl_base* base, bool call) { impl<Function, Alloc>* i(static_cast<impl<Function, Alloc>*>(base)); Alloc allocator(i->allocator_); typename impl<Function, Alloc>::ptr p = { detail::addressof(allocator), i, i }; Function function(static_cast<Function&&>(i->function_)); p.reset(); if (call) { boost_asio_handler_invoke_helpers::invoke(function, function); } } impl_base* impl_; }; # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 3 4 class executor_function_view { public: template <typename F> explicit executor_function_view(F& f) noexcept : complete_(&executor_function_view::complete<F>), function_(&f) { } void operator()() { complete_(function_); } private: template <typename F> static void complete(void* f) { (*static_cast<F*>(f))(); } void (*complete_)(void*); void* function_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 205 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_function.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/non_const_lvalue.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/non_const_lvalue.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/non_const_lvalue.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> struct non_const_lvalue { explicit non_const_lvalue(T& t) : value(static_cast<typename conditional< is_same<T, typename decay<T>::type>::value, typename decay<T>::type&, T&&>::type>(t)) { } typename conditional<is_same<T, typename decay<T>::type>::value, typename decay<T>::type&, typename decay<T>::type>::type value; # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/non_const_lvalue.hpp" 3 4 }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/non_const_lvalue.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_ptr.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_ptr.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> class scoped_ptr { public: explicit scoped_ptr(T* p = 0) : p_(p) { } ~scoped_ptr() { delete p_; } T* get() { return p_; } T* operator->() { return p_; } T& operator*() { return *p_; } void reset(T* p = 0) { delete p_; p_ = p; } T* release() { T* tmp = p_; p_ = 0; return tmp; } private: scoped_ptr(const scoped_ptr&); scoped_ptr& operator=(const scoped_ptr&); T* p_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_ptr.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bad_executor.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bad_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bad_executor.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { class bad_executor : public std::exception { public: inline bad_executor() noexcept; inline virtual const char* what() const noexcept; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bad_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/bad_executor.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/bad_executor.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bad_executor.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/bad_executor.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/bad_executor.ipp" 2 3 4 namespace boost { namespace asio { namespace execution { bad_executor::bad_executor() noexcept { } const char* bad_executor::what() const noexcept { return "bad executor"; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/impl/bad_executor.ipp" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bad_executor.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct prefer_free_default; template <typename T, typename Property, typename = void> struct prefer_free; } namespace detail { struct no_prefer_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct prefer_free_trait : no_prefer_free { }; template <typename T, typename Property> struct prefer_free_trait<T, Property, typename void_type< decltype(prefer(declval<T>(), declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( prefer(declval<T>(), declval<Property>())); static constexpr bool is_noexcept = noexcept( prefer(declval<T>(), declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_free.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct prefer_free_default : detail::prefer_free_trait<T, Property> { }; template <typename T, typename Property, typename> struct prefer_free : prefer_free_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_free.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct prefer_member_default; template <typename T, typename Property, typename = void> struct prefer_member; } namespace detail { struct no_prefer_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct prefer_member_trait : no_prefer_member { }; template <typename T, typename Property> struct prefer_member_trait<T, Property, typename void_type< decltype(declval<T>().prefer(declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().prefer(declval<Property>())); static constexpr bool is_noexcept = noexcept( declval<T>().prefer(declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_member.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct prefer_member_default : detail::prefer_member_trait<T, Property> { }; template <typename T, typename Property, typename> struct prefer_member : prefer_member_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/prefer_member.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct require_free_default; template <typename T, typename Property, typename = void> struct require_free; } namespace detail { struct no_require_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct require_free_trait : no_require_free { }; template <typename T, typename Property> struct require_free_trait<T, Property, typename void_type< decltype(require(declval<T>(), declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( require(declval<T>(), declval<Property>())); static constexpr bool is_noexcept = noexcept( require(declval<T>(), declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_free.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct require_free_default : detail::require_free_trait<T, Property> { }; template <typename T, typename Property, typename> struct require_free : require_free_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_free.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct require_member_default; template <typename T, typename Property, typename = void> struct require_member; } namespace detail { struct no_require_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct require_member_trait : no_require_member { }; template <typename T, typename Property> struct require_member_trait<T, Property, typename void_type< decltype(declval<T>().require(declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().require(declval<Property>())); static constexpr bool is_noexcept = noexcept( declval<T>().require(declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_member.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct require_member_default : detail::require_member_trait<T, Property> { }; template <typename T, typename Property, typename> struct require_member : require_member_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_member.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct static_require_default; template <typename T, typename Property, typename = void> struct static_require; } namespace detail { struct no_static_require { static constexpr bool is_valid = false; }; template <typename T, typename Property, typename = void> struct static_require_trait : conditional< is_same<T, typename decay<T>::type>::value && is_same<Property, typename decay<Property>::type>::value, no_static_require, traits::static_require< typename decay<T>::type, typename decay<Property>::type> >::type { }; template <typename T, typename Property> struct static_require_trait<T, Property, typename enable_if< decay<Property>::type::value() == traits::static_query<T, Property>::value() >::type> { static constexpr bool is_valid = true; }; # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct static_require_default : detail::static_require_trait<T, Property> { }; template <typename T, typename Property, typename> struct static_require : static_require_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 121 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 namespace boost_asio_prefer_fn { using boost::asio::conditional; using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::is_applicable_property; using boost::asio::traits::prefer_free; using boost::asio::traits::prefer_member; using boost::asio::traits::require_free; using boost::asio::traits::require_member; using boost::asio::traits::static_require; void prefer(); void require(); enum overload_type { identity, call_require_member, call_require_free, call_prefer_member, call_prefer_free, two_props, n_props, ill_formed }; template <typename Impl, typename T, typename Properties, typename = void, typename = void, typename = void, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_preferable >::type, typename enable_if< static_require<T, Property>::is_valid >::type> { static constexpr overload_type overload = identity; static constexpr bool is_noexcept = true; typedef T&& result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_preferable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type> : require_member<typename Impl::template proxy<T>::type, Property> { static constexpr overload_type overload = call_require_member; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_preferable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< !require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< require_free<T, Property>::is_valid >::type> : require_free<T, Property> { static constexpr overload_type overload = call_require_free; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_preferable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< !require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< !require_free<T, Property>::is_valid >::type, typename enable_if< prefer_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type> : prefer_member<typename Impl::template proxy<T>::type, Property> { static constexpr overload_type overload = call_prefer_member; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_preferable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< !require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< !require_free<T, Property>::is_valid >::type, typename enable_if< !prefer_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< prefer_free<T, Property>::is_valid >::type> : prefer_free<T, Property> { static constexpr overload_type overload = call_prefer_free; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_preferable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< !require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< !require_free<T, Property>::is_valid >::type, typename enable_if< !prefer_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< !prefer_free<T, Property>::is_valid >::type> { static constexpr overload_type overload = identity; static constexpr bool is_noexcept = true; typedef T&& result_type; }; template <typename Impl, typename T, typename P0, typename P1> struct call_traits<Impl, T, void(P0, P1), typename enable_if< call_traits<Impl, T, void(P0)>::overload != ill_formed >::type, typename enable_if< call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1) >::overload != ill_formed >::type> { static constexpr overload_type overload = two_props; static constexpr bool is_noexcept = ( call_traits<Impl, T, void(P0)>::is_noexcept && call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1) >::is_noexcept ) # 351 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 ; typedef typename decay< typename call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1) >::result_type >::type result_type; }; template <typename Impl, typename T, typename P0, typename P1, typename ... PN> struct call_traits<Impl, T, void(P0, P1, PN ...), typename enable_if< call_traits<Impl, T, void(P0)>::overload != ill_formed >::type, typename enable_if< call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1, PN ...) >::overload != ill_formed >::type> { static constexpr overload_type overload = n_props; static constexpr bool is_noexcept = ( call_traits<Impl, T, void(P0)>::is_noexcept && call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1, PN ...) >::is_noexcept ) # 387 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 ; typedef typename decay< typename call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1, PN ...) >::result_type >::type result_type; }; struct impl { template <typename T> struct proxy { struct type { template <typename P> auto require(P&& p) noexcept( noexcept( declval<typename conditional<true, T, P>::type>().require( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().require( static_cast<P&&>(p)) ); template <typename P> auto prefer(P&& p) noexcept( noexcept( declval<typename conditional<true, T, P>::type>().prefer( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().prefer( static_cast<P&&>(p)) ); }; }; template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == identity, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&&) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_require_member, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t).require( static_cast<Property&&>(p)); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_require_free, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return require( static_cast<T&&>(t), static_cast<Property&&>(p)); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_prefer_member, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t).prefer( static_cast<Property&&>(p)); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_prefer_free, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return prefer( static_cast<T&&>(t), static_cast<Property&&>(p)); } template <typename T, typename P0, typename P1> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(P0, P1)>::overload == two_props, typename call_traits<impl, T, void(P0, P1)>::result_type >::type operator()( T&& t, P0&& p0, P1&& p1) const noexcept((( call_traits<impl, T, void(P0, P1)>::is_noexcept))) { return (*this)( (*this)( static_cast<T&&>(t), static_cast<P0&&>(p0)), static_cast<P1&&>(p1)); } template <typename T, typename P0, typename P1, typename ... PN> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(P0, P1, PN ...)>::overload == n_props, typename call_traits<impl, T, void(P0, P1, PN ...)>::result_type >::type operator()( T&& t, P0&& p0, P1&& p1, PN&& ... pn) const noexcept((( call_traits<impl, T, void(P0, P1, PN ...)>::is_noexcept))) { return (*this)( (*this)( static_cast<T&&>(t), static_cast<P0&&>(p0)), static_cast<P1&&>(p1), static_cast<PN&&>(pn) ...); } }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace { static constexpr const boost_asio_prefer_fn::impl& prefer = boost_asio_prefer_fn::static_instance<>::instance; } typedef boost_asio_prefer_fn::impl prefer_t; template <typename T, typename... Properties> struct can_prefer : integral_constant<bool, boost_asio_prefer_fn::call_traits< prefer_t, T, void(Properties...)>::overload != boost_asio_prefer_fn::ill_formed> { }; # 632 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 template <typename T, typename ... Properties> constexpr bool can_prefer_v = can_prefer<T, Properties ...>::value; template <typename T, typename... Properties> struct is_nothrow_prefer : integral_constant<bool, boost_asio_prefer_fn::call_traits< prefer_t, T, void(Properties...)>::is_noexcept> { }; # 685 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 template <typename T, typename ... Properties> constexpr bool is_nothrow_prefer_v = is_nothrow_prefer<T, Properties ...>::value; template <typename T, typename... Properties> struct prefer_result { typedef typename boost_asio_prefer_fn::call_traits< prefer_t, T, void(Properties...)>::result_type type; }; # 731 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 3 4 } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 737 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prefer.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct query_member_default; template <typename T, typename Property, typename = void> struct query_member; } namespace detail { struct no_query_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct query_member_trait : no_query_member { }; template <typename T, typename Property> struct query_member_trait<T, Property, typename void_type< decltype(declval<T>().query(declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().query(declval<Property>())); static constexpr bool is_noexcept = noexcept( declval<T>().query(declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_member.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct query_member_default : detail::query_member_trait<T, Property> { }; template <typename T, typename Property, typename> struct query_member : query_member_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_member.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct query_free_default; template <typename T, typename Property, typename = void> struct query_free; } namespace detail { struct no_query_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct query_free_trait : no_query_free { }; template <typename T, typename Property> struct query_free_trait<T, Property, typename void_type< decltype(query(declval<T>(), declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( query(declval<T>(), declval<Property>())); static constexpr bool is_noexcept = noexcept( query(declval<T>(), declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_free.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct query_free_default : detail::query_free_trait<T, Property> { }; template <typename T, typename Property, typename> struct query_free : query_free_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/query_free.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 2 3 4 # 103 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 3 4 namespace boost_asio_query_fn { using boost::asio::conditional; using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::is_applicable_property; using boost::asio::traits::query_free; using boost::asio::traits::query_member; using boost::asio::traits::static_query; void query(); enum overload_type { static_value, call_member, call_free, ill_formed }; template <typename Impl, typename T, typename Properties, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< static_query<T, Property>::is_valid >::type> : static_query<T, Property> { static constexpr overload_type overload = static_value; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< !static_query<T, Property>::is_valid >::type, typename enable_if< query_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type> : query_member<typename Impl::template proxy<T>::type, Property> { static constexpr overload_type overload = call_member; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< !static_query<T, Property>::is_valid >::type, typename enable_if< !query_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< query_free<T, Property>::is_valid >::type> : query_free<T, Property> { static constexpr overload_type overload = call_free; }; struct impl { template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == static_value, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&&, Property&&) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_query< typename decay<T>::type, typename decay<Property>::type >::value(); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_member, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t).query(static_cast<Property&&>(p)); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_free, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return query(static_cast<T&&>(t), static_cast<Property&&>(p)); } }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace { static constexpr const boost_asio_query_fn::impl& query = boost_asio_query_fn::static_instance<>::instance; } typedef boost_asio_query_fn::impl query_t; template <typename T, typename Property> struct can_query : integral_constant<bool, boost_asio_query_fn::call_traits<query_t, T, void(Property)>::overload != boost_asio_query_fn::ill_formed> { }; template <typename T, typename Property> constexpr bool can_query_v = can_query<T, Property>::value; template <typename T, typename Property> struct is_nothrow_query : integral_constant<bool, boost_asio_query_fn::call_traits<query_t, T, void(Property)>::is_noexcept> { }; template <typename T, typename Property> constexpr bool is_nothrow_query_v = is_nothrow_query<T, Property>::value; template <typename T, typename Property> struct query_result { typedef typename boost_asio_query_fn::call_traits< query_t, T, void(Property)>::result_type type; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 327 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/query.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 2 3 4 # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 namespace boost_asio_require_fn { using boost::asio::conditional; using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::is_applicable_property; using boost::asio::traits::require_free; using boost::asio::traits::require_member; using boost::asio::traits::static_require; void require(); enum overload_type { identity, call_member, call_free, two_props, n_props, ill_formed }; template <typename Impl, typename T, typename Properties, typename = void, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_requirable >::type, typename enable_if< static_require<T, Property>::is_valid >::type> { static constexpr overload_type overload = identity; static constexpr bool is_noexcept = true; typedef T&& result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_requirable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type> : require_member<typename Impl::template proxy<T>::type, Property> { static constexpr overload_type overload = call_member; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_requirable >::type, typename enable_if< !static_require<T, Property>::is_valid >::type, typename enable_if< !require_member<typename Impl::template proxy<T>::type, Property>::is_valid >::type, typename enable_if< require_free<T, Property>::is_valid >::type> : require_free<T, Property> { static constexpr overload_type overload = call_free; }; template <typename Impl, typename T, typename P0, typename P1> struct call_traits<Impl, T, void(P0, P1), typename enable_if< call_traits<Impl, T, void(P0)>::overload != ill_formed >::type, typename enable_if< call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1) >::overload != ill_formed >::type> { static constexpr overload_type overload = two_props; static constexpr bool is_noexcept = ( call_traits<Impl, T, void(P0)>::is_noexcept && call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1) >::is_noexcept ) # 238 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 ; typedef typename decay< typename call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1) >::result_type >::type result_type; }; template <typename Impl, typename T, typename P0, typename P1, typename ... PN> struct call_traits<Impl, T, void(P0, P1, PN ...), typename enable_if< call_traits<Impl, T, void(P0)>::overload != ill_formed >::type, typename enable_if< call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1, PN ...) >::overload != ill_formed >::type> { static constexpr overload_type overload = n_props; static constexpr bool is_noexcept = ( call_traits<Impl, T, void(P0)>::is_noexcept && call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1, PN ...) >::is_noexcept ) # 274 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 ; typedef typename decay< typename call_traits< Impl, typename call_traits<Impl, T, void(P0)>::result_type, void(P1, PN ...) >::result_type >::type result_type; }; struct impl { template <typename T> struct proxy { struct type { template <typename P> auto require(P&& p) noexcept( noexcept( declval<typename conditional<true, T, P>::type>().require( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().require( static_cast<P&&>(p)) ); }; }; template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == identity, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&&) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_member, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t).require( static_cast<Property&&>(p)); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_free, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return require( static_cast<T&&>(t), static_cast<Property&&>(p)); } template <typename T, typename P0, typename P1> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(P0, P1)>::overload == two_props, typename call_traits<impl, T, void(P0, P1)>::result_type >::type operator()( T&& t, P0&& p0, P1&& p1) const noexcept((( call_traits<impl, T, void(P0, P1)>::is_noexcept))) { return (*this)( (*this)( static_cast<T&&>(t), static_cast<P0&&>(p0)), static_cast<P1&&>(p1)); } template <typename T, typename P0, typename P1, typename ... PN> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(P0, P1, PN ...)>::overload == n_props, typename call_traits<impl, T, void(P0, P1, PN ...)>::result_type >::type operator()( T&& t, P0&& p0, P1&& p1, PN&& ... pn) const noexcept((( call_traits<impl, T, void(P0, P1, PN ...)>::is_noexcept))) { return (*this)( (*this)( static_cast<T&&>(t), static_cast<P0&&>(p0)), static_cast<P1&&>(p1), static_cast<PN&&>(pn) ...); } }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace { static constexpr const boost_asio_require_fn::impl& require = boost_asio_require_fn::static_instance<>::instance; } typedef boost_asio_require_fn::impl require_t; template <typename T, typename... Properties> struct can_require : integral_constant<bool, boost_asio_require_fn::call_traits< require_t, T, void(Properties...)>::overload != boost_asio_require_fn::ill_formed> { }; # 469 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 template <typename T, typename ... Properties> constexpr bool can_require_v = can_require<T, Properties ...>::value; template <typename T, typename... Properties> struct is_nothrow_require : integral_constant<bool, boost_asio_require_fn::call_traits< require_t, T, void(Properties...)>::is_noexcept> { }; # 522 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 template <typename T, typename ... Properties> constexpr bool is_nothrow_require_v = is_nothrow_require<T, Properties ...>::value; template <typename T, typename... Properties> struct require_result { typedef typename boost_asio_require_fn::call_traits< require_t, T, void(Properties...)>::result_type type; }; # 568 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 3 4 } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 574 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 2 3 4 namespace boost { namespace asio { # 189 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 namespace execution { namespace detail { namespace blocking { template <int I> struct possibly_t; template <int I> struct always_t; template <int I> struct never_t; } namespace blocking_adaptation { template <int I> struct allowed_t; template <typename Executor, typename Function> void blocking_execute( Executor&& ex, Function&& func); } template <int I = 0> struct blocking_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 233 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef blocking_t polymorphic_query_result_type; typedef detail::blocking::possibly_t<I> possibly_t; typedef detail::blocking::always_t<I> always_t; typedef detail::blocking::never_t<I> never_t; constexpr blocking_t() : value_(-1) { } constexpr blocking_t(possibly_t) : value_(0) { } constexpr blocking_t(always_t) : value_(1) { } constexpr blocking_t(never_t) : value_(2) { } template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) const noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_member : traits::query_member<typename proxy<T>::type, blocking_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, blocking_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr typename traits::static_query<T, possibly_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, possibly_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, possibly_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, always_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, possibly_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, always_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, always_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, never_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, possibly_t>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, always_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, never_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, never_t>::value(); } template <typename E, typename T = decltype(blocking_t::static_query<E>())> static constexpr const T static_query_v = blocking_t::static_query<E>(); friend constexpr bool operator==( const blocking_t& a, const blocking_t& b) { return a.value_ == b.value_; } friend constexpr bool operator!=( const blocking_t& a, const blocking_t& b) { return a.value_ != b.value_; } struct convertible_from_blocking_t { constexpr convertible_from_blocking_t(blocking_t) {} }; template <typename Executor> friend constexpr blocking_t query( const Executor& ex, convertible_from_blocking_t, typename enable_if< can_query<const Executor&, possibly_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, possibly_t>::value))) { return boost::asio::query(ex, possibly_t()); } template <typename Executor> friend constexpr blocking_t query( const Executor& ex, convertible_from_blocking_t, typename enable_if< !can_query<const Executor&, possibly_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, always_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, always_t>::value))) { return boost::asio::query(ex, always_t()); } template <typename Executor> friend constexpr blocking_t query( const Executor& ex, convertible_from_blocking_t, typename enable_if< !can_query<const Executor&, possibly_t>::value >::type* = 0, typename enable_if< !can_query<const Executor&, always_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, never_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, never_t>::value))) { return boost::asio::query(ex, never_t()); } static constexpr const possibly_t possibly{}; static constexpr const always_t always{}; static constexpr const never_t never{}; private: int value_; }; template <int I> template <typename E, typename T> const T blocking_t<I>::static_query_v; # 508 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 template <int I> const typename blocking_t<I>::possibly_t blocking_t<I>::possibly; template <int I> const typename blocking_t<I>::always_t blocking_t<I>::always; template <int I> const typename blocking_t<I>::never_t blocking_t<I>::never; namespace blocking { template <int I = 0> struct possibly_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 543 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef blocking_t<I> polymorphic_query_result_type; constexpr possibly_t() { } template <typename T> struct query_member : traits::query_member< typename blocking_t<I>::template proxy<T>::type, possibly_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename blocking_t<I>::template static_proxy<T>::type, possibly_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr possibly_t static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::query_free<T, possibly_t>::is_valid >::type* = 0, typename enable_if< !can_query<T, always_t<I> >::value >::type* = 0, typename enable_if< !can_query<T, never_t<I> >::value >::type* = 0) noexcept { return possibly_t(); } template <typename E, typename T = decltype(possibly_t::static_query<E>())> static constexpr const T static_query_v = possibly_t::static_query<E>(); static constexpr blocking_t<I> value() { return possibly_t(); } friend constexpr bool operator==( const possibly_t&, const possibly_t&) { return true; } friend constexpr bool operator!=( const possibly_t&, const possibly_t&) { return false; } friend constexpr bool operator==( const possibly_t&, const always_t<I>&) { return false; } friend constexpr bool operator!=( const possibly_t&, const always_t<I>&) { return true; } friend constexpr bool operator==( const possibly_t&, const never_t<I>&) { return false; } friend constexpr bool operator!=( const possibly_t&, const never_t<I>&) { return true; } }; template <int I> template <typename E, typename T> const T possibly_t<I>::static_query_v; template <typename Executor> class adapter { public: adapter(int, const Executor& e) noexcept : executor_(e) { } adapter(const adapter& other) noexcept : executor_(other.executor_) { } adapter(adapter&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)) { } template <int I> static constexpr always_t<I> query( blocking_t<I>) noexcept { return always_t<I>(); } template <int I> static constexpr always_t<I> query( possibly_t<I>) noexcept { return always_t<I>(); } template <int I> static constexpr always_t<I> query( always_t<I>) noexcept { return always_t<I>(); } template <int I> static constexpr always_t<I> query( never_t<I>) noexcept { return always_t<I>(); } template <typename Property> typename enable_if< can_query<const Executor&, Property>::value, typename query_result<const Executor&, Property>::type >::type query(const Property& p) const noexcept((( is_nothrow_query<const Executor&, Property>::value))) { return boost::asio::query(executor_, p); } template <int I> typename enable_if< can_require<const Executor&, possibly_t<I> >::value, typename require_result<const Executor&, possibly_t<I> >::type >::type require(possibly_t<I>) const noexcept { return boost::asio::require(executor_, possibly_t<I>()); } template <int I> typename enable_if< can_require<const Executor&, never_t<I> >::value, typename require_result<const Executor&, never_t<I> >::type >::type require(never_t<I>) const noexcept { return boost::asio::require(executor_, never_t<I>()); } template <typename Property> typename enable_if< can_require<const Executor&, Property>::value, adapter<typename decay< typename require_result<const Executor&, Property>::type >::type> >::type require(const Property& p) const noexcept((( is_nothrow_require<const Executor&, Property>::value))) { return adapter<typename decay< typename require_result<const Executor&, Property>::type >::type>(0, boost::asio::require(executor_, p)); } template <typename Property> typename enable_if< can_prefer<const Executor&, Property>::value, adapter<typename decay< typename prefer_result<const Executor&, Property>::type >::type> >::type prefer(const Property& p) const noexcept((( is_nothrow_prefer<const Executor&, Property>::value))) { return adapter<typename decay< typename prefer_result<const Executor&, Property>::type >::type>(0, boost::asio::prefer(executor_, p)); } template <typename Function> typename enable_if< execution::can_execute<const Executor&, Function>::value >::type execute(Function&& f) const { blocking_adaptation::blocking_execute( executor_, static_cast<Function&&>(f)); } friend bool operator==(const adapter& a, const adapter& b) noexcept { return a.executor_ == b.executor_; } friend bool operator!=(const adapter& a, const adapter& b) noexcept { return a.executor_ != b.executor_; } private: Executor executor_; }; template <int I = 0> struct always_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 812 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = false; typedef blocking_t<I> polymorphic_query_result_type; constexpr always_t() { } template <typename T> struct query_member : traits::query_member< typename blocking_t<I>::template proxy<T>::type, always_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename blocking_t<I>::template static_proxy<T>::type, always_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(always_t::static_query<E>())> static constexpr const T static_query_v = always_t::static_query<E>(); static constexpr blocking_t<I> value() { return always_t(); } friend constexpr bool operator==( const always_t&, const always_t&) { return true; } friend constexpr bool operator!=( const always_t&, const always_t&) { return false; } friend constexpr bool operator==( const always_t&, const possibly_t<I>&) { return false; } friend constexpr bool operator!=( const always_t&, const possibly_t<I>&) { return true; } friend constexpr bool operator==( const always_t&, const never_t<I>&) { return false; } friend constexpr bool operator!=( const always_t&, const never_t<I>&) { return true; } template <typename Executor> friend adapter<Executor> require( const Executor& e, const always_t&, typename enable_if< is_executor<Executor>::value >::type* = 0, typename enable_if< traits::static_require< const Executor&, blocking_adaptation::allowed_t<0> >::is_valid >::type* = 0) { return adapter<Executor>(0, e); } }; template <int I> template <typename E, typename T> const T always_t<I>::static_query_v; template <int I> struct never_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 941 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef blocking_t<I> polymorphic_query_result_type; constexpr never_t() { } template <typename T> struct query_member : traits::query_member< typename blocking_t<I>::template proxy<T>::type, never_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename blocking_t<I>::template static_proxy<T>::type, never_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(never_t::static_query<E>())> static constexpr const T static_query_v = never_t::static_query<E>(); static constexpr blocking_t<I> value() { return never_t(); } friend constexpr bool operator==( const never_t&, const never_t&) { return true; } friend constexpr bool operator!=( const never_t&, const never_t&) { return false; } friend constexpr bool operator==( const never_t&, const possibly_t<I>&) { return false; } friend constexpr bool operator!=( const never_t&, const possibly_t<I>&) { return true; } friend constexpr bool operator==( const never_t&, const always_t<I>&) { return false; } friend constexpr bool operator!=( const never_t&, const always_t<I>&) { return true; } }; template <int I> template <typename E, typename T> const T never_t<I>::static_query_v; } } typedef detail::blocking_t<> blocking_t; constexpr blocking_t blocking; } # 1126 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 namespace traits { # 1593 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1601 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 namespace boost { namespace asio { # 228 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 namespace execution { template <typename... SupportableProperties> class any_executor; # 249 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 template <typename U> struct context_as_t; namespace detail { template <typename T, typename = void> struct is_requirable : false_type {}; template <typename T> struct is_requirable<T, typename enable_if<T::is_requirable>::type> : true_type {}; template <typename T, typename = void> struct is_preferable : false_type {}; template <typename T> struct is_preferable<T, typename enable_if<T::is_preferable>::type> : true_type {}; template <typename T> struct is_context_as : false_type {}; template <typename U> struct is_context_as<context_as_t<U> > : true_type {}; template <std::size_t I, typename Props> struct supportable_properties; template <std::size_t I, typename Prop> struct supportable_properties<I, void(Prop)> { template <typename T> struct is_valid_target : integral_constant<bool, ( is_requirable<Prop>::value ? can_require<T, Prop>::value : true ) && ( is_preferable<Prop>::value ? can_prefer<T, Prop>::value : true ) && ( !is_requirable<Prop>::value && !is_preferable<Prop>::value ? can_query<T, Prop>::value : true ) > { }; struct found { static constexpr bool value = true; typedef Prop type; typedef typename Prop::polymorphic_query_result_type query_result_type; static constexpr std::size_t index = I; }; struct not_found { static constexpr bool value = false; }; template <typename T> struct find_convertible_property : conditional< is_same<T, Prop>::value || is_convertible<T, Prop>::value, found, not_found >::type {}; template <typename T> struct find_convertible_requirable_property : conditional< is_requirable<Prop>::value && (is_same<T, Prop>::value || is_convertible<T, Prop>::value), found, not_found >::type {}; template <typename T> struct find_convertible_preferable_property : conditional< is_preferable<Prop>::value && (is_same<T, Prop>::value || is_convertible<T, Prop>::value), found, not_found >::type {}; struct find_context_as_property : conditional< is_context_as<Prop>::value, found, not_found >::type {}; }; template <std::size_t I, typename Head, typename... Tail> struct supportable_properties<I, void(Head, Tail...)> { template <typename T> struct is_valid_target : integral_constant<bool, ( supportable_properties<I, void(Head)>::template is_valid_target<T>::value && supportable_properties<I + 1, void(Tail...)>::template is_valid_target<T>::value ) > { }; template <typename T> struct find_convertible_property : conditional< is_convertible<T, Head>::value, typename supportable_properties<I, void(Head)>::found, typename supportable_properties<I + 1, void(Tail...)>::template find_convertible_property<T> >::type {}; template <typename T> struct find_convertible_requirable_property : conditional< is_requirable<Head>::value && is_convertible<T, Head>::value, typename supportable_properties<I, void(Head)>::found, typename supportable_properties<I + 1, void(Tail...)>::template find_convertible_requirable_property<T> >::type {}; template <typename T> struct find_convertible_preferable_property : conditional< is_preferable<Head>::value && is_convertible<T, Head>::value, typename supportable_properties<I, void(Head)>::found, typename supportable_properties<I + 1, void(Tail...)>::template find_convertible_preferable_property<T> >::type {}; struct find_context_as_property : conditional< is_context_as<Head>::value, typename supportable_properties<I, void(Head)>::found, typename supportable_properties<I + 1, void(Tail...)>::find_context_as_property >::type {}; }; # 484 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 template <typename T, typename Props> struct is_valid_target_executor : conditional< is_executor<T>::value, typename supportable_properties<0, Props>::template is_valid_target<T>, false_type >::type { }; template <typename Props> struct is_valid_target_executor<int, Props> : false_type { }; class shared_target_executor { public: template <typename E> shared_target_executor(E&& e, typename decay<E>::type*& target) { impl<typename decay<E>::type>* i = new impl<typename decay<E>::type>(static_cast<E&&>(e)); target = &i->ex_; impl_ = i; } template <typename E> shared_target_executor(std::nothrow_t, E&& e, typename decay<E>::type*& target) noexcept { impl<typename decay<E>::type>* i = new (std::nothrow) impl<typename decay<E>::type>( static_cast<E&&>(e)); target = i ? &i->ex_ : 0; impl_ = i; } shared_target_executor( const shared_target_executor& other) noexcept : impl_(other.impl_) { if (impl_) boost::asio::detail::ref_count_up(impl_->ref_count_); } shared_target_executor& operator=( const shared_target_executor& other) noexcept { impl_ = other.impl_; if (impl_) boost::asio::detail::ref_count_up(impl_->ref_count_); return *this; } shared_target_executor( shared_target_executor&& other) noexcept : impl_(other.impl_) { other.impl_ = 0; } shared_target_executor& operator=( shared_target_executor&& other) noexcept { impl_ = other.impl_; other.impl_ = 0; return *this; } ~shared_target_executor() { if (impl_) if (boost::asio::detail::ref_count_down(impl_->ref_count_)) delete impl_; } void* get() const noexcept { return impl_ ? impl_->get() : 0; } private: struct impl_base { impl_base() : ref_count_(1) {} virtual ~impl_base() {} virtual void* get() = 0; boost::asio::detail::atomic_count ref_count_; }; template <typename Executor> struct impl : impl_base { impl(Executor ex) : ex_(static_cast<Executor&&>(ex)) {} virtual void* get() { return &ex_; } Executor ex_; }; impl_base* impl_; }; class any_executor_base { public: any_executor_base() noexcept : object_fns_(0), target_(0), target_fns_(0) { } template < ::boost::asio::execution::executor Executor> any_executor_base(Executor ex, false_type) : target_fns_(target_fns_table<Executor>( any_executor_base::query_blocking(ex, can_query<const Executor&, const execution::blocking_t&>()) == execution::blocking.always)) { any_executor_base::construct_object(ex, integral_constant<bool, sizeof(Executor) <= sizeof(object_type) && alignment_of<Executor>::value <= alignment_of<object_type>::value >()); } template < ::boost::asio::execution::executor Executor> any_executor_base(std::nothrow_t, Executor ex, false_type) noexcept : target_fns_(target_fns_table<Executor>( any_executor_base::query_blocking(ex, can_query<const Executor&, const execution::blocking_t&>()) == execution::blocking.always)) { any_executor_base::construct_object(std::nothrow, ex, integral_constant<bool, sizeof(Executor) <= sizeof(object_type) && alignment_of<Executor>::value <= alignment_of<object_type>::value >()); if (target_ == 0) { object_fns_ = 0; target_fns_ = 0; } } template < ::boost::asio::execution::executor Executor> any_executor_base(Executor other, true_type) : object_fns_(object_fns_table<shared_target_executor>()), target_fns_(other.target_fns_) { Executor* p = 0; new (&object_) shared_target_executor( static_cast<Executor&&>(other), p); target_ = p->template target<void>(); } template < ::boost::asio::execution::executor Executor> any_executor_base(std::nothrow_t, Executor other, true_type) noexcept : object_fns_(object_fns_table<shared_target_executor>()), target_fns_(other.target_fns_) { Executor* p = 0; new (&object_) shared_target_executor( std::nothrow, static_cast<Executor&&>(other), p); if (p) target_ = p->template target<void>(); else { target_ = 0; object_fns_ = 0; target_fns_ = 0; } } any_executor_base(const any_executor_base& other) noexcept { if (!!other) { object_fns_ = other.object_fns_; target_fns_ = other.target_fns_; object_fns_->copy(*this, other); } else { object_fns_ = 0; target_ = 0; target_fns_ = 0; } } ~any_executor_base() noexcept { if (!!*this) object_fns_->destroy(*this); } any_executor_base& operator=( const any_executor_base& other) noexcept { if (this != &other) { if (!!*this) object_fns_->destroy(*this); if (!!other) { object_fns_ = other.object_fns_; target_fns_ = other.target_fns_; object_fns_->copy(*this, other); } else { object_fns_ = 0; target_ = 0; target_fns_ = 0; } } return *this; } any_executor_base& operator=(nullptr_t) noexcept { if (target_) object_fns_->destroy(*this); target_ = 0; object_fns_ = 0; target_fns_ = 0; return *this; } any_executor_base(any_executor_base&& other) noexcept { if (other.target_) { object_fns_ = other.object_fns_; target_fns_ = other.target_fns_; other.object_fns_ = 0; other.target_fns_ = 0; object_fns_->move(*this, other); other.target_ = 0; } else { object_fns_ = 0; target_ = 0; target_fns_ = 0; } } any_executor_base& operator=( any_executor_base&& other) noexcept { if (this != &other) { if (!!*this) object_fns_->destroy(*this); if (!!other) { object_fns_ = other.object_fns_; target_fns_ = other.target_fns_; other.object_fns_ = 0; other.target_fns_ = 0; object_fns_->move(*this, other); other.target_ = 0; } else { object_fns_ = 0; target_ = 0; target_fns_ = 0; } } return *this; } void swap(any_executor_base& other) noexcept { if (this != &other) { any_executor_base tmp(static_cast<any_executor_base&&>(other)); other = static_cast<any_executor_base&&>(*this); *this = static_cast<any_executor_base&&>(tmp); } } template <typename F> void execute(F&& f) const { if (target_) { if (target_fns_->blocking_execute != 0) { boost::asio::detail::non_const_lvalue<F> f2(f); target_fns_->blocking_execute(*this, function_view(f2.value)); } else { target_fns_->execute(*this, function(static_cast<F&&>(f), std::allocator<void>())); } } else { bad_executor ex; boost::asio::detail::throw_exception(ex); } } template <typename Executor> Executor* target() { return target_ && (is_same<Executor, void>::value || target_fns_->target_type() == target_type_ex<Executor>()) ? static_cast<Executor*>(target_) : 0; } template <typename Executor> const Executor* target() const { return target_ && (is_same<Executor, void>::value || target_fns_->target_type() == target_type_ex<Executor>()) ? static_cast<const Executor*>(target_) : 0; } const std::type_info& target_type() const { return target_ ? target_fns_->target_type() : typeid(void); } struct unspecified_bool_type_t {}; typedef void (*unspecified_bool_type)(unspecified_bool_type_t); static void unspecified_bool_true(unspecified_bool_type_t) {} operator unspecified_bool_type() const noexcept { return target_ ? &any_executor_base::unspecified_bool_true : 0; } bool operator!() const noexcept { return target_ == 0; } protected: bool equality_helper(const any_executor_base& other) const noexcept { if (target_ == other.target_) return true; if (target_ && !other.target_) return false; if (!target_ && other.target_) return false; if (target_fns_ != other.target_fns_) return false; return target_fns_->equal(*this, other); } template <typename Ex> Ex& object() { return *static_cast<Ex*>(static_cast<void*>(&object_)); } template <typename Ex> const Ex& object() const { return *static_cast<const Ex*>(static_cast<const void*>(&object_)); } struct object_fns { void (*destroy)(any_executor_base&); void (*copy)(any_executor_base&, const any_executor_base&); void (*move)(any_executor_base&, any_executor_base&); const void* (*target)(const any_executor_base&); }; static void destroy_shared(any_executor_base& ex) { typedef shared_target_executor type; ex.object<type>().~type(); } static void copy_shared(any_executor_base& ex1, const any_executor_base& ex2) { typedef shared_target_executor type; new (&ex1.object_) type(ex2.object<type>()); ex1.target_ = ex2.target_; } static void move_shared(any_executor_base& ex1, any_executor_base& ex2) { typedef shared_target_executor type; new (&ex1.object_) type(static_cast<type&&>(ex2.object<type>())); ex1.target_ = ex2.target_; ex2.object<type>().~type(); } static const void* target_shared(const any_executor_base& ex) { typedef shared_target_executor type; return ex.object<type>().get(); } template <typename Obj> static const object_fns* object_fns_table( typename enable_if< is_same<Obj, shared_target_executor>::value >::type* = 0) { static const object_fns fns = { &any_executor_base::destroy_shared, &any_executor_base::copy_shared, &any_executor_base::move_shared, &any_executor_base::target_shared }; return &fns; } template <typename Obj> static void destroy_object(any_executor_base& ex) { ex.object<Obj>().~Obj(); } template <typename Obj> static void copy_object(any_executor_base& ex1, const any_executor_base& ex2) { new (&ex1.object_) Obj(ex2.object<Obj>()); ex1.target_ = &ex1.object<Obj>(); } template <typename Obj> static void move_object(any_executor_base& ex1, any_executor_base& ex2) { new (&ex1.object_) Obj(static_cast<Obj&&>(ex2.object<Obj>())); ex1.target_ = &ex1.object<Obj>(); ex2.object<Obj>().~Obj(); } template <typename Obj> static const void* target_object(const any_executor_base& ex) { return &ex.object<Obj>(); } template <typename Obj> static const object_fns* object_fns_table( typename enable_if< !is_same<Obj, void>::value && !is_same<Obj, shared_target_executor>::value >::type* = 0) { static const object_fns fns = { &any_executor_base::destroy_object<Obj>, &any_executor_base::copy_object<Obj>, &any_executor_base::move_object<Obj>, &any_executor_base::target_object<Obj> }; return &fns; } typedef boost::asio::detail::executor_function function; typedef boost::asio::detail::executor_function_view function_view; struct target_fns { const std::type_info& (*target_type)(); bool (*equal)(const any_executor_base&, const any_executor_base&); void (*execute)(const any_executor_base&, function&&); void (*blocking_execute)(const any_executor_base&, function_view); }; template <typename Ex> static const std::type_info& target_type_ex() { return typeid(Ex); } # 992 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 template <typename Ex> static bool equal_ex(const any_executor_base& ex1, const any_executor_base& ex2) { const Ex* p1 = ex1.target<Ex>(); const Ex* p2 = ex2.target<Ex>(); if (p1 != 0 && p2 != 0) {} else { __builtin_unreachable(); }; return *p1 == *p2; } template <typename Ex> static void execute_ex(const any_executor_base& ex, function&& f) { const Ex* p = ex.target<Ex>(); if (p != 0) {} else { __builtin_unreachable(); }; execution::execute(*p, static_cast<function&&>(f)); } template <typename Ex> static void blocking_execute_ex(const any_executor_base& ex, function_view f) { const Ex* p = ex.target<Ex>(); if (p != 0) {} else { __builtin_unreachable(); }; execution::execute(*p, f); } template <typename Ex> static const target_fns* target_fns_table(bool is_always_blocking, typename enable_if< !is_same<Ex, void>::value >::type* = 0) { static const target_fns fns_with_execute = { &any_executor_base::target_type_ex<Ex>, &any_executor_base::equal_ex<Ex>, &any_executor_base::execute_ex<Ex>, 0 }; static const target_fns fns_with_blocking_execute = { &any_executor_base::target_type_ex<Ex>, &any_executor_base::equal_ex<Ex>, 0, &any_executor_base::blocking_execute_ex<Ex> }; return is_always_blocking ? &fns_with_blocking_execute : &fns_with_execute; } static void query_fn_void(void*, const void*, const void*) { bad_executor ex; boost::asio::detail::throw_exception(ex); } template <typename Ex, class Prop> static void query_fn_non_void(void*, const void* ex, const void* prop, typename enable_if< boost::asio::can_query<const Ex&, const Prop&>::value && is_same<typename Prop::polymorphic_query_result_type, void>::value >::type*) { boost::asio::query(*static_cast<const Ex*>(ex), *static_cast<const Prop*>(prop)); } template <typename Ex, class Prop> static void query_fn_non_void(void*, const void*, const void*, typename enable_if< !boost::asio::can_query<const Ex&, const Prop&>::value && is_same<typename Prop::polymorphic_query_result_type, void>::value >::type*) { } template <typename Ex, class Prop> static void query_fn_non_void(void* result, const void* ex, const void* prop, typename enable_if< boost::asio::can_query<const Ex&, const Prop&>::value && !is_same<typename Prop::polymorphic_query_result_type, void>::value && is_reference<typename Prop::polymorphic_query_result_type>::value >::type*) { *static_cast<typename remove_reference< typename Prop::polymorphic_query_result_type>::type**>(result) = &static_cast<typename Prop::polymorphic_query_result_type>( boost::asio::query(*static_cast<const Ex*>(ex), *static_cast<const Prop*>(prop))); } template <typename Ex, class Prop> static void query_fn_non_void(void*, const void*, const void*, typename enable_if< !boost::asio::can_query<const Ex&, const Prop&>::value && !is_same<typename Prop::polymorphic_query_result_type, void>::value && is_reference<typename Prop::polymorphic_query_result_type>::value >::type*) { std::terminate(); } template <typename Ex, class Prop> static void query_fn_non_void(void* result, const void* ex, const void* prop, typename enable_if< boost::asio::can_query<const Ex&, const Prop&>::value && !is_same<typename Prop::polymorphic_query_result_type, void>::value && is_scalar<typename Prop::polymorphic_query_result_type>::value >::type*) { *static_cast<typename Prop::polymorphic_query_result_type*>(result) = static_cast<typename Prop::polymorphic_query_result_type>( boost::asio::query(*static_cast<const Ex*>(ex), *static_cast<const Prop*>(prop))); } template <typename Ex, class Prop> static void query_fn_non_void(void* result, const void*, const void*, typename enable_if< !boost::asio::can_query<const Ex&, const Prop&>::value && !is_same<typename Prop::polymorphic_query_result_type, void>::value && is_scalar<typename Prop::polymorphic_query_result_type>::value >::type*) { *static_cast<typename Prop::polymorphic_query_result_type*>(result) = typename Prop::polymorphic_query_result_type(); } template <typename Ex, class Prop> static void query_fn_non_void(void* result, const void* ex, const void* prop, typename enable_if< boost::asio::can_query<const Ex&, const Prop&>::value && !is_same<typename Prop::polymorphic_query_result_type, void>::value && !is_reference<typename Prop::polymorphic_query_result_type>::value && !is_scalar<typename Prop::polymorphic_query_result_type>::value >::type*) { *static_cast<typename Prop::polymorphic_query_result_type**>(result) = new typename Prop::polymorphic_query_result_type( boost::asio::query(*static_cast<const Ex*>(ex), *static_cast<const Prop*>(prop))); } template <typename Ex, class Prop> static void query_fn_non_void(void* result, const void*, const void*, ...) { *static_cast<typename Prop::polymorphic_query_result_type**>(result) = new typename Prop::polymorphic_query_result_type(); } template <typename Ex, class Prop> static void query_fn_impl(void* result, const void* ex, const void* prop, typename enable_if< is_same<Ex, void>::value >::type*) { query_fn_void(result, ex, prop); } template <typename Ex, class Prop> static void query_fn_impl(void* result, const void* ex, const void* prop, typename enable_if< !is_same<Ex, void>::value >::type*) { query_fn_non_void<Ex, Prop>(result, ex, prop, 0); } template <typename Ex, class Prop> static void query_fn(void* result, const void* ex, const void* prop) { query_fn_impl<Ex, Prop>(result, ex, prop, 0); } template <typename Poly, typename Ex, class Prop> static Poly require_fn_impl(const void*, const void*, typename enable_if< is_same<Ex, void>::value >::type*) { bad_executor ex; boost::asio::detail::throw_exception(ex); return Poly(); } template <typename Poly, typename Ex, class Prop> static Poly require_fn_impl(const void* ex, const void* prop, typename enable_if< !is_same<Ex, void>::value && Prop::is_requirable >::type*) { return boost::asio::require(*static_cast<const Ex*>(ex), *static_cast<const Prop*>(prop)); } template <typename Poly, typename Ex, class Prop> static Poly require_fn_impl(const void*, const void*, ...) { return Poly(); } template <typename Poly, typename Ex, class Prop> static Poly require_fn(const void* ex, const void* prop) { return require_fn_impl<Poly, Ex, Prop>(ex, prop, 0); } template <typename Poly, typename Ex, class Prop> static Poly prefer_fn_impl(const void*, const void*, typename enable_if< is_same<Ex, void>::value >::type*) { bad_executor ex; boost::asio::detail::throw_exception(ex); return Poly(); } template <typename Poly, typename Ex, class Prop> static Poly prefer_fn_impl(const void* ex, const void* prop, typename enable_if< !is_same<Ex, void>::value && Prop::is_preferable >::type*) { return boost::asio::prefer(*static_cast<const Ex*>(ex), *static_cast<const Prop*>(prop)); } template <typename Poly, typename Ex, class Prop> static Poly prefer_fn_impl(const void*, const void*, ...) { return Poly(); } template <typename Poly, typename Ex, class Prop> static Poly prefer_fn(const void* ex, const void* prop) { return prefer_fn_impl<Poly, Ex, Prop>(ex, prop, 0); } template <typename Poly> struct prop_fns { void (*query)(void*, const void*, const void*); Poly (*require)(const void*, const void*); Poly (*prefer)(const void*, const void*); }; private: template <typename Executor> static execution::blocking_t query_blocking(const Executor& ex, true_type) { return boost::asio::query(ex, execution::blocking); } template <typename Executor> static execution::blocking_t query_blocking(const Executor&, false_type) { return execution::blocking_t(); } template <typename Executor> void construct_object(Executor& ex, true_type) { object_fns_ = object_fns_table<Executor>(); target_ = new (&object_) Executor(static_cast<Executor&&>(ex)); } template <typename Executor> void construct_object(Executor& ex, false_type) { object_fns_ = object_fns_table<shared_target_executor>(); Executor* p = 0; new (&object_) shared_target_executor( static_cast<Executor&&>(ex), p); target_ = p; } template <typename Executor> void construct_object(std::nothrow_t, Executor& ex, true_type) noexcept { object_fns_ = object_fns_table<Executor>(); target_ = new (&object_) Executor(static_cast<Executor&&>(ex)); } template <typename Executor> void construct_object(std::nothrow_t, Executor& ex, false_type) noexcept { object_fns_ = object_fns_table<shared_target_executor>(); Executor* p = 0; new (&object_) shared_target_executor( std::nothrow, static_cast<Executor&&>(ex), p); target_ = p; } public: typedef aligned_storage< sizeof(boost::asio::detail::shared_ptr<void>) + sizeof(void*), alignment_of<boost::asio::detail::shared_ptr<void> >::value >::type object_type; object_type object_; const object_fns* object_fns_; void* target_; const target_fns* target_fns_; }; template <typename Derived, typename Property, typename = void> struct any_executor_context { }; template <typename Derived, typename Property> struct any_executor_context<Derived, Property, typename enable_if<Property::value>::type> { typename Property::query_result_type context() const { return static_cast<const Derived*>(this)->query(typename Property::type()); } }; } template <> class any_executor<> : public detail::any_executor_base { public: any_executor() noexcept : detail::any_executor_base() { } any_executor(nullptr_t) noexcept : detail::any_executor_base() { } template <typename Executor> any_executor(Executor ex, typename enable_if< conditional< !is_same<Executor, any_executor>::value && !is_base_of<detail::any_executor_base, Executor>::value, is_executor<Executor>, false_type >::type::value >::type* = 0) : detail::any_executor_base( static_cast<Executor&&>(ex), false_type()) { } template <typename Executor> any_executor(std::nothrow_t, Executor ex, typename enable_if< conditional< !is_same<Executor, any_executor>::value && !is_base_of<detail::any_executor_base, Executor>::value, is_executor<Executor>, false_type >::type::value >::type* = 0) noexcept : detail::any_executor_base(std::nothrow, static_cast<Executor&&>(ex), false_type()) { } template <typename... OtherSupportableProperties> any_executor(any_executor<OtherSupportableProperties...> other) : detail::any_executor_base( static_cast<const detail::any_executor_base&>(other)) { } template <typename... OtherSupportableProperties> any_executor(std::nothrow_t, any_executor<OtherSupportableProperties...> other) noexcept : detail::any_executor_base( static_cast<const detail::any_executor_base&>(other)) { } # 1425 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 any_executor(const any_executor& other) noexcept : detail::any_executor_base( static_cast<const detail::any_executor_base&>(other)) { } any_executor(std::nothrow_t, const any_executor& other) noexcept : detail::any_executor_base( static_cast<const detail::any_executor_base&>(other)) { } any_executor& operator=(const any_executor& other) noexcept { if (this != &other) { detail::any_executor_base::operator=( static_cast<const detail::any_executor_base&>(other)); } return *this; } any_executor& operator=(nullptr_t p) noexcept { detail::any_executor_base::operator=(p); return *this; } any_executor(any_executor&& other) noexcept : detail::any_executor_base( static_cast<any_executor_base&&>( static_cast<any_executor_base&>(other))) { } any_executor(std::nothrow_t, any_executor&& other) noexcept : detail::any_executor_base( static_cast<any_executor_base&&>( static_cast<any_executor_base&>(other))) { } any_executor& operator=(any_executor&& other) noexcept { if (this != &other) { detail::any_executor_base::operator=( static_cast<detail::any_executor_base&&>( static_cast<detail::any_executor_base&>(other))); } return *this; } void swap(any_executor& other) noexcept { detail::any_executor_base::swap( static_cast<detail::any_executor_base&>(other)); } using detail::any_executor_base::execute; using detail::any_executor_base::target; using detail::any_executor_base::target_type; using detail::any_executor_base::operator unspecified_bool_type; using detail::any_executor_base::operator!; bool equality_helper(const any_executor& other) const noexcept { return any_executor_base::equality_helper(other); } template <typename AnyExecutor1, typename AnyExecutor2> friend typename enable_if< is_base_of<any_executor, AnyExecutor1>::value || is_base_of<any_executor, AnyExecutor2>::value, bool >::type operator==(const AnyExecutor1& a, const AnyExecutor2& b) noexcept { return static_cast<const any_executor&>(a).equality_helper(b); } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator==(const AnyExecutor& a, nullptr_t) noexcept { return !a; } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator==(nullptr_t, const AnyExecutor& b) noexcept { return !b; } template <typename AnyExecutor1, typename AnyExecutor2> friend typename enable_if< is_base_of<any_executor, AnyExecutor1>::value || is_base_of<any_executor, AnyExecutor2>::value, bool >::type operator!=(const AnyExecutor1& a, const AnyExecutor2& b) noexcept { return !static_cast<const any_executor&>(a).equality_helper(b); } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator!=(const AnyExecutor& a, nullptr_t) noexcept { return !!a; } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator!=(nullptr_t, const AnyExecutor& b) noexcept { return !!b; } }; inline void swap(any_executor<>& a, any_executor<>& b) noexcept { return a.swap(b); } template <typename... SupportableProperties> class any_executor : public detail::any_executor_base, public detail::any_executor_context< any_executor<SupportableProperties...>, typename detail::supportable_properties< 0, void(SupportableProperties...)>::find_context_as_property> { public: any_executor() noexcept : detail::any_executor_base(), prop_fns_(prop_fns_table<void>()) { } any_executor(nullptr_t) noexcept : detail::any_executor_base(), prop_fns_(prop_fns_table<void>()) { } template <typename Executor> any_executor(Executor ex, typename enable_if< conditional< !is_same<Executor, any_executor>::value && !is_base_of<detail::any_executor_base, Executor>::value, detail::is_valid_target_executor< Executor, void(SupportableProperties...)>, false_type >::type::value >::type* = 0) : detail::any_executor_base( static_cast<Executor&&>(ex), false_type()), prop_fns_(prop_fns_table<Executor>()) { } template <typename Executor> any_executor(std::nothrow_t, Executor ex, typename enable_if< conditional< !is_same<Executor, any_executor>::value && !is_base_of<detail::any_executor_base, Executor>::value, detail::is_valid_target_executor< Executor, void(SupportableProperties...)>, false_type >::type::value >::type* = 0) noexcept : detail::any_executor_base(std::nothrow, static_cast<Executor&&>(ex), false_type()), prop_fns_(prop_fns_table<Executor>()) { if (this->template target<void>() == 0) prop_fns_ = prop_fns_table<void>(); } template <typename... OtherSupportableProperties> any_executor(any_executor<OtherSupportableProperties...> other, typename enable_if< conditional< !is_same< any_executor<OtherSupportableProperties...>, any_executor >::value, typename detail::supportable_properties< 0, void(SupportableProperties...)>::template is_valid_target< any_executor<OtherSupportableProperties...> >, false_type >::type::value >::type* = 0) : detail::any_executor_base(static_cast<any_executor<OtherSupportableProperties...>&&> (other), true_type()), prop_fns_(prop_fns_table<any_executor<OtherSupportableProperties...> >()) { } template <typename... OtherSupportableProperties> any_executor(std::nothrow_t, any_executor<OtherSupportableProperties...> other, typename enable_if< conditional< !is_same< any_executor<OtherSupportableProperties...>, any_executor >::value, typename detail::supportable_properties< 0, void(SupportableProperties...)>::template is_valid_target< any_executor<OtherSupportableProperties...> >, false_type >::type::value >::type* = 0) noexcept : detail::any_executor_base(std::nothrow, static_cast<any_executor<OtherSupportableProperties...>&&> (other), true_type()), prop_fns_(prop_fns_table<any_executor<OtherSupportableProperties...> >()) { if (this->template target<void>() == 0) prop_fns_ = prop_fns_table<void>(); } any_executor(const any_executor& other) noexcept : detail::any_executor_base( static_cast<const detail::any_executor_base&>(other)), prop_fns_(other.prop_fns_) { } any_executor(std::nothrow_t, const any_executor& other) noexcept : detail::any_executor_base( static_cast<const detail::any_executor_base&>(other)), prop_fns_(other.prop_fns_) { } any_executor& operator=(const any_executor& other) noexcept { if (this != &other) { prop_fns_ = other.prop_fns_; detail::any_executor_base::operator=( static_cast<const detail::any_executor_base&>(other)); } return *this; } any_executor& operator=(nullptr_t p) noexcept { prop_fns_ = prop_fns_table<void>(); detail::any_executor_base::operator=(p); return *this; } any_executor(any_executor&& other) noexcept : detail::any_executor_base( static_cast<any_executor_base&&>( static_cast<any_executor_base&>(other))), prop_fns_(other.prop_fns_) { other.prop_fns_ = prop_fns_table<void>(); } any_executor(std::nothrow_t, any_executor&& other) noexcept : detail::any_executor_base( static_cast<any_executor_base&&>( static_cast<any_executor_base&>(other))), prop_fns_(other.prop_fns_) { other.prop_fns_ = prop_fns_table<void>(); } any_executor& operator=(any_executor&& other) noexcept { if (this != &other) { prop_fns_ = other.prop_fns_; detail::any_executor_base::operator=( static_cast<detail::any_executor_base&&>( static_cast<detail::any_executor_base&>(other))); } return *this; } void swap(any_executor& other) noexcept { if (this != &other) { detail::any_executor_base::swap( static_cast<detail::any_executor_base&>(other)); const prop_fns<any_executor>* tmp_prop_fns = other.prop_fns_; other.prop_fns_ = prop_fns_; prop_fns_ = tmp_prop_fns; } } using detail::any_executor_base::execute; using detail::any_executor_base::target; using detail::any_executor_base::target_type; using detail::any_executor_base::operator unspecified_bool_type; using detail::any_executor_base::operator!; bool equality_helper(const any_executor& other) const noexcept { return any_executor_base::equality_helper(other); } template <typename AnyExecutor1, typename AnyExecutor2> friend typename enable_if< is_base_of<any_executor, AnyExecutor1>::value || is_base_of<any_executor, AnyExecutor2>::value, bool >::type operator==(const AnyExecutor1& a, const AnyExecutor2& b) noexcept { return static_cast<const any_executor&>(a).equality_helper(b); } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator==(const AnyExecutor& a, nullptr_t) noexcept { return !a; } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator==(nullptr_t, const AnyExecutor& b) noexcept { return !b; } template <typename AnyExecutor1, typename AnyExecutor2> friend typename enable_if< is_base_of<any_executor, AnyExecutor1>::value || is_base_of<any_executor, AnyExecutor2>::value, bool >::type operator!=(const AnyExecutor1& a, const AnyExecutor2& b) noexcept { return !static_cast<const any_executor&>(a).equality_helper(b); } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator!=(const AnyExecutor& a, nullptr_t) noexcept { return !!a; } template <typename AnyExecutor> friend typename enable_if< is_same<AnyExecutor, any_executor>::value, bool >::type operator!=(nullptr_t, const AnyExecutor& b) noexcept { return !!b; } template <typename T> struct find_convertible_property : detail::supportable_properties< 0, void(SupportableProperties...)>::template find_convertible_property<T> {}; template <typename Property> void query(const Property& p, typename enable_if< is_same< typename find_convertible_property<Property>::query_result_type, void >::value >::type* = 0) const { if (!target_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } typedef find_convertible_property<Property> found; prop_fns_[found::index].query(0, object_fns_->target(*this), &static_cast<const typename found::type&>(p)); } template <typename Property> typename find_convertible_property<Property>::query_result_type query(const Property& p, typename enable_if< !is_same< typename find_convertible_property<Property>::query_result_type, void >::value && is_reference< typename find_convertible_property<Property>::query_result_type >::value >::type* = 0) const { if (!target_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } typedef find_convertible_property<Property> found; typename remove_reference< typename found::query_result_type>::type* result = 0; prop_fns_[found::index].query(&result, object_fns_->target(*this), &static_cast<const typename found::type&>(p)); return *result; } template <typename Property> typename find_convertible_property<Property>::query_result_type query(const Property& p, typename enable_if< !is_same< typename find_convertible_property<Property>::query_result_type, void >::value && is_scalar< typename find_convertible_property<Property>::query_result_type >::value >::type* = 0) const { if (!target_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } typedef find_convertible_property<Property> found; typename found::query_result_type result; prop_fns_[found::index].query(&result, object_fns_->target(*this), &static_cast<const typename found::type&>(p)); return result; } template <typename Property> typename find_convertible_property<Property>::query_result_type query(const Property& p, typename enable_if< !is_same< typename find_convertible_property<Property>::query_result_type, void >::value && !is_reference< typename find_convertible_property<Property>::query_result_type >::value && !is_scalar< typename find_convertible_property<Property>::query_result_type >::value >::type* = 0) const { if (!target_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } typedef find_convertible_property<Property> found; typename found::query_result_type* result; prop_fns_[found::index].query(&result, object_fns_->target(*this), &static_cast<const typename found::type&>(p)); return *boost::asio::detail::scoped_ptr< typename found::query_result_type>(result); } template <typename T> struct find_convertible_requirable_property : detail::supportable_properties< 0, void(SupportableProperties...)>::template find_convertible_requirable_property<T> {}; template <typename Property> any_executor require(const Property& p, typename enable_if< find_convertible_requirable_property<Property>::value >::type* = 0) const { if (!target_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } typedef find_convertible_requirable_property<Property> found; return prop_fns_[found::index].require(object_fns_->target(*this), &static_cast<const typename found::type&>(p)); } template <typename T> struct find_convertible_preferable_property : detail::supportable_properties< 0, void(SupportableProperties...)>::template find_convertible_preferable_property<T> {}; template <typename Property> any_executor prefer(const Property& p, typename enable_if< find_convertible_preferable_property<Property>::value >::type* = 0) const { if (!target_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } typedef find_convertible_preferable_property<Property> found; return prop_fns_[found::index].prefer(object_fns_->target(*this), &static_cast<const typename found::type&>(p)); } template <typename Ex> static const prop_fns<any_executor>* prop_fns_table() { static const prop_fns<any_executor> fns[] = { { &detail::any_executor_base::query_fn< Ex, SupportableProperties>, &detail::any_executor_base::require_fn< any_executor, Ex, SupportableProperties>, &detail::any_executor_base::prefer_fn< any_executor, Ex, SupportableProperties> }... }; return fns; } const prop_fns<any_executor>* prop_fns_; }; template <typename... SupportableProperties> inline void swap(any_executor<SupportableProperties...>& a, any_executor<SupportableProperties...>& b) noexcept { return a.swap(b); } # 2515 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 } namespace traits { # 2716 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 2724 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/any_executor.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/event.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/event.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class posix_event : private noncopyable { public: inline posix_event(); ~posix_event() { ::pthread_cond_destroy(&cond_); } template <typename Lock> void signal(Lock& lock) { this->signal_all(lock); } template <typename Lock> void signal_all(Lock& lock) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 57, __extension__ __PRETTY_FUNCTION__)); (void)lock; state_ |= 1; ::pthread_cond_broadcast(&cond_); } template <typename Lock> void unlock_and_signal_one(Lock& lock) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 67, __extension__ __PRETTY_FUNCTION__)); state_ |= 1; bool have_waiters = (state_ > 1); lock.unlock(); if (have_waiters) ::pthread_cond_signal(&cond_); } template <typename Lock> void unlock_and_signal_one_for_destruction(Lock& lock) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 79, __extension__ __PRETTY_FUNCTION__)); state_ |= 1; bool have_waiters = (state_ > 1); if (have_waiters) ::pthread_cond_signal(&cond_); lock.unlock(); } template <typename Lock> bool maybe_unlock_and_signal_one(Lock& lock) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 91, __extension__ __PRETTY_FUNCTION__)); state_ |= 1; if (state_ > 1) { lock.unlock(); ::pthread_cond_signal(&cond_); return true; } return false; } template <typename Lock> void clear(Lock& lock) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 106, __extension__ __PRETTY_FUNCTION__)); (void)lock; state_ &= ~std::size_t(1); } template <typename Lock> void wait(Lock& lock) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 115, __extension__ __PRETTY_FUNCTION__)); while ((state_ & 1) == 0) { state_ += 2; ::pthread_cond_wait(&cond_, &lock.mutex().mutex_); state_ -= 2; } } template <typename Lock> bool wait_for_usec(Lock& lock, long usec) { (static_cast <bool> (lock.locked()) ? void (0) : __assert_fail ("lock.locked()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp", 128, __extension__ __PRETTY_FUNCTION__)); if ((state_ & 1) == 0) { state_ += 2; timespec ts; # 143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 3 4 if (::clock_gettime(1, &ts) == 0) { ts.tv_sec += usec / 1000000; ts.tv_nsec += (usec % 1000000) * 1000; ts.tv_sec += ts.tv_nsec / 1000000000; ts.tv_nsec = ts.tv_nsec % 1000000000; ::pthread_cond_timedwait(&cond_, &lock.mutex().mutex_, &ts); } state_ -= 2; } return (state_ & 1) != 0; } private: ::pthread_cond_t cond_; std::size_t state_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 170 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/is_error_code_enum.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/is_error_code_enum.hpp" 3 4 namespace boost { namespace system { class error_code; template<class T> struct is_error_code_enum { static const bool value = false; }; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/config.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/requires_cxx11.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/requires_cxx11.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/pragma_message.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/requires_cxx11.hpp" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/config.hpp" 2 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 3 4 namespace boost { namespace system { class error_category; class error_code; class error_condition; std::size_t hash_value( error_code const & ec ); namespace detail { constexpr bool failed_impl( int ev, error_category const & cat ); class std_category; } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" class __attribute__((__visibility__("default"))) error_category { private: friend std::size_t hash_value( error_code const & ec ); friend constexpr bool detail::failed_impl( int ev, error_category const & cat ); friend class error_code; friend class error_condition; public: error_category( error_category const & ) = delete; error_category& operator=( error_category const & ) = delete; # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 3 4 private: boost::ulong_long_type id_; static std::size_t const stdcat_size_ = 4 * sizeof( void const* ); union { mutable unsigned char stdcat_[ stdcat_size_ ]; void const* stdcat_align_; }; mutable std::atomic< unsigned > sc_init_; protected: ~error_category() = default; # 121 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category.hpp" 3 4 constexpr error_category() noexcept: id_( 0 ), stdcat_(), sc_init_() { } explicit constexpr error_category( boost::ulong_long_type id ) noexcept: id_( id ), stdcat_(), sc_init_() { } public: virtual const char * name() const noexcept = 0; virtual error_condition default_error_condition( int ev ) const noexcept; virtual bool equivalent( int code, const error_condition & condition ) const noexcept; virtual bool equivalent( const error_code & code, int condition ) const noexcept; virtual std::string message( int ev ) const = 0; virtual char const * message( int ev, char * buffer, std::size_t len ) const noexcept; virtual bool failed( int ev ) const noexcept { return ev != 0; } friend constexpr bool operator==( error_category const & lhs, error_category const & rhs ) noexcept { return rhs.id_ == 0? &lhs == &rhs: lhs.id_ == rhs.id_; } friend constexpr bool operator!=( error_category const & lhs, error_category const & rhs ) noexcept { return !( lhs == rhs ); } friend constexpr bool operator<( error_category const & lhs, error_category const & rhs ) noexcept { if( lhs.id_ < rhs.id_ ) { return true; } if( lhs.id_ > rhs.id_ ) { return false; } if( rhs.id_ != 0 ) { return false; } return std::less<error_category const *>()( &lhs, &rhs ); } void init_stdcat() const; operator std::error_category const & () const __attribute__((__visibility__("default"))); }; #pragma GCC diagnostic pop namespace detail { static const boost::ulong_long_type generic_category_id = ( boost::ulong_long_type( 0xB2AB117A ) << 32 ) + 0x257EDFD0; static const boost::ulong_long_type system_category_id = generic_category_id + 1; static const boost::ulong_long_type interop_category_id = generic_category_id + 2; constexpr inline bool failed_impl( int ev, error_category const & cat ) { if( cat.id_ == system_category_id || cat.id_ == generic_category_id ) { return ev != 0; } else { return cat.failed( ev ); } } } } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category_message.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category_message.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category_message.hpp" 2 3 4 namespace boost { namespace system { namespace detail { inline char const * strerror_r_helper( char const * r, char const * ) noexcept { return r; } inline char const * strerror_r_helper( int r, char const * buffer ) noexcept { return r == 0? buffer: "Unknown error"; } inline char const * generic_error_category_message( int ev, char * buffer, std::size_t len ) noexcept { return strerror_r_helper( strerror_r( ev, buffer, len ), buffer ); } inline std::string generic_error_category_message( int ev ) { char buffer[ 128 ]; return generic_error_category_message( ev, buffer, sizeof( buffer ) ); } # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category_message.hpp" 3 4 } } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category.hpp" 2 3 4 namespace boost { namespace system { namespace detail { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" class __attribute__((__visibility__("default"))) generic_error_category: public error_category { public: constexpr generic_error_category() noexcept: error_category( detail::generic_category_id ) { } const char * name() const noexcept override { return "generic"; } std::string message( int ev ) const override; char const * message( int ev, char * buffer, std::size_t len ) const noexcept override; }; #pragma GCC diagnostic pop inline char const * generic_error_category::message( int ev, char * buffer, std::size_t len ) const noexcept { return generic_error_category_message( ev, buffer, len ); } inline std::string generic_error_category::message( int ev ) const { return generic_error_category_message( ev ); } } namespace detail { template<class T> struct __attribute__((__visibility__("default"))) generic_cat_holder { static constexpr generic_error_category instance{}; }; } constexpr error_category const & generic_category() noexcept { return detail::generic_cat_holder<void>::instance; } # 119 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/generic_category.hpp" 3 4 } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/enable_if.hpp" 1 3 4 namespace boost { namespace system { namespace detail { template<bool C, class T = void> struct enable_if { typedef T type; }; template<class T> struct enable_if<false, T> { }; } } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/is_same.hpp" 1 3 4 namespace boost { namespace system { namespace detail { template<class T1, class T2> struct is_same { enum _vt { value = 0 }; }; template<class T> struct is_same<T, T> { enum _vt { value = 1 }; }; } } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/errc.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/errc.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/is_error_condition_enum.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/is_error_condition_enum.hpp" 3 4 namespace boost { namespace system { class error_condition; template<class T> struct is_error_condition_enum { static const bool value = false; }; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/errc.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/cerrno.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/cerrno.hpp" 3 4 # 1 "/usr/include/c++/13/cerrno" 1 3 4 # 39 "/usr/include/c++/13/cerrno" 3 4 # 40 "/usr/include/c++/13/cerrno" 3 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/cerrno.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/errc.hpp" 2 3 4 namespace boost { namespace system { namespace errc { enum errc_t { success = 0, address_family_not_supported = 97, address_in_use = 98, address_not_available = 99, already_connected = 106, argument_list_too_long = 7, argument_out_of_domain = 33, bad_address = 14, bad_file_descriptor = 9, bad_message = 74, broken_pipe = 32, connection_aborted = 103, connection_already_in_progress = 114, connection_refused = 111, connection_reset = 104, cross_device_link = 18, destination_address_required = 89, device_or_resource_busy = 16, directory_not_empty = 39, executable_format_error = 8, file_exists = 17, file_too_large = 27, filename_too_long = 36, function_not_supported = 38, host_unreachable = 113, identifier_removed = 43, illegal_byte_sequence = 84, inappropriate_io_control_operation = 25, interrupted = 4, invalid_argument = 22, invalid_seek = 29, io_error = 5, is_a_directory = 21, message_size = 90, network_down = 100, network_reset = 102, network_unreachable = 101, no_buffer_space = 105, no_child_process = 10, no_link = 67, no_lock_available = 37, no_message_available = 61, no_message = 42, no_protocol_option = 92, no_space_on_device = 28, no_stream_resources = 63, no_such_device_or_address = 6, no_such_device = 19, no_such_file_or_directory = 2, no_such_process = 3, not_a_directory = 20, not_a_socket = 88, not_a_stream = 60, not_connected = 107, not_enough_memory = 12, not_supported = 95, operation_canceled = 125, operation_in_progress = 115, operation_not_permitted = 1, operation_not_supported = 95, operation_would_block = 11, owner_dead = 130, permission_denied = 13, protocol_error = 71, protocol_not_supported = 93, read_only_file_system = 30, resource_deadlock_would_occur = 35, resource_unavailable_try_again = 11, result_out_of_range = 34, state_not_recoverable = 131, stream_timeout = 62, text_file_busy = 26, timed_out = 110, too_many_files_open_in_system = 23, too_many_files_open = 24, too_many_links = 31, too_many_symbolic_link_levels = 40, value_too_large = 75, wrong_protocol_type = 91 }; } # 117 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/errc.hpp" 3 4 template<> struct is_error_condition_enum<errc::errc_t> { static const bool value = true; }; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/append_int.hpp" 1 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/snprintf.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/snprintf.hpp" 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/snprintf.hpp" 2 3 4 # 1 "/usr/include/c++/13/cstdarg" 1 3 4 # 39 "/usr/include/c++/13/cstdarg" 3 4 # 40 "/usr/include/c++/13/cstdarg" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stdarg.h" 1 3 4 # 44 "/usr/include/c++/13/cstdarg" 2 3 # 53 "/usr/include/c++/13/cstdarg" 3 namespace std { using ::va_list; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/snprintf.hpp" 2 3 4 namespace boost { namespace system { namespace detail { # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/snprintf.hpp" 3 4 __attribute__((__format__ (__printf__, 3, 4))) inline void snprintf( char * buffer, std::size_t len, char const * format, ... ) { va_list args; __builtin_va_start(args,format); std::vsnprintf( buffer, len, format, args ); __builtin_va_end(args); } } } } # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/append_int.hpp" 2 3 4 namespace boost { namespace system { namespace detail { inline void append_int( std::string& s, int v ) { char buffer[ 32 ]; detail::snprintf( buffer, sizeof( buffer ), ":%d", v ); s += buffer; } } } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 2 3 4 namespace boost { namespace system { namespace detail { struct generic_value_tag { int value; constexpr explicit generic_value_tag( int v ): value( v ) {} }; } class error_condition { private: int val_; error_category const * cat_; private: boost::ulong_long_type cat_id() const noexcept { return cat_? cat_->id_: detail::generic_category_id; } public: constexpr error_condition() noexcept: val_( 0 ), cat_( 0 ) { } constexpr error_condition( int val, const error_category & cat ) noexcept: val_( val ), cat_( &cat ) { } constexpr explicit error_condition( boost::system::detail::generic_value_tag vt ) noexcept: val_( vt.value ), cat_( 0 ) { } template<class ErrorConditionEnum> constexpr error_condition( ErrorConditionEnum e, typename detail::enable_if< is_error_condition_enum<ErrorConditionEnum>::value && !boost::system::detail::is_same<ErrorConditionEnum, errc::errc_t>::value >::type* = 0) noexcept { *this = make_error_condition( e ); } template<class ErrorConditionEnum> constexpr error_condition( ErrorConditionEnum e, typename detail::enable_if<boost::system::detail::is_same<ErrorConditionEnum, errc::errc_t>::value>::type* = 0) noexcept: val_( e ), cat_( 0 ) { } constexpr void assign( int val, const error_category & cat ) noexcept { val_ = val; cat_ = &cat; } template<typename ErrorConditionEnum> constexpr typename detail::enable_if<is_error_condition_enum<ErrorConditionEnum>::value, error_condition>::type & operator=( ErrorConditionEnum val ) noexcept { *this = error_condition( val ); return *this; } constexpr void clear() noexcept { val_ = 0; cat_ = 0; } constexpr int value() const noexcept { return val_; } constexpr const error_category & category() const noexcept { return cat_? *cat_: generic_category(); } std::string message() const { if( cat_ ) { return cat_->message( value() ); } else { return detail::generic_error_category_message( value() ); } } char const * message( char * buffer, std::size_t len ) const noexcept { if( cat_ ) { return cat_->message( value(), buffer, len ); } else { return detail::generic_error_category_message( value(), buffer, len ); } } constexpr bool failed() const noexcept { if( cat_ ) { return detail::failed_impl( val_, *cat_ ); } else { return val_ != 0; } } constexpr explicit operator bool() const noexcept { return failed(); } # 189 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_condition.hpp" 3 4 constexpr inline friend bool operator==( const error_condition & lhs, const error_condition & rhs ) noexcept { if( lhs.val_ != rhs.val_ ) { return false; } else if( lhs.cat_ == 0 ) { return rhs.cat_id() == detail::generic_category_id; } else if( rhs.cat_ == 0 ) { return lhs.cat_id() == detail::generic_category_id; } else { return *lhs.cat_ == *rhs.cat_; } } constexpr inline friend bool operator<( const error_condition & lhs, const error_condition & rhs ) noexcept { error_category const& lcat = lhs.category(); error_category const& rcat = rhs.category(); return lcat < rcat || ( lcat == rcat && lhs.val_ < rhs.val_ ); } constexpr inline friend bool operator!=( const error_condition & lhs, const error_condition & rhs ) noexcept { return !( lhs == rhs ); } operator std::error_condition () const { if( cat_ ) { return std::error_condition( val_, *cat_ ); } else { return std::error_condition( val_, std::generic_category() ); } } inline friend bool operator==( std::error_code const & lhs, error_condition const & rhs ) noexcept { return lhs == static_cast< std::error_condition >( rhs ); } inline friend bool operator==( error_condition const & lhs, std::error_code const & rhs ) noexcept { return static_cast< std::error_condition >( lhs ) == rhs; } inline friend bool operator!=( std::error_code const & lhs, error_condition const & rhs ) noexcept { return !( lhs == rhs ); } inline friend bool operator!=( error_condition const & lhs, std::error_code const & rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> constexpr inline friend bool operator==( error_condition const & lhs, E rhs ) noexcept { return lhs == make_error_condition( rhs ); } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> constexpr inline friend bool operator==( E lhs, error_condition const & rhs ) noexcept { return make_error_condition( lhs ) == rhs; } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> constexpr inline friend bool operator!=( error_condition const & lhs, E rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> constexpr inline friend bool operator!=( E lhs, error_condition const & rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> inline friend bool operator==( error_condition const & lhs, E rhs ) noexcept { return lhs == make_error_code( rhs ); } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> inline friend bool operator==( E lhs, error_condition const & rhs ) noexcept { return make_error_code( lhs ) == rhs; } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> inline friend bool operator!=( error_condition const & lhs, E rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> inline friend bool operator!=( E lhs, error_condition const & rhs ) noexcept { return !( lhs == rhs ); } std::string to_string() const { std::string r( "cond:" ); if( cat_ ) { r += cat_->name(); } else { r += "generic"; } detail::append_int( r, value() ); return r; } template<class Ch, class Tr> inline friend std::basic_ostream<Ch, Tr>& operator<< (std::basic_ostream<Ch, Tr>& os, error_condition const & en) { os << en.to_string(); return os; } }; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category.hpp" 3 4 namespace boost { namespace system { namespace detail { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" class __attribute__((__visibility__("default"))) system_error_category: public error_category { public: constexpr system_error_category() noexcept: error_category( detail::system_category_id ) { } const char * name() const noexcept override { return "system"; } error_condition default_error_condition( int ev ) const noexcept override; std::string message( int ev ) const override; char const * message( int ev, char * buffer, std::size_t len ) const noexcept override; }; #pragma GCC diagnostic pop } namespace detail { template<class T> struct __attribute__((__visibility__("default"))) system_cat_holder { static constexpr system_error_category instance{}; }; } constexpr error_category const & system_category() noexcept { return detail::system_cat_holder<void>::instance; } # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category.hpp" 3 4 } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_impl.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_message.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_message.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/api_config.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_message.hpp" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_message.hpp" 3 4 namespace boost { namespace system { namespace detail { inline std::string system_error_category_message( int ev ) { return generic_error_category_message( ev ); } inline char const * system_error_category_message( int ev, char * buffer, std::size_t len ) noexcept { return generic_error_category_message( ev, buffer, len ); } } } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_impl.hpp" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/system_category_impl.hpp" 3 4 inline boost::system::error_condition boost::system::detail::system_error_category::default_error_condition( int ev ) const noexcept { return error_condition( boost::system::detail::generic_value_tag( ev ) ); } inline std::string boost::system::detail::system_error_category::message( int ev ) const { return system_error_category_message( ev ); } inline char const * boost::system::detail::system_error_category::message( int ev, char * buffer, std::size_t len ) const noexcept { return system_error_category_message( ev, buffer, len ); } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/interop_category.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/interop_category.hpp" 3 4 namespace boost { namespace system { namespace detail { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" class __attribute__((__visibility__("default"))) interop_error_category: public error_category { public: constexpr interop_error_category() noexcept: error_category( detail::interop_category_id ) { } const char * name() const noexcept override { return "std:unknown"; } std::string message( int ev ) const override; char const * message( int ev, char * buffer, std::size_t len ) const noexcept override; }; #pragma GCC diagnostic pop inline char const * interop_error_category::message( int ev, char * buffer, std::size_t len ) const noexcept { detail::snprintf( buffer, len, "Unknown interop error %d", ev ); return buffer; } inline std::string interop_error_category::message( int ev ) const { char buffer[ 48 ]; return message( ev, buffer, sizeof( buffer ) ); } template<class T> struct __attribute__((__visibility__("default"))) interop_cat_holder { static constexpr interop_error_category instance{}; }; constexpr error_category const & interop_category() noexcept { return interop_cat_holder<void>::instance; } # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/interop_category.hpp" 3 4 } } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/std_category.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/std_category.hpp" 3 4 namespace boost { namespace system { namespace detail { template<unsigned Id> struct id_wrapper {}; class __attribute__((__visibility__("default"))) std_category: public std::error_category { private: boost::system::error_category const * pc_; public: boost::system::error_category const & original_category() const noexcept { return *pc_; } public: template<unsigned Id> explicit std_category( boost::system::error_category const * pc, id_wrapper<Id> ): pc_( pc ) { # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/std_category.hpp" 3 4 } const char * name() const noexcept override { return pc_->name(); } std::string message( int ev ) const override { return pc_->message( ev ); } std::error_condition default_error_condition( int ev ) const noexcept override { return pc_->default_error_condition( ev ); } inline bool equivalent( int code, const std::error_condition & condition ) const noexcept override; inline bool equivalent( const std::error_code & code, int condition ) const noexcept override; }; } } } # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 2 3 4 # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 3 4 namespace boost { namespace system { # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 3 4 bool operator==( const error_code & code, const error_condition & condition ) noexcept; std::size_t hash_value( error_code const & ec ); class error_code { private: friend bool operator==( const error_code & code, const error_condition & condition ) noexcept; friend std::size_t hash_value( error_code const & ec ); private: struct data { int val_; const error_category * cat_; }; union { data d1_; unsigned char d2_[ sizeof(std::error_code) ]; }; boost::uintptr_t lc_flags_; private: char const* category_name() const noexcept { if( lc_flags_ == 0 ) { return "system"; } else if( lc_flags_ == 1 ) { return "std:unknown"; } else { return d1_.cat_->name(); } } public: constexpr error_code() noexcept: d1_(), lc_flags_( 0 ) { } constexpr error_code( int val, const error_category & cat ) noexcept: d1_(), lc_flags_( 2 + detail::failed_impl( val, cat ) ) { d1_.val_ = val; d1_.cat_ = &cat; } error_code( int val, const error_category & cat, source_location const * loc ) noexcept: d1_(), lc_flags_( ( loc? reinterpret_cast<boost::uintptr_t>( loc ): 2 ) | +detail::failed_impl( val, cat ) ) { d1_.val_ = val; d1_.cat_ = &cat; } template<class ErrorCodeEnum> constexpr error_code( ErrorCodeEnum e, typename detail::enable_if< is_error_code_enum<ErrorCodeEnum>::value || std::is_error_code_enum<ErrorCodeEnum>::value >::type* = 0 ) noexcept: d1_(), lc_flags_( 0 ) { *this = make_error_code( e ); } error_code( error_code const& ec, source_location const * loc ) noexcept: d1_(), lc_flags_( 0 ) { *this = ec; if( ec.lc_flags_ != 0 && ec.lc_flags_ != 1 ) { lc_flags_ = ( loc? reinterpret_cast<boost::uintptr_t>( loc ): 2 ) | ( ec.lc_flags_ & 1 ); } } error_code( std::error_code const& ec ) noexcept: d1_(), lc_flags_( 0 ) { if( detail::std_category const* pc2 = dynamic_cast< detail::std_category const* >( &ec.category() ) ) { *this = boost::system::error_code( ec.value(), pc2->original_category() ); } else { ::new( d2_ ) std::error_code( ec ); lc_flags_ = 1; } } constexpr void assign( int val, const error_category & cat ) noexcept { *this = error_code( val, cat ); } void assign( int val, const error_category & cat, source_location const * loc ) noexcept { *this = error_code( val, cat, loc ); } void assign( error_code const& ec, source_location const * loc ) noexcept { *this = error_code( ec, loc ); } template<typename ErrorCodeEnum> constexpr typename detail::enable_if<is_error_code_enum<ErrorCodeEnum>::value, error_code>::type & operator=( ErrorCodeEnum val ) noexcept { *this = make_error_code( val ); return *this; } constexpr void clear() noexcept { *this = error_code(); } constexpr int value() const noexcept { if( lc_flags_ != 1 ) { return d1_.val_; } else { std::error_code const& ec = *reinterpret_cast<std::error_code const*>( d2_ ); unsigned cv = static_cast<unsigned>( ec.value() ); unsigned ch = static_cast<unsigned>( reinterpret_cast<boost::uintptr_t>( &ec.category() ) % 2097143 ); return static_cast<int>( cv + 1000 * ch ); } } constexpr const error_category & category() const noexcept { if( lc_flags_ == 0 ) { return system_category(); } else if( lc_flags_ == 1 ) { return detail::interop_category(); } else { return *d1_.cat_; } } error_condition default_error_condition() const noexcept { return category().default_error_condition( value() ); } std::string message() const { if( lc_flags_ == 1 ) { std::error_code const& ec = *reinterpret_cast<std::error_code const*>( d2_ ); return ec.message(); } if( lc_flags_ == 0 ) { return detail::system_error_category_message( value() ); } else { return category().message( value() ); } } char const * message( char * buffer, std::size_t len ) const noexcept { if( lc_flags_ == 1 ) { std::error_code const& ec = *reinterpret_cast<std::error_code const*>( d2_ ); try { detail::snprintf( buffer, len, "%s", ec.message().c_str() ); return buffer; } catch( ... ) { detail::snprintf( buffer, len, "No message text available for error std:%s:%d", ec.category().name(), ec.value() ); return buffer; } } if( lc_flags_ == 0 ) { return detail::system_error_category_message( value(), buffer, len ); } else { return category().message( value(), buffer, len ); } } constexpr bool failed() const noexcept { if( lc_flags_ & 1 ) { if( lc_flags_ == 1 ) { std::error_code const& ec = *reinterpret_cast<std::error_code const*>( d2_ ); return ec.value() != 0; } return true; } else { return false; } } constexpr explicit operator bool() const noexcept { return failed(); } # 362 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 3 4 bool has_location() const noexcept { return lc_flags_ >= 4; } source_location const & location() const noexcept { static constexpr source_location loc; return lc_flags_ >= 4? *reinterpret_cast<source_location const*>( lc_flags_ &~ static_cast<boost::uintptr_t>( 1 ) ): loc; } private: friend class error_category; constexpr bool equals( int val, error_category const& cat ) const noexcept { if( lc_flags_ == 0 ) { return val == 0 && cat.id_ == detail::system_category_id; } else if( lc_flags_ == 1 ) { return cat.id_ == detail::interop_category_id && val == value(); } else { return val == d1_.val_ && cat == *d1_.cat_; } } public: constexpr inline friend bool operator==( const error_code & lhs, const error_code & rhs ) noexcept { bool s1 = lhs.lc_flags_ == 1; bool s2 = rhs.lc_flags_ == 1; if( s1 != s2 ) return false; if( s1 && s2 ) { std::error_code const& e1 = *reinterpret_cast<std::error_code const*>( lhs.d2_ ); std::error_code const& e2 = *reinterpret_cast<std::error_code const*>( rhs.d2_ ); return e1 == e2; } else { return lhs.value() == rhs.value() && lhs.category() == rhs.category(); } } constexpr inline friend bool operator<( const error_code & lhs, const error_code & rhs ) noexcept { bool s1 = lhs.lc_flags_ == 1; bool s2 = rhs.lc_flags_ == 1; if( s1 < s2 ) return true; if( s2 < s1 ) return false; if( s1 && s2 ) { std::error_code const& e1 = *reinterpret_cast<std::error_code const*>( lhs.d2_ ); std::error_code const& e2 = *reinterpret_cast<std::error_code const*>( rhs.d2_ ); return e1 < e2; } else { return lhs.category() < rhs.category() || (lhs.category() == rhs.category() && lhs.value() < rhs.value()); } } constexpr inline friend bool operator!=( const error_code & lhs, const error_code & rhs ) noexcept { return !( lhs == rhs ); } inline friend bool operator==( std::error_code const & lhs, error_code const & rhs ) noexcept { return lhs == static_cast< std::error_code >( rhs ); } inline friend bool operator==( error_code const & lhs, std::error_code const & rhs ) noexcept { return static_cast< std::error_code >( lhs ) == rhs; } inline friend bool operator!=( std::error_code const & lhs, error_code const & rhs ) noexcept { return !( lhs == rhs ); } inline friend bool operator!=( error_code const & lhs, std::error_code const & rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> inline friend bool operator==( error_code const & lhs, E rhs ) noexcept { return lhs == make_error_condition( rhs ); } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> inline friend bool operator==( E lhs, error_code const & rhs ) noexcept { return make_error_condition( lhs ) == rhs; } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> inline friend bool operator!=( error_code const & lhs, E rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N = typename detail::enable_if<std::is_error_condition_enum<E>::value>::type> inline friend bool operator!=( E lhs, error_code const & rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> constexpr inline friend bool operator==( error_code const & lhs, E rhs ) noexcept { return lhs == make_error_code( rhs ); } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> constexpr inline friend bool operator==( E lhs, error_code const & rhs ) noexcept { return make_error_code( lhs ) == rhs; } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> constexpr inline friend bool operator!=( error_code const & lhs, E rhs ) noexcept { return !( lhs == rhs ); } template<class E, class N1 = void, class N2 = typename detail::enable_if<std::is_error_code_enum<E>::value>::type> constexpr inline friend bool operator!=( E lhs, error_code const & rhs ) noexcept { return !( lhs == rhs ); } # 554 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 3 4 operator std::error_code () const { if( lc_flags_ == 1 ) { return *reinterpret_cast<std::error_code const*>( d2_ ); } else if( lc_flags_ == 0 ) { return std::error_code(); } else { return std::error_code( d1_.val_, *d1_.cat_ ); } } operator std::error_code () { return const_cast<error_code const&>( *this ); } template<class T, class E = typename detail::enable_if<detail::is_same<T, std::error_code>::value>::type> operator T& () { if( lc_flags_ != 1 ) { std::error_code e2( *this ); ::new( d2_ ) std::error_code( e2 ); lc_flags_ = 1; } return *reinterpret_cast<std::error_code*>( d2_ ); } # 608 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_code.hpp" 3 4 std::string to_string() const { if( lc_flags_ == 1 ) { std::error_code const& e2 = *reinterpret_cast<std::error_code const*>( d2_ ); std::string r( "std:" ); r += e2.category().name(); detail::append_int( r, e2.value() ); return r; } else { std::string r = category_name(); detail::append_int( r, value() ); return r; } } template<class Ch, class Tr> inline friend std::basic_ostream<Ch, Tr>& operator<< (std::basic_ostream<Ch, Tr>& os, error_code const & ec) { return os << ec.to_string().c_str(); } std::string what() const { std::string r = message(); r += " ["; r += to_string(); if( has_location() ) { r += " at "; r += location().to_string(); } r += "]"; return r; } }; inline bool operator==( const error_code & code, const error_condition & condition ) noexcept { if( code.lc_flags_ == 1 ) { return static_cast<std::error_code>( code ) == static_cast<std::error_condition>( condition ); } else { return code.category().equivalent( code.value(), condition ) || condition.category().equivalent( code, condition.value() ); } } inline bool operator==( const error_condition & condition, const error_code & code ) noexcept { return code == condition; } inline bool operator!=( const error_code & lhs, const error_condition & rhs ) noexcept { return !( lhs == rhs ); } inline bool operator!=( const error_condition & lhs, const error_code & rhs ) noexcept { return !( lhs == rhs ); } inline std::size_t hash_value( error_code const & ec ) { if( ec.lc_flags_ == 1 ) { std::error_code const& e2 = *reinterpret_cast<std::error_code const*>( ec.d2_ ); return std::hash<std::error_code>()( e2 ); } error_category const & cat = ec.category(); boost::ulong_long_type id_ = cat.id_; if( id_ == 0 ) { id_ = reinterpret_cast<boost::uintptr_t>( &cat ); } boost::ulong_long_type hv = ( boost::ulong_long_type( 0xCBF29CE4 ) << 32 ) + 0x84222325; boost::ulong_long_type const prime = ( boost::ulong_long_type( 0x00000100 ) << 32 ) + 0x000001B3; hv ^= id_; hv *= prime; hv ^= static_cast<unsigned>( ec.value() ); hv *= prime; return static_cast<std::size_t>( hv ); } } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_category.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_category.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 2 3 4 namespace boost { namespace system { inline error_condition error_category::default_error_condition( int ev ) const noexcept { return error_condition( ev, *this ); } inline bool error_category::equivalent( int code, const error_condition & condition ) const noexcept { return default_error_condition( code ) == condition; } inline bool error_category::equivalent( const error_code & code, int condition ) const noexcept { return code.equals( condition, *this ); } inline char const * error_category::message( int ev, char * buffer, std::size_t len ) const noexcept { if( len == 0 ) { return buffer; } if( len == 1 ) { buffer[0] = 0; return buffer; } try { std::string m = this->message( ev ); # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 3 4 std::strncpy( buffer, m.c_str(), len - 1 ); buffer[ len-1 ] = 0; return buffer; } catch( ... ) { detail::snprintf( buffer, len, "No message text available for error %d", ev ); return buffer; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/std_category_impl.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/std_category_impl.hpp" 3 4 namespace boost { namespace system { namespace detail { inline bool std_category::equivalent( int code, const std::error_condition & condition ) const noexcept { if( condition.category() == *this ) { boost::system::error_condition bn( condition.value(), *pc_ ); return pc_->equivalent( code, bn ); } else if( condition.category() == std::generic_category() || condition.category() == boost::system::generic_category() ) { boost::system::error_condition bn( condition.value(), boost::system::generic_category() ); return pc_->equivalent( code, bn ); } else if( std_category const* pc2 = dynamic_cast< std_category const* >( &condition.category() ) ) { boost::system::error_condition bn( condition.value(), *pc2->pc_ ); return pc_->equivalent( code, bn ); } else { return default_error_condition( code ) == condition; } } inline bool std_category::equivalent( const std::error_code & code, int condition ) const noexcept { if( code.category() == *this ) { boost::system::error_code bc( code.value(), *pc_ ); return pc_->equivalent( bc, condition ); } else if( code.category() == std::generic_category() || code.category() == boost::system::generic_category() ) { boost::system::error_code bc( code.value(), boost::system::generic_category() ); return pc_->equivalent( bc, condition ); } else if( std_category const* pc2 = dynamic_cast< std_category const* >( &code.category() ) ) { boost::system::error_code bc( code.value(), *pc2->pc_ ); return pc_->equivalent( bc, condition ); } else if( *pc_ == boost::system::generic_category() ) { return std::generic_category().equivalent( code, condition ); } else { return false; } } } } } # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/mutex.hpp" 1 3 4 # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/mutex.hpp" 3 4 # 1 "/usr/include/c++/13/mutex" 1 3 4 # 32 "/usr/include/c++/13/mutex" 3 4 # 33 "/usr/include/c++/13/mutex" 3 # 43 "/usr/include/c++/13/mutex" 3 # 1 "/usr/include/c++/13/bits/chrono.h" 1 3 # 33 "/usr/include/c++/13/bits/chrono.h" 3 # 34 "/usr/include/c++/13/bits/chrono.h" 3 # 1 "/usr/include/c++/13/ratio" 1 3 # 33 "/usr/include/c++/13/ratio" 3 # 34 "/usr/include/c++/13/ratio" 3 # 42 "/usr/include/c++/13/ratio" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 56 "/usr/include/c++/13/ratio" 3 template<intmax_t _Pn> struct __static_sign : integral_constant<intmax_t, (_Pn < 0) ? -1 : 1> { }; template<intmax_t _Pn> struct __static_abs : integral_constant<intmax_t, _Pn * __static_sign<_Pn>::value> { }; template<intmax_t _Pn, intmax_t _Qn> struct __static_gcd : __static_gcd<_Qn, (_Pn % _Qn)> { }; template<intmax_t _Pn> struct __static_gcd<_Pn, 0> : integral_constant<intmax_t, __static_abs<_Pn>::value> { }; template<intmax_t _Qn> struct __static_gcd<0, _Qn> : integral_constant<intmax_t, __static_abs<_Qn>::value> { }; template<intmax_t _Pn, intmax_t _Qn> struct __safe_multiply { private: static const uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); static const uintmax_t __a0 = __static_abs<_Pn>::value % __c; static const uintmax_t __a1 = __static_abs<_Pn>::value / __c; static const uintmax_t __b0 = __static_abs<_Qn>::value % __c; static const uintmax_t __b1 = __static_abs<_Qn>::value / __c; static_assert(__a1 == 0 || __b1 == 0, "overflow in multiplication"); static_assert(__a0 * __b1 + __b0 * __a1 < (__c >> 1), "overflow in multiplication"); static_assert(__b0 * __a0 <= 0x7fffffffffffffffL, "overflow in multiplication"); static_assert((__a0 * __b1 + __b0 * __a1) * __c <= 0x7fffffffffffffffL - __b0 * __a0, "overflow in multiplication"); public: static const intmax_t value = _Pn * _Qn; }; template<uintmax_t __hi1, uintmax_t __lo1, uintmax_t __hi2, uintmax_t __lo2> struct __big_less : integral_constant<bool, (__hi1 < __hi2 || (__hi1 == __hi2 && __lo1 < __lo2))> { }; template<uintmax_t __hi1, uintmax_t __lo1, uintmax_t __hi2, uintmax_t __lo2> struct __big_add { static constexpr uintmax_t __lo = __lo1 + __lo2; static constexpr uintmax_t __hi = (__hi1 + __hi2 + (__lo1 + __lo2 < __lo1)); }; template<uintmax_t __hi1, uintmax_t __lo1, uintmax_t __hi2, uintmax_t __lo2> struct __big_sub { static_assert(!__big_less<__hi1, __lo1, __hi2, __lo2>::value, "Internal library error"); static constexpr uintmax_t __lo = __lo1 - __lo2; static constexpr uintmax_t __hi = (__hi1 - __hi2 - (__lo1 < __lo2)); }; template<uintmax_t __x, uintmax_t __y> struct __big_mul { private: static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); static constexpr uintmax_t __x0 = __x % __c; static constexpr uintmax_t __x1 = __x / __c; static constexpr uintmax_t __y0 = __y % __c; static constexpr uintmax_t __y1 = __y / __c; static constexpr uintmax_t __x0y0 = __x0 * __y0; static constexpr uintmax_t __x0y1 = __x0 * __y1; static constexpr uintmax_t __x1y0 = __x1 * __y0; static constexpr uintmax_t __x1y1 = __x1 * __y1; static constexpr uintmax_t __mix = __x0y1 + __x1y0; static constexpr uintmax_t __mix_lo = __mix * __c; static constexpr uintmax_t __mix_hi = __mix / __c + ((__mix < __x0y1) ? __c : 0); typedef __big_add<__mix_hi, __mix_lo, __x1y1, __x0y0> _Res; public: static constexpr uintmax_t __hi = _Res::__hi; static constexpr uintmax_t __lo = _Res::__lo; }; template<uintmax_t __n1, uintmax_t __n0, uintmax_t __d> struct __big_div_impl { private: static_assert(__d >= (uintmax_t(1) << (sizeof(intmax_t) * 8 - 1)), "Internal library error"); static_assert(__n1 < __d, "Internal library error"); static constexpr uintmax_t __c = uintmax_t(1) << (sizeof(intmax_t) * 4); static constexpr uintmax_t __d1 = __d / __c; static constexpr uintmax_t __d0 = __d % __c; static constexpr uintmax_t __q1x = __n1 / __d1; static constexpr uintmax_t __r1x = __n1 % __d1; static constexpr uintmax_t __m = __q1x * __d0; static constexpr uintmax_t __r1y = __r1x * __c + __n0 / __c; static constexpr uintmax_t __r1z = __r1y + __d; static constexpr uintmax_t __r1 = ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) ? (__r1z + __d) : __r1z : __r1y) - __m; static constexpr uintmax_t __q1 = __q1x - ((__r1y < __m) ? ((__r1z >= __d) && (__r1z < __m)) ? 2 : 1 : 0); static constexpr uintmax_t __q0x = __r1 / __d1; static constexpr uintmax_t __r0x = __r1 % __d1; static constexpr uintmax_t __n = __q0x * __d0; static constexpr uintmax_t __r0y = __r0x * __c + __n0 % __c; static constexpr uintmax_t __r0z = __r0y + __d; static constexpr uintmax_t __r0 = ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) ? (__r0z + __d) : __r0z : __r0y) - __n; static constexpr uintmax_t __q0 = __q0x - ((__r0y < __n) ? ((__r0z >= __d) && (__r0z < __n)) ? 2 : 1 : 0); public: static constexpr uintmax_t __quot = __q1 * __c + __q0; static constexpr uintmax_t __rem = __r0; private: typedef __big_mul<__quot, __d> _Prod; typedef __big_add<_Prod::__hi, _Prod::__lo, 0, __rem> _Sum; static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, "Internal library error"); }; template<uintmax_t __n1, uintmax_t __n0, uintmax_t __d> struct __big_div { private: static_assert(__d != 0, "Internal library error"); static_assert(sizeof (uintmax_t) == sizeof (unsigned long long), "This library calls __builtin_clzll on uintmax_t, which " "is unsafe on your platform. Please complain to " "http://gcc.gnu.org/bugzilla/"); static constexpr int __shift = __builtin_clzll(__d); static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift; static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0; static constexpr uintmax_t __c1 = uintmax_t(1) << __shift; static constexpr uintmax_t __c2 = uintmax_t(1) << __coshift; static constexpr uintmax_t __new_d = __d * __c1; static constexpr uintmax_t __new_n0 = __n0 * __c1; static constexpr uintmax_t __n1_shifted = (__n1 % __d) * __c1; static constexpr uintmax_t __n0_top = (__shift != 0) ? (__n0 / __c2) : 0; static constexpr uintmax_t __new_n1 = __n1_shifted + __n0_top; typedef __big_div_impl<__new_n1, __new_n0, __new_d> _Res; public: static constexpr uintmax_t __quot_hi = __n1 / __d; static constexpr uintmax_t __quot_lo = _Res::__quot; static constexpr uintmax_t __rem = _Res::__rem / __c1; private: typedef __big_mul<__quot_lo, __d> _P0; typedef __big_mul<__quot_hi, __d> _P1; typedef __big_add<_P0::__hi, _P0::__lo, _P1::__lo, __rem> _Sum; static_assert(_P1::__hi == 0, "Internal library error"); static_assert(_Sum::__hi >= _P0::__hi, "Internal library error"); static_assert(_Sum::__hi == __n1 && _Sum::__lo == __n0, "Internal library error"); static_assert(__rem < __d, "Internal library error"); }; # 265 "/usr/include/c++/13/ratio" 3 template<intmax_t _Num, intmax_t _Den = 1> struct ratio { static_assert(_Den != 0, "denominator cannot be zero"); static_assert(_Num >= -0x7fffffffffffffffL && _Den >= -0x7fffffffffffffffL, "out of range"); static constexpr intmax_t num = _Num * __static_sign<_Den>::value / __static_gcd<_Num, _Den>::value; static constexpr intmax_t den = __static_abs<_Den>::value / __static_gcd<_Num, _Den>::value; typedef ratio<num, den> type; }; # 292 "/usr/include/c++/13/ratio" 3 template<typename _R1, typename _R2> struct __ratio_multiply { private: static const intmax_t __gcd1 = __static_gcd<_R1::num, _R2::den>::value; static const intmax_t __gcd2 = __static_gcd<_R2::num, _R1::den>::value; public: typedef ratio< __safe_multiply<(_R1::num / __gcd1), (_R2::num / __gcd2)>::value, __safe_multiply<(_R1::den / __gcd2), (_R2::den / __gcd1)>::value> type; static constexpr intmax_t num = type::num; static constexpr intmax_t den = type::den; }; # 323 "/usr/include/c++/13/ratio" 3 template<typename _R1, typename _R2> using ratio_multiply = typename __ratio_multiply<_R1, _R2>::type; template<typename _R1, typename _R2> struct __ratio_divide { static_assert(_R2::num != 0, "division by 0"); typedef typename __ratio_multiply< _R1, ratio<_R2::den, _R2::num>>::type type; static constexpr intmax_t num = type::num; static constexpr intmax_t den = type::den; }; # 352 "/usr/include/c++/13/ratio" 3 template<typename _R1, typename _R2> using ratio_divide = typename __ratio_divide<_R1, _R2>::type; template<typename _R1, typename _R2> struct ratio_equal : integral_constant<bool, _R1::num == _R2::num && _R1::den == _R2::den> { }; template<typename _R1, typename _R2> struct ratio_not_equal : integral_constant<bool, !ratio_equal<_R1, _R2>::value> { }; template<typename _R1, typename _R2, typename _Left = __big_mul<_R1::num,_R2::den>, typename _Right = __big_mul<_R2::num,_R1::den> > struct __ratio_less_impl_1 : integral_constant<bool, __big_less<_Left::__hi, _Left::__lo, _Right::__hi, _Right::__lo>::value> { }; template<typename _R1, typename _R2, bool = (_R1::num == 0 || _R2::num == 0 || (__static_sign<_R1::num>::value != __static_sign<_R2::num>::value)), bool = (__static_sign<_R1::num>::value == -1 && __static_sign<_R2::num>::value == -1)> struct __ratio_less_impl : __ratio_less_impl_1<_R1, _R2>::type { }; template<typename _R1, typename _R2> struct __ratio_less_impl<_R1, _R2, true, false> : integral_constant<bool, _R1::num < _R2::num> { }; template<typename _R1, typename _R2> struct __ratio_less_impl<_R1, _R2, false, true> : __ratio_less_impl_1<ratio<-_R2::num, _R2::den>, ratio<-_R1::num, _R1::den> >::type { }; template<typename _R1, typename _R2> struct ratio_less : __ratio_less_impl<_R1, _R2>::type { }; template<typename _R1, typename _R2> struct ratio_less_equal : integral_constant<bool, !ratio_less<_R2, _R1>::value> { }; template<typename _R1, typename _R2> struct ratio_greater : integral_constant<bool, ratio_less<_R2, _R1>::value> { }; template<typename _R1, typename _R2> struct ratio_greater_equal : integral_constant<bool, !ratio_less<_R1, _R2>::value> { }; template <typename _R1, typename _R2> inline constexpr bool ratio_equal_v = ratio_equal<_R1, _R2>::value; template <typename _R1, typename _R2> inline constexpr bool ratio_not_equal_v = ratio_not_equal<_R1, _R2>::value; template <typename _R1, typename _R2> inline constexpr bool ratio_less_v = ratio_less<_R1, _R2>::value; template <typename _R1, typename _R2> inline constexpr bool ratio_less_equal_v = ratio_less_equal<_R1, _R2>::value; template <typename _R1, typename _R2> inline constexpr bool ratio_greater_v = ratio_greater<_R1, _R2>::value; template <typename _R1, typename _R2> inline constexpr bool ratio_greater_equal_v = ratio_greater_equal<_R1, _R2>::value; template<typename _R1, typename _R2, bool = (_R1::num >= 0), bool = (_R2::num >= 0), bool = ratio_less<ratio<__static_abs<_R1::num>::value, _R1::den>, ratio<__static_abs<_R2::num>::value, _R2::den> >::value> struct __ratio_add_impl { private: typedef typename __ratio_add_impl< ratio<-_R1::num, _R1::den>, ratio<-_R2::num, _R2::den> >::type __t; public: typedef ratio<-__t::num, __t::den> type; }; template<typename _R1, typename _R2, bool __b> struct __ratio_add_impl<_R1, _R2, true, true, __b> { private: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; static constexpr uintmax_t __d2 = _R2::den / __g; typedef __big_mul<_R1::den, __d2> __d; typedef __big_mul<_R1::num, _R2::den / __g> __x; typedef __big_mul<_R2::num, _R1::den / __g> __y; typedef __big_add<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; static_assert(__n::__hi >= __x::__hi, "Internal library error"); typedef __big_div<__n::__hi, __n::__lo, __g> __ng; static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; static_assert(__n_final::__rem == 0, "Internal library error"); static_assert(__n_final::__quot_hi == 0 && __n_final::__quot_lo <= 0x7fffffffffffffffL, "overflow in addition"); typedef __big_mul<_R1::den / __g2, __d2> __d_final; static_assert(__d_final::__hi == 0 && __d_final::__lo <= 0x7fffffffffffffffL, "overflow in addition"); public: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; }; template<typename _R1, typename _R2> struct __ratio_add_impl<_R1, _R2, false, true, true> : __ratio_add_impl<_R2, _R1> { }; template<typename _R1, typename _R2> struct __ratio_add_impl<_R1, _R2, true, false, false> { private: static constexpr uintmax_t __g = __static_gcd<_R1::den, _R2::den>::value; static constexpr uintmax_t __d2 = _R2::den / __g; typedef __big_mul<_R1::den, __d2> __d; typedef __big_mul<_R1::num, _R2::den / __g> __x; typedef __big_mul<-_R2::num, _R1::den / __g> __y; typedef __big_sub<__x::__hi, __x::__lo, __y::__hi, __y::__lo> __n; typedef __big_div<__n::__hi, __n::__lo, __g> __ng; static constexpr uintmax_t __g2 = __static_gcd<__ng::__rem, __g>::value; typedef __big_div<__n::__hi, __n::__lo, __g2> __n_final; static_assert(__n_final::__rem == 0, "Internal library error"); static_assert(__n_final::__quot_hi == 0 && __n_final::__quot_lo <= 0x7fffffffffffffffL, "overflow in addition"); typedef __big_mul<_R1::den / __g2, __d2> __d_final; static_assert(__d_final::__hi == 0 && __d_final::__lo <= 0x7fffffffffffffffL, "overflow in addition"); public: typedef ratio<__n_final::__quot_lo, __d_final::__lo> type; }; template<typename _R1, typename _R2> struct __ratio_add { typedef typename __ratio_add_impl<_R1, _R2>::type type; static constexpr intmax_t num = type::num; static constexpr intmax_t den = type::den; }; # 532 "/usr/include/c++/13/ratio" 3 template<typename _R1, typename _R2> using ratio_add = typename __ratio_add<_R1, _R2>::type; template<typename _R1, typename _R2> struct __ratio_subtract { typedef typename __ratio_add< _R1, ratio<-_R2::num, _R2::den>>::type type; static constexpr intmax_t num = type::num; static constexpr intmax_t den = type::den; }; # 559 "/usr/include/c++/13/ratio" 3 template<typename _R1, typename _R2> using ratio_subtract = typename __ratio_subtract<_R1, _R2>::type; typedef ratio<1, 1000000000000000000> atto; typedef ratio<1, 1000000000000000> femto; typedef ratio<1, 1000000000000> pico; typedef ratio<1, 1000000000> nano; typedef ratio<1, 1000000> micro; typedef ratio<1, 1000> milli; typedef ratio<1, 100> centi; typedef ratio<1, 10> deci; typedef ratio< 10, 1> deca; typedef ratio< 100, 1> hecto; typedef ratio< 1000, 1> kilo; typedef ratio< 1000000, 1> mega; typedef ratio< 1000000000, 1> giga; typedef ratio< 1000000000000, 1> tera; typedef ratio< 1000000000000000, 1> peta; typedef ratio< 1000000000000000000, 1> exa; } # 38 "/usr/include/c++/13/bits/chrono.h" 2 3 # 1 "/usr/include/c++/13/limits" 1 3 # 40 "/usr/include/c++/13/limits" 3 # 41 "/usr/include/c++/13/limits" 3 # 158 "/usr/include/c++/13/limits" 3 namespace std __attribute__ ((__visibility__ ("default"))) { enum float_round_style { round_indeterminate = -1, round_toward_zero = 0, round_to_nearest = 1, round_toward_infinity = 2, round_toward_neg_infinity = 3 }; enum float_denorm_style { denorm_indeterminate = -1, denorm_absent = 0, denorm_present = 1 }; # 202 "/usr/include/c++/13/limits" 3 struct __numeric_limits_base { static constexpr bool is_specialized = false; static constexpr int digits = 0; static constexpr int digits10 = 0; static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 0; static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr bool is_iec559 = false; static constexpr bool is_bounded = false; # 288 "/usr/include/c++/13/limits" 3 static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; # 311 "/usr/include/c++/13/limits" 3 template<typename _Tp> struct numeric_limits : public __numeric_limits_base { static constexpr _Tp min() noexcept { return _Tp(); } static constexpr _Tp max() noexcept { return _Tp(); } static constexpr _Tp lowest() noexcept { return _Tp(); } static constexpr _Tp epsilon() noexcept { return _Tp(); } static constexpr _Tp round_error() noexcept { return _Tp(); } static constexpr _Tp infinity() noexcept { return _Tp(); } static constexpr _Tp quiet_NaN() noexcept { return _Tp(); } static constexpr _Tp signaling_NaN() noexcept { return _Tp(); } static constexpr _Tp denorm_min() noexcept { return _Tp(); } }; template<typename _Tp> struct numeric_limits<const _Tp> : public numeric_limits<_Tp> { }; template<typename _Tp> struct numeric_limits<volatile _Tp> : public numeric_limits<_Tp> { }; template<typename _Tp> struct numeric_limits<const volatile _Tp> : public numeric_limits<_Tp> { }; # 383 "/usr/include/c++/13/limits" 3 template<> struct numeric_limits<bool> { static constexpr bool is_specialized = true; static constexpr bool min() noexcept { return false; } static constexpr bool max() noexcept { return true; } static constexpr bool lowest() noexcept { return min(); } static constexpr int digits = 1; static constexpr int digits10 = 0; static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr bool epsilon() noexcept { return false; } static constexpr bool round_error() noexcept { return false; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr bool infinity() noexcept { return false; } static constexpr bool quiet_NaN() noexcept { return false; } static constexpr bool signaling_NaN() noexcept { return false; } static constexpr bool denorm_min() noexcept { return false; } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<char> { static constexpr bool is_specialized = true; static constexpr char 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); } static constexpr char max() noexcept { return (((char)(-1) < 0) ? (((((char)1 << ((sizeof(char) * 8 - ((char)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char)0); } static constexpr char lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char) * 8 - ((char)(-1) < 0)); static constexpr int digits10 = ((sizeof(char) * 8 - ((char)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char epsilon() noexcept { return 0; } static constexpr char round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char infinity() noexcept { return char(); } static constexpr char quiet_NaN() noexcept { return char(); } static constexpr char signaling_NaN() noexcept { return char(); } static constexpr char denorm_min() noexcept { return static_cast<char>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<signed char> { static constexpr bool is_specialized = true; static constexpr signed char min() noexcept { return -0x7f - 1; } static constexpr signed char max() noexcept { return 0x7f; } static constexpr signed char lowest() noexcept { return min(); } static constexpr int digits = (sizeof(signed char) * 8 - ((signed char)(-1) < 0)); static constexpr int digits10 = ((sizeof(signed char) * 8 - ((signed char)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr signed char epsilon() noexcept { return 0; } static constexpr signed char round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr signed char infinity() noexcept { return static_cast<signed char>(0); } static constexpr signed char quiet_NaN() noexcept { return static_cast<signed char>(0); } static constexpr signed char signaling_NaN() noexcept { return static_cast<signed char>(0); } static constexpr signed char denorm_min() noexcept { return static_cast<signed char>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<unsigned char> { static constexpr bool is_specialized = true; static constexpr unsigned char min() noexcept { return 0; } static constexpr unsigned char max() noexcept { return 0x7f * 2U + 1; } static constexpr unsigned char lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned char) * 8 - ((unsigned char)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned char epsilon() noexcept { return 0; } static constexpr unsigned char round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned char infinity() noexcept { return static_cast<unsigned char>(0); } static constexpr unsigned char quiet_NaN() noexcept { return static_cast<unsigned char>(0); } static constexpr unsigned char signaling_NaN() noexcept { return static_cast<unsigned char>(0); } static constexpr unsigned char denorm_min() noexcept { return static_cast<unsigned char>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<wchar_t> { static constexpr bool is_specialized = true; static constexpr wchar_t 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); } static constexpr wchar_t 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); } static constexpr wchar_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(wchar_t) * 8 - ((wchar_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((wchar_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr wchar_t epsilon() noexcept { return 0; } static constexpr wchar_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr wchar_t infinity() noexcept { return wchar_t(); } static constexpr wchar_t quiet_NaN() noexcept { return wchar_t(); } static constexpr wchar_t signaling_NaN() noexcept { return wchar_t(); } static constexpr wchar_t denorm_min() noexcept { return wchar_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<char8_t> { static constexpr bool is_specialized = true; static constexpr char8_t min() noexcept { return (((char8_t)(-1) < 0) ? -(((char8_t)(-1) < 0) ? (((((char8_t)1 << ((sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char8_t)0) - 1 : (char8_t)0); } static constexpr char8_t max() noexcept { return (((char8_t)(-1) < 0) ? (((((char8_t)1 << ((sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(char8_t)0); } static constexpr char8_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(char8_t) * 8 - ((char8_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char8_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char8_t epsilon() noexcept { return 0; } static constexpr char8_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char8_t infinity() noexcept { return char8_t(); } static constexpr char8_t quiet_NaN() noexcept { return char8_t(); } static constexpr char8_t signaling_NaN() noexcept { return char8_t(); } static constexpr char8_t denorm_min() noexcept { return char8_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<char16_t> { static constexpr bool is_specialized = true; static constexpr char16_t 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); } static constexpr char16_t 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); } static constexpr char16_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(char16_t) * 8 - ((char16_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char16_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char16_t epsilon() noexcept { return 0; } static constexpr char16_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char16_t infinity() noexcept { return char16_t(); } static constexpr char16_t quiet_NaN() noexcept { return char16_t(); } static constexpr char16_t signaling_NaN() noexcept { return char16_t(); } static constexpr char16_t denorm_min() noexcept { return char16_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<char32_t> { static constexpr bool is_specialized = true; static constexpr char32_t 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); } static constexpr char32_t 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); } static constexpr char32_t lowest() noexcept { return min(); } static constexpr int digits = (sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)); static constexpr int digits10 = ((sizeof(char32_t) * 8 - ((char32_t)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = ((char32_t)(-1) < 0); static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr char32_t epsilon() noexcept { return 0; } static constexpr char32_t round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr char32_t infinity() noexcept { return char32_t(); } static constexpr char32_t quiet_NaN() noexcept { return char32_t(); } static constexpr char32_t signaling_NaN() noexcept { return char32_t(); } static constexpr char32_t denorm_min() noexcept { return char32_t(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = !is_signed; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<short> { static constexpr bool is_specialized = true; static constexpr short min() noexcept { return -0x7fff - 1; } static constexpr short max() noexcept { return 0x7fff; } static constexpr short lowest() noexcept { return min(); } static constexpr int digits = (sizeof(short) * 8 - ((short)(-1) < 0)); static constexpr int digits10 = ((sizeof(short) * 8 - ((short)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr short epsilon() noexcept { return 0; } static constexpr short round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr short infinity() noexcept { return short(); } static constexpr short quiet_NaN() noexcept { return short(); } static constexpr short signaling_NaN() noexcept { return short(); } static constexpr short denorm_min() noexcept { return short(); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<unsigned short> { static constexpr bool is_specialized = true; static constexpr unsigned short min() noexcept { return 0; } static constexpr unsigned short max() noexcept { return 0x7fff * 2U + 1; } static constexpr unsigned short lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned short) * 8 - ((unsigned short)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned short epsilon() noexcept { return 0; } static constexpr unsigned short round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned short infinity() noexcept { return static_cast<unsigned short>(0); } static constexpr unsigned short quiet_NaN() noexcept { return static_cast<unsigned short>(0); } static constexpr unsigned short signaling_NaN() noexcept { return static_cast<unsigned short>(0); } static constexpr unsigned short denorm_min() noexcept { return static_cast<unsigned short>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<int> { static constexpr bool is_specialized = true; static constexpr int min() noexcept { return -0x7fffffff - 1; } static constexpr int max() noexcept { return 0x7fffffff; } static constexpr int lowest() noexcept { return min(); } static constexpr int digits = (sizeof(int) * 8 - ((int)(-1) < 0)); static constexpr int digits10 = ((sizeof(int) * 8 - ((int)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr int epsilon() noexcept { return 0; } static constexpr int round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr int infinity() noexcept { return static_cast<int>(0); } static constexpr int quiet_NaN() noexcept { return static_cast<int>(0); } static constexpr int signaling_NaN() noexcept { return static_cast<int>(0); } static constexpr int denorm_min() noexcept { return static_cast<int>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<unsigned int> { static constexpr bool is_specialized = true; static constexpr unsigned int min() noexcept { return 0; } static constexpr unsigned int max() noexcept { return 0x7fffffff * 2U + 1; } static constexpr unsigned int lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned int) * 8 - ((unsigned int)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned int epsilon() noexcept { return 0; } static constexpr unsigned int round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned int infinity() noexcept { return static_cast<unsigned int>(0); } static constexpr unsigned int quiet_NaN() noexcept { return static_cast<unsigned int>(0); } static constexpr unsigned int signaling_NaN() noexcept { return static_cast<unsigned int>(0); } static constexpr unsigned int denorm_min() noexcept { return static_cast<unsigned int>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<long> { static constexpr bool is_specialized = true; static constexpr long min() noexcept { return -0x7fffffffffffffffL - 1; } static constexpr long max() noexcept { return 0x7fffffffffffffffL; } static constexpr long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(long) * 8 - ((long)(-1) < 0)); static constexpr int digits10 = ((sizeof(long) * 8 - ((long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr long epsilon() noexcept { return 0; } static constexpr long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr long infinity() noexcept { return static_cast<long>(0); } static constexpr long quiet_NaN() noexcept { return static_cast<long>(0); } static constexpr long signaling_NaN() noexcept { return static_cast<long>(0); } static constexpr long denorm_min() noexcept { return static_cast<long>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<unsigned long> { static constexpr bool is_specialized = true; static constexpr unsigned long min() noexcept { return 0; } static constexpr unsigned long max() noexcept { return 0x7fffffffffffffffL * 2UL + 1; } static constexpr unsigned long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned long) * 8 - ((unsigned long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned long epsilon() noexcept { return 0; } static constexpr unsigned long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned long infinity() noexcept { return static_cast<unsigned long>(0); } static constexpr unsigned long quiet_NaN() noexcept { return static_cast<unsigned long>(0); } static constexpr unsigned long signaling_NaN() noexcept { return static_cast<unsigned long>(0); } static constexpr unsigned long denorm_min() noexcept { return static_cast<unsigned long>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<long long> { static constexpr bool is_specialized = true; static constexpr long long min() noexcept { return -0x7fffffffffffffffLL - 1; } static constexpr long long max() noexcept { return 0x7fffffffffffffffLL; } static constexpr long long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(long long) * 8 - ((long long)(-1) < 0)); static constexpr int digits10 = ((sizeof(long long) * 8 - ((long long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr long long epsilon() noexcept { return 0; } static constexpr long long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr long long infinity() noexcept { return static_cast<long long>(0); } static constexpr long long quiet_NaN() noexcept { return static_cast<long long>(0); } static constexpr long long signaling_NaN() noexcept { return static_cast<long long>(0); } static constexpr long long denorm_min() noexcept { return static_cast<long long>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; template<> struct numeric_limits<unsigned long long> { static constexpr bool is_specialized = true; static constexpr unsigned long long min() noexcept { return 0; } static constexpr unsigned long long max() noexcept { return 0x7fffffffffffffffLL * 2ULL + 1; } static constexpr unsigned long long lowest() noexcept { return min(); } static constexpr int digits = (sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)); static constexpr int digits10 = ((sizeof(unsigned long long) * 8 - ((unsigned long long)(-1) < 0)) * 643L / 2136); static constexpr int max_digits10 = 0; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned long long epsilon() noexcept { return 0; } static constexpr unsigned long long round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned long long infinity() noexcept { return static_cast<unsigned long long>(0); } static constexpr unsigned long long quiet_NaN() noexcept { return static_cast<unsigned long long>(0); } static constexpr unsigned long long signaling_NaN() noexcept { return static_cast<unsigned long long>(0); } static constexpr unsigned long long denorm_min() noexcept { return static_cast<unsigned long long>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; # 1637 "/usr/include/c++/13/limits" 3 __extension__ template<> struct numeric_limits<__int128> { static constexpr bool is_specialized = true; static constexpr __int128 min() noexcept { return (((__int128)(-1) < 0) ? -(((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0) - 1 : (__int128)0); } static constexpr __int128 max() noexcept { return (((__int128)(-1) < 0) ? (((((__int128)1 << ((128 - ((__int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(__int128)0); } static constexpr int digits = 128 - 1; static constexpr int digits10 = (128 - 1) * 643L / 2136; static constexpr bool is_signed = true; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr __int128 epsilon() noexcept { return 0; } static constexpr __int128 round_error() noexcept { return 0; } static constexpr __int128 lowest() noexcept { return min(); } static constexpr int max_digits10 = 0; static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr __int128 infinity() noexcept { return static_cast<__int128>(0); } static constexpr __int128 quiet_NaN() noexcept { return static_cast<__int128>(0); } static constexpr __int128 signaling_NaN() noexcept { return static_cast<__int128>(0); } static constexpr __int128 denorm_min() noexcept { return static_cast<__int128>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; __extension__ template<> struct numeric_limits<unsigned __int128> { static constexpr bool is_specialized = true; static constexpr unsigned __int128 min() noexcept { return 0; } static constexpr unsigned __int128 max() noexcept { return (((unsigned __int128)(-1) < 0) ? (((((unsigned __int128)1 << ((128 - ((unsigned __int128)(-1) < 0)) - 1)) - 1) << 1) + 1) : ~(unsigned __int128)0); } static constexpr unsigned __int128 lowest() noexcept { return min(); } static constexpr int max_digits10 = 0; static constexpr int digits = 128; static constexpr int digits10 = 128 * 643L / 2136; static constexpr bool is_signed = false; static constexpr bool is_integer = true; static constexpr bool is_exact = true; static constexpr int radix = 2; static constexpr unsigned __int128 epsilon() noexcept { return 0; } static constexpr unsigned __int128 round_error() noexcept { return 0; } static constexpr int min_exponent = 0; static constexpr int min_exponent10 = 0; static constexpr int max_exponent = 0; static constexpr int max_exponent10 = 0; static constexpr bool has_infinity = false; static constexpr bool has_quiet_NaN = false; static constexpr bool has_signaling_NaN = false; static constexpr float_denorm_style has_denorm = denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr unsigned __int128 infinity() noexcept { return static_cast<unsigned __int128>(0); } static constexpr unsigned __int128 quiet_NaN() noexcept { return static_cast<unsigned __int128>(0); } static constexpr unsigned __int128 signaling_NaN() noexcept { return static_cast<unsigned __int128>(0); } static constexpr unsigned __int128 denorm_min() noexcept { return static_cast<unsigned __int128>(0); } static constexpr bool is_iec559 = false; static constexpr bool is_bounded = true; static constexpr bool is_modulo = true; static constexpr bool traps = true; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_toward_zero; }; # 1669 "/usr/include/c++/13/limits" 3 template<> struct numeric_limits<float> { static constexpr bool is_specialized = true; static constexpr float min() noexcept { return 1.17549435082228750796873653722224568e-38F; } static constexpr float max() noexcept { return 3.40282346638528859811704183484516925e+38F; } static constexpr float lowest() noexcept { return -3.40282346638528859811704183484516925e+38F; } static constexpr int digits = 24; static constexpr int digits10 = 6; static constexpr int max_digits10 = (2 + (24) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr float epsilon() noexcept { return 1.19209289550781250000000000000000000e-7F; } static constexpr float round_error() noexcept { return 0.5F; } static constexpr int min_exponent = (-125); static constexpr int min_exponent10 = (-37); static constexpr int max_exponent = 128; static constexpr int max_exponent10 = 38; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr float infinity() noexcept { return __builtin_huge_valf(); } static constexpr float quiet_NaN() noexcept { return __builtin_nanf(""); } static constexpr float signaling_NaN() noexcept { return __builtin_nansf(""); } static constexpr float denorm_min() noexcept { return 1.40129846432481707092372958328991613e-45F; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; template<> struct numeric_limits<double> { static constexpr bool is_specialized = true; static constexpr double min() noexcept { return double(2.22507385850720138309023271733240406e-308L); } static constexpr double max() noexcept { return double(1.79769313486231570814527423731704357e+308L); } static constexpr double lowest() noexcept { return -double(1.79769313486231570814527423731704357e+308L); } static constexpr int digits = 53; static constexpr int digits10 = 15; static constexpr int max_digits10 = (2 + (53) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr double epsilon() noexcept { return double(2.22044604925031308084726333618164062e-16L); } static constexpr double round_error() noexcept { return 0.5; } static constexpr int min_exponent = (-1021); static constexpr int min_exponent10 = (-307); static constexpr int max_exponent = 1024; static constexpr int max_exponent10 = 308; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr double infinity() noexcept { return __builtin_huge_val(); } static constexpr double quiet_NaN() noexcept { return __builtin_nan(""); } static constexpr double signaling_NaN() noexcept { return __builtin_nans(""); } static constexpr double denorm_min() noexcept { return double(4.94065645841246544176568792868221372e-324L); } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; template<> struct numeric_limits<long double> { static constexpr bool is_specialized = true; static constexpr long double min() noexcept { return 3.36210314311209350626267781732175260e-4932L; } static constexpr long double max() noexcept { return 1.18973149535723176502126385303097021e+4932L; } static constexpr long double lowest() noexcept { return -1.18973149535723176502126385303097021e+4932L; } static constexpr int digits = 64; static constexpr int digits10 = 18; static constexpr int max_digits10 = (2 + (64) * 643L / 2136); static constexpr bool is_signed = true; static constexpr bool is_integer = false; static constexpr bool is_exact = false; static constexpr int radix = 2; static constexpr long double epsilon() noexcept { return 1.08420217248550443400745280086994171e-19L; } static constexpr long double round_error() noexcept { return 0.5L; } static constexpr int min_exponent = (-16381); static constexpr int min_exponent10 = (-4931); static constexpr int max_exponent = 16384; static constexpr int max_exponent10 = 4932; static constexpr bool has_infinity = 1; static constexpr bool has_quiet_NaN = 1; static constexpr bool has_signaling_NaN = has_quiet_NaN; static constexpr float_denorm_style has_denorm = bool(1) ? denorm_present : denorm_absent; static constexpr bool has_denorm_loss = false; static constexpr long double infinity() noexcept { return __builtin_huge_vall(); } static constexpr long double quiet_NaN() noexcept { return __builtin_nanl(""); } static constexpr long double signaling_NaN() noexcept { return __builtin_nansl(""); } static constexpr long double denorm_min() noexcept { return 3.64519953188247460252840593361941982e-4951L; } static constexpr bool is_iec559 = has_infinity && has_quiet_NaN && has_denorm == denorm_present; static constexpr bool is_bounded = true; static constexpr bool is_modulo = false; static constexpr bool traps = false; static constexpr bool tinyness_before = false; static constexpr float_round_style round_style = round_to_nearest; }; # 2076 "/usr/include/c++/13/limits" 3 } # 40 "/usr/include/c++/13/bits/chrono.h" 2 3 # 1 "/usr/include/c++/13/ctime" 1 3 # 39 "/usr/include/c++/13/ctime" 3 # 40 "/usr/include/c++/13/ctime" 3 # 58 "/usr/include/c++/13/ctime" 3 namespace std { using ::clock_t; using ::time_t; using ::tm; using ::clock; using ::difftime; using ::mktime; using ::time; using ::asctime; using ::ctime; using ::gmtime; using ::localtime; using ::strftime; } namespace std { using ::timespec; using ::timespec_get; } # 41 "/usr/include/c++/13/bits/chrono.h" 2 3 # 1 "/usr/include/c++/13/bits/parse_numbers.h" 1 3 # 33 "/usr/include/c++/13/bits/parse_numbers.h" 3 # 34 "/usr/include/c++/13/bits/parse_numbers.h" 3 # 42 "/usr/include/c++/13/bits/parse_numbers.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __parse_int { template<unsigned _Base, char _Dig> struct _Digit; template<unsigned _Base> struct _Digit<_Base, '0'> : integral_constant<unsigned, 0> { using __valid = true_type; }; template<unsigned _Base> struct _Digit<_Base, '1'> : integral_constant<unsigned, 1> { using __valid = true_type; }; template<unsigned _Base, unsigned _Val> struct _Digit_impl : integral_constant<unsigned, _Val> { static_assert(_Base > _Val, "invalid digit"); using __valid = true_type; }; template<unsigned _Base> struct _Digit<_Base, '2'> : _Digit_impl<_Base, 2> { }; template<unsigned _Base> struct _Digit<_Base, '3'> : _Digit_impl<_Base, 3> { }; template<unsigned _Base> struct _Digit<_Base, '4'> : _Digit_impl<_Base, 4> { }; template<unsigned _Base> struct _Digit<_Base, '5'> : _Digit_impl<_Base, 5> { }; template<unsigned _Base> struct _Digit<_Base, '6'> : _Digit_impl<_Base, 6> { }; template<unsigned _Base> struct _Digit<_Base, '7'> : _Digit_impl<_Base, 7> { }; template<unsigned _Base> struct _Digit<_Base, '8'> : _Digit_impl<_Base, 8> { }; template<unsigned _Base> struct _Digit<_Base, '9'> : _Digit_impl<_Base, 9> { }; template<unsigned _Base> struct _Digit<_Base, 'a'> : _Digit_impl<_Base, 0xa> { }; template<unsigned _Base> struct _Digit<_Base, 'A'> : _Digit_impl<_Base, 0xa> { }; template<unsigned _Base> struct _Digit<_Base, 'b'> : _Digit_impl<_Base, 0xb> { }; template<unsigned _Base> struct _Digit<_Base, 'B'> : _Digit_impl<_Base, 0xb> { }; template<unsigned _Base> struct _Digit<_Base, 'c'> : _Digit_impl<_Base, 0xc> { }; template<unsigned _Base> struct _Digit<_Base, 'C'> : _Digit_impl<_Base, 0xc> { }; template<unsigned _Base> struct _Digit<_Base, 'd'> : _Digit_impl<_Base, 0xd> { }; template<unsigned _Base> struct _Digit<_Base, 'D'> : _Digit_impl<_Base, 0xd> { }; template<unsigned _Base> struct _Digit<_Base, 'e'> : _Digit_impl<_Base, 0xe> { }; template<unsigned _Base> struct _Digit<_Base, 'E'> : _Digit_impl<_Base, 0xe> { }; template<unsigned _Base> struct _Digit<_Base, 'f'> : _Digit_impl<_Base, 0xf> { }; template<unsigned _Base> struct _Digit<_Base, 'F'> : _Digit_impl<_Base, 0xf> { }; template<unsigned _Base> struct _Digit<_Base, '\''> : integral_constant<unsigned, 0> { using __valid = false_type; }; template<unsigned long long _Val> using __ull_constant = integral_constant<unsigned long long, _Val>; template<unsigned _Base, char _Dig, char... _Digs> struct _Power_help { using __next = typename _Power_help<_Base, _Digs...>::type; using __valid_digit = typename _Digit<_Base, _Dig>::__valid; using type = __ull_constant<__next::value * (__valid_digit{} ? _Base : 1ULL)>; }; template<unsigned _Base, char _Dig> struct _Power_help<_Base, _Dig> { using __valid_digit = typename _Digit<_Base, _Dig>::__valid; using type = __ull_constant<__valid_digit::value>; }; template<unsigned _Base, char... _Digs> struct _Power : _Power_help<_Base, _Digs...>::type { }; template<unsigned _Base> struct _Power<_Base> : __ull_constant<0> { }; template<unsigned _Base, unsigned long long _Pow, char _Dig, char... _Digs> struct _Number_help { using __digit = _Digit<_Base, _Dig>; using __valid_digit = typename __digit::__valid; using __next = _Number_help<_Base, __valid_digit::value ? _Pow / _Base : _Pow, _Digs...>; using type = __ull_constant<_Pow * __digit::value + __next::type::value>; static_assert((type::value / _Pow) == __digit::value, "integer literal does not fit in unsigned long long"); }; template<unsigned _Base, unsigned long long _Pow, char _Dig, char..._Digs> struct _Number_help<_Base, _Pow, '\'', _Dig, _Digs...> : _Number_help<_Base, _Pow, _Dig, _Digs...> { }; template<unsigned _Base, char _Dig> struct _Number_help<_Base, 1ULL, _Dig> { using type = __ull_constant<_Digit<_Base, _Dig>::value>; }; template<unsigned _Base, char... _Digs> struct _Number : _Number_help<_Base, _Power<_Base, _Digs...>::value, _Digs...>::type { }; template<unsigned _Base> struct _Number<_Base> : __ull_constant<0> { }; template<char... _Digs> struct _Parse_int; template<char... _Digs> struct _Parse_int<'0', 'b', _Digs...> : _Number<2U, _Digs...>::type { }; template<char... _Digs> struct _Parse_int<'0', 'B', _Digs...> : _Number<2U, _Digs...>::type { }; template<char... _Digs> struct _Parse_int<'0', 'x', _Digs...> : _Number<16U, _Digs...>::type { }; template<char... _Digs> struct _Parse_int<'0', 'X', _Digs...> : _Number<16U, _Digs...>::type { }; template<char... _Digs> struct _Parse_int<'0', _Digs...> : _Number<8U, _Digs...>::type { }; template<char... _Digs> struct _Parse_int : _Number<10U, _Digs...>::type { }; } namespace __select_int { template<unsigned long long _Val, typename... _Ints> struct _Select_int_base; template<unsigned long long _Val, typename _IntType, typename... _Ints> struct _Select_int_base<_Val, _IntType, _Ints...> : __conditional_t<(_Val <= __gnu_cxx::__int_traits<_IntType>::__max), integral_constant<_IntType, (_IntType)_Val>, _Select_int_base<_Val, _Ints...>> { }; template<unsigned long long _Val> struct _Select_int_base<_Val> { }; template<char... _Digs> using _Select_int = typename _Select_int_base< __parse_int::_Parse_int<_Digs...>::value, unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long >::type; } } # 42 "/usr/include/c++/13/bits/chrono.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace filesystem { struct __file_clock; }; namespace chrono { template<typename _Rep, typename _Period = ratio<1>> class duration; template<typename _Clock, typename _Dur = typename _Clock::duration> class time_point; } # 77 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _CT, typename _Period1, typename _Period2, typename = void> struct __duration_common_type { }; template<typename _CT, typename _Period1, typename _Period2> struct __duration_common_type<_CT, _Period1, _Period2, __void_t<typename _CT::type>> { private: using __gcd_num = __static_gcd<_Period1::num, _Period2::num>; using __gcd_den = __static_gcd<_Period1::den, _Period2::den>; using __cr = typename _CT::type; using __r = ratio<__gcd_num::value, (_Period1::den / __gcd_den::value) * _Period2::den>; public: using type = chrono::duration<__cr, typename __r::type>; }; template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> struct common_type<chrono::duration<_Rep1, _Period1>, chrono::duration<_Rep2, _Period2>> : __duration_common_type<common_type<_Rep1, _Rep2>, typename _Period1::type, typename _Period2::type> { }; template<typename _Rep, typename _Period> struct common_type<chrono::duration<_Rep, _Period>, chrono::duration<_Rep, _Period>> { using type = chrono::duration<typename common_type<_Rep>::type, typename _Period::type>; }; template<typename _Rep, typename _Period> struct common_type<chrono::duration<_Rep, _Period>> { using type = chrono::duration<typename common_type<_Rep>::type, typename _Period::type>; }; template<typename _CT, typename _Clock, typename = void> struct __timepoint_common_type { }; template<typename _CT, typename _Clock> struct __timepoint_common_type<_CT, _Clock, __void_t<typename _CT::type>> { using type = chrono::time_point<_Clock, typename _CT::type>; }; template<typename _Clock, typename _Duration1, typename _Duration2> struct common_type<chrono::time_point<_Clock, _Duration1>, chrono::time_point<_Clock, _Duration2>> : __timepoint_common_type<common_type<_Duration1, _Duration2>, _Clock> { }; template<typename _Clock, typename _Duration> struct common_type<chrono::time_point<_Clock, _Duration>, chrono::time_point<_Clock, _Duration>> { using type = chrono::time_point<_Clock, _Duration>; }; template<typename _Clock, typename _Duration> struct common_type<chrono::time_point<_Clock, _Duration>> { using type = chrono::time_point<_Clock, _Duration>; }; namespace chrono { template<typename _ToDur, typename _CF, typename _CR, bool _NumIsOne = false, bool _DenIsOne = false> struct __duration_cast_impl { template<typename _Rep, typename _Period> static constexpr _ToDur __cast(const duration<_Rep, _Period>& __d) { typedef typename _ToDur::rep __to_rep; return _ToDur(static_cast<__to_rep>(static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num) / static_cast<_CR>(_CF::den))); } }; template<typename _ToDur, typename _CF, typename _CR> struct __duration_cast_impl<_ToDur, _CF, _CR, true, true> { template<typename _Rep, typename _Period> static constexpr _ToDur __cast(const duration<_Rep, _Period>& __d) { typedef typename _ToDur::rep __to_rep; return _ToDur(static_cast<__to_rep>(__d.count())); } }; template<typename _ToDur, typename _CF, typename _CR> struct __duration_cast_impl<_ToDur, _CF, _CR, true, false> { template<typename _Rep, typename _Period> static constexpr _ToDur __cast(const duration<_Rep, _Period>& __d) { typedef typename _ToDur::rep __to_rep; return _ToDur(static_cast<__to_rep>( static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); } }; template<typename _ToDur, typename _CF, typename _CR> struct __duration_cast_impl<_ToDur, _CF, _CR, false, true> { template<typename _Rep, typename _Period> static constexpr _ToDur __cast(const duration<_Rep, _Period>& __d) { typedef typename _ToDur::rep __to_rep; return _ToDur(static_cast<__to_rep>( static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); } }; template<typename _Tp> struct __is_duration : std::false_type { }; template<typename _Rep, typename _Period> struct __is_duration<duration<_Rep, _Period>> : std::true_type { }; template<typename _Tp> using __enable_if_is_duration = typename enable_if<__is_duration<_Tp>::value, _Tp>::type; template<typename _Tp> using __disable_if_is_duration = typename enable_if<!__is_duration<_Tp>::value, _Tp>::type; template<typename _Tp> inline constexpr bool __is_duration_v = false; template<typename _Rep, typename _Period> inline constexpr bool __is_duration_v<duration<_Rep, _Period>> = true; template<typename _Tp> inline constexpr bool __is_time_point_v = false; template<typename _Clock, typename _Dur> inline constexpr bool __is_time_point_v<time_point<_Clock, _Dur>> = true; # 270 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Rep, typename _Period> [[__nodiscard__]] constexpr __enable_if_is_duration<_ToDur> duration_cast(const duration<_Rep, _Period>& __d) { if constexpr (is_same_v<_ToDur, duration<_Rep, _Period>>) return __d; else { using __to_period = typename _ToDur::period; using __to_rep = typename _ToDur::rep; using __cf = ratio_divide<_Period, __to_period>; using __cr = typename common_type<__to_rep, _Rep, intmax_t>::type; using __dc = __duration_cast_impl<_ToDur, __cf, __cr, __cf::num == 1, __cf::den == 1>; return __dc::__cast(__d); } } # 302 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Rep> struct treat_as_floating_point : is_floating_point<_Rep> { }; template <typename _Rep> inline constexpr bool treat_as_floating_point_v = treat_as_floating_point<_Rep>::value; template<> inline constexpr bool treat_as_floating_point_v<int> = false; template<> inline constexpr bool treat_as_floating_point_v<long> = false; template<> inline constexpr bool treat_as_floating_point_v<long long> = false; template<> inline constexpr bool treat_as_floating_point_v<float> = true; template<> inline constexpr bool treat_as_floating_point_v<double> = true; template<> inline constexpr bool treat_as_floating_point_v<long double> = true; template<typename _Tp> inline constexpr bool is_clock_v = false; template<typename _Tp> requires requires { typename _Tp::rep; typename _Tp::period; typename _Tp::duration; typename _Tp::time_point::clock; typename _Tp::time_point::duration; { &_Tp::is_steady } -> same_as<const bool*>; { _Tp::now() } -> same_as<typename _Tp::time_point>; requires same_as<typename _Tp::duration, duration<typename _Tp::rep, typename _Tp::period>>; requires same_as<typename _Tp::time_point::duration, typename _Tp::duration>; } inline constexpr bool is_clock_v<_Tp> = true; # 365 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Tp> struct is_clock : bool_constant<is_clock_v<_Tp>> { }; # 384 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Rep, typename _Period> [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> floor(const duration<_Rep, _Period>& __d) { auto __to = chrono::duration_cast<_ToDur>(__d); if (__to > __d) return __to - _ToDur{1}; return __to; } # 404 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Rep, typename _Period> [[nodiscard]] constexpr __enable_if_is_duration<_ToDur> ceil(const duration<_Rep, _Period>& __d) { auto __to = chrono::duration_cast<_ToDur>(__d); if (__to < __d) return __to + _ToDur{1}; return __to; } # 425 "/usr/include/c++/13/bits/chrono.h" 3 template <typename _ToDur, typename _Rep, typename _Period> [[nodiscard]] constexpr enable_if_t< __and_<__is_duration<_ToDur>, __not_<treat_as_floating_point<typename _ToDur::rep>>>::value, _ToDur> round(const duration<_Rep, _Period>& __d) { _ToDur __t0 = chrono::floor<_ToDur>(__d); _ToDur __t1 = __t0 + _ToDur{1}; auto __diff0 = __d - __t0; auto __diff1 = __t1 - __d; if (__diff0 == __diff1) { if (__t0.count() & 1) return __t1; return __t0; } else if (__diff0 < __diff1) return __t0; return __t1; } template<typename _Rep, typename _Period> [[nodiscard]] constexpr enable_if_t<numeric_limits<_Rep>::is_signed, duration<_Rep, _Period>> abs(duration<_Rep, _Period> __d) { if (__d >= __d.zero()) return __d; return -__d; } namespace __detail { using chrono::ceil; } # 492 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Rep> struct duration_values { static constexpr _Rep zero() noexcept { return _Rep(0); } static constexpr _Rep max() noexcept { return numeric_limits<_Rep>::max(); } static constexpr _Rep min() noexcept { return numeric_limits<_Rep>::lowest(); } }; template<typename _Tp> struct __is_ratio : std::false_type { }; template<intmax_t _Num, intmax_t _Den> struct __is_ratio<ratio<_Num, _Den>> : std::true_type { }; template<typename _Rep, typename _Period> class duration { static_assert(!__is_duration<_Rep>::value, "rep cannot be a duration"); static_assert(__is_ratio<_Period>::value, "period must be a specialization of ratio"); static_assert(_Period::num > 0, "period must be positive"); template<typename _Rep2> using __is_float = treat_as_floating_point<_Rep2>; static constexpr intmax_t _S_gcd(intmax_t __m, intmax_t __n) noexcept { do { intmax_t __rem = __m % __n; __m = __n; __n = __rem; } while (__n != 0); return __m; } template<typename _R1, typename _R2, intmax_t __gcd1 = _S_gcd(_R1::num, _R2::num), intmax_t __gcd2 = _S_gcd(_R1::den, _R2::den)> using __divide = ratio<(_R1::num / __gcd1) * (_R2::den / __gcd2), (_R1::den / __gcd2) * (_R2::num / __gcd1)>; template<typename _Period2> using __is_harmonic = __bool_constant<__divide<_Period2, _Period>::den == 1>; public: using rep = _Rep; using period = typename _Period::type; constexpr duration() = default; duration(const duration&) = default; template<typename _Rep2, typename = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __not_<__is_float<_Rep2>>>>> constexpr explicit duration(const _Rep2& __rep) : __r(static_cast<rep>(__rep)) { } template<typename _Rep2, typename _Period2, typename = _Require< is_convertible<const _Rep2&, rep>, __or_<__is_float<rep>, __and_<__is_harmonic<_Period2>, __not_<__is_float<_Rep2>>>>>> constexpr duration(const duration<_Rep2, _Period2>& __d) : __r(duration_cast<duration>(__d).count()) { } ~duration() = default; duration& operator=(const duration&) = default; constexpr rep count() const { return __r; } constexpr duration<typename common_type<rep>::type, period> operator+() const { return duration<typename common_type<rep>::type, period>(__r); } constexpr duration<typename common_type<rep>::type, period> operator-() const { return duration<typename common_type<rep>::type, period>(-__r); } constexpr duration& operator++() { ++__r; return *this; } constexpr duration operator++(int) { return duration(__r++); } constexpr duration& operator--() { --__r; return *this; } constexpr duration operator--(int) { return duration(__r--); } constexpr duration& operator+=(const duration& __d) { __r += __d.count(); return *this; } constexpr duration& operator-=(const duration& __d) { __r -= __d.count(); return *this; } constexpr duration& operator*=(const rep& __rhs) { __r *= __rhs; return *this; } constexpr duration& operator/=(const rep& __rhs) { __r /= __rhs; return *this; } template<typename _Rep2 = rep> constexpr __enable_if_t<!treat_as_floating_point<_Rep2>::value, duration&> operator%=(const rep& __rhs) { __r %= __rhs; return *this; } template<typename _Rep2 = rep> constexpr __enable_if_t<!treat_as_floating_point<_Rep2>::value, duration&> operator%=(const duration& __d) { __r %= __d.count(); return *this; } static constexpr duration zero() noexcept { return duration(duration_values<rep>::zero()); } static constexpr duration min() noexcept { return duration(duration_values<rep>::min()); } static constexpr duration max() noexcept { return duration(duration_values<rep>::max()); } private: rep __r; }; template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr typename common_type<duration<_Rep1, _Period1>, duration<_Rep2, _Period2>>::type operator+(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<__dur1,__dur2>::type __cd; return __cd(__cd(__lhs).count() + __cd(__rhs).count()); } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr typename common_type<duration<_Rep1, _Period1>, duration<_Rep2, _Period2>>::type operator-(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<__dur1,__dur2>::type __cd; return __cd(__cd(__lhs).count() - __cd(__rhs).count()); } # 738 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Rep1, typename _Rep2, typename _CRep = typename common_type<_Rep1, _Rep2>::type> using __common_rep_t = typename enable_if<is_convertible<const _Rep2&, _CRep>::value, _CRep>::type; # 750 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Rep1, typename _Period, typename _Rep2> constexpr duration<__common_rep_t<_Rep1, _Rep2>, _Period> operator*(const duration<_Rep1, _Period>& __d, const _Rep2& __s) { typedef duration<typename common_type<_Rep1, _Rep2>::type, _Period> __cd; return __cd(__cd(__d).count() * __s); } template<typename _Rep1, typename _Rep2, typename _Period> constexpr duration<__common_rep_t<_Rep2, _Rep1>, _Period> operator*(const _Rep1& __s, const duration<_Rep2, _Period>& __d) { return __d * __s; } template<typename _Rep1, typename _Period, typename _Rep2> constexpr duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> operator/(const duration<_Rep1, _Period>& __d, const _Rep2& __s) { typedef duration<typename common_type<_Rep1, _Rep2>::type, _Period> __cd; return __cd(__cd(__d).count() / __s); } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr typename common_type<_Rep1, _Rep2>::type operator/(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<__dur1,__dur2>::type __cd; return __cd(__lhs).count() / __cd(__rhs).count(); } template<typename _Rep1, typename _Period, typename _Rep2> constexpr duration<__common_rep_t<_Rep1, __disable_if_is_duration<_Rep2>>, _Period> operator%(const duration<_Rep1, _Period>& __d, const _Rep2& __s) { typedef duration<typename common_type<_Rep1, _Rep2>::type, _Period> __cd; return __cd(__cd(__d).count() % __s); } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr typename common_type<duration<_Rep1, _Period1>, duration<_Rep2, _Period2>>::type operator%(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<__dur1,__dur2>::type __cd; return __cd(__cd(__lhs).count() % __cd(__rhs).count()); } # 818 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr bool operator==(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<__dur1,__dur2>::type __ct; return __ct(__lhs).count() == __ct(__rhs).count(); } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr bool operator<(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<__dur1,__dur2>::type __ct; return __ct(__lhs).count() < __ct(__rhs).count(); } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> requires three_way_comparable<common_type_t<_Rep1, _Rep2>> constexpr auto operator<=>(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { using __ct = common_type_t<duration<_Rep1, _Period1>, duration<_Rep2, _Period2>>; return __ct(__lhs).count() <=> __ct(__rhs).count(); } # 863 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr bool operator<=(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { return !(__rhs < __lhs); } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr bool operator>(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { return __rhs < __lhs; } template<typename _Rep1, typename _Period1, typename _Rep2, typename _Period2> constexpr bool operator>=(const duration<_Rep1, _Period1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { return !(__lhs < __rhs); } # 899 "/usr/include/c++/13/bits/chrono.h" 3 using nanoseconds = duration<int64_t, nano>; using microseconds = duration<int64_t, micro>; using milliseconds = duration<int64_t, milli>; using seconds = duration<int64_t>; using minutes = duration<int64_t, ratio< 60>>; using hours = duration<int64_t, ratio<3600>>; using days = duration<int64_t, ratio<86400>>; using weeks = duration<int64_t, ratio<604800>>; using years = duration<int64_t, ratio<31556952>>; using months = duration<int64_t, ratio<2629746>>; template<typename _Clock, typename _Dur> class time_point { static_assert(__is_duration<_Dur>::value, "duration must be a specialization of std::chrono::duration"); public: typedef _Clock clock; typedef _Dur duration; typedef typename duration::rep rep; typedef typename duration::period period; constexpr time_point() : __d(duration::zero()) { } constexpr explicit time_point(const duration& __dur) : __d(__dur) { } template<typename _Dur2, typename = _Require<is_convertible<_Dur2, _Dur>>> constexpr time_point(const time_point<clock, _Dur2>& __t) : __d(__t.time_since_epoch()) { } constexpr duration time_since_epoch() const { return __d; } constexpr time_point& operator++() { ++__d; return *this; } constexpr time_point operator++(int) { return time_point{__d++}; } constexpr time_point& operator--() { --__d; return *this; } constexpr time_point operator--(int) { return time_point{__d--}; } constexpr time_point& operator+=(const duration& __dur) { __d += __dur; return *this; } constexpr time_point& operator-=(const duration& __dur) { __d -= __dur; return *this; } static constexpr time_point min() noexcept { return time_point(duration::min()); } static constexpr time_point max() noexcept { return time_point(duration::max()); } private: duration __d; }; # 1027 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Clock, typename _Dur> [[__nodiscard__]] constexpr __enable_if_t<__is_duration<_ToDur>::value, time_point<_Clock, _ToDur>> time_point_cast(const time_point<_Clock, _Dur>& __t) { typedef time_point<_Clock, _ToDur> __time_point; return __time_point(duration_cast<_ToDur>(__t.time_since_epoch())); } # 1049 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Clock, typename _Dur> [[nodiscard]] constexpr enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> floor(const time_point<_Clock, _Dur>& __tp) { return time_point<_Clock, _ToDur>{ chrono::floor<_ToDur>(__tp.time_since_epoch())}; } # 1070 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Clock, typename _Dur> [[nodiscard]] constexpr enable_if_t<__is_duration_v<_ToDur>, time_point<_Clock, _ToDur>> ceil(const time_point<_Clock, _Dur>& __tp) { return time_point<_Clock, _ToDur>{ chrono::ceil<_ToDur>(__tp.time_since_epoch())}; } # 1092 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _ToDur, typename _Clock, typename _Dur> [[nodiscard]] constexpr enable_if_t<__is_duration_v<_ToDur> && !treat_as_floating_point_v<typename _ToDur::rep>, time_point<_Clock, _ToDur>> round(const time_point<_Clock, _Dur>& __tp) { return time_point<_Clock, _ToDur>{ chrono::round<_ToDur>(__tp.time_since_epoch())}; } template<typename _Clock, typename _Dur1, typename _Rep2, typename _Period2> constexpr time_point<_Clock, typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> operator+(const time_point<_Clock, _Dur1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<_Dur1,__dur2>::type __ct; typedef time_point<_Clock, __ct> __time_point; return __time_point(__lhs.time_since_epoch() + __rhs); } template<typename _Rep1, typename _Period1, typename _Clock, typename _Dur2> constexpr time_point<_Clock, typename common_type<duration<_Rep1, _Period1>, _Dur2>::type> operator+(const duration<_Rep1, _Period1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { typedef duration<_Rep1, _Period1> __dur1; typedef typename common_type<__dur1,_Dur2>::type __ct; typedef time_point<_Clock, __ct> __time_point; return __time_point(__rhs.time_since_epoch() + __lhs); } template<typename _Clock, typename _Dur1, typename _Rep2, typename _Period2> constexpr time_point<_Clock, typename common_type<_Dur1, duration<_Rep2, _Period2>>::type> operator-(const time_point<_Clock, _Dur1>& __lhs, const duration<_Rep2, _Period2>& __rhs) { typedef duration<_Rep2, _Period2> __dur2; typedef typename common_type<_Dur1,__dur2>::type __ct; typedef time_point<_Clock, __ct> __time_point; return __time_point(__lhs.time_since_epoch() -__rhs); } template<typename _Clock, typename _Dur1, typename _Dur2> constexpr typename common_type<_Dur1, _Dur2>::type operator-(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return __lhs.time_since_epoch() - __rhs.time_since_epoch(); } template<typename _Clock, typename _Dur1, typename _Dur2> constexpr bool operator==(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return __lhs.time_since_epoch() == __rhs.time_since_epoch(); } template<typename _Clock, typename _Dur1, three_way_comparable_with<_Dur1> _Dur2> constexpr auto operator<=>(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return __lhs.time_since_epoch() <=> __rhs.time_since_epoch(); } # 1183 "/usr/include/c++/13/bits/chrono.h" 3 template<typename _Clock, typename _Dur1, typename _Dur2> constexpr bool operator<(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return __lhs.time_since_epoch() < __rhs.time_since_epoch(); } template<typename _Clock, typename _Dur1, typename _Dur2> constexpr bool operator<=(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return !(__rhs < __lhs); } template<typename _Clock, typename _Dur1, typename _Dur2> constexpr bool operator>(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return __rhs < __lhs; } template<typename _Clock, typename _Dur1, typename _Dur2> constexpr bool operator>=(const time_point<_Clock, _Dur1>& __lhs, const time_point<_Clock, _Dur2>& __rhs) { return !(__lhs < __rhs); } # 1228 "/usr/include/c++/13/bits/chrono.h" 3 inline namespace _V2 { struct system_clock { typedef chrono::nanoseconds duration; typedef duration::rep rep; typedef duration::period period; typedef chrono::time_point<system_clock, duration> time_point; static_assert(system_clock::duration::min() < system_clock::duration::zero(), "a clock's minimum duration cannot be less than its epoch"); static constexpr bool is_steady = false; static time_point now() noexcept; static std::time_t to_time_t(const time_point& __t) noexcept { return std::time_t(duration_cast<chrono::seconds> (__t.time_since_epoch()).count()); } static time_point from_time_t(std::time_t __t) noexcept { typedef chrono::time_point<system_clock, seconds> __from; return time_point_cast<system_clock::duration> (__from(chrono::seconds(__t))); } }; # 1276 "/usr/include/c++/13/bits/chrono.h" 3 struct steady_clock { typedef chrono::nanoseconds duration; typedef duration::rep rep; typedef duration::period period; typedef chrono::time_point<steady_clock, duration> time_point; static constexpr bool is_steady = true; static time_point now() noexcept; }; # 1298 "/usr/include/c++/13/bits/chrono.h" 3 using high_resolution_clock = system_clock; } template<typename _Duration> using sys_time = time_point<system_clock, _Duration>; using sys_seconds = sys_time<seconds>; using sys_days = sys_time<days>; using file_clock = ::std::filesystem::__file_clock; template<typename _Duration> using file_time = time_point<file_clock, _Duration>; template<> struct is_clock<system_clock> : true_type { }; template<> struct is_clock<steady_clock> : true_type { }; template<> struct is_clock<file_clock> : true_type { }; template<> inline constexpr bool is_clock_v<system_clock> = true; template<> inline constexpr bool is_clock_v<steady_clock> = true; template<> inline constexpr bool is_clock_v<file_clock> = true; } inline namespace literals { # 1355 "/usr/include/c++/13/bits/chrono.h" 3 inline namespace chrono_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" template<typename _Dur, char... _Digits> constexpr _Dur __check_overflow() { using _Val = __parse_int::_Parse_int<_Digits...>; constexpr typename _Dur::rep __repval = _Val::value; static_assert(__repval >= 0 && __repval == _Val::value, "literal value cannot be represented by duration type"); return _Dur(__repval); } constexpr chrono::duration<long double, ratio<3600,1>> operator""h(long double __hours) { return chrono::duration<long double, ratio<3600,1>>{__hours}; } template <char... _Digits> constexpr chrono::hours operator""h() { return __check_overflow<chrono::hours, _Digits...>(); } constexpr chrono::duration<long double, ratio<60,1>> operator""min(long double __mins) { return chrono::duration<long double, ratio<60,1>>{__mins}; } template <char... _Digits> constexpr chrono::minutes operator""min() { return __check_overflow<chrono::minutes, _Digits...>(); } constexpr chrono::duration<long double> operator""s(long double __secs) { return chrono::duration<long double>{__secs}; } template <char... _Digits> constexpr chrono::seconds operator""s() { return __check_overflow<chrono::seconds, _Digits...>(); } constexpr chrono::duration<long double, milli> operator""ms(long double __msecs) { return chrono::duration<long double, milli>{__msecs}; } template <char... _Digits> constexpr chrono::milliseconds operator""ms() { return __check_overflow<chrono::milliseconds, _Digits...>(); } constexpr chrono::duration<long double, micro> operator""us(long double __usecs) { return chrono::duration<long double, micro>{__usecs}; } template <char... _Digits> constexpr chrono::microseconds operator""us() { return __check_overflow<chrono::microseconds, _Digits...>(); } constexpr chrono::duration<long double, nano> operator""ns(long double __nsecs) { return chrono::duration<long double, nano>{__nsecs}; } template <char... _Digits> constexpr chrono::nanoseconds operator""ns() { return __check_overflow<chrono::nanoseconds, _Digits...>(); } #pragma GCC diagnostic pop } } namespace chrono { using namespace literals::chrono_literals; } namespace filesystem { struct __file_clock { using duration = chrono::nanoseconds; using rep = duration::rep; using period = duration::period; using time_point = chrono::time_point<__file_clock>; static constexpr bool is_steady = false; static time_point now() noexcept { return _S_from_sys(chrono::system_clock::now()); } template<typename _Dur> static chrono::file_time<_Dur> from_sys(const chrono::sys_time<_Dur>& __t) noexcept { return _S_from_sys(__t); } template<typename _Dur> static chrono::sys_time<_Dur> to_sys(const chrono::file_time<_Dur>& __t) noexcept { return _S_to_sys(__t); } private: using __sys_clock = chrono::system_clock; static constexpr chrono::seconds _S_epoch_diff{6437664000}; protected: template<typename _Dur> static chrono::time_point<__file_clock, _Dur> _S_from_sys(const chrono::time_point<__sys_clock, _Dur>& __t) noexcept { using __file_time = chrono::time_point<__file_clock, _Dur>; return __file_time{__t.time_since_epoch()} - _S_epoch_diff; } template<typename _Dur> static chrono::time_point<__sys_clock, _Dur> _S_to_sys(const chrono::time_point<__file_clock, _Dur>& __t) noexcept { using __sys_time = chrono::time_point<__sys_clock, _Dur>; return __sys_time{__t.time_since_epoch()} + _S_epoch_diff; } }; } } # 44 "/usr/include/c++/13/mutex" 2 3 # 1 "/usr/include/c++/13/bits/unique_lock.h" 1 3 # 33 "/usr/include/c++/13/bits/unique_lock.h" 3 # 34 "/usr/include/c++/13/bits/unique_lock.h" 3 # 43 "/usr/include/c++/13/bits/unique_lock.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 58 "/usr/include/c++/13/bits/unique_lock.h" 3 template<typename _Mutex> class unique_lock { public: typedef _Mutex mutex_type; unique_lock() noexcept : _M_device(0), _M_owns(false) { } explicit unique_lock(mutex_type& __m) : _M_device(std::__addressof(__m)), _M_owns(false) { lock(); _M_owns = true; } unique_lock(mutex_type& __m, defer_lock_t) noexcept : _M_device(std::__addressof(__m)), _M_owns(false) { } unique_lock(mutex_type& __m, try_to_lock_t) : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock()) { } unique_lock(mutex_type& __m, adopt_lock_t) noexcept : _M_device(std::__addressof(__m)), _M_owns(true) { } template<typename _Clock, typename _Duration> unique_lock(mutex_type& __m, const chrono::time_point<_Clock, _Duration>& __atime) : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock_until(__atime)) { } template<typename _Rep, typename _Period> unique_lock(mutex_type& __m, const chrono::duration<_Rep, _Period>& __rtime) : _M_device(std::__addressof(__m)), _M_owns(_M_device->try_lock_for(__rtime)) { } ~unique_lock() { if (_M_owns) unlock(); } unique_lock(const unique_lock&) = delete; unique_lock& operator=(const unique_lock&) = delete; unique_lock(unique_lock&& __u) noexcept : _M_device(__u._M_device), _M_owns(__u._M_owns) { __u._M_device = 0; __u._M_owns = false; } unique_lock& operator=(unique_lock&& __u) noexcept { if(_M_owns) unlock(); unique_lock(std::move(__u)).swap(*this); __u._M_device = 0; __u._M_owns = false; return *this; } void lock() { if (!_M_device) __throw_system_error(int(errc::operation_not_permitted)); else if (_M_owns) __throw_system_error(int(errc::resource_deadlock_would_occur)); else { _M_device->lock(); _M_owns = true; } } [[__nodiscard__]] bool try_lock() { if (!_M_device) __throw_system_error(int(errc::operation_not_permitted)); else if (_M_owns) __throw_system_error(int(errc::resource_deadlock_would_occur)); else { _M_owns = _M_device->try_lock(); return _M_owns; } } template<typename _Clock, typename _Duration> [[__nodiscard__]] bool try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) { if (!_M_device) __throw_system_error(int(errc::operation_not_permitted)); else if (_M_owns) __throw_system_error(int(errc::resource_deadlock_would_occur)); else { _M_owns = _M_device->try_lock_until(__atime); return _M_owns; } } template<typename _Rep, typename _Period> [[__nodiscard__]] bool try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) { if (!_M_device) __throw_system_error(int(errc::operation_not_permitted)); else if (_M_owns) __throw_system_error(int(errc::resource_deadlock_would_occur)); else { _M_owns = _M_device->try_lock_for(__rtime); return _M_owns; } } void unlock() { if (!_M_owns) __throw_system_error(int(errc::operation_not_permitted)); else if (_M_device) { _M_device->unlock(); _M_owns = false; } } void swap(unique_lock& __u) noexcept { std::swap(_M_device, __u._M_device); std::swap(_M_owns, __u._M_owns); } mutex_type* release() noexcept { mutex_type* __ret = _M_device; _M_device = 0; _M_owns = false; return __ret; } [[__nodiscard__]] bool owns_lock() const noexcept { return _M_owns; } explicit operator bool() const noexcept { return owns_lock(); } [[__nodiscard__]] mutex_type* mutex() const noexcept { return _M_device; } private: mutex_type* _M_device; bool _M_owns; }; template<typename _Mutex> inline void swap(unique_lock<_Mutex>& __x, unique_lock<_Mutex>& __y) noexcept { __x.swap(__y); } } # 47 "/usr/include/c++/13/mutex" 2 3 # 57 "/usr/include/c++/13/mutex" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 70 "/usr/include/c++/13/mutex" 3 class __recursive_mutex_base { protected: typedef __gthread_recursive_mutex_t __native_type; __recursive_mutex_base(const __recursive_mutex_base&) = delete; __recursive_mutex_base& operator=(const __recursive_mutex_base&) = delete; __native_type _M_mutex = { { 0, 0, 0, 0, PTHREAD_MUTEX_RECURSIVE_NP, 0, 0, { 0, 0 } } }; __recursive_mutex_base() = default; # 94 "/usr/include/c++/13/mutex" 3 }; # 106 "/usr/include/c++/13/mutex" 3 class recursive_mutex : private __recursive_mutex_base { public: typedef __native_type* native_handle_type; recursive_mutex() = default; ~recursive_mutex() = default; recursive_mutex(const recursive_mutex&) = delete; recursive_mutex& operator=(const recursive_mutex&) = delete; void lock() { int __e = __gthread_recursive_mutex_lock(&_M_mutex); if (__e) __throw_system_error(__e); } [[__nodiscard__]] bool try_lock() noexcept { return !__gthread_recursive_mutex_trylock(&_M_mutex); } void unlock() { __gthread_recursive_mutex_unlock(&_M_mutex); } native_handle_type native_handle() noexcept { return &_M_mutex; } }; template<typename _Derived> class __timed_mutex_impl { protected: template<typename _Rep, typename _Period> bool _M_try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) { using __clock = chrono::steady_clock; auto __rt = chrono::duration_cast<__clock::duration>(__rtime); if (ratio_greater<__clock::period, _Period>()) ++__rt; return _M_try_lock_until(__clock::now() + __rt); } template<typename _Duration> bool _M_try_lock_until(const chrono::time_point<chrono::system_clock, _Duration>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); __gthread_time_t __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; return static_cast<_Derived*>(this)->_M_timedlock(__ts); } template<typename _Duration> bool _M_try_lock_until(const chrono::time_point<chrono::steady_clock, _Duration>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); __gthread_time_t __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; return static_cast<_Derived*>(this)->_M_clocklock(1, __ts); } template<typename _Clock, typename _Duration> bool _M_try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) { static_assert(chrono::is_clock_v<_Clock>); auto __now = _Clock::now(); do { auto __rtime = __atime - __now; if (_M_try_lock_for(__rtime)) return true; __now = _Clock::now(); } while (__atime > __now); return false; } }; # 235 "/usr/include/c++/13/mutex" 3 class timed_mutex : private __mutex_base, public __timed_mutex_impl<timed_mutex> { public: typedef __native_type* native_handle_type; timed_mutex() = default; ~timed_mutex() = default; timed_mutex(const timed_mutex&) = delete; timed_mutex& operator=(const timed_mutex&) = delete; void lock() { int __e = __gthread_mutex_lock(&_M_mutex); if (__e) __throw_system_error(__e); } [[__nodiscard__]] bool try_lock() noexcept { return !__gthread_mutex_trylock(&_M_mutex); } template <class _Rep, class _Period> [[__nodiscard__]] bool try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) { return _M_try_lock_for(__rtime); } template <class _Clock, class _Duration> [[__nodiscard__]] bool try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) { return _M_try_lock_until(__atime); } void unlock() { __gthread_mutex_unlock(&_M_mutex); } native_handle_type native_handle() noexcept { return &_M_mutex; } private: friend class __timed_mutex_impl<timed_mutex>; bool _M_timedlock(const __gthread_time_t& __ts) { return !__gthread_mutex_timedlock(&_M_mutex, &__ts); } bool _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } }; # 312 "/usr/include/c++/13/mutex" 3 class recursive_timed_mutex : private __recursive_mutex_base, public __timed_mutex_impl<recursive_timed_mutex> { public: typedef __native_type* native_handle_type; recursive_timed_mutex() = default; ~recursive_timed_mutex() = default; recursive_timed_mutex(const recursive_timed_mutex&) = delete; recursive_timed_mutex& operator=(const recursive_timed_mutex&) = delete; void lock() { int __e = __gthread_recursive_mutex_lock(&_M_mutex); if (__e) __throw_system_error(__e); } [[__nodiscard__]] bool try_lock() noexcept { return !__gthread_recursive_mutex_trylock(&_M_mutex); } template <class _Rep, class _Period> [[__nodiscard__]] bool try_lock_for(const chrono::duration<_Rep, _Period>& __rtime) { return _M_try_lock_for(__rtime); } template <class _Clock, class _Duration> [[__nodiscard__]] bool try_lock_until(const chrono::time_point<_Clock, _Duration>& __atime) { return _M_try_lock_until(__atime); } void unlock() { __gthread_recursive_mutex_unlock(&_M_mutex); } native_handle_type native_handle() noexcept { return &_M_mutex; } private: friend class __timed_mutex_impl<recursive_timed_mutex>; bool _M_timedlock(const __gthread_time_t& __ts) { return !__gthread_recursive_mutex_timedlock(&_M_mutex, &__ts); } bool _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } }; # 559 "/usr/include/c++/13/mutex" 3 namespace __detail { template<typename _Lockable> inline int __try_lock_impl(_Lockable& __l) { if (unique_lock<_Lockable> __lock{__l, try_to_lock}) { __lock.release(); return -1; } else return 0; } template<typename _L0, typename... _Lockables> inline int __try_lock_impl(_L0& __l0, _Lockables&... __lockables) { if constexpr ((is_same_v<_L0, _Lockables> && ...)) { constexpr int _Np = 1 + sizeof...(_Lockables); unique_lock<_L0> __locks[_Np] = { {__l0, defer_lock}, {__lockables, defer_lock}... }; for (int __i = 0; __i < _Np; ++__i) { if (!__locks[__i].try_lock()) { const int __failed = __i; while (__i--) __locks[__i].unlock(); return __failed; } } for (auto& __l : __locks) __l.release(); return -1; } else if (unique_lock<_L0> __lock{__l0, try_to_lock}) { int __idx = __detail::__try_lock_impl(__lockables...); if (__idx == -1) { __lock.release(); return -1; } return __idx + 1; } else return 0; } } # 631 "/usr/include/c++/13/mutex" 3 template<typename _L1, typename _L2, typename... _L3> [[__nodiscard__]] inline int try_lock(_L1& __l1, _L2& __l2, _L3&... __l3) { return __detail::__try_lock_impl(__l1, __l2, __l3...); } namespace __detail { template<typename _L0, typename... _L1> void __lock_impl(int& __i, int __depth, _L0& __l0, _L1&... __l1) { while (__i >= __depth) { if (__i == __depth) { int __failed = 1; { unique_lock<_L0> __first(__l0); __failed += __detail::__try_lock_impl(__l1...); if (!__failed) { __i = -1; __first.release(); return; } } __gthread_yield(); constexpr auto __n = 1 + sizeof...(_L1); __i = (__depth + __failed) % __n; } else __detail::__lock_impl(__i, __depth + 1, __l1..., __l0); } } } # 691 "/usr/include/c++/13/mutex" 3 template<typename _L1, typename _L2, typename... _L3> void lock(_L1& __l1, _L2& __l2, _L3&... __l3) { if constexpr (is_same_v<_L1, _L2> && (is_same_v<_L1, _L3> && ...)) { constexpr int _Np = 2 + sizeof...(_L3); unique_lock<_L1> __locks[] = { {__l1, defer_lock}, {__l2, defer_lock}, {__l3, defer_lock}... }; int __first = 0; do { __locks[__first].lock(); for (int __j = 1; __j < _Np; ++__j) { const int __idx = (__first + __j) % _Np; if (!__locks[__idx].try_lock()) { for (int __k = __j; __k != 0; --__k) __locks[(__first + __k - 1) % _Np].unlock(); __first = __idx; break; } } } while (!__locks[__first].owns_lock()); for (auto& __l : __locks) __l.release(); } else { int __i = 0; __detail::__lock_impl(__i, 0, __l1, __l2, __l3...); } } # 739 "/usr/include/c++/13/mutex" 3 template<typename... _MutexTypes> class scoped_lock { public: explicit scoped_lock(_MutexTypes&... __m) : _M_devices(std::tie(__m...)) { std::lock(__m...); } explicit scoped_lock(adopt_lock_t, _MutexTypes&... __m) noexcept : _M_devices(std::tie(__m...)) { } ~scoped_lock() { std::apply([](auto&... __m) { (__m.unlock(), ...); }, _M_devices); } scoped_lock(const scoped_lock&) = delete; scoped_lock& operator=(const scoped_lock&) = delete; private: tuple<_MutexTypes&...> _M_devices; }; template<> class scoped_lock<> { public: explicit scoped_lock() = default; explicit scoped_lock(adopt_lock_t) noexcept { } ~scoped_lock() = default; scoped_lock(const scoped_lock&) = delete; scoped_lock& operator=(const scoped_lock&) = delete; }; template<typename _Mutex> class scoped_lock<_Mutex> { public: using mutex_type = _Mutex; explicit scoped_lock(mutex_type& __m) : _M_device(__m) { _M_device.lock(); } explicit scoped_lock(adopt_lock_t, mutex_type& __m) noexcept : _M_device(__m) { } ~scoped_lock() { _M_device.unlock(); } scoped_lock(const scoped_lock&) = delete; scoped_lock& operator=(const scoped_lock&) = delete; private: mutex_type& _M_device; }; struct once_flag { constexpr once_flag() noexcept = default; once_flag(const once_flag&) = delete; once_flag& operator=(const once_flag&) = delete; private: __gthread_once_t _M_once = 0; struct _Prepare_execution; template<typename _Callable, typename... _Args> friend void call_once(once_flag& __once, _Callable&& __f, _Args&&... __args); }; extern __thread void* __once_callable; extern __thread void (*__once_call)(); struct once_flag::_Prepare_execution { template<typename _Callable> explicit _Prepare_execution(_Callable& __c) { __once_callable = std::__addressof(__c); __once_call = [] { (*static_cast<_Callable*>(__once_callable))(); }; } ~_Prepare_execution() { __once_callable = nullptr; __once_call = nullptr; } _Prepare_execution(const _Prepare_execution&) = delete; _Prepare_execution& operator=(const _Prepare_execution&) = delete; }; # 891 "/usr/include/c++/13/mutex" 3 extern "C" void __once_proxy(void); template<typename _Callable, typename... _Args> void call_once(once_flag& __once, _Callable&& __f, _Args&&... __args) { auto __callable = [&] { std::__invoke(std::forward<_Callable>(__f), std::forward<_Args>(__args)...); }; once_flag::_Prepare_execution __exec(__callable); if (int __e = __gthread_once(&__once._M_once, &__once_proxy)) __throw_system_error(__e); } # 1012 "/usr/include/c++/13/mutex" 3 } # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/mutex.hpp" 2 3 4 namespace boost { namespace system { namespace detail { using std::mutex; } } } namespace boost { namespace system { namespace detail { template<class Mtx> class lock_guard { private: Mtx& mtx_; private: lock_guard( lock_guard const& ); lock_guard& operator=( lock_guard const& ); public: explicit lock_guard( Mtx& mtx ): mtx_( mtx ) { mtx_.lock(); } ~lock_guard() { mtx_.unlock(); } }; } } } # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 2 3 4 namespace boost { namespace system { inline void error_category::init_stdcat() const { static_assert( sizeof( stdcat_ ) >= sizeof( boost::system::detail::std_category ), "sizeof(stdcat_) is not enough for std_category" ); static_assert( alignof( decltype(stdcat_align_) ) >= alignof( boost::system::detail::std_category ), "alignof(stdcat_) is not enough for std_category" ); static system::detail::mutex mx_; system::detail::lock_guard<system::detail::mutex> lk( mx_ ); if( sc_init_.load( std::memory_order_acquire ) == 0 ) { ::new( static_cast<void*>( stdcat_ ) ) boost::system::detail::std_category( this, system::detail::id_wrapper<0>() ); sc_init_.store( 1, std::memory_order_release ); } } inline __attribute__ ((__noinline__)) error_category::operator std::error_category const & () const { if( id_ == detail::generic_category_id ) { # 153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 3 4 return std::generic_category(); } if( id_ == detail::system_category_id ) { # 168 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/error_category_impl.hpp" 3 4 return std::system_category(); } if( sc_init_.load( std::memory_order_acquire ) == 0 ) { init_stdcat(); } return *static_cast<boost::system::detail::std_category const*>( static_cast<void const*>( stdcat_ ) ); } } } # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_category.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_condition.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/errc.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/errc.hpp" 3 4 namespace boost { namespace system { namespace errc { constexpr inline error_code make_error_code( errc_t e ) noexcept { return error_code( e, generic_category() ); } inline error_code make_error_code( errc_t e, boost::source_location const * loc ) noexcept { return error_code( e, generic_category(), loc ); } constexpr inline error_condition make_error_condition( errc_t e ) noexcept { return error_condition( e, generic_category() ); } } } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/generic_category.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/system_category.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/throws.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/throws.hpp" 3 4 namespace boost { namespace system { class error_code; } namespace detail { # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/throws.hpp" 3 4 inline system::error_code* throws() { # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/detail/throws.hpp" 3 4 return reinterpret_cast<system::error_code*>(8); } } inline system::error_code& throws() { return *detail::throws(); } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/error_code.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { inline void do_throw_error( const boost::system::error_code& err , const boost::source_location& loc); inline void do_throw_error( const boost::system::error_code& err, const char* location , const boost::source_location& loc); inline void throw_error( const boost::system::error_code& err , const boost::source_location& loc = ::boost::source_location(::std::source_location::current())) { if (err) do_throw_error(err , loc); } inline void throw_error( const boost::system::error_code& err, const char* location , const boost::source_location& loc = ::boost::source_location(::std::source_location::current())) { if (err) do_throw_error(err, location , loc); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/throw_error.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/throw_error.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/throw_error.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/system_error.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/system_error.hpp" 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/system/system_error.hpp" 2 3 4 namespace boost { namespace system { class __attribute__((__visibility__("default"))) system_error: public std::runtime_error { private: error_code code_; public: explicit system_error( error_code const & ec ): std::runtime_error( ec.what() ), code_( ec ) {} system_error( error_code const & ec, std::string const & prefix ): std::runtime_error( prefix + ": " + ec.what() ), code_( ec ) {} system_error( error_code const & ec, char const * prefix ): std::runtime_error( std::string( prefix ) + ": " + ec.what() ), code_( ec ) {} system_error( int ev, error_category const & ecat ): std::runtime_error( error_code( ev, ecat ).what() ), code_( ev, ecat ) {} system_error( int ev, error_category const & ecat, std::string const & prefix ): std::runtime_error( prefix + ": " + error_code( ev, ecat ).what() ), code_( ev, ecat ) {} system_error( int ev, error_category const & ecat, char const * prefix ): std::runtime_error( std::string( prefix ) + ": " + error_code( ev, ecat ).what() ), code_( ev, ecat ) {} error_code code() const noexcept { return code_; } }; } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/throw_error.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/throw_error.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { void do_throw_error( const boost::system::error_code& err , const boost::source_location& loc) { boost::system::system_error e(err); boost::asio::detail::throw_exception(e , loc); } void do_throw_error( const boost::system::error_code& err, const char* location , const boost::source_location& loc) { boost::system::system_error e(err, location); boost::asio::detail::throw_exception(e , loc); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/throw_error.ipp" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/throw_error.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cerrno.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 2 3 4 # 1 "/usr/include/c++/13/cerrno" 1 3 4 # 39 "/usr/include/c++/13/cerrno" 3 4 # 40 "/usr/include/c++/13/cerrno" 3 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 2 3 4 # 1 "/usr/include/netdb.h" 1 3 4 # 27 "/usr/include/netdb.h" 3 4 # 1 "/usr/include/netinet/in.h" 1 3 4 # 23 "/usr/include/netinet/in.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/socket.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/types/struct_iovec.h" 2 3 4 struct iovec { void *iov_base; size_t iov_len; }; # 27 "/usr/include/x86_64-linux-gnu/sys/socket.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 29 "/usr/include/x86_64-linux-gnu/sys/socket.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/socket.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/socket.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/socket.h" 2 3 4 # 38 "/usr/include/x86_64-linux-gnu/bits/socket.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/socket_type.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/socket_type.h" 3 4 enum __socket_type { SOCK_STREAM = 1, SOCK_DGRAM = 2, SOCK_RAW = 3, SOCK_RDM = 4, SOCK_SEQPACKET = 5, SOCK_DCCP = 6, SOCK_PACKET = 10, SOCK_CLOEXEC = 02000000, SOCK_NONBLOCK = 00004000 }; # 39 "/usr/include/x86_64-linux-gnu/bits/socket.h" 2 3 4 # 177 "/usr/include/x86_64-linux-gnu/bits/socket.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/sockaddr.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/bits/sockaddr.h" 3 4 typedef unsigned short int sa_family_t; # 178 "/usr/include/x86_64-linux-gnu/bits/socket.h" 2 3 4 struct sockaddr { sa_family_t sa_family; char sa_data[14]; }; # 193 "/usr/include/x86_64-linux-gnu/bits/socket.h" 3 4 struct sockaddr_storage { sa_family_t ss_family; char __ss_padding[(128 - (sizeof (unsigned short int)) - sizeof (unsigned long int))]; unsigned long int __ss_align; }; enum { MSG_OOB = 0x01, MSG_PEEK = 0x02, MSG_DONTROUTE = 0x04, MSG_TRYHARD = MSG_DONTROUTE, MSG_CTRUNC = 0x08, MSG_PROXY = 0x10, MSG_TRUNC = 0x20, MSG_DONTWAIT = 0x40, MSG_EOR = 0x80, MSG_WAITALL = 0x100, MSG_FIN = 0x200, MSG_SYN = 0x400, MSG_CONFIRM = 0x800, MSG_RST = 0x1000, MSG_ERRQUEUE = 0x2000, MSG_NOSIGNAL = 0x4000, MSG_MORE = 0x8000, MSG_WAITFORONE = 0x10000, MSG_BATCH = 0x40000, MSG_ZEROCOPY = 0x4000000, MSG_FASTOPEN = 0x20000000, MSG_CMSG_CLOEXEC = 0x40000000 }; struct msghdr { void *msg_name; socklen_t msg_namelen; struct iovec *msg_iov; size_t msg_iovlen; void *msg_control; size_t msg_controllen; int msg_flags; }; struct cmsghdr { size_t cmsg_len; int cmsg_level; int cmsg_type; __extension__ unsigned char __cmsg_data []; }; # 307 "/usr/include/x86_64-linux-gnu/bits/socket.h" 3 4 extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) noexcept (true); # 334 "/usr/include/x86_64-linux-gnu/bits/socket.h" 3 4 enum { SCM_RIGHTS = 0x01 , SCM_CREDENTIALS = 0x02 }; struct ucred { pid_t pid; uid_t uid; gid_t gid; }; # 1 "/usr/include/x86_64-linux-gnu/asm/socket.h" 1 3 4 # 1 "/usr/include/asm-generic/socket.h" 1 3 4 # 1 "/usr/include/linux/posix_types.h" 1 3 4 # 1 "/usr/include/linux/stddef.h" 1 3 4 # 6 "/usr/include/linux/posix_types.h" 2 3 4 # 25 "/usr/include/linux/posix_types.h" 3 4 typedef struct { unsigned long fds_bits[1024 / (8 * sizeof(long))]; } __kernel_fd_set; typedef void (*__kernel_sighandler_t)(int); typedef int __kernel_key_t; typedef int __kernel_mqd_t; # 1 "/usr/include/x86_64-linux-gnu/asm/posix_types.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/posix_types_64.h" 1 3 4 # 11 "/usr/include/x86_64-linux-gnu/asm/posix_types_64.h" 3 4 typedef unsigned short __kernel_old_uid_t; typedef unsigned short __kernel_old_gid_t; typedef unsigned long __kernel_old_dev_t; # 1 "/usr/include/asm-generic/posix_types.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/bitsperlong.h" 1 3 4 # 11 "/usr/include/x86_64-linux-gnu/asm/bitsperlong.h" 3 4 # 1 "/usr/include/asm-generic/bitsperlong.h" 1 3 4 # 12 "/usr/include/x86_64-linux-gnu/asm/bitsperlong.h" 2 3 4 # 6 "/usr/include/asm-generic/posix_types.h" 2 3 4 # 15 "/usr/include/asm-generic/posix_types.h" 3 4 typedef long __kernel_long_t; typedef unsigned long __kernel_ulong_t; typedef __kernel_ulong_t __kernel_ino_t; typedef unsigned int __kernel_mode_t; typedef int __kernel_pid_t; typedef int __kernel_ipc_pid_t; typedef unsigned int __kernel_uid_t; typedef unsigned int __kernel_gid_t; typedef __kernel_long_t __kernel_suseconds_t; typedef int __kernel_daddr_t; typedef unsigned int __kernel_uid32_t; typedef unsigned int __kernel_gid32_t; # 72 "/usr/include/asm-generic/posix_types.h" 3 4 typedef __kernel_ulong_t __kernel_size_t; typedef __kernel_long_t __kernel_ssize_t; typedef __kernel_long_t __kernel_ptrdiff_t; typedef struct { int val[2]; } __kernel_fsid_t; typedef __kernel_long_t __kernel_off_t; typedef long long __kernel_loff_t; typedef __kernel_long_t __kernel_old_time_t; typedef __kernel_long_t __kernel_time_t; typedef long long __kernel_time64_t; typedef __kernel_long_t __kernel_clock_t; typedef int __kernel_timer_t; typedef int __kernel_clockid_t; typedef char * __kernel_caddr_t; typedef unsigned short __kernel_uid16_t; typedef unsigned short __kernel_gid16_t; # 19 "/usr/include/x86_64-linux-gnu/asm/posix_types_64.h" 2 3 4 # 8 "/usr/include/x86_64-linux-gnu/asm/posix_types.h" 2 3 4 # 37 "/usr/include/linux/posix_types.h" 2 3 4 # 6 "/usr/include/asm-generic/socket.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/sockios.h" 1 3 4 # 1 "/usr/include/asm-generic/sockios.h" 1 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/sockios.h" 2 3 4 # 7 "/usr/include/asm-generic/socket.h" 2 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/socket.h" 2 3 4 # 357 "/usr/include/x86_64-linux-gnu/bits/socket.h" 2 3 4 struct linger { int l_onoff; int l_linger; }; # 34 "/usr/include/x86_64-linux-gnu/sys/socket.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_osockaddr.h" 1 3 4 struct osockaddr { unsigned short int sa_family; unsigned char sa_data[14]; }; # 37 "/usr/include/x86_64-linux-gnu/sys/socket.h" 2 3 4 enum { SHUT_RD = 0, SHUT_WR, SHUT_RDWR }; # 90 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 struct mmsghdr { struct msghdr msg_hdr; unsigned int msg_len; }; extern int socket (int __domain, int __type, int __protocol) noexcept (true); extern int socketpair (int __domain, int __type, int __protocol, int __fds[2]) noexcept (true); extern int bind (int __fd, const struct sockaddr * __addr, socklen_t __len) noexcept (true); extern int getsockname (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __len) noexcept (true); # 126 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int connect (int __fd, const struct sockaddr * __addr, socklen_t __len); extern int getpeername (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __len) noexcept (true); extern ssize_t send (int __fd, const void *__buf, size_t __n, int __flags); extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags); extern ssize_t sendto (int __fd, const void *__buf, size_t __n, int __flags, const struct sockaddr * __addr, socklen_t __addr_len); # 163 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n, int __flags, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); # 174 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern ssize_t sendmsg (int __fd, const struct msghdr *__message, int __flags); # 195 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int sendmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags); # 216 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags); # 235 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int recvmmsg (int __fd, struct mmsghdr *__vmessages, unsigned int __vlen, int __flags, struct timespec *__tmo); # 255 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int getsockopt (int __fd, int __level, int __optname, void *__restrict __optval, socklen_t *__restrict __optlen) noexcept (true); # 277 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int setsockopt (int __fd, int __level, int __optname, const void *__optval, socklen_t __optlen) noexcept (true); # 296 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int listen (int __fd, int __n) noexcept (true); # 306 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int accept (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len); extern int accept4 (int __fd, struct sockaddr *__restrict __addr, socklen_t *__restrict __addr_len, int __flags); # 324 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 extern int shutdown (int __fd, int __how) noexcept (true); extern int sockatmark (int __fd) noexcept (true); extern int isfdtype (int __fd, int __fdtype) noexcept (true); # 346 "/usr/include/x86_64-linux-gnu/sys/socket.h" 3 4 } # 24 "/usr/include/netinet/in.h" 2 3 4 extern "C" { typedef uint32_t in_addr_t; struct in_addr { in_addr_t s_addr; }; # 1 "/usr/include/x86_64-linux-gnu/bits/in.h" 1 3 4 # 143 "/usr/include/x86_64-linux-gnu/bits/in.h" 3 4 struct ip_opts { struct in_addr ip_dst; char ip_opts[40]; }; struct ip_mreqn { struct in_addr imr_multiaddr; struct in_addr imr_address; int imr_ifindex; }; struct in_pktinfo { int ipi_ifindex; struct in_addr ipi_spec_dst; struct in_addr ipi_addr; }; # 38 "/usr/include/netinet/in.h" 2 3 4 enum { IPPROTO_IP = 0, IPPROTO_ICMP = 1, IPPROTO_IGMP = 2, IPPROTO_IPIP = 4, IPPROTO_TCP = 6, IPPROTO_EGP = 8, IPPROTO_PUP = 12, IPPROTO_UDP = 17, IPPROTO_IDP = 22, IPPROTO_TP = 29, IPPROTO_DCCP = 33, IPPROTO_IPV6 = 41, IPPROTO_RSVP = 46, IPPROTO_GRE = 47, IPPROTO_ESP = 50, IPPROTO_AH = 51, IPPROTO_MTP = 92, IPPROTO_BEETPH = 94, IPPROTO_ENCAP = 98, IPPROTO_PIM = 103, IPPROTO_COMP = 108, IPPROTO_SCTP = 132, IPPROTO_UDPLITE = 136, IPPROTO_MPLS = 137, IPPROTO_ETHERNET = 143, IPPROTO_RAW = 255, IPPROTO_MPTCP = 262, IPPROTO_MAX }; enum { IPPROTO_HOPOPTS = 0, IPPROTO_ROUTING = 43, IPPROTO_FRAGMENT = 44, IPPROTO_ICMPV6 = 58, IPPROTO_NONE = 59, IPPROTO_DSTOPTS = 60, IPPROTO_MH = 135 }; typedef uint16_t in_port_t; enum { IPPORT_ECHO = 7, IPPORT_DISCARD = 9, IPPORT_SYSTAT = 11, IPPORT_DAYTIME = 13, IPPORT_NETSTAT = 15, IPPORT_FTP = 21, IPPORT_TELNET = 23, IPPORT_SMTP = 25, IPPORT_TIMESERVER = 37, IPPORT_NAMESERVER = 42, IPPORT_WHOIS = 43, IPPORT_MTP = 57, IPPORT_TFTP = 69, IPPORT_RJE = 77, IPPORT_FINGER = 79, IPPORT_TTYLINK = 87, IPPORT_SUPDUP = 95, IPPORT_EXECSERVER = 512, IPPORT_LOGINSERVER = 513, IPPORT_CMDSERVER = 514, IPPORT_EFSSERVER = 520, IPPORT_BIFFUDP = 512, IPPORT_WHOSERVER = 513, IPPORT_ROUTESERVER = 520, IPPORT_RESERVED = 1024, IPPORT_USERRESERVED = 5000 }; # 219 "/usr/include/netinet/in.h" 3 4 struct in6_addr { union { uint8_t __u6_addr8[16]; uint16_t __u6_addr16[8]; uint32_t __u6_addr32[4]; } __in6_u; }; extern const struct in6_addr in6addr_any; extern const struct in6_addr in6addr_loopback; # 245 "/usr/include/netinet/in.h" 3 4 struct sockaddr_in { sa_family_t sin_family; in_port_t sin_port; struct in_addr sin_addr; unsigned char sin_zero[sizeof (struct sockaddr) - (sizeof (unsigned short int)) - sizeof (in_port_t) - sizeof (struct in_addr)]; }; struct sockaddr_in6 { sa_family_t sin6_family; in_port_t sin6_port; uint32_t sin6_flowinfo; struct in6_addr sin6_addr; uint32_t sin6_scope_id; }; struct ip_mreq { struct in_addr imr_multiaddr; struct in_addr imr_interface; }; struct ip_mreq_source { struct in_addr imr_multiaddr; struct in_addr imr_interface; struct in_addr imr_sourceaddr; }; struct ipv6_mreq { struct in6_addr ipv6mr_multiaddr; unsigned int ipv6mr_interface; }; struct group_req { uint32_t gr_interface; struct sockaddr_storage gr_group; }; struct group_source_req { uint32_t gsr_interface; struct sockaddr_storage gsr_group; struct sockaddr_storage gsr_source; }; struct ip_msfilter { struct in_addr imsf_multiaddr; struct in_addr imsf_interface; uint32_t imsf_fmode; uint32_t imsf_numsrc; struct in_addr imsf_slist[1]; }; struct group_filter { uint32_t gf_interface; struct sockaddr_storage gf_group; uint32_t gf_fmode; uint32_t gf_numsrc; struct sockaddr_storage gf_slist[1]; }; # 382 "/usr/include/netinet/in.h" 3 4 extern uint32_t ntohl (uint32_t __netlong) noexcept (true) __attribute__ ((__const__)); extern uint16_t ntohs (uint16_t __netshort) noexcept (true) __attribute__ ((__const__)); extern uint32_t htonl (uint32_t __hostlong) noexcept (true) __attribute__ ((__const__)); extern uint16_t htons (uint16_t __hostshort) noexcept (true) __attribute__ ((__const__)); # 1 "/usr/include/x86_64-linux-gnu/bits/byteswap.h" 1 3 4 # 394 "/usr/include/netinet/in.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/uintn-identity.h" 1 3 4 # 395 "/usr/include/netinet/in.h" 2 3 4 # 510 "/usr/include/netinet/in.h" 3 4 extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) noexcept (true); extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in) noexcept (true); # 540 "/usr/include/netinet/in.h" 3 4 struct cmsghdr; struct in6_pktinfo { struct in6_addr ipi6_addr; unsigned int ipi6_ifindex; }; struct ip6_mtuinfo { struct sockaddr_in6 ip6m_addr; uint32_t ip6m_mtu; }; extern int inet6_option_space (int __nbytes) noexcept (true) __attribute__ ((__deprecated__)); extern int inet6_option_init (void *__bp, struct cmsghdr **__cmsgp, int __type) noexcept (true) __attribute__ ((__deprecated__)); extern int inet6_option_append (struct cmsghdr *__cmsg, const uint8_t *__typep, int __multx, int __plusy) noexcept (true) __attribute__ ((__deprecated__)); extern uint8_t *inet6_option_alloc (struct cmsghdr *__cmsg, int __datalen, int __multx, int __plusy) noexcept (true) __attribute__ ((__deprecated__)); extern int inet6_option_next (const struct cmsghdr *__cmsg, uint8_t **__tptrp) noexcept (true) __attribute__ ((__deprecated__)); extern int inet6_option_find (const struct cmsghdr *__cmsg, uint8_t **__tptrp, int __type) noexcept (true) __attribute__ ((__deprecated__)); extern int inet6_opt_init (void *__extbuf, socklen_t __extlen) noexcept (true); extern int inet6_opt_append (void *__extbuf, socklen_t __extlen, int __offset, uint8_t __type, socklen_t __len, uint8_t __align, void **__databufp) noexcept (true); extern int inet6_opt_finish (void *__extbuf, socklen_t __extlen, int __offset) noexcept (true); extern int inet6_opt_set_val (void *__databuf, int __offset, void *__val, socklen_t __vallen) noexcept (true); extern int inet6_opt_next (void *__extbuf, socklen_t __extlen, int __offset, uint8_t *__typep, socklen_t *__lenp, void **__databufp) noexcept (true); extern int inet6_opt_find (void *__extbuf, socklen_t __extlen, int __offset, uint8_t __type, socklen_t *__lenp, void **__databufp) noexcept (true); extern int inet6_opt_get_val (void *__databuf, int __offset, void *__val, socklen_t __vallen) noexcept (true); extern socklen_t inet6_rth_space (int __type, int __segments) noexcept (true); extern void *inet6_rth_init (void *__bp, socklen_t __bp_len, int __type, int __segments) noexcept (true); extern int inet6_rth_add (void *__bp, const struct in6_addr *__addr) noexcept (true); extern int inet6_rth_reverse (const void *__in, void *__out) noexcept (true); extern int inet6_rth_segments (const void *__bp) noexcept (true); extern struct in6_addr *inet6_rth_getaddr (const void *__bp, int __index) noexcept (true); extern int getipv4sourcefilter (int __s, struct in_addr __interface_addr, struct in_addr __group, uint32_t *__fmode, uint32_t *__numsrc, struct in_addr *__slist) noexcept (true); extern int setipv4sourcefilter (int __s, struct in_addr __interface_addr, struct in_addr __group, uint32_t __fmode, uint32_t __numsrc, const struct in_addr *__slist) noexcept (true); extern int getsourcefilter (int __s, uint32_t __interface_addr, const struct sockaddr *__group, socklen_t __grouplen, uint32_t *__fmode, uint32_t *__numsrc, struct sockaddr_storage *__slist) noexcept (true); extern int setsourcefilter (int __s, uint32_t __interface_addr, const struct sockaddr *__group, socklen_t __grouplen, uint32_t __fmode, uint32_t __numsrc, const struct sockaddr_storage *__slist) noexcept (true); } # 28 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/rpc/netdb.h" 1 3 4 # 42 "/usr/include/rpc/netdb.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 43 "/usr/include/rpc/netdb.h" 2 3 4 extern "C" { struct rpcent { char *r_name; char **r_aliases; int r_number; }; extern void setrpcent (int __stayopen) noexcept (true); extern void endrpcent (void) noexcept (true); extern struct rpcent *getrpcbyname (const char *__name) noexcept (true); extern struct rpcent *getrpcbynumber (int __number) noexcept (true); extern struct rpcent *getrpcent (void) noexcept (true); extern int getrpcbyname_r (const char *__name, struct rpcent *__result_buf, char *__buffer, size_t __buflen, struct rpcent **__result) noexcept (true); extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf, char *__buffer, size_t __buflen, struct rpcent **__result) noexcept (true); extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer, size_t __buflen, struct rpcent **__result) noexcept (true); } # 33 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 5 "/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/types/__sigval_t.h" 3 4 union sigval { int sival_int; void *sival_ptr; }; typedef union sigval __sigval_t; # 7 "/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h" 2 3 4 # 22 "/usr/include/x86_64-linux-gnu/bits/types/sigevent_t.h" 3 4 typedef struct sigevent { __sigval_t sigev_value; int sigev_signo; int sigev_notify; union { int _pad[((64 / sizeof (int)) - 4)]; __pid_t _tid; struct { void (*_function) (__sigval_t); pthread_attr_t *_attribute; } _sigev_thread; } _sigev_un; } sigevent_t; # 37 "/usr/include/netdb.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/netdb.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/netdb.h" 3 4 struct netent { char *n_name; char **n_aliases; int n_addrtype; uint32_t n_net; }; # 41 "/usr/include/netdb.h" 2 3 4 # 51 "/usr/include/netdb.h" 3 4 extern "C" { extern int *__h_errno_location (void) noexcept (true) __attribute__ ((__const__)); # 90 "/usr/include/netdb.h" 3 4 extern void herror (const char *__str) noexcept (true); extern const char *hstrerror (int __err_num) noexcept (true); struct hostent { char *h_name; char **h_aliases; int h_addrtype; int h_length; char **h_addr_list; }; extern void sethostent (int __stay_open); extern void endhostent (void); extern struct hostent *gethostent (void); extern struct hostent *gethostbyaddr (const void *__addr, __socklen_t __len, int __type); extern struct hostent *gethostbyname (const char *__name); # 153 "/usr/include/netdb.h" 3 4 extern struct hostent *gethostbyname2 (const char *__name, int __af); # 165 "/usr/include/netdb.h" 3 4 extern int gethostent_r (struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); extern int gethostbyaddr_r (const void *__restrict __addr, __socklen_t __len, int __type, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); extern int gethostbyname_r (const char *__restrict __name, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); extern int gethostbyname2_r (const char *__restrict __name, int __af, struct hostent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct hostent **__restrict __result, int *__restrict __h_errnop); # 196 "/usr/include/netdb.h" 3 4 extern void setnetent (int __stay_open); extern void endnetent (void); extern struct netent *getnetent (void); extern struct netent *getnetbyaddr (uint32_t __net, int __type); extern struct netent *getnetbyname (const char *__name); # 235 "/usr/include/netdb.h" 3 4 extern int getnetent_r (struct netent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct netent **__restrict __result, int *__restrict __h_errnop); extern int getnetbyaddr_r (uint32_t __net, int __type, struct netent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct netent **__restrict __result, int *__restrict __h_errnop); extern int getnetbyname_r (const char *__restrict __name, struct netent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct netent **__restrict __result, int *__restrict __h_errnop); struct servent { char *s_name; char **s_aliases; int s_port; char *s_proto; }; extern void setservent (int __stay_open); extern void endservent (void); extern struct servent *getservent (void); extern struct servent *getservbyname (const char *__name, const char *__proto); extern struct servent *getservbyport (int __port, const char *__proto); # 306 "/usr/include/netdb.h" 3 4 extern int getservent_r (struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); extern int getservbyname_r (const char *__restrict __name, const char *__restrict __proto, struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); extern int getservbyport_r (int __port, const char *__restrict __proto, struct servent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct servent **__restrict __result); struct protoent { char *p_name; char **p_aliases; int p_proto; }; extern void setprotoent (int __stay_open); extern void endprotoent (void); extern struct protoent *getprotoent (void); extern struct protoent *getprotobyname (const char *__name); extern struct protoent *getprotobynumber (int __proto); # 372 "/usr/include/netdb.h" 3 4 extern int getprotoent_r (struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); extern int getprotobyname_r (const char *__restrict __name, struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); extern int getprotobynumber_r (int __proto, struct protoent *__restrict __result_buf, char *__restrict __buf, size_t __buflen, struct protoent **__restrict __result); # 393 "/usr/include/netdb.h" 3 4 extern int setnetgrent (const char *__netgroup); extern void endnetgrent (void); # 410 "/usr/include/netdb.h" 3 4 extern int getnetgrent (char **__restrict __hostp, char **__restrict __userp, char **__restrict __domainp); # 421 "/usr/include/netdb.h" 3 4 extern int innetgr (const char *__netgroup, const char *__host, const char *__user, const char *__domain); extern int getnetgrent_r (char **__restrict __hostp, char **__restrict __userp, char **__restrict __domainp, char *__restrict __buffer, size_t __buflen); # 449 "/usr/include/netdb.h" 3 4 extern int rcmd (char **__restrict __ahost, unsigned short int __rport, const char *__restrict __locuser, const char *__restrict __remuser, const char *__restrict __cmd, int *__restrict __fd2p); # 461 "/usr/include/netdb.h" 3 4 extern int rcmd_af (char **__restrict __ahost, unsigned short int __rport, const char *__restrict __locuser, const char *__restrict __remuser, const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); # 477 "/usr/include/netdb.h" 3 4 extern int rexec (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p); # 489 "/usr/include/netdb.h" 3 4 extern int rexec_af (char **__restrict __ahost, int __rport, const char *__restrict __name, const char *__restrict __pass, const char *__restrict __cmd, int *__restrict __fd2p, sa_family_t __af); # 503 "/usr/include/netdb.h" 3 4 extern int ruserok (const char *__rhost, int __suser, const char *__remuser, const char *__locuser); # 513 "/usr/include/netdb.h" 3 4 extern int ruserok_af (const char *__rhost, int __suser, const char *__remuser, const char *__locuser, sa_family_t __af); # 526 "/usr/include/netdb.h" 3 4 extern int iruserok (uint32_t __raddr, int __suser, const char *__remuser, const char *__locuser); # 537 "/usr/include/netdb.h" 3 4 extern int iruserok_af (const void *__raddr, int __suser, const char *__remuser, const char *__locuser, sa_family_t __af); # 549 "/usr/include/netdb.h" 3 4 extern int rresvport (int *__alport); # 558 "/usr/include/netdb.h" 3 4 extern int rresvport_af (int *__alport, sa_family_t __af); struct addrinfo { int ai_flags; int ai_family; int ai_socktype; int ai_protocol; socklen_t ai_addrlen; struct sockaddr *ai_addr; char *ai_canonname; struct addrinfo *ai_next; }; struct gaicb { const char *ar_name; const char *ar_service; const struct addrinfo *ar_request; struct addrinfo *ar_result; int __return; int __glibc_reserved[5]; }; # 660 "/usr/include/netdb.h" 3 4 extern int getaddrinfo (const char *__restrict __name, const char *__restrict __service, const struct addrinfo *__restrict __req, struct addrinfo **__restrict __pai); extern void freeaddrinfo (struct addrinfo *__ai) noexcept (true); extern const char *gai_strerror (int __ecode) noexcept (true); extern int getnameinfo (const struct sockaddr *__restrict __sa, socklen_t __salen, char *__restrict __host, socklen_t __hostlen, char *__restrict __serv, socklen_t __servlen, int __flags); # 690 "/usr/include/netdb.h" 3 4 extern int getaddrinfo_a (int __mode, struct gaicb *__list[], int __ent, struct sigevent *__restrict __sig); # 701 "/usr/include/netdb.h" 3 4 extern int gai_suspend (const struct gaicb *const __list[], int __ent, const struct timespec *__timeout); # 716 "/usr/include/netdb.h" 3 4 extern int gai_error (struct gaicb *__req) noexcept (true); extern int gai_cancel (struct gaicb *__gaicbp) noexcept (true); } # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 2 3 4 namespace boost { namespace asio { namespace error { enum basic_errors { access_denied = 13, address_family_not_supported = 97, address_in_use = 98, already_connected = 106, already_started = 114, broken_pipe = 32 , connection_aborted = 103, connection_refused = 111, connection_reset = 104, bad_descriptor = 9, fault = 14, host_unreachable = 113, in_progress = 115, interrupted = 4, invalid_argument = 22, message_size = 90, name_too_long = 36, network_down = 100, network_reset = 102, network_unreachable = 101, no_descriptors = 24, no_buffer_space = 105, no_memory = 12 , no_permission = 1 , no_protocol_option = 92, no_such_device = 19 , not_connected = 107, not_socket = 88, operation_aborted = 125 , operation_not_supported = 95, shut_down = 108, timed_out = 110, try_again = 11 , would_block = 11 }; enum netdb_errors { host_not_found = 1, host_not_found_try_again = 2, no_data = 4, no_recovery = 3 }; enum addrinfo_errors { service_not_found = -8 , socket_type_not_supported = -7 }; enum misc_errors { already_open = 1, eof, not_found, fd_set_failure }; # 252 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 3 4 inline void clear(boost::system::error_code& ec) { ec = boost::system::error_code(); } inline const boost::system::error_category& get_system_category() { return boost::system::system_category(); } extern inline const boost::system::error_category& get_netdb_category(); extern inline const boost::system::error_category& get_addrinfo_category(); # 284 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 3 4 extern inline const boost::system::error_category& get_misc_category(); static const boost::system::error_category& system_category __attribute__((__unused__)) = boost::asio::error::get_system_category(); static const boost::system::error_category& netdb_category __attribute__((__unused__)) = boost::asio::error::get_netdb_category(); static const boost::system::error_category& addrinfo_category __attribute__((__unused__)) = boost::asio::error::get_addrinfo_category(); static const boost::system::error_category& misc_category __attribute__((__unused__)) = boost::asio::error::get_misc_category(); } } } namespace boost { namespace system { template<> struct is_error_code_enum<boost::asio::error::basic_errors> { static const bool value = true; }; template<> struct is_error_code_enum<boost::asio::error::netdb_errors> { static const bool value = true; }; template<> struct is_error_code_enum<boost::asio::error::addrinfo_errors> { static const bool value = true; }; template<> struct is_error_code_enum<boost::asio::error::misc_errors> { static const bool value = true; }; } } namespace boost { namespace asio { namespace error { inline boost::system::error_code make_error_code(basic_errors e) { return boost::system::error_code( static_cast<int>(e), get_system_category()); } inline boost::system::error_code make_error_code(netdb_errors e) { return boost::system::error_code( static_cast<int>(e), get_netdb_category()); } inline boost::system::error_code make_error_code(addrinfo_errors e) { return boost::system::error_code( static_cast<int>(e), get_addrinfo_category()); } inline boost::system::error_code make_error_code(misc_errors e) { return boost::system::error_code( static_cast<int>(e), get_misc_category()); } } namespace stream_errc { using error::eof; using error::not_found; } namespace socket_errc { using error::already_open; using error::not_found; } namespace resolver_errc { using error::host_not_found; const error::netdb_errors try_again = error::host_not_found_try_again; using error::service_not_found; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 379 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 2 3 4 # 387 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/error.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/error.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/error.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/error.ipp" 2 3 4 namespace boost { namespace asio { namespace error { namespace detail { class netdb_category : public boost::system::error_category { public: const char* name() const noexcept { return "asio.netdb"; } std::string message(int value) const { if (value == error::host_not_found) return "Host not found (authoritative)"; if (value == error::host_not_found_try_again) return "Host not found (non-authoritative), try again later"; if (value == error::no_data) return "The query is valid, but it does not have associated data"; if (value == error::no_recovery) return "A non-recoverable error occurred during database lookup"; return "asio.netdb error"; } }; } const boost::system::error_category& get_netdb_category() { static detail::netdb_category instance; return instance; } namespace detail { class addrinfo_category : public boost::system::error_category { public: const char* name() const noexcept { return "asio.addrinfo"; } std::string message(int value) const { if (value == error::service_not_found) return "Service not found"; if (value == error::socket_type_not_supported) return "Socket type not supported"; return "asio.addrinfo error"; } }; } const boost::system::error_category& get_addrinfo_category() { static detail::addrinfo_category instance; return instance; } namespace detail { class misc_category : public boost::system::error_category { public: const char* name() const noexcept { return "asio.misc"; } std::string message(int value) const { if (value == error::already_open) return "Already open"; if (value == error::eof) return "End of file"; if (value == error::not_found) return "Element not found"; if (value == error::fd_set_failure) return "The descriptor does not fit into the select call's fd_set"; return "asio.misc error"; } }; } const boost::system::error_category& get_misc_category() { static detail::misc_category instance; return instance; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/error.ipp" 2 3 4 # 388 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/error.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { posix_event::posix_event() : state_(0) { ::pthread_condattr_t attr; int error = ::pthread_condattr_init(&attr); if (error == 0) { error = ::pthread_condattr_setclock(&attr, 1); if (error == 0) error = ::pthread_cond_init(&cond_, &attr); ::pthread_condattr_destroy(&attr); } boost::system::error_code ec(error, boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "event"); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_event.ipp" 2 3 4 # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_event.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/event.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { typedef posix_event event; } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/mutex.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/mutex.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_lock.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_lock.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_lock.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Mutex> class scoped_lock : private noncopyable { public: enum adopt_lock_t { adopt_lock }; scoped_lock(Mutex& m, adopt_lock_t) : mutex_(m), locked_(true) { } explicit scoped_lock(Mutex& m) : mutex_(m) { mutex_.lock(); locked_ = true; } ~scoped_lock() { if (locked_) mutex_.unlock(); } void lock() { if (!locked_) { mutex_.lock(); locked_ = true; } } void unlock() { if (locked_) { mutex_.unlock(); locked_ = false; } } bool locked() const { return locked_; } Mutex& mutex() { return mutex_; } private: Mutex& mutex_; bool locked_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scoped_lock.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class posix_event; class posix_mutex : private noncopyable { public: typedef boost::asio::detail::scoped_lock<posix_mutex> scoped_lock; inline posix_mutex(); ~posix_mutex() { ::pthread_mutex_destroy(&mutex_); } void lock() { (void)::pthread_mutex_lock(&mutex_); } void unlock() { (void)::pthread_mutex_unlock(&mutex_); } private: friend class posix_event; ::pthread_mutex_t mutex_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_mutex.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_mutex.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_mutex.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_mutex.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { posix_mutex::posix_mutex() { int error = ::pthread_mutex_init(&mutex_, 0); boost::system::error_code ec(error, boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "mutex"); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_mutex.ipp" 2 3 4 # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_mutex.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/mutex.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { typedef posix_mutex mutex; } } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 2 3 4 namespace boost { namespace asio { # 155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 namespace execution { namespace detail { namespace blocking_adaptation { template <int I> struct disallowed_t; template <int I> struct allowed_t; } template <int I = 0> struct blocking_adaptation_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 188 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef blocking_adaptation_t polymorphic_query_result_type; typedef detail::blocking_adaptation::disallowed_t<I> disallowed_t; typedef detail::blocking_adaptation::allowed_t<I> allowed_t; constexpr blocking_adaptation_t() : value_(-1) { } constexpr blocking_adaptation_t(disallowed_t) : value_(0) { } constexpr blocking_adaptation_t(allowed_t) : value_(1) { } template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) const noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_member : traits::query_member<typename proxy<T>::type, blocking_adaptation_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, blocking_adaptation_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr typename traits::static_query<T, disallowed_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, disallowed_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, disallowed_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, allowed_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, disallowed_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, allowed_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, allowed_t>::value(); } template <typename E, typename T = decltype(blocking_adaptation_t::static_query<E>())> static constexpr const T static_query_v = blocking_adaptation_t::static_query<E>(); friend constexpr bool operator==( const blocking_adaptation_t& a, const blocking_adaptation_t& b) { return a.value_ == b.value_; } friend constexpr bool operator!=( const blocking_adaptation_t& a, const blocking_adaptation_t& b) { return a.value_ != b.value_; } struct convertible_from_blocking_adaptation_t { constexpr convertible_from_blocking_adaptation_t( blocking_adaptation_t) { } }; template <typename Executor> friend constexpr blocking_adaptation_t query( const Executor& ex, convertible_from_blocking_adaptation_t, typename enable_if< can_query<const Executor&, disallowed_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, disallowed_t>::value))) { return boost::asio::query(ex, disallowed_t()); } template <typename Executor> friend constexpr blocking_adaptation_t query( const Executor& ex, convertible_from_blocking_adaptation_t, typename enable_if< !can_query<const Executor&, disallowed_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, allowed_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, allowed_t>::value))) { return boost::asio::query(ex, allowed_t()); } static constexpr const disallowed_t disallowed{}; static constexpr const allowed_t allowed{}; private: int value_; }; template <int I> template <typename E, typename T> const T blocking_adaptation_t<I>::static_query_v; # 414 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 template <int I> const typename blocking_adaptation_t<I>::disallowed_t blocking_adaptation_t<I>::disallowed; template <int I> const typename blocking_adaptation_t<I>::allowed_t blocking_adaptation_t<I>::allowed; namespace blocking_adaptation { template <int I = 0> struct disallowed_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 448 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef blocking_adaptation_t<I> polymorphic_query_result_type; constexpr disallowed_t() { } template <typename T> struct query_member : traits::query_member< typename blocking_adaptation_t<I>::template proxy<T>::type, disallowed_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename blocking_adaptation_t<I>::template static_proxy<T>::type, disallowed_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr disallowed_t static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::query_free<T, disallowed_t>::is_valid >::type* = 0, typename enable_if< !can_query<T, allowed_t<I> >::value >::type* = 0) noexcept { return disallowed_t(); } template <typename E, typename T = decltype(disallowed_t::static_query<E>())> static constexpr const T static_query_v = disallowed_t::static_query<E>(); static constexpr blocking_adaptation_t<I> value() { return disallowed_t(); } friend constexpr bool operator==( const disallowed_t&, const disallowed_t&) { return true; } friend constexpr bool operator!=( const disallowed_t&, const disallowed_t&) { return false; } }; template <int I> template <typename E, typename T> const T disallowed_t<I>::static_query_v; template <typename Executor> class adapter { public: adapter(int, const Executor& e) noexcept : executor_(e) { } adapter(const adapter& other) noexcept : executor_(other.executor_) { } adapter(adapter&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)) { } template <int I> static constexpr allowed_t<I> query( blocking_adaptation_t<I>) noexcept { return allowed_t<I>(); } template <int I> static constexpr allowed_t<I> query( allowed_t<I>) noexcept { return allowed_t<I>(); } template <int I> static constexpr allowed_t<I> query( disallowed_t<I>) noexcept { return allowed_t<I>(); } template <typename Property> typename enable_if< can_query<const Executor&, Property>::value, typename query_result<const Executor&, Property>::type >::type query(const Property& p) const noexcept((( is_nothrow_query<const Executor&, Property>::value))) { return boost::asio::query(executor_, p); } template <int I> Executor require(disallowed_t<I>) const noexcept { return executor_; } template <typename Property> typename enable_if< can_require<const Executor&, Property>::value, adapter<typename decay< typename require_result<const Executor&, Property>::type >::type> >::type require(const Property& p) const noexcept((( is_nothrow_require<const Executor&, Property>::value))) { return adapter<typename decay< typename require_result<const Executor&, Property>::type >::type>(0, boost::asio::require(executor_, p)); } template <typename Property> typename enable_if< can_prefer<const Executor&, Property>::value, adapter<typename decay< typename prefer_result<const Executor&, Property>::type >::type> >::type prefer(const Property& p) const noexcept((( is_nothrow_prefer<const Executor&, Property>::value))) { return adapter<typename decay< typename prefer_result<const Executor&, Property>::type >::type>(0, boost::asio::prefer(executor_, p)); } template <typename Function> typename enable_if< execution::can_execute<const Executor&, Function>::value >::type execute(Function&& f) const { execution::execute(executor_, static_cast<Function&&>(f)); } friend bool operator==(const adapter& a, const adapter& b) noexcept { return a.executor_ == b.executor_; } friend bool operator!=(const adapter& a, const adapter& b) noexcept { return a.executor_ != b.executor_; } private: Executor executor_; }; template <int I = 0> struct allowed_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 676 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = false; typedef blocking_adaptation_t<I> polymorphic_query_result_type; constexpr allowed_t() { } template <typename T> struct query_member : traits::query_member< typename blocking_adaptation_t<I>::template proxy<T>::type, allowed_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename blocking_adaptation_t<I>::template static_proxy<T>::type, allowed_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(allowed_t::static_query<E>())> static constexpr const T static_query_v = allowed_t::static_query<E>(); static constexpr blocking_adaptation_t<I> value() { return allowed_t(); } friend constexpr bool operator==( const allowed_t&, const allowed_t&) { return true; } friend constexpr bool operator!=( const allowed_t&, const allowed_t&) { return false; } template <typename Executor> friend adapter<Executor> require( const Executor& e, const allowed_t&, typename enable_if< is_executor<Executor>::value >::type* = 0) { return adapter<Executor>(0, e); } }; template <int I> template <typename E, typename T> const T allowed_t<I>::static_query_v; template <typename Function> class blocking_execute_state { public: template <typename F> blocking_execute_state(F&& f) : func_(static_cast<F&&>(f)), is_complete_(false) { } template <typename Executor> void execute_and_wait(Executor&& ex) { handler h = { this }; execution::execute(static_cast<Executor&&>(ex), h); boost::asio::detail::mutex::scoped_lock lock(mutex_); while (!is_complete_) event_.wait(lock); } struct cleanup { ~cleanup() { boost::asio::detail::mutex::scoped_lock lock(state_->mutex_); state_->is_complete_ = true; state_->event_.unlock_and_signal_one_for_destruction(lock); } blocking_execute_state* state_; }; struct handler { void operator()() { cleanup c = { state_ }; state_->func_(); } blocking_execute_state* state_; }; Function func_; boost::asio::detail::mutex mutex_; boost::asio::detail::event event_; bool is_complete_; }; template <typename Executor, typename Function> void blocking_execute( Executor&& ex, Function&& func) { typedef typename decay<Function>::type func_t; blocking_execute_state<func_t> state(static_cast<Function&&>(func)); state.execute_and_wait(ex); } } } typedef detail::blocking_adaptation_t<> blocking_adaptation_t; constexpr blocking_adaptation_t blocking_adaptation; } # 895 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 namespace traits { # 1250 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1258 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/blocking_adaptation.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 2 3 4 namespace boost { namespace asio { # 189 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 namespace execution { namespace detail { namespace bulk_guarantee { template <int I> struct unsequenced_t; template <int I> struct sequenced_t; template <int I> struct parallel_t; } template <int I = 0> struct bulk_guarantee_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 223 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef bulk_guarantee_t polymorphic_query_result_type; typedef detail::bulk_guarantee::unsequenced_t<I> unsequenced_t; typedef detail::bulk_guarantee::sequenced_t<I> sequenced_t; typedef detail::bulk_guarantee::parallel_t<I> parallel_t; constexpr bulk_guarantee_t() : value_(-1) { } constexpr bulk_guarantee_t(unsequenced_t) : value_(0) { } constexpr bulk_guarantee_t(sequenced_t) : value_(1) { } constexpr bulk_guarantee_t(parallel_t) : value_(2) { } template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) const noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_member : traits::query_member<typename proxy<T>::type, bulk_guarantee_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, bulk_guarantee_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr typename traits::static_query<T, unsequenced_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, unsequenced_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, unsequenced_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, sequenced_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, unsequenced_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, sequenced_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, sequenced_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, parallel_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, unsequenced_t>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, sequenced_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, parallel_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, parallel_t>::value(); } template <typename E, typename T = decltype(bulk_guarantee_t::static_query<E>())> static constexpr const T static_query_v = bulk_guarantee_t::static_query<E>(); friend constexpr bool operator==( const bulk_guarantee_t& a, const bulk_guarantee_t& b) { return a.value_ == b.value_; } friend constexpr bool operator!=( const bulk_guarantee_t& a, const bulk_guarantee_t& b) { return a.value_ != b.value_; } struct convertible_from_bulk_guarantee_t { constexpr convertible_from_bulk_guarantee_t(bulk_guarantee_t) {} }; template <typename Executor> friend constexpr bulk_guarantee_t query( const Executor& ex, convertible_from_bulk_guarantee_t, typename enable_if< can_query<const Executor&, unsequenced_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, unsequenced_t>::value))) { return boost::asio::query(ex, unsequenced_t()); } template <typename Executor> friend constexpr bulk_guarantee_t query( const Executor& ex, convertible_from_bulk_guarantee_t, typename enable_if< !can_query<const Executor&, unsequenced_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, sequenced_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, sequenced_t>::value))) { return boost::asio::query(ex, sequenced_t()); } template <typename Executor> friend constexpr bulk_guarantee_t query( const Executor& ex, convertible_from_bulk_guarantee_t, typename enable_if< !can_query<const Executor&, unsequenced_t>::value >::type* = 0, typename enable_if< !can_query<const Executor&, sequenced_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, parallel_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, parallel_t>::value))) { return boost::asio::query(ex, parallel_t()); } static constexpr const unsequenced_t unsequenced{}; static constexpr const sequenced_t sequenced{}; static constexpr const parallel_t parallel{}; private: int value_; }; template <int I> template <typename E, typename T> const T bulk_guarantee_t<I>::static_query_v; # 501 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 template <int I> const typename bulk_guarantee_t<I>::unsequenced_t bulk_guarantee_t<I>::unsequenced; template <int I> const typename bulk_guarantee_t<I>::sequenced_t bulk_guarantee_t<I>::sequenced; template <int I> const typename bulk_guarantee_t<I>::parallel_t bulk_guarantee_t<I>::parallel; namespace bulk_guarantee { template <int I = 0> struct unsequenced_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 539 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef bulk_guarantee_t<I> polymorphic_query_result_type; constexpr unsequenced_t() { } template <typename T> struct query_member : traits::query_member< typename bulk_guarantee_t<I>::template proxy<T>::type, unsequenced_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename bulk_guarantee_t<I>::template static_proxy<T>::type, unsequenced_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr unsequenced_t static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::query_free<T, unsequenced_t>::is_valid >::type* = 0, typename enable_if< !can_query<T, sequenced_t<I> >::value >::type* = 0, typename enable_if< !can_query<T, parallel_t<I> >::value >::type* = 0) noexcept { return unsequenced_t(); } template <typename E, typename T = decltype(unsequenced_t::static_query<E>())> static constexpr const T static_query_v = unsequenced_t::static_query<E>(); static constexpr bulk_guarantee_t<I> value() { return unsequenced_t(); } friend constexpr bool operator==( const unsequenced_t&, const unsequenced_t&) { return true; } friend constexpr bool operator!=( const unsequenced_t&, const unsequenced_t&) { return false; } friend constexpr bool operator==( const unsequenced_t&, const sequenced_t<I>&) { return false; } friend constexpr bool operator!=( const unsequenced_t&, const sequenced_t<I>&) { return true; } friend constexpr bool operator==( const unsequenced_t&, const parallel_t<I>&) { return false; } friend constexpr bool operator!=( const unsequenced_t&, const parallel_t<I>&) { return true; } }; template <int I> template <typename E, typename T> const T unsequenced_t<I>::static_query_v; template <int I = 0> struct sequenced_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 675 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef bulk_guarantee_t<I> polymorphic_query_result_type; constexpr sequenced_t() { } template <typename T> struct query_member : traits::query_member< typename bulk_guarantee_t<I>::template proxy<T>::type, sequenced_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename bulk_guarantee_t<I>::template static_proxy<T>::type, sequenced_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(sequenced_t::static_query<E>())> static constexpr const T static_query_v = sequenced_t::static_query<E>(); static constexpr bulk_guarantee_t<I> value() { return sequenced_t(); } friend constexpr bool operator==( const sequenced_t&, const sequenced_t&) { return true; } friend constexpr bool operator!=( const sequenced_t&, const sequenced_t&) { return false; } friend constexpr bool operator==( const sequenced_t&, const unsequenced_t<I>&) { return false; } friend constexpr bool operator!=( const sequenced_t&, const unsequenced_t<I>&) { return true; } friend constexpr bool operator==( const sequenced_t&, const parallel_t<I>&) { return false; } friend constexpr bool operator!=( const sequenced_t&, const parallel_t<I>&) { return true; } }; template <int I> template <typename E, typename T> const T sequenced_t<I>::static_query_v; template <int I> struct parallel_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 790 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef bulk_guarantee_t<I> polymorphic_query_result_type; constexpr parallel_t() { } template <typename T> struct query_member : traits::query_member< typename bulk_guarantee_t<I>::template proxy<T>::type, parallel_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename bulk_guarantee_t<I>::template static_proxy<T>::type, parallel_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(parallel_t::static_query<E>())> static constexpr const T static_query_v = parallel_t::static_query<E>(); static constexpr bulk_guarantee_t<I> value() { return parallel_t(); } friend constexpr bool operator==( const parallel_t&, const parallel_t&) { return true; } friend constexpr bool operator!=( const parallel_t&, const parallel_t&) { return false; } friend constexpr bool operator==( const parallel_t&, const unsequenced_t<I>&) { return false; } friend constexpr bool operator!=( const parallel_t&, const unsequenced_t<I>&) { return true; } friend constexpr bool operator==( const parallel_t&, const sequenced_t<I>&) { return false; } friend constexpr bool operator!=( const parallel_t&, const sequenced_t<I>&) { return true; } }; template <int I> template <typename E, typename T> const T parallel_t<I>::static_query_v; } } typedef detail::bulk_guarantee_t<> bulk_guarantee_t; constexpr bulk_guarantee_t bulk_guarantee; } # 967 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 namespace traits { # 1243 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1251 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_guarantee.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/bulk_sender.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/bulk_sender.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/bulk_sender.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename Receiver, typename Function, typename Number, typename Index> struct bulk_receiver { typename remove_cvref<Receiver>::type receiver_; typename decay<Function>::type f_; typename decay<Number>::type n_; template <typename R, typename F, typename N> explicit bulk_receiver(R&& r, F&& f, N&& n) : receiver_(static_cast<R&&>(r)), f_(static_cast<F&&>(f)), n_(static_cast<N&&>(n)) { } void set_value() { for (Index i = 0; i < n_; ++i) f_(i); execution::set_value( static_cast<typename remove_cvref<Receiver>::type&&> (receiver_)); } template <typename Error> void set_error(Error&& e) noexcept { execution::set_error( static_cast<typename remove_cvref<Receiver>::type&&> (receiver_), static_cast<Error&&>(e)); } void set_done() noexcept { execution::set_done( static_cast<typename remove_cvref<Receiver>::type&&> (receiver_)); } }; template <typename Sender, typename Receiver, typename Function, typename Number> struct bulk_receiver_traits { typedef bulk_receiver< Receiver, Function, Number, typename execution::executor_index< typename remove_cvref<Sender>::type >::type > type; typedef type arg_type; }; template <typename Sender, typename Function, typename Number> struct bulk_sender : sender_base { typename remove_cvref<Sender>::type sender_; typename decay<Function>::type f_; typename decay<Number>::type n_; template <typename S, typename F, typename N> explicit bulk_sender(S&& s, F&& f, N&& n) : sender_(static_cast<S&&>(s)), f_(static_cast<F&&>(f)), n_(static_cast<N&&>(n)) { } template <typename Receiver> typename connect_result< typename remove_cvref<Sender>::type, typename bulk_receiver_traits< Sender, Receiver, Function, Number >::arg_type >::type connect(Receiver&& r, typename enable_if< can_connect< typename remove_cvref<Sender>::type, typename bulk_receiver_traits< Sender, Receiver, Function, Number >::arg_type >::value >::type* = 0) && noexcept { return execution::connect( static_cast<typename remove_cvref<Sender>::type&&>(sender_), typename bulk_receiver_traits<Sender, Receiver, Function, Number>::type( static_cast<Receiver&&>(r), static_cast<typename decay<Function>::type&&>(f_), static_cast<typename decay<Number>::type&&>(n_))); } template <typename Receiver> typename connect_result< const typename remove_cvref<Sender>::type&, typename bulk_receiver_traits< Sender, Receiver, Function, Number >::arg_type >::type connect(Receiver&& r, typename enable_if< can_connect< const typename remove_cvref<Sender>::type&, typename bulk_receiver_traits< Sender, Receiver, Function, Number >::arg_type >::value >::type* = 0) const & noexcept { return execution::connect(sender_, typename bulk_receiver_traits<Sender, Receiver, Function, Number>::type( static_cast<Receiver&&>(r), f_, n_)); } }; } } namespace traits { # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/bulk_sender.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 262 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/bulk_sender.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename F, typename N, typename = void> struct bulk_execute_member_default; template <typename T, typename F, typename N, typename = void> struct bulk_execute_member; } namespace detail { struct no_bulk_execute_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename F, typename N, typename = void> struct bulk_execute_member_trait : no_bulk_execute_member { }; template <typename T, typename F, typename N> struct bulk_execute_member_trait<T, F, N, typename void_type< decltype(declval<T>().bulk_execute(declval<F>(), declval<N>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().bulk_execute(declval<F>(), declval<N>())); static constexpr bool is_noexcept = noexcept( declval<T>().bulk_execute(declval<F>(), declval<N>())) ; }; # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_member.hpp" 3 4 } namespace traits { template <typename T, typename F, typename N, typename> struct bulk_execute_member_default : detail::bulk_execute_member_trait<T, F, N> { }; template <typename T, typename F, typename N, typename> struct bulk_execute_member : bulk_execute_member_default<T, F, N> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_member.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename F, typename N, typename = void> struct bulk_execute_free_default; template <typename T, typename F, typename N, typename = void> struct bulk_execute_free; } namespace detail { struct no_bulk_execute_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename F, typename N, typename = void> struct bulk_execute_free_trait : no_bulk_execute_free { }; template <typename T, typename F, typename N> struct bulk_execute_free_trait<T, F, N, typename void_type< decltype(bulk_execute(declval<T>(), declval<F>(), declval<N>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( bulk_execute(declval<T>(), declval<F>(), declval<N>())); static constexpr bool is_noexcept = noexcept( bulk_execute(declval<T>(), declval<F>(), declval<N>())) ; }; # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_free.hpp" 3 4 } namespace traits { template <typename T, typename F, typename N, typename> struct bulk_execute_free_default : detail::bulk_execute_free_trait<T, F, N> { }; template <typename T, typename F, typename N, typename> struct bulk_execute_free : bulk_execute_free_default<T, F, N> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/bulk_execute_free.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 2 3 4 # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 3 4 namespace boost_asio_execution_bulk_execute_fn { using boost::asio::declval; using boost::asio::enable_if; using boost::asio::execution::bulk_guarantee_t; using boost::asio::execution::detail::bulk_sender; using boost::asio::execution::executor_index; using boost::asio::execution::is_sender; using boost::asio::is_convertible; using boost::asio::is_same; using boost::asio::remove_cvref; using boost::asio::result_of; using boost::asio::traits::bulk_execute_free; using boost::asio::traits::bulk_execute_member; using boost::asio::traits::static_require; void bulk_execute(); enum overload_type { call_member, call_free, adapter, ill_formed }; template <typename S, typename Args, typename = void, typename = void, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename S, typename F, typename N> struct call_traits<S, void(F, N), typename enable_if< is_convertible<N, std::size_t>::value >::type, typename enable_if< bulk_execute_member<S, F, N>::is_valid >::type, typename enable_if< is_sender< typename bulk_execute_member<S, F, N>::result_type >::value >::type> : bulk_execute_member<S, F, N> { static constexpr overload_type overload = call_member; }; template <typename S, typename F, typename N> struct call_traits<S, void(F, N), typename enable_if< is_convertible<N, std::size_t>::value >::type, typename enable_if< !bulk_execute_member<S, F, N>::is_valid >::type, typename enable_if< bulk_execute_free<S, F, N>::is_valid >::type, typename enable_if< is_sender< typename bulk_execute_free<S, F, N>::result_type >::value >::type> : bulk_execute_free<S, F, N> { static constexpr overload_type overload = call_free; }; template <typename S, typename F, typename N> struct call_traits<S, void(F, N), typename enable_if< is_convertible<N, std::size_t>::value >::type, typename enable_if< !bulk_execute_member<S, F, N>::is_valid >::type, typename enable_if< !bulk_execute_free<S, F, N>::is_valid >::type, typename enable_if< is_sender<S>::value >::type, typename enable_if< is_same< typename result_of< F(typename executor_index<typename remove_cvref<S>::type>::type) >::type, typename result_of< F(typename executor_index<typename remove_cvref<S>::type>::type) >::type >::value >::type, typename enable_if< static_require<S, bulk_guarantee_t::unsequenced_t>::is_valid >::type> { static constexpr overload_type overload = adapter; static constexpr bool is_noexcept = false; typedef bulk_sender<S, F, N> result_type; }; struct impl { template <typename S, typename F, typename N> constexpr typename enable_if< call_traits<S, void(F, N)>::overload == call_member, typename call_traits<S, void(F, N)>::result_type >::type operator()(S&& s, F&& f, N&& n) const noexcept((( call_traits<S, void(F, N)>::is_noexcept))) { return static_cast<S&&>(s).bulk_execute( static_cast<F&&>(f), static_cast<N&&>(n)); } template <typename S, typename F, typename N> constexpr typename enable_if< call_traits<S, void(F, N)>::overload == call_free, typename call_traits<S, void(F, N)>::result_type >::type operator()(S&& s, F&& f, N&& n) const noexcept((( call_traits<S, void(F, N)>::is_noexcept))) { return bulk_execute(static_cast<S&&>(s), static_cast<F&&>(f), static_cast<N&&>(n)); } template <typename S, typename F, typename N> constexpr typename enable_if< call_traits<S, void(F, N)>::overload == adapter, typename call_traits<S, void(F, N)>::result_type >::type operator()(S&& s, F&& f, N&& n) const noexcept((( call_traits<S, void(F, N)>::is_noexcept))) { return typename call_traits<S, void(F, N)>::result_type( static_cast<S&&>(s), static_cast<F&&>(f), static_cast<N&&>(n)); } # 334 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_bulk_execute_fn::impl& bulk_execute = boost_asio_execution_bulk_execute_fn::static_instance<>::instance; } template <typename S, typename F, typename N> struct can_bulk_execute : integral_constant<bool, boost_asio_execution_bulk_execute_fn::call_traits< S, void(F, N)>::overload != boost_asio_execution_bulk_execute_fn::ill_formed> { }; template <typename S, typename F, typename N> constexpr bool can_bulk_execute_v = can_bulk_execute<S, F, N>::value; template <typename S, typename F, typename N> struct is_nothrow_bulk_execute : integral_constant<bool, boost_asio_execution_bulk_execute_fn::call_traits< S, void(F, N)>::is_noexcept> { }; template <typename S, typename F, typename N> constexpr bool is_nothrow_bulk_execute_v = is_nothrow_bulk_execute<S, F, N>::value; template <typename S, typename F, typename N> struct bulk_execute_result { typedef typename boost_asio_execution_bulk_execute_fn::call_traits< S, void(F, N)>::result_type type; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 403 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/bulk_execute.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 3 4 # 1 "/usr/include/c++/13/any" 1 3 4 # 32 "/usr/include/c++/13/any" 3 4 # 33 "/usr/include/c++/13/any" 3 # 42 "/usr/include/c++/13/any" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 55 "/usr/include/c++/13/any" 3 class bad_any_cast : public bad_cast { public: virtual const char* what() const noexcept { return "bad any_cast"; } }; [[gnu::noreturn]] inline void __throw_bad_any_cast() { throw bad_any_cast{}; } # 80 "/usr/include/c++/13/any" 3 class any { union _Storage { constexpr _Storage() : _M_ptr{nullptr} {} _Storage(const _Storage&) = delete; _Storage& operator=(const _Storage&) = delete; void* _M_ptr; aligned_storage<sizeof(_M_ptr), alignof(void*)>::type _M_buffer; }; template<typename _Tp, typename _Safe = is_nothrow_move_constructible<_Tp>, bool _Fits = (sizeof(_Tp) <= sizeof(_Storage)) && (alignof(_Tp) <= alignof(_Storage))> using _Internal = std::integral_constant<bool, _Safe::value && _Fits>; template<typename _Tp> struct _Manager_internal; template<typename _Tp> struct _Manager_external; template<typename _Tp> using _Manager = __conditional_t<_Internal<_Tp>::value, _Manager_internal<_Tp>, _Manager_external<_Tp>>; template<typename _Tp, typename _VTp = decay_t<_Tp>> using _Decay_if_not_any = enable_if_t<!is_same_v<_VTp, any>, _VTp>; template <typename _Tp, typename... _Args, typename _Mgr = _Manager<_Tp>> void __do_emplace(_Args&&... __args) { reset(); _Mgr::_S_create(_M_storage, std::forward<_Args>(__args)...); _M_manager = &_Mgr::_S_manage; } template <typename _Tp, typename _Up, typename... _Args, typename _Mgr = _Manager<_Tp>> void __do_emplace(initializer_list<_Up> __il, _Args&&... __args) { reset(); _Mgr::_S_create(_M_storage, __il, std::forward<_Args>(__args)...); _M_manager = &_Mgr::_S_manage; } template <typename _Res, typename _Tp, typename... _Args> using __any_constructible = enable_if<__and_<is_copy_constructible<_Tp>, is_constructible<_Tp, _Args...>>::value, _Res>; template <typename _Tp, typename... _Args> using __any_constructible_t = typename __any_constructible<bool, _Tp, _Args...>::type; template<typename _VTp, typename... _Args> using __emplace_t = typename __any_constructible<_VTp&, _VTp, _Args...>::type; public: constexpr any() noexcept : _M_manager(nullptr) { } any(const any& __other) { if (!__other.has_value()) _M_manager = nullptr; else { _Arg __arg; __arg._M_any = this; __other._M_manager(_Op_clone, &__other, &__arg); } } any(any&& __other) noexcept { if (!__other.has_value()) _M_manager = nullptr; else { _Arg __arg; __arg._M_any = this; __other._M_manager(_Op_xfer, &__other, &__arg); } } template <typename _Tp, typename _VTp = _Decay_if_not_any<_Tp>, typename _Mgr = _Manager<_VTp>, enable_if_t<is_copy_constructible_v<_VTp> && !__is_in_place_type_v<_VTp>, bool> = true> any(_Tp&& __value) : _M_manager(&_Mgr::_S_manage) { _Mgr::_S_create(_M_storage, std::forward<_Tp>(__value)); } template <typename _Tp, typename... _Args, typename _VTp = decay_t<_Tp>, typename _Mgr = _Manager<_VTp>, __any_constructible_t<_VTp, _Args&&...> = false> explicit any(in_place_type_t<_Tp>, _Args&&... __args) : _M_manager(&_Mgr::_S_manage) { _Mgr::_S_create(_M_storage, std::forward<_Args>(__args)...); } template <typename _Tp, typename _Up, typename... _Args, typename _VTp = decay_t<_Tp>, typename _Mgr = _Manager<_VTp>, __any_constructible_t<_VTp, initializer_list<_Up>&, _Args&&...> = false> explicit any(in_place_type_t<_Tp>, initializer_list<_Up> __il, _Args&&... __args) : _M_manager(&_Mgr::_S_manage) { _Mgr::_S_create(_M_storage, __il, std::forward<_Args>(__args)...); } ~any() { reset(); } any& operator=(const any& __rhs) { *this = any(__rhs); return *this; } any& operator=(any&& __rhs) noexcept { if (!__rhs.has_value()) reset(); else if (this != &__rhs) { reset(); _Arg __arg; __arg._M_any = this; __rhs._M_manager(_Op_xfer, &__rhs, &__arg); } return *this; } template<typename _Tp> enable_if_t<is_copy_constructible<_Decay_if_not_any<_Tp>>::value, any&> operator=(_Tp&& __rhs) { *this = any(std::forward<_Tp>(__rhs)); return *this; } template <typename _Tp, typename... _Args> __emplace_t<decay_t<_Tp>, _Args...> emplace(_Args&&... __args) { using _VTp = decay_t<_Tp>; __do_emplace<_VTp>(std::forward<_Args>(__args)...); return *any::_Manager<_VTp>::_S_access(_M_storage); } template <typename _Tp, typename _Up, typename... _Args> __emplace_t<decay_t<_Tp>, initializer_list<_Up>&, _Args&&...> emplace(initializer_list<_Up> __il, _Args&&... __args) { using _VTp = decay_t<_Tp>; __do_emplace<_VTp, _Up>(__il, std::forward<_Args>(__args)...); return *any::_Manager<_VTp>::_S_access(_M_storage); } void reset() noexcept { if (has_value()) { _M_manager(_Op_destroy, this, nullptr); _M_manager = nullptr; } } void swap(any& __rhs) noexcept { if (!has_value() && !__rhs.has_value()) return; if (has_value() && __rhs.has_value()) { if (this == &__rhs) return; any __tmp; _Arg __arg; __arg._M_any = &__tmp; __rhs._M_manager(_Op_xfer, &__rhs, &__arg); __arg._M_any = &__rhs; _M_manager(_Op_xfer, this, &__arg); __arg._M_any = this; __tmp._M_manager(_Op_xfer, &__tmp, &__arg); } else { any* __empty = !has_value() ? this : &__rhs; any* __full = !has_value() ? &__rhs : this; _Arg __arg; __arg._M_any = __empty; __full->_M_manager(_Op_xfer, __full, &__arg); } } bool has_value() const noexcept { return _M_manager != nullptr; } const type_info& type() const noexcept { if (!has_value()) return typeid(void); _Arg __arg; _M_manager(_Op_get_type_info, this, &__arg); return *__arg._M_typeinfo; } template<typename _Tp> static constexpr bool __is_valid_cast() { return __or_<is_reference<_Tp>, is_copy_constructible<_Tp>>::value; } private: enum _Op { _Op_access, _Op_get_type_info, _Op_clone, _Op_destroy, _Op_xfer }; union _Arg { void* _M_obj; const std::type_info* _M_typeinfo; any* _M_any; }; void (*_M_manager)(_Op, const any*, _Arg*); _Storage _M_storage; template<typename _Tp> friend void* __any_caster(const any* __any); template<typename _Tp> struct _Manager_internal { static void _S_manage(_Op __which, const any* __anyp, _Arg* __arg); template<typename _Up> static void _S_create(_Storage& __storage, _Up&& __value) { void* __addr = &__storage._M_buffer; ::new (__addr) _Tp(std::forward<_Up>(__value)); } template<typename... _Args> static void _S_create(_Storage& __storage, _Args&&... __args) { void* __addr = &__storage._M_buffer; ::new (__addr) _Tp(std::forward<_Args>(__args)...); } static _Tp* _S_access(const _Storage& __storage) { const void* __addr = &__storage._M_buffer; return static_cast<_Tp*>(const_cast<void*>(__addr)); } }; template<typename _Tp> struct _Manager_external { static void _S_manage(_Op __which, const any* __anyp, _Arg* __arg); template<typename _Up> static void _S_create(_Storage& __storage, _Up&& __value) { __storage._M_ptr = new _Tp(std::forward<_Up>(__value)); } template<typename... _Args> static void _S_create(_Storage& __storage, _Args&&... __args) { __storage._M_ptr = new _Tp(std::forward<_Args>(__args)...); } static _Tp* _S_access(const _Storage& __storage) { return static_cast<_Tp*>(__storage._M_ptr); } }; }; inline void swap(any& __x, any& __y) noexcept { __x.swap(__y); } template <typename _Tp, typename... _Args> inline enable_if_t<is_constructible_v<any, in_place_type_t<_Tp>, _Args...>, any> make_any(_Args&&... __args) { return any(in_place_type<_Tp>, std::forward<_Args>(__args)...); } template <typename _Tp, typename _Up, typename... _Args> inline enable_if_t<is_constructible_v<any, in_place_type_t<_Tp>, initializer_list<_Up>&, _Args...>, any> make_any(initializer_list<_Up> __il, _Args&&... __args) { return any(in_place_type<_Tp>, __il, std::forward<_Args>(__args)...); } # 460 "/usr/include/c++/13/any" 3 template<typename _ValueType> inline _ValueType any_cast(const any& __any) { using _Up = __remove_cvref_t<_ValueType>; static_assert(any::__is_valid_cast<_ValueType>(), "Template argument must be a reference or CopyConstructible type"); static_assert(is_constructible_v<_ValueType, const _Up&>, "Template argument must be constructible from a const value."); auto __p = any_cast<_Up>(&__any); if (__p) return static_cast<_ValueType>(*__p); __throw_bad_any_cast(); } # 486 "/usr/include/c++/13/any" 3 template<typename _ValueType> inline _ValueType any_cast(any& __any) { using _Up = __remove_cvref_t<_ValueType>; static_assert(any::__is_valid_cast<_ValueType>(), "Template argument must be a reference or CopyConstructible type"); static_assert(is_constructible_v<_ValueType, _Up&>, "Template argument must be constructible from an lvalue."); auto __p = any_cast<_Up>(&__any); if (__p) return static_cast<_ValueType>(*__p); __throw_bad_any_cast(); } template<typename _ValueType> inline _ValueType any_cast(any&& __any) { using _Up = __remove_cvref_t<_ValueType>; static_assert(any::__is_valid_cast<_ValueType>(), "Template argument must be a reference or CopyConstructible type"); static_assert(is_constructible_v<_ValueType, _Up>, "Template argument must be constructible from an rvalue."); auto __p = any_cast<_Up>(&__any); if (__p) return static_cast<_ValueType>(std::move(*__p)); __throw_bad_any_cast(); } template<typename _Tp> void* __any_caster(const any* __any) { using _Up = remove_cv_t<_Tp>; if constexpr (!is_same_v<decay_t<_Up>, _Up>) return nullptr; else if constexpr (!is_copy_constructible_v<_Up>) return nullptr; else if (__any->_M_manager == &any::_Manager<_Up>::_S_manage || __any->type() == typeid(_Tp) ) { return any::_Manager<_Up>::_S_access(__any->_M_storage); } return nullptr; } # 553 "/usr/include/c++/13/any" 3 template<typename _ValueType> inline const _ValueType* any_cast(const any* __any) noexcept { if constexpr (is_object_v<_ValueType>) if (__any) return static_cast<_ValueType*>(__any_caster<_ValueType>(__any)); return nullptr; } template<typename _ValueType> inline _ValueType* any_cast(any* __any) noexcept { if constexpr (is_object_v<_ValueType>) if (__any) return static_cast<_ValueType*>(__any_caster<_ValueType>(__any)); return nullptr; } template<typename _Tp> void any::_Manager_internal<_Tp>:: _S_manage(_Op __which, const any* __any, _Arg* __arg) { auto __ptr = reinterpret_cast<const _Tp*>(&__any->_M_storage._M_buffer); switch (__which) { case _Op_access: __arg->_M_obj = const_cast<_Tp*>(__ptr); break; case _Op_get_type_info: __arg->_M_typeinfo = &typeid(_Tp); break; case _Op_clone: ::new(&__arg->_M_any->_M_storage._M_buffer) _Tp(*__ptr); __arg->_M_any->_M_manager = __any->_M_manager; break; case _Op_destroy: __ptr->~_Tp(); break; case _Op_xfer: ::new(&__arg->_M_any->_M_storage._M_buffer) _Tp (std::move(*const_cast<_Tp*>(__ptr))); __ptr->~_Tp(); __arg->_M_any->_M_manager = __any->_M_manager; const_cast<any*>(__any)->_M_manager = nullptr; break; } } template<typename _Tp> void any::_Manager_external<_Tp>:: _S_manage(_Op __which, const any* __any, _Arg* __arg) { auto __ptr = static_cast<const _Tp*>(__any->_M_storage._M_ptr); switch (__which) { case _Op_access: __arg->_M_obj = const_cast<_Tp*>(__ptr); break; case _Op_get_type_info: __arg->_M_typeinfo = &typeid(_Tp); break; case _Op_clone: __arg->_M_any->_M_storage._M_ptr = new _Tp(*__ptr); __arg->_M_any->_M_manager = __any->_M_manager; break; case _Op_destroy: delete __ptr; break; case _Op_xfer: __arg->_M_any->_M_storage._M_ptr = __any->_M_storage._M_ptr; __arg->_M_any->_M_manager = __any->_M_manager; const_cast<any*>(__any)->_M_manager = nullptr; break; } } namespace __detail::__variant { template<typename> struct _Never_valueless_alt; template<> struct _Never_valueless_alt<std::any> : std::true_type { }; } } # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 2 3 4 namespace boost { namespace asio { # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 3 4 namespace execution { namespace detail { template <int I = 0> struct context_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef std::any polymorphic_query_result_type; constexpr context_t() { } template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, context_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(context_t::static_query<E>())> static constexpr const T static_query_v = context_t::static_query<E>(); }; template <int I> template <typename E, typename T> const T context_t<I>::static_query_v; # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 3 4 } typedef detail::context_t<> context_t; constexpr context_t context; } # 209 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 3 4 namespace traits { # 237 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 2 3 4 namespace boost { namespace asio { # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 3 4 namespace execution { template <typename T> struct context_as_t { template <typename U> static constexpr bool is_applicable_property_v = ( is_executor<U>::value || conditional< is_executor<U>::value, false_type, is_sender<U> >::type::value || conditional< is_executor<U>::value, false_type, is_scheduler<U> >::type::value ) # 92 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef T polymorphic_query_result_type; constexpr context_as_t() { } constexpr context_as_t(context_t) { } template <typename E> static constexpr typename context_t::query_static_constexpr_member<E>::result_type static_query() noexcept((( context_t::query_static_constexpr_member<E>::is_noexcept))) { return context_t::query_static_constexpr_member<E>::value(); } template <typename E, typename U = decltype(context_as_t::static_query<E>())> static constexpr const U static_query_v = context_as_t::static_query<E>(); template <typename Executor, typename U> friend constexpr U query( const Executor& ex, const context_as_t<U>&, typename enable_if< is_same<T, U>::value >::type* = 0, typename enable_if< can_query<const Executor&, const context_t&>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, const context_t&>::value))) { return boost::asio::query(ex, context); } }; template <typename T> template <typename E, typename U> const U context_as_t<T>::static_query_v; template <typename T> constexpr context_as_t<T> context_as{}; } # 192 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 3 4 namespace traits { # 225 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 233 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/context_as.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 2 3 4 namespace boost { namespace asio { # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 namespace execution { namespace detail { namespace mapping { template <int I> struct thread_t; template <int I> struct new_thread_t; template <int I> struct other_t; } template <int I = 0> struct mapping_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 216 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef mapping_t polymorphic_query_result_type; typedef detail::mapping::thread_t<I> thread_t; typedef detail::mapping::new_thread_t<I> new_thread_t; typedef detail::mapping::other_t<I> other_t; constexpr mapping_t() : value_(-1) { } constexpr mapping_t(thread_t) : value_(0) { } constexpr mapping_t(new_thread_t) : value_(1) { } constexpr mapping_t(other_t) : value_(2) { } template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) const noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_member : traits::query_member<typename proxy<T>::type, mapping_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, mapping_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr typename traits::static_query<T, thread_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, thread_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, thread_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, new_thread_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, thread_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, new_thread_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, new_thread_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, other_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, thread_t>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, new_thread_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, other_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, other_t>::value(); } template <typename E, typename T = decltype(mapping_t::static_query<E>())> static constexpr const T static_query_v = mapping_t::static_query<E>(); friend constexpr bool operator==( const mapping_t& a, const mapping_t& b) { return a.value_ == b.value_; } friend constexpr bool operator!=( const mapping_t& a, const mapping_t& b) { return a.value_ != b.value_; } struct convertible_from_mapping_t { constexpr convertible_from_mapping_t(mapping_t) {} }; template <typename Executor> friend constexpr mapping_t query( const Executor& ex, convertible_from_mapping_t, typename enable_if< can_query<const Executor&, thread_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, thread_t>::value))) { return boost::asio::query(ex, thread_t()); } template <typename Executor> friend constexpr mapping_t query( const Executor& ex, convertible_from_mapping_t, typename enable_if< !can_query<const Executor&, thread_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, new_thread_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, new_thread_t>::value))) { return boost::asio::query(ex, new_thread_t()); } template <typename Executor> friend constexpr mapping_t query( const Executor& ex, convertible_from_mapping_t, typename enable_if< !can_query<const Executor&, thread_t>::value >::type* = 0, typename enable_if< !can_query<const Executor&, new_thread_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, other_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, other_t>::value))) { return boost::asio::query(ex, other_t()); } static constexpr const thread_t thread{}; static constexpr const new_thread_t new_thread{}; static constexpr const other_t other{}; private: int value_; }; template <int I> template <typename E, typename T> const T mapping_t<I>::static_query_v; # 491 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 template <int I> const typename mapping_t<I>::thread_t mapping_t<I>::thread; template <int I> const typename mapping_t<I>::new_thread_t mapping_t<I>::new_thread; template <int I> const typename mapping_t<I>::other_t mapping_t<I>::other; namespace mapping { template <int I = 0> struct thread_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 526 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef mapping_t<I> polymorphic_query_result_type; constexpr thread_t() { } template <typename T> struct query_member : traits::query_member< typename mapping_t<I>::template proxy<T>::type, thread_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename mapping_t<I>::template static_proxy<T>::type, thread_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr thread_t static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::query_free<T, thread_t>::is_valid >::type* = 0, typename enable_if< !can_query<T, new_thread_t<I> >::value >::type* = 0, typename enable_if< !can_query<T, other_t<I> >::value >::type* = 0) noexcept { return thread_t(); } template <typename E, typename T = decltype(thread_t::static_query<E>())> static constexpr const T static_query_v = thread_t::static_query<E>(); static constexpr mapping_t<I> value() { return thread_t(); } friend constexpr bool operator==( const thread_t&, const thread_t&) { return true; } friend constexpr bool operator!=( const thread_t&, const thread_t&) { return false; } }; template <int I> template <typename E, typename T> const T thread_t<I>::static_query_v; template <int I = 0> struct new_thread_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 636 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef mapping_t<I> polymorphic_query_result_type; constexpr new_thread_t() { } template <typename T> struct query_member : traits::query_member< typename mapping_t<I>::template proxy<T>::type, new_thread_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename mapping_t<I>::template static_proxy<T>::type, new_thread_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(new_thread_t::static_query<E>())> static constexpr const T static_query_v = new_thread_t::static_query<E>(); static constexpr mapping_t<I> value() { return new_thread_t(); } friend constexpr bool operator==( const new_thread_t&, const new_thread_t&) { return true; } friend constexpr bool operator!=( const new_thread_t&, const new_thread_t&) { return false; } }; template <int I> template <typename E, typename T> const T new_thread_t<I>::static_query_v; template <int I> struct other_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 725 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef mapping_t<I> polymorphic_query_result_type; constexpr other_t() { } template <typename T> struct query_member : traits::query_member< typename mapping_t<I>::template proxy<T>::type, other_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename mapping_t<I>::template static_proxy<T>::type, other_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(other_t::static_query<E>())> static constexpr const T static_query_v = other_t::static_query<E>(); static constexpr mapping_t<I> value() { return other_t(); } friend constexpr bool operator==( const other_t&, const other_t&) { return true; } friend constexpr bool operator!=( const other_t&, const other_t&) { return false; } }; template <int I> template <typename E, typename T> const T other_t<I>::static_query_v; } } typedef detail::mapping_t<> mapping_t; constexpr mapping_t mapping; } # 887 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 namespace traits { # 1153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1161 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/mapping.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 2 3 4 namespace boost { namespace asio { # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 3 4 namespace execution { namespace detail { template <int I = 0> struct occupancy_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef std::size_t polymorphic_query_result_type; constexpr occupancy_t() { } template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, occupancy_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(occupancy_t::static_query<E>())> static constexpr const T static_query_v = occupancy_t::static_query<E>(); }; template <int I> template <typename E, typename T> const T occupancy_t<I>::static_query_v; # 166 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 3 4 } typedef detail::occupancy_t<> occupancy_t; constexpr occupancy_t occupancy; } # 202 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 3 4 namespace traits { # 230 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 238 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/occupancy.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 2 3 4 namespace boost { namespace asio { # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 namespace execution { namespace detail { namespace outstanding_work { template <int I> struct untracked_t; template <int I> struct tracked_t; } template <int I = 0> struct outstanding_work_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef outstanding_work_t polymorphic_query_result_type; typedef detail::outstanding_work::untracked_t<I> untracked_t; typedef detail::outstanding_work::tracked_t<I> tracked_t; constexpr outstanding_work_t() : value_(-1) { } constexpr outstanding_work_t(untracked_t) : value_(0) { } constexpr outstanding_work_t(tracked_t) : value_(1) { } template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) const noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_member : traits::query_member<typename proxy<T>::type, outstanding_work_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, outstanding_work_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr typename traits::static_query<T, untracked_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, untracked_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, untracked_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, tracked_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, untracked_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, tracked_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, tracked_t>::value(); } template <typename E, typename T = decltype(outstanding_work_t::static_query<E>())> static constexpr const T static_query_v = outstanding_work_t::static_query<E>(); friend constexpr bool operator==( const outstanding_work_t& a, const outstanding_work_t& b) { return a.value_ == b.value_; } friend constexpr bool operator!=( const outstanding_work_t& a, const outstanding_work_t& b) { return a.value_ != b.value_; } struct convertible_from_outstanding_work_t { constexpr convertible_from_outstanding_work_t(outstanding_work_t) { } }; template <typename Executor> friend constexpr outstanding_work_t query( const Executor& ex, convertible_from_outstanding_work_t, typename enable_if< can_query<const Executor&, untracked_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, untracked_t>::value))) { return boost::asio::query(ex, untracked_t()); } template <typename Executor> friend constexpr outstanding_work_t query( const Executor& ex, convertible_from_outstanding_work_t, typename enable_if< !can_query<const Executor&, untracked_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, tracked_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, tracked_t>::value))) { return boost::asio::query(ex, tracked_t()); } static constexpr const untracked_t untracked{}; static constexpr const tracked_t tracked{}; private: int value_; }; template <int I> template <typename E, typename T> const T outstanding_work_t<I>::static_query_v; # 407 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 template <int I> const typename outstanding_work_t<I>::untracked_t outstanding_work_t<I>::untracked; template <int I> const typename outstanding_work_t<I>::tracked_t outstanding_work_t<I>::tracked; namespace outstanding_work { template <int I = 0> struct untracked_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 441 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef outstanding_work_t<I> polymorphic_query_result_type; constexpr untracked_t() { } template <typename T> struct query_member : traits::query_member< typename outstanding_work_t<I>::template proxy<T>::type, untracked_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename outstanding_work_t<I>::template static_proxy<T>::type, untracked_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr untracked_t static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::query_free<T, untracked_t>::is_valid >::type* = 0, typename enable_if< !can_query<T, tracked_t<I> >::value >::type* = 0) noexcept { return untracked_t(); } template <typename E, typename T = decltype(untracked_t::static_query<E>())> static constexpr const T static_query_v = untracked_t::static_query<E>(); static constexpr outstanding_work_t<I> value() { return untracked_t(); } friend constexpr bool operator==( const untracked_t&, const untracked_t&) { return true; } friend constexpr bool operator!=( const untracked_t&, const untracked_t&) { return false; } }; template <int I> template <typename E, typename T> const T untracked_t<I>::static_query_v; template <int I = 0> struct tracked_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 549 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef outstanding_work_t<I> polymorphic_query_result_type; constexpr tracked_t() { } template <typename T> struct query_member : traits::query_member< typename outstanding_work_t<I>::template proxy<T>::type, tracked_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename outstanding_work_t<I>::template static_proxy<T>::type, tracked_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(tracked_t::static_query<E>())> static constexpr const T static_query_v = tracked_t::static_query<E>(); static constexpr outstanding_work_t<I> value() { return tracked_t(); } friend constexpr bool operator==( const tracked_t&, const tracked_t&) { return true; } friend constexpr bool operator!=( const tracked_t&, const tracked_t&) { return false; } }; template <int I> template <typename E, typename T> const T tracked_t<I>::static_query_v; } } typedef detail::outstanding_work_t<> outstanding_work_t; constexpr outstanding_work_t outstanding_work; } # 693 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 namespace traits { # 893 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 901 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/outstanding_work.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 2 3 4 namespace boost { namespace asio { # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 3 4 namespace execution { namespace detail { template <typename InnerProperty, typename = void> struct prefer_only_is_preferable { static constexpr bool is_preferable = false; }; template <typename InnerProperty> struct prefer_only_is_preferable<InnerProperty, typename enable_if< InnerProperty::is_preferable >::type> { static constexpr bool is_preferable = true; }; template <typename InnerProperty, typename = void> struct prefer_only_polymorphic_query_result_type { }; template <typename InnerProperty> struct prefer_only_polymorphic_query_result_type<InnerProperty, typename void_type< typename InnerProperty::polymorphic_query_result_type >::type> { typedef typename InnerProperty::polymorphic_query_result_type polymorphic_query_result_type; }; template <typename InnerProperty, typename = void> struct prefer_only_property { InnerProperty property; prefer_only_property(const InnerProperty& p) : property(p) { } }; template <typename InnerProperty> struct prefer_only_property<InnerProperty, typename void_type< decltype(boost::asio::declval<const InnerProperty>().value()) >::type> { InnerProperty property; prefer_only_property(const InnerProperty& p) : property(p) { } constexpr auto value() const noexcept((( noexcept(boost::asio::declval<const InnerProperty>().value())))) -> decltype(boost::asio::declval<const InnerProperty>().value()) { return property.value(); } }; # 185 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 3 4 } template <typename InnerProperty> struct prefer_only : detail::prefer_only_is_preferable<InnerProperty>, detail::prefer_only_polymorphic_query_result_type<InnerProperty>, detail::prefer_only_property<InnerProperty> { static constexpr bool is_requirable = false; constexpr prefer_only(const InnerProperty& p) : detail::prefer_only_property<InnerProperty>(p) { } template <typename T> static constexpr typename traits::static_query<T, InnerProperty>::result_type static_query() noexcept((( traits::static_query<T, InnerProperty>::is_noexcept))) { return traits::static_query<T, InnerProperty>::value(); } template <typename E, typename T = decltype(prefer_only::static_query<E>())> static constexpr const T static_query_v = prefer_only::static_query<E>(); template <typename Executor, typename Property> friend constexpr typename prefer_result<const Executor&, const InnerProperty&>::type prefer(const Executor& ex, const prefer_only<Property>& p, typename enable_if< is_same<Property, InnerProperty>::value >::type* = 0, typename enable_if< can_prefer<const Executor&, const InnerProperty&>::value >::type* = 0) noexcept((( is_nothrow_prefer<const Executor&, const InnerProperty&>::value))) { return boost::asio::prefer(ex, p.property); } template <typename Executor, typename Property> friend constexpr typename query_result<const Executor&, const InnerProperty&>::type query(const Executor& ex, const prefer_only<Property>& p, typename enable_if< is_same<Property, InnerProperty>::value >::type* = 0, typename enable_if< can_query<const Executor&, const InnerProperty&>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, const InnerProperty&>::value))) { return boost::asio::query(ex, p.property); } }; template <typename InnerProperty> template <typename E, typename T> const T prefer_only<InnerProperty>::static_query_v; } template <typename T, typename InnerProperty> struct is_applicable_property<T, execution::prefer_only<InnerProperty> > : is_applicable_property<T, InnerProperty> { }; namespace traits { # 324 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 332 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/prefer_only.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 2 3 4 namespace boost { namespace asio { # 148 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 namespace execution { namespace detail { namespace relationship { template <int I> struct fork_t; template <int I> struct continuation_t; } template <int I = 0> struct relationship_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 ; static constexpr bool is_requirable = false; static constexpr bool is_preferable = false; typedef relationship_t polymorphic_query_result_type; typedef detail::relationship::fork_t<I> fork_t; typedef detail::relationship::continuation_t<I> continuation_t; constexpr relationship_t() : value_(-1) { } constexpr relationship_t(fork_t) : value_(0) { } constexpr relationship_t(continuation_t) : value_(1) { } template <typename T> struct proxy { struct type { template <typename P> auto query(P&& p) const noexcept( noexcept( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().query( static_cast<P&&>(p)) ); }; }; template <typename T> struct static_proxy { struct type { template <typename P> static constexpr auto query(P&& p) noexcept( noexcept( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) ) -> decltype( conditional<true, T, P>::type::query(static_cast<P&&>(p)) ) { return T::query(static_cast<P&&>(p)); } }; }; template <typename T> struct query_member : traits::query_member<typename proxy<T>::type, relationship_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename static_proxy<T>::type, relationship_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr typename traits::static_query<T, fork_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, fork_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, fork_t>::value(); } template <typename T> static constexpr typename traits::static_query<T, continuation_t>::result_type static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::static_query<T, fork_t>::is_valid >::type* = 0, typename enable_if< traits::static_query<T, continuation_t>::is_valid >::type* = 0) noexcept { return traits::static_query<T, continuation_t>::value(); } template <typename E, typename T = decltype(relationship_t::static_query<E>())> static constexpr const T static_query_v = relationship_t::static_query<E>(); friend constexpr bool operator==( const relationship_t& a, const relationship_t& b) { return a.value_ == b.value_; } friend constexpr bool operator!=( const relationship_t& a, const relationship_t& b) { return a.value_ != b.value_; } struct convertible_from_relationship_t { constexpr convertible_from_relationship_t(relationship_t) { } }; template <typename Executor> friend constexpr relationship_t query( const Executor& ex, convertible_from_relationship_t, typename enable_if< can_query<const Executor&, fork_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, fork_t>::value))) { return boost::asio::query(ex, fork_t()); } template <typename Executor> friend constexpr relationship_t query( const Executor& ex, convertible_from_relationship_t, typename enable_if< !can_query<const Executor&, fork_t>::value >::type* = 0, typename enable_if< can_query<const Executor&, continuation_t>::value >::type* = 0) noexcept((( is_nothrow_query<const Executor&, continuation_t>::value))) { return boost::asio::query(ex, continuation_t()); } static constexpr const fork_t fork{}; static constexpr const continuation_t continuation{}; private: int value_; }; template <int I> template <typename E, typename T> const T relationship_t<I>::static_query_v; # 405 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 template <int I> const typename relationship_t<I>::fork_t relationship_t<I>::fork; template <int I> const typename relationship_t<I>::continuation_t relationship_t<I>::continuation; namespace relationship { template <int I = 0> struct fork_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 439 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef relationship_t<I> polymorphic_query_result_type; constexpr fork_t() { } template <typename T> struct query_member : traits::query_member< typename relationship_t<I>::template proxy<T>::type, fork_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename relationship_t<I>::template static_proxy<T>::type, fork_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename T> static constexpr fork_t static_query( typename enable_if< !query_static_constexpr_member<T>::is_valid >::type* = 0, typename enable_if< !query_member<T>::is_valid >::type* = 0, typename enable_if< !traits::query_free<T, fork_t>::is_valid >::type* = 0, typename enable_if< !can_query<T, continuation_t<I> >::value >::type* = 0) noexcept { return fork_t(); } template <typename E, typename T = decltype(fork_t::static_query<E>())> static constexpr const T static_query_v = fork_t::static_query<E>(); static constexpr relationship_t<I> value() { return fork_t(); } friend constexpr bool operator==( const fork_t&, const fork_t&) { return true; } friend constexpr bool operator!=( const fork_t&, const fork_t&) { return false; } }; template <int I> template <typename E, typename T> const T fork_t<I>::static_query_v; template <int I = 0> struct continuation_t { template <typename T> static constexpr bool is_applicable_property_v = ( is_executor<T>::value || conditional< is_executor<T>::value, false_type, is_sender<T> >::type::value || conditional< is_executor<T>::value, false_type, is_scheduler<T> >::type::value ) # 546 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 ; static constexpr bool is_requirable = true; static constexpr bool is_preferable = true; typedef relationship_t<I> polymorphic_query_result_type; constexpr continuation_t() { } template <typename T> struct query_member : traits::query_member< typename relationship_t<I>::template proxy<T>::type, continuation_t> {}; template <typename T> struct query_static_constexpr_member : traits::query_static_constexpr_member< typename relationship_t<I>::template static_proxy<T>::type, continuation_t> {}; template <typename T> static constexpr typename query_static_constexpr_member<T>::result_type static_query() noexcept((( query_static_constexpr_member<T>::is_noexcept))) { return query_static_constexpr_member<T>::value(); } template <typename E, typename T = decltype(continuation_t::static_query<E>())> static constexpr const T static_query_v = continuation_t::static_query<E>(); static constexpr relationship_t<I> value() { return continuation_t(); } friend constexpr bool operator==( const continuation_t&, const continuation_t&) { return true; } friend constexpr bool operator!=( const continuation_t&, const continuation_t&) { return false; } }; template <int I> template <typename E, typename T> const T continuation_t<I>::static_query_v; } } typedef detail::relationship_t<> relationship_t; constexpr relationship_t relationship; } # 691 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 namespace traits { # 891 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 899 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/relationship.hpp" 2 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 2 3 4 namespace boost { namespace asio { namespace execution { namespace detail { template <typename Sender, typename Receiver> struct submit_receiver; template <typename Sender, typename Receiver> struct submit_receiver_wrapper { submit_receiver<Sender, Receiver>* p_; explicit submit_receiver_wrapper(submit_receiver<Sender, Receiver>* p) : p_(p) { } template <typename... Args> typename enable_if<is_receiver_of<Receiver, Args...>::value>::type set_value(Args&&... args) && noexcept(((is_nothrow_receiver_of<Receiver, Args...>::value))) { execution::set_value( static_cast<typename remove_cvref<Receiver>::type&&> (p_->r_), static_cast<Args&&>(args)...); delete p_; } # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 3 4 template <typename E> void set_error(E&& e) && noexcept { execution::set_error( static_cast<typename remove_cvref<Receiver>::type&&> (p_->r_), static_cast<E&&>(e)); delete p_; } void set_done() && noexcept { execution::set_done( static_cast<typename remove_cvref<Receiver>::type&&> (p_->r_)); delete p_; } }; template <typename Sender, typename Receiver> struct submit_receiver { typename remove_cvref<Receiver>::type r_; typename connect_result<Sender, submit_receiver_wrapper<Sender, Receiver> >::type state_; template <typename S, typename R> explicit submit_receiver(S&& s, R&& r) : r_(static_cast<R&&>(r)), state_(execution::connect(static_cast<S&&>(s), submit_receiver_wrapper<Sender, Receiver>(this))) { } # 143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 3 4 }; } } namespace traits { # 229 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 234 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/detail/submit_receiver.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename S, typename R, typename = void> struct submit_member_default; template <typename S, typename R, typename = void> struct submit_member; } namespace detail { struct no_submit_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename S, typename R, typename = void> struct submit_member_trait : no_submit_member { }; template <typename S, typename R> struct submit_member_trait<S, R, typename void_type< decltype(declval<S>().submit(declval<R>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<S>().submit(declval<R>())); static constexpr bool is_noexcept = noexcept( declval<S>().submit(declval<R>())) ; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_member.hpp" 3 4 } namespace traits { template <typename S, typename R, typename> struct submit_member_default : detail::submit_member_trait<S, R> { }; template <typename S, typename R, typename> struct submit_member : submit_member_default<S, R> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_member.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename S, typename R, typename = void> struct submit_free_default; template <typename S, typename R, typename = void> struct submit_free; } namespace detail { struct no_submit_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename S, typename R, typename = void> struct submit_free_trait : no_submit_free { }; template <typename S, typename R> struct submit_free_trait<S, R, typename void_type< decltype(submit(declval<S>(), declval<R>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( submit(declval<S>(), declval<R>())); static constexpr bool is_noexcept = noexcept( submit(declval<S>(), declval<R>())) ; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_free.hpp" 3 4 } namespace traits { template <typename S, typename R, typename> struct submit_free_default : detail::submit_free_trait<S, R> { }; template <typename S, typename R, typename> struct submit_free : submit_free_default<S, R> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/submit_free.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 2 3 4 # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 3 4 namespace boost_asio_execution_submit_fn { using boost::asio::declval; using boost::asio::enable_if; using boost::asio::execution::is_sender_to; using boost::asio::traits::submit_free; using boost::asio::traits::submit_member; void submit(); enum overload_type { call_member, call_free, adapter, ill_formed }; template <typename S, typename R, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename S, typename R> struct call_traits<S, void(R), typename enable_if< submit_member<S, R>::is_valid >::type, typename enable_if< is_sender_to<S, R>::value >::type> : submit_member<S, R> { static constexpr overload_type overload = call_member; }; template <typename S, typename R> struct call_traits<S, void(R), typename enable_if< !submit_member<S, R>::is_valid >::type, typename enable_if< submit_free<S, R>::is_valid >::type, typename enable_if< is_sender_to<S, R>::value >::type> : submit_free<S, R> { static constexpr overload_type overload = call_free; }; template <typename S, typename R> struct call_traits<S, void(R), typename enable_if< !submit_member<S, R>::is_valid >::type, typename enable_if< !submit_free<S, R>::is_valid >::type, typename enable_if< is_sender_to<S, R>::value >::type> { static constexpr overload_type overload = adapter; static constexpr bool is_noexcept = false; typedef void result_type; }; struct impl { template <typename S, typename R> constexpr typename enable_if< call_traits<S, void(R)>::overload == call_member, typename call_traits<S, void(R)>::result_type >::type operator()(S&& s, R&& r) const noexcept((( call_traits<S, void(R)>::is_noexcept))) { return static_cast<S&&>(s).submit(static_cast<R&&>(r)); } template <typename S, typename R> constexpr typename enable_if< call_traits<S, void(R)>::overload == call_free, typename call_traits<S, void(R)>::result_type >::type operator()(S&& s, R&& r) const noexcept((( call_traits<S, void(R)>::is_noexcept))) { return submit(static_cast<S&&>(s), static_cast<R&&>(r)); } template <typename S, typename R> constexpr typename enable_if< call_traits<S, void(R)>::overload == adapter, typename call_traits<S, void(R)>::result_type >::type operator()(S&& s, R&& r) const noexcept((( call_traits<S, void(R)>::is_noexcept))) { return boost::asio::execution::start( (new boost::asio::execution::detail::submit_receiver<S, R>( static_cast<S&&>(s), static_cast<R&&>(r)))->state_); } # 381 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 3 4 }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace execution { namespace { static constexpr const boost_asio_execution_submit_fn::impl& submit = boost_asio_execution_submit_fn::static_instance<>::instance; } template <typename S, typename R> struct can_submit : integral_constant<bool, boost_asio_execution_submit_fn::call_traits<S, void(R)>::overload != boost_asio_execution_submit_fn::ill_formed> { }; template <typename S, typename R> constexpr bool can_submit_v = can_submit<S, R>::value; template <typename S, typename R> struct is_nothrow_submit : integral_constant<bool, boost_asio_execution_submit_fn::call_traits<S, void(R)>::is_noexcept> { }; template <typename S, typename R> constexpr bool is_nothrow_submit_v = is_nothrow_submit<S, R>::value; template <typename S, typename R> struct submit_result { typedef typename boost_asio_execution_submit_fn::call_traits< S, void(R)>::result_type type; }; namespace detail { template <typename S, typename R> void submit_helper(S&& s, R&& r) { execution::submit(static_cast<S&&>(s), static_cast<R&&>(r)); } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 456 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution/submit.hpp" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 2 3 4 namespace boost { namespace asio { class execution_context; class io_context; template <typename Service> Service& use_service(execution_context&); template <typename Service> Service& use_service(io_context&); template <typename Service> void add_service(execution_context&, Service*); template <typename Service> bool has_service(execution_context&); namespace detail { class service_registry; } # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 class execution_context : private noncopyable { public: class id; class service; public: inline execution_context(); inline ~execution_context(); protected: # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 inline void shutdown(); # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 inline void destroy(); public: enum fork_event { fork_prepare, fork_parent, fork_child }; # 195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 inline void notify_fork(fork_event event); # 208 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 template <typename Service> friend Service& use_service(execution_context& e); # 225 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 template <typename Service> friend Service& use_service(io_context& ioc); # 247 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 template <typename Service, typename... Args> friend Service& make_service(execution_context& e, Args&&... args); # 285 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 template <typename Service> friend void add_service(execution_context& e, Service* svc); # 298 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 3 4 template <typename Service> friend bool has_service(execution_context& e); private: boost::asio::detail::service_registry* service_registry_; }; class execution_context::id : private noncopyable { public: id() {} }; class execution_context::service : private noncopyable { public: execution_context& context(); protected: inline service(execution_context& owner); inline virtual ~service(); private: virtual void shutdown() = 0; inline virtual void notify_fork( execution_context::fork_event event); friend class boost::asio::detail::service_registry; struct key { key() : type_info_(0), id_(0) {} const std::type_info* type_info_; const execution_context::id* id_; } key_; execution_context& owner_; service* next_; }; class service_already_exists : public std::logic_error { public: inline service_already_exists(); }; class invalid_service_owner : public std::logic_error { public: inline invalid_service_owner(); }; namespace detail { template <typename Type> class service_id : public execution_context::id { }; template <typename Type> class execution_context_service_base : public execution_context::service { public: static service_id<Type> id; execution_context_service_base(execution_context& e) : execution_context::service(e) { } }; template <typename Type> service_id<Type> execution_context_service_base<Type>::id; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 408 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_type_requirements.hpp" 1 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_type_requirements.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> struct is_completion_signature : false_type { }; template <typename R, typename... Args> struct is_completion_signature<R(Args...)> : true_type { }; template <typename R, typename... Args> struct is_completion_signature<R(Args...) &> : true_type { }; template <typename R, typename... Args> struct is_completion_signature<R(Args...) &&> : true_type { }; template <typename R, typename... Args> struct is_completion_signature<R(Args...) noexcept> : true_type { }; template <typename R, typename... Args> struct is_completion_signature<R(Args...) & noexcept> : true_type { }; template <typename R, typename... Args> struct is_completion_signature<R(Args...) && noexcept> : true_type { }; template <typename... T> struct are_completion_signatures : false_type { }; template <typename T0> struct are_completion_signatures<T0> : is_completion_signature<T0> { }; template <typename T0, typename... TN> struct are_completion_signatures<T0, TN...> : integral_constant<bool, ( is_completion_signature<T0>::value && are_completion_signatures<TN...>::value)> { }; template <typename T, typename... Args> concept callable_with = requires(T&& t, Args&&... args) { static_cast<T&&>(t)(static_cast<Args&&>(args)...); }; template <typename T, typename... Signatures> struct is_completion_handler_for : false_type { }; template <typename T, typename R, typename... Args> struct is_completion_handler_for<T, R(Args...)> : integral_constant<bool, (callable_with<T, Args...>)> { }; template <typename T, typename R, typename... Args> struct is_completion_handler_for<T, R(Args...) &> : integral_constant<bool, (callable_with<T&, Args...>)> { }; template <typename T, typename R, typename... Args> struct is_completion_handler_for<T, R(Args...) &&> : integral_constant<bool, (callable_with<T&&, Args...>)> { }; template <typename T, typename R, typename... Args> struct is_completion_handler_for<T, R(Args...) noexcept> : integral_constant<bool, (callable_with<T, Args...>)> { }; template <typename T, typename R, typename... Args> struct is_completion_handler_for<T, R(Args...) & noexcept> : integral_constant<bool, (callable_with<T&, Args...>)> { }; template <typename T, typename R, typename... Args> struct is_completion_handler_for<T, R(Args...) && noexcept> : integral_constant<bool, (callable_with<T&&, Args...>)> { }; template <typename T, typename Signature0, typename... SignatureN> struct is_completion_handler_for<T, Signature0, SignatureN...> : integral_constant<bool, ( is_completion_handler_for<T, Signature0>::value && is_completion_handler_for<T, SignatureN...>::value)> { }; } template <typename T> concept completion_signature = detail::is_completion_signature<T>::value; template <typename T, typename... Signatures> concept completion_handler_for = detail::are_completion_signatures<Signatures...>::value && detail::is_completion_handler_for<T, Signatures...>::value; # 190 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 namespace detail { template <typename T> struct is_simple_completion_signature : false_type { }; template <typename T> struct simple_completion_signature; template <typename R, typename... Args> struct is_simple_completion_signature<R(Args...)> : true_type { }; template <typename... Signatures> struct are_simple_completion_signatures : false_type { }; template <typename Sig0> struct are_simple_completion_signatures<Sig0> : is_simple_completion_signature<Sig0> { }; template <typename Sig0, typename... SigN> struct are_simple_completion_signatures<Sig0, SigN...> : integral_constant<bool, ( is_simple_completion_signature<Sig0>::value && are_simple_completion_signatures<SigN...>::value)> { }; template <typename R, typename... Args> struct simple_completion_signature<R(Args...)> { typedef R type(Args...); }; template <typename R, typename... Args> struct simple_completion_signature<R(Args...) &> { typedef R type(Args...); }; template <typename R, typename... Args> struct simple_completion_signature<R(Args...) &&> { typedef R type(Args...); }; template <typename R, typename... Args> struct simple_completion_signature<R(Args...) noexcept> { typedef R type(Args...); }; template <typename R, typename... Args> struct simple_completion_signature<R(Args...) & noexcept> { typedef R type(Args...); }; template <typename R, typename... Args> struct simple_completion_signature<R(Args...) && noexcept> { typedef R type(Args...); }; # 457 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename CompletionToken, ::boost::asio::completion_signature... Signatures> class completion_handler_async_result { public: typedef CompletionToken completion_handler_type; typedef void return_type; explicit completion_handler_async_result(completion_handler_type&) { } return_type get() { } template <typename Initiation, ::boost::asio::completion_handler_for<Signatures...> RawCompletionToken, typename... Args> static return_type initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { static_cast<Initiation&&>(initiation)( static_cast<RawCompletionToken&&>(token), static_cast<Args&&>(args)...); } # 517 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 private: completion_handler_async_result( const completion_handler_async_result&) = delete; completion_handler_async_result& operator=( const completion_handler_async_result&) = delete; }; } # 584 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename CompletionToken, ::boost::asio::completion_signature... Signatures> class async_result : public conditional< detail::are_simple_completion_signatures< Signatures...>::value, detail::completion_handler_async_result< CompletionToken, Signatures...>, async_result<CompletionToken, typename boost::asio::detail::simple_completion_signature< Signatures>::type...> >::type { public: typedef typename conditional< detail::are_simple_completion_signatures< Signatures...>::value, detail::completion_handler_async_result< CompletionToken, Signatures...>, async_result<CompletionToken, typename boost::asio::detail::simple_completion_signature< Signatures>::type...> >::type base_type; using base_type::base_type; private: async_result(const async_result&) = delete; async_result& operator=(const async_result&) = delete; }; # 633 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template < ::boost::asio::completion_signature... Signatures> class async_result<void, Signatures...> { }; template <typename CompletionToken, ::boost::asio::completion_signature... Signatures> struct async_completion { typedef typename boost::asio::async_result< typename decay<CompletionToken>::type, Signatures...>::completion_handler_type completion_handler_type; explicit async_completion(CompletionToken& token) : completion_handler(static_cast<typename conditional< is_same<CompletionToken, completion_handler_type>::value, completion_handler_type&, CompletionToken&&>::type>(token)), result(completion_handler) { } # 682 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 typename conditional< is_same<CompletionToken, completion_handler_type>::value, completion_handler_type&, completion_handler_type>::type completion_handler; async_result<typename decay<CompletionToken>::type, Signatures...> result; }; namespace detail { template <typename CompletionToken, ::boost::asio::completion_signature... Signatures> struct async_result_helper : async_result<typename decay<CompletionToken>::type, Signatures...> { }; struct async_result_memfns_base { void initiate(); }; template <typename T> struct async_result_memfns_derived : T, async_result_memfns_base { }; template <typename T, T> struct async_result_memfns_check { }; template <typename> char (&async_result_initiate_memfn_helper(...))[2]; template <typename T> char async_result_initiate_memfn_helper( async_result_memfns_check< void (async_result_memfns_base::*)(), &async_result_memfns_derived<T>::initiate>*); template <typename CompletionToken, ::boost::asio::completion_signature... Signatures> struct async_result_has_initiate_memfn : integral_constant<bool, sizeof(async_result_initiate_memfn_helper< async_result<typename decay<CompletionToken>::type, Signatures...> >(0)) != 1> { }; } # 880 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename CompletionToken, ::boost::asio::completion_signature... Signatures, typename Initiation, typename... Args> inline typename constraint< detail::async_result_has_initiate_memfn< CompletionToken, Signatures...>::value, decltype (async_result<typename decay<CompletionToken>::type, Signatures...>::initiate(declval<Initiation&&>(), declval<CompletionToken&&>(), declval<Args&&>()...)) >::type async_initiate(Initiation&& initiation, CompletionToken& token, Args&&... args) { return async_result<typename decay<CompletionToken>::type, Signatures...>::initiate(static_cast<Initiation&&>(initiation), static_cast<CompletionToken&&>(token), static_cast<Args&&>(args)...); } template <typename CompletionToken, ::boost::asio::completion_signature... Signatures, typename Initiation, typename... Args> inline typename constraint< !detail::async_result_has_initiate_memfn< CompletionToken, Signatures...>::value, typename ::boost::asio::async_result< typename ::boost::asio::decay<CompletionToken>::type, Signatures...>::return_type>::type async_initiate(Initiation&& initiation, CompletionToken& token, Args&&... args) { async_completion<CompletionToken, Signatures...> completion(token); static_cast<Initiation&&>(initiation)( static_cast<typename ::boost::asio::async_result< typename ::boost::asio::decay<CompletionToken>::type, Signatures...>::completion_handler_type&&> (completion.completion_handler), static_cast<Args&&>(args)...); return completion.result.get(); } # 1195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 namespace detail { template <typename... Signatures> struct initiation_archetype { template <completion_handler_for<Signatures...> CompletionHandler> void operator()(CompletionHandler&&) const { } }; } template <typename T, typename... Signatures> concept completion_token_for = detail::are_completion_signatures<Signatures...>::value && requires(T&& t) { async_initiate<T, Signatures...>( detail::initiation_archetype<Signatures...>{}, t); }; # 1237 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 namespace detail { struct async_operation_probe {}; struct async_operation_probe_result {}; template <typename Call, typename = void> struct is_async_operation_call : false_type { }; template <typename Call> struct is_async_operation_call<Call, typename void_type< typename enable_if< is_same< typename result_of<Call>::type, async_operation_probe_result >::value >::type >::type> : true_type { }; } template <typename... Signatures> class async_result<detail::async_operation_probe, Signatures...> { public: typedef detail::async_operation_probe_result return_type; template <typename Initiation, typename... InitArgs> static return_type initiate(Initiation&&, detail::async_operation_probe, InitArgs&&...) { return return_type(); } }; # 1341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename T, typename... Args> struct is_async_operation : detail::is_async_operation_call< T(Args..., detail::async_operation_probe)> { }; # 1378 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename T, typename... Args> concept async_operation = is_async_operation<T, Args...>::value; # 1401 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 namespace detail { struct completion_signature_probe {}; template <typename... T> struct completion_signature_probe_result { template <template <typename...> class Op> struct apply { typedef Op<T...> type; }; }; template <typename T> struct completion_signature_probe_result<T> { typedef T type; template <template <typename...> class Op> struct apply { typedef Op<T> type; }; }; template <> struct completion_signature_probe_result<void> { template <template <typename...> class Op> struct apply { typedef Op<> type; }; }; # 1454 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 } template <typename... Signatures> class async_result<detail::completion_signature_probe, Signatures...> { public: typedef detail::completion_signature_probe_result<Signatures...> return_type; template <typename Initiation, typename... InitArgs> static return_type initiate(Initiation&&, detail::completion_signature_probe, InitArgs&&...) { return return_type(); } }; template <typename Signature> class async_result<detail::completion_signature_probe, Signature> { public: typedef detail::completion_signature_probe_result<Signature> return_type; template <typename Initiation, typename... InitArgs> static return_type initiate(Initiation&&, detail::completion_signature_probe, InitArgs&&...) { return return_type(); } }; # 1564 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename T, typename... Args> struct completion_signature_of : result_of<T(Args..., detail::completion_signature_probe)>::type { }; template <typename T, typename... Args> using completion_signature_of_t = typename completion_signature_of<T, Args...>::type; # 1603 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 namespace detail { template <typename T, typename = void> struct default_completion_token_impl { typedef void type; }; template <typename T> struct default_completion_token_impl<T, typename void_type<typename T::default_completion_token_type>::type> { typedef typename T::default_completion_token_type type; }; } # 1640 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 template <typename T> struct default_completion_token : detail::default_completion_token_impl<T> { }; template <typename T> using default_completion_token_t = typename default_completion_token<T>::type; # 1668 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 3 4 } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1672 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/async_result.hpp" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_type_requirements.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler> auto zero_arg_copyable_handler_test(Handler h, void*) -> decltype( sizeof(Handler(static_cast<const Handler&>(h))), (static_cast<Handler&&>(h)()), char(0)); template <typename Handler> char (&zero_arg_copyable_handler_test(Handler, ...))[2]; template <typename Handler, typename Arg1> auto one_arg_handler_test(Handler h, Arg1* a1) -> decltype( sizeof(Handler(static_cast<Handler&&>(h))), (static_cast<Handler&&>(h)(*a1)), char(0)); template <typename Handler> char (&one_arg_handler_test(Handler h, ...))[2]; template <typename Handler, typename Arg1, typename Arg2> auto two_arg_handler_test(Handler h, Arg1* a1, Arg2* a2) -> decltype( sizeof(Handler(static_cast<Handler&&>(h))), (static_cast<Handler&&>(h)(*a1, *a2)), char(0)); template <typename Handler> char (&two_arg_handler_test(Handler, ...))[2]; template <typename Handler, typename Arg1, typename Arg2> auto two_arg_move_handler_test(Handler h, Arg1* a1, Arg2* a2) -> decltype( sizeof(Handler(static_cast<Handler&&>(h))), (static_cast<Handler&&>(h)( *a1, static_cast<Arg2&&>(*a2))), char(0)); template <typename Handler> char (&two_arg_move_handler_test(Handler, ...))[2]; # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_type_requirements.hpp" 3 4 template <typename T> T& lvref(); template <typename T> T& lvref(T); template <typename T> const T& clvref(); template <typename T> const T& clvref(T); template <typename T> T rvref(); template <typename T> T rvref(T); template <typename T> T rorlvref(); template <typename T> char argbyv(T); template <int> struct handler_type_requirements { }; # 557 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_type_requirements.hpp" 3 4 } } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 2 3 4 namespace boost { namespace asio { class io_context; namespace detail { template <typename T> class typeid_wrapper {}; class service_registry : private noncopyable { public: inline service_registry(execution_context& owner); inline ~service_registry(); inline void shutdown_services(); inline void destroy_services(); inline void notify_fork(execution_context::fork_event fork_ev); template <typename Service> Service& use_service(); template <typename Service> Service& use_service(io_context& owner); template <typename Service> void add_service(Service* new_service); template <typename Service> bool has_service() const; private: template <typename Service> static void init_key(execution_context::service::key& key, ...); template <typename Service> static void init_key(execution_context::service::key& key, typename enable_if< is_base_of<typename Service::key_type, Service>::value>::type*); inline static void init_key_from_id( execution_context::service::key& key, const execution_context::id& id); template <typename Service> static void init_key_from_id(execution_context::service::key& key, const service_id<Service>& ); inline static bool keys_match( const execution_context::service::key& key1, const execution_context::service::key& key2); typedef execution_context::service*(*factory_type)(void*); template <typename Service, typename Owner> static execution_context::service* create(void* owner); inline static void destroy(execution_context::service* service); struct auto_service_ptr; friend struct auto_service_ptr; struct auto_service_ptr { execution_context::service* ptr_; ~auto_service_ptr() { destroy(ptr_); } }; inline execution_context::service* do_use_service( const execution_context::service::key& key, factory_type factory, void* owner); inline void do_add_service( const execution_context::service::key& key, execution_context::service* new_service); inline bool do_has_service( const execution_context::service::key& key) const; mutable boost::asio::detail::mutex mutex_; execution_context& owner_; execution_context::service* first_service_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Service> Service& service_registry::use_service() { execution_context::service::key key; init_key<Service>(key, 0); factory_type factory = &service_registry::create<Service, execution_context>; return *static_cast<Service*>(do_use_service(key, factory, &owner_)); } template <typename Service> Service& service_registry::use_service(io_context& owner) { execution_context::service::key key; init_key<Service>(key, 0); factory_type factory = &service_registry::create<Service, io_context>; return *static_cast<Service*>(do_use_service(key, factory, &owner)); } template <typename Service> void service_registry::add_service(Service* new_service) { execution_context::service::key key; init_key<Service>(key, 0); return do_add_service(key, new_service); } template <typename Service> bool service_registry::has_service() const { execution_context::service::key key; init_key<Service>(key, 0); return do_has_service(key); } template <typename Service> inline void service_registry::init_key( execution_context::service::key& key, ...) { init_key_from_id(key, Service::id); } template <typename Service> void service_registry::init_key(execution_context::service::key& key, typename enable_if< is_base_of<typename Service::key_type, Service>::value>::type*) { key.type_info_ = &typeid(typeid_wrapper<Service>); key.id_ = 0; } template <typename Service> void service_registry::init_key_from_id(execution_context::service::key& key, const service_id<Service>& ) { key.type_info_ = &typeid(typeid_wrapper<Service>); key.id_ = 0; } template <typename Service, typename Owner> execution_context::service* service_registry::create(void* owner) { return new Service(*static_cast<Owner*>(owner)); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.hpp" 2 3 4 # 162 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { service_registry::service_registry(execution_context& owner) : owner_(owner), first_service_(0) { } service_registry::~service_registry() { } void service_registry::shutdown_services() { execution_context::service* service = first_service_; while (service) { service->shutdown(); service = service->next_; } } void service_registry::destroy_services() { while (first_service_) { execution_context::service* next_service = first_service_->next_; destroy(first_service_); first_service_ = next_service; } } void service_registry::notify_fork(execution_context::fork_event fork_ev) { std::vector<execution_context::service*> services; { boost::asio::detail::mutex::scoped_lock lock(mutex_); execution_context::service* service = first_service_; while (service) { services.push_back(service); service = service->next_; } } std::size_t num_services = services.size(); if (fork_ev == execution_context::fork_prepare) for (std::size_t i = 0; i < num_services; ++i) services[i]->notify_fork(fork_ev); else for (std::size_t i = num_services; i > 0; --i) services[i - 1]->notify_fork(fork_ev); } void service_registry::init_key_from_id(execution_context::service::key& key, const execution_context::id& id) { key.type_info_ = 0; key.id_ = &id; } bool service_registry::keys_match( const execution_context::service::key& key1, const execution_context::service::key& key2) { if (key1.id_ && key2.id_) if (key1.id_ == key2.id_) return true; if (key1.type_info_ && key2.type_info_) if (*key1.type_info_ == *key2.type_info_) return true; return false; } void service_registry::destroy(execution_context::service* service) { delete service; } execution_context::service* service_registry::do_use_service( const execution_context::service::key& key, factory_type factory, void* owner) { boost::asio::detail::mutex::scoped_lock lock(mutex_); execution_context::service* service = first_service_; while (service) { if (keys_match(service->key_, key)) return service; service = service->next_; } lock.unlock(); auto_service_ptr new_service = { factory(owner) }; new_service.ptr_->key_ = key; lock.lock(); service = first_service_; while (service) { if (keys_match(service->key_, key)) return service; service = service->next_; } new_service.ptr_->next_ = first_service_; first_service_ = new_service.ptr_; new_service.ptr_ = 0; return first_service_; } void service_registry::do_add_service( const execution_context::service::key& key, execution_context::service* new_service) { if (&owner_ != &new_service->context()) boost::asio::detail::throw_exception(invalid_service_owner()); boost::asio::detail::mutex::scoped_lock lock(mutex_); execution_context::service* service = first_service_; while (service) { if (keys_match(service->key_, key)) boost::asio::detail::throw_exception(service_already_exists()); service = service->next_; } new_service->key_ = key; new_service->next_ = first_service_; first_service_ = new_service; } bool service_registry::do_has_service( const execution_context::service::key& key) const { boost::asio::detail::mutex::scoped_lock lock(mutex_); execution_context::service* service = first_service_; while (service) { if (keys_match(service->key_, key)) return true; service = service->next_; } return false; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 198 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/service_registry.ipp" 2 3 4 # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/service_registry.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 2 3 4 namespace boost { namespace asio { template <typename Service> inline Service& use_service(execution_context& e) { (void)static_cast<execution_context::service*>(static_cast<Service*>(0)); return e.service_registry_->template use_service<Service>(); } template <typename Service, typename... Args> Service& make_service(execution_context& e, Args&&... args) { detail::scoped_ptr<Service> svc( new Service(e, static_cast<Args&&>(args)...)); e.service_registry_->template add_service<Service>(svc.get()); Service& result = *svc; svc.release(); return result; } # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 3 4 template <typename Service> inline void add_service(execution_context& e, Service* svc) { (void)static_cast<execution_context::service*>(static_cast<Service*>(0)); e.service_registry_->template add_service<Service>(svc); } template <typename Service> inline bool has_service(execution_context& e) { (void)static_cast<execution_context::service*>(static_cast<Service*>(0)); return e.service_registry_->template has_service<Service>(); } inline execution_context& execution_context::service::context() { return owner_; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.hpp" 2 3 4 # 410 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.ipp" 2 3 4 namespace boost { namespace asio { execution_context::execution_context() : service_registry_(new boost::asio::detail::service_registry(*this)) { } execution_context::~execution_context() { shutdown(); destroy(); delete service_registry_; } void execution_context::shutdown() { service_registry_->shutdown_services(); } void execution_context::destroy() { service_registry_->destroy_services(); } void execution_context::notify_fork( boost::asio::execution_context::fork_event event) { service_registry_->notify_fork(event); } execution_context::service::service(execution_context& owner) : owner_(owner), next_(0) { } execution_context::service::~service() { } void execution_context::service::notify_fork(execution_context::fork_event) { } service_already_exists::service_already_exists() : std::logic_error("Service already exists.") { } invalid_service_owner::invalid_service_owner() : std::logic_error("Invalid service owner.") { } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 83 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/execution_context.ipp" 2 3 4 # 412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/execution_context.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 2 3 4 namespace boost { namespace asio { # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 3 4 class any_io_executor : public execution::any_executor< execution::context_as_t<execution_context&>, execution::blocking_t::never_t, execution::prefer_only<execution::blocking_t::possibly_t>, execution::prefer_only<execution::outstanding_work_t::tracked_t>, execution::prefer_only<execution::outstanding_work_t::untracked_t>, execution::prefer_only<execution::relationship_t::fork_t>, execution::prefer_only<execution::relationship_t::continuation_t> > { public: typedef execution::any_executor< execution::context_as_t<execution_context&>, execution::blocking_t::never_t, execution::prefer_only<execution::blocking_t::possibly_t>, execution::prefer_only<execution::outstanding_work_t::tracked_t>, execution::prefer_only<execution::outstanding_work_t::untracked_t>, execution::prefer_only<execution::relationship_t::fork_t>, execution::prefer_only<execution::relationship_t::continuation_t> > base_type; typedef void supportable_properties_type( execution::context_as_t<execution_context&>, execution::blocking_t::never_t, execution::prefer_only<execution::blocking_t::possibly_t>, execution::prefer_only<execution::outstanding_work_t::tracked_t>, execution::prefer_only<execution::outstanding_work_t::untracked_t>, execution::prefer_only<execution::relationship_t::fork_t>, execution::prefer_only<execution::relationship_t::continuation_t> ); inline any_io_executor() noexcept; inline any_io_executor(nullptr_t) noexcept; inline any_io_executor(const any_io_executor& e) noexcept; inline any_io_executor(any_io_executor&& e) noexcept; template <typename OtherAnyExecutor> any_io_executor(OtherAnyExecutor e, typename constraint< conditional< !is_same<OtherAnyExecutor, any_io_executor>::value && is_base_of<execution::detail::any_executor_base, OtherAnyExecutor>::value, typename execution::detail::supportable_properties< 0, supportable_properties_type>::template is_valid_target<OtherAnyExecutor>, false_type >::type::value >::type = 0) : base_type(static_cast<OtherAnyExecutor&&>(e)) { } # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 3 4 template <typename OtherAnyExecutor> any_io_executor(std::nothrow_t, OtherAnyExecutor e, typename constraint< conditional< !is_same<OtherAnyExecutor, any_io_executor>::value && is_base_of<execution::detail::any_executor_base, OtherAnyExecutor>::value, typename execution::detail::supportable_properties< 0, supportable_properties_type>::template is_valid_target<OtherAnyExecutor>, false_type >::type::value >::type = 0) noexcept : base_type(std::nothrow, static_cast<OtherAnyExecutor&&>(e)) { } inline any_io_executor(std::nothrow_t, const any_io_executor& e) noexcept; inline any_io_executor(std::nothrow_t, any_io_executor&& e) noexcept; template < ::boost::asio::execution::executor Executor> any_io_executor(Executor e, typename constraint< conditional< !is_same<Executor, any_io_executor>::value && !is_base_of<execution::detail::any_executor_base, Executor>::value, execution::detail::is_valid_target_executor< Executor, supportable_properties_type>, false_type >::type::value >::type = 0) : base_type(static_cast<Executor&&>(e)) { } template < ::boost::asio::execution::executor Executor> any_io_executor(std::nothrow_t, Executor e, typename constraint< conditional< !is_same<Executor, any_io_executor>::value && !is_base_of<execution::detail::any_executor_base, Executor>::value, execution::detail::is_valid_target_executor< Executor, supportable_properties_type>, false_type >::type::value >::type = 0) noexcept : base_type(std::nothrow, static_cast<Executor&&>(e)) { } inline any_io_executor& operator=( const any_io_executor& e) noexcept; inline any_io_executor& operator=( any_io_executor&& e) noexcept; inline any_io_executor& operator=(nullptr_t); inline ~any_io_executor(); inline void swap(any_io_executor& other) noexcept; # 233 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 3 4 template <typename Property> any_io_executor require(const Property& p, typename constraint< traits::require_member<const base_type&, const Property&>::is_valid >::type = 0) const { return static_cast<const base_type&>(*this).require(p); } # 251 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 3 4 template <typename Property> any_io_executor prefer(const Property& p, typename constraint< traits::prefer_member<const base_type&, const Property&>::is_valid >::type = 0) const { return static_cast<const base_type&>(*this).prefer(p); } }; template <> inline any_io_executor any_io_executor::require( const execution::blocking_t::never_t&, int) const; template <> inline any_io_executor any_io_executor::prefer( const execution::blocking_t::possibly_t&, int) const; template <> inline any_io_executor any_io_executor::prefer( const execution::outstanding_work_t::tracked_t&, int) const; template <> inline any_io_executor any_io_executor::prefer( const execution::outstanding_work_t::untracked_t&, int) const; template <> inline any_io_executor any_io_executor::prefer( const execution::relationship_t::fork_t&, int) const; template <> inline any_io_executor any_io_executor::prefer( const execution::relationship_t::continuation_t&, int) const; namespace traits { # 344 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 354 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_io_executor.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_io_executor.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_io_executor.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_io_executor.ipp" 2 3 4 namespace boost { namespace asio { any_io_executor::any_io_executor() noexcept : base_type() { } any_io_executor::any_io_executor(nullptr_t) noexcept : base_type(nullptr_t()) { } any_io_executor::any_io_executor(const any_io_executor& e) noexcept : base_type(static_cast<const base_type&>(e)) { } any_io_executor::any_io_executor(std::nothrow_t, const any_io_executor& e) noexcept : base_type(static_cast<const base_type&>(e)) { } any_io_executor::any_io_executor(any_io_executor&& e) noexcept : base_type(static_cast<base_type&&>(e)) { } any_io_executor::any_io_executor(std::nothrow_t, any_io_executor&& e) noexcept : base_type(static_cast<base_type&&>(e)) { } any_io_executor& any_io_executor::operator=( const any_io_executor& e) noexcept { base_type::operator=(static_cast<const base_type&>(e)); return *this; } any_io_executor& any_io_executor::operator=( any_io_executor&& e) noexcept { base_type::operator=(static_cast<base_type&&>(e)); return *this; } any_io_executor& any_io_executor::operator=(nullptr_t) { base_type::operator=(nullptr_t()); return *this; } any_io_executor::~any_io_executor() { } void any_io_executor::swap(any_io_executor& other) noexcept { static_cast<base_type&>(*this).swap(static_cast<base_type&>(other)); } template <> any_io_executor any_io_executor::require( const execution::blocking_t::never_t& p, int) const { return static_cast<const base_type&>(*this).require(p); } template <> any_io_executor any_io_executor::prefer( const execution::blocking_t::possibly_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_io_executor any_io_executor::prefer( const execution::outstanding_work_t::tracked_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_io_executor any_io_executor::prefer( const execution::outstanding_work_t::untracked_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_io_executor any_io_executor::prefer( const execution::relationship_t::fork_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_io_executor any_io_executor::prefer( const execution::relationship_t::continuation_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 140 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_io_executor.ipp" 2 3 4 # 358 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_io_executor.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_object_impl.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_object_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/concurrency_hint.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wrapped_handler.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wrapped_handler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bind_handler.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bind_handler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_cont_helpers.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_cont_helpers.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_continuation_hook.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_continuation_hook.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_continuation_hook.hpp" 2 3 4 namespace boost { namespace asio { # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_continuation_hook.hpp" 3 4 inline bool asio_handler_is_continuation(...) { return false; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/handler_continuation_hook.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_cont_helpers.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_cont_helpers.hpp" 2 3 4 namespace boost_asio_handler_cont_helpers { template <typename Context> inline bool is_continuation(Context& context) { using boost::asio::asio_handler_is_continuation; return asio_handler_is_continuation( boost::asio::detail::addressof(context)); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_cont_helpers.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bind_handler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bind_handler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler> class binder0 { public: template <typename T> binder0(int, T&& handler) : handler_(static_cast<T&&>(handler)) { } binder0(Handler& handler) : handler_(static_cast<Handler&&>(handler)) { } binder0(const binder0& other) : handler_(other.handler_) { } binder0(binder0&& other) : handler_(static_cast<Handler&&>(other.handler_)) { } void operator()() { static_cast<Handler&&>(handler_)(); } void operator()() const { handler_(); } Handler handler_; }; template <typename Handler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, binder0<Handler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, binder0<Handler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler> inline bool asio_handler_is_continuation( binder0<Handler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, binder0<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, binder0<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Handler> inline binder0<typename decay<Handler>::type> bind_handler( Handler&& handler) { return binder0<typename decay<Handler>::type>( 0, static_cast<Handler&&>(handler)); } template <typename Handler, typename Arg1> class binder1 { public: template <typename T> binder1(int, T&& handler, const Arg1& arg1) : handler_(static_cast<T&&>(handler)), arg1_(arg1) { } binder1(Handler& handler, const Arg1& arg1) : handler_(static_cast<Handler&&>(handler)), arg1_(arg1) { } binder1(const binder1& other) : handler_(other.handler_), arg1_(other.arg1_) { } binder1(binder1&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<const Arg1&>(arg1_)); } void operator()() const { handler_(arg1_); } Handler handler_; Arg1 arg1_; }; template <typename Handler, typename Arg1> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, binder1<Handler, Arg1>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, binder1<Handler, Arg1>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1> inline bool asio_handler_is_continuation( binder1<Handler, Arg1>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, binder1<Handler, Arg1>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler, typename Arg1> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, binder1<Handler, Arg1>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Handler, typename Arg1> inline binder1<typename decay<Handler>::type, Arg1> bind_handler( Handler&& handler, const Arg1& arg1) { return binder1<typename decay<Handler>::type, Arg1>(0, static_cast<Handler&&>(handler), arg1); } template <typename Handler, typename Arg1, typename Arg2> class binder2 { public: template <typename T> binder2(int, T&& handler, const Arg1& arg1, const Arg2& arg2) : handler_(static_cast<T&&>(handler)), arg1_(arg1), arg2_(arg2) { } binder2(Handler& handler, const Arg1& arg1, const Arg2& arg2) : handler_(static_cast<Handler&&>(handler)), arg1_(arg1), arg2_(arg2) { } binder2(const binder2& other) : handler_(other.handler_), arg1_(other.arg1_), arg2_(other.arg2_) { } binder2(binder2&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)), arg2_(static_cast<Arg2&&>(other.arg2_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<const Arg1&>(arg1_), static_cast<const Arg2&>(arg2_)); } void operator()() const { handler_(arg1_, arg2_); } Handler handler_; Arg1 arg1_; Arg2 arg2_; }; template <typename Handler, typename Arg1, typename Arg2> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, binder2<Handler, Arg1, Arg2>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, binder2<Handler, Arg1, Arg2>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2> inline bool asio_handler_is_continuation( binder2<Handler, Arg1, Arg2>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, binder2<Handler, Arg1, Arg2>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, binder2<Handler, Arg1, Arg2>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2> inline binder2<typename decay<Handler>::type, Arg1, Arg2> bind_handler( Handler&& handler, const Arg1& arg1, const Arg2& arg2) { return binder2<typename decay<Handler>::type, Arg1, Arg2>(0, static_cast<Handler&&>(handler), arg1, arg2); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3> class binder3 { public: template <typename T> binder3(int, T&& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3) : handler_(static_cast<T&&>(handler)), arg1_(arg1), arg2_(arg2), arg3_(arg3) { } binder3(Handler& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3) : handler_(static_cast<Handler&&>(handler)), arg1_(arg1), arg2_(arg2), arg3_(arg3) { } binder3(const binder3& other) : handler_(other.handler_), arg1_(other.arg1_), arg2_(other.arg2_), arg3_(other.arg3_) { } binder3(binder3&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)), arg2_(static_cast<Arg2&&>(other.arg2_)), arg3_(static_cast<Arg3&&>(other.arg3_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<const Arg1&>(arg1_), static_cast<const Arg2&>(arg2_), static_cast<const Arg3&>(arg3_)); } void operator()() const { handler_(arg1_, arg2_, arg3_); } Handler handler_; Arg1 arg1_; Arg2 arg2_; Arg3 arg3_; }; template <typename Handler, typename Arg1, typename Arg2, typename Arg3> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, binder3<Handler, Arg1, Arg2, Arg3>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, binder3<Handler, Arg1, Arg2, Arg3>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3> inline bool asio_handler_is_continuation( binder3<Handler, Arg1, Arg2, Arg3>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2, typename Arg3> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, binder3<Handler, Arg1, Arg2, Arg3>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2, typename Arg3> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, binder3<Handler, Arg1, Arg2, Arg3>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3> inline binder3<typename decay<Handler>::type, Arg1, Arg2, Arg3> bind_handler( Handler&& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3) { return binder3<typename decay<Handler>::type, Arg1, Arg2, Arg3>(0, static_cast<Handler&&>(handler), arg1, arg2, arg3); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> class binder4 { public: template <typename T> binder4(int, T&& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4) : handler_(static_cast<T&&>(handler)), arg1_(arg1), arg2_(arg2), arg3_(arg3), arg4_(arg4) { } binder4(Handler& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4) : handler_(static_cast<Handler&&>(handler)), arg1_(arg1), arg2_(arg2), arg3_(arg3), arg4_(arg4) { } binder4(const binder4& other) : handler_(other.handler_), arg1_(other.arg1_), arg2_(other.arg2_), arg3_(other.arg3_), arg4_(other.arg4_) { } binder4(binder4&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)), arg2_(static_cast<Arg2&&>(other.arg2_)), arg3_(static_cast<Arg3&&>(other.arg3_)), arg4_(static_cast<Arg4&&>(other.arg4_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<const Arg1&>(arg1_), static_cast<const Arg2&>(arg2_), static_cast<const Arg3&>(arg3_), static_cast<const Arg4&>(arg4_)); } void operator()() const { handler_(arg1_, arg2_, arg3_, arg4_); } Handler handler_; Arg1 arg1_; Arg2 arg2_; Arg3 arg3_; Arg4 arg4_; }; template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, binder4<Handler, Arg1, Arg2, Arg3, Arg4>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, binder4<Handler, Arg1, Arg2, Arg3, Arg4>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> inline bool asio_handler_is_continuation( binder4<Handler, Arg1, Arg2, Arg3, Arg4>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, binder4<Handler, Arg1, Arg2, Arg3, Arg4>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, binder4<Handler, Arg1, Arg2, Arg3, Arg4>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4> inline binder4<typename decay<Handler>::type, Arg1, Arg2, Arg3, Arg4> bind_handler(Handler&& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4) { return binder4<typename decay<Handler>::type, Arg1, Arg2, Arg3, Arg4>(0, static_cast<Handler&&>(handler), arg1, arg2, arg3, arg4); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> class binder5 { public: template <typename T> binder5(int, T&& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4, const Arg5& arg5) : handler_(static_cast<T&&>(handler)), arg1_(arg1), arg2_(arg2), arg3_(arg3), arg4_(arg4), arg5_(arg5) { } binder5(Handler& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4, const Arg5& arg5) : handler_(static_cast<Handler&&>(handler)), arg1_(arg1), arg2_(arg2), arg3_(arg3), arg4_(arg4), arg5_(arg5) { } binder5(const binder5& other) : handler_(other.handler_), arg1_(other.arg1_), arg2_(other.arg2_), arg3_(other.arg3_), arg4_(other.arg4_), arg5_(other.arg5_) { } binder5(binder5&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)), arg2_(static_cast<Arg2&&>(other.arg2_)), arg3_(static_cast<Arg3&&>(other.arg3_)), arg4_(static_cast<Arg4&&>(other.arg4_)), arg5_(static_cast<Arg5&&>(other.arg5_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<const Arg1&>(arg1_), static_cast<const Arg2&>(arg2_), static_cast<const Arg3&>(arg3_), static_cast<const Arg4&>(arg4_), static_cast<const Arg5&>(arg5_)); } void operator()() const { handler_(arg1_, arg2_, arg3_, arg4_, arg5_); } Handler handler_; Arg1 arg1_; Arg2 arg2_; Arg3 arg3_; Arg4 arg4_; Arg5 arg5_; }; template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> inline bool asio_handler_is_continuation( binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> inline binder5<typename decay<Handler>::type, Arg1, Arg2, Arg3, Arg4, Arg5> bind_handler(Handler&& handler, const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4, const Arg5& arg5) { return binder5<typename decay<Handler>::type, Arg1, Arg2, Arg3, Arg4, Arg5>(0, static_cast<Handler&&>(handler), arg1, arg2, arg3, arg4, arg5); } template <typename Handler, typename Arg1> class move_binder1 { public: move_binder1(int, Handler&& handler, Arg1&& arg1) : handler_(static_cast<Handler&&>(handler)), arg1_(static_cast<Arg1&&>(arg1)) { } move_binder1(move_binder1&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<Arg1&&>(arg1_)); } Handler handler_; Arg1 arg1_; }; template <typename Handler, typename Arg1> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, move_binder1<Handler, Arg1>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, move_binder1<Handler, Arg1>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1> inline bool asio_handler_is_continuation( move_binder1<Handler, Arg1>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function&& function, move_binder1<Handler, Arg1>* this_handler) { boost_asio_handler_invoke_helpers::invoke( static_cast<Function&&>(function), this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2> class move_binder2 { public: move_binder2(int, Handler&& handler, const Arg1& arg1, Arg2&& arg2) : handler_(static_cast<Handler&&>(handler)), arg1_(arg1), arg2_(static_cast<Arg2&&>(arg2)) { } move_binder2(move_binder2&& other) : handler_(static_cast<Handler&&>(other.handler_)), arg1_(static_cast<Arg1&&>(other.arg1_)), arg2_(static_cast<Arg2&&>(other.arg2_)) { } void operator()() { static_cast<Handler&&>(handler_)( static_cast<const Arg1&>(arg1_), static_cast<Arg2&&>(arg2_)); } Handler handler_; Arg1 arg1_; Arg2 arg2_; }; template <typename Handler, typename Arg1, typename Arg2> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, move_binder2<Handler, Arg1, Arg2>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, move_binder2<Handler, Arg1, Arg2>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler, typename Arg1, typename Arg2> inline bool asio_handler_is_continuation( move_binder2<Handler, Arg1, Arg2>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler, typename Arg1, typename Arg2> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function&& function, move_binder2<Handler, Arg1, Arg2>* this_handler) { boost_asio_handler_invoke_helpers::invoke( static_cast<Function&&>(function), this_handler->handler_); } } template <template <typename, typename> class Associator, typename Handler, typename DefaultCandidate> struct associator<Associator, detail::binder0<Handler>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::binder0<Handler>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::binder0<Handler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename DefaultCandidate> struct associator<Associator, detail::binder1<Handler, Arg1>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::binder1<Handler, Arg1>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::binder1<Handler, Arg1>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename Arg2, typename DefaultCandidate> struct associator<Associator, detail::binder2<Handler, Arg1, Arg2>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::binder2<Handler, Arg1, Arg2>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::binder2<Handler, Arg1, Arg2>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename DefaultCandidate> struct associator<Associator, detail::binder3<Handler, Arg1, Arg2, Arg3>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::binder3<Handler, Arg1, Arg2, Arg3>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::binder3<Handler, Arg1, Arg2, Arg3>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename DefaultCandidate> struct associator<Associator, detail::binder4<Handler, Arg1, Arg2, Arg3, Arg4>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::binder4<Handler, Arg1, Arg2, Arg3, Arg4>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::binder4<Handler, Arg1, Arg2, Arg3, Arg4>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5, typename DefaultCandidate> struct associator<Associator, detail::binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::binder5<Handler, Arg1, Arg2, Arg3, Arg4, Arg5>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename DefaultCandidate> struct associator<Associator, detail::move_binder1<Handler, Arg1>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::move_binder1<Handler, Arg1>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::move_binder1<Handler, Arg1>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; template <template <typename, typename> class Associator, typename Handler, typename Arg1, typename Arg2, typename DefaultCandidate> struct associator<Associator, detail::move_binder2<Handler, Arg1, Arg2>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::move_binder2<Handler, Arg1, Arg2>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::move_binder2<Handler, Arg1, Arg2>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1146 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bind_handler.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wrapped_handler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wrapped_handler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct is_continuation_delegated { template <typename Dispatcher, typename Handler> bool operator()(Dispatcher&, Handler& handler) const { return boost_asio_handler_cont_helpers::is_continuation(handler); } }; struct is_continuation_if_running { template <typename Dispatcher, typename Handler> bool operator()(Dispatcher& dispatcher, Handler&) const { return dispatcher.running_in_this_thread(); } }; template <typename Dispatcher, typename Handler, typename IsContinuation = is_continuation_delegated> class wrapped_handler { public: typedef void result_type; wrapped_handler(Dispatcher dispatcher, Handler& handler) : dispatcher_(dispatcher), handler_(static_cast<Handler&&>(handler)) { } wrapped_handler(const wrapped_handler& other) : dispatcher_(other.dispatcher_), handler_(other.handler_) { } wrapped_handler(wrapped_handler&& other) : dispatcher_(other.dispatcher_), handler_(static_cast<Handler&&>(other.handler_)) { } void operator()() { dispatcher_.dispatch(static_cast<Handler&&>(handler_)); } void operator()() const { dispatcher_.dispatch(handler_); } template <typename Arg1> void operator()(const Arg1& arg1) { dispatcher_.dispatch(detail::bind_handler(handler_, arg1)); } template <typename Arg1> void operator()(const Arg1& arg1) const { dispatcher_.dispatch(detail::bind_handler(handler_, arg1)); } template <typename Arg1, typename Arg2> void operator()(const Arg1& arg1, const Arg2& arg2) { dispatcher_.dispatch(detail::bind_handler(handler_, arg1, arg2)); } template <typename Arg1, typename Arg2> void operator()(const Arg1& arg1, const Arg2& arg2) const { dispatcher_.dispatch(detail::bind_handler(handler_, arg1, arg2)); } template <typename Arg1, typename Arg2, typename Arg3> void operator()(const Arg1& arg1, const Arg2& arg2, const Arg3& arg3) { dispatcher_.dispatch(detail::bind_handler(handler_, arg1, arg2, arg3)); } template <typename Arg1, typename Arg2, typename Arg3> void operator()(const Arg1& arg1, const Arg2& arg2, const Arg3& arg3) const { dispatcher_.dispatch(detail::bind_handler(handler_, arg1, arg2, arg3)); } template <typename Arg1, typename Arg2, typename Arg3, typename Arg4> void operator()(const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4) { dispatcher_.dispatch( detail::bind_handler(handler_, arg1, arg2, arg3, arg4)); } template <typename Arg1, typename Arg2, typename Arg3, typename Arg4> void operator()(const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4) const { dispatcher_.dispatch( detail::bind_handler(handler_, arg1, arg2, arg3, arg4)); } template <typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> void operator()(const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4, const Arg5& arg5) { dispatcher_.dispatch( detail::bind_handler(handler_, arg1, arg2, arg3, arg4, arg5)); } template <typename Arg1, typename Arg2, typename Arg3, typename Arg4, typename Arg5> void operator()(const Arg1& arg1, const Arg2& arg2, const Arg3& arg3, const Arg4& arg4, const Arg5& arg5) const { dispatcher_.dispatch( detail::bind_handler(handler_, arg1, arg2, arg3, arg4, arg5)); } Dispatcher dispatcher_; Handler handler_; }; template <typename Handler, typename Context> class rewrapped_handler { public: explicit rewrapped_handler(Handler& handler, const Context& context) : context_(context), handler_(static_cast<Handler&&>(handler)) { } explicit rewrapped_handler(const Handler& handler, const Context& context) : context_(context), handler_(handler) { } rewrapped_handler(const rewrapped_handler& other) : context_(other.context_), handler_(other.handler_) { } rewrapped_handler(rewrapped_handler&& other) : context_(static_cast<Context&&>(other.context_)), handler_(static_cast<Handler&&>(other.handler_)) { } void operator()() { handler_(); } void operator()() const { handler_(); } Context context_; Handler handler_; }; template <typename Dispatcher, typename Handler, typename IsContinuation> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, wrapped_handler<Dispatcher, Handler, IsContinuation>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Dispatcher, typename Handler, typename IsContinuation> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, wrapped_handler<Dispatcher, Handler, IsContinuation>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Dispatcher, typename Handler, typename IsContinuation> inline bool asio_handler_is_continuation( wrapped_handler<Dispatcher, Handler, IsContinuation>* this_handler) { return IsContinuation()(this_handler->dispatcher_, this_handler->handler_); } template <typename Function, typename Dispatcher, typename Handler, typename IsContinuation> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, wrapped_handler<Dispatcher, Handler, IsContinuation>* this_handler) { this_handler->dispatcher_.dispatch( rewrapped_handler<Function, Handler>( function, this_handler->handler_)); } template <typename Function, typename Dispatcher, typename Handler, typename IsContinuation> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, wrapped_handler<Dispatcher, Handler, IsContinuation>* this_handler) { this_handler->dispatcher_.dispatch( rewrapped_handler<Function, Handler>( function, this_handler->handler_)); } template <typename Handler, typename Context> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, rewrapped_handler<Handler, Context>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler, typename Context> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, rewrapped_handler<Handler, Context>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->context_); } template <typename Dispatcher, typename Context> inline bool asio_handler_is_continuation( rewrapped_handler<Dispatcher, Context>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->context_); } template <typename Function, typename Handler, typename Context> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, rewrapped_handler<Handler, Context>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->context_); } template <typename Function, typename Handler, typename Context> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, rewrapped_handler<Handler, Context>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->context_); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 328 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wrapped_handler.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono.hpp" 3 4 # 1 "/usr/include/c++/13/chrono" 1 3 4 # 33 "/usr/include/c++/13/chrono" 3 4 # 34 "/usr/include/c++/13/chrono" 3 # 45 "/usr/include/c++/13/chrono" 3 # 1 "/usr/include/c++/13/sstream" 1 3 # 36 "/usr/include/c++/13/sstream" 3 # 37 "/usr/include/c++/13/sstream" 3 # 1 "/usr/include/c++/13/istream" 1 3 # 36 "/usr/include/c++/13/istream" 3 # 37 "/usr/include/c++/13/istream" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/13/istream" 3 template<typename _CharT, typename _Traits> class basic_istream : virtual public basic_ios<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef basic_ios<_CharT, _Traits> __ios_type; typedef basic_istream<_CharT, _Traits> __istream_type; typedef num_get<_CharT, istreambuf_iterator<_CharT, _Traits> > __num_get_type; typedef ctype<_CharT> __ctype_type; protected: streamsize _M_gcount; public: explicit basic_istream(__streambuf_type* __sb) : _M_gcount(streamsize(0)) { this->init(__sb); } virtual ~basic_istream() { _M_gcount = streamsize(0); } class sentry; friend class sentry; # 121 "/usr/include/c++/13/istream" 3 __istream_type& operator>>(__istream_type& (*__pf)(__istream_type&)) { return __pf(*this); } __istream_type& operator>>(__ios_type& (*__pf)(__ios_type&)) { __pf(*this); return *this; } __istream_type& operator>>(ios_base& (*__pf)(ios_base&)) { __pf(*this); return *this; } # 169 "/usr/include/c++/13/istream" 3 __istream_type& operator>>(bool& __n) { return _M_extract(__n); } __istream_type& operator>>(short& __n); __istream_type& operator>>(unsigned short& __n) { return _M_extract(__n); } __istream_type& operator>>(int& __n); __istream_type& operator>>(unsigned int& __n) { return _M_extract(__n); } __istream_type& operator>>(long& __n) { return _M_extract(__n); } __istream_type& operator>>(unsigned long& __n) { return _M_extract(__n); } __istream_type& operator>>(long long& __n) { return _M_extract(__n); } __istream_type& operator>>(unsigned long long& __n) { return _M_extract(__n); } # 215 "/usr/include/c++/13/istream" 3 __istream_type& operator>>(float& __f) { return _M_extract(__f); } __istream_type& operator>>(double& __f) { return _M_extract(__f); } __istream_type& operator>>(long double& __f) { return _M_extract(__f); } # 324 "/usr/include/c++/13/istream" 3 __istream_type& operator>>(void*& __p) { return _M_extract(__p); } # 348 "/usr/include/c++/13/istream" 3 __istream_type& operator>>(__streambuf_type* __sb); # 358 "/usr/include/c++/13/istream" 3 streamsize gcount() const { return _M_gcount; } # 391 "/usr/include/c++/13/istream" 3 int_type get(); # 405 "/usr/include/c++/13/istream" 3 __istream_type& get(char_type& __c); # 432 "/usr/include/c++/13/istream" 3 __istream_type& get(char_type* __s, streamsize __n, char_type __delim); # 443 "/usr/include/c++/13/istream" 3 __istream_type& get(char_type* __s, streamsize __n) { return this->get(__s, __n, this->widen('\n')); } # 466 "/usr/include/c++/13/istream" 3 __istream_type& get(__streambuf_type& __sb, char_type __delim); # 476 "/usr/include/c++/13/istream" 3 __istream_type& get(__streambuf_type& __sb) { return this->get(__sb, this->widen('\n')); } # 505 "/usr/include/c++/13/istream" 3 __istream_type& getline(char_type* __s, streamsize __n, char_type __delim); # 516 "/usr/include/c++/13/istream" 3 __istream_type& getline(char_type* __s, streamsize __n) { return this->getline(__s, __n, this->widen('\n')); } # 540 "/usr/include/c++/13/istream" 3 __istream_type& ignore(streamsize __n, int_type __delim); __istream_type& ignore(streamsize __n); __istream_type& ignore(); # 557 "/usr/include/c++/13/istream" 3 int_type peek(); # 575 "/usr/include/c++/13/istream" 3 __istream_type& read(char_type* __s, streamsize __n); # 594 "/usr/include/c++/13/istream" 3 streamsize readsome(char_type* __s, streamsize __n); # 611 "/usr/include/c++/13/istream" 3 __istream_type& putback(char_type __c); # 627 "/usr/include/c++/13/istream" 3 __istream_type& unget(); # 645 "/usr/include/c++/13/istream" 3 int sync(); # 660 "/usr/include/c++/13/istream" 3 pos_type tellg(); # 675 "/usr/include/c++/13/istream" 3 __istream_type& seekg(pos_type); # 691 "/usr/include/c++/13/istream" 3 __istream_type& seekg(off_type, ios_base::seekdir); protected: basic_istream() : _M_gcount(streamsize(0)) { this->init(0); } basic_istream(const basic_istream&) = delete; basic_istream(basic_istream&& __rhs) : __ios_type(), _M_gcount(__rhs._M_gcount) { __ios_type::move(__rhs); __rhs._M_gcount = 0; } basic_istream& operator=(const basic_istream&) = delete; basic_istream& operator=(basic_istream&& __rhs) { swap(__rhs); return *this; } void swap(basic_istream& __rhs) { __ios_type::swap(__rhs); std::swap(_M_gcount, __rhs._M_gcount); } template<typename _ValueT> __istream_type& _M_extract(_ValueT& __v); }; template<> basic_istream<char>& basic_istream<char>:: getline(char_type* __s, streamsize __n, char_type __delim); template<> basic_istream<char>& basic_istream<char>:: ignore(streamsize __n); template<> basic_istream<char>& basic_istream<char>:: ignore(streamsize __n, int_type __delim); template<> basic_istream<wchar_t>& basic_istream<wchar_t>:: getline(char_type* __s, streamsize __n, char_type __delim); template<> basic_istream<wchar_t>& basic_istream<wchar_t>:: ignore(streamsize __n); template<> basic_istream<wchar_t>& basic_istream<wchar_t>:: ignore(streamsize __n, int_type __delim); # 775 "/usr/include/c++/13/istream" 3 template<typename _CharT, typename _Traits> class basic_istream<_CharT, _Traits>::sentry { bool _M_ok; public: typedef _Traits traits_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef basic_istream<_CharT, _Traits> __istream_type; typedef typename __istream_type::__ctype_type __ctype_type; typedef typename _Traits::int_type __int_type; # 811 "/usr/include/c++/13/istream" 3 explicit sentry(basic_istream<_CharT, _Traits>& __is, bool __noskipws = false); # 822 "/usr/include/c++/13/istream" 3 explicit operator bool() const { return _M_ok; } }; # 840 "/usr/include/c++/13/istream" 3 template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c); template<class _Traits> inline basic_istream<char, _Traits>& operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) { return (__in >> reinterpret_cast<char&>(__c)); } template<class _Traits> inline basic_istream<char, _Traits>& operator>>(basic_istream<char, _Traits>& __in, signed char& __c) { return (__in >> reinterpret_cast<char&>(__c)); } template<typename _CharT, typename _Traits> void __istream_extract(basic_istream<_CharT, _Traits>&, _CharT*, streamsize); void __istream_extract(istream&, char*, streamsize); # 947 "/usr/include/c++/13/istream" 3 template<typename _CharT, typename _Traits, size_t _Num> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT (&__s)[_Num]) { static_assert(_Num <= __gnu_cxx::__numeric_traits<streamsize>::__max); std::__istream_extract(__in, __s, _Num); return __in; } template<class _Traits, size_t _Num> inline basic_istream<char, _Traits>& operator>>(basic_istream<char, _Traits>& __in, unsigned char (&__s)[_Num]) { return __in >> reinterpret_cast<char(&)[_Num]>(__s); } template<class _Traits, size_t _Num> inline basic_istream<char, _Traits>& operator>>(basic_istream<char, _Traits>& __in, signed char (&__s)[_Num]) { return __in >> reinterpret_cast<char(&)[_Num]>(__s); } # 979 "/usr/include/c++/13/istream" 3 template<typename _CharT, typename _Traits> class basic_iostream : public basic_istream<_CharT, _Traits>, public basic_ostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef typename _Traits::int_type int_type; typedef typename _Traits::pos_type pos_type; typedef typename _Traits::off_type off_type; typedef _Traits traits_type; typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_ostream<_CharT, _Traits> __ostream_type; explicit basic_iostream(basic_streambuf<_CharT, _Traits>* __sb) : __istream_type(__sb), __ostream_type(__sb) { } virtual ~basic_iostream() { } protected: basic_iostream() : __istream_type(), __ostream_type() { } basic_iostream(const basic_iostream&) = delete; basic_iostream(basic_iostream&& __rhs) : __istream_type(std::move(__rhs)), __ostream_type(*this) { } basic_iostream& operator=(const basic_iostream&) = delete; basic_iostream& operator=(basic_iostream&& __rhs) { swap(__rhs); return *this; } void swap(basic_iostream& __rhs) { __istream_type::swap(__rhs); } }; # 1062 "/usr/include/c++/13/istream" 3 template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& ws(basic_istream<_CharT, _Traits>& __is); # 1073 "/usr/include/c++/13/istream" 3 template<typename _Is, typename _Tp> requires __derived_from_ios_base<_Is> && requires (_Is& __is, _Tp&& __t) { __is >> std::forward<_Tp>(__t); } using __rvalue_stream_extraction_t = _Is&&; # 1094 "/usr/include/c++/13/istream" 3 template<typename _Istream, typename _Tp> inline __rvalue_stream_extraction_t<_Istream, _Tp> operator>>(_Istream&& __is, _Tp&& __x) { __is >> std::forward<_Tp>(__x); return std::move(__is); } } # 1 "/usr/include/c++/13/bits/istream.tcc" 1 3 # 37 "/usr/include/c++/13/bits/istream.tcc" 3 # 38 "/usr/include/c++/13/bits/istream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>::sentry:: sentry(basic_istream<_CharT, _Traits>& __in, bool __noskip) : _M_ok(false) { ios_base::iostate __err = ios_base::goodbit; if (__in.good()) { try { if (__in.tie()) __in.tie()->flush(); if (!__noskip && bool(__in.flags() & ios_base::skipws)) { const __int_type __eof = traits_type::eof(); __streambuf_type* __sb = __in.rdbuf(); __int_type __c = __sb->sgetc(); const __ctype_type& __ct = __check_facet(__in._M_ctype); while (!traits_type::eq_int_type(__c, __eof) && __ct.is(ctype_base::space, traits_type::to_char_type(__c))) __c = __sb->snextc(); if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(ios_base::badbit); throw; } catch(...) { __in._M_setstate(ios_base::badbit); } } if (__in.good() && __err == ios_base::goodbit) _M_ok = true; else { __err |= ios_base::failbit; __in.setstate(__err); } } template<typename _CharT, typename _Traits> template<typename _ValueT> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: _M_extract(_ValueT& __v) { sentry __cerb(*this, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __num_get_type& __ng = __check_facet(this->_M_num_get); __ng.get(*this, 0, *this, __err, __v); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: operator>>(short& __n) { sentry __cerb(*this, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { long __l; const __num_get_type& __ng = __check_facet(this->_M_num_get); __ng.get(*this, 0, *this, __err, __l); if (__l < __gnu_cxx::__numeric_traits<short>::__min) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits<short>::__min; } else if (__l > __gnu_cxx::__numeric_traits<short>::__max) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits<short>::__max; } else __n = short(__l); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: operator>>(int& __n) { sentry __cerb(*this, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { long __l; const __num_get_type& __ng = __check_facet(this->_M_num_get); __ng.get(*this, 0, *this, __err, __l); if (__l < __gnu_cxx::__numeric_traits<int>::__min) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits<int>::__min; } else if (__l > __gnu_cxx::__numeric_traits<int>::__max) { __err |= ios_base::failbit; __n = __gnu_cxx::__numeric_traits<int>::__max; } else __n = int(__l); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: operator>>(__streambuf_type* __sbout) { ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, false); if (__cerb && __sbout) { try { bool __ineof; if (!__copy_streambufs_eof(this->rdbuf(), __sbout, __ineof)) __err |= ios_base::failbit; if (__ineof) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::failbit); throw; } catch(...) { this->_M_setstate(ios_base::failbit); } } else if (!__sbout) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template<typename _CharT, typename _Traits> typename basic_istream<_CharT, _Traits>::int_type basic_istream<_CharT, _Traits>:: get(void) { const int_type __eof = traits_type::eof(); int_type __c = __eof; _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { __c = this->rdbuf()->sbumpc(); if (!traits_type::eq_int_type(__c, __eof)) _M_gcount = 1; else __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return __c; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: get(char_type& __c) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __cb = this->rdbuf()->sbumpc(); if (!traits_type::eq_int_type(__cb, traits_type::eof())) { _M_gcount = 1; __c = traits_type::to_char_type(__cb); } else __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: get(char_type* __s, streamsize __n, char_type __delim) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __idelim = traits_type::to_int_type(__delim); const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); while (_M_gcount + 1 < __n && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __idelim)) { *__s++ = traits_type::to_char_type(__c); ++_M_gcount; __c = __sb->snextc(); } if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (__n > 0) *__s = char_type(); if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: get(__streambuf_type& __sb, char_type __delim) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __idelim = traits_type::to_int_type(__delim); const int_type __eof = traits_type::eof(); __streambuf_type* __this_sb = this->rdbuf(); int_type __c = __this_sb->sgetc(); char_type __c2 = traits_type::to_char_type(__c); unsigned long long __gcount = 0; while (!traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __idelim) && !traits_type::eq_int_type(__sb.sputc(__c2), __eof)) { ++__gcount; __c = __this_sb->snextc(); __c2 = traits_type::to_char_type(__c); } if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; if (__gcount <= __gnu_cxx::__numeric_traits<streamsize>::__max) _M_gcount = __gcount; else _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: getline(char_type* __s, streamsize __n, char_type __delim) { _M_gcount = 0; ios_base::iostate __err = ios_base::goodbit; sentry __cerb(*this, true); if (__cerb) { try { const int_type __idelim = traits_type::to_int_type(__delim); const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); while (_M_gcount + 1 < __n && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __idelim)) { *__s++ = traits_type::to_char_type(__c); __c = __sb->snextc(); ++_M_gcount; } if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; else { if (traits_type::eq_int_type(__c, __idelim)) { __sb->sbumpc(); ++_M_gcount; } else __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } if (__n > 0) *__s = char_type(); if (!_M_gcount) __err |= ios_base::failbit; if (__err) this->setstate(__err); return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: ignore(void) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); if (traits_type::eq_int_type(__sb->sbumpc(), __eof)) __err |= ios_base::eofbit; else _M_gcount = 1; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: ignore(streamsize __n) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb && __n > 0) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); # 545 "/usr/include/c++/13/bits/istream.tcc" 3 bool __large_ignore = false; while (true) { while (_M_gcount < __n && !traits_type::eq_int_type(__c, __eof)) { ++_M_gcount; __c = __sb->snextc(); } if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max && !traits_type::eq_int_type(__c, __eof)) { _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__min; __large_ignore = true; } else break; } if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max) { if (__large_ignore) _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max; if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } else if (_M_gcount < __n) { if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: ignore(streamsize __n, int_type __delim) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb && __n > 0) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); int_type __c = __sb->sgetc(); bool __large_ignore = false; while (true) { while (_M_gcount < __n && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __delim)) { ++_M_gcount; __c = __sb->snextc(); } if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max && !traits_type::eq_int_type(__c, __eof) && !traits_type::eq_int_type(__c, __delim)) { _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__min; __large_ignore = true; } else break; } if (__n == __gnu_cxx::__numeric_traits<streamsize>::__max) { if (__large_ignore) _M_gcount = __gnu_cxx::__numeric_traits<streamsize>::__max; if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; else { if (_M_gcount != __n) ++_M_gcount; __sb->sbumpc(); } } else if (_M_gcount < __n) { if (traits_type::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; else { ++_M_gcount; __sb->sbumpc(); } } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> typename basic_istream<_CharT, _Traits>::int_type basic_istream<_CharT, _Traits>:: peek(void) { int_type __c = traits_type::eof(); _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { __c = this->rdbuf()->sgetc(); if (traits_type::eq_int_type(__c, traits_type::eof())) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return __c; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: read(char_type* __s, streamsize __n) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { _M_gcount = this->rdbuf()->sgetn(__s, __n); if (_M_gcount != __n) __err |= (ios_base::eofbit | ios_base::failbit); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> streamsize basic_istream<_CharT, _Traits>:: readsome(char_type* __s, streamsize __n) { _M_gcount = 0; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const streamsize __num = this->rdbuf()->in_avail(); if (__num > 0) _M_gcount = this->rdbuf()->sgetn(__s, std::min(__num, __n)); else if (__num == -1) __err |= ios_base::eofbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return _M_gcount; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: putback(char_type __c) { _M_gcount = 0; this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); if (!__sb || traits_type::eq_int_type(__sb->sputbackc(__c), __eof)) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: unget(void) { _M_gcount = 0; this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const int_type __eof = traits_type::eof(); __streambuf_type* __sb = this->rdbuf(); if (!__sb || traits_type::eq_int_type(__sb->sungetc(), __eof)) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> int basic_istream<_CharT, _Traits>:: sync(void) { int __ret = -1; sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { __streambuf_type* __sb = this->rdbuf(); if (__sb) { if (__sb->pubsync() == -1) __err |= ios_base::badbit; else __ret = 0; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return __ret; } template<typename _CharT, typename _Traits> typename basic_istream<_CharT, _Traits>::pos_type basic_istream<_CharT, _Traits>:: tellg(void) { pos_type __ret = pos_type(-1); sentry __cerb(*this, true); if (__cerb) { try { if (!this->fail()) __ret = this->rdbuf()->pubseekoff(0, ios_base::cur, ios_base::in); } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } } return __ret; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: seekg(pos_type __pos) { this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekpos(__pos, ios_base::in); if (__p == pos_type(off_type(-1))) __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& basic_istream<_CharT, _Traits>:: seekg(off_type __off, ios_base::seekdir __dir) { this->clear(this->rdstate() & ~ios_base::eofbit); sentry __cerb(*this, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { if (!this->fail()) { const pos_type __p = this->rdbuf()->pubseekoff(__off, __dir, ios_base::in); if (__p == pos_type(off_type(-1))) __err |= ios_base::failbit; } } catch(__cxxabiv1::__forced_unwind&) { this->_M_setstate(ios_base::badbit); throw; } catch(...) { this->_M_setstate(ios_base::badbit); } if (__err) this->setstate(__err); } return *this; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef typename __istream_type::int_type __int_type; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __int_type __cb = __in.rdbuf()->sbumpc(); if (!_Traits::eq_int_type(__cb, _Traits::eof())) __c = _Traits::to_char_type(__cb); else __err |= (ios_base::eofbit | ios_base::failbit); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(ios_base::badbit); throw; } catch(...) { __in._M_setstate(ios_base::badbit); } if (__err) __in.setstate(__err); } return __in; } template<typename _CharT, typename _Traits> void __istream_extract(basic_istream<_CharT, _Traits>& __in, _CharT* __s, streamsize __num) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef typename _Traits::int_type int_type; typedef _CharT char_type; typedef ctype<_CharT> __ctype_type; streamsize __extracted = 0; ios_base::iostate __err = ios_base::goodbit; typename __istream_type::sentry __cerb(__in, false); if (__cerb) { try { streamsize __width = __in.width(); if (0 < __width && __width < __num) __num = __width; const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const int_type __eof = _Traits::eof(); __streambuf_type* __sb = __in.rdbuf(); int_type __c = __sb->sgetc(); while (__extracted < __num - 1 && !_Traits::eq_int_type(__c, __eof) && !__ct.is(ctype_base::space, _Traits::to_char_type(__c))) { *__s++ = _Traits::to_char_type(__c); ++__extracted; __c = __sb->snextc(); } if (__extracted < __num - 1 && _Traits::eq_int_type(__c, __eof)) __err |= ios_base::eofbit; *__s = char_type(); __in.width(0); } catch(__cxxabiv1::__forced_unwind&) { __in._M_setstate(ios_base::badbit); throw; } catch(...) { __in._M_setstate(ios_base::badbit); } } if (!__extracted) __err |= ios_base::failbit; if (__err) __in.setstate(__err); } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& ws(basic_istream<_CharT, _Traits>& __in) { typedef basic_istream<_CharT, _Traits> __istream_type; typedef basic_streambuf<_CharT, _Traits> __streambuf_type; typedef typename __istream_type::int_type __int_type; typedef ctype<_CharT> __ctype_type; typename __istream_type::sentry __cerb(__in, true); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { const __ctype_type& __ct = use_facet<__ctype_type>(__in.getloc()); const __int_type __eof = _Traits::eof(); __streambuf_type* __sb = __in.rdbuf(); __int_type __c = __sb->sgetc(); while (true) { if (_Traits::eq_int_type(__c, __eof)) { __err = ios_base::eofbit; break; } if (!__ct.is(ctype_base::space, _Traits::to_char_type(__c))) break; __c = __sb->snextc(); } } catch(const __cxxabiv1::__forced_unwind&) { __in._M_setstate(ios_base::badbit); throw; } catch(...) { __in._M_setstate(ios_base::badbit); } if (__err) __in.setstate(__err); } return __in; } extern template class basic_istream<char>; extern template istream& ws(istream&); extern template istream& operator>>(istream&, char&); extern template istream& operator>>(istream&, unsigned char&); extern template istream& operator>>(istream&, signed char&); extern template istream& istream::_M_extract(unsigned short&); extern template istream& istream::_M_extract(unsigned int&); extern template istream& istream::_M_extract(long&); extern template istream& istream::_M_extract(unsigned long&); extern template istream& istream::_M_extract(bool&); extern template istream& istream::_M_extract(long long&); extern template istream& istream::_M_extract(unsigned long long&); extern template istream& istream::_M_extract(float&); extern template istream& istream::_M_extract(double&); extern template istream& istream::_M_extract(long double&); extern template istream& istream::_M_extract(void*&); extern template class basic_iostream<char>; extern template class basic_istream<wchar_t>; extern template wistream& ws(wistream&); extern template wistream& operator>>(wistream&, wchar_t&); extern template void __istream_extract(wistream&, wchar_t*, streamsize); extern template wistream& wistream::_M_extract(unsigned short&); extern template wistream& wistream::_M_extract(unsigned int&); extern template wistream& wistream::_M_extract(long&); extern template wistream& wistream::_M_extract(unsigned long&); extern template wistream& wistream::_M_extract(bool&); extern template wistream& wistream::_M_extract(long long&); extern template wistream& wistream::_M_extract(unsigned long long&); extern template wistream& wistream::_M_extract(float&); extern template wistream& wistream::_M_extract(double&); extern template wistream& wistream::_M_extract(long double&); extern template wistream& wistream::_M_extract(void*&); extern template class basic_iostream<wchar_t>; } # 1107 "/usr/include/c++/13/istream" 2 3 # 41 "/usr/include/c++/13/sstream" 2 3 # 55 "/usr/include/c++/13/sstream" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __cxx11 { # 78 "/usr/include/c++/13/sstream" 3 template<typename _CharT, typename _Traits, typename _Alloc> class basic_stringbuf : public basic_streambuf<_CharT, _Traits> { struct __xfer_bufptrs; using allocator_traits = std::allocator_traits<_Alloc>; using _Noexcept_swap = __or_<typename allocator_traits::propagate_on_container_swap, typename allocator_traits::is_always_equal>; public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_streambuf<char_type, traits_type> __streambuf_type; typedef basic_string<char_type, _Traits, _Alloc> __string_type; typedef typename __string_type::size_type __size_type; protected: ios_base::openmode _M_mode; __string_type _M_string; public: # 121 "/usr/include/c++/13/sstream" 3 basic_stringbuf() : __streambuf_type(), _M_mode(ios_base::in | ios_base::out), _M_string() { } # 132 "/usr/include/c++/13/sstream" 3 explicit basic_stringbuf(ios_base::openmode __mode) : __streambuf_type(), _M_mode(__mode), _M_string() { } # 145 "/usr/include/c++/13/sstream" 3 explicit basic_stringbuf(const __string_type& __str, ios_base::openmode __mode = ios_base::in | ios_base::out) : __streambuf_type(), _M_mode(), _M_string(__str.data(), __str.size(), __str.get_allocator()) { _M_stringbuf_init(__mode); } basic_stringbuf(const basic_stringbuf&) = delete; basic_stringbuf(basic_stringbuf&& __rhs) : basic_stringbuf(std::move(__rhs), __xfer_bufptrs(__rhs, this)) { __rhs._M_sync(const_cast<char_type*>(__rhs._M_string.data()), 0, 0); } explicit basic_stringbuf(const allocator_type& __a) : basic_stringbuf(ios_base::in | std::ios_base::out, __a) { } basic_stringbuf(ios_base::openmode __mode, const allocator_type& __a) : __streambuf_type(), _M_mode(__mode), _M_string(__a) { } explicit basic_stringbuf(__string_type&& __s, ios_base::openmode __mode = ios_base::in | ios_base::out) : __streambuf_type(), _M_mode(__mode), _M_string(std::move(__s)) { _M_stringbuf_init(__mode); } template<typename _SAlloc> basic_stringbuf(const basic_string<_CharT, _Traits, _SAlloc>& __s, const allocator_type& __a) : basic_stringbuf(__s, ios_base::in | std::ios_base::out, __a) { } template<typename _SAlloc> basic_stringbuf(const basic_string<_CharT, _Traits, _SAlloc>& __s, ios_base::openmode __mode, const allocator_type& __a) : __streambuf_type(), _M_mode(__mode), _M_string(__s.data(), __s.size(), __a) { _M_stringbuf_init(__mode); } template<typename _SAlloc> explicit basic_stringbuf(const basic_string<_CharT, _Traits, _SAlloc>& __s, ios_base::openmode __mode = ios_base::in | ios_base::out) : basic_stringbuf(__s, __mode, allocator_type{}) { } basic_stringbuf(basic_stringbuf&& __rhs, const allocator_type& __a) : basic_stringbuf(std::move(__rhs), __a, __xfer_bufptrs(__rhs, this)) { __rhs._M_sync(const_cast<char_type*>(__rhs._M_string.data()), 0, 0); } allocator_type get_allocator() const noexcept { return _M_string.get_allocator(); } basic_stringbuf& operator=(const basic_stringbuf&) = delete; basic_stringbuf& operator=(basic_stringbuf&& __rhs) { __xfer_bufptrs __st{__rhs, this}; const __streambuf_type& __base = __rhs; __streambuf_type::operator=(__base); this->pubimbue(__rhs.getloc()); _M_mode = __rhs._M_mode; _M_string = std::move(__rhs._M_string); __rhs._M_sync(const_cast<char_type*>(__rhs._M_string.data()), 0, 0); return *this; } void swap(basic_stringbuf& __rhs) noexcept(_Noexcept_swap::value) { __xfer_bufptrs __l_st{*this, std::__addressof(__rhs)}; __xfer_bufptrs __r_st{__rhs, this}; __streambuf_type& __base = __rhs; __streambuf_type::swap(__base); __rhs.pubimbue(this->pubimbue(__rhs.getloc())); std::swap(_M_mode, __rhs._M_mode); std::swap(_M_string, __rhs._M_string); } # 248 "/usr/include/c++/13/sstream" 3 __string_type str() const & { __string_type __ret(_M_string.get_allocator()); if (char_type* __hi = _M_high_mark()) __ret.assign(this->pbase(), __hi); else __ret = _M_string; return __ret; } template<__allocator_like _SAlloc> basic_string<_CharT, _Traits, _SAlloc> str(const _SAlloc& __sa) const { auto __sv = view(); return { __sv.data(), __sv.size(), __sa }; } __string_type str() && { if (char_type* __hi = _M_high_mark()) { _M_string._M_set_length(_M_high_mark() - this->pbase()); } auto __str = std::move(_M_string); _M_string.clear(); _M_sync(_M_string.data(), 0, 0); return __str; } basic_string_view<char_type, traits_type> view() const noexcept { if (char_type* __hi = _M_high_mark()) return { this->pbase(), __hi }; else return _M_string; } # 304 "/usr/include/c++/13/sstream" 3 void str(const __string_type& __s) { _M_string.assign(__s.data(), __s.size()); _M_stringbuf_init(_M_mode); } template<__allocator_like _SAlloc> requires (!is_same_v<_SAlloc, _Alloc>) void str(const basic_string<_CharT, _Traits, _SAlloc>& __s) { _M_string.assign(__s.data(), __s.size()); _M_stringbuf_init(_M_mode); } void str(__string_type&& __s) { _M_string = std::move(__s); _M_stringbuf_init(_M_mode); } protected: void _M_stringbuf_init(ios_base::openmode __mode) { _M_mode = __mode; __size_type __len = 0; if (_M_mode & (ios_base::ate | ios_base::app)) __len = _M_string.size(); _M_sync(const_cast<char_type*>(_M_string.data()), 0, __len); } virtual streamsize showmanyc() { streamsize __ret = -1; if (_M_mode & ios_base::in) { _M_update_egptr(); __ret = this->egptr() - this->gptr(); } return __ret; } virtual int_type underflow(); virtual int_type pbackfail(int_type __c = traits_type::eof()); virtual int_type overflow(int_type __c = traits_type::eof()); # 377 "/usr/include/c++/13/sstream" 3 virtual __streambuf_type* setbuf(char_type* __s, streamsize __n) { if (__s && __n >= 0) { _M_string.clear(); _M_sync(__s, __n, 0); } return this; } virtual pos_type seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode = ios_base::in | ios_base::out); virtual pos_type seekpos(pos_type __sp, ios_base::openmode __mode = ios_base::in | ios_base::out); void _M_sync(char_type* __base, __size_type __i, __size_type __o); void _M_update_egptr() { if (char_type* __pptr = this->pptr()) { char_type* __egptr = this->egptr(); if (!__egptr || __pptr > __egptr) { if (_M_mode & ios_base::in) this->setg(this->eback(), this->gptr(), __pptr); else this->setg(__pptr, __pptr, __pptr); } } } void _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off); private: __attribute__((__always_inline__)) char_type* _M_high_mark() const noexcept { if (char_type* __pptr = this->pptr()) { char_type* __egptr = this->egptr(); if (!__egptr || __pptr > __egptr) return __pptr; else return __egptr; } return 0; } struct __xfer_bufptrs { __xfer_bufptrs(const basic_stringbuf& __from, basic_stringbuf* __to) : _M_to{__to}, _M_goff{-1, -1, -1}, _M_poff{-1, -1, -1} { const _CharT* const __str = __from._M_string.data(); const _CharT* __end = nullptr; if (__from.eback()) { _M_goff[0] = __from.eback() - __str; _M_goff[1] = __from.gptr() - __str; _M_goff[2] = __from.egptr() - __str; __end = __from.egptr(); } if (__from.pbase()) { _M_poff[0] = __from.pbase() - __str; _M_poff[1] = __from.pptr() - __from.pbase(); _M_poff[2] = __from.epptr() - __str; if (!__end || __from.pptr() > __end) __end = __from.pptr(); } if (__end) { auto& __mut_from = const_cast<basic_stringbuf&>(__from); __mut_from._M_string._M_length(__end - __str); } } ~__xfer_bufptrs() { char_type* __str = const_cast<char_type*>(_M_to->_M_string.data()); if (_M_goff[0] != -1) _M_to->setg(__str+_M_goff[0], __str+_M_goff[1], __str+_M_goff[2]); if (_M_poff[0] != -1) _M_to->_M_pbump(__str+_M_poff[0], __str+_M_poff[2], _M_poff[1]); } basic_stringbuf* _M_to; off_type _M_goff[3]; off_type _M_poff[3]; }; # 513 "/usr/include/c++/13/sstream" 3 basic_stringbuf(basic_stringbuf&& __rhs, __xfer_bufptrs&&) : __streambuf_type(static_cast<const __streambuf_type&>(__rhs)), _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string)) { } basic_stringbuf(basic_stringbuf&& __rhs, const allocator_type& __a, __xfer_bufptrs&&) : __streambuf_type(static_cast<const __streambuf_type&>(__rhs)), _M_mode(__rhs._M_mode), _M_string(std::move(__rhs._M_string), __a) { } }; # 546 "/usr/include/c++/13/sstream" 3 template<typename _CharT, typename _Traits, typename _Alloc> class basic_istringstream : public basic_istream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; typedef basic_istream<char_type, traits_type> __istream_type; private: __stringbuf_type _M_stringbuf; public: # 580 "/usr/include/c++/13/sstream" 3 basic_istringstream() : __istream_type(), _M_stringbuf(ios_base::in) { this->init(&_M_stringbuf); } # 596 "/usr/include/c++/13/sstream" 3 explicit basic_istringstream(ios_base::openmode __mode) : __istream_type(), _M_stringbuf(__mode | ios_base::in) { this->init(&_M_stringbuf); } # 614 "/usr/include/c++/13/sstream" 3 explicit basic_istringstream(const __string_type& __str, ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in) { this->init(&_M_stringbuf); } ~basic_istringstream() { } basic_istringstream(const basic_istringstream&) = delete; basic_istringstream(basic_istringstream&& __rhs) : __istream_type(std::move(__rhs)), _M_stringbuf(std::move(__rhs._M_stringbuf)) { __istream_type::set_rdbuf(&_M_stringbuf); } basic_istringstream(ios_base::openmode __mode, const allocator_type& __a) : __istream_type(), _M_stringbuf(__mode | ios_base::in, __a) { this->init(std::__addressof(_M_stringbuf)); } explicit basic_istringstream(__string_type&& __str, ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_stringbuf(std::move(__str), __mode | ios_base::in) { this->init(std::__addressof(_M_stringbuf)); } template<typename _SAlloc> basic_istringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, const allocator_type& __a) : basic_istringstream(__str, ios_base::in, __a) { } template<typename _SAlloc> basic_istringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, ios_base::openmode __mode, const allocator_type& __a) : __istream_type(), _M_stringbuf(__str, __mode | ios_base::in, __a) { this->init(std::__addressof(_M_stringbuf)); } template<typename _SAlloc> explicit basic_istringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, ios_base::openmode __mode = ios_base::in) : basic_istringstream(__str, __mode, allocator_type()) { } basic_istringstream& operator=(const basic_istringstream&) = delete; basic_istringstream& operator=(basic_istringstream&& __rhs) { __istream_type::operator=(std::move(__rhs)); _M_stringbuf = std::move(__rhs._M_stringbuf); return *this; } void swap(basic_istringstream& __rhs) { __istream_type::swap(__rhs); _M_stringbuf.swap(__rhs._M_stringbuf); } # 697 "/usr/include/c++/13/sstream" 3 __stringbuf_type* rdbuf() const { return const_cast<__stringbuf_type*>(&_M_stringbuf); } __string_type str() const & { return _M_stringbuf.str(); } template<__allocator_like _SAlloc> basic_string<_CharT, _Traits, _SAlloc> str(const _SAlloc& __sa) const { return _M_stringbuf.str(__sa); } __string_type str() && { return std::move(_M_stringbuf).str(); } basic_string_view<char_type, traits_type> view() const noexcept { return _M_stringbuf.view(); } # 735 "/usr/include/c++/13/sstream" 3 void str(const __string_type& __s) { _M_stringbuf.str(__s); } template<__allocator_like _SAlloc> requires (!is_same_v<_SAlloc, _Alloc>) void str(const basic_string<_CharT, _Traits, _SAlloc>& __s) { _M_stringbuf.str(__s); } void str(__string_type&& __s) { _M_stringbuf.str(std::move(__s)); } }; # 770 "/usr/include/c++/13/sstream" 3 template <typename _CharT, typename _Traits, typename _Alloc> class basic_ostringstream : public basic_ostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; typedef basic_ostream<char_type, traits_type> __ostream_type; private: __stringbuf_type _M_stringbuf; public: # 804 "/usr/include/c++/13/sstream" 3 basic_ostringstream() : __ostream_type(), _M_stringbuf(ios_base::out) { this->init(&_M_stringbuf); } # 820 "/usr/include/c++/13/sstream" 3 explicit basic_ostringstream(ios_base::openmode __mode) : __ostream_type(), _M_stringbuf(__mode | ios_base::out) { this->init(&_M_stringbuf); } # 838 "/usr/include/c++/13/sstream" 3 explicit basic_ostringstream(const __string_type& __str, ios_base::openmode __mode = ios_base::out) : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out) { this->init(&_M_stringbuf); } ~basic_ostringstream() { } basic_ostringstream(const basic_ostringstream&) = delete; basic_ostringstream(basic_ostringstream&& __rhs) : __ostream_type(std::move(__rhs)), _M_stringbuf(std::move(__rhs._M_stringbuf)) { __ostream_type::set_rdbuf(&_M_stringbuf); } basic_ostringstream(ios_base::openmode __mode, const allocator_type& __a) : __ostream_type(), _M_stringbuf(__mode | ios_base::out, __a) { this->init(std::__addressof(_M_stringbuf)); } explicit basic_ostringstream(__string_type&& __str, ios_base::openmode __mode = ios_base::out) : __ostream_type(), _M_stringbuf(std::move(__str), __mode | ios_base::out) { this->init(std::__addressof(_M_stringbuf)); } template<typename _SAlloc> basic_ostringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, const allocator_type& __a) : basic_ostringstream(__str, ios_base::out, __a) { } template<typename _SAlloc> basic_ostringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, ios_base::openmode __mode, const allocator_type& __a) : __ostream_type(), _M_stringbuf(__str, __mode | ios_base::out, __a) { this->init(std::__addressof(_M_stringbuf)); } template<typename _SAlloc> explicit basic_ostringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, ios_base::openmode __mode = ios_base::out) : basic_ostringstream(__str, __mode, allocator_type()) { } basic_ostringstream& operator=(const basic_ostringstream&) = delete; basic_ostringstream& operator=(basic_ostringstream&& __rhs) { __ostream_type::operator=(std::move(__rhs)); _M_stringbuf = std::move(__rhs._M_stringbuf); return *this; } void swap(basic_ostringstream& __rhs) { __ostream_type::swap(__rhs); _M_stringbuf.swap(__rhs._M_stringbuf); } # 921 "/usr/include/c++/13/sstream" 3 __stringbuf_type* rdbuf() const { return const_cast<__stringbuf_type*>(&_M_stringbuf); } __string_type str() const & { return _M_stringbuf.str(); } template<__allocator_like _SAlloc> basic_string<_CharT, _Traits, _SAlloc> str(const _SAlloc& __sa) const { return _M_stringbuf.str(__sa); } __string_type str() && { return std::move(_M_stringbuf).str(); } basic_string_view<char_type, traits_type> view() const noexcept { return _M_stringbuf.view(); } # 959 "/usr/include/c++/13/sstream" 3 void str(const __string_type& __s) { _M_stringbuf.str(__s); } template<__allocator_like _SAlloc> requires (!is_same_v<_SAlloc, _Alloc>) void str(const basic_string<_CharT, _Traits, _SAlloc>& __s) { _M_stringbuf.str(__s); } void str(__string_type&& __s) { _M_stringbuf.str(std::move(__s)); } }; # 994 "/usr/include/c++/13/sstream" 3 template <typename _CharT, typename _Traits, typename _Alloc> class basic_stringstream : public basic_iostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef _Alloc allocator_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_string<_CharT, _Traits, _Alloc> __string_type; typedef basic_stringbuf<_CharT, _Traits, _Alloc> __stringbuf_type; typedef basic_iostream<char_type, traits_type> __iostream_type; private: __stringbuf_type _M_stringbuf; public: # 1028 "/usr/include/c++/13/sstream" 3 basic_stringstream() : __iostream_type(), _M_stringbuf(ios_base::out | ios_base::in) { this->init(&_M_stringbuf); } # 1042 "/usr/include/c++/13/sstream" 3 explicit basic_stringstream(ios_base::openmode __m) : __iostream_type(), _M_stringbuf(__m) { this->init(&_M_stringbuf); } # 1058 "/usr/include/c++/13/sstream" 3 explicit basic_stringstream(const __string_type& __str, ios_base::openmode __m = ios_base::out | ios_base::in) : __iostream_type(), _M_stringbuf(__str, __m) { this->init(&_M_stringbuf); } ~basic_stringstream() { } basic_stringstream(const basic_stringstream&) = delete; basic_stringstream(basic_stringstream&& __rhs) : __iostream_type(std::move(__rhs)), _M_stringbuf(std::move(__rhs._M_stringbuf)) { __iostream_type::set_rdbuf(&_M_stringbuf); } basic_stringstream(ios_base::openmode __mode, const allocator_type& __a) : __iostream_type(), _M_stringbuf(__mode, __a) { this->init(&_M_stringbuf); } explicit basic_stringstream(__string_type&& __str, ios_base::openmode __mode = ios_base::in | ios_base::out) : __iostream_type(), _M_stringbuf(std::move(__str), __mode) { this->init(std::__addressof(_M_stringbuf)); } template<typename _SAlloc> basic_stringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, const allocator_type& __a) : basic_stringstream(__str, ios_base::in | ios_base::out, __a) { } template<typename _SAlloc> basic_stringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, ios_base::openmode __mode, const allocator_type& __a) : __iostream_type(), _M_stringbuf(__str, __mode, __a) { this->init(std::__addressof(_M_stringbuf)); } template<typename _SAlloc> explicit basic_stringstream(const basic_string<_CharT, _Traits, _SAlloc>& __str, ios_base::openmode __mode = ios_base::in | ios_base::out) : basic_stringstream(__str, __mode, allocator_type()) { } basic_stringstream& operator=(const basic_stringstream&) = delete; basic_stringstream& operator=(basic_stringstream&& __rhs) { __iostream_type::operator=(std::move(__rhs)); _M_stringbuf = std::move(__rhs._M_stringbuf); return *this; } void swap(basic_stringstream& __rhs) { __iostream_type::swap(__rhs); _M_stringbuf.swap(__rhs._M_stringbuf); } # 1143 "/usr/include/c++/13/sstream" 3 __stringbuf_type* rdbuf() const { return const_cast<__stringbuf_type*>(&_M_stringbuf); } __string_type str() const & { return _M_stringbuf.str(); } template<__allocator_like _SAlloc> basic_string<_CharT, _Traits, _SAlloc> str(const _SAlloc& __sa) const { return _M_stringbuf.str(__sa); } __string_type str() && { return std::move(_M_stringbuf).str(); } basic_string_view<char_type, traits_type> view() const noexcept { return _M_stringbuf.view(); } # 1181 "/usr/include/c++/13/sstream" 3 void str(const __string_type& __s) { _M_stringbuf.str(__s); } template<__allocator_like _SAlloc> requires (!is_same_v<_SAlloc, _Alloc>) void str(const basic_string<_CharT, _Traits, _SAlloc>& __s) { _M_stringbuf.str(__s); } void str(__string_type&& __s) { _M_stringbuf.str(std::move(__s)); } }; template <class _CharT, class _Traits, class _Allocator> inline void swap(basic_stringbuf<_CharT, _Traits, _Allocator>& __x, basic_stringbuf<_CharT, _Traits, _Allocator>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template <class _CharT, class _Traits, class _Allocator> inline void swap(basic_istringstream<_CharT, _Traits, _Allocator>& __x, basic_istringstream<_CharT, _Traits, _Allocator>& __y) { __x.swap(__y); } template <class _CharT, class _Traits, class _Allocator> inline void swap(basic_ostringstream<_CharT, _Traits, _Allocator>& __x, basic_ostringstream<_CharT, _Traits, _Allocator>& __y) { __x.swap(__y); } template <class _CharT, class _Traits, class _Allocator> inline void swap(basic_stringstream<_CharT, _Traits, _Allocator>& __x, basic_stringstream<_CharT, _Traits, _Allocator>& __y) { __x.swap(__y); } } } # 1 "/usr/include/c++/13/bits/sstream.tcc" 1 3 # 37 "/usr/include/c++/13/bits/sstream.tcc" 3 # 38 "/usr/include/c++/13/bits/sstream.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template <class _CharT, class _Traits, class _Alloc> typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type basic_stringbuf<_CharT, _Traits, _Alloc>:: pbackfail(int_type __c) { int_type __ret = traits_type::eof(); if (this->eback() < this->gptr()) { const bool __testeof = traits_type::eq_int_type(__c, __ret); if (!__testeof) { const bool __testeq = traits_type::eq(traits_type:: to_char_type(__c), this->gptr()[-1]); const bool __testout = this->_M_mode & ios_base::out; if (__testeq || __testout) { this->gbump(-1); if (!__testeq) *this->gptr() = traits_type::to_char_type(__c); __ret = __c; } } else { this->gbump(-1); __ret = traits_type::not_eof(__c); } } return __ret; } template <class _CharT, class _Traits, class _Alloc> typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type basic_stringbuf<_CharT, _Traits, _Alloc>:: overflow(int_type __c) { const bool __testout = this->_M_mode & ios_base::out; if (__builtin_expect(!__testout, false)) return traits_type::eof(); const bool __testeof = traits_type::eq_int_type(__c, traits_type::eof()); if (__builtin_expect(__testeof, false)) return traits_type::not_eof(__c); const __size_type __capacity = _M_string.capacity(); if (size_t(this->epptr() - this->pbase()) < __capacity) { char_type* __base = const_cast<char_type*>(_M_string.data()); _M_pbump(__base, __base + __capacity, this->pptr() - this->pbase()); if (_M_mode & ios_base::in) { const __size_type __nget = this->gptr() - this->eback(); const __size_type __eget = this->egptr() - this->eback(); this->setg(__base, __base + __nget, __base + __eget + 1); } *this->pptr() = traits_type::to_char_type(__c); this->pbump(1); return __c; } const __size_type __max_size = _M_string.max_size(); const bool __testput = this->pptr() < this->epptr(); if (__builtin_expect(!__testput && __capacity == __max_size, false)) return traits_type::eof(); const char_type __conv = traits_type::to_char_type(__c); if (!__testput) { # 129 "/usr/include/c++/13/bits/sstream.tcc" 3 const __size_type __opt_len = std::max(__size_type(2 * __capacity), __size_type(512)); const __size_type __len = std::min(__opt_len, __max_size); __string_type __tmp(_M_string.get_allocator()); __tmp.reserve(__len); if (this->pbase()) __tmp.assign(this->pbase(), this->epptr() - this->pbase()); __tmp.push_back(__conv); _M_string.swap(__tmp); _M_sync(const_cast<char_type*>(_M_string.data()), this->gptr() - this->eback(), this->pptr() - this->pbase()); } else *this->pptr() = __conv; this->pbump(1); return __c; } template <class _CharT, class _Traits, class _Alloc> typename basic_stringbuf<_CharT, _Traits, _Alloc>::int_type basic_stringbuf<_CharT, _Traits, _Alloc>:: underflow() { int_type __ret = traits_type::eof(); const bool __testin = this->_M_mode & ios_base::in; if (__testin) { _M_update_egptr(); if (this->gptr() < this->egptr()) __ret = traits_type::to_int_type(*this->gptr()); } return __ret; } template <class _CharT, class _Traits, class _Alloc> typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type basic_stringbuf<_CharT, _Traits, _Alloc>:: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode) { pos_type __ret = pos_type(off_type(-1)); bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; const bool __testboth = __testin && __testout && __way != ios_base::cur; __testin &= !(__mode & ios_base::out); __testout &= !(__mode & ios_base::in); const char_type* __beg = __testin ? this->eback() : this->pbase(); if ((__beg || !__off) && (__testin || __testout || __testboth)) { _M_update_egptr(); off_type __newoffi = __off; off_type __newoffo = __newoffi; if (__way == ios_base::cur) { __newoffi += this->gptr() - __beg; __newoffo += this->pptr() - __beg; } else if (__way == ios_base::end) __newoffo = __newoffi += this->egptr() - __beg; if ((__testin || __testboth) && __newoffi >= 0 && this->egptr() - __beg >= __newoffi) { this->setg(this->eback(), this->eback() + __newoffi, this->egptr()); __ret = pos_type(__newoffi); } if ((__testout || __testboth) && __newoffo >= 0 && this->egptr() - __beg >= __newoffo) { _M_pbump(this->pbase(), this->epptr(), __newoffo); __ret = pos_type(__newoffo); } } return __ret; } template <class _CharT, class _Traits, class _Alloc> typename basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type basic_stringbuf<_CharT, _Traits, _Alloc>:: seekpos(pos_type __sp, ios_base::openmode __mode) { pos_type __ret = pos_type(off_type(-1)); const bool __testin = (ios_base::in & this->_M_mode & __mode) != 0; const bool __testout = (ios_base::out & this->_M_mode & __mode) != 0; const char_type* __beg = __testin ? this->eback() : this->pbase(); if ((__beg || !off_type(__sp)) && (__testin || __testout)) { _M_update_egptr(); const off_type __pos(__sp); const bool __testpos = (0 <= __pos && __pos <= this->egptr() - __beg); if (__testpos) { if (__testin) this->setg(this->eback(), this->eback() + __pos, this->egptr()); if (__testout) _M_pbump(this->pbase(), this->epptr(), __pos); __ret = __sp; } } return __ret; } template <class _CharT, class _Traits, class _Alloc> void basic_stringbuf<_CharT, _Traits, _Alloc>:: _M_sync(char_type* __base, __size_type __i, __size_type __o) { const bool __testin = _M_mode & ios_base::in; const bool __testout = _M_mode & ios_base::out; char_type* __endg = __base + _M_string.size(); char_type* __endp = __base + _M_string.capacity(); if (__base != _M_string.data()) { __endg += __i; __i = 0; __endp = __endg; } if (__testin) this->setg(__base, __base + __i, __endg); if (__testout) { _M_pbump(__base, __endp, __o); if (!__testin) this->setg(__endg, __endg, __endg); } } template <class _CharT, class _Traits, class _Alloc> void basic_stringbuf<_CharT, _Traits, _Alloc>:: _M_pbump(char_type* __pbeg, char_type* __pend, off_type __off) { this->setp(__pbeg, __pend); while (__off > __gnu_cxx::__numeric_traits<int>::__max) { this->pbump(__gnu_cxx::__numeric_traits<int>::__max); __off -= __gnu_cxx::__numeric_traits<int>::__max; } this->pbump(__off); } extern template class basic_stringbuf<char>; extern template class basic_istringstream<char>; extern template class basic_ostringstream<char>; extern template class basic_stringstream<char>; extern template class basic_stringbuf<wchar_t>; extern template class basic_istringstream<wchar_t>; extern template class basic_ostringstream<wchar_t>; extern template class basic_stringstream<wchar_t>; } # 1239 "/usr/include/c++/13/sstream" 2 3 # 46 "/usr/include/c++/13/chrono" 2 3 # 59 "/usr/include/c++/13/chrono" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 76 "/usr/include/c++/13/chrono" 3 namespace chrono { struct local_t { }; template<typename _Duration> using local_time = time_point<local_t, _Duration>; using local_seconds = local_time<seconds>; using local_days = local_time<days>; class utc_clock; class tai_clock; class gps_clock; template<typename _Duration> using utc_time = time_point<utc_clock, _Duration>; using utc_seconds = utc_time<seconds>; template<typename _Duration> using tai_time = time_point<tai_clock, _Duration>; using tai_seconds = tai_time<seconds>; template<typename _Duration> using gps_time = time_point<gps_clock, _Duration>; using gps_seconds = gps_time<seconds>; template<> struct is_clock<utc_clock> : true_type { }; template<> struct is_clock<tai_clock> : true_type { }; template<> struct is_clock<gps_clock> : true_type { }; template<> inline constexpr bool is_clock_v<utc_clock> = true; template<> inline constexpr bool is_clock_v<tai_clock> = true; template<> inline constexpr bool is_clock_v<gps_clock> = true; struct leap_second_info { bool is_leap_second; seconds elapsed; }; template<typename _Duration> leap_second_info get_leap_second_info(const utc_time<_Duration>& __ut); class utc_clock { public: using rep = system_clock::rep; using period = system_clock::period; using duration = chrono::duration<rep, period>; using time_point = chrono::time_point<utc_clock>; static constexpr bool is_steady = false; [[nodiscard]] static time_point now() { return from_sys(system_clock::now()); } template<typename _Duration> [[nodiscard]] static sys_time<common_type_t<_Duration, seconds>> to_sys(const utc_time<_Duration>& __t) { using _CDur = common_type_t<_Duration, seconds>; const auto __li = chrono::get_leap_second_info(__t); sys_time<_CDur> __s{__t.time_since_epoch() - __li.elapsed}; if (__li.is_leap_second) __s = chrono::floor<seconds>(__s) + seconds{1} - _CDur{1}; return __s; } template<typename _Duration> [[nodiscard]] static utc_time<common_type_t<_Duration, seconds>> from_sys(const sys_time<_Duration>& __t); }; class tai_clock { public: using rep = system_clock::rep; using period = system_clock::period; using duration = chrono::duration<rep, period>; using time_point = chrono::time_point<tai_clock>; static constexpr bool is_steady = false; [[nodiscard]] static time_point now() { return from_utc(utc_clock::now()); } template<typename _Duration> [[nodiscard]] static utc_time<common_type_t<_Duration, seconds>> to_utc(const tai_time<_Duration>& __t) { using _CDur = common_type_t<_Duration, seconds>; return utc_time<_CDur>{__t.time_since_epoch()} - 378691210s; } template<typename _Duration> [[nodiscard]] static tai_time<common_type_t<_Duration, seconds>> from_utc(const utc_time<_Duration>& __t) { using _CDur = common_type_t<_Duration, seconds>; return tai_time<_CDur>{__t.time_since_epoch()} + 378691210s; } }; class gps_clock { public: using rep = system_clock::rep; using period = system_clock::period; using duration = chrono::duration<rep, period>; using time_point = chrono::time_point<gps_clock>; static constexpr bool is_steady = false; [[nodiscard]] static time_point now() { return from_utc(utc_clock::now()); } template<typename _Duration> [[nodiscard]] static utc_time<common_type_t<_Duration, seconds>> to_utc(const gps_time<_Duration>& __t) { using _CDur = common_type_t<_Duration, seconds>; return utc_time<_CDur>{__t.time_since_epoch()} + 315964809s; } template<typename _Duration> [[nodiscard]] static gps_time<common_type_t<_Duration, seconds>> from_utc(const utc_time<_Duration>& __t) { using _CDur = common_type_t<_Duration, seconds>; return gps_time<_CDur>{__t.time_since_epoch()} - 315964809s; } }; template<typename _DestClock, typename _SourceClock> struct clock_time_conversion { }; template<typename _Clock> struct clock_time_conversion<_Clock, _Clock> { template<typename _Duration> time_point<_Clock, _Duration> operator()(const time_point<_Clock, _Duration>& __t) const { return __t; } }; template<> struct clock_time_conversion<system_clock, system_clock> { template<typename _Duration> sys_time<_Duration> operator()(const sys_time<_Duration>& __t) const { return __t; } }; template<> struct clock_time_conversion<utc_clock, utc_clock> { template<typename _Duration> utc_time<_Duration> operator()(const utc_time<_Duration>& __t) const { return __t; } }; template<> struct clock_time_conversion<utc_clock, system_clock> { template<typename _Duration> utc_time<common_type_t<_Duration, seconds>> operator()(const sys_time<_Duration>& __t) const { return utc_clock::from_sys(__t); } }; template<> struct clock_time_conversion<system_clock, utc_clock> { template<typename _Duration> sys_time<common_type_t<_Duration, seconds>> operator()(const utc_time<_Duration>& __t) const { return utc_clock::to_sys(__t); } }; template<typename _Tp, typename _Clock> inline constexpr bool __is_time_point_for_v = false; template<typename _Clock, typename _Duration> inline constexpr bool __is_time_point_for_v<time_point<_Clock, _Duration>, _Clock> = true; template<typename _SourceClock> struct clock_time_conversion<system_clock, _SourceClock> { template<typename _Duration, typename _Src = _SourceClock> auto operator()(const time_point<_SourceClock, _Duration>& __t) const -> decltype(_Src::to_sys(__t)) { using _Ret = decltype(_SourceClock::to_sys(__t)); static_assert(__is_time_point_for_v<_Ret, system_clock>); return _SourceClock::to_sys(__t); } }; template<typename _DestClock> struct clock_time_conversion<_DestClock, system_clock> { template<typename _Duration, typename _Dest = _DestClock> auto operator()(const sys_time<_Duration>& __t) const -> decltype(_Dest::from_sys(__t)) { using _Ret = decltype(_DestClock::from_sys(__t)); static_assert(__is_time_point_for_v<_Ret, _DestClock>); return _DestClock::from_sys(__t); } }; template<typename _SourceClock> struct clock_time_conversion<utc_clock, _SourceClock> { template<typename _Duration, typename _Src = _SourceClock> auto operator()(const time_point<_SourceClock, _Duration>& __t) const -> decltype(_Src::to_utc(__t)) { using _Ret = decltype(_SourceClock::to_utc(__t)); static_assert(__is_time_point_for_v<_Ret, utc_clock>); return _SourceClock::to_utc(__t); } }; template<typename _DestClock> struct clock_time_conversion<_DestClock, utc_clock> { template<typename _Duration, typename _Dest = _DestClock> auto operator()(const utc_time<_Duration>& __t) const -> decltype(_Dest::from_utc(__t)) { using _Ret = decltype(_DestClock::from_utc(__t)); static_assert(__is_time_point_for_v<_Ret, _DestClock>); return _DestClock::from_utc(__t); } }; namespace __detail { template<typename _DestClock, typename _SourceClock, typename _Duration> concept __clock_convs = requires (const time_point<_SourceClock, _Duration>& __t) { clock_time_conversion<_DestClock, _SourceClock>{}(__t); }; template<typename _DestClock, typename _SourceClock, typename _Duration> concept __clock_convs_sys = requires (const time_point<_SourceClock, _Duration>& __t) { clock_time_conversion<_DestClock, system_clock>{}( clock_time_conversion<system_clock, _SourceClock>{}(__t)); }; template<typename _DestClock, typename _SourceClock, typename _Duration> concept __clock_convs_utc = requires (const time_point<_SourceClock, _Duration>& __t) { clock_time_conversion<_DestClock, utc_clock>{}( clock_time_conversion<utc_clock, _SourceClock>{}(__t)); }; template<typename _DestClock, typename _SourceClock, typename _Duration> concept __clock_convs_sys_utc = requires (const time_point<_SourceClock, _Duration>& __t) { clock_time_conversion<_DestClock, utc_clock>{}( clock_time_conversion<utc_clock, system_clock>{}( clock_time_conversion<system_clock, _SourceClock>{}(__t))); }; template<typename _DestClock, typename _SourceClock, typename _Duration> concept __clock_convs_utc_sys = requires (const time_point<_SourceClock, _Duration>& __t) { clock_time_conversion<_DestClock, system_clock>{}( clock_time_conversion<system_clock, utc_clock>{}( clock_time_conversion<utc_clock, _SourceClock>{}(__t))); }; } template<typename _DestClock, typename _SourceClock, typename _Duration> [[nodiscard]] inline auto clock_cast(const time_point<_SourceClock, _Duration>& __t) requires __detail::__clock_convs<_DestClock, _SourceClock, _Duration> || __detail::__clock_convs_sys<_DestClock, _SourceClock, _Duration> || __detail::__clock_convs_utc<_DestClock, _SourceClock, _Duration> || __detail::__clock_convs_sys_utc<_DestClock, _SourceClock, _Duration> || __detail::__clock_convs_utc_sys<_DestClock, _SourceClock, _Duration> { constexpr bool __direct = __detail::__clock_convs<_DestClock, _SourceClock, _Duration>; if constexpr (__direct) { return clock_time_conversion<_DestClock, _SourceClock>{}(__t); } else { constexpr bool __convert_via_sys_clock = __detail::__clock_convs_sys<_DestClock, _SourceClock, _Duration>; constexpr bool __convert_via_utc_clock = __detail::__clock_convs_utc<_DestClock, _SourceClock, _Duration>; if constexpr (__convert_via_sys_clock) { static_assert(!__convert_via_utc_clock, "clock_cast requires a unique best conversion, but " "conversion is possible via system_clock and also via" "utc_clock"); return clock_time_conversion<_DestClock, system_clock>{}( clock_time_conversion<system_clock, _SourceClock>{}(__t)); } else if constexpr (__convert_via_utc_clock) { return clock_time_conversion<_DestClock, utc_clock>{}( clock_time_conversion<utc_clock, _SourceClock>{}(__t)); } else { constexpr bool __convert_via_sys_and_utc_clocks = __detail::__clock_convs_sys_utc<_DestClock, _SourceClock, _Duration>; if constexpr (__convert_via_sys_and_utc_clocks) { constexpr bool __convert_via_utc_and_sys_clocks = __detail::__clock_convs_utc_sys<_DestClock, _SourceClock, _Duration>; static_assert(!__convert_via_utc_and_sys_clocks, "clock_cast requires a unique best conversion, but " "conversion is possible via system_clock followed by " "utc_clock, and also via utc_clock followed by " "system_clock"); return clock_time_conversion<_DestClock, utc_clock>{}( clock_time_conversion<utc_clock, system_clock>{}( clock_time_conversion<system_clock, _SourceClock>{}(__t))); } else { return clock_time_conversion<_DestClock, system_clock>{}( clock_time_conversion<system_clock, utc_clock>{}( clock_time_conversion<utc_clock, _SourceClock>{}(__t))); } } } } class day; class month; class year; class weekday; class weekday_indexed; class weekday_last; class month_day; class month_day_last; class month_weekday; class month_weekday_last; class year_month; class year_month_day; class year_month_day_last; class year_month_weekday; class year_month_weekday_last; struct last_spec { explicit last_spec() = default; friend constexpr month_day_last operator/(int __m, last_spec) noexcept; friend constexpr month_day_last operator/(last_spec, int __m) noexcept; }; inline constexpr last_spec last{}; namespace __detail { constexpr unsigned __modulo(long long __n, unsigned __d) { if (__n >= 0) return __n % __d; else return (__d + (__n % __d)) % __d; } inline constexpr unsigned __days_per_month[12] = { 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; } class day { private: unsigned char _M_d; public: day() = default; explicit constexpr day(unsigned __d) noexcept : _M_d(__d) { } constexpr day& operator++() noexcept { ++_M_d; return *this; } constexpr day operator++(int) noexcept { auto __ret = *this; ++(*this); return __ret; } constexpr day& operator--() noexcept { --_M_d; return *this; } constexpr day operator--(int) noexcept { auto __ret = *this; --(*this); return __ret; } constexpr day& operator+=(const days& __d) noexcept { *this = *this + __d; return *this; } constexpr day& operator-=(const days& __d) noexcept { *this = *this - __d; return *this; } constexpr explicit operator unsigned() const noexcept { return _M_d; } constexpr bool ok() const noexcept { return 1 <= _M_d && _M_d <= 31; } friend constexpr bool operator==(const day& __x, const day& __y) noexcept { return unsigned{__x} == unsigned{__y}; } friend constexpr strong_ordering operator<=>(const day& __x, const day& __y) noexcept { return unsigned{__x} <=> unsigned{__y}; } friend constexpr day operator+(const day& __x, const days& __y) noexcept { return day(unsigned{__x} + __y.count()); } friend constexpr day operator+(const days& __x, const day& __y) noexcept { return __y + __x; } friend constexpr day operator-(const day& __x, const days& __y) noexcept { return __x + -__y; } friend constexpr days operator-(const day& __x, const day& __y) noexcept { return days{int(unsigned{__x}) - int(unsigned{__y})}; } friend constexpr month_day operator/(const month& __m, const day& __d) noexcept; friend constexpr month_day operator/(int __m, const day& __d) noexcept; friend constexpr month_day operator/(const day& __d, const month& __m) noexcept; friend constexpr month_day operator/(const day& __d, int __m) noexcept; friend constexpr year_month_day operator/(const year_month& __ym, const day& __d) noexcept; }; class month { private: unsigned char _M_m; public: month() = default; explicit constexpr month(unsigned __m) noexcept : _M_m(__m) { } constexpr month& operator++() noexcept { *this += months{1}; return *this; } constexpr month operator++(int) noexcept { auto __ret = *this; ++(*this); return __ret; } constexpr month& operator--() noexcept { *this -= months{1}; return *this; } constexpr month operator--(int) noexcept { auto __ret = *this; --(*this); return __ret; } constexpr month& operator+=(const months& __m) noexcept { *this = *this + __m; return *this; } constexpr month& operator-=(const months& __m) noexcept { *this = *this - __m; return *this; } explicit constexpr operator unsigned() const noexcept { return _M_m; } constexpr bool ok() const noexcept { return 1 <= _M_m && _M_m <= 12; } friend constexpr bool operator==(const month& __x, const month& __y) noexcept { return unsigned{__x} == unsigned{__y}; } friend constexpr strong_ordering operator<=>(const month& __x, const month& __y) noexcept { return unsigned{__x} <=> unsigned{__y}; } friend constexpr month operator+(const month& __x, const months& __y) noexcept { auto __n = static_cast<long long>(unsigned{__x}) + (__y.count() - 1); return month{__detail::__modulo(__n, 12) + 1}; } friend constexpr month operator+(const months& __x, const month& __y) noexcept { return __y + __x; } friend constexpr month operator-(const month& __x, const months& __y) noexcept { return __x + -__y; } friend constexpr months operator-(const month& __x, const month& __y) noexcept { const auto __dm = int(unsigned(__x)) - int(unsigned(__y)); return months{__dm < 0 ? 12 + __dm : __dm}; } friend constexpr year_month operator/(const year& __y, const month& __m) noexcept; friend constexpr month_day operator/(const month& __m, int __d) noexcept; friend constexpr month_day_last operator/(const month& __m, last_spec) noexcept; friend constexpr month_day_last operator/(last_spec, const month& __m) noexcept; friend constexpr month_weekday operator/(const month& __m, const weekday_indexed& __wdi) noexcept; friend constexpr month_weekday operator/(const weekday_indexed& __wdi, const month& __m) noexcept; friend constexpr month_weekday_last operator/(const month& __m, const weekday_last& __wdl) noexcept; friend constexpr month_weekday_last operator/(const weekday_last& __wdl, const month& __m) noexcept; }; inline constexpr month January{1}; inline constexpr month February{2}; inline constexpr month March{3}; inline constexpr month April{4}; inline constexpr month May{5}; inline constexpr month June{6}; inline constexpr month July{7}; inline constexpr month August{8}; inline constexpr month September{9}; inline constexpr month October{10}; inline constexpr month November{11}; inline constexpr month December{12}; class year { private: short _M_y; public: year() = default; explicit constexpr year(int __y) noexcept : _M_y{static_cast<short>(__y)} { } static constexpr year min() noexcept { return year{-32767}; } static constexpr year max() noexcept { return year{32767}; } constexpr year& operator++() noexcept { ++_M_y; return *this; } constexpr year operator++(int) noexcept { auto __ret = *this; ++(*this); return __ret; } constexpr year& operator--() noexcept { --_M_y; return *this; } constexpr year operator--(int) noexcept { auto __ret = *this; --(*this); return __ret; } constexpr year& operator+=(const years& __y) noexcept { *this = *this + __y; return *this; } constexpr year& operator-=(const years& __y) noexcept { *this = *this - __y; return *this; } constexpr year operator+() const noexcept { return *this; } constexpr year operator-() const noexcept { return year{-_M_y}; } constexpr bool is_leap() const noexcept { # 860 "/usr/include/c++/13/chrono" 3 constexpr uint32_t __multiplier = 42949673; constexpr uint32_t __bound = 42949669; constexpr uint32_t __max_dividend = 1073741799; constexpr uint32_t __offset = __max_dividend / 2 / 100 * 100; const bool __is_multiple_of_100 = __multiplier * (_M_y + __offset) < __bound; return (_M_y & (__is_multiple_of_100 ? 15 : 3)) == 0; } explicit constexpr operator int() const noexcept { return _M_y; } constexpr bool ok() const noexcept { return min()._M_y <= _M_y && _M_y <= max()._M_y; } friend constexpr bool operator==(const year& __x, const year& __y) noexcept { return int{__x} == int{__y}; } friend constexpr strong_ordering operator<=>(const year& __x, const year& __y) noexcept { return int{__x} <=> int{__y}; } friend constexpr year operator+(const year& __x, const years& __y) noexcept { return year{int{__x} + static_cast<int>(__y.count())}; } friend constexpr year operator+(const years& __x, const year& __y) noexcept { return __y + __x; } friend constexpr year operator-(const year& __x, const years& __y) noexcept { return __x + -__y; } friend constexpr years operator-(const year& __x, const year& __y) noexcept { return years{int{__x} - int{__y}}; } friend constexpr year_month operator/(const year& __y, int __m) noexcept; friend constexpr year_month_day operator/(const year& __y, const month_day& __md) noexcept; friend constexpr year_month_day operator/(const month_day& __md, const year& __y) noexcept; friend constexpr year_month_day_last operator/(const year& __y, const month_day_last& __mdl) noexcept; friend constexpr year_month_day_last operator/(const month_day_last& __mdl, const year& __y) noexcept; friend constexpr year_month_weekday operator/(const year& __y, const month_weekday& __mwd) noexcept; friend constexpr year_month_weekday operator/(const month_weekday& __mwd, const year& __y) noexcept; friend constexpr year_month_weekday_last operator/(const year& __y, const month_weekday_last& __mwdl) noexcept; friend constexpr year_month_weekday_last operator/(const month_weekday_last& __mwdl, const year& __y) noexcept; }; class weekday { private: unsigned char _M_wd; static constexpr weekday _S_from_days(const days& __d) { auto __n = __d.count(); return weekday(__n >= -4 ? (__n + 4) % 7 : (__n + 5) % 7 + 6); } public: weekday() = default; explicit constexpr weekday(unsigned __wd) noexcept : _M_wd(__wd == 7 ? 0 : __wd) { } constexpr weekday(const sys_days& __dp) noexcept : weekday{_S_from_days(__dp.time_since_epoch())} { } explicit constexpr weekday(const local_days& __dp) noexcept : weekday{sys_days{__dp.time_since_epoch()}} { } constexpr weekday& operator++() noexcept { *this += days{1}; return *this; } constexpr weekday operator++(int) noexcept { auto __ret = *this; ++(*this); return __ret; } constexpr weekday& operator--() noexcept { *this -= days{1}; return *this; } constexpr weekday operator--(int) noexcept { auto __ret = *this; --(*this); return __ret; } constexpr weekday& operator+=(const days& __d) noexcept { *this = *this + __d; return *this; } constexpr weekday& operator-=(const days& __d) noexcept { *this = *this - __d; return *this; } constexpr unsigned c_encoding() const noexcept { return _M_wd; } constexpr unsigned iso_encoding() const noexcept { return _M_wd == 0u ? 7u : _M_wd; } constexpr bool ok() const noexcept { return _M_wd <= 6; } constexpr weekday_indexed operator[](unsigned __index) const noexcept; constexpr weekday_last operator[](last_spec) const noexcept; friend constexpr bool operator==(const weekday& __x, const weekday& __y) noexcept { return __x._M_wd == __y._M_wd; } friend constexpr weekday operator+(const weekday& __x, const days& __y) noexcept { auto __n = static_cast<long long>(__x._M_wd) + __y.count(); return weekday{__detail::__modulo(__n, 7)}; } friend constexpr weekday operator+(const days& __x, const weekday& __y) noexcept { return __y + __x; } friend constexpr weekday operator-(const weekday& __x, const days& __y) noexcept { return __x + -__y; } friend constexpr days operator-(const weekday& __x, const weekday& __y) noexcept { auto __n = static_cast<long long>(__x._M_wd) - __y._M_wd; return days{__detail::__modulo(__n, 7)}; } }; inline constexpr weekday Sunday{0}; inline constexpr weekday Monday{1}; inline constexpr weekday Tuesday{2}; inline constexpr weekday Wednesday{3}; inline constexpr weekday Thursday{4}; inline constexpr weekday Friday{5}; inline constexpr weekday Saturday{6}; class weekday_indexed { private: chrono::weekday _M_wd; unsigned char _M_index; public: weekday_indexed() = default; constexpr weekday_indexed(const chrono::weekday& __wd, unsigned __index) noexcept : _M_wd(__wd), _M_index(__index) { } constexpr chrono::weekday weekday() const noexcept { return _M_wd; } constexpr unsigned index() const noexcept { return _M_index; }; constexpr bool ok() const noexcept { return _M_wd.ok() && 1 <= _M_index && _M_index <= 5; } friend constexpr bool operator==(const weekday_indexed& __x, const weekday_indexed& __y) noexcept { return __x.weekday() == __y.weekday() && __x.index() == __y.index(); } friend constexpr month_weekday operator/(const month& __m, const weekday_indexed& __wdi) noexcept; friend constexpr month_weekday operator/(int __m, const weekday_indexed& __wdi) noexcept; friend constexpr month_weekday operator/(const weekday_indexed& __wdi, const month& __m) noexcept; friend constexpr month_weekday operator/(const weekday_indexed& __wdi, int __m) noexcept; friend constexpr year_month_weekday operator/(const year_month& __ym, const weekday_indexed& __wdi) noexcept; }; constexpr weekday_indexed weekday::operator[](unsigned __index) const noexcept { return {*this, __index}; } class weekday_last { private: chrono::weekday _M_wd; public: explicit constexpr weekday_last(const chrono::weekday& __wd) noexcept : _M_wd{__wd} { } constexpr chrono::weekday weekday() const noexcept { return _M_wd; } constexpr bool ok() const noexcept { return _M_wd.ok(); } friend constexpr bool operator==(const weekday_last& __x, const weekday_last& __y) noexcept { return __x.weekday() == __y.weekday(); } friend constexpr month_weekday_last operator/(int __m, const weekday_last& __wdl) noexcept; friend constexpr month_weekday_last operator/(const weekday_last& __wdl, int __m) noexcept; friend constexpr year_month_weekday_last operator/(const year_month& __ym, const weekday_last& __wdl) noexcept; }; constexpr weekday_last weekday::operator[](last_spec) const noexcept { return weekday_last{*this}; } class month_day { private: chrono::month _M_m; chrono::day _M_d; public: month_day() = default; constexpr month_day(const chrono::month& __m, const chrono::day& __d) noexcept : _M_m{__m}, _M_d{__d} { } constexpr chrono::month month() const noexcept { return _M_m; } constexpr chrono::day day() const noexcept { return _M_d; } constexpr bool ok() const noexcept { return _M_m.ok() && 1u <= unsigned(_M_d) && unsigned(_M_d) <= __detail::__days_per_month[unsigned(_M_m) - 1]; } friend constexpr bool operator==(const month_day& __x, const month_day& __y) noexcept { return __x.month() == __y.month() && __x.day() == __y.day(); } friend constexpr strong_ordering operator<=>(const month_day& __x, const month_day& __y) noexcept = default; friend constexpr month_day operator/(const chrono::month& __m, const chrono::day& __d) noexcept { return {__m, __d}; } friend constexpr month_day operator/(const chrono::month& __m, int __d) noexcept { return {__m, chrono::day(unsigned(__d))}; } friend constexpr month_day operator/(int __m, const chrono::day& __d) noexcept { return {chrono::month(unsigned(__m)), __d}; } friend constexpr month_day operator/(const chrono::day& __d, const chrono::month& __m) noexcept { return {__m, __d}; } friend constexpr month_day operator/(const chrono::day& __d, int __m) noexcept { return {chrono::month(unsigned(__m)), __d}; } friend constexpr year_month_day operator/(int __y, const month_day& __md) noexcept; friend constexpr year_month_day operator/(const month_day& __md, int __y) noexcept; }; class month_day_last { private: chrono::month _M_m; public: explicit constexpr month_day_last(const chrono::month& __m) noexcept : _M_m{__m} { } constexpr chrono::month month() const noexcept { return _M_m; } constexpr bool ok() const noexcept { return _M_m.ok(); } friend constexpr bool operator==(const month_day_last& __x, const month_day_last& __y) noexcept { return __x.month() == __y.month(); } friend constexpr strong_ordering operator<=>(const month_day_last& __x, const month_day_last& __y) noexcept = default; friend constexpr month_day_last operator/(const chrono::month& __m, last_spec) noexcept { return month_day_last{__m}; } friend constexpr month_day_last operator/(int __m, last_spec) noexcept { return chrono::month(unsigned(__m)) / last; } friend constexpr month_day_last operator/(last_spec, const chrono::month& __m) noexcept { return __m / last; } friend constexpr month_day_last operator/(last_spec, int __m) noexcept { return __m / last; } friend constexpr year_month_day_last operator/(int __y, const month_day_last& __mdl) noexcept; friend constexpr year_month_day_last operator/(const month_day_last& __mdl, int __y) noexcept; }; class month_weekday { private: chrono::month _M_m; chrono::weekday_indexed _M_wdi; public: constexpr month_weekday(const chrono::month& __m, const chrono::weekday_indexed& __wdi) noexcept : _M_m{__m}, _M_wdi{__wdi} { } constexpr chrono::month month() const noexcept { return _M_m; } constexpr chrono::weekday_indexed weekday_indexed() const noexcept { return _M_wdi; } constexpr bool ok() const noexcept { return _M_m.ok() && _M_wdi.ok(); } friend constexpr bool operator==(const month_weekday& __x, const month_weekday& __y) noexcept { return __x.month() == __y.month() && __x.weekday_indexed() == __y.weekday_indexed(); } friend constexpr month_weekday operator/(const chrono::month& __m, const chrono::weekday_indexed& __wdi) noexcept { return {__m, __wdi}; } friend constexpr month_weekday operator/(int __m, const chrono::weekday_indexed& __wdi) noexcept { return chrono::month(unsigned(__m)) / __wdi; } friend constexpr month_weekday operator/(const chrono::weekday_indexed& __wdi, const chrono::month& __m) noexcept { return __m / __wdi; } friend constexpr month_weekday operator/(const chrono::weekday_indexed& __wdi, int __m) noexcept { return __m / __wdi; } friend constexpr year_month_weekday operator/(int __y, const month_weekday& __mwd) noexcept; friend constexpr year_month_weekday operator/(const month_weekday& __mwd, int __y) noexcept; }; class month_weekday_last { private: chrono::month _M_m; chrono::weekday_last _M_wdl; public: constexpr month_weekday_last(const chrono::month& __m, const chrono::weekday_last& __wdl) noexcept :_M_m{__m}, _M_wdl{__wdl} { } constexpr chrono::month month() const noexcept { return _M_m; } constexpr chrono::weekday_last weekday_last() const noexcept { return _M_wdl; } constexpr bool ok() const noexcept { return _M_m.ok() && _M_wdl.ok(); } friend constexpr bool operator==(const month_weekday_last& __x, const month_weekday_last& __y) noexcept { return __x.month() == __y.month() && __x.weekday_last() == __y.weekday_last(); } friend constexpr month_weekday_last operator/(const chrono::month& __m, const chrono::weekday_last& __wdl) noexcept { return {__m, __wdl}; } friend constexpr month_weekday_last operator/(int __m, const chrono::weekday_last& __wdl) noexcept { return chrono::month(unsigned(__m)) / __wdl; } friend constexpr month_weekday_last operator/(const chrono::weekday_last& __wdl, const chrono::month& __m) noexcept { return __m / __wdl; } friend constexpr month_weekday_last operator/(const chrono::weekday_last& __wdl, int __m) noexcept { return chrono::month(unsigned(__m)) / __wdl; } friend constexpr year_month_weekday_last operator/(int __y, const month_weekday_last& __mwdl) noexcept; friend constexpr year_month_weekday_last operator/(const month_weekday_last& __mwdl, int __y) noexcept; }; namespace __detail { # 1403 "/usr/include/c++/13/chrono" 3 using __months_years_conversion_disambiguator = void; } class year_month { private: chrono::year _M_y; chrono::month _M_m; public: year_month() = default; constexpr year_month(const chrono::year& __y, const chrono::month& __m) noexcept : _M_y{__y}, _M_m{__m} { } constexpr chrono::year year() const noexcept { return _M_y; } constexpr chrono::month month() const noexcept { return _M_m; } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month& operator+=(const months& __dm) noexcept { *this = *this + __dm; return *this; } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month& operator-=(const months& __dm) noexcept { *this = *this - __dm; return *this; } constexpr year_month& operator+=(const years& __dy) noexcept { *this = *this + __dy; return *this; } constexpr year_month& operator-=(const years& __dy) noexcept { *this = *this - __dy; return *this; } constexpr bool ok() const noexcept { return _M_y.ok() && _M_m.ok(); } friend constexpr bool operator==(const year_month& __x, const year_month& __y) noexcept { return __x.year() == __y.year() && __x.month() == __y.month(); } friend constexpr strong_ordering operator<=>(const year_month& __x, const year_month& __y) noexcept = default; template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month operator+(const year_month& __ym, const months& __dm) noexcept { auto __m = __ym.month() + __dm; auto __i = int(unsigned(__ym.month())) - 1 + __dm.count(); auto __y = (__i < 0 ? __ym.year() + years{(__i - 11) / 12} : __ym.year() + years{__i / 12}); return __y / __m; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month operator+(const months& __dm, const year_month& __ym) noexcept { return __ym + __dm; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month operator-(const year_month& __ym, const months& __dm) noexcept { return __ym + -__dm; } friend constexpr months operator-(const year_month& __x, const year_month& __y) noexcept { return (__x.year() - __y.year() + months{static_cast<int>(unsigned{__x.month()}) - static_cast<int>(unsigned{__y.month()})}); } friend constexpr year_month operator+(const year_month& __ym, const years& __dy) noexcept { return (__ym.year() + __dy) / __ym.month(); } friend constexpr year_month operator+(const years& __dy, const year_month& __ym) noexcept { return __ym + __dy; } friend constexpr year_month operator-(const year_month& __ym, const years& __dy) noexcept { return __ym + -__dy; } friend constexpr year_month operator/(const chrono::year& __y, const chrono::month& __m) noexcept { return {__y, __m}; } friend constexpr year_month operator/(const chrono::year& __y, int __m) noexcept { return {__y, chrono::month(unsigned(__m))}; } friend constexpr year_month_day operator/(const year_month& __ym, int __d) noexcept; friend constexpr year_month_day_last operator/(const year_month& __ym, last_spec) noexcept; }; class year_month_day { private: chrono::year _M_y; chrono::month _M_m; chrono::day _M_d; static constexpr year_month_day _S_from_days(const days& __dp) noexcept; constexpr days _M_days_since_epoch() const noexcept; public: year_month_day() = default; constexpr year_month_day(const chrono::year& __y, const chrono::month& __m, const chrono::day& __d) noexcept : _M_y{__y}, _M_m{__m}, _M_d{__d} { } constexpr year_month_day(const year_month_day_last& __ymdl) noexcept; constexpr year_month_day(const sys_days& __dp) noexcept : year_month_day(_S_from_days(__dp.time_since_epoch())) { } explicit constexpr year_month_day(const local_days& __dp) noexcept : year_month_day(sys_days{__dp.time_since_epoch()}) { } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_day& operator+=(const months& __m) noexcept { *this = *this + __m; return *this; } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_day& operator-=(const months& __m) noexcept { *this = *this - __m; return *this; } constexpr year_month_day& operator+=(const years& __y) noexcept { *this = *this + __y; return *this; } constexpr year_month_day& operator-=(const years& __y) noexcept { *this = *this - __y; return *this; } constexpr chrono::year year() const noexcept { return _M_y; } constexpr chrono::month month() const noexcept { return _M_m; } constexpr chrono::day day() const noexcept { return _M_d; } constexpr operator sys_days() const noexcept { return sys_days{_M_days_since_epoch()}; } explicit constexpr operator local_days() const noexcept { return local_days{sys_days{*this}.time_since_epoch()}; } constexpr bool ok() const noexcept; friend constexpr bool operator==(const year_month_day& __x, const year_month_day& __y) noexcept { return __x.year() == __y.year() && __x.month() == __y.month() && __x.day() == __y.day(); } friend constexpr strong_ordering operator<=>(const year_month_day& __x, const year_month_day& __y) noexcept = default; template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_day operator+(const year_month_day& __ymd, const months& __dm) noexcept { return (__ymd.year() / __ymd.month() + __dm) / __ymd.day(); } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_day operator+(const months& __dm, const year_month_day& __ymd) noexcept { return __ymd + __dm; } friend constexpr year_month_day operator+(const year_month_day& __ymd, const years& __dy) noexcept { return (__ymd.year() + __dy) / __ymd.month() / __ymd.day(); } friend constexpr year_month_day operator+(const years& __dy, const year_month_day& __ymd) noexcept { return __ymd + __dy; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_day operator-(const year_month_day& __ymd, const months& __dm) noexcept { return __ymd + -__dm; } friend constexpr year_month_day operator-(const year_month_day& __ymd, const years& __dy) noexcept { return __ymd + -__dy; } friend constexpr year_month_day operator/(const year_month& __ym, const chrono::day& __d) noexcept { return {__ym.year(), __ym.month(), __d}; } friend constexpr year_month_day operator/(const year_month& __ym, int __d) noexcept { return __ym / chrono::day{unsigned(__d)}; } friend constexpr year_month_day operator/(const chrono::year& __y, const month_day& __md) noexcept { return __y / __md.month() / __md.day(); } friend constexpr year_month_day operator/(int __y, const month_day& __md) noexcept { return chrono::year{__y} / __md; } friend constexpr year_month_day operator/(const month_day& __md, const chrono::year& __y) noexcept { return __y / __md; } friend constexpr year_month_day operator/(const month_day& __md, int __y) noexcept { return chrono::year(__y) / __md; } }; constexpr year_month_day year_month_day::_S_from_days(const days& __dp) noexcept { constexpr auto __z2 = static_cast<uint32_t>(-1468000); constexpr auto __r2_e3 = static_cast<uint32_t>(536895458); const auto __r0 = static_cast<uint32_t>(__dp.count()) + __r2_e3; const auto __n1 = 4 * __r0 + 3; const auto __q1 = __n1 / 146097; const auto __r1 = __n1 % 146097 / 4; constexpr auto __p32 = static_cast<uint64_t>(1) << 32; const auto __n2 = 4 * __r1 + 3; const auto __u2 = static_cast<uint64_t>(2939745) * __n2; const auto __q2 = static_cast<uint32_t>(__u2 / __p32); const auto __r2 = static_cast<uint32_t>(__u2 % __p32) / 2939745 / 4; constexpr auto __p16 = static_cast<uint32_t>(1) << 16; const auto __n3 = 2141 * __r2 + 197913; const auto __q3 = __n3 / __p16; const auto __r3 = __n3 % __p16 / 2141; const auto __y0 = 100 * __q1 + __q2; const auto __m0 = __q3; const auto __d0 = __r3; const auto __j = __r2 >= 306; const auto __y1 = __y0 + __j; const auto __m1 = __j ? __m0 - 12 : __m0; const auto __d1 = __d0 + 1; return year_month_day{chrono::year{static_cast<int>(__y1 + __z2)}, chrono::month{__m1}, chrono::day{__d1}}; } constexpr days year_month_day::_M_days_since_epoch() const noexcept { auto constexpr __z2 = static_cast<uint32_t>(-1468000); auto constexpr __r2_e3 = static_cast<uint32_t>(536895458); const auto __y1 = static_cast<uint32_t>(static_cast<int>(_M_y)) - __z2; const auto __m1 = static_cast<uint32_t>(static_cast<unsigned>(_M_m)); const auto __d1 = static_cast<uint32_t>(static_cast<unsigned>(_M_d)); const auto __j = static_cast<uint32_t>(__m1 < 3); const auto __y0 = __y1 - __j; const auto __m0 = __j ? __m1 + 12 : __m1; const auto __d0 = __d1 - 1; const auto __q1 = __y0 / 100; const auto __yc = 1461 * __y0 / 4 - __q1 + __q1 / 4; const auto __mc = (979 *__m0 - 2919) / 32; const auto __dc = __d0; return days{static_cast<int32_t>(__yc + __mc + __dc - __r2_e3)}; } class year_month_day_last { private: chrono::year _M_y; chrono::month_day_last _M_mdl; public: constexpr year_month_day_last(const chrono::year& __y, const chrono::month_day_last& __mdl) noexcept : _M_y{__y}, _M_mdl{__mdl} { } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_day_last& operator+=(const months& __m) noexcept { *this = *this + __m; return *this; } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_day_last& operator-=(const months& __m) noexcept { *this = *this - __m; return *this; } constexpr year_month_day_last& operator+=(const years& __y) noexcept { *this = *this + __y; return *this; } constexpr year_month_day_last& operator-=(const years& __y) noexcept { *this = *this - __y; return *this; } constexpr chrono::year year() const noexcept { return _M_y; } constexpr chrono::month month() const noexcept { return _M_mdl.month(); } constexpr chrono::month_day_last month_day_last() const noexcept { return _M_mdl; } constexpr chrono::day day() const noexcept { const auto __m = static_cast<unsigned>(month()); # 1823 "/usr/include/c++/13/chrono" 3 return chrono::day{__m != 2 ? ((__m ^ (__m >> 3)) & 1) | 30 : _M_y.is_leap() ? 29 : 28}; } constexpr operator sys_days() const noexcept { return sys_days{year() / month() / day()}; } explicit constexpr operator local_days() const noexcept { return local_days{sys_days{*this}.time_since_epoch()}; } constexpr bool ok() const noexcept { return _M_y.ok() && _M_mdl.ok(); } friend constexpr bool operator==(const year_month_day_last& __x, const year_month_day_last& __y) noexcept { return __x.year() == __y.year() && __x.month_day_last() == __y.month_day_last(); } friend constexpr strong_ordering operator<=>(const year_month_day_last& __x, const year_month_day_last& __y) noexcept = default; template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_day_last operator+(const year_month_day_last& __ymdl, const months& __dm) noexcept { return (__ymdl.year() / __ymdl.month() + __dm) / last; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_day_last operator+(const months& __dm, const year_month_day_last& __ymdl) noexcept { return __ymdl + __dm; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_day_last operator-(const year_month_day_last& __ymdl, const months& __dm) noexcept { return __ymdl + -__dm; } friend constexpr year_month_day_last operator+(const year_month_day_last& __ymdl, const years& __dy) noexcept { return {__ymdl.year() + __dy, __ymdl.month_day_last()}; } friend constexpr year_month_day_last operator+(const years& __dy, const year_month_day_last& __ymdl) noexcept { return __ymdl + __dy; } friend constexpr year_month_day_last operator-(const year_month_day_last& __ymdl, const years& __dy) noexcept { return __ymdl + -__dy; } friend constexpr year_month_day_last operator/(const year_month& __ym, last_spec) noexcept { return {__ym.year(), chrono::month_day_last{__ym.month()}}; } friend constexpr year_month_day_last operator/(const chrono::year& __y, const chrono::month_day_last& __mdl) noexcept { return {__y, __mdl}; } friend constexpr year_month_day_last operator/(int __y, const chrono::month_day_last& __mdl) noexcept { return chrono::year(__y) / __mdl; } friend constexpr year_month_day_last operator/(const chrono::month_day_last& __mdl, const chrono::year& __y) noexcept { return __y / __mdl; } friend constexpr year_month_day_last operator/(const chrono::month_day_last& __mdl, int __y) noexcept { return chrono::year(__y) / __mdl; } }; constexpr year_month_day::year_month_day(const year_month_day_last& __ymdl) noexcept : _M_y{__ymdl.year()}, _M_m{__ymdl.month()}, _M_d{__ymdl.day()} { } constexpr bool year_month_day::ok() const noexcept { if (!_M_y.ok() || !_M_m.ok()) return false; return chrono::day{1} <= _M_d && _M_d <= (_M_y / _M_m / last).day(); } class year_month_weekday { private: chrono::year _M_y; chrono::month _M_m; chrono::weekday_indexed _M_wdi; static constexpr year_month_weekday _S_from_sys_days(const sys_days& __dp) { year_month_day __ymd{__dp}; chrono::weekday __wd{__dp}; auto __index = __wd[(unsigned{__ymd.day()} - 1) / 7 + 1]; return {__ymd.year(), __ymd.month(), __index}; } public: year_month_weekday() = default; constexpr year_month_weekday(const chrono::year& __y, const chrono::month& __m, const chrono::weekday_indexed& __wdi) noexcept : _M_y{__y}, _M_m{__m}, _M_wdi{__wdi} { } constexpr year_month_weekday(const sys_days& __dp) noexcept : year_month_weekday{_S_from_sys_days(__dp)} { } explicit constexpr year_month_weekday(const local_days& __dp) noexcept : year_month_weekday{sys_days{__dp.time_since_epoch()}} { } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_weekday& operator+=(const months& __m) noexcept { *this = *this + __m; return *this; } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_weekday& operator-=(const months& __m) noexcept { *this = *this - __m; return *this; } constexpr year_month_weekday& operator+=(const years& __y) noexcept { *this = *this + __y; return *this; } constexpr year_month_weekday& operator-=(const years& __y) noexcept { *this = *this - __y; return *this; } constexpr chrono::year year() const noexcept { return _M_y; } constexpr chrono::month month() const noexcept { return _M_m; } constexpr chrono::weekday weekday() const noexcept { return _M_wdi.weekday(); } constexpr unsigned index() const noexcept { return _M_wdi.index(); } constexpr chrono::weekday_indexed weekday_indexed() const noexcept { return _M_wdi; } constexpr operator sys_days() const noexcept { auto __d = sys_days{year() / month() / 1}; return __d + (weekday() - chrono::weekday(__d) + days{(static_cast<int>(index())-1)*7}); } explicit constexpr operator local_days() const noexcept { return local_days{sys_days{*this}.time_since_epoch()}; } constexpr bool ok() const noexcept { if (!_M_y.ok() || !_M_m.ok() || !_M_wdi.ok()) return false; if (_M_wdi.index() <= 4) return true; days __d = (_M_wdi.weekday() - chrono::weekday{sys_days{_M_y / _M_m / 1}} + days((_M_wdi.index()-1)*7 + 1)); do { if (std::__is_constant_evaluated() && !bool(__d.count() >= 1)) __builtin_unreachable(); } while (false); return (unsigned)__d.count() <= (unsigned)(_M_y / _M_m / last).day(); } friend constexpr bool operator==(const year_month_weekday& __x, const year_month_weekday& __y) noexcept { return __x.year() == __y.year() && __x.month() == __y.month() && __x.weekday_indexed() == __y.weekday_indexed(); } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_weekday operator+(const year_month_weekday& __ymwd, const months& __dm) noexcept { return ((__ymwd.year() / __ymwd.month() + __dm) / __ymwd.weekday_indexed()); } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_weekday operator+(const months& __dm, const year_month_weekday& __ymwd) noexcept { return __ymwd + __dm; } friend constexpr year_month_weekday operator+(const year_month_weekday& __ymwd, const years& __dy) noexcept { return {__ymwd.year() + __dy, __ymwd.month(), __ymwd.weekday_indexed()}; } friend constexpr year_month_weekday operator+(const years& __dy, const year_month_weekday& __ymwd) noexcept { return __ymwd + __dy; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_weekday operator-(const year_month_weekday& __ymwd, const months& __dm) noexcept { return __ymwd + -__dm; } friend constexpr year_month_weekday operator-(const year_month_weekday& __ymwd, const years& __dy) noexcept { return __ymwd + -__dy; } friend constexpr year_month_weekday operator/(const year_month& __ym, const chrono::weekday_indexed& __wdi) noexcept { return {__ym.year(), __ym.month(), __wdi}; } friend constexpr year_month_weekday operator/(const chrono::year& __y, const month_weekday& __mwd) noexcept { return {__y, __mwd.month(), __mwd.weekday_indexed()}; } friend constexpr year_month_weekday operator/(int __y, const month_weekday& __mwd) noexcept { return chrono::year(__y) / __mwd; } friend constexpr year_month_weekday operator/(const month_weekday& __mwd, const chrono::year& __y) noexcept { return __y / __mwd; } friend constexpr year_month_weekday operator/(const month_weekday& __mwd, int __y) noexcept { return chrono::year(__y) / __mwd; } }; class year_month_weekday_last { private: chrono::year _M_y; chrono::month _M_m; chrono::weekday_last _M_wdl; public: constexpr year_month_weekday_last(const chrono::year& __y, const chrono::month& __m, const chrono::weekday_last& __wdl) noexcept : _M_y{__y}, _M_m{__m}, _M_wdl{__wdl} { } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_weekday_last& operator+=(const months& __m) noexcept { *this = *this + __m; return *this; } template<typename = __detail::__months_years_conversion_disambiguator> constexpr year_month_weekday_last& operator-=(const months& __m) noexcept { *this = *this - __m; return *this; } constexpr year_month_weekday_last& operator+=(const years& __y) noexcept { *this = *this + __y; return *this; } constexpr year_month_weekday_last& operator-=(const years& __y) noexcept { *this = *this - __y; return *this; } constexpr chrono::year year() const noexcept { return _M_y; } constexpr chrono::month month() const noexcept { return _M_m; } constexpr chrono::weekday weekday() const noexcept { return _M_wdl.weekday(); } constexpr chrono::weekday_last weekday_last() const noexcept { return _M_wdl; } constexpr operator sys_days() const noexcept { const auto __d = sys_days{_M_y / _M_m / last}; return sys_days{(__d - (chrono::weekday{__d} - _M_wdl.weekday())).time_since_epoch()}; } explicit constexpr operator local_days() const noexcept { return local_days{sys_days{*this}.time_since_epoch()}; } constexpr bool ok() const noexcept { return _M_y.ok() && _M_m.ok() && _M_wdl.ok(); } friend constexpr bool operator==(const year_month_weekday_last& __x, const year_month_weekday_last& __y) noexcept { return __x.year() == __y.year() && __x.month() == __y.month() && __x.weekday_last() == __y.weekday_last(); } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_weekday_last operator+(const year_month_weekday_last& __ymwdl, const months& __dm) noexcept { return ((__ymwdl.year() / __ymwdl.month() + __dm) / __ymwdl.weekday_last()); } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_weekday_last operator+(const months& __dm, const year_month_weekday_last& __ymwdl) noexcept { return __ymwdl + __dm; } friend constexpr year_month_weekday_last operator+(const year_month_weekday_last& __ymwdl, const years& __dy) noexcept { return {__ymwdl.year() + __dy, __ymwdl.month(), __ymwdl.weekday_last()}; } friend constexpr year_month_weekday_last operator+(const years& __dy, const year_month_weekday_last& __ymwdl) noexcept { return __ymwdl + __dy; } template<typename = __detail::__months_years_conversion_disambiguator> friend constexpr year_month_weekday_last operator-(const year_month_weekday_last& __ymwdl, const months& __dm) noexcept { return __ymwdl + -__dm; } friend constexpr year_month_weekday_last operator-(const year_month_weekday_last& __ymwdl, const years& __dy) noexcept { return __ymwdl + -__dy; } friend constexpr year_month_weekday_last operator/(const year_month& __ym, const chrono::weekday_last& __wdl) noexcept { return {__ym.year(), __ym.month(), __wdl}; } friend constexpr year_month_weekday_last operator/(const chrono::year& __y, const chrono::month_weekday_last& __mwdl) noexcept { return {__y, __mwdl.month(), __mwdl.weekday_last()}; } friend constexpr year_month_weekday_last operator/(int __y, const chrono::month_weekday_last& __mwdl) noexcept { return chrono::year(__y) / __mwdl; } friend constexpr year_month_weekday_last operator/(const chrono::month_weekday_last& __mwdl, const chrono::year& __y) noexcept { return __y / __mwdl; } friend constexpr year_month_weekday_last operator/(const chrono::month_weekday_last& __mwdl, int __y) noexcept { return chrono::year(__y) / __mwdl; } }; namespace __detail { consteval long long __pow10(unsigned __n) { long long __r = 1; while (__n-- > 0) __r *= 10; return __r; } template<typename _Duration> struct __utc_leap_second; } # 2268 "/usr/include/c++/13/chrono" 3 template<typename _Duration> class hh_mm_ss { static_assert( __is_duration<_Duration>::value ); private: static consteval int _S_fractional_width() { auto __den = _Duration::period::den; const int __multiplicity_2 = std::__countr_zero((uintmax_t)__den); __den >>= __multiplicity_2; int __multiplicity_5 = 0; while ((__den % 5) == 0) { ++__multiplicity_5; __den /= 5; } if (__den != 1) return 6; int __width = (__multiplicity_2 > __multiplicity_5 ? __multiplicity_2 : __multiplicity_5); if (__width > 18) __width = 18; return __width; } constexpr hh_mm_ss(_Duration __d, bool __is_neg) : _M_h (duration_cast<chrono::hours>(__d)), _M_m (duration_cast<chrono::minutes>(__d - hours())), _M_s (duration_cast<chrono::seconds>(__d - hours() - minutes())), _M_is_neg(__is_neg) { auto __ss = __d - hours() - minutes() - seconds(); if constexpr (treat_as_floating_point_v<typename precision::rep>) _M_ss._M_r = __ss.count(); else if constexpr (precision::period::den != 1) _M_ss._M_r = duration_cast<precision>(__ss).count(); } static constexpr _Duration _S_abs(_Duration __d) { if constexpr (numeric_limits<typename _Duration::rep>::is_signed) return chrono::abs(__d); else return __d; } public: static constexpr unsigned fractional_width = {_S_fractional_width()}; using precision = duration<common_type_t<typename _Duration::rep, chrono::seconds::rep>, ratio<1, __detail::__pow10(fractional_width)>>; constexpr hh_mm_ss() noexcept = default; constexpr explicit hh_mm_ss(_Duration __d) : hh_mm_ss(_S_abs(__d), __d < _Duration::zero()) { } constexpr bool is_negative() const noexcept { if constexpr (!_S_is_unsigned) return _M_is_neg; else return false; } constexpr chrono::hours hours() const noexcept { return _M_h; } constexpr chrono::minutes minutes() const noexcept { return _M_m; } constexpr chrono::seconds seconds() const noexcept { return _M_s; } constexpr precision subseconds() const noexcept { return static_cast<precision>(_M_ss); } constexpr explicit operator precision() const noexcept { return to_duration(); } constexpr precision to_duration() const noexcept { if constexpr (!_S_is_unsigned) if (_M_is_neg) return -(_M_h + _M_m + _M_s + subseconds()); return _M_h + _M_m + _M_s + subseconds(); } private: static constexpr bool _S_is_unsigned = __and_v<is_integral<typename _Duration::rep>, is_unsigned<typename _Duration::rep>>; template<typename _Ratio> using __byte_duration = duration<unsigned char, _Ratio>; template<typename _Dur> struct __subseconds { typename _Dur::rep _M_r{}; constexpr explicit operator _Dur() const noexcept { return _Dur(_M_r); } }; template<typename _Rep> requires (!treat_as_floating_point_v<_Rep>) struct __subseconds<duration<_Rep, ratio<1>>> { constexpr explicit operator duration<_Rep, ratio<1>>() const noexcept { return {}; } }; template<typename _Tp> static constexpr bool __fits = duration_values<typename _Duration::rep>::max() <= duration_values<_Tp>::max(); template<typename _Rep, typename _Period> requires (!treat_as_floating_point_v<_Rep>) && ratio_less_v<_Period, ratio<1, 1>> && (ratio_greater_equal_v<_Period, ratio<1, 250>> || __fits<unsigned char>) struct __subseconds<duration<_Rep, _Period>> { unsigned char _M_r{}; constexpr explicit operator duration<_Rep, _Period>() const noexcept { return duration<_Rep, _Period>(_M_r); } }; template<typename _Rep, typename _Period> requires (!treat_as_floating_point_v<_Rep>) && ratio_less_v<_Period, ratio<1, 250>> && (ratio_greater_equal_v<_Period, ratio<1, 4000000000>> || __fits<uint_least32_t>) struct __subseconds<duration<_Rep, _Period>> { uint_least32_t _M_r{}; constexpr explicit operator duration<_Rep, _Period>() const noexcept { return duration<_Rep, _Period>(_M_r); } }; chrono::hours _M_h{}; __byte_duration<ratio<60>> _M_m{}; __byte_duration<ratio<1>> _M_s{}; bool _M_is_neg{}; __subseconds<precision> _M_ss{}; template<typename> friend struct __detail::__utc_leap_second; }; namespace __detail { template<typename _Duration> struct __utc_leap_second { explicit __utc_leap_second(const sys_time<_Duration>& __s) : _M_date(chrono::floor<days>(__s)), _M_time(__s - _M_date) { ++_M_time._M_s; } sys_days _M_date; hh_mm_ss<common_type_t<_Duration, days>> _M_time; }; } constexpr bool is_am(const hours& __h) noexcept { return 0h <= __h && __h <= 11h; } constexpr bool is_pm(const hours& __h) noexcept { return 12h <= __h && __h <= 23h; } constexpr hours make12(const hours& __h) noexcept { if (__h == 0h) return 12h; else if (__h > 12h) return __h - 12h; return __h; } constexpr hours make24(const hours& __h, bool __is_pm) noexcept { if (!__is_pm) { if (__h == 12h) return 0h; else return __h; } else { if (__h == 12h) return __h; else return __h + 12h; } } struct tzdb; struct sys_info { sys_seconds begin; sys_seconds end; seconds offset; minutes save; string abbrev; }; struct local_info { static constexpr int unique = 0; static constexpr int nonexistent = 1; static constexpr int ambiguous = 2; int result; sys_info first; sys_info second; }; class nonexistent_local_time : public runtime_error { public: template<typename _Duration> nonexistent_local_time(const local_time<_Duration>& __tp, const local_info& __i) : runtime_error(_S_make_what_str(__tp, __i)) { do { if (std::__is_constant_evaluated() && !bool(__i.result == local_info::nonexistent)) __builtin_unreachable(); } while (false); } private: template<typename _Duration> static string _S_make_what_str(const local_time<_Duration>& __tp, const local_info& __i) { std::ostringstream __os; __os << __tp << " is in a gap between\n" << local_seconds(__i.first.end.time_since_epoch()) + __i.first.offset << ' ' << __i.first.abbrev << " and\n" << local_seconds(__i.second.begin.time_since_epoch()) + __i.second.offset << ' ' << __i.second.abbrev << " which are both equivalent to\n" << __i.first.end << " UTC"; return std::move(__os).str(); } }; class ambiguous_local_time : public runtime_error { public: template<typename _Duration> ambiguous_local_time(const local_time<_Duration>& __tp, const local_info& __i) : runtime_error(_S_make_what_str(__tp, __i)) { do { if (std::__is_constant_evaluated() && !bool(__i.result == local_info::ambiguous)) __builtin_unreachable(); } while (false); } private: template<typename _Duration> static string _S_make_what_str(const local_time<_Duration>& __tp, const local_info& __i) { std::ostringstream __os; __os << __tp << " is ambiguous. It could be\n" << __tp << ' ' << __i.first.abbrev << " == " << __tp - __i.first.offset << " UTC or\n" << __tp << ' ' << __i.second.abbrev << " == " << __tp - __i.second.offset << " UTC"; return std::move(__os).str(); } }; template<typename _Duration> [[noreturn]] void __throw_bad_local_time(const local_time<_Duration>& __tp, const local_info& __i) { if (__i.result == local_info::nonexistent) throw nonexistent_local_time(__tp, __i); throw ambiguous_local_time(__tp, __i); } enum class choose { earliest, latest }; class time_zone { public: time_zone(time_zone&&) = default; time_zone& operator=(time_zone&&) = default; ~time_zone(); [[nodiscard]] string_view name() const noexcept { return _M_name; } template<typename _Duration> sys_info get_info(const sys_time<_Duration>& __st) const { return _M_get_sys_info(chrono::floor<seconds>(__st)); } template<typename _Duration> local_info get_info(const local_time<_Duration>& __tp) const { return _M_get_local_info(chrono::floor<seconds>(__tp)); } template<typename _Duration> sys_time<common_type_t<_Duration, seconds>> to_sys(const local_time<_Duration>& __tp) const { local_info __info = get_info(__tp); if (__info.result != local_info::unique) __throw_bad_local_time(__tp, __info); return sys_time<_Duration>(__tp.time_since_epoch()) - __info.first.offset; } template<typename _Duration> sys_time<common_type_t<_Duration, seconds>> to_sys(const local_time<_Duration>& __tp, choose __z) const { local_info __info = get_info(__tp); if (__info.result == local_info::nonexistent) return __info.first.end; sys_time<_Duration> __st(__tp.time_since_epoch()); if (__info.result == local_info::ambiguous && __z == choose::latest) return __st - __info.second.offset; return __st - __info.first.offset; } template<typename _Duration> local_time<common_type_t<_Duration, seconds>> to_local(const sys_time<_Duration>& __tp) const { auto __d = (__tp + get_info(__tp).offset).time_since_epoch(); return local_time<common_type_t<_Duration, seconds>>(__d); } [[nodiscard]] friend bool operator==(const time_zone& __x, const time_zone& __y) noexcept { return __x._M_name == __y._M_name; } [[nodiscard]] friend strong_ordering operator<=>(const time_zone& __x, const time_zone& __y) noexcept { return __x._M_name <=> __y._M_name; } private: sys_info _M_get_sys_info(sys_seconds) const; local_info _M_get_local_info(local_seconds) const; friend const tzdb& reload_tzdb(); friend struct tzdb; friend class tzdb_list; struct _Impl; explicit time_zone(unique_ptr<_Impl> __p); string _M_name; unique_ptr<_Impl> _M_impl; }; const time_zone* locate_zone(string_view __tz_name); const time_zone* current_zone(); # 2696 "/usr/include/c++/13/chrono" 3 class tzdb_list { struct _Node; public: tzdb_list(const tzdb_list&) = delete; tzdb_list& operator=(const tzdb_list&) = delete; # 2711 "/usr/include/c++/13/chrono" 3 class const_iterator { public: using value_type = tzdb; using reference = const tzdb&; using pointer = const tzdb*; using difference_type = ptrdiff_t; using iterator_category = forward_iterator_tag; constexpr const_iterator() = default; const_iterator(const const_iterator&) = default; const_iterator(const_iterator&&) = default; const_iterator& operator=(const const_iterator&) = default; const_iterator& operator=(const_iterator&&) = default; reference operator*() const noexcept; pointer operator->() const noexcept { return &**this; } const_iterator& operator++(); const_iterator operator++(int); bool operator==(const const_iterator&) const noexcept = default; private: explicit const_iterator(const shared_ptr<_Node>&) noexcept; friend class tzdb_list; shared_ptr<_Node> _M_node; void* _M_reserved = nullptr; }; # 2749 "/usr/include/c++/13/chrono" 3 const tzdb& front() const noexcept; # 2765 "/usr/include/c++/13/chrono" 3 const_iterator erase_after(const_iterator __p); const_iterator begin() const noexcept; const_iterator end() const noexcept { return {}; } const_iterator cbegin() const noexcept { return begin(); } const_iterator cend() const noexcept { return end(); } private: constexpr explicit tzdb_list(nullptr_t); friend tzdb_list& get_tzdb_list(); friend const tzdb& get_tzdb(); friend const tzdb& reload_tzdb(); friend struct tzdb; friend class leap_second; friend struct time_zone::_Impl; friend class time_zone_link; }; class time_zone_link { public: time_zone_link(time_zone_link&&) = default; time_zone_link& operator=(time_zone_link&&) = default; string_view name() const noexcept { return _M_name; } string_view target() const noexcept { return _M_target; } friend bool operator==(const time_zone_link& __x, const time_zone_link& __y) noexcept { return __x.name() == __y.name(); } friend strong_ordering operator<=>(const time_zone_link& __x, const time_zone_link& __y) noexcept { return __x.name() <=> __y.name(); } private: friend const tzdb& reload_tzdb(); friend class tzdb_list::_Node; explicit time_zone_link(nullptr_t) { } string _M_name; string _M_target; }; class leap_second { public: leap_second(const leap_second&) = default; leap_second& operator=(const leap_second&) = default; [[nodiscard]] constexpr sys_seconds date() const noexcept { if (_M_s >= _M_s.zero()) [[likely]] return sys_seconds(_M_s); return sys_seconds(-_M_s); } [[nodiscard]] constexpr seconds value() const noexcept { if (_M_s >= _M_s.zero()) [[likely]] return seconds(1); return seconds(-1); } [[nodiscard]] friend constexpr bool operator==(const leap_second&, const leap_second&) noexcept = default; [[nodiscard]] friend constexpr strong_ordering operator<=>(const leap_second& __x, const leap_second& __y) noexcept { return __x.date() <=> __y.date(); } template<typename _Duration> [[nodiscard]] friend constexpr bool operator==(const leap_second& __x, const sys_time<_Duration>& __y) noexcept { return __x.date() == __y; } template<typename _Duration> [[nodiscard]] friend constexpr bool operator<(const leap_second& __x, const sys_time<_Duration>& __y) noexcept { return __x.date() < __y; } template<typename _Duration> [[nodiscard]] friend constexpr bool operator<(const sys_time<_Duration>& __x, const leap_second& __y) noexcept { return __x < __y.date(); } template<typename _Duration> [[nodiscard]] friend constexpr bool operator>(const leap_second& __x, const sys_time<_Duration>& __y) noexcept { return __y < __x.date(); } template<typename _Duration> [[nodiscard]] friend constexpr bool operator>(const sys_time<_Duration>& __x, const leap_second& __y) noexcept { return __y.date() < __x; } template<typename _Duration> [[nodiscard]] friend constexpr bool operator<=(const leap_second& __x, const sys_time<_Duration>& __y) noexcept { return !(__y < __x.date()); } template<typename _Duration> [[nodiscard]] friend constexpr bool operator<=(const sys_time<_Duration>& __x, const leap_second& __y) noexcept { return !(__y.date() < __x); } template<typename _Duration> [[nodiscard]] friend constexpr bool operator>=(const leap_second& __x, const sys_time<_Duration>& __y) noexcept { return !(__x.date() < __y); } template<typename _Duration> [[nodiscard]] friend constexpr bool operator>=(const sys_time<_Duration>& __x, const leap_second& __y) noexcept { return !(__x < __y.date()); } template<three_way_comparable_with<seconds> _Duration> [[nodiscard]] friend constexpr auto operator<=>(const leap_second& __x, const sys_time<_Duration>& __y) noexcept { return __x.date() <=> __y; } private: explicit leap_second(seconds::rep __s) : _M_s(__s) { } friend class tzdb_list::_Node; friend const tzdb& reload_tzdb(); template<typename _Duration> friend leap_second_info get_leap_second_info(const utc_time<_Duration>&); seconds _M_s; }; template<class _Tp> struct zoned_traits { }; template<> struct zoned_traits<const time_zone*> { static const time_zone* default_zone() { return std::chrono::locate_zone("UTC"); } static const time_zone* locate_zone(string_view __name) { return std::chrono::locate_zone(__name); } }; struct tzdb { string version; std::vector<time_zone> zones; std::vector<time_zone_link> links; std::vector<leap_second> leap_seconds; const time_zone* locate_zone(string_view __tz_name) const; const time_zone* current_zone() const; private: friend const tzdb& reload_tzdb(); friend class time_zone; friend class tzdb_list::_Node; }; tzdb_list& get_tzdb_list(); const tzdb& get_tzdb(); const tzdb& reload_tzdb(); string remote_version(); template<typename _Duration, typename _TimeZonePtr = const time_zone*> class zoned_time { static_assert(__is_duration_v<_Duration>); using _Traits = zoned_traits<_TimeZonePtr>; using string_view = type_identity_t<std::string_view>; public: using duration = common_type_t<_Duration, seconds>; zoned_time() requires requires { _Traits::default_zone(); } { } zoned_time(const zoned_time&) = default; zoned_time& operator=(const zoned_time&) = default; zoned_time(const sys_time<_Duration>& __st) requires requires { _Traits::default_zone(); } : _M_tp(__st) { } explicit zoned_time(_TimeZonePtr __z) : _M_zone(std::move(__z)) { } explicit zoned_time(string_view __name) requires requires { _TimeZonePtr{_Traits::locate_zone(std::string_view{})}; } : _M_zone(_Traits::locate_zone(__name)) { } template<typename _Duration2> zoned_time(const zoned_time<_Duration2, _TimeZonePtr>& __zt) requires is_convertible_v<sys_time<_Duration2>, sys_time<_Duration>> : _M_zone(__zt._M_zone), _M_tp(__zt._M_tp) { } zoned_time(_TimeZonePtr __z, const sys_time<_Duration>& __st) : _M_zone(std::move(__z)), _M_tp(__st) { } zoned_time(string_view __name, const sys_time<_Duration>& __st) : zoned_time(_Traits::locate_zone(__name), __st) { } zoned_time(_TimeZonePtr __z, const local_time<_Duration>& __tp) requires requires { { __z->to_sys(__tp) } -> convertible_to<sys_time<_Duration>>; } : _M_zone(std::move(__z)), _M_tp(_M_zone->to_sys(__tp)) { } zoned_time(string_view __name, const local_time<_Duration>& __tp) requires requires (_TimeZonePtr __z) { { _Traits::locate_zone(__name) } -> convertible_to<_TimeZonePtr>; { __z->to_sys(__tp) } -> convertible_to<sys_time<_Duration>>; } : zoned_time(_Traits::locate_zone(__name), __tp) { } zoned_time(_TimeZonePtr __z, const local_time<_Duration>& __tp, choose __c) requires requires { { __z->to_sys(__tp, __c) } -> convertible_to<sys_time<_Duration>>; } : _M_zone(std::move(__z)), _M_tp(_M_zone->to_sys(__tp, __c)) { } zoned_time(string_view __name, const local_time<_Duration>& __tp, choose __c) requires requires (_TimeZonePtr __z) { { _Traits::locate_zone(__name) } -> convertible_to<_TimeZonePtr>; { __z->to_sys(__tp, __c) } -> convertible_to<sys_time<_Duration>>; } : _M_zone(_Traits::locate_zone(__name)), _M_tp(_M_zone->to_sys(__tp, __c)) { } template<typename _Duration2, typename _TimeZonePtr2> zoned_time(_TimeZonePtr __z, const zoned_time<_Duration2, _TimeZonePtr2>& __zt) requires is_convertible_v<sys_time<_Duration2>, sys_time<_Duration>> : _M_zone(__z), _M_tp(__zt._M_tp) { } template<typename _Duration2, typename _TimeZonePtr2> zoned_time(_TimeZonePtr __z, const zoned_time<_Duration2, _TimeZonePtr2>& __zt, choose __c) requires is_convertible_v<sys_time<_Duration2>, sys_time<_Duration>> : _M_zone(__z), _M_tp(__zt._M_tp) { } template<typename _Duration2, typename _TimeZonePtr2> zoned_time(string_view __name, const zoned_time<_Duration2, _TimeZonePtr2>& __zt) requires is_convertible_v<sys_time<_Duration2>, sys_time<_Duration>> && requires { { _Traits::locate_zone(__name) } -> convertible_to<_TimeZonePtr>; } : _M_zone(_Traits::locate_zone(__name)), _M_tp(__zt._M_tp) { } template<typename _Duration2, typename _TimeZonePtr2> zoned_time(string_view __name, const zoned_time<_Duration2, _TimeZonePtr2>& __zt, choose __c) requires is_convertible_v<sys_time<_Duration2>, sys_time<_Duration>> && requires { { _Traits::locate_zone(__name) } -> convertible_to<_TimeZonePtr>; } : _M_zone(_Traits::locate_zone(__name)), _M_tp(__zt._M_tp) { } zoned_time& operator=(const sys_time<_Duration>& __st) { _M_tp = __st; return *this; } zoned_time& operator=(const local_time<_Duration>& __lt) { _M_tp = _M_zone->to_sys(__lt); return *this; } [[nodiscard]] operator sys_time<duration>() const { return _M_tp; } [[nodiscard]] explicit operator local_time<duration>() const { return get_local_time(); } [[nodiscard]] _TimeZonePtr get_time_zone() const { return _M_zone; } [[nodiscard]] local_time<duration> get_local_time() const { return _M_zone->to_local(_M_tp); } [[nodiscard]] sys_time<duration> get_sys_time() const { return _M_tp; } [[nodiscard]] sys_info get_info() const { return _M_zone->get_info(_M_tp); } [[nodiscard]] friend bool operator==(const zoned_time&, const zoned_time&) = default; private: _TimeZonePtr _M_zone{ _Traits::default_zone() }; sys_time<duration> _M_tp{}; template<typename _Duration2, typename _TimeZonePtr2> friend class zoned_time; }; zoned_time() -> zoned_time<seconds>; template<typename _Duration> zoned_time(sys_time<_Duration>) -> zoned_time<common_type_t<_Duration, seconds>>; template<typename _TimeZonePtrOrName> using __time_zone_representation = __conditional_t<is_convertible_v<_TimeZonePtrOrName, string_view>, const time_zone*, remove_cvref_t<_TimeZonePtrOrName>>; template<typename _TimeZonePtrOrName> zoned_time(_TimeZonePtrOrName&&) -> zoned_time<seconds, __time_zone_representation<_TimeZonePtrOrName>>; template<typename _TimeZonePtrOrName, typename _Duration> zoned_time(_TimeZonePtrOrName&&, sys_time<_Duration>) -> zoned_time<common_type_t<_Duration, seconds>, __time_zone_representation<_TimeZonePtrOrName>>; template<typename _TimeZonePtrOrName, typename _Duration> zoned_time(_TimeZonePtrOrName&&, local_time<_Duration>, choose = choose::earliest) -> zoned_time<common_type_t<_Duration, seconds>, __time_zone_representation<_TimeZonePtrOrName>>; template<typename _Duration, typename _TimeZonePtrOrName, typename _TimeZonePtr2> zoned_time(_TimeZonePtrOrName&&, zoned_time<_Duration, _TimeZonePtr2>, choose = choose::earliest) -> zoned_time<common_type_t<_Duration, seconds>, __time_zone_representation<_TimeZonePtrOrName>>; template<typename _Dur1, typename _TZPtr1, typename _Dur2, typename _TZPtr2> [[nodiscard]] inline bool operator==(const zoned_time<_Dur1, _TZPtr1>& __x, const zoned_time<_Dur2, _TZPtr2>& __y) { return __x.get_time_zone() == __y.get_time_zone() && __x.get_sys_time() == __y.get_sys_time(); } using zoned_seconds = zoned_time<seconds>; namespace __detail { inline leap_second_info __get_leap_second_info(sys_seconds __ss, bool __is_utc) { if (__ss < sys_seconds{}) [[unlikely]] return {}; const seconds::rep __leaps[] { 78796800, 94694400, 126230400, 157766400, 189302400, 220924800, 252460800, 283996800, 315532800, 362793600, 394329600, 425865600, 489024000, 567993600, 631152000, 662688000, 709948800, 741484800, 773020800, 820454400, 867715200, 915148800, 1136073600, 1230768000, 1341100800, 1435708800, 1483228800, }; const sys_seconds __expires(1703721600s); if (__ss > __expires) { size_t __n = std::size(__leaps); auto __db = get_tzdb_list().begin(); auto __first = __db->leap_seconds.begin() + __n; auto __last = __db->leap_seconds.end(); auto __pos = std::upper_bound(__first, __last, __ss); seconds __elapsed(__n); for (auto __i = __first; __i != __pos; ++__i) __elapsed += __i->value(); if (__is_utc) { __ss -= __elapsed; if (__pos != __first && __ss < __pos[-1]) { if ((__ss + 1s) >= __pos[-1]) return {true, __elapsed}; __elapsed -= __pos[-1].value(); } } return {false, __elapsed}; } else { seconds::rep __s = __ss.time_since_epoch().count(); const seconds::rep* __first = std::begin(__leaps); const seconds::rep* __last = std::end(__leaps); if (__s > (__last[-1] + (__last - __first) + 1)) return { false, seconds(__last - __first) }; auto __pos = std::upper_bound(__first, __last, __s); seconds __elapsed{__pos - __first}; if (__is_utc) { __s -= __elapsed.count(); if (__pos != __first && __s < __pos[-1]) { if ((__s + 1) >= __pos[-1]) return {true, __elapsed}; --__elapsed; } } return {false, __elapsed}; } } } template<typename _Duration> [[nodiscard]] inline leap_second_info get_leap_second_info(const utc_time<_Duration>& __ut) { auto __s = chrono::duration_cast<seconds>(__ut.time_since_epoch()); return __detail::__get_leap_second_info(sys_seconds(__s), true); } template<typename _Duration> [[nodiscard]] inline utc_time<common_type_t<_Duration, seconds>> utc_clock::from_sys(const sys_time<_Duration>& __t) { using _CDur = common_type_t<_Duration, seconds>; auto __s = chrono::time_point_cast<seconds>(__t); const auto __li = __detail::__get_leap_second_info(__s, false); return utc_time<_CDur>{__t.time_since_epoch()} + __li.elapsed; } } inline namespace literals { inline namespace chrono_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" constexpr chrono::day operator""d(unsigned long long __d) noexcept { return chrono::day{static_cast<unsigned>(__d)}; } constexpr chrono::year operator""y(unsigned long long __y) noexcept { return chrono::year{static_cast<int>(__y)}; } #pragma GCC diagnostic pop } } } # 1 "/usr/include/c++/13/bits/chrono_io.h" 1 3 # 33 "/usr/include/c++/13/bits/chrono_io.h" 3 # 34 "/usr/include/c++/13/bits/chrono_io.h" 3 # 1 "/usr/include/c++/13/iomanip" 1 3 # 36 "/usr/include/c++/13/iomanip" 3 # 37 "/usr/include/c++/13/iomanip" 3 # 45 "/usr/include/c++/13/iomanip" 3 # 1 "/usr/include/c++/13/locale" 1 3 # 36 "/usr/include/c++/13/locale" 3 # 37 "/usr/include/c++/13/locale" 3 # 1 "/usr/include/c++/13/bits/locale_facets_nonio.h" 1 3 # 37 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 # 38 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 # 1 "/usr/include/c++/13/ctime" 1 3 # 39 "/usr/include/c++/13/ctime" 3 # 40 "/usr/include/c++/13/ctime" 3 # 40 "/usr/include/c++/13/bits/locale_facets_nonio.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 52 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 class time_base { public: enum dateorder { no_order, dmy, mdy, ymd, ydm }; }; template<typename _CharT> struct __timepunct_cache : public locale::facet { static const _CharT* _S_timezones[14]; const _CharT* _M_date_format; const _CharT* _M_date_era_format; const _CharT* _M_time_format; const _CharT* _M_time_era_format; const _CharT* _M_date_time_format; const _CharT* _M_date_time_era_format; const _CharT* _M_am; const _CharT* _M_pm; const _CharT* _M_am_pm_format; const _CharT* _M_day1; const _CharT* _M_day2; const _CharT* _M_day3; const _CharT* _M_day4; const _CharT* _M_day5; const _CharT* _M_day6; const _CharT* _M_day7; const _CharT* _M_aday1; const _CharT* _M_aday2; const _CharT* _M_aday3; const _CharT* _M_aday4; const _CharT* _M_aday5; const _CharT* _M_aday6; const _CharT* _M_aday7; const _CharT* _M_month01; const _CharT* _M_month02; const _CharT* _M_month03; const _CharT* _M_month04; const _CharT* _M_month05; const _CharT* _M_month06; const _CharT* _M_month07; const _CharT* _M_month08; const _CharT* _M_month09; const _CharT* _M_month10; const _CharT* _M_month11; const _CharT* _M_month12; const _CharT* _M_amonth01; const _CharT* _M_amonth02; const _CharT* _M_amonth03; const _CharT* _M_amonth04; const _CharT* _M_amonth05; const _CharT* _M_amonth06; const _CharT* _M_amonth07; const _CharT* _M_amonth08; const _CharT* _M_amonth09; const _CharT* _M_amonth10; const _CharT* _M_amonth11; const _CharT* _M_amonth12; bool _M_allocated; __timepunct_cache(size_t __refs = 0) : facet(__refs), _M_date_format(0), _M_date_era_format(0), _M_time_format(0), _M_time_era_format(0), _M_date_time_format(0), _M_date_time_era_format(0), _M_am(0), _M_pm(0), _M_am_pm_format(0), _M_day1(0), _M_day2(0), _M_day3(0), _M_day4(0), _M_day5(0), _M_day6(0), _M_day7(0), _M_aday1(0), _M_aday2(0), _M_aday3(0), _M_aday4(0), _M_aday5(0), _M_aday6(0), _M_aday7(0), _M_month01(0), _M_month02(0), _M_month03(0), _M_month04(0), _M_month05(0), _M_month06(0), _M_month07(0), _M_month08(0), _M_month09(0), _M_month10(0), _M_month11(0), _M_month12(0), _M_amonth01(0), _M_amonth02(0), _M_amonth03(0), _M_amonth04(0), _M_amonth05(0), _M_amonth06(0), _M_amonth07(0), _M_amonth08(0), _M_amonth09(0), _M_amonth10(0), _M_amonth11(0), _M_amonth12(0), _M_allocated(false) { } ~__timepunct_cache(); private: __timepunct_cache& operator=(const __timepunct_cache&); explicit __timepunct_cache(const __timepunct_cache&); }; template<typename _CharT> __timepunct_cache<_CharT>::~__timepunct_cache() { if (_M_allocated) { } } template<> const char* __timepunct_cache<char>::_S_timezones[14]; template<> const wchar_t* __timepunct_cache<wchar_t>::_S_timezones[14]; template<typename _CharT> const _CharT* __timepunct_cache<_CharT>::_S_timezones[14]; template<typename _CharT> class __timepunct : public locale::facet { public: typedef _CharT __char_type; typedef __timepunct_cache<_CharT> __cache_type; protected: __cache_type* _M_data; __c_locale _M_c_locale_timepunct; const char* _M_name_timepunct; public: static locale::id id; explicit __timepunct(size_t __refs = 0); explicit __timepunct(__cache_type* __cache, size_t __refs = 0); # 206 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit __timepunct(__c_locale __cloc, const char* __s, size_t __refs = 0); void _M_put(_CharT* __s, size_t __maxlen, const _CharT* __format, const tm* __tm) const throw (); void _M_date_formats(const _CharT** __date) const { __date[0] = _M_data->_M_date_format; __date[1] = _M_data->_M_date_era_format; } void _M_time_formats(const _CharT** __time) const { __time[0] = _M_data->_M_time_format; __time[1] = _M_data->_M_time_era_format; } void _M_date_time_formats(const _CharT** __dt) const { __dt[0] = _M_data->_M_date_time_format; __dt[1] = _M_data->_M_date_time_era_format; } void _M_am_pm_format(const _CharT*) const { } void _M_am_pm_format(const _CharT** __ampm_format) const { __ampm_format[0] = _M_data->_M_am_pm_format; } void _M_am_pm(const _CharT** __ampm) const { __ampm[0] = _M_data->_M_am; __ampm[1] = _M_data->_M_pm; } void _M_days(const _CharT** __days) const { __days[0] = _M_data->_M_day1; __days[1] = _M_data->_M_day2; __days[2] = _M_data->_M_day3; __days[3] = _M_data->_M_day4; __days[4] = _M_data->_M_day5; __days[5] = _M_data->_M_day6; __days[6] = _M_data->_M_day7; } void _M_days_abbreviated(const _CharT** __days) const { __days[0] = _M_data->_M_aday1; __days[1] = _M_data->_M_aday2; __days[2] = _M_data->_M_aday3; __days[3] = _M_data->_M_aday4; __days[4] = _M_data->_M_aday5; __days[5] = _M_data->_M_aday6; __days[6] = _M_data->_M_aday7; } void _M_months(const _CharT** __months) const { __months[0] = _M_data->_M_month01; __months[1] = _M_data->_M_month02; __months[2] = _M_data->_M_month03; __months[3] = _M_data->_M_month04; __months[4] = _M_data->_M_month05; __months[5] = _M_data->_M_month06; __months[6] = _M_data->_M_month07; __months[7] = _M_data->_M_month08; __months[8] = _M_data->_M_month09; __months[9] = _M_data->_M_month10; __months[10] = _M_data->_M_month11; __months[11] = _M_data->_M_month12; } void _M_months_abbreviated(const _CharT** __months) const { __months[0] = _M_data->_M_amonth01; __months[1] = _M_data->_M_amonth02; __months[2] = _M_data->_M_amonth03; __months[3] = _M_data->_M_amonth04; __months[4] = _M_data->_M_amonth05; __months[5] = _M_data->_M_amonth06; __months[6] = _M_data->_M_amonth07; __months[7] = _M_data->_M_amonth08; __months[8] = _M_data->_M_amonth09; __months[9] = _M_data->_M_amonth10; __months[10] = _M_data->_M_amonth11; __months[11] = _M_data->_M_amonth12; } protected: virtual ~__timepunct(); void _M_initialize_timepunct(__c_locale __cloc = 0); }; template<typename _CharT> locale::id __timepunct<_CharT>::id; template<> void __timepunct<char>::_M_initialize_timepunct(__c_locale __cloc); template<> void __timepunct<char>::_M_put(char*, size_t, const char*, const tm*) const throw (); template<> void __timepunct<wchar_t>::_M_initialize_timepunct(__c_locale __cloc); template<> void __timepunct<wchar_t>::_M_put(wchar_t*, size_t, const wchar_t*, const tm*) const throw (); } # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/time_members.h" 1 3 # 37 "/usr/include/x86_64-linux-gnu/c++/13/bits/time_members.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT> __timepunct<_CharT>::__timepunct(size_t __refs) : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template<typename _CharT> __timepunct<_CharT>::__timepunct(__cache_type* __cache, size_t __refs) : facet(__refs), _M_data(__cache), _M_c_locale_timepunct(0), _M_name_timepunct(_S_get_c_name()) { _M_initialize_timepunct(); } template<typename _CharT> __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s, size_t __refs) : facet(__refs), _M_data(0), _M_c_locale_timepunct(0), _M_name_timepunct(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) { const size_t __len = __builtin_strlen(__s) + 1; char* __tmp = new char[__len]; __builtin_memcpy(__tmp, __s, __len); _M_name_timepunct = __tmp; } else _M_name_timepunct = _S_get_c_name(); try { _M_initialize_timepunct(__cloc); } catch(...) { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; throw; } } template<typename _CharT> __timepunct<_CharT>::~__timepunct() { if (_M_name_timepunct != _S_get_c_name()) delete [] _M_name_timepunct; delete _M_data; _S_destroy_c_locale(_M_c_locale_timepunct); } } # 353 "/usr/include/c++/13/bits/locale_facets_nonio.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __time_get_state { void _M_finalize_state(tm* __tm); unsigned int _M_have_I : 1; unsigned int _M_have_wday : 1; unsigned int _M_have_yday : 1; unsigned int _M_have_mon : 1; unsigned int _M_have_mday : 1; unsigned int _M_have_uweek : 1; unsigned int _M_have_wweek : 1; unsigned int _M_have_century : 1; unsigned int _M_is_pm : 1; unsigned int _M_want_century : 1; unsigned int _M_want_xday : 1; unsigned int _M_pad1 : 5; unsigned int _M_week_no : 6; unsigned int _M_pad2 : 10; int _M_century; int _M_pad3; }; namespace __cxx11 { # 397 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<typename _CharT, typename _InIter> class time_get : public locale::facet, public time_base { public: typedef _CharT char_type; typedef _InIter iter_type; static locale::id id; # 418 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit time_get(size_t __refs = 0) : facet (__refs) { } # 435 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 dateorder date_order() const { return this->do_date_order(); } # 459 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get_time(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_time(__beg, __end, __io, __err, __tm); } # 484 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get_date(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_date(__beg, __end, __io, __err, __tm); } # 512 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get_weekday(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_weekday(__beg, __end, __io, __err, __tm); } # 541 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get_monthname(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_monthname(__beg, __end, __io, __err, __tm); } # 567 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get_year(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { return this->do_get_year(__beg, __end, __io, __err, __tm); } # 588 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 inline iter_type get(iter_type __s, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, char __format, char __modifier = 0) const { return this->do_get(__s, __end, __io, __err, __tm, __format, __modifier); } # 615 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get(iter_type __s, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const char_type* __fmt, const char_type* __fmtend) const; protected: virtual ~time_get() { } # 635 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual dateorder do_date_order() const; # 653 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_time(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const; # 672 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_date(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const; # 691 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_weekday(iter_type __beg, iter_type __end, ios_base&, ios_base::iostate& __err, tm* __tm) const; # 710 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_monthname(iter_type __beg, iter_type __end, ios_base&, ios_base::iostate& __err, tm* __tm) const; # 729 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get_year(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const; # 752 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get(iter_type __s, iter_type __end, ios_base& __f, ios_base::iostate& __err, tm* __tm, char __format, char __modifier) const; iter_type _M_extract_num(iter_type __beg, iter_type __end, int& __member, int __min, int __max, size_t __len, ios_base& __io, ios_base::iostate& __err) const; iter_type _M_extract_name(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const; iter_type _M_extract_wday_or_month(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const; iter_type _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const _CharT* __format) const; iter_type _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const _CharT* __format, __time_get_state &__state) const; }; template<typename _CharT, typename _InIter> locale::id time_get<_CharT, _InIter>::id; template<typename _CharT, typename _InIter> class time_get_byname : public time_get<_CharT, _InIter> { public: typedef _CharT char_type; typedef _InIter iter_type; explicit time_get_byname(const char*, size_t __refs = 0) : time_get<_CharT, _InIter>(__refs) { } explicit time_get_byname(const string& __s, size_t __refs = 0) : time_get_byname(__s.c_str(), __refs) { } protected: virtual ~time_get_byname() { } }; } # 834 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<typename _CharT, typename _OutIter> class time_put : public locale::facet { public: typedef _CharT char_type; typedef _OutIter iter_type; static locale::id id; # 855 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit time_put(size_t __refs = 0) : facet(__refs) { } # 874 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, const _CharT* __beg, const _CharT* __end) const; # 894 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, char __format, char __mod = 0) const { return this->do_put(__s, __io, __fill, __tm, __format, __mod); } protected: virtual ~time_put() { } # 921 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, char __format, char __mod) const; }; template<typename _CharT, typename _OutIter> locale::id time_put<_CharT, _OutIter>::id; template<typename _CharT, typename _OutIter> class time_put_byname : public time_put<_CharT, _OutIter> { public: typedef _CharT char_type; typedef _OutIter iter_type; explicit time_put_byname(const char*, size_t __refs = 0) : time_put<_CharT, _OutIter>(__refs) { } explicit time_put_byname(const string& __s, size_t __refs = 0) : time_put_byname(__s.c_str(), __refs) { } protected: virtual ~time_put_byname() { } }; # 966 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 class money_base { public: enum part { none, space, symbol, sign, value }; struct pattern { char field[4]; }; static const pattern _S_default_pattern; enum { _S_minus, _S_zero, _S_end = 11 }; static const char* _S_atoms; __attribute__ ((__const__)) static pattern _S_construct_pattern(char __precedes, char __space, char __posn) throw (); }; template<typename _CharT, bool _Intl> struct __moneypunct_cache : public locale::facet { const char* _M_grouping; size_t _M_grouping_size; bool _M_use_grouping; _CharT _M_decimal_point; _CharT _M_thousands_sep; const _CharT* _M_curr_symbol; size_t _M_curr_symbol_size; const _CharT* _M_positive_sign; size_t _M_positive_sign_size; const _CharT* _M_negative_sign; size_t _M_negative_sign_size; int _M_frac_digits; money_base::pattern _M_pos_format; money_base::pattern _M_neg_format; _CharT _M_atoms[money_base::_S_end]; bool _M_allocated; __moneypunct_cache(size_t __refs = 0) : facet(__refs), _M_grouping(0), _M_grouping_size(0), _M_use_grouping(false), _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()), _M_curr_symbol(0), _M_curr_symbol_size(0), _M_positive_sign(0), _M_positive_sign_size(0), _M_negative_sign(0), _M_negative_sign_size(0), _M_frac_digits(0), _M_pos_format(money_base::pattern()), _M_neg_format(money_base::pattern()), _M_allocated(false) { } ~__moneypunct_cache(); void _M_cache(const locale& __loc); private: __moneypunct_cache& operator=(const __moneypunct_cache&); explicit __moneypunct_cache(const __moneypunct_cache&); }; template<typename _CharT, bool _Intl> __moneypunct_cache<_CharT, _Intl>::~__moneypunct_cache() { if (_M_allocated) { delete [] _M_grouping; delete [] _M_curr_symbol; delete [] _M_positive_sign; delete [] _M_negative_sign; } } namespace __cxx11 { # 1061 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<typename _CharT, bool _Intl> class moneypunct : public locale::facet, public money_base { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; typedef __moneypunct_cache<_CharT, _Intl> __cache_type; private: __cache_type* _M_data; public: static const bool intl = _Intl; static locale::id id; # 1090 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit moneypunct(size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_moneypunct(); } # 1103 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit moneypunct(__cache_type* __cache, size_t __refs = 0) : facet(__refs), _M_data(__cache) { _M_initialize_moneypunct(); } # 1118 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit moneypunct(__c_locale __cloc, const char* __s, size_t __refs = 0) : facet(__refs), _M_data(0) { _M_initialize_moneypunct(__cloc, __s); } # 1132 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 char_type decimal_point() const { return this->do_decimal_point(); } # 1145 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 char_type thousands_sep() const { return this->do_thousands_sep(); } # 1175 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 string grouping() const { return this->do_grouping(); } # 1188 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 string_type curr_symbol() const { return this->do_curr_symbol(); } # 1205 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 string_type positive_sign() const { return this->do_positive_sign(); } # 1222 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 string_type negative_sign() const { return this->do_negative_sign(); } # 1238 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 int frac_digits() const { return this->do_frac_digits(); } # 1274 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 pattern pos_format() const { return this->do_pos_format(); } pattern neg_format() const { return this->do_neg_format(); } protected: virtual ~moneypunct(); # 1296 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual char_type do_decimal_point() const { return _M_data->_M_decimal_point; } # 1308 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual char_type do_thousands_sep() const { return _M_data->_M_thousands_sep; } # 1321 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual string do_grouping() const { return _M_data->_M_grouping; } # 1334 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual string_type do_curr_symbol() const { return _M_data->_M_curr_symbol; } # 1347 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual string_type do_positive_sign() const { return _M_data->_M_positive_sign; } # 1360 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual string_type do_negative_sign() const { return _M_data->_M_negative_sign; } # 1374 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual int do_frac_digits() const { return _M_data->_M_frac_digits; } # 1388 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual pattern do_pos_format() const { return _M_data->_M_pos_format; } # 1402 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual pattern do_neg_format() const { return _M_data->_M_neg_format; } void _M_initialize_moneypunct(__c_locale __cloc = 0, const char* __name = 0); }; template<typename _CharT, bool _Intl> locale::id moneypunct<_CharT, _Intl>::id; template<typename _CharT, bool _Intl> const bool moneypunct<_CharT, _Intl>::intl; template<> moneypunct<char, true>::~moneypunct(); template<> moneypunct<char, false>::~moneypunct(); template<> void moneypunct<char, true>::_M_initialize_moneypunct(__c_locale, const char*); template<> void moneypunct<char, false>::_M_initialize_moneypunct(__c_locale, const char*); template<> moneypunct<wchar_t, true>::~moneypunct(); template<> moneypunct<wchar_t, false>::~moneypunct(); template<> void moneypunct<wchar_t, true>::_M_initialize_moneypunct(__c_locale, const char*); template<> void moneypunct<wchar_t, false>::_M_initialize_moneypunct(__c_locale, const char*); template<typename _CharT, bool _Intl> class moneypunct_byname : public moneypunct<_CharT, _Intl> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; static const bool intl = _Intl; explicit moneypunct_byname(const char* __s, size_t __refs = 0) : moneypunct<_CharT, _Intl>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { __c_locale __tmp; this->_S_create_c_locale(__tmp, __s); this->_M_initialize_moneypunct(__tmp); this->_S_destroy_c_locale(__tmp); } } explicit moneypunct_byname(const string& __s, size_t __refs = 0) : moneypunct_byname(__s.c_str(), __refs) { } protected: virtual ~moneypunct_byname() { } }; template<typename _CharT, bool _Intl> const bool moneypunct_byname<_CharT, _Intl>::intl; } namespace __cxx11 { # 1505 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<typename _CharT, typename _InIter> class money_get : public locale::facet { public: typedef _CharT char_type; typedef _InIter iter_type; typedef basic_string<_CharT> string_type; static locale::id id; # 1527 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit money_get(size_t __refs = 0) : facet(__refs) { } # 1557 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, long double& __units) const { return this->do_get(__s, __end, __intl, __io, __err, __units); } # 1588 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, string_type& __digits) const { return this->do_get(__s, __end, __intl, __io, __err, __digits); } protected: virtual ~money_get() { } # 1612 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, long double& __units) const; # 1624 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_get(iter_type __s, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, string_type& __digits) const; # 1644 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<bool _Intl> iter_type _M_extract(iter_type __s, iter_type __end, ios_base& __io, ios_base::iostate& __err, string& __digits) const; }; template<typename _CharT, typename _InIter> locale::id money_get<_CharT, _InIter>::id; # 1666 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<typename _CharT, typename _OutIter> class money_put : public locale::facet { public: typedef _CharT char_type; typedef _OutIter iter_type; typedef basic_string<_CharT> string_type; static locale::id id; # 1687 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit money_put(size_t __refs = 0) : facet(__refs) { } # 1707 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, long double __units) const { return this->do_put(__s, __intl, __io, __fill, __units); } # 1730 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 iter_type put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, const string_type& __digits) const { return this->do_put(__s, __intl, __io, __fill, __digits); } protected: virtual ~money_put() { } # 1765 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, long double __units) const; # 1789 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual iter_type do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, const string_type& __digits) const; # 1809 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<bool _Intl> iter_type _M_insert(iter_type __s, ios_base& __io, char_type __fill, const string_type& __digits) const; }; template<typename _CharT, typename _OutIter> locale::id money_put<_CharT, _OutIter>::id; } struct messages_base { typedef int catalog; }; namespace __cxx11 { # 1852 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 template<typename _CharT> class messages : public locale::facet, public messages_base { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; protected: __c_locale _M_c_locale_messages; const char* _M_name_messages; public: static locale::id id; # 1880 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit messages(size_t __refs = 0); # 1894 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 explicit messages(__c_locale __cloc, const char* __s, size_t __refs = 0); # 1907 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 catalog open(const basic_string<char>& __s, const locale& __loc) const { return this->do_open(__s, __loc); } # 1925 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 catalog open(const basic_string<char>&, const locale&, const char*) const; # 1943 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 string_type get(catalog __c, int __set, int __msgid, const string_type& __s) const { return this->do_get(__c, __set, __msgid, __s); } # 1954 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 void close(catalog __c) const { return this->do_close(__c); } protected: virtual ~messages(); # 1974 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual catalog do_open(const basic_string<char>&, const locale&) const; # 1993 "/usr/include/c++/13/bits/locale_facets_nonio.h" 3 virtual string_type do_get(catalog, int, int, const string_type& __dfault) const; virtual void do_close(catalog) const; char* _M_convert_to_char(const string_type& __msg) const { return reinterpret_cast<char*>(const_cast<_CharT*>(__msg.c_str())); } string_type _M_convert_from_char(char*) const { return string_type(); } }; template<typename _CharT> locale::id messages<_CharT>::id; template<> string messages<char>::do_get(catalog, int, int, const string&) const; template<> wstring messages<wchar_t>::do_get(catalog, int, int, const wstring&) const; template<typename _CharT> class messages_byname : public messages<_CharT> { public: typedef _CharT char_type; typedef basic_string<_CharT> string_type; explicit messages_byname(const char* __s, size_t __refs = 0); explicit messages_byname(const string& __s, size_t __refs = 0) : messages_byname(__s.c_str(), __refs) { } protected: virtual ~messages_byname() { } }; } } # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/messages_members.h" 1 3 # 36 "/usr/include/x86_64-linux-gnu/c++/13/bits/messages_members.h" 3 # 1 "/usr/include/libintl.h" 1 3 4 # 34 "/usr/include/libintl.h" 3 4 extern "C" { extern char *gettext (const char *__msgid) noexcept (true) __attribute__ ((__format_arg__ (1))); extern char *dgettext (const char *__domainname, const char *__msgid) noexcept (true) __attribute__ ((__format_arg__ (2))); extern char *__dgettext (const char *__domainname, const char *__msgid) noexcept (true) __attribute__ ((__format_arg__ (2))); extern char *dcgettext (const char *__domainname, const char *__msgid, int __category) noexcept (true) __attribute__ ((__format_arg__ (2))); extern char *__dcgettext (const char *__domainname, const char *__msgid, int __category) noexcept (true) __attribute__ ((__format_arg__ (2))); extern char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) noexcept (true) __attribute__ ((__format_arg__ (1))) __attribute__ ((__format_arg__ (2))); extern char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) noexcept (true) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); extern char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) noexcept (true) __attribute__ ((__format_arg__ (2))) __attribute__ ((__format_arg__ (3))); extern char *textdomain (const char *__domainname) noexcept (true); extern char *bindtextdomain (const char *__domainname, const char *__dirname) noexcept (true); extern char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) noexcept (true); # 121 "/usr/include/libintl.h" 3 4 } # 37 "/usr/include/x86_64-linux-gnu/c++/13/bits/messages_members.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT> messages<_CharT>::messages(size_t __refs) : facet(__refs), _M_c_locale_messages(_S_get_c_locale()), _M_name_messages(_S_get_c_name()) { } template<typename _CharT> messages<_CharT>::messages(__c_locale __cloc, const char* __s, size_t __refs) : facet(__refs), _M_c_locale_messages(0), _M_name_messages(0) { if (__builtin_strcmp(__s, _S_get_c_name()) != 0) { const size_t __len = __builtin_strlen(__s) + 1; char* __tmp = new char[__len]; __builtin_memcpy(__tmp, __s, __len); _M_name_messages = __tmp; } else _M_name_messages = _S_get_c_name(); _M_c_locale_messages = _S_clone_c_locale(__cloc); } template<typename _CharT> typename messages<_CharT>::catalog messages<_CharT>::open(const basic_string<char>& __s, const locale& __loc, const char* __dir) const { bindtextdomain(__s.c_str(), __dir); return this->do_open(__s, __loc); } template<typename _CharT> messages<_CharT>::~messages() { if (_M_name_messages != _S_get_c_name()) delete [] _M_name_messages; _S_destroy_c_locale(_M_c_locale_messages); } template<typename _CharT> typename messages<_CharT>::catalog messages<_CharT>::do_open(const basic_string<char>& __s, const locale&) const { textdomain(__s.c_str()); return 0; } template<typename _CharT> void messages<_CharT>::do_close(catalog) const { } template<typename _CharT> messages_byname<_CharT>::messages_byname(const char* __s, size_t __refs) : messages<_CharT>(__refs) { if (this->_M_name_messages != locale::facet::_S_get_c_name()) { delete [] this->_M_name_messages; if (__builtin_strcmp(__s, locale::facet::_S_get_c_name()) != 0) { const size_t __len = __builtin_strlen(__s) + 1; char* __tmp = new char[__len]; __builtin_memcpy(__tmp, __s, __len); this->_M_name_messages = __tmp; } else this->_M_name_messages = locale::facet::_S_get_c_name(); } if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_messages); this->_S_create_c_locale(this->_M_c_locale_messages, __s); } } template<> typename messages<char>::catalog messages<char>::do_open(const basic_string<char>&, const locale&) const; template<> void messages<char>::do_close(catalog) const; template<> typename messages<wchar_t>::catalog messages<wchar_t>::do_open(const basic_string<char>&, const locale&) const; template<> void messages<wchar_t>::do_close(catalog) const; } # 2065 "/usr/include/c++/13/bits/locale_facets_nonio.h" 2 3 # 1 "/usr/include/c++/13/bits/codecvt.h" 1 3 # 39 "/usr/include/c++/13/bits/codecvt.h" 3 # 40 "/usr/include/c++/13/bits/codecvt.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { class codecvt_base { public: enum result { ok, partial, error, noconv }; }; # 70 "/usr/include/c++/13/bits/codecvt.h" 3 template<typename _InternT, typename _ExternT, typename _StateT> class __codecvt_abstract_base : public locale::facet, public codecvt_base { public: typedef codecvt_base::result result; typedef _InternT intern_type; typedef _ExternT extern_type; typedef _StateT state_type; # 118 "/usr/include/c++/13/bits/codecvt.h" 3 result out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const { return this->do_out(__state, __from, __from_end, __from_next, __to, __to_end, __to_next); } # 157 "/usr/include/c++/13/bits/codecvt.h" 3 result unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const { return this->do_unshift(__state, __to,__to_end,__to_next); } # 198 "/usr/include/c++/13/bits/codecvt.h" 3 result in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const { return this->do_in(__state, __from, __from_end, __from_next, __to, __to_end, __to_next); } int encoding() const throw() { return this->do_encoding(); } bool always_noconv() const throw() { return this->do_always_noconv(); } int length(state_type& __state, const extern_type* __from, const extern_type* __end, size_t __max) const { return this->do_length(__state, __from, __end, __max); } int max_length() const throw() { return this->do_max_length(); } protected: explicit __codecvt_abstract_base(size_t __refs = 0) : locale::facet(__refs) { } virtual ~__codecvt_abstract_base() { } # 239 "/usr/include/c++/13/bits/codecvt.h" 3 virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const = 0; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const = 0; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const = 0; virtual int do_encoding() const throw() = 0; virtual bool do_always_noconv() const throw() = 0; virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const = 0; virtual int do_max_length() const throw() = 0; }; # 276 "/usr/include/c++/13/bits/codecvt.h" 3 template<typename _InternT, typename _ExternT, typename _StateT> class codecvt : public __codecvt_abstract_base<_InternT, _ExternT, _StateT> { public: typedef codecvt_base::result result; typedef _InternT intern_type; typedef _ExternT extern_type; typedef _StateT state_type; protected: __c_locale _M_c_locale_codecvt; public: static locale::id id; explicit codecvt(size_t __refs = 0) : __codecvt_abstract_base<_InternT, _ExternT, _StateT> (__refs), _M_c_locale_codecvt(0) { } explicit codecvt(__c_locale __cloc, size_t __refs = 0); protected: virtual ~codecvt() { } virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<typename _InternT, typename _ExternT, typename _StateT> locale::id codecvt<_InternT, _ExternT, _StateT>::id; template<> class codecvt<char, char, mbstate_t> : public __codecvt_abstract_base<char, char, mbstate_t> { friend class messages<char>; public: typedef char intern_type; typedef char extern_type; typedef mbstate_t state_type; protected: __c_locale _M_c_locale_codecvt; public: static locale::id id; explicit codecvt(size_t __refs = 0); explicit codecvt(__c_locale __cloc, size_t __refs = 0); protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<> class codecvt<wchar_t, char, mbstate_t> : public __codecvt_abstract_base<wchar_t, char, mbstate_t> { friend class messages<wchar_t>; public: typedef wchar_t intern_type; typedef char extern_type; typedef mbstate_t state_type; protected: __c_locale _M_c_locale_codecvt; public: static locale::id id; explicit codecvt(size_t __refs = 0); explicit codecvt(__c_locale __cloc, size_t __refs = 0); protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<> class codecvt<char16_t, char, mbstate_t> : public __codecvt_abstract_base<char16_t, char, mbstate_t> { public: typedef char16_t intern_type; typedef char extern_type; typedef mbstate_t state_type; public: static locale::id id; explicit codecvt(size_t __refs = 0) : __codecvt_abstract_base<char16_t, char, mbstate_t>(__refs) { } protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<> class codecvt<char32_t, char, mbstate_t> : public __codecvt_abstract_base<char32_t, char, mbstate_t> { public: typedef char32_t intern_type; typedef char extern_type; typedef mbstate_t state_type; public: static locale::id id; explicit codecvt(size_t __refs = 0) : __codecvt_abstract_base<char32_t, char, mbstate_t>(__refs) { } protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<> class codecvt<char16_t, char8_t, mbstate_t> : public __codecvt_abstract_base<char16_t, char8_t, mbstate_t> { public: typedef char16_t intern_type; typedef char8_t extern_type; typedef mbstate_t state_type; public: static locale::id id; explicit codecvt(size_t __refs = 0) : __codecvt_abstract_base<char16_t, char8_t, mbstate_t>(__refs) { } protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<> class codecvt<char32_t, char8_t, mbstate_t> : public __codecvt_abstract_base<char32_t, char8_t, mbstate_t> { public: typedef char32_t intern_type; typedef char8_t extern_type; typedef mbstate_t state_type; public: static locale::id id; explicit codecvt(size_t __refs = 0) : __codecvt_abstract_base<char32_t, char8_t, mbstate_t>(__refs) { } protected: virtual ~codecvt(); virtual result do_out(state_type& __state, const intern_type* __from, const intern_type* __from_end, const intern_type*& __from_next, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_unshift(state_type& __state, extern_type* __to, extern_type* __to_end, extern_type*& __to_next) const; virtual result do_in(state_type& __state, const extern_type* __from, const extern_type* __from_end, const extern_type*& __from_next, intern_type* __to, intern_type* __to_end, intern_type*& __to_next) const; virtual int do_encoding() const throw(); virtual bool do_always_noconv() const throw(); virtual int do_length(state_type&, const extern_type* __from, const extern_type* __end, size_t __max) const; virtual int do_max_length() const throw(); }; template<typename _InternT, typename _ExternT, typename _StateT> class codecvt_byname : public codecvt<_InternT, _ExternT, _StateT> { public: explicit codecvt_byname(const char* __s, size_t __refs = 0) : codecvt<_InternT, _ExternT, _StateT>(__refs) { if (__builtin_strcmp(__s, "C") != 0 && __builtin_strcmp(__s, "POSIX") != 0) { this->_S_destroy_c_locale(this->_M_c_locale_codecvt); this->_S_create_c_locale(this->_M_c_locale_codecvt, __s); } } explicit codecvt_byname(const string& __s, size_t __refs = 0) : codecvt_byname(__s.c_str(), __refs) { } protected: virtual ~codecvt_byname() { } }; template<> class codecvt_byname<char16_t, char, mbstate_t> : public codecvt<char16_t, char, mbstate_t> { public: explicit codecvt_byname(const char*, size_t __refs = 0) : codecvt<char16_t, char, mbstate_t>(__refs) { } explicit codecvt_byname(const string& __s, size_t __refs = 0) : codecvt_byname(__s.c_str(), __refs) { } protected: virtual ~codecvt_byname() { } }; template<> class codecvt_byname<char32_t, char, mbstate_t> : public codecvt<char32_t, char, mbstate_t> { public: explicit codecvt_byname(const char*, size_t __refs = 0) : codecvt<char32_t, char, mbstate_t>(__refs) { } explicit codecvt_byname(const string& __s, size_t __refs = 0) : codecvt_byname(__s.c_str(), __refs) { } protected: virtual ~codecvt_byname() { } }; template<> class codecvt_byname<char16_t, char8_t, mbstate_t> : public codecvt<char16_t, char8_t, mbstate_t> { public: explicit codecvt_byname(const char*, size_t __refs = 0) : codecvt<char16_t, char8_t, mbstate_t>(__refs) { } explicit codecvt_byname(const string& __s, size_t __refs = 0) : codecvt_byname(__s.c_str(), __refs) { } protected: virtual ~codecvt_byname() { } }; template<> class codecvt_byname<char32_t, char8_t, mbstate_t> : public codecvt<char32_t, char8_t, mbstate_t> { public: explicit codecvt_byname(const char*, size_t __refs = 0) : codecvt<char32_t, char8_t, mbstate_t>(__refs) { } explicit codecvt_byname(const string& __s, size_t __refs = 0) : codecvt_byname(__s.c_str(), __refs) { } protected: virtual ~codecvt_byname() { } }; extern template class codecvt_byname<char, char, mbstate_t>; extern template const codecvt<char, char, mbstate_t>& use_facet<codecvt<char, char, mbstate_t> >(const locale&); extern template bool has_facet<codecvt<char, char, mbstate_t> >(const locale&); extern template class codecvt_byname<wchar_t, char, mbstate_t>; extern template const codecvt<wchar_t, char, mbstate_t>& use_facet<codecvt<wchar_t, char, mbstate_t> >(const locale&); extern template bool has_facet<codecvt<wchar_t, char, mbstate_t> >(const locale&); extern template class codecvt_byname<char16_t, char, mbstate_t>; extern template class codecvt_byname<char32_t, char, mbstate_t>; extern template class codecvt_byname<char16_t, char8_t, mbstate_t>; extern template class codecvt_byname<char32_t, char8_t, mbstate_t>; } # 2068 "/usr/include/c++/13/bits/locale_facets_nonio.h" 2 3 # 1 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 1 3 # 33 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 # 34 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, bool _Intl> struct __use_cache<__moneypunct_cache<_CharT, _Intl> > { const __moneypunct_cache<_CharT, _Intl>* operator() (const locale& __loc) const { const size_t __i = moneypunct<_CharT, _Intl>::id._M_id(); const locale::facet** __caches = __loc._M_impl->_M_caches; if (!__caches[__i]) { __moneypunct_cache<_CharT, _Intl>* __tmp = 0; try { __tmp = new __moneypunct_cache<_CharT, _Intl>; __tmp->_M_cache(__loc); } catch(...) { delete __tmp; throw; } __loc._M_impl->_M_install_cache(__tmp, __i); } return static_cast< const __moneypunct_cache<_CharT, _Intl>*>(__caches[__i]); } }; template<typename _CharT, bool _Intl> void __moneypunct_cache<_CharT, _Intl>::_M_cache(const locale& __loc) { const moneypunct<_CharT, _Intl>& __mp = use_facet<moneypunct<_CharT, _Intl> >(__loc); struct _Scoped_str { size_t _M_len; _CharT* _M_str; explicit _Scoped_str(const basic_string<_CharT>& __str) : _M_len(__str.size()), _M_str(new _CharT[_M_len]) { __str.copy(_M_str, _M_len); } ~_Scoped_str() { delete[] _M_str; } void _M_release(const _CharT*& __p, size_t& __n) { __p = _M_str; __n = _M_len; _M_str = 0; } }; _Scoped_str __curr_symbol(__mp.curr_symbol()); _Scoped_str __positive_sign(__mp.positive_sign()); _Scoped_str __negative_sign(__mp.negative_sign()); const string& __g = __mp.grouping(); const size_t __g_size = __g.size(); char* const __grouping = new char[__g_size]; __g.copy(__grouping, __g_size); _M_grouping = __grouping; _M_grouping_size = __g_size; _M_use_grouping = (__g_size && static_cast<signed char>(__grouping[0]) > 0 && (__grouping[0] != __gnu_cxx::__numeric_traits<char>::__max)); _M_decimal_point = __mp.decimal_point(); _M_thousands_sep = __mp.thousands_sep(); __curr_symbol._M_release(_M_curr_symbol, _M_curr_symbol_size); __positive_sign._M_release(_M_positive_sign, _M_positive_sign_size); __negative_sign._M_release(_M_negative_sign, _M_negative_sign_size); _M_frac_digits = __mp.frac_digits(); _M_pos_format = __mp.pos_format(); _M_neg_format = __mp.neg_format(); const ctype<_CharT>& __ct = use_facet<ctype<_CharT> >(__loc); __ct.widen(money_base::_S_atoms, money_base::_S_atoms + money_base::_S_end, _M_atoms); _M_allocated = true; } namespace __cxx11 { template<typename _CharT, typename _InIter> template<bool _Intl> _InIter money_get<_CharT, _InIter>:: _M_extract(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, string& __units) const { typedef char_traits<_CharT> __traits_type; typedef typename string_type::size_type size_type; typedef money_base::part part; typedef __moneypunct_cache<_CharT, _Intl> __cache_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); __use_cache<__cache_type> __uc; const __cache_type* __lc = __uc(__loc); const char_type* __lit = __lc->_M_atoms; bool __negative = false; size_type __sign_size = 0; const bool __mandatory_sign = (__lc->_M_positive_sign_size && __lc->_M_negative_sign_size); string __grouping_tmp; if (__lc->_M_use_grouping) __grouping_tmp.reserve(32); int __last_pos = 0; int __n = 0; bool __testvalid = true; bool __testdecfound = false; string __res; __res.reserve(32); const char_type* __lit_zero = __lit + money_base::_S_zero; const money_base::pattern __p = __lc->_M_neg_format; for (int __i = 0; __i < 4 && __testvalid; ++__i) { const part __which = static_cast<part>(__p.field[__i]); switch (__which) { case money_base::symbol: if (__io.flags() & ios_base::showbase || __sign_size > 1 || __i == 0 || (__i == 1 && (__mandatory_sign || (static_cast<part>(__p.field[0]) == money_base::sign) || (static_cast<part>(__p.field[2]) == money_base::space))) || (__i == 2 && ((static_cast<part>(__p.field[3]) == money_base::value) || (__mandatory_sign && (static_cast<part>(__p.field[3]) == money_base::sign))))) { const size_type __len = __lc->_M_curr_symbol_size; size_type __j = 0; for (; __beg != __end && __j < __len && *__beg == __lc->_M_curr_symbol[__j]; ++__beg, (void)++__j); if (__j != __len && (__j || __io.flags() & ios_base::showbase)) __testvalid = false; } break; case money_base::sign: if (__lc->_M_positive_sign_size && __beg != __end && *__beg == __lc->_M_positive_sign[0]) { __sign_size = __lc->_M_positive_sign_size; ++__beg; } else if (__lc->_M_negative_sign_size && __beg != __end && *__beg == __lc->_M_negative_sign[0]) { __negative = true; __sign_size = __lc->_M_negative_sign_size; ++__beg; } else if (__lc->_M_positive_sign_size && !__lc->_M_negative_sign_size) __negative = true; else if (__mandatory_sign) __testvalid = false; break; case money_base::value: for (; __beg != __end; ++__beg) { const char_type __c = *__beg; const char_type* __q = __traits_type::find(__lit_zero, 10, __c); if (__q != 0) { __res += money_base::_S_atoms[__q - __lit]; ++__n; } else if (__c == __lc->_M_decimal_point && !__testdecfound) { if (__lc->_M_frac_digits <= 0) break; __last_pos = __n; __n = 0; __testdecfound = true; } else if (__lc->_M_use_grouping && __c == __lc->_M_thousands_sep && !__testdecfound) { if (__n) { __grouping_tmp += static_cast<char>(__n); __n = 0; } else { __testvalid = false; break; } } else break; } if (__res.empty()) __testvalid = false; break; case money_base::space: if (__beg != __end && __ctype.is(ctype_base::space, *__beg)) ++__beg; else __testvalid = false; case money_base::none: if (__i != 3) for (; __beg != __end && __ctype.is(ctype_base::space, *__beg); ++__beg); break; } } if (__sign_size > 1 && __testvalid) { const char_type* __sign = __negative ? __lc->_M_negative_sign : __lc->_M_positive_sign; size_type __i = 1; for (; __beg != __end && __i < __sign_size && *__beg == __sign[__i]; ++__beg, (void)++__i); if (__i != __sign_size) __testvalid = false; } if (__testvalid) { if (__res.size() > 1) { const size_type __first = __res.find_first_not_of('0'); const bool __only_zeros = __first == string::npos; if (__first) __res.erase(0, __only_zeros ? __res.size() - 1 : __first); } if (__negative && __res[0] != '0') __res.insert(__res.begin(), '-'); if (__grouping_tmp.size()) { __grouping_tmp += static_cast<char>(__testdecfound ? __last_pos : __n); if (!std::__verify_grouping(__lc->_M_grouping, __lc->_M_grouping_size, __grouping_tmp)) __err |= ios_base::failbit; } if (__testdecfound && __n != __lc->_M_frac_digits) __testvalid = false; } if (!__testvalid) __err |= ios_base::failbit; else __units.swap(__res); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } # 368 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 template<typename _CharT, typename _InIter> _InIter money_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, long double& __units) const { string __str; __beg = __intl ? _M_extract<true>(__beg, __end, __io, __err, __str) : _M_extract<false>(__beg, __end, __io, __err, __str); std::__convert_to_v(__str.c_str(), __units, __err, _S_get_c_locale()); return __beg; } template<typename _CharT, typename _InIter> _InIter money_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, bool __intl, ios_base& __io, ios_base::iostate& __err, string_type& __digits) const { typedef typename string::size_type size_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); string __str; __beg = __intl ? _M_extract<true>(__beg, __end, __io, __err, __str) : _M_extract<false>(__beg, __end, __io, __err, __str); const size_type __len = __str.size(); if (__len) { __digits.resize(__len); __ctype.widen(__str.data(), __str.data() + __len, &__digits[0]); } return __beg; } # 420 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 template<typename _CharT, typename _OutIter> template<bool _Intl> _OutIter money_put<_CharT, _OutIter>:: _M_insert(iter_type __s, ios_base& __io, char_type __fill, const string_type& __digits) const { typedef typename string_type::size_type size_type; typedef money_base::part part; typedef __moneypunct_cache<_CharT, _Intl> __cache_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); __use_cache<__cache_type> __uc; const __cache_type* __lc = __uc(__loc); const char_type* __lit = __lc->_M_atoms; const char_type* __beg = __digits.data(); money_base::pattern __p; const char_type* __sign; size_type __sign_size; if (!(*__beg == __lit[money_base::_S_minus])) { __p = __lc->_M_pos_format; __sign = __lc->_M_positive_sign; __sign_size = __lc->_M_positive_sign_size; } else { __p = __lc->_M_neg_format; __sign = __lc->_M_negative_sign; __sign_size = __lc->_M_negative_sign_size; if (__digits.size()) ++__beg; } size_type __len = __ctype.scan_not(ctype_base::digit, __beg, __beg + __digits.size()) - __beg; if (__len) { string_type __value; __value.reserve(2 * __len); long __paddec = __len - __lc->_M_frac_digits; if (__paddec > 0) { if (__lc->_M_frac_digits < 0) __paddec = __len; if (__lc->_M_grouping_size) { __value.assign(2 * __paddec, char_type()); _CharT* __vend = std::__add_grouping(&__value[0], __lc->_M_thousands_sep, __lc->_M_grouping, __lc->_M_grouping_size, __beg, __beg + __paddec); __value.erase(__vend - &__value[0]); } else __value.assign(__beg, __paddec); } if (__lc->_M_frac_digits > 0) { __value += __lc->_M_decimal_point; if (__paddec >= 0) __value.append(__beg + __paddec, __lc->_M_frac_digits); else { __value.append(-__paddec, __lit[money_base::_S_zero]); __value.append(__beg, __len); } } const ios_base::fmtflags __f = __io.flags() & ios_base::adjustfield; __len = __value.size() + __sign_size; __len += ((__io.flags() & ios_base::showbase) ? __lc->_M_curr_symbol_size : 0); string_type __res; __res.reserve(2 * __len); const size_type __width = static_cast<size_type>(__io.width()); const bool __testipad = (__f == ios_base::internal && __len < __width); for (int __i = 0; __i < 4; ++__i) { const part __which = static_cast<part>(__p.field[__i]); switch (__which) { case money_base::symbol: if (__io.flags() & ios_base::showbase) __res.append(__lc->_M_curr_symbol, __lc->_M_curr_symbol_size); break; case money_base::sign: if (__sign_size) __res += __sign[0]; break; case money_base::value: __res += __value; break; case money_base::space: if (__testipad) __res.append(__width - __len, __fill); else __res += __fill; break; case money_base::none: if (__testipad) __res.append(__width - __len, __fill); break; } } if (__sign_size > 1) __res.append(__sign + 1, __sign_size - 1); __len = __res.size(); if (__width > __len) { if (__f == ios_base::left) __res.append(__width - __len, __fill); else __res.insert(0, __width - __len, __fill); __len = __width; } __s = std::__write(__s, __res.data(), __len); } __io.width(0); return __s; } # 590 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 template<typename _CharT, typename _OutIter> _OutIter money_put<_CharT, _OutIter>:: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, long double __units) const { const locale __loc = __io.getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); int __cs_size = 64; char* __cs = static_cast<char*>(__builtin_alloca(__cs_size)); int __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf", 0, __units); if (__len >= __cs_size) { __cs_size = __len + 1; __cs = static_cast<char*>(__builtin_alloca(__cs_size)); __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf", 0, __units); } # 622 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 string_type __digits(__len, char_type()); __ctype.widen(__cs, __cs + __len, &__digits[0]); return __intl ? _M_insert<true>(__s, __io, __fill, __digits) : _M_insert<false>(__s, __io, __fill, __digits); } template<typename _CharT, typename _OutIter> _OutIter money_put<_CharT, _OutIter>:: do_put(iter_type __s, bool __intl, ios_base& __io, char_type __fill, const string_type& __digits) const { return __intl ? _M_insert<true>(__s, __io, __fill, __digits) : _M_insert<false>(__s, __io, __fill, __digits); } # 674 "/usr/include/c++/13/bits/locale_facets_nonio.tcc" 3 } template<typename _CharT, typename _InIter> time_base::dateorder time_get<_CharT, _InIter>::do_date_order() const { return time_base::no_order; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const _CharT* __format, __time_get_state &__state) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); const size_t __len = char_traits<_CharT>::length(__format); ios_base::iostate __tmperr = ios_base::goodbit; size_t __i = 0; for (; __beg != __end && __i < __len && !__tmperr; ++__i) { if (__ctype.narrow(__format[__i], 0) == '%') { char __c = __ctype.narrow(__format[++__i], 0); int __mem = 0; if (__c == 'E' || __c == 'O') __c = __ctype.narrow(__format[++__i], 0); switch (__c) { const char* __cs; _CharT __wcs[10]; case 'a': case 'A': const char_type* __days[14]; __tp._M_days(&__days[0]); __tp._M_days_abbreviated(&__days[7]); __beg = _M_extract_name(__beg, __end, __mem, __days, 14, __io, __tmperr); if (!__tmperr) { __tm->tm_wday = __mem % 7; __state._M_have_wday = 1; } break; case 'h': case 'b': case 'B': const char_type* __months[24]; __tp._M_months(&__months[0]); __tp._M_months_abbreviated(&__months[12]); __beg = _M_extract_name(__beg, __end, __mem, __months, 24, __io, __tmperr); if (!__tmperr) { __tm->tm_mon = __mem % 12; __state._M_have_mon = 1; __state._M_want_xday = 1; } break; case 'c': const char_type* __dt[2]; __tp._M_date_time_formats(__dt); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __dt[0], __state); if (!__tmperr) __state._M_want_xday = 1; break; case 'C': __beg = _M_extract_num(__beg, __end, __mem, 0, 99, 2, __io, __tmperr); if (!__tmperr) { __state._M_century = __mem; __state._M_have_century = 1; __state._M_want_xday = 1; } break; case 'd': case 'e': if (__ctype.is(ctype_base::space, *__beg)) ++__beg; __beg = _M_extract_num(__beg, __end, __mem, 1, 31, 2, __io, __tmperr); if (!__tmperr) { __tm->tm_mday = __mem; __state._M_have_mday = 1; __state._M_want_xday = 1; } break; case 'D': __cs = "%m/%d/%y"; __ctype.widen(__cs, __cs + 9, __wcs); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __wcs, __state); if (!__tmperr) __state._M_want_xday = 1; break; case 'H': __beg = _M_extract_num(__beg, __end, __mem, 0, 23, 2, __io, __tmperr); if (!__tmperr) { __tm->tm_hour = __mem; __state._M_have_I = 0; } break; case 'I': __beg = _M_extract_num(__beg, __end, __mem, 1, 12, 2, __io, __tmperr); if (!__tmperr) { __tm->tm_hour = __mem % 12; __state._M_have_I = 1; } break; case 'j': __beg = _M_extract_num(__beg, __end, __mem, 1, 366, 3, __io, __tmperr); if (!__tmperr) { __tm->tm_yday = __mem - 1; __state._M_have_yday = 1; } break; case 'm': __beg = _M_extract_num(__beg, __end, __mem, 1, 12, 2, __io, __tmperr); if (!__tmperr) { __tm->tm_mon = __mem - 1; __state._M_have_mon = 1; } break; case 'M': __beg = _M_extract_num(__beg, __end, __mem, 0, 59, 2, __io, __tmperr); if (!__tmperr) __tm->tm_min = __mem; break; case 'n': case 't': while (__beg != __end && __ctype.is(ctype_base::space, *__beg)) ++__beg; break; case 'p': const char_type* __ampm[2]; __tp._M_am_pm(&__ampm[0]); if (!__ampm[0][0] || !__ampm[1][0]) break; __beg = _M_extract_name(__beg, __end, __mem, __ampm, 2, __io, __tmperr); if (!__tmperr && __mem) __state._M_is_pm = 1; break; case 'r': const char_type* __ampm_format; __tp._M_am_pm_format(&__ampm_format); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __ampm_format, __state); break; case 'R': __cs = "%H:%M"; __ctype.widen(__cs, __cs + 6, __wcs); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __wcs, __state); break; case 'S': __beg = _M_extract_num(__beg, __end, __mem, 0, 60, 2, __io, __tmperr); if (!__tmperr) __tm->tm_sec = __mem; break; case 'T': __cs = "%H:%M:%S"; __ctype.widen(__cs, __cs + 9, __wcs); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __wcs, __state); break; case 'U': __beg = _M_extract_num(__beg, __end, __mem, 0, 53, 2, __io, __tmperr); if (!__tmperr) { __state._M_week_no = __mem; __state._M_have_uweek = 1; } break; case 'w': __beg = _M_extract_num(__beg, __end, __mem, 0, 6, 1, __io, __tmperr); if (!__tmperr) { __tm->tm_wday = __mem; __state._M_have_wday = 1; } break; case 'W': __beg = _M_extract_num(__beg, __end, __mem, 0, 53, 2, __io, __tmperr); if (!__tmperr) { __state._M_week_no = __mem; __state._M_have_wweek = 1; } break; case 'x': const char_type* __dates[2]; __tp._M_date_formats(__dates); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __dates[0], __state); break; case 'X': const char_type* __times[2]; __tp._M_time_formats(__times); __beg = _M_extract_via_format(__beg, __end, __io, __tmperr, __tm, __times[0], __state); break; case 'y': __beg = _M_extract_num(__beg, __end, __mem, 0, 99, 2, __io, __tmperr); if (!__tmperr) { __state._M_want_century = 1; __state._M_want_xday = 1; __c = 0; if (__beg != __end) __c = __ctype.narrow(*__beg, '*'); if (__c >= '0' && __c <= '9') { ++__beg; __mem = __mem * 10 + (__c - '0'); if (__beg != __end) { __c = __ctype.narrow(*__beg, '*'); if (__c >= '0' && __c <= '9') { ++__beg; __mem = __mem * 10 + (__c - '0'); } } __mem -= 1900; __state._M_want_century = 0; } else if (__mem < 69) __mem += 100; __tm->tm_year = __mem; } break; case 'Y': __beg = _M_extract_num(__beg, __end, __mem, 0, 9999, 4, __io, __tmperr); if (!__tmperr) { __tm->tm_year = __mem - 1900; __state._M_want_century = 0; __state._M_want_xday = 1; } break; case 'Z': if (__ctype.is(ctype_base::upper, *__beg)) { int __tmp; __beg = _M_extract_name(__beg, __end, __tmp, __timepunct_cache<_CharT>::_S_timezones, 14, __io, __tmperr); if (__beg != __end && !__tmperr && __tmp == 0 && (*__beg == __ctype.widen('-') || *__beg == __ctype.widen('+'))) { __beg = _M_extract_num(__beg, __end, __tmp, 0, 23, 2, __io, __tmperr); __beg = _M_extract_num(__beg, __end, __tmp, 0, 59, 2, __io, __tmperr); } } else __tmperr |= ios_base::failbit; break; case '%': if (*__beg == __ctype.widen('%')) ++__beg; else __tmperr |= ios_base::failbit; break; default: __tmperr |= ios_base::failbit; } } else if (__ctype.is(ctype_base::space, __format[__i])) { while (__beg != __end && __ctype.is(ctype_base::space, *__beg)) ++__beg; } else { if (__ctype.tolower(__format[__i]) == __ctype.tolower(*__beg) || __ctype.toupper(__format[__i]) == __ctype.toupper(*__beg)) ++__beg; else __tmperr |= ios_base::failbit; } } if (__tmperr || __i != __len) __err |= ios_base::failbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: _M_extract_via_format(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const _CharT* __format) const { __time_get_state __state = __time_get_state(); return _M_extract_via_format(__beg, __end, __io, __err, __tm, __format, __state); } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: _M_extract_num(iter_type __beg, iter_type __end, int& __member, int __min, int __max, size_t __len, ios_base& __io, ios_base::iostate& __err) const { const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); size_t __i = 0; int __value = 0; for (; __beg != __end && __i < __len; ++__beg, (void)++__i) { const char __c = __ctype.narrow(*__beg, '*'); if (__c >= '0' && __c <= '9') { __value = __value * 10 + (__c - '0'); if (__value > __max) break; } else break; } if (__i && __value >= __min && __value <= __max) __member = __value; else __err |= ios_base::failbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: _M_extract_name(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const { typedef char_traits<_CharT> __traits_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); size_t* __matches = static_cast<size_t*>(__builtin_alloca(2 * sizeof(size_t) * __indexlen)); size_t* __lengths = __matches + __indexlen; size_t __nmatches = 0; size_t __pos = 0; bool __testvalid = true; const char_type* __name; bool __begupdated = false; if (__beg != __end) { const char_type __c = *__beg; const char_type __cl = __ctype.tolower(__c); const char_type __cu = __ctype.toupper(__c); for (size_t __i1 = 0; __i1 < __indexlen; ++__i1) if (__cl == __ctype.tolower(__names[__i1][0]) || __cu == __ctype.toupper(__names[__i1][0])) { __lengths[__nmatches] = __traits_type::length(__names[__i1]); __matches[__nmatches++] = __i1; } } while (__nmatches > 1) { size_t __minlen = __lengths[0]; for (size_t __i2 = 1; __i2 < __nmatches; ++__i2) __minlen = std::min(__minlen, __lengths[__i2]); ++__pos; ++__beg; if (__pos == __minlen) { bool __match_longer = false; if (__beg != __end) { const char_type __cl = __ctype.tolower(*__beg); const char_type __cu = __ctype.toupper(*__beg); for (size_t __i3 = 0; __i3 < __nmatches; ++__i3) { __name = __names[__matches[__i3]]; if (__lengths[__i3] > __pos && (__ctype.tolower(__name[__pos]) == __cl || __ctype.toupper(__name[__pos]) == __cu)) { __match_longer = true; break; } } } for (size_t __i4 = 0; __i4 < __nmatches;) if (__match_longer == (__lengths[__i4] == __pos)) { __matches[__i4] = __matches[--__nmatches]; __lengths[__i4] = __lengths[__nmatches]; } else ++__i4; if (__match_longer) { __minlen = __lengths[0]; for (size_t __i5 = 1; __i5 < __nmatches; ++__i5) __minlen = std::min(__minlen, __lengths[__i5]); } else { if (__nmatches == 2 && (__indexlen & 1) == 0) { if (__matches[0] < __indexlen / 2) { if (__matches[1] == __matches[0] + __indexlen / 2) __nmatches = 1; } else if (__matches[1] == __matches[0] - __indexlen / 2) { __matches[0] = __matches[1]; __lengths[0] = __lengths[1]; __nmatches = 1; } } __begupdated = true; break; } } if (__pos < __minlen && __beg != __end) { const char_type __cl = __ctype.tolower(*__beg); const char_type __cu = __ctype.toupper(*__beg); for (size_t __i6 = 0; __i6 < __nmatches;) { __name = __names[__matches[__i6]]; if (__ctype.tolower(__name[__pos]) != __cl && __ctype.toupper(__name[__pos]) != __cu) { __matches[__i6] = __matches[--__nmatches]; __lengths[__i6] = __lengths[__nmatches]; } else ++__i6; } } else break; } if (__nmatches == 1) { if (!__begupdated) { ++__beg; ++__pos; } __name = __names[__matches[0]]; const size_t __len = __lengths[0]; while (__pos < __len && __beg != __end && (__ctype.tolower(__name[__pos]) == __ctype.tolower(*__beg) || (__ctype.toupper(__name[__pos]) == __ctype.toupper(*__beg)))) ++__beg, (void)++__pos; if (__len == __pos) __member = __matches[0]; else __testvalid = false; } else __testvalid = false; if (!__testvalid) __err |= ios_base::failbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: _M_extract_wday_or_month(iter_type __beg, iter_type __end, int& __member, const _CharT** __names, size_t __indexlen, ios_base& __io, ios_base::iostate& __err) const { typedef char_traits<_CharT> __traits_type; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); int* __matches = static_cast<int*>(__builtin_alloca(2 * sizeof(int) * __indexlen)); size_t __nmatches = 0; size_t* __matches_lengths = 0; size_t __pos = 0; if (__beg != __end) { const char_type __c = *__beg; for (size_t __i = 0; __i < 2 * __indexlen; ++__i) if (__c == __names[__i][0] || __c == __ctype.toupper(__names[__i][0])) __matches[__nmatches++] = __i; } if (__nmatches) { ++__beg; ++__pos; __matches_lengths = static_cast<size_t*>(__builtin_alloca(sizeof(size_t) * __nmatches)); for (size_t __i = 0; __i < __nmatches; ++__i) __matches_lengths[__i] = __traits_type::length(__names[__matches[__i]]); } for (; __beg != __end; ++__beg, (void)++__pos) { size_t __nskipped = 0; const char_type __c = *__beg; for (size_t __i = 0; __i < __nmatches;) { const char_type* __name = __names[__matches[__i]]; if (__pos >= __matches_lengths[__i]) ++__nskipped, ++__i; else if (!(__name[__pos] == __c)) { --__nmatches; __matches[__i] = __matches[__nmatches]; __matches_lengths[__i] = __matches_lengths[__nmatches]; } else ++__i; } if (__nskipped == __nmatches) break; } if ((__nmatches == 1 && __matches_lengths[0] == __pos) || (__nmatches == 2 && (__matches_lengths[0] == __pos || __matches_lengths[1] == __pos))) __member = (__matches[0] >= (int)__indexlen ? __matches[0] - (int)__indexlen : __matches[0]); else __err |= ios_base::failbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: do_get_time(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const char_type* __times[2]; __tp._M_time_formats(__times); __time_get_state __state = __time_get_state(); __beg = _M_extract_via_format(__beg, __end, __io, __err, __tm, __times[0], __state); __state._M_finalize_state(__tm); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: do_get_date(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const char_type* __dates[2]; __tp._M_date_formats(__dates); __time_get_state __state = __time_get_state(); __beg = _M_extract_via_format(__beg, __end, __io, __err, __tm, __dates[0], __state); __state._M_finalize_state(__tm); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: do_get_weekday(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const char_type* __days[14]; __tp._M_days_abbreviated(__days); __tp._M_days(__days + 7); int __tmpwday; ios_base::iostate __tmperr = ios_base::goodbit; __beg = _M_extract_wday_or_month(__beg, __end, __tmpwday, __days, 7, __io, __tmperr); if (!__tmperr) __tm->tm_wday = __tmpwday; else __err |= ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: do_get_monthname(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { const locale& __loc = __io._M_getloc(); const __timepunct<_CharT>& __tp = use_facet<__timepunct<_CharT> >(__loc); const char_type* __months[24]; __tp._M_months_abbreviated(__months); __tp._M_months(__months + 12); int __tmpmon; ios_base::iostate __tmperr = ios_base::goodbit; __beg = _M_extract_wday_or_month(__beg, __end, __tmpmon, __months, 12, __io, __tmperr); if (!__tmperr) __tm->tm_mon = __tmpmon; else __err |= ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> _InIter time_get<_CharT, _InIter>:: do_get_year(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm) const { int __tmpyear; ios_base::iostate __tmperr = ios_base::goodbit; const locale& __loc = __io._M_getloc(); const ctype<_CharT>& __ctype = use_facet<ctype<_CharT> >(__loc); __beg = _M_extract_num(__beg, __end, __tmpyear, 0, 99, 2, __io, __tmperr); if (!__tmperr) { char __c = 0; if (__beg != __end) __c = __ctype.narrow(*__beg, '*'); if (__c >= '0' && __c <= '9') { ++__beg; __tmpyear = __tmpyear * 10 + (__c - '0'); if (__beg != __end) { __c = __ctype.narrow(*__beg, '*'); if (__c >= '0' && __c <= '9') { ++__beg; __tmpyear = __tmpyear * 10 + (__c - '0'); } } __tmpyear -= 1900; } else if (__tmpyear < 69) __tmpyear += 100; __tm->tm_year = __tmpyear; } else __err |= ios_base::failbit; if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _InIter> inline _InIter time_get<_CharT, _InIter>:: get(iter_type __s, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, const char_type* __fmt, const char_type* __fmtend) const { const locale& __loc = __io._M_getloc(); ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); __err = ios_base::goodbit; bool __use_state = false; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpmf-conversions" if ((void*)(this->*(&time_get::do_get)) == (void*)(&time_get::do_get)) __use_state = true; #pragma GCC diagnostic pop __time_get_state __state = __time_get_state(); while (__fmt != __fmtend && __err == ios_base::goodbit) { if (__s == __end) { __err = ios_base::eofbit | ios_base::failbit; break; } else if (__ctype.narrow(*__fmt, 0) == '%') { const char_type* __fmt_start = __fmt; char __format; char __mod = 0; if (++__fmt == __fmtend) { __err = ios_base::failbit; break; } const char __c = __ctype.narrow(*__fmt, 0); if (__c != 'E' && __c != 'O') __format = __c; else if (++__fmt != __fmtend) { __mod = __c; __format = __ctype.narrow(*__fmt, 0); } else { __err = ios_base::failbit; break; } if (__use_state) { char_type __new_fmt[4]; __new_fmt[0] = __fmt_start[0]; __new_fmt[1] = __fmt_start[1]; if (__mod) { __new_fmt[2] = __fmt_start[2]; __new_fmt[3] = char_type(); } else __new_fmt[2] = char_type(); __s = _M_extract_via_format(__s, __end, __io, __err, __tm, __new_fmt, __state); if (__s == __end) __err |= ios_base::eofbit; } else __s = this->do_get(__s, __end, __io, __err, __tm, __format, __mod); ++__fmt; } else if (__ctype.is(ctype_base::space, *__fmt)) { ++__fmt; while (__fmt != __fmtend && __ctype.is(ctype_base::space, *__fmt)) ++__fmt; while (__s != __end && __ctype.is(ctype_base::space, *__s)) ++__s; } else if (__ctype.tolower(*__s) == __ctype.tolower(*__fmt) || __ctype.toupper(*__s) == __ctype.toupper(*__fmt)) { ++__s; ++__fmt; } else { __err = ios_base::failbit; break; } } if (__use_state) __state._M_finalize_state(__tm); return __s; } template<typename _CharT, typename _InIter> inline _InIter time_get<_CharT, _InIter>:: do_get(iter_type __beg, iter_type __end, ios_base& __io, ios_base::iostate& __err, tm* __tm, char __format, char __mod) const { const locale& __loc = __io._M_getloc(); ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); __err = ios_base::goodbit; char_type __fmt[4]; __fmt[0] = __ctype.widen('%'); if (!__mod) { __fmt[1] = __format; __fmt[2] = char_type(); } else { __fmt[1] = __mod; __fmt[2] = __format; __fmt[3] = char_type(); } __time_get_state __state = __time_get_state(); __beg = _M_extract_via_format(__beg, __end, __io, __err, __tm, __fmt, __state); __state._M_finalize_state(__tm); if (__beg == __end) __err |= ios_base::eofbit; return __beg; } template<typename _CharT, typename _OutIter> _OutIter time_put<_CharT, _OutIter>:: put(iter_type __s, ios_base& __io, char_type __fill, const tm* __tm, const _CharT* __beg, const _CharT* __end) const { const locale& __loc = __io._M_getloc(); ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); for (; __beg != __end; ++__beg) if (__ctype.narrow(*__beg, 0) != '%') { *__s = *__beg; ++__s; } else if (++__beg != __end) { char __format; char __mod = 0; const char __c = __ctype.narrow(*__beg, 0); if (__c != 'E' && __c != 'O') __format = __c; else if (++__beg != __end) { __mod = __c; __format = __ctype.narrow(*__beg, 0); } else break; __s = this->do_put(__s, __io, __fill, __tm, __format, __mod); } else break; return __s; } template<typename _CharT, typename _OutIter> _OutIter time_put<_CharT, _OutIter>:: do_put(iter_type __s, ios_base& __io, char_type, const tm* __tm, char __format, char __mod) const { const locale& __loc = __io._M_getloc(); ctype<_CharT> const& __ctype = use_facet<ctype<_CharT> >(__loc); __timepunct<_CharT> const& __tp = use_facet<__timepunct<_CharT> >(__loc); const size_t __maxlen = 128; char_type __res[__maxlen]; char_type __fmt[4]; __fmt[0] = __ctype.widen('%'); if (!__mod) { __fmt[1] = __format; __fmt[2] = char_type(); } else { __fmt[1] = __mod; __fmt[2] = __format; __fmt[3] = char_type(); } __tp._M_put(__res, __maxlen, __fmt, __tm); return std::__write(__s, __res, char_traits<char_type>::length(__res)); } extern template class moneypunct<char, false>; extern template class moneypunct<char, true>; extern template class moneypunct_byname<char, false>; extern template class moneypunct_byname<char, true>; extern template class __cxx11:: money_get<char>; extern template class __cxx11:: money_put<char>; extern template class __timepunct<char>; extern template class time_put<char>; extern template class time_put_byname<char>; extern template class time_get<char>; extern template class time_get_byname<char>; extern template class messages<char>; extern template class messages_byname<char>; extern template const moneypunct<char, true>* __try_use_facet<moneypunct<char, true> >(const locale&) noexcept; extern template const moneypunct<char, false>* __try_use_facet<moneypunct<char, false> >(const locale&) noexcept; extern template const money_put<char>* __try_use_facet<money_put<char> >(const locale&) noexcept; extern template const money_get<char>* __try_use_facet<money_get<char> >(const locale&) noexcept; extern template const __timepunct<char>* __try_use_facet<__timepunct<char> >(const locale&) noexcept; extern template const time_put<char>* __try_use_facet<time_put<char> >(const locale&) noexcept; extern template const time_get<char>* __try_use_facet<time_get<char> >(const locale&) noexcept; extern template const messages<char>* __try_use_facet<messages<char> >(const locale&) noexcept; extern template const moneypunct<char, true>& use_facet<moneypunct<char, true> >(const locale&); extern template const moneypunct<char, false>& use_facet<moneypunct<char, false> >(const locale&); extern template const money_put<char>& use_facet<money_put<char> >(const locale&); extern template const money_get<char>& use_facet<money_get<char> >(const locale&); extern template const __timepunct<char>& use_facet<__timepunct<char> >(const locale&); extern template const time_put<char>& use_facet<time_put<char> >(const locale&); extern template const time_get<char>& use_facet<time_get<char> >(const locale&); extern template const messages<char>& use_facet<messages<char> >(const locale&); extern template bool has_facet<moneypunct<char> >(const locale&); extern template bool has_facet<money_put<char> >(const locale&); extern template bool has_facet<money_get<char> >(const locale&); extern template bool has_facet<__timepunct<char> >(const locale&); extern template bool has_facet<time_put<char> >(const locale&); extern template bool has_facet<time_get<char> >(const locale&); extern template bool has_facet<messages<char> >(const locale&); extern template class moneypunct<wchar_t, false>; extern template class moneypunct<wchar_t, true>; extern template class moneypunct_byname<wchar_t, false>; extern template class moneypunct_byname<wchar_t, true>; extern template class __cxx11:: money_get<wchar_t>; extern template class __cxx11:: money_put<wchar_t>; extern template class __timepunct<wchar_t>; extern template class time_put<wchar_t>; extern template class time_put_byname<wchar_t>; extern template class time_get<wchar_t>; extern template class time_get_byname<wchar_t>; extern template class messages<wchar_t>; extern template class messages_byname<wchar_t>; extern template const moneypunct<wchar_t, true>* __try_use_facet<moneypunct<wchar_t, true> >(const locale&) noexcept; extern template const moneypunct<wchar_t, false>* __try_use_facet<moneypunct<wchar_t, false> >(const locale&) noexcept; extern template const money_put<wchar_t>* __try_use_facet<money_put<wchar_t> >(const locale&) noexcept; extern template const money_get<wchar_t>* __try_use_facet<money_get<wchar_t> >(const locale&) noexcept; extern template const __timepunct<wchar_t>* __try_use_facet<__timepunct<wchar_t> >(const locale&) noexcept; extern template const time_put<wchar_t>* __try_use_facet<time_put<wchar_t> >(const locale&) noexcept; extern template const time_get<wchar_t>* __try_use_facet<time_get<wchar_t> >(const locale&) noexcept; extern template const messages<wchar_t>* __try_use_facet<messages<wchar_t> >(const locale&) noexcept; extern template const moneypunct<wchar_t, true>& use_facet<moneypunct<wchar_t, true> >(const locale&); extern template const moneypunct<wchar_t, false>& use_facet<moneypunct<wchar_t, false> >(const locale&); extern template const money_put<wchar_t>& use_facet<money_put<wchar_t> >(const locale&); extern template const money_get<wchar_t>& use_facet<money_get<wchar_t> >(const locale&); extern template const __timepunct<wchar_t>& use_facet<__timepunct<wchar_t> >(const locale&); extern template const time_put<wchar_t>& use_facet<time_put<wchar_t> >(const locale&); extern template const time_get<wchar_t>& use_facet<time_get<wchar_t> >(const locale&); extern template const messages<wchar_t>& use_facet<messages<wchar_t> >(const locale&); extern template bool has_facet<moneypunct<wchar_t> >(const locale&); extern template bool has_facet<money_put<wchar_t> >(const locale&); extern template bool has_facet<money_get<wchar_t> >(const locale&); extern template bool has_facet<__timepunct<wchar_t> >(const locale&); extern template bool has_facet<time_put<wchar_t> >(const locale&); extern template bool has_facet<time_get<wchar_t> >(const locale&); extern template bool has_facet<messages<wchar_t> >(const locale&); } # 2070 "/usr/include/c++/13/bits/locale_facets_nonio.h" 2 3 # 44 "/usr/include/c++/13/locale" 2 3 # 1 "/usr/include/c++/13/bits/locale_conv.h" 1 3 # 42 "/usr/include/c++/13/bits/locale_conv.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _OutStr, typename _InChar, typename _Codecvt, typename _State, typename _Fn> bool __do_str_codecvt(const _InChar* __first, const _InChar* __last, _OutStr& __outstr, const _Codecvt& __cvt, _State& __state, size_t& __count, _Fn __fn) { if (__first == __last) { __outstr.clear(); __count = 0; return true; } size_t __outchars = 0; auto __next = __first; const auto __maxlen = __cvt.max_length() + 1; codecvt_base::result __result; do { __outstr.resize(__outstr.size() + (__last - __next) * __maxlen); auto __outnext = &__outstr.front() + __outchars; auto const __outlast = &__outstr.back() + 1; __result = (__cvt.*__fn)(__state, __next, __last, __next, __outnext, __outlast, __outnext); __outchars = __outnext - &__outstr.front(); } while (__result == codecvt_base::partial && __next != __last && ptrdiff_t(__outstr.size() - __outchars) < __maxlen); if (__result == codecvt_base::error) { __count = __next - __first; return false; } if constexpr (is_same<typename _Codecvt::intern_type, typename _Codecvt::extern_type>()) if (__result == codecvt_base::noconv) { __outstr.assign(__first, __last); __count = __last - __first; return true; } __outstr.resize(__outchars); __count = __next - __first; return true; } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_in(const char* __first, const char* __last, basic_string<_CharT, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char, _State>& __cvt, _State& __state, size_t& __count) { using _Codecvt = codecvt<_CharT, char, _State>; using _ConvFn = codecvt_base::result (_Codecvt::*)(_State&, const char*, const char*, const char*&, _CharT*, _CharT*, _CharT*&) const; _ConvFn __fn = &codecvt<_CharT, char, _State>::in; return __do_str_codecvt(__first, __last, __outstr, __cvt, __state, __count, __fn); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_in(const char* __first, const char* __last, basic_string<_CharT, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char, _State>& __cvt) { _State __state = {}; size_t __n; return __str_codecvt_in(__first, __last, __outstr, __cvt, __state, __n); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_in_all(const char* __first, const char* __last, basic_string<_CharT, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char, _State>& __cvt) { _State __state = {}; size_t __n; return __str_codecvt_in(__first, __last, __outstr, __cvt, __state, __n) && (__n == size_t(__last - __first)); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_out(const _CharT* __first, const _CharT* __last, basic_string<char, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char, _State>& __cvt, _State& __state, size_t& __count) { using _Codecvt = codecvt<_CharT, char, _State>; using _ConvFn = codecvt_base::result (_Codecvt::*)(_State&, const _CharT*, const _CharT*, const _CharT*&, char*, char*, char*&) const; _ConvFn __fn = &codecvt<_CharT, char, _State>::out; return __do_str_codecvt(__first, __last, __outstr, __cvt, __state, __count, __fn); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_out(const _CharT* __first, const _CharT* __last, basic_string<char, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char, _State>& __cvt) { _State __state = {}; size_t __n; return __str_codecvt_out(__first, __last, __outstr, __cvt, __state, __n); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_out_all(const _CharT* __first, const _CharT* __last, basic_string<char, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char, _State>& __cvt) { _State __state = {}; size_t __n; return __str_codecvt_out(__first, __last, __outstr, __cvt, __state, __n) && (__n == size_t(__last - __first)); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_out(const _CharT* __first, const _CharT* __last, basic_string<char8_t, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char8_t, _State>& __cvt, _State& __state, size_t& __count) { using _Codecvt = codecvt<_CharT, char8_t, _State>; using _ConvFn = codecvt_base::result (_Codecvt::*)(_State&, const _CharT*, const _CharT*, const _CharT*&, char8_t*, char8_t*, char8_t*&) const; _ConvFn __fn = &codecvt<_CharT, char8_t, _State>::out; return __do_str_codecvt(__first, __last, __outstr, __cvt, __state, __count, __fn); } template<typename _CharT, typename _Traits, typename _Alloc, typename _State> inline bool __str_codecvt_out(const _CharT* __first, const _CharT* __last, basic_string<char8_t, _Traits, _Alloc>& __outstr, const codecvt<_CharT, char8_t, _State>& __cvt) { _State __state = {}; size_t __n; return __str_codecvt_out(__first, __last, __outstr, __cvt, __state, __n); } namespace __detail { template<typename _Tp> struct _Scoped_ptr { __attribute__((__nonnull__(2))) explicit _Scoped_ptr(_Tp* __ptr) noexcept : _M_ptr(__ptr) { } _Scoped_ptr(_Tp* __ptr, const char* __msg) : _M_ptr(__ptr) { if (!__ptr) __throw_logic_error(__msg); } ~_Scoped_ptr() { delete _M_ptr; } _Scoped_ptr(const _Scoped_ptr&) = delete; _Scoped_ptr& operator=(const _Scoped_ptr&) = delete; __attribute__((__returns_nonnull__)) _Tp* operator->() const noexcept { return _M_ptr; } _Tp& operator*() const noexcept { return *_M_ptr; } private: _Tp* _M_ptr; }; } namespace __cxx11 { template<typename _Codecvt, typename _Elem = wchar_t, typename _Wide_alloc = allocator<_Elem>, typename _Byte_alloc = allocator<char>> class wstring_convert { public: typedef basic_string<char, char_traits<char>, _Byte_alloc> byte_string; typedef basic_string<_Elem, char_traits<_Elem>, _Wide_alloc> wide_string; typedef typename _Codecvt::state_type state_type; typedef typename wide_string::traits_type::int_type int_type; wstring_convert() : _M_cvt(new _Codecvt()) { } explicit wstring_convert(_Codecvt* __pcvt) : _M_cvt(__pcvt, "wstring_convert") { } # 291 "/usr/include/c++/13/bits/locale_conv.h" 3 wstring_convert(_Codecvt* __pcvt, state_type __state) : _M_cvt(__pcvt, "wstring_convert"), _M_state(__state), _M_with_cvtstate(true) { } explicit wstring_convert(const byte_string& __byte_err, const wide_string& __wide_err = wide_string()) : _M_cvt(new _Codecvt), _M_byte_err_string(__byte_err), _M_wide_err_string(__wide_err), _M_with_strings(true) { } ~wstring_convert() = default; wstring_convert(const wstring_convert&) = delete; wstring_convert& operator=(const wstring_convert&) = delete; wide_string from_bytes(char __byte) { char __bytes[2] = { __byte }; return from_bytes(__bytes, __bytes+1); } wide_string from_bytes(const char* __ptr) { return from_bytes(__ptr, __ptr+char_traits<char>::length(__ptr)); } wide_string from_bytes(const byte_string& __str) { auto __ptr = __str.data(); return from_bytes(__ptr, __ptr + __str.size()); } wide_string from_bytes(const char* __first, const char* __last) { if (!_M_with_cvtstate) _M_state = state_type(); wide_string __out{ _M_wide_err_string.get_allocator() }; if (__str_codecvt_in(__first, __last, __out, *_M_cvt, _M_state, _M_count)) return __out; if (_M_with_strings) return _M_wide_err_string; __throw_range_error("wstring_convert::from_bytes"); } byte_string to_bytes(_Elem __wchar) { _Elem __wchars[2] = { __wchar }; return to_bytes(__wchars, __wchars+1); } byte_string to_bytes(const _Elem* __ptr) { return to_bytes(__ptr, __ptr+wide_string::traits_type::length(__ptr)); } byte_string to_bytes(const wide_string& __wstr) { auto __ptr = __wstr.data(); return to_bytes(__ptr, __ptr + __wstr.size()); } byte_string to_bytes(const _Elem* __first, const _Elem* __last) { if (!_M_with_cvtstate) _M_state = state_type(); byte_string __out{ _M_byte_err_string.get_allocator() }; if (__str_codecvt_out(__first, __last, __out, *_M_cvt, _M_state, _M_count)) return __out; if (_M_with_strings) return _M_byte_err_string; __throw_range_error("wstring_convert::to_bytes"); } size_t converted() const noexcept { return _M_count; } state_type state() const { return _M_state; } private: __detail::_Scoped_ptr<_Codecvt> _M_cvt; byte_string _M_byte_err_string; wide_string _M_wide_err_string; state_type _M_state = state_type(); size_t _M_count = 0; bool _M_with_cvtstate = false; bool _M_with_strings = false; }; } template<typename _Codecvt, typename _Elem = wchar_t, typename _Tr = char_traits<_Elem>> class wbuffer_convert : public basic_streambuf<_Elem, _Tr> { typedef basic_streambuf<_Elem, _Tr> _Wide_streambuf; public: typedef typename _Codecvt::state_type state_type; wbuffer_convert() : wbuffer_convert(nullptr) { } # 427 "/usr/include/c++/13/bits/locale_conv.h" 3 explicit wbuffer_convert(streambuf* __bytebuf, _Codecvt* __pcvt = new _Codecvt, state_type __state = state_type()) : _M_buf(__bytebuf), _M_cvt(__pcvt, "wbuffer_convert"), _M_state(__state), _M_always_noconv(_M_cvt->always_noconv()) { if (_M_buf) { this->setp(_M_put_area, _M_put_area + _S_buffer_length); this->setg(_M_get_area + _S_putback_length, _M_get_area + _S_putback_length, _M_get_area + _S_putback_length); } } ~wbuffer_convert() = default; wbuffer_convert(const wbuffer_convert&) = delete; wbuffer_convert& operator=(const wbuffer_convert&) = delete; streambuf* rdbuf() const noexcept { return _M_buf; } streambuf* rdbuf(streambuf *__bytebuf) noexcept { auto __prev = _M_buf; _M_buf = __bytebuf; return __prev; } state_type state() const noexcept { return _M_state; } protected: int sync() { return _M_buf && _M_conv_put() && !_M_buf->pubsync() ? 0 : -1; } typename _Wide_streambuf::int_type overflow(typename _Wide_streambuf::int_type __out) { if (!_M_buf || !_M_conv_put()) return _Tr::eof(); else if (!_Tr::eq_int_type(__out, _Tr::eof())) return this->sputc(__out); return _Tr::not_eof(__out); } typename _Wide_streambuf::int_type underflow() { if (!_M_buf) return _Tr::eof(); if (this->gptr() < this->egptr() || (_M_buf && _M_conv_get())) return _Tr::to_int_type(*this->gptr()); else return _Tr::eof(); } streamsize xsputn(const typename _Wide_streambuf::char_type* __s, streamsize __n) { if (!_M_buf || __n == 0) return 0; streamsize __done = 0; do { auto __nn = std::min<streamsize>(this->epptr() - this->pptr(), __n - __done); _Tr::copy(this->pptr(), __s + __done, __nn); this->pbump(__nn); __done += __nn; } while (__done < __n && _M_conv_put()); return __done; } private: bool _M_conv_get() { const streamsize __pb1 = this->gptr() - this->eback(); const streamsize __pb2 = _S_putback_length; const streamsize __npb = std::min(__pb1, __pb2); _Tr::move(_M_get_area + _S_putback_length - __npb, this->gptr() - __npb, __npb); streamsize __nbytes = sizeof(_M_get_buf) - _M_unconv; __nbytes = std::min(__nbytes, _M_buf->in_avail()); if (__nbytes < 1) __nbytes = 1; __nbytes = _M_buf->sgetn(_M_get_buf + _M_unconv, __nbytes); if (__nbytes < 1) return false; __nbytes += _M_unconv; _Elem* __outbuf = _M_get_area + _S_putback_length; _Elem* __outnext = __outbuf; const char* __bnext = _M_get_buf; codecvt_base::result __result; if (_M_always_noconv) __result = codecvt_base::noconv; else { _Elem* __outend = _M_get_area + _S_buffer_length; __result = _M_cvt->in(_M_state, __bnext, __bnext + __nbytes, __bnext, __outbuf, __outend, __outnext); } if (__result == codecvt_base::noconv) { auto __get_buf = reinterpret_cast<const _Elem*>(_M_get_buf); _Tr::copy(__outbuf, __get_buf, __nbytes); _M_unconv = 0; return true; } if ((_M_unconv = _M_get_buf + __nbytes - __bnext)) char_traits<char>::move(_M_get_buf, __bnext, _M_unconv); this->setg(__outbuf, __outbuf, __outnext); return __result != codecvt_base::error; } bool _M_put(...) { return false; } bool _M_put(const char* __p, streamsize __n) { if (_M_buf->sputn(__p, __n) < __n) return false; return true; } bool _M_conv_put() { _Elem* const __first = this->pbase(); const _Elem* const __last = this->pptr(); const streamsize __pending = __last - __first; if (_M_always_noconv) return _M_put(__first, __pending); char __outbuf[2 * _S_buffer_length]; const _Elem* __next = __first; const _Elem* __start; do { __start = __next; char* __outnext = __outbuf; char* const __outlast = __outbuf + sizeof(__outbuf); auto __result = _M_cvt->out(_M_state, __next, __last, __next, __outnext, __outlast, __outnext); if (__result == codecvt_base::error) return false; else if (__result == codecvt_base::noconv) return _M_put(__next, __pending); if (!_M_put(__outbuf, __outnext - __outbuf)) return false; } while (__next != __last && __next != __start); if (__next != __last) _Tr::move(__first, __next, __last - __next); this->pbump(__first - __next); return __next != __first; } streambuf* _M_buf; __detail::_Scoped_ptr<_Codecvt> _M_cvt; state_type _M_state; static const streamsize _S_buffer_length = 32; static const streamsize _S_putback_length = 3; _Elem _M_put_area[_S_buffer_length]; _Elem _M_get_area[_S_buffer_length]; streamsize _M_unconv = 0; char _M_get_buf[_S_buffer_length-_S_putback_length]; bool _M_always_noconv; }; } # 46 "/usr/include/c++/13/locale" 2 3 # 46 "/usr/include/c++/13/iomanip" 2 3 # 1 "/usr/include/c++/13/bits/quoted_string.h" 1 3 # 33 "/usr/include/c++/13/bits/quoted_string.h" 3 # 34 "/usr/include/c++/13/bits/quoted_string.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { template<typename _String, typename _CharT> struct _Quoted_string { static_assert(is_reference<_String>::value || is_pointer<_String>::value, "String type must be pointer or reference"); _Quoted_string(_String __str, _CharT __del, _CharT __esc) : _M_string(__str), _M_delim{__del}, _M_escape{__esc} { } _Quoted_string& operator=(_Quoted_string&) = delete; _String _M_string; _CharT _M_delim; _CharT _M_escape; }; template<typename _CharT, typename _Traits> struct _Quoted_string<basic_string_view<_CharT, _Traits>, _CharT> { _Quoted_string(basic_string_view<_CharT, _Traits> __str, _CharT __del, _CharT __esc) : _M_string(__str), _M_delim{__del}, _M_escape{__esc} { } _Quoted_string& operator=(_Quoted_string&) = delete; basic_string_view<_CharT, _Traits> _M_string; _CharT _M_delim; _CharT _M_escape; }; template<typename _CharT, typename _Traits> std::basic_ostream<_CharT, _Traits>& operator<<(std::basic_ostream<_CharT, _Traits>& __os, const _Quoted_string<const _CharT*, _CharT>& __str) { std::basic_ostringstream<_CharT, _Traits> __ostr; __ostr << __str._M_delim; for (const _CharT* __c = __str._M_string; *__c; ++__c) { if (*__c == __str._M_delim || *__c == __str._M_escape) __ostr << __str._M_escape; __ostr << *__c; } __ostr << __str._M_delim; return __os << __ostr.str(); } template<typename _CharT, typename _Traits, typename _String> std::basic_ostream<_CharT, _Traits>& operator<<(std::basic_ostream<_CharT, _Traits>& __os, const _Quoted_string<_String, _CharT>& __str) { std::basic_ostringstream<_CharT, _Traits> __ostr; __ostr << __str._M_delim; for (auto __c : __str._M_string) { if (__c == __str._M_delim || __c == __str._M_escape) __ostr << __str._M_escape; __ostr << __c; } __ostr << __str._M_delim; return __os << __ostr.str(); } template<typename _CharT, typename _Traits, typename _Alloc> std::basic_istream<_CharT, _Traits>& operator>>(std::basic_istream<_CharT, _Traits>& __is, const _Quoted_string<basic_string<_CharT, _Traits, _Alloc>&, _CharT>& __str) { _CharT __c; __is >> __c; if (!__is.good()) return __is; if (__c != __str._M_delim) { __is.unget(); __is >> __str._M_string; return __is; } __str._M_string.clear(); std::ios_base::fmtflags __flags = __is.flags(__is.flags() & ~std::ios_base::skipws); do { __is >> __c; if (!__is.good()) break; if (__c == __str._M_escape) { __is >> __c; if (!__is.good()) break; } else if (__c == __str._M_delim) break; __str._M_string += __c; } while (true); __is.setf(__flags); return __is; } } } # 48 "/usr/include/c++/13/iomanip" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct _Resetiosflags { ios_base::fmtflags _M_mask; }; # 67 "/usr/include/c++/13/iomanip" 3 inline _Resetiosflags resetiosflags(ios_base::fmtflags __mask) { return { __mask }; } template<typename _CharT, typename _Traits> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f) { __is.setf(ios_base::fmtflags(0), __f._M_mask); return __is; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Resetiosflags __f) { __os.setf(ios_base::fmtflags(0), __f._M_mask); return __os; } struct _Setiosflags { ios_base::fmtflags _M_mask; }; # 97 "/usr/include/c++/13/iomanip" 3 inline _Setiosflags setiosflags(ios_base::fmtflags __mask) { return { __mask }; } template<typename _CharT, typename _Traits> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f) { __is.setf(__f._M_mask); return __is; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setiosflags __f) { __os.setf(__f._M_mask); return __os; } struct _Setbase { int _M_base; }; # 128 "/usr/include/c++/13/iomanip" 3 inline _Setbase setbase(int __base) { return { __base }; } template<typename _CharT, typename _Traits> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f) { __is.setf(__f._M_base == 8 ? ios_base::oct : __f._M_base == 10 ? ios_base::dec : __f._M_base == 16 ? ios_base::hex : ios_base::fmtflags(0), ios_base::basefield); return __is; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setbase __f) { __os.setf(__f._M_base == 8 ? ios_base::oct : __f._M_base == 10 ? ios_base::dec : __f._M_base == 16 ? ios_base::hex : ios_base::fmtflags(0), ios_base::basefield); return __os; } template<typename _CharT> struct _Setfill { _CharT _M_c; }; # 165 "/usr/include/c++/13/iomanip" 3 template<typename _CharT> inline _Setfill<_CharT> setfill(_CharT __c) { return { __c }; } template<typename _CharT, typename _Traits> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f) { __is.fill(__f._M_c); return __is; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setfill<_CharT> __f) { __os.fill(__f._M_c); return __os; } struct _Setprecision { int _M_n; }; # 196 "/usr/include/c++/13/iomanip" 3 inline _Setprecision setprecision(int __n) { return { __n }; } template<typename _CharT, typename _Traits> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f) { __is.precision(__f._M_n); return __is; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setprecision __f) { __os.precision(__f._M_n); return __os; } struct _Setw { int _M_n; }; # 226 "/usr/include/c++/13/iomanip" 3 inline _Setw setw(int __n) { return { __n }; } template<typename _CharT, typename _Traits> inline basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Setw __f) { __is.width(__f._M_n); return __is; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Setw __f) { __os.width(__f._M_n); return __os; } template<typename _MoneyT> struct _Get_money { _MoneyT& _M_mon; bool _M_intl; }; # 259 "/usr/include/c++/13/iomanip" 3 template<typename _MoneyT> inline _Get_money<_MoneyT> get_money(_MoneyT& __mon, bool __intl = false) { return { __mon, __intl }; } template<typename _CharT, typename _Traits, typename _MoneyT> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Get_money<_MoneyT> __f) { typename basic_istream<_CharT, _Traits>::sentry __cerb(__is, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { typedef istreambuf_iterator<_CharT, _Traits> _Iter; typedef money_get<_CharT, _Iter> _MoneyGet; const _MoneyGet& __mg = use_facet<_MoneyGet>(__is.getloc()); __mg.get(_Iter(__is.rdbuf()), _Iter(), __f._M_intl, __is, __err, __f._M_mon); } catch(__cxxabiv1::__forced_unwind&) { __is._M_setstate(ios_base::badbit); throw; } catch(...) { __is._M_setstate(ios_base::badbit); } if (__err) __is.setstate(__err); } return __is; } template<typename _MoneyT> struct _Put_money { const _MoneyT& _M_mon; bool _M_intl; }; # 306 "/usr/include/c++/13/iomanip" 3 template<typename _MoneyT> inline _Put_money<_MoneyT> put_money(const _MoneyT& __mon, bool __intl = false) { return { __mon, __intl }; } template<typename _CharT, typename _Traits, typename _MoneyT> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_money<_MoneyT> __f) { typename basic_ostream<_CharT, _Traits>::sentry __cerb(__os); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { typedef ostreambuf_iterator<_CharT, _Traits> _Iter; typedef money_put<_CharT, _Iter> _MoneyPut; const _MoneyPut& __mp = use_facet<_MoneyPut>(__os.getloc()); if (__mp.put(_Iter(__os.rdbuf()), __f._M_intl, __os, __os.fill(), __f._M_mon).failed()) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { __os._M_setstate(ios_base::badbit); throw; } catch(...) { __os._M_setstate(ios_base::badbit); } if (__err) __os.setstate(__err); } return __os; } template<typename _CharT> struct _Put_time { const std::tm* _M_tmb; const _CharT* _M_fmt; }; # 358 "/usr/include/c++/13/iomanip" 3 template<typename _CharT> inline _Put_time<_CharT> put_time(const std::tm* __tmb, const _CharT* __fmt) { return { __tmb, __fmt }; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, _Put_time<_CharT> __f) { typename basic_ostream<_CharT, _Traits>::sentry __cerb(__os); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { typedef ostreambuf_iterator<_CharT, _Traits> _Iter; typedef time_put<_CharT, _Iter> _TimePut; const _CharT* const __fmt_end = __f._M_fmt + _Traits::length(__f._M_fmt); const _TimePut& __mp = use_facet<_TimePut>(__os.getloc()); if (__mp.put(_Iter(__os.rdbuf()), __os, __os.fill(), __f._M_tmb, __f._M_fmt, __fmt_end).failed()) __err |= ios_base::badbit; } catch(__cxxabiv1::__forced_unwind&) { __os._M_setstate(ios_base::badbit); throw; } catch(...) { __os._M_setstate(ios_base::badbit); } if (__err) __os.setstate(__err); } return __os; } template<typename _CharT> struct _Get_time { std::tm* _M_tmb; const _CharT* _M_fmt; }; # 413 "/usr/include/c++/13/iomanip" 3 template<typename _CharT> inline _Get_time<_CharT> get_time(std::tm* __tmb, const _CharT* __fmt) { return { __tmb, __fmt }; } template<typename _CharT, typename _Traits> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, _Get_time<_CharT> __f) { typename basic_istream<_CharT, _Traits>::sentry __cerb(__is, false); if (__cerb) { ios_base::iostate __err = ios_base::goodbit; try { typedef istreambuf_iterator<_CharT, _Traits> _Iter; typedef time_get<_CharT, _Iter> _TimeGet; const _CharT* const __fmt_end = __f._M_fmt + _Traits::length(__f._M_fmt); const _TimeGet& __mg = use_facet<_TimeGet>(__is.getloc()); __mg.get(_Iter(__is.rdbuf()), _Iter(), __is, __err, __f._M_tmb, __f._M_fmt, __fmt_end); } catch(__cxxabiv1::__forced_unwind&) { __is._M_setstate(ios_base::badbit); throw; } catch(...) { __is._M_setstate(ios_base::badbit); } if (__err) __is.setstate(__err); } return __is; } # 462 "/usr/include/c++/13/iomanip" 3 template<typename _CharT> inline auto quoted(const _CharT* __string, _CharT __delim = _CharT('"'), _CharT __escape = _CharT('\\')) { return __detail::_Quoted_string<const _CharT*, _CharT>(__string, __delim, __escape); } template<typename _CharT, typename _Traits, typename _Alloc> inline auto quoted(const basic_string<_CharT, _Traits, _Alloc>& __string, _CharT __delim = _CharT('"'), _CharT __escape = _CharT('\\')) { return __detail::_Quoted_string< const basic_string<_CharT, _Traits, _Alloc>&, _CharT>( __string, __delim, __escape); } template<typename _CharT, typename _Traits, typename _Alloc> inline auto quoted(basic_string<_CharT, _Traits, _Alloc>& __string, _CharT __delim = _CharT('"'), _CharT __escape = _CharT('\\')) { return __detail::_Quoted_string< basic_string<_CharT, _Traits, _Alloc>&, _CharT>( __string, __delim, __escape); } template<typename _CharT, typename _Traits> inline auto quoted(basic_string_view<_CharT, _Traits> __sv, _CharT __delim = _CharT('"'), _CharT __escape = _CharT('\\')) { return __detail::_Quoted_string< basic_string_view<_CharT, _Traits>, _CharT>(__sv, __delim, __escape); } # 511 "/usr/include/c++/13/iomanip" 3 extern template ostream& operator<<(ostream&, _Setfill<char>); extern template ostream& operator<<(ostream&, _Setiosflags); extern template ostream& operator<<(ostream&, _Resetiosflags); extern template ostream& operator<<(ostream&, _Setbase); extern template ostream& operator<<(ostream&, _Setprecision); extern template ostream& operator<<(ostream&, _Setw); extern template istream& operator>>(istream&, _Setfill<char>); extern template istream& operator>>(istream&, _Setiosflags); extern template istream& operator>>(istream&, _Resetiosflags); extern template istream& operator>>(istream&, _Setbase); extern template istream& operator>>(istream&, _Setprecision); extern template istream& operator>>(istream&, _Setw); extern template wostream& operator<<(wostream&, _Setfill<wchar_t>); extern template wostream& operator<<(wostream&, _Setiosflags); extern template wostream& operator<<(wostream&, _Resetiosflags); extern template wostream& operator<<(wostream&, _Setbase); extern template wostream& operator<<(wostream&, _Setprecision); extern template wostream& operator<<(wostream&, _Setw); extern template wistream& operator>>(wistream&, _Setfill<wchar_t>); extern template wistream& operator>>(wistream&, _Setiosflags); extern template wistream& operator>>(wistream&, _Resetiosflags); extern template wistream& operator>>(wistream&, _Setbase); extern template wistream& operator>>(wistream&, _Setprecision); extern template wistream& operator>>(wistream&, _Setw); } # 39 "/usr/include/c++/13/bits/chrono_io.h" 2 3 # 1 "/usr/include/c++/13/format" 1 3 # 32 "/usr/include/c++/13/format" 3 # 33 "/usr/include/c++/13/format" 3 # 1 "/usr/include/c++/13/charconv" 1 3 # 32 "/usr/include/c++/13/charconv" 3 # 33 "/usr/include/c++/13/charconv" 3 # 57 "/usr/include/c++/13/charconv" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct to_chars_result { char* ptr; errc ec; friend bool operator==(const to_chars_result&, const to_chars_result&) = default; }; struct from_chars_result { const char* ptr; errc ec; friend bool operator==(const from_chars_result&, const from_chars_result&) = default; }; namespace __detail { template<typename _Tp> using __integer_to_chars_result_type = enable_if_t<__or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>, is_same<char, remove_cv_t<_Tp>>>::value, to_chars_result>; template<typename _Tp> struct __to_chars_unsigned_type : __make_unsigned_selector_base { using _UInts = _List<unsigned int, unsigned long, unsigned long long , unsigned __int128 >; using type = typename __select<sizeof(_Tp), _UInts>::__type; }; template<typename _Tp> using __unsigned_least_t = typename __to_chars_unsigned_type<_Tp>::type; template<typename _Tp> constexpr unsigned __to_chars_len(_Tp __value, int __base ) noexcept; template<typename _Tp> constexpr unsigned __to_chars_len_2(_Tp __value) noexcept { return std::__bit_width(__value); } template<typename _Tp> constexpr to_chars_result __to_chars(char* __first, char* __last, _Tp __val, int __base) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); to_chars_result __res; const unsigned __len = __to_chars_len(__val, __base); if (__builtin_expect((__last - __first) < __len, 0)) { __res.ptr = __last; __res.ec = errc::value_too_large; return __res; } unsigned __pos = __len - 1; constexpr char __digits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' }; while (__val >= (unsigned)__base) { auto const __quo = __val / __base; auto const __rem = __val % __base; __first[__pos--] = __digits[__rem]; __val = __quo; } *__first = __digits[__val]; __res.ptr = __first + __len; __res.ec = {}; return __res; } template<typename _Tp> constexpr __integer_to_chars_result_type<_Tp> __to_chars_16(char* __first, char* __last, _Tp __val) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); to_chars_result __res; const unsigned __len = (__to_chars_len_2(__val) + 3) / 4; if (__builtin_expect((__last - __first) < __len, 0)) { __res.ptr = __last; __res.ec = errc::value_too_large; return __res; } constexpr char __digits[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f' }; unsigned __pos = __len - 1; while (__val >= 0x100) { auto __num = __val & 0xF; __val >>= 4; __first[__pos] = __digits[__num]; __num = __val & 0xF; __val >>= 4; __first[__pos - 1] = __digits[__num]; __pos -= 2; } if (__val >= 0x10) { const auto __num = __val & 0xF; __val >>= 4; __first[1] = __digits[__num]; __first[0] = __digits[__val]; } else __first[0] = __digits[__val]; __res.ptr = __first + __len; __res.ec = {}; return __res; } template<typename _Tp> constexpr __integer_to_chars_result_type<_Tp> __to_chars_10(char* __first, char* __last, _Tp __val) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); to_chars_result __res; const unsigned __len = __to_chars_len(__val, 10); if (__builtin_expect((__last - __first) < __len, 0)) { __res.ptr = __last; __res.ec = errc::value_too_large; return __res; } __detail::__to_chars_10_impl(__first, __len, __val); __res.ptr = __first + __len; __res.ec = {}; return __res; } template<typename _Tp> constexpr __integer_to_chars_result_type<_Tp> __to_chars_8(char* __first, char* __last, _Tp __val) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); to_chars_result __res; unsigned __len; if constexpr (__gnu_cxx::__int_traits<_Tp>::__digits <= 16) { __len = __val > 077777u ? 6u : __val > 07777u ? 5u : __val > 0777u ? 4u : __val > 077u ? 3u : __val > 07u ? 2u : 1u; } else __len = (__to_chars_len_2(__val) + 2) / 3; if (__builtin_expect((__last - __first) < __len, 0)) { __res.ptr = __last; __res.ec = errc::value_too_large; return __res; } unsigned __pos = __len - 1; while (__val >= 0100) { auto __num = __val & 7; __val >>= 3; __first[__pos] = '0' + __num; __num = __val & 7; __val >>= 3; __first[__pos - 1] = '0' + __num; __pos -= 2; } if (__val >= 010) { auto const __num = __val & 7; __val >>= 3; __first[1] = '0' + __num; __first[0] = '0' + __val; } else __first[0] = '0' + __val; __res.ptr = __first + __len; __res.ec = {}; return __res; } template<typename _Tp> constexpr __integer_to_chars_result_type<_Tp> __to_chars_2(char* __first, char* __last, _Tp __val) noexcept { static_assert(__integer_to_chars_is_unsigned<_Tp>, "implementation bug"); to_chars_result __res; const unsigned __len = __to_chars_len_2(__val); if (__builtin_expect((__last - __first) < __len, 0)) { __res.ptr = __last; __res.ec = errc::value_too_large; return __res; } unsigned __pos = __len - 1; while (__pos) { __first[__pos--] = '0' + (__val & 1); __val >>= 1; } __first[0] = '1'; __res.ptr = __first + __len; __res.ec = {}; return __res; } } template<typename _Tp> constexpr __detail::__integer_to_chars_result_type<_Tp> __to_chars_i(char* __first, char* __last, _Tp __value, int __base = 10) { do { if (std::__is_constant_evaluated() && !bool(2 <= __base && __base <= 36)) __builtin_unreachable(); } while (false); using _Up = __detail::__unsigned_least_t<_Tp>; _Up __unsigned_val = __value; if (__first == __last) [[__unlikely__]] return { __last, errc::value_too_large }; if (__value == 0) { *__first = '0'; return { __first + 1, errc{} }; } else if constexpr (std::is_signed<_Tp>::value) if (__value < 0) { *__first++ = '-'; __unsigned_val = _Up(~__value) + _Up(1); } switch (__base) { case 16: return __detail::__to_chars_16(__first, __last, __unsigned_val); case 10: return __detail::__to_chars_10(__first, __last, __unsigned_val); case 8: return __detail::__to_chars_8(__first, __last, __unsigned_val); case 2: return __detail::__to_chars_2(__first, __last, __unsigned_val); default: return __detail::__to_chars(__first, __last, __unsigned_val, __base); } } inline to_chars_result to_chars(char* __first, char* __last, char __value, int __base = 10) { return std::__to_chars_i<char>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, signed char __value, int __base = 10) { return std::__to_chars_i<signed char>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, unsigned char __value, int __base = 10) { return std::__to_chars_i<unsigned char>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, signed short __value, int __base = 10) { return std::__to_chars_i<signed short>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, unsigned short __value, int __base = 10) { return std::__to_chars_i<unsigned short>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, signed int __value, int __base = 10) { return std::__to_chars_i<signed int>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, unsigned int __value, int __base = 10) { return std::__to_chars_i<unsigned int>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, signed long __value, int __base = 10) { return std::__to_chars_i<signed long>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, unsigned long __value, int __base = 10) { return std::__to_chars_i<unsigned long>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, signed long long __value, int __base = 10) { return std::__to_chars_i<signed long long>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, unsigned long long __value, int __base = 10) { return std::__to_chars_i<unsigned long long>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, signed __int128 __value, int __base = 10) { return std::__to_chars_i<signed __int128>(__first, __last, __value, __base); } inline to_chars_result to_chars(char* __first, char* __last, unsigned __int128 __value, int __base = 10) { return std::__to_chars_i<unsigned __int128>(__first, __last, __value, __base); } # 401 "/usr/include/c++/13/charconv" 3 to_chars_result to_chars(char*, char*, bool, int = 10) = delete; namespace __detail { template<typename _Tp> constexpr bool __raise_and_add(_Tp& __val, int __base, unsigned char __c) { if (__builtin_mul_overflow(__val, __base, &__val) || __builtin_add_overflow(__val, __c, &__val)) return false; return true; } template<bool _DecOnly> struct __from_chars_alnum_to_val_table { struct type { unsigned char __data[1u << 8] = {}; }; static constexpr type _S_make_table() { constexpr unsigned char __lower_letters[27] = "abcdefghijklmnopqrstuvwxyz"; constexpr unsigned char __upper_letters[27] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; type __table; for (auto& __entry : __table.__data) __entry = 127; for (int __i = 0; __i < 10; ++__i) __table.__data['0' + __i] = __i; for (int __i = 0; __i < 26; ++__i) { __table.__data[__lower_letters[__i]] = 10 + __i; __table.__data[__upper_letters[__i]] = 10 + __i; } return __table; } static constexpr type value = (_DecOnly, _S_make_table()); }; # 456 "/usr/include/c++/13/charconv" 3 template<bool _DecOnly = false> constexpr unsigned char __from_chars_alnum_to_val(unsigned char __c) { if constexpr (_DecOnly) return static_cast<unsigned char>(__c - '0'); else return __from_chars_alnum_to_val_table<_DecOnly>::value.__data[__c]; } template<bool _DecOnly, typename _Tp> bool __from_chars_pow2_base(const char*& __first, const char* __last, _Tp& __val, int __base) { static_assert(is_integral<_Tp>::value, "implementation bug"); static_assert(is_unsigned<_Tp>::value, "implementation bug"); const int __log2_base = __countr_zero(__base); const ptrdiff_t __len = __last - __first; ptrdiff_t __i = 0; while (__i < __len && __first[__i] == '0') ++__i; const ptrdiff_t __leading_zeroes = __i; if (__i >= __len) [[__unlikely__]] { __first += __i; return true; } unsigned char __leading_c = 0; if (__base != 2) { __leading_c = __from_chars_alnum_to_val<_DecOnly>(__first[__i]); if (__leading_c >= __base) [[__unlikely__]] { __first += __i; return true; } __val = __leading_c; ++__i; } for (; __i < __len; ++__i) { const unsigned char __c = __from_chars_alnum_to_val<_DecOnly>(__first[__i]); if (__c >= __base) break; __val = (__val << __log2_base) | __c; } __first += __i; auto __significant_bits = (__i - __leading_zeroes) * __log2_base; if (__base != 2) __significant_bits -= __log2_base - __bit_width(__leading_c); return __significant_bits <= __gnu_cxx::__int_traits<_Tp>::__digits; } template<bool _DecOnly, typename _Tp> constexpr bool __from_chars_alnum(const char*& __first, const char* __last, _Tp& __val, int __base) { const int __bits_per_digit = __bit_width(__base); int __unused_bits_lower_bound = __gnu_cxx::__int_traits<_Tp>::__digits; for (; __first != __last; ++__first) { const unsigned char __c = __from_chars_alnum_to_val<_DecOnly>(*__first); if (__c >= __base) return true; __unused_bits_lower_bound -= __bits_per_digit; if (__unused_bits_lower_bound >= 0) [[__likely__]] __val = __val * __base + __c; else if (!__raise_and_add(__val, __base, __c)) [[__unlikely__]] { while (++__first != __last && __from_chars_alnum_to_val<_DecOnly>(*__first) < __base) ; return false; } } return true; } template<typename _Tp> using __integer_from_chars_result_type = enable_if_t<__or_<__is_signed_integer<_Tp>, __is_unsigned_integer<_Tp>, is_same<char, remove_cv_t<_Tp>>>::value, from_chars_result>; } template<typename _Tp> __detail::__integer_from_chars_result_type<_Tp> from_chars(const char* __first, const char* __last, _Tp& __value, int __base = 10) { do { if (std::__is_constant_evaluated() && !bool(2 <= __base && __base <= 36)) __builtin_unreachable(); } while (false); from_chars_result __res{__first, {}}; int __sign = 1; if constexpr (std::is_signed<_Tp>::value) if (__first != __last && *__first == '-') { __sign = -1; ++__first; } using _Up = __detail::__unsigned_least_t<_Tp>; _Up __val = 0; const auto __start = __first; bool __valid; if ((__base & (__base - 1)) == 0) { if (__base <= 8) __valid = __detail::__from_chars_pow2_base<true>(__first, __last, __val, __base); else __valid = __detail::__from_chars_pow2_base<false>(__first, __last, __val, __base); } else if (__base <= 10) __valid = __detail::__from_chars_alnum<true>(__first, __last, __val, __base); else __valid = __detail::__from_chars_alnum<false>(__first, __last, __val, __base); if (__builtin_expect(__first == __start, 0)) __res.ec = errc::invalid_argument; else { __res.ptr = __first; if (!__valid) __res.ec = errc::result_out_of_range; else { if constexpr (std::is_signed<_Tp>::value) { _Tp __tmp; if (__builtin_mul_overflow(__val, __sign, &__tmp)) __res.ec = errc::result_out_of_range; else __value = __tmp; } else { if constexpr (__gnu_cxx::__int_traits<_Up>::__max > __gnu_cxx::__int_traits<_Tp>::__max) { if (__val > __gnu_cxx::__int_traits<_Tp>::__max) __res.ec = errc::result_out_of_range; else __value = __val; } else __value = __val; } } } return __res; } enum class chars_format { scientific = 1, fixed = 2, hex = 4, general = fixed | scientific }; constexpr chars_format operator|(chars_format __lhs, chars_format __rhs) noexcept { return (chars_format)((unsigned)__lhs | (unsigned)__rhs); } constexpr chars_format operator&(chars_format __lhs, chars_format __rhs) noexcept { return (chars_format)((unsigned)__lhs & (unsigned)__rhs); } constexpr chars_format operator^(chars_format __lhs, chars_format __rhs) noexcept { return (chars_format)((unsigned)__lhs ^ (unsigned)__rhs); } constexpr chars_format operator~(chars_format __fmt) noexcept { return (chars_format)~(unsigned)__fmt; } constexpr chars_format& operator|=(chars_format& __lhs, chars_format __rhs) noexcept { return __lhs = __lhs | __rhs; } constexpr chars_format& operator&=(chars_format& __lhs, chars_format __rhs) noexcept { return __lhs = __lhs & __rhs; } constexpr chars_format& operator^=(chars_format& __lhs, chars_format __rhs) noexcept { return __lhs = __lhs ^ __rhs; } from_chars_result from_chars(const char* __first, const char* __last, float& __value, chars_format __fmt = chars_format::general) noexcept; from_chars_result from_chars(const char* __first, const char* __last, double& __value, chars_format __fmt = chars_format::general) noexcept; from_chars_result from_chars(const char* __first, const char* __last, long double& __value, chars_format __fmt = chars_format::general) noexcept; from_chars_result __from_chars_float16_t(const char* __first, const char* __last, float& __value, chars_format __fmt = chars_format::general) noexcept; from_chars_result __from_chars_bfloat16_t(const char* __first, const char* __last, float& __value, chars_format __fmt = chars_format::general) noexcept; # 788 "/usr/include/c++/13/charconv" 3 to_chars_result to_chars(char* __first, char* __last, float __value) noexcept; to_chars_result to_chars(char* __first, char* __last, float __value, chars_format __fmt) noexcept; to_chars_result to_chars(char* __first, char* __last, float __value, chars_format __fmt, int __precision) noexcept; to_chars_result to_chars(char* __first, char* __last, double __value) noexcept; to_chars_result to_chars(char* __first, char* __last, double __value, chars_format __fmt) noexcept; to_chars_result to_chars(char* __first, char* __last, double __value, chars_format __fmt, int __precision) noexcept; to_chars_result to_chars(char* __first, char* __last, long double __value) noexcept; to_chars_result to_chars(char* __first, char* __last, long double __value, chars_format __fmt) noexcept; to_chars_result to_chars(char* __first, char* __last, long double __value, chars_format __fmt, int __precision) noexcept; to_chars_result __to_chars_float16_t(char* __first, char* __last, float __value, chars_format __fmt) noexcept; to_chars_result __to_chars_bfloat16_t(char* __first, char* __last, float __value, chars_format __fmt) noexcept; # 943 "/usr/include/c++/13/charconv" 3 } # 40 "/usr/include/c++/13/format" 2 3 # 1 "/usr/include/c++/13/span" 1 3 # 37 "/usr/include/c++/13/span" 3 # 38 "/usr/include/c++/13/span" 3 # 47 "/usr/include/c++/13/span" 3 namespace std __attribute__ ((__visibility__ ("default"))) { inline constexpr size_t dynamic_extent = static_cast<size_t>(-1); template<typename _Type, size_t _Extent> class span; namespace __detail { template<typename _Tp> inline constexpr bool __is_span = false; template<typename _Tp, size_t _Num> inline constexpr bool __is_span<span<_Tp, _Num>> = true; template<typename _Tp> inline constexpr bool __is_std_array = false; template<typename _Tp, size_t _Num> inline constexpr bool __is_std_array<std::array<_Tp, _Num>> = true; template<size_t _Extent> class __extent_storage { public: constexpr __extent_storage(size_t) noexcept { } static constexpr size_t _M_extent() noexcept { return _Extent; } }; template<> class __extent_storage<dynamic_extent> { public: constexpr __extent_storage(size_t __extent) noexcept : _M_extent_value(__extent) { } constexpr size_t _M_extent() const noexcept { return this->_M_extent_value; } private: size_t _M_extent_value; }; } template<typename _Type, size_t _Extent = dynamic_extent> class span { template<size_t _Offset, size_t _Count> static constexpr size_t _S_subspan_extent() { if constexpr (_Count != dynamic_extent) return _Count; else if constexpr (extent != dynamic_extent) return _Extent - _Offset; else return dynamic_extent; } template<typename _Tp, size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) using __is_compatible_array = __is_array_convertible<_Type, _Tp>; template<typename _Ref> using __is_compatible_ref = __is_array_convertible<_Type, remove_reference_t<_Ref>>; public: using element_type = _Type; using value_type = remove_cv_t<_Type>; using size_type = size_t; using difference_type = ptrdiff_t; using pointer = _Type*; using const_pointer = const _Type*; using reference = element_type&; using const_reference = const element_type&; using iterator = __gnu_cxx::__normal_iterator<pointer, span>; using reverse_iterator = std::reverse_iterator<iterator>; static constexpr size_t extent = _Extent; constexpr span() noexcept requires (_Extent == dynamic_extent || _Extent == 0) : _M_ptr(nullptr), _M_extent(0) { } template<contiguous_iterator _It> requires __is_compatible_ref<iter_reference_t<_It>>::value constexpr explicit(extent != dynamic_extent) span(_It __first, size_type __count) noexcept : _M_ptr(std::to_address(__first)), _M_extent(__count) { if constexpr (_Extent != dynamic_extent) { do { if (std::__is_constant_evaluated() && !bool(__count == _Extent)) __builtin_unreachable(); } while (false); } ; } template<contiguous_iterator _It, sized_sentinel_for<_It> _End> requires __is_compatible_ref<iter_reference_t<_It>>::value && (!is_convertible_v<_End, size_type>) constexpr explicit(extent != dynamic_extent) span(_It __first, _End __last) noexcept(noexcept(__last - __first)) : _M_ptr(std::to_address(__first)), _M_extent(static_cast<size_type>(__last - __first)) { if constexpr (_Extent != dynamic_extent) { do { if (std::__is_constant_evaluated() && !bool((__last - __first) == _Extent)) __builtin_unreachable(); } while (false); } ; } template<size_t _ArrayExtent> requires (_Extent == dynamic_extent || _ArrayExtent == _Extent) constexpr span(type_identity_t<element_type> (&__arr)[_ArrayExtent]) noexcept : span(static_cast<pointer>(__arr), _ArrayExtent) { } template<typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<_Tp, _ArrayExtent>::value constexpr span(array<_Tp, _ArrayExtent>& __arr) noexcept : span(static_cast<pointer>(__arr.data()), _ArrayExtent) { } template<typename _Tp, size_t _ArrayExtent> requires __is_compatible_array<const _Tp, _ArrayExtent>::value constexpr span(const array<_Tp, _ArrayExtent>& __arr) noexcept : span(static_cast<pointer>(__arr.data()), _ArrayExtent) { } template<typename _Range> requires (!__detail::__is_span<remove_cvref_t<_Range>>) && (!__detail::__is_std_array<remove_cvref_t<_Range>>) && (!is_array_v<remove_cvref_t<_Range>>) && ranges::contiguous_range<_Range> && ranges::sized_range<_Range> && (ranges::borrowed_range<_Range> || is_const_v<element_type>) && __is_compatible_ref<ranges::range_reference_t<_Range>>::value constexpr explicit(extent != dynamic_extent) span(_Range&& __range) noexcept(noexcept(ranges::data(__range)) && noexcept(ranges::size(__range))) : span(ranges::data(__range), ranges::size(__range)) { if constexpr (extent != dynamic_extent) { do { if (std::__is_constant_evaluated() && !bool(ranges::size(__range) == extent)) __builtin_unreachable(); } while (false); } } constexpr span(const span&) noexcept = default; template<typename _OType, size_t _OExtent> requires (_Extent == dynamic_extent || _OExtent == dynamic_extent || _Extent == _OExtent) && (__is_array_convertible<_Type, _OType>::value) constexpr explicit(extent != dynamic_extent && _OExtent == dynamic_extent) span(const span<_OType, _OExtent>& __s) noexcept : _M_extent(__s.size()), _M_ptr(__s.data()) { if constexpr (extent != dynamic_extent) { do { if (std::__is_constant_evaluated() && !bool(__s.size() == extent)) __builtin_unreachable(); } while (false); } } ~span() noexcept = default; constexpr span& operator=(const span&) noexcept = default; constexpr size_type size() const noexcept { return this->_M_extent._M_extent(); } constexpr size_type size_bytes() const noexcept { return this->_M_extent._M_extent() * sizeof(element_type); } [[nodiscard]] constexpr bool empty() const noexcept { return size() == 0; } constexpr reference front() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return *this->_M_ptr; } constexpr reference back() const noexcept { do { if (std::__is_constant_evaluated() && !bool(!empty())) __builtin_unreachable(); } while (false); return *(this->_M_ptr + (size() - 1)); } constexpr reference operator[](size_type __idx) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__idx < size())) __builtin_unreachable(); } while (false); return *(this->_M_ptr + __idx); } constexpr pointer data() const noexcept { return this->_M_ptr; } constexpr iterator begin() const noexcept { return iterator(this->_M_ptr); } constexpr iterator end() const noexcept { return iterator(this->_M_ptr + this->size()); } constexpr reverse_iterator rbegin() const noexcept { return reverse_iterator(this->end()); } constexpr reverse_iterator rend() const noexcept { return reverse_iterator(this->begin()); } # 328 "/usr/include/c++/13/span" 3 template<size_t _Count> constexpr span<element_type, _Count> first() const noexcept { if constexpr (_Extent == dynamic_extent) do { if (std::__is_constant_evaluated() && !bool(_Count <= size())) __builtin_unreachable(); } while (false); else static_assert(_Count <= extent); using _Sp = span<element_type, _Count>; return _Sp{ this->data(), _Count }; } constexpr span<element_type, dynamic_extent> first(size_type __count) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__count <= size())) __builtin_unreachable(); } while (false); return { this->data(), __count }; } template<size_t _Count> constexpr span<element_type, _Count> last() const noexcept { if constexpr (_Extent == dynamic_extent) do { if (std::__is_constant_evaluated() && !bool(_Count <= size())) __builtin_unreachable(); } while (false); else static_assert(_Count <= extent); using _Sp = span<element_type, _Count>; return _Sp{ this->data() + (this->size() - _Count), _Count }; } constexpr span<element_type, dynamic_extent> last(size_type __count) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__count <= size())) __builtin_unreachable(); } while (false); return { this->data() + (this->size() - __count), __count }; } template<size_t _Offset, size_t _Count = dynamic_extent> constexpr auto subspan() const noexcept -> span<element_type, _S_subspan_extent<_Offset, _Count>()> { if constexpr (_Extent == dynamic_extent) { do { if (std::__is_constant_evaluated() && !bool(_Offset <= size())) __builtin_unreachable(); } while (false); } else static_assert(_Offset <= extent); using _Sp = span<element_type, _S_subspan_extent<_Offset, _Count>()>; if constexpr (_Count == dynamic_extent) return _Sp{ this->data() + _Offset, this->size() - _Offset }; else { if constexpr (_Extent == dynamic_extent) { do { if (std::__is_constant_evaluated() && !bool(_Count <= size())) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(_Count <= (size() - _Offset))) __builtin_unreachable(); } while (false); } else { static_assert(_Count <= extent); static_assert(_Count <= (extent - _Offset)); } return _Sp{ this->data() + _Offset, _Count }; } } constexpr span<element_type, dynamic_extent> subspan(size_type __offset, size_type __count = dynamic_extent) const noexcept { do { if (std::__is_constant_evaluated() && !bool(__offset <= size())) __builtin_unreachable(); } while (false); if (__count == dynamic_extent) __count = this->size() - __offset; else { do { if (std::__is_constant_evaluated() && !bool(__count <= size())) __builtin_unreachable(); } while (false); do { if (std::__is_constant_evaluated() && !bool(__offset + __count <= size())) __builtin_unreachable(); } while (false); } return {this->data() + __offset, __count}; } private: pointer _M_ptr; [[no_unique_address]] __detail::__extent_storage<extent> _M_extent; }; template<typename _Type, size_t _ArrayExtent> span(_Type(&)[_ArrayExtent]) -> span<_Type, _ArrayExtent>; template<typename _Type, size_t _ArrayExtent> span(array<_Type, _ArrayExtent>&) -> span<_Type, _ArrayExtent>; template<typename _Type, size_t _ArrayExtent> span(const array<_Type, _ArrayExtent>&) -> span<const _Type, _ArrayExtent>; template<contiguous_iterator _Iter, typename _End> span(_Iter, _End) -> span<remove_reference_t<iter_reference_t<_Iter>>>; template<ranges::contiguous_range _Range> span(_Range &&) -> span<remove_reference_t<ranges::range_reference_t<_Range&>>>; template<typename _Type, size_t _Extent> inline span<const byte, _Extent == dynamic_extent ? dynamic_extent : _Extent * sizeof(_Type)> as_bytes(span<_Type, _Extent> __sp) noexcept { auto data = reinterpret_cast<const byte*>(__sp.data()); auto size = __sp.size_bytes(); constexpr auto extent = _Extent == dynamic_extent ? dynamic_extent : _Extent * sizeof(_Type); return span<const byte, extent>{data, size}; } template<typename _Type, size_t _Extent> requires (!is_const_v<_Type>) inline span<byte, _Extent == dynamic_extent ? dynamic_extent : _Extent * sizeof(_Type)> as_writable_bytes(span<_Type, _Extent> __sp) noexcept { auto data = reinterpret_cast<byte*>(__sp.data()); auto size = __sp.size_bytes(); constexpr auto extent = _Extent == dynamic_extent ? dynamic_extent : _Extent * sizeof(_Type); return span<byte, extent>{data, size}; } namespace ranges { template<typename _ElementType, size_t _Extent> inline constexpr bool enable_borrowed_range<span<_ElementType, _Extent>> = true; template<typename _ElementType, size_t _Extent> inline constexpr bool enable_view<span<_ElementType, _Extent>> = true; } } # 45 "/usr/include/c++/13/format" 2 3 # 1 "/usr/include/c++/13/variant" 1 3 # 32 "/usr/include/c++/13/variant" 3 # 33 "/usr/include/c++/13/variant" 3 # 58 "/usr/include/c++/13/variant" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename... _Types> class tuple; template<typename... _Types> class variant; template <typename> struct hash; template<typename _Variant> struct variant_size; template<typename _Variant> struct variant_size<const _Variant> : variant_size<_Variant> {}; template<typename _Variant> struct variant_size<volatile _Variant> : variant_size<_Variant> {}; template<typename _Variant> struct variant_size<const volatile _Variant> : variant_size<_Variant> {}; template<typename... _Types> struct variant_size<variant<_Types...>> : std::integral_constant<size_t, sizeof...(_Types)> {}; template<typename _Variant> inline constexpr size_t variant_size_v = variant_size<_Variant>::value; template<typename... _Types> inline constexpr size_t variant_size_v<variant<_Types...>> = sizeof...(_Types); template<typename... _Types> inline constexpr size_t variant_size_v<const variant<_Types...>> = sizeof...(_Types); template<size_t _Np, typename _Variant> struct variant_alternative; template<size_t _Np, typename... _Types> struct variant_alternative<_Np, variant<_Types...>> { static_assert(_Np < sizeof...(_Types)); using type = typename _Nth_type<_Np, _Types...>::type; }; template<size_t _Np, typename _Variant> using variant_alternative_t = typename variant_alternative<_Np, _Variant>::type; template<size_t _Np, typename _Variant> struct variant_alternative<_Np, const _Variant> { using type = const variant_alternative_t<_Np, _Variant>; }; template<size_t _Np, typename _Variant> struct variant_alternative<_Np, volatile _Variant> { using type = volatile variant_alternative_t<_Np, _Variant>; }; template<size_t _Np, typename _Variant> struct variant_alternative<_Np, const volatile _Variant> { using type = const volatile variant_alternative_t<_Np, _Variant>; }; inline constexpr size_t variant_npos = -1; template<size_t _Np, typename... _Types> constexpr variant_alternative_t<_Np, variant<_Types...>>& get(variant<_Types...>&); template<size_t _Np, typename... _Types> constexpr variant_alternative_t<_Np, variant<_Types...>>&& get(variant<_Types...>&&); template<size_t _Np, typename... _Types> constexpr variant_alternative_t<_Np, variant<_Types...>> const& get(const variant<_Types...>&); template<size_t _Np, typename... _Types> constexpr variant_alternative_t<_Np, variant<_Types...>> const&& get(const variant<_Types...>&&); template<typename _Result_type, typename _Visitor, typename... _Variants> constexpr decltype(auto) __do_visit(_Visitor&& __visitor, _Variants&&... __variants); template <typename... _Types, typename _Tp> constexpr decltype(auto) __variant_cast(_Tp&& __rhs) { if constexpr (is_lvalue_reference_v<_Tp>) { if constexpr (is_const_v<remove_reference_t<_Tp>>) return static_cast<const variant<_Types...>&>(__rhs); else return static_cast<variant<_Types...>&>(__rhs); } else return static_cast<variant<_Types...>&&>(__rhs); } namespace __detail { namespace __variant { struct __variant_cookie {}; struct __variant_idx_cookie { using type = __variant_idx_cookie; }; template<typename _Tp> struct __deduce_visit_result { using type = _Tp; }; template<typename _Visitor, typename... _Variants> constexpr void __raw_visit(_Visitor&& __visitor, _Variants&&... __variants) { std::__do_visit<__variant_cookie>(std::forward<_Visitor>(__visitor), std::forward<_Variants>(__variants)...); } template<typename _Visitor, typename... _Variants> constexpr void __raw_idx_visit(_Visitor&& __visitor, _Variants&&... __variants) { std::__do_visit<__variant_idx_cookie>(std::forward<_Visitor>(__visitor), std::forward<_Variants>(__variants)...); } template<typename... _Types> constexpr std::variant<_Types...>& __as(std::variant<_Types...>& __v) noexcept { return __v; } template<typename... _Types> constexpr const std::variant<_Types...>& __as(const std::variant<_Types...>& __v) noexcept { return __v; } template<typename... _Types> constexpr std::variant<_Types...>&& __as(std::variant<_Types...>&& __v) noexcept { return std::move(__v); } template<typename... _Types> constexpr const std::variant<_Types...>&& __as(const std::variant<_Types...>&& __v) noexcept { return std::move(__v); } template<typename _Type, bool = std::is_trivially_destructible_v<_Type>> struct _Uninitialized; template<typename _Type> struct _Uninitialized<_Type, true> { template<typename... _Args> constexpr _Uninitialized(in_place_index_t<0>, _Args&&... __args) : _M_storage(std::forward<_Args>(__args)...) { } constexpr const _Type& _M_get() const & noexcept { return _M_storage; } constexpr _Type& _M_get() & noexcept { return _M_storage; } constexpr const _Type&& _M_get() const && noexcept { return std::move(_M_storage); } constexpr _Type&& _M_get() && noexcept { return std::move(_M_storage); } _Type _M_storage; }; template<typename _Type> struct _Uninitialized<_Type, false> { template<typename... _Args> constexpr _Uninitialized(in_place_index_t<0>, _Args&&... __args) : _M_storage(std::forward<_Args>(__args)...) { } constexpr ~_Uninitialized() { } _Uninitialized(const _Uninitialized&) = default; _Uninitialized(_Uninitialized&&) = default; _Uninitialized& operator=(const _Uninitialized&) = default; _Uninitialized& operator=(_Uninitialized&&) = default; constexpr const _Type& _M_get() const & noexcept { return _M_storage; } constexpr _Type& _M_get() & noexcept { return _M_storage; } constexpr const _Type&& _M_get() const && noexcept { return std::move(_M_storage); } constexpr _Type&& _M_get() && noexcept { return std::move(_M_storage); } struct _Empty_byte { }; union { _Empty_byte _M_empty; _Type _M_storage; }; # 300 "/usr/include/c++/13/variant" 3 }; template<size_t _Np, typename _Union> constexpr decltype(auto) __get_n(_Union&& __u) noexcept { if constexpr (_Np == 0) return std::forward<_Union>(__u)._M_first._M_get(); else if constexpr (_Np == 1) return std::forward<_Union>(__u)._M_rest._M_first._M_get(); else if constexpr (_Np == 2) return std::forward<_Union>(__u)._M_rest._M_rest._M_first._M_get(); else return __variant::__get_n<_Np - 3>( std::forward<_Union>(__u)._M_rest._M_rest._M_rest); } template<size_t _Np, typename _Variant> constexpr decltype(auto) __get(_Variant&& __v) noexcept { return __variant::__get_n<_Np>(std::forward<_Variant>(__v)._M_u); } template<typename... _Types> struct _Traits { static constexpr bool _S_default_ctor = is_default_constructible_v<typename _Nth_type<0, _Types...>::type>; static constexpr bool _S_copy_ctor = (is_copy_constructible_v<_Types> && ...); static constexpr bool _S_move_ctor = (is_move_constructible_v<_Types> && ...); static constexpr bool _S_copy_assign = _S_copy_ctor && (is_copy_assignable_v<_Types> && ...); static constexpr bool _S_move_assign = _S_move_ctor && (is_move_assignable_v<_Types> && ...); static constexpr bool _S_trivial_dtor = (is_trivially_destructible_v<_Types> && ...); static constexpr bool _S_trivial_copy_ctor = (is_trivially_copy_constructible_v<_Types> && ...); static constexpr bool _S_trivial_move_ctor = (is_trivially_move_constructible_v<_Types> && ...); static constexpr bool _S_trivial_copy_assign = _S_trivial_dtor && _S_trivial_copy_ctor && (is_trivially_copy_assignable_v<_Types> && ...); static constexpr bool _S_trivial_move_assign = _S_trivial_dtor && _S_trivial_move_ctor && (is_trivially_move_assignable_v<_Types> && ...); static constexpr bool _S_nothrow_default_ctor = is_nothrow_default_constructible_v< typename _Nth_type<0, _Types...>::type>; static constexpr bool _S_nothrow_copy_ctor = false; static constexpr bool _S_nothrow_move_ctor = (is_nothrow_move_constructible_v<_Types> && ...); static constexpr bool _S_nothrow_copy_assign = false; static constexpr bool _S_nothrow_move_assign = _S_nothrow_move_ctor && (is_nothrow_move_assignable_v<_Types> && ...); }; template<typename... _Types> union _Variadic_union { _Variadic_union() = default; template<size_t _Np, typename... _Args> _Variadic_union(in_place_index_t<_Np>, _Args&&...) = delete; }; template<typename _First, typename... _Rest> union _Variadic_union<_First, _Rest...> { constexpr _Variadic_union() : _M_rest() { } template<typename... _Args> constexpr _Variadic_union(in_place_index_t<0>, _Args&&... __args) : _M_first(in_place_index<0>, std::forward<_Args>(__args)...) { } template<size_t _Np, typename... _Args> constexpr _Variadic_union(in_place_index_t<_Np>, _Args&&... __args) : _M_rest(in_place_index<_Np-1>, std::forward<_Args>(__args)...) { } _Variadic_union(const _Variadic_union&) = default; _Variadic_union(_Variadic_union&&) = default; _Variadic_union& operator=(const _Variadic_union&) = default; _Variadic_union& operator=(_Variadic_union&&) = default; ~_Variadic_union() = default; constexpr ~_Variadic_union() requires (!__has_trivial_destructor(_First)) || (!__has_trivial_destructor(_Variadic_union<_Rest...>)) { } _Uninitialized<_First> _M_first; _Variadic_union<_Rest...> _M_rest; }; template<typename _Tp> struct _Never_valueless_alt : __and_<bool_constant<sizeof(_Tp) <= 256>, is_trivially_copyable<_Tp>> { }; # 431 "/usr/include/c++/13/variant" 3 template <typename... _Types> constexpr bool __never_valueless() { return _Traits<_Types...>::_S_move_assign && (_Never_valueless_alt<_Types>::value && ...); } template<bool __trivially_destructible, typename... _Types> struct _Variant_storage; template <typename... _Types> using __select_index = typename __select_int::_Select_int_base<sizeof...(_Types), unsigned char, unsigned short>::type::value_type; template<typename... _Types> struct _Variant_storage<false, _Types...> { constexpr _Variant_storage() : _M_index(static_cast<__index_type>(variant_npos)) { } template<size_t _Np, typename... _Args> constexpr _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), _M_index{_Np} { } constexpr void _M_reset() { if (!_M_valid()) [[unlikely]] return; std::__do_visit<void>([](auto&& __this_mem) mutable { std::_Destroy(std::__addressof(__this_mem)); }, __variant_cast<_Types...>(*this)); _M_index = static_cast<__index_type>(variant_npos); } constexpr ~_Variant_storage() { _M_reset(); } constexpr bool _M_valid() const noexcept { if constexpr (__variant::__never_valueless<_Types...>()) return true; return this->_M_index != __index_type(variant_npos); } _Variadic_union<_Types...> _M_u; using __index_type = __select_index<_Types...>; __index_type _M_index; }; template<typename... _Types> struct _Variant_storage<true, _Types...> { constexpr _Variant_storage() : _M_index(static_cast<__index_type>(variant_npos)) { } template<size_t _Np, typename... _Args> constexpr _Variant_storage(in_place_index_t<_Np>, _Args&&... __args) : _M_u(in_place_index<_Np>, std::forward<_Args>(__args)...), _M_index{_Np} { } constexpr void _M_reset() noexcept { _M_index = static_cast<__index_type>(variant_npos); } constexpr bool _M_valid() const noexcept { if constexpr (__variant::__never_valueless<_Types...>()) return true; return this->_M_index != static_cast<__index_type>(variant_npos); } _Variadic_union<_Types...> _M_u; using __index_type = __select_index<_Types...>; __index_type _M_index; }; template<size_t _Np, bool _Triv, typename... _Types, typename... _Args> constexpr inline void __emplace(_Variant_storage<_Triv, _Types...>& __v, _Args&&... __args) { __v._M_reset(); auto* __addr = std::__addressof(__variant::__get_n<_Np>(__v._M_u)); std::_Construct(__addr, std::forward<_Args>(__args)...); __v._M_index = _Np; } template<typename... _Types> using _Variant_storage_alias = _Variant_storage<_Traits<_Types...>::_S_trivial_dtor, _Types...>; template<bool, typename... _Types> struct _Copy_ctor_base : _Variant_storage_alias<_Types...> { using _Base = _Variant_storage_alias<_Types...>; using _Base::_Base; constexpr _Copy_ctor_base(const _Copy_ctor_base& __rhs) noexcept(_Traits<_Types...>::_S_nothrow_copy_ctor) { __variant::__raw_idx_visit( [this](auto&& __rhs_mem, auto __rhs_index) mutable { constexpr size_t __j = __rhs_index; if constexpr (__j != variant_npos) std::_Construct(std::__addressof(this->_M_u), in_place_index<__j>, __rhs_mem); }, __variant_cast<_Types...>(__rhs)); this->_M_index = __rhs._M_index; } _Copy_ctor_base(_Copy_ctor_base&&) = default; _Copy_ctor_base& operator=(const _Copy_ctor_base&) = default; _Copy_ctor_base& operator=(_Copy_ctor_base&&) = default; }; template<typename... _Types> struct _Copy_ctor_base<true, _Types...> : _Variant_storage_alias<_Types...> { using _Base = _Variant_storage_alias<_Types...>; using _Base::_Base; }; template<typename... _Types> using _Copy_ctor_alias = _Copy_ctor_base<_Traits<_Types...>::_S_trivial_copy_ctor, _Types...>; template<bool, typename... _Types> struct _Move_ctor_base : _Copy_ctor_alias<_Types...> { using _Base = _Copy_ctor_alias<_Types...>; using _Base::_Base; constexpr _Move_ctor_base(_Move_ctor_base&& __rhs) noexcept(_Traits<_Types...>::_S_nothrow_move_ctor) { __variant::__raw_idx_visit( [this](auto&& __rhs_mem, auto __rhs_index) mutable { constexpr size_t __j = __rhs_index; if constexpr (__j != variant_npos) std::_Construct(std::__addressof(this->_M_u), in_place_index<__j>, std::forward<decltype(__rhs_mem)>(__rhs_mem)); }, __variant_cast<_Types...>(std::move(__rhs))); this->_M_index = __rhs._M_index; } _Move_ctor_base(const _Move_ctor_base&) = default; _Move_ctor_base& operator=(const _Move_ctor_base&) = default; _Move_ctor_base& operator=(_Move_ctor_base&&) = default; }; template<typename... _Types> struct _Move_ctor_base<true, _Types...> : _Copy_ctor_alias<_Types...> { using _Base = _Copy_ctor_alias<_Types...>; using _Base::_Base; }; template<typename... _Types> using _Move_ctor_alias = _Move_ctor_base<_Traits<_Types...>::_S_trivial_move_ctor, _Types...>; template<bool, typename... _Types> struct _Copy_assign_base : _Move_ctor_alias<_Types...> { using _Base = _Move_ctor_alias<_Types...>; using _Base::_Base; constexpr _Copy_assign_base& operator=(const _Copy_assign_base& __rhs) noexcept(_Traits<_Types...>::_S_nothrow_copy_assign) { __variant::__raw_idx_visit( [this](auto&& __rhs_mem, auto __rhs_index) mutable { constexpr size_t __j = __rhs_index; if constexpr (__j == variant_npos) this->_M_reset(); else if (this->_M_index == __j) __variant::__get<__j>(*this) = __rhs_mem; else { using _Tj = typename _Nth_type<__j, _Types...>::type; if constexpr (is_nothrow_copy_constructible_v<_Tj> || !is_nothrow_move_constructible_v<_Tj>) __variant::__emplace<__j>(*this, __rhs_mem); else { using _Variant = variant<_Types...>; _Variant& __self = __variant_cast<_Types...>(*this); __self = _Variant(in_place_index<__j>, __rhs_mem); } } }, __variant_cast<_Types...>(__rhs)); return *this; } _Copy_assign_base(const _Copy_assign_base&) = default; _Copy_assign_base(_Copy_assign_base&&) = default; _Copy_assign_base& operator=(_Copy_assign_base&&) = default; }; template<typename... _Types> struct _Copy_assign_base<true, _Types...> : _Move_ctor_alias<_Types...> { using _Base = _Move_ctor_alias<_Types...>; using _Base::_Base; }; template<typename... _Types> using _Copy_assign_alias = _Copy_assign_base<_Traits<_Types...>::_S_trivial_copy_assign, _Types...>; template<bool, typename... _Types> struct _Move_assign_base : _Copy_assign_alias<_Types...> { using _Base = _Copy_assign_alias<_Types...>; using _Base::_Base; constexpr _Move_assign_base& operator=(_Move_assign_base&& __rhs) noexcept(_Traits<_Types...>::_S_nothrow_move_assign) { __variant::__raw_idx_visit( [this](auto&& __rhs_mem, auto __rhs_index) mutable { constexpr size_t __j = __rhs_index; if constexpr (__j != variant_npos) { if (this->_M_index == __j) __variant::__get<__j>(*this) = std::move(__rhs_mem); else { using _Tj = typename _Nth_type<__j, _Types...>::type; if constexpr (is_nothrow_move_constructible_v<_Tj>) __variant::__emplace<__j>(*this, std::move(__rhs_mem)); else { using _Variant = variant<_Types...>; _Variant& __self = __variant_cast<_Types...>(*this); __self.template emplace<__j>(std::move(__rhs_mem)); } } } else this->_M_reset(); }, __variant_cast<_Types...>(__rhs)); return *this; } _Move_assign_base(const _Move_assign_base&) = default; _Move_assign_base(_Move_assign_base&&) = default; _Move_assign_base& operator=(const _Move_assign_base&) = default; }; template<typename... _Types> struct _Move_assign_base<true, _Types...> : _Copy_assign_alias<_Types...> { using _Base = _Copy_assign_alias<_Types...>; using _Base::_Base; }; template<typename... _Types> using _Move_assign_alias = _Move_assign_base<_Traits<_Types...>::_S_trivial_move_assign, _Types...>; template<typename... _Types> struct _Variant_base : _Move_assign_alias<_Types...> { using _Base = _Move_assign_alias<_Types...>; constexpr _Variant_base() noexcept(_Traits<_Types...>::_S_nothrow_default_ctor) : _Variant_base(in_place_index<0>) { } template<size_t _Np, typename... _Args> constexpr explicit _Variant_base(in_place_index_t<_Np> __i, _Args&&... __args) : _Base(__i, std::forward<_Args>(__args)...) { } _Variant_base(const _Variant_base&) = default; _Variant_base(_Variant_base&&) = default; _Variant_base& operator=(const _Variant_base&) = default; _Variant_base& operator=(_Variant_base&&) = default; }; template<typename _Tp, typename... _Types> inline constexpr bool __exactly_once = std::__find_uniq_type_in_pack<_Tp, _Types...>() < sizeof...(_Types); template<typename _Ti> struct _Arr { _Ti _M_x[1]; }; template<size_t _Ind, typename _Tp, typename _Ti, typename = void> struct _Build_FUN { void _S_fun() = delete; }; template<size_t _Ind, typename _Tp, typename _Ti> struct _Build_FUN<_Ind, _Tp, _Ti, void_t<decltype(_Arr<_Ti>{{std::declval<_Tp>()}})>> { static integral_constant<size_t, _Ind> _S_fun(_Ti); }; template<typename _Tp, typename _Variant, typename = make_index_sequence<variant_size_v<_Variant>>> struct _Build_FUNs; template<typename _Tp, typename... _Ti, size_t... _Ind> struct _Build_FUNs<_Tp, variant<_Ti...>, index_sequence<_Ind...>> : _Build_FUN<_Ind, _Tp, _Ti>... { using _Build_FUN<_Ind, _Tp, _Ti>::_S_fun...; }; template<typename _Tp, typename _Variant> using _FUN_type = decltype(_Build_FUNs<_Tp, _Variant>::_S_fun(std::declval<_Tp>())); template<typename _Tp, typename _Variant, typename = void> inline constexpr size_t __accepted_index = variant_npos; template<typename _Tp, typename _Variant> inline constexpr size_t __accepted_index<_Tp, _Variant, void_t<_FUN_type<_Tp, _Variant>>> = _FUN_type<_Tp, _Variant>::value; template<typename _Maybe_variant_cookie, typename _Variant, typename = __remove_cvref_t<_Variant>> inline constexpr bool __extra_visit_slot_needed = false; template<typename _Var, typename... _Types> inline constexpr bool __extra_visit_slot_needed<__variant_cookie, _Var, variant<_Types...>> = !__variant::__never_valueless<_Types...>(); template<typename _Var, typename... _Types> inline constexpr bool __extra_visit_slot_needed<__variant_idx_cookie, _Var, variant<_Types...>> = !__variant::__never_valueless<_Types...>(); template<typename _Tp, size_t... _Dimensions> struct _Multi_array; template<typename _Tp> struct _Multi_array<_Tp> { template<typename> struct __untag_result : false_type { using element_type = _Tp; }; #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wignored-qualifiers" template <typename... _Args> struct __untag_result<const void(*)(_Args...)> : false_type { using element_type = void(*)(_Args...); }; #pragma GCC diagnostic pop template <typename... _Args> struct __untag_result<__variant_cookie(*)(_Args...)> : false_type { using element_type = void(*)(_Args...); }; template <typename... _Args> struct __untag_result<__variant_idx_cookie(*)(_Args...)> : false_type { using element_type = void(*)(_Args...); }; template <typename _Res, typename... _Args> struct __untag_result<__deduce_visit_result<_Res>(*)(_Args...)> : true_type { using element_type = _Res(*)(_Args...); }; using __result_is_deduced = __untag_result<_Tp>; constexpr const typename __untag_result<_Tp>::element_type& _M_access() const { return _M_data; } typename __untag_result<_Tp>::element_type _M_data; }; template<typename _Ret, typename _Visitor, typename... _Variants, size_t __first, size_t... __rest> struct _Multi_array<_Ret(*)(_Visitor, _Variants...), __first, __rest...> { static constexpr size_t __index = sizeof...(_Variants) - sizeof...(__rest) - 1; using _Variant = typename _Nth_type<__index, _Variants...>::type; static constexpr int __do_cookie = __extra_visit_slot_needed<_Ret, _Variant> ? 1 : 0; using _Tp = _Ret(*)(_Visitor, _Variants...); template<typename... _Args> constexpr decltype(auto) _M_access(size_t __first_index, _Args... __rest_indices) const { return _M_arr[__first_index + __do_cookie] ._M_access(__rest_indices...); } _Multi_array<_Tp, __rest...> _M_arr[__first + __do_cookie]; }; # 921 "/usr/include/c++/13/variant" 3 template<typename _Array_type, typename _Index_seq> struct __gen_vtable_impl; # 931 "/usr/include/c++/13/variant" 3 template<typename _Result_type, typename _Visitor, size_t... __dimensions, typename... _Variants, size_t... __indices> struct __gen_vtable_impl< _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>, std::index_sequence<__indices...>> { using _Next = remove_reference_t<typename _Nth_type<sizeof...(__indices), _Variants...>::type>; using _Array_type = _Multi_array<_Result_type (*)(_Visitor, _Variants...), __dimensions...>; static constexpr _Array_type _S_apply() { _Array_type __vtable{}; _S_apply_all_alts( __vtable, make_index_sequence<variant_size_v<_Next>>()); return __vtable; } template<size_t... __var_indices> static constexpr void _S_apply_all_alts(_Array_type& __vtable, std::index_sequence<__var_indices...>) { if constexpr (__extra_visit_slot_needed<_Result_type, _Next>) (_S_apply_single_alt<true, __var_indices>( __vtable._M_arr[__var_indices + 1], &(__vtable._M_arr[0])), ...); else (_S_apply_single_alt<false, __var_indices>( __vtable._M_arr[__var_indices]), ...); } template<bool __do_cookie, size_t __index, typename _Tp> static constexpr void _S_apply_single_alt(_Tp& __element, _Tp* __cookie_element = nullptr) { if constexpr (__do_cookie) { __element = __gen_vtable_impl< _Tp, std::index_sequence<__indices..., __index>>::_S_apply(); *__cookie_element = __gen_vtable_impl< _Tp, std::index_sequence<__indices..., variant_npos>>::_S_apply(); } else { auto __tmp_element = __gen_vtable_impl< remove_reference_t<decltype(__element)>, std::index_sequence<__indices..., __index>>::_S_apply(); static_assert(is_same_v<_Tp, decltype(__tmp_element)>, "std::visit requires the visitor to have the same " "return type for all alternatives of a variant"); __element = __tmp_element; } } }; template<typename _Result_type, typename _Visitor, typename... _Variants, size_t... __indices> struct __gen_vtable_impl< _Multi_array<_Result_type (*)(_Visitor, _Variants...)>, std::index_sequence<__indices...>> { using _Array_type = _Multi_array<_Result_type (*)(_Visitor, _Variants...)>; template<size_t __index, typename _Variant> static constexpr decltype(auto) __element_by_index_or_cookie(_Variant&& __var) noexcept { if constexpr (__index != variant_npos) return __variant::__get<__index>(std::forward<_Variant>(__var)); else return __variant_cookie{}; } static constexpr decltype(auto) __visit_invoke(_Visitor&& __visitor, _Variants... __vars) { if constexpr (is_same_v<_Result_type, __variant_idx_cookie>) std::__invoke(std::forward<_Visitor>(__visitor), __element_by_index_or_cookie<__indices>( std::forward<_Variants>(__vars))..., integral_constant<size_t, __indices>()...); else if constexpr (is_same_v<_Result_type, __variant_cookie>) std::__invoke(std::forward<_Visitor>(__visitor), __element_by_index_or_cookie<__indices>( std::forward<_Variants>(__vars))...); else if constexpr (_Array_type::__result_is_deduced::value) return std::__invoke(std::forward<_Visitor>(__visitor), __element_by_index_or_cookie<__indices>( std::forward<_Variants>(__vars))...); else return std::__invoke_r<_Result_type>( std::forward<_Visitor>(__visitor), __variant::__get<__indices>(std::forward<_Variants>(__vars))...); } static constexpr auto _S_apply() { if constexpr (_Array_type::__result_is_deduced::value) { constexpr bool __visit_ret_type_mismatch = !is_same_v<typename _Result_type::type, decltype(__visit_invoke(std::declval<_Visitor>(), std::declval<_Variants>()...))>; if constexpr (__visit_ret_type_mismatch) { struct __cannot_match {}; return __cannot_match{}; } else return _Array_type{&__visit_invoke}; } else return _Array_type{&__visit_invoke}; } }; template<typename _Result_type, typename _Visitor, typename... _Variants> struct __gen_vtable { using _Array_type = _Multi_array<_Result_type (*)(_Visitor, _Variants...), variant_size_v<remove_reference_t<_Variants>>...>; static constexpr _Array_type _S_vtable = __gen_vtable_impl<_Array_type, std::index_sequence<>>::_S_apply(); }; template<size_t _Np, typename _Tp> struct _Base_dedup : public _Tp { }; template<typename _Variant, typename __indices> struct _Variant_hash_base; template<typename... _Types, size_t... __indices> struct _Variant_hash_base<variant<_Types...>, std::index_sequence<__indices...>> : _Base_dedup<__indices, __poison_hash<remove_const_t<_Types>>>... { }; template<size_t _Np, typename _Variant, typename _AsV = decltype(__variant::__as(std::declval<_Variant>())), typename _Tp = variant_alternative_t<_Np, remove_reference_t<_AsV>>> using __get_t = __conditional_t<is_lvalue_reference_v<_Variant>, _Tp&, _Tp&&>; template<typename _Visitor, typename... _Variants> using __visit_result_t = invoke_result_t<_Visitor, __get_t<0, _Variants>...>; template<typename _Tp, typename... _Types> constexpr inline bool __same_types = (is_same_v<_Tp, _Types> && ...); template <typename _Visitor, typename _Variant, size_t... _Idxs> constexpr bool __check_visitor_results(std::index_sequence<_Idxs...>) { return __same_types< invoke_result_t<_Visitor, __get_t<_Idxs, _Variant>>... >; } } } template<typename _Tp, typename... _Types> constexpr bool holds_alternative(const variant<_Types...>& __v) noexcept { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); return __v.index() == std::__find_uniq_type_in_pack<_Tp, _Types...>(); } template<typename _Tp, typename... _Types> constexpr _Tp& get(variant<_Types...>& __v) { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); static_assert(!is_void_v<_Tp>, "_Tp must not be void"); constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); return std::get<__n>(__v); } template<typename _Tp, typename... _Types> constexpr _Tp&& get(variant<_Types...>&& __v) { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); static_assert(!is_void_v<_Tp>, "_Tp must not be void"); constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); return std::get<__n>(std::move(__v)); } template<typename _Tp, typename... _Types> constexpr const _Tp& get(const variant<_Types...>& __v) { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); static_assert(!is_void_v<_Tp>, "_Tp must not be void"); constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); return std::get<__n>(__v); } template<typename _Tp, typename... _Types> constexpr const _Tp&& get(const variant<_Types...>&& __v) { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); static_assert(!is_void_v<_Tp>, "_Tp must not be void"); constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); return std::get<__n>(std::move(__v)); } template<size_t _Np, typename... _Types> constexpr add_pointer_t<variant_alternative_t<_Np, variant<_Types...>>> get_if(variant<_Types...>* __ptr) noexcept { using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; static_assert(_Np < sizeof...(_Types), "The index must be in [0, number of alternatives)"); static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); if (__ptr && __ptr->index() == _Np) return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); return nullptr; } template<size_t _Np, typename... _Types> constexpr add_pointer_t<const variant_alternative_t<_Np, variant<_Types...>>> get_if(const variant<_Types...>* __ptr) noexcept { using _Alternative_type = variant_alternative_t<_Np, variant<_Types...>>; static_assert(_Np < sizeof...(_Types), "The index must be in [0, number of alternatives)"); static_assert(!is_void_v<_Alternative_type>, "_Tp must not be void"); if (__ptr && __ptr->index() == _Np) return std::addressof(__detail::__variant::__get<_Np>(*__ptr)); return nullptr; } template<typename _Tp, typename... _Types> constexpr add_pointer_t<_Tp> get_if(variant<_Types...>* __ptr) noexcept { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); static_assert(!is_void_v<_Tp>, "_Tp must not be void"); constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); return std::get_if<__n>(__ptr); } template<typename _Tp, typename... _Types> constexpr add_pointer_t<const _Tp> get_if(const variant<_Types...>* __ptr) noexcept { static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>, "T must occur exactly once in alternatives"); static_assert(!is_void_v<_Tp>, "_Tp must not be void"); constexpr size_t __n = std::__find_uniq_type_in_pack<_Tp, _Types...>(); return std::get_if<__n>(__ptr); } struct monostate { }; # 1240 "/usr/include/c++/13/variant" 3 template<typename... _Types> constexpr bool operator <(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem < __rhs_mem; } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); } else __ret = (__lhs.index() + 1) < (__rhs_index + 1); }, __rhs); return __ret; } template<typename... _Types> constexpr bool operator <=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem <= __rhs_mem; } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) <= (__rhs_index + 1); }, __rhs); return __ret; } template<typename... _Types> constexpr bool operator ==(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem == __rhs_mem; } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); } else __ret = (__lhs.index() + 1) == (__rhs_index + 1); }, __rhs); return __ret; } template<typename... _Types> constexpr bool operator !=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem != __rhs_mem; } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); } else __ret = (__lhs.index() + 1) != (__rhs_index + 1); }, __rhs); return __ret; } template<typename... _Types> constexpr bool operator >=(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem >= __rhs_mem; } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); } else __ret = (__lhs.index() + 1) >= (__rhs_index + 1); }, __rhs); return __ret; } template<typename... _Types> constexpr bool operator >(const variant<_Types...>& __lhs, const variant<_Types...>& __rhs) { bool __ret = true; __detail::__variant::__raw_idx_visit( [&__ret, &__lhs] (auto&& __rhs_mem, auto __rhs_index) mutable { if constexpr (__rhs_index != variant_npos) { if (__lhs.index() == __rhs_index) { auto& __this_mem = std::get<__rhs_index>(__lhs); __ret = __this_mem > __rhs_mem; } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); } else __ret = (__lhs.index() + 1) > (__rhs_index + 1); }, __rhs); return __ret; } constexpr bool operator==(monostate, monostate) noexcept { return true; } template<typename... _Types> requires (three_way_comparable<_Types> && ...) constexpr common_comparison_category_t<compare_three_way_result_t<_Types>...> operator<=>(const variant<_Types...>& __v, const variant<_Types...>& __w) { common_comparison_category_t<compare_three_way_result_t<_Types>...> __ret = strong_ordering::equal; __detail::__variant::__raw_idx_visit( [&__ret, &__v] (auto&& __w_mem, auto __w_index) mutable { if constexpr (__w_index != variant_npos) { if (__v.index() == __w_index) { auto& __this_mem = std::get<__w_index>(__v); __ret = __this_mem <=> __w_mem; return; } } __ret = (__v.index() + 1) <=> (__w_index + 1); }, __w); return __ret; } constexpr strong_ordering operator<=>(monostate, monostate) noexcept { return strong_ordering::equal; } # 1288 "/usr/include/c++/13/variant" 3 template<typename _Visitor, typename... _Variants> constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> visit(_Visitor&&, _Variants&&...); template<typename... _Types> constexpr inline enable_if_t<(is_move_constructible_v<_Types> && ...) && (is_swappable_v<_Types> && ...)> swap(variant<_Types...>& __lhs, variant<_Types...>& __rhs) noexcept(noexcept(__lhs.swap(__rhs))) { __lhs.swap(__rhs); } template<typename... _Types> enable_if_t<!((is_move_constructible_v<_Types> && ...) && (is_swappable_v<_Types> && ...))> swap(variant<_Types...>&, variant<_Types...>&) = delete; class bad_variant_access : public exception { public: bad_variant_access() noexcept { } const char* what() const noexcept override { return _M_reason; } private: bad_variant_access(const char* __reason) noexcept : _M_reason(__reason) { } const char* _M_reason = "bad variant access"; friend void __throw_bad_variant_access(const char* __what); }; inline void __throw_bad_variant_access(const char* __what) { (throw (bad_variant_access(__what))); } inline void __throw_bad_variant_access(bool __valueless) { if (__valueless) [[__unlikely__]] __throw_bad_variant_access("std::get: variant is valueless"); else __throw_bad_variant_access("std::get: wrong index for variant"); } template<typename... _Types> class variant : private __detail::__variant::_Variant_base<_Types...>, private _Enable_default_constructor< __detail::__variant::_Traits<_Types...>::_S_default_ctor, variant<_Types...>>, private _Enable_copy_move< __detail::__variant::_Traits<_Types...>::_S_copy_ctor, __detail::__variant::_Traits<_Types...>::_S_copy_assign, __detail::__variant::_Traits<_Types...>::_S_move_ctor, __detail::__variant::_Traits<_Types...>::_S_move_assign, variant<_Types...>> { private: template <typename... _UTypes, typename _Tp> friend constexpr decltype(auto) __variant_cast(_Tp&&); static_assert(sizeof...(_Types) > 0, "variant must have at least one alternative"); static_assert(!(std::is_reference_v<_Types> || ...), "variant must have no reference alternative"); static_assert(!(std::is_void_v<_Types> || ...), "variant must have no void alternative"); using _Base = __detail::__variant::_Variant_base<_Types...>; using _Default_ctor_enabler = _Enable_default_constructor< __detail::__variant::_Traits<_Types...>::_S_default_ctor, variant<_Types...>>; template<typename _Tp> static constexpr bool __not_self = !is_same_v<__remove_cvref_t<_Tp>, variant>; template<typename _Tp> static constexpr bool __exactly_once = __detail::__variant::__exactly_once<_Tp, _Types...>; template<typename _Tp> static constexpr size_t __accepted_index = __detail::__variant::__accepted_index<_Tp, variant>; template<size_t _Np, typename = enable_if_t<(_Np < sizeof...(_Types))>> using __to_type = typename _Nth_type<_Np, _Types...>::type; template<typename _Tp, typename = enable_if_t<__not_self<_Tp>>> using __accepted_type = __to_type<__accepted_index<_Tp>>; template<typename _Tp> static constexpr size_t __index_of = std::__find_uniq_type_in_pack<_Tp, _Types...>(); using _Traits = __detail::__variant::_Traits<_Types...>; template<typename _Tp> struct __is_in_place_tag : false_type { }; template<typename _Tp> struct __is_in_place_tag<in_place_type_t<_Tp>> : true_type { }; template<size_t _Np> struct __is_in_place_tag<in_place_index_t<_Np>> : true_type { }; template<typename _Tp> static constexpr bool __not_in_place_tag = !__is_in_place_tag<__remove_cvref_t<_Tp>>::value; public: variant() = default; variant(const variant& __rhs) = default; variant(variant&&) = default; variant& operator=(const variant&) = default; variant& operator=(variant&&) = default; constexpr ~variant() = default; template<typename _Tp, typename = enable_if_t<sizeof...(_Types) != 0>, typename = enable_if_t<__not_in_place_tag<_Tp>>, typename _Tj = __accepted_type<_Tp&&>, typename = enable_if_t<__exactly_once<_Tj> && is_constructible_v<_Tj, _Tp>>> constexpr variant(_Tp&& __t) noexcept(is_nothrow_constructible_v<_Tj, _Tp>) : variant(in_place_index<__accepted_index<_Tp>>, std::forward<_Tp>(__t)) { } template<typename _Tp, typename... _Args, typename = enable_if_t<__exactly_once<_Tp> && is_constructible_v<_Tp, _Args...>>> constexpr explicit variant(in_place_type_t<_Tp>, _Args&&... __args) : variant(in_place_index<__index_of<_Tp>>, std::forward<_Args>(__args)...) { } template<typename _Tp, typename _Up, typename... _Args, typename = enable_if_t<__exactly_once<_Tp> && is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>>> constexpr explicit variant(in_place_type_t<_Tp>, initializer_list<_Up> __il, _Args&&... __args) : variant(in_place_index<__index_of<_Tp>>, __il, std::forward<_Args>(__args)...) { } template<size_t _Np, typename... _Args, typename _Tp = __to_type<_Np>, typename = enable_if_t<is_constructible_v<_Tp, _Args...>>> constexpr explicit variant(in_place_index_t<_Np>, _Args&&... __args) : _Base(in_place_index<_Np>, std::forward<_Args>(__args)...), _Default_ctor_enabler(_Enable_default_constructor_tag{}) { } template<size_t _Np, typename _Up, typename... _Args, typename _Tp = __to_type<_Np>, typename = enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...>>> constexpr explicit variant(in_place_index_t<_Np>, initializer_list<_Up> __il, _Args&&... __args) : _Base(in_place_index<_Np>, __il, std::forward<_Args>(__args)...), _Default_ctor_enabler(_Enable_default_constructor_tag{}) { } template<typename _Tp> constexpr enable_if_t<__exactly_once<__accepted_type<_Tp&&>> && is_constructible_v<__accepted_type<_Tp&&>, _Tp> && is_assignable_v<__accepted_type<_Tp&&>&, _Tp>, variant&> operator=(_Tp&& __rhs) noexcept(is_nothrow_assignable_v<__accepted_type<_Tp&&>&, _Tp> && is_nothrow_constructible_v<__accepted_type<_Tp&&>, _Tp>) { constexpr auto __index = __accepted_index<_Tp>; if (index() == __index) std::get<__index>(*this) = std::forward<_Tp>(__rhs); else { using _Tj = __accepted_type<_Tp&&>; if constexpr (is_nothrow_constructible_v<_Tj, _Tp> || !is_nothrow_move_constructible_v<_Tj>) this->emplace<__index>(std::forward<_Tp>(__rhs)); else this->emplace<__index>(_Tj(std::forward<_Tp>(__rhs))); } return *this; } template<typename _Tp, typename... _Args> constexpr enable_if_t<is_constructible_v<_Tp, _Args...> && __exactly_once<_Tp>, _Tp&> emplace(_Args&&... __args) { constexpr size_t __index = __index_of<_Tp>; return this->emplace<__index>(std::forward<_Args>(__args)...); } template<typename _Tp, typename _Up, typename... _Args> constexpr enable_if_t<is_constructible_v<_Tp, initializer_list<_Up>&, _Args...> && __exactly_once<_Tp>, _Tp&> emplace(initializer_list<_Up> __il, _Args&&... __args) { constexpr size_t __index = __index_of<_Tp>; return this->emplace<__index>(__il, std::forward<_Args>(__args)...); } template<size_t _Np, typename... _Args> constexpr enable_if_t<is_constructible_v<__to_type<_Np>, _Args...>, __to_type<_Np>&> emplace(_Args&&... __args) { namespace __variant = std::__detail::__variant; using type = typename _Nth_type<_Np, _Types...>::type; if constexpr (is_nothrow_constructible_v<type, _Args...>) { __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); } else if constexpr (is_scalar_v<type>) { const type __tmp(std::forward<_Args>(__args)...); __variant::__emplace<_Np>(*this, __tmp); } else if constexpr (__variant::_Never_valueless_alt<type>() && _Traits::_S_move_assign) { variant __tmp(in_place_index<_Np>, std::forward<_Args>(__args)...); *this = std::move(__tmp); } else { __variant::__emplace<_Np>(*this, std::forward<_Args>(__args)...); } return std::get<_Np>(*this); } template<size_t _Np, typename _Up, typename... _Args> constexpr enable_if_t<is_constructible_v<__to_type<_Np>, initializer_list<_Up>&, _Args...>, __to_type<_Np>&> emplace(initializer_list<_Up> __il, _Args&&... __args) { namespace __variant = std::__detail::__variant; using type = typename _Nth_type<_Np, _Types...>::type; if constexpr (is_nothrow_constructible_v<type, initializer_list<_Up>&, _Args...>) { __variant::__emplace<_Np>(*this, __il, std::forward<_Args>(__args)...); } else if constexpr (__variant::_Never_valueless_alt<type>() && _Traits::_S_move_assign) { variant __tmp(in_place_index<_Np>, __il, std::forward<_Args>(__args)...); *this = std::move(__tmp); } else { __variant::__emplace<_Np>(*this, __il, std::forward<_Args>(__args)...); } return std::get<_Np>(*this); } template<size_t _Np, typename... _Args> enable_if_t<!(_Np < sizeof...(_Types))> emplace(_Args&&...) = delete; template<typename _Tp, typename... _Args> enable_if_t<!__exactly_once<_Tp>> emplace(_Args&&...) = delete; constexpr bool valueless_by_exception() const noexcept { return !this->_M_valid(); } constexpr size_t index() const noexcept { using __index_type = typename _Base::__index_type; if constexpr (__detail::__variant::__never_valueless<_Types...>()) return this->_M_index; else if constexpr (sizeof...(_Types) <= __index_type(-1) / 2) return make_signed_t<__index_type>(this->_M_index); else return size_t(__index_type(this->_M_index + 1)) - 1; } constexpr void swap(variant& __rhs) noexcept((__is_nothrow_swappable<_Types>::value && ...) && is_nothrow_move_constructible_v<variant>) { static_assert((is_move_constructible_v<_Types> && ...)); if (__rhs.valueless_by_exception()) [[__unlikely__]] { if (!this->valueless_by_exception()) [[__likely__]] __rhs.swap(*this); return; } namespace __variant = __detail::__variant; __variant::__raw_idx_visit( [this, &__rhs](auto&& __rhs_mem, auto __rhs_index) mutable { constexpr size_t __j = __rhs_index; if constexpr (__j != variant_npos) { if (this->index() == __j) { using std::swap; swap(std::get<__j>(*this), __rhs_mem); } else { auto __tmp(std::move(__rhs_mem)); if constexpr (_Traits::_S_trivial_move_assign) __rhs = std::move(*this); else __variant::__raw_idx_visit( [&__rhs](auto&& __this_mem, auto __this_index) mutable { constexpr size_t __k = __this_index; if constexpr (__k != variant_npos) __variant::__emplace<__k>(__rhs, std::move(__this_mem)); }, *this); __variant::__emplace<__j>(*this, std::move(__tmp)); } } }, __rhs); } private: template<size_t _Np, typename _Vp> friend constexpr decltype(auto) __detail::__variant::__get(_Vp&& __v) noexcept; template<typename... _Tp> friend constexpr bool operator <(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); template<typename... _Tp> friend constexpr bool operator <=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); template<typename... _Tp> friend constexpr bool operator ==(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); template<typename... _Tp> friend constexpr bool operator !=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); template<typename... _Tp> friend constexpr bool operator >=(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); template<typename... _Tp> friend constexpr bool operator >(const variant<_Tp...>& __lhs, const variant<_Tp...>& __rhs); }; template<size_t _Np, typename... _Types> constexpr variant_alternative_t<_Np, variant<_Types...>>& get(variant<_Types...>& __v) { static_assert(_Np < sizeof...(_Types), "The index must be in [0, number of alternatives)"); if (__v.index() != _Np) __throw_bad_variant_access(__v.valueless_by_exception()); return __detail::__variant::__get<_Np>(__v); } template<size_t _Np, typename... _Types> constexpr variant_alternative_t<_Np, variant<_Types...>>&& get(variant<_Types...>&& __v) { static_assert(_Np < sizeof...(_Types), "The index must be in [0, number of alternatives)"); if (__v.index() != _Np) __throw_bad_variant_access(__v.valueless_by_exception()); return __detail::__variant::__get<_Np>(std::move(__v)); } template<size_t _Np, typename... _Types> constexpr const variant_alternative_t<_Np, variant<_Types...>>& get(const variant<_Types...>& __v) { static_assert(_Np < sizeof...(_Types), "The index must be in [0, number of alternatives)"); if (__v.index() != _Np) __throw_bad_variant_access(__v.valueless_by_exception()); return __detail::__variant::__get<_Np>(__v); } template<size_t _Np, typename... _Types> constexpr const variant_alternative_t<_Np, variant<_Types...>>&& get(const variant<_Types...>&& __v) { static_assert(_Np < sizeof...(_Types), "The index must be in [0, number of alternatives)"); if (__v.index() != _Np) __throw_bad_variant_access(__v.valueless_by_exception()); return __detail::__variant::__get<_Np>(std::move(__v)); } template<typename _Result_type, typename _Visitor, typename... _Variants> constexpr decltype(auto) __do_visit(_Visitor&& __visitor, _Variants&&... __variants) { if constexpr (sizeof...(_Variants) == 0) { if constexpr (is_void_v<_Result_type>) return (void) std::forward<_Visitor>(__visitor)(); else return std::forward<_Visitor>(__visitor)(); } else { constexpr size_t __max = 11; using _V0 = typename _Nth_type<0, _Variants...>::type; constexpr auto __n = variant_size_v<remove_reference_t<_V0>>; if constexpr (sizeof...(_Variants) > 1 || __n > __max) { constexpr auto& __vtable = __detail::__variant::__gen_vtable< _Result_type, _Visitor&&, _Variants&&...>::_S_vtable; auto __func_ptr = __vtable._M_access(__variants.index()...); return (*__func_ptr)(std::forward<_Visitor>(__visitor), std::forward<_Variants>(__variants)...); } else { _V0& __v0 = [](_V0& __v, ...) -> _V0& { return __v; }(__variants...); using __detail::__variant::_Multi_array; using __detail::__variant::__gen_vtable_impl; using _Ma = _Multi_array<_Result_type (*)(_Visitor&&, _V0&&)>; # 1789 "/usr/include/c++/13/variant" 3 switch (__v0.index()) { case 0: { if constexpr (0 < __n) { return __gen_vtable_impl<_Ma, index_sequence<0>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 1: { if constexpr (1 < __n) { return __gen_vtable_impl<_Ma, index_sequence<1>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 2: { if constexpr (2 < __n) { return __gen_vtable_impl<_Ma, index_sequence<2>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 3: { if constexpr (3 < __n) { return __gen_vtable_impl<_Ma, index_sequence<3>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 4: { if constexpr (4 < __n) { return __gen_vtable_impl<_Ma, index_sequence<4>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 5: { if constexpr (5 < __n) { return __gen_vtable_impl<_Ma, index_sequence<5>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 6: { if constexpr (6 < __n) { return __gen_vtable_impl<_Ma, index_sequence<6>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 7: { if constexpr (7 < __n) { return __gen_vtable_impl<_Ma, index_sequence<7>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 8: { if constexpr (8 < __n) { return __gen_vtable_impl<_Ma, index_sequence<8>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 9: { if constexpr (9 < __n) { return __gen_vtable_impl<_Ma, index_sequence<9>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case 10: { if constexpr (10 < __n) { return __gen_vtable_impl<_Ma, index_sequence<10>>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); } case variant_npos: using __detail::__variant::__variant_idx_cookie; using __detail::__variant::__variant_cookie; if constexpr (is_same_v<_Result_type, __variant_idx_cookie> || is_same_v<_Result_type, __variant_cookie>) { using _Npos = index_sequence<variant_npos>; return __gen_vtable_impl<_Ma, _Npos>:: __visit_invoke(std::forward<_Visitor>(__visitor), std::forward<_V0>(__v0)); } else __builtin_unreachable(); default: __builtin_unreachable(); } } } } template<typename _Visitor, typename... _Variants> constexpr __detail::__variant::__visit_result_t<_Visitor, _Variants...> visit(_Visitor&& __visitor, _Variants&&... __variants) { namespace __variant = std::__detail::__variant; if ((__variant::__as(__variants).valueless_by_exception() || ...)) __throw_bad_variant_access("std::visit: variant is valueless"); using _Result_type = __detail::__variant::__visit_result_t<_Visitor, _Variants...>; using _Tag = __detail::__variant::__deduce_visit_result<_Result_type>; if constexpr (sizeof...(_Variants) == 1) { using _Vp = decltype(__variant::__as(std::declval<_Variants>()...)); constexpr bool __visit_rettypes_match = __detail::__variant:: __check_visitor_results<_Visitor, _Vp>( make_index_sequence<variant_size_v<remove_reference_t<_Vp>>>()); if constexpr (!__visit_rettypes_match) { static_assert(__visit_rettypes_match, "std::visit requires the visitor to have the same " "return type for all alternatives of a variant"); return; } else return std::__do_visit<_Tag>( std::forward<_Visitor>(__visitor), static_cast<_Vp>(__variants)...); } else return std::__do_visit<_Tag>( std::forward<_Visitor>(__visitor), __variant::__as(std::forward<_Variants>(__variants))...); } template<typename _Res, typename _Visitor, typename... _Variants> constexpr _Res visit(_Visitor&& __visitor, _Variants&&... __variants) { namespace __variant = std::__detail::__variant; if ((__variant::__as(__variants).valueless_by_exception() || ...)) __throw_bad_variant_access("std::visit<R>: variant is valueless"); return std::__do_visit<_Res>(std::forward<_Visitor>(__visitor), __variant::__as(std::forward<_Variants>(__variants))...); } template<bool, typename... _Types> struct __variant_hash_call_base_impl { size_t operator()(const variant<_Types...>& __t) const noexcept((is_nothrow_invocable_v<hash<decay_t<_Types>>, _Types> && ...)) { size_t __ret; __detail::__variant::__raw_visit( [&__t, &__ret](auto&& __t_mem) mutable { using _Type = __remove_cvref_t<decltype(__t_mem)>; if constexpr (!is_same_v<_Type, __detail::__variant::__variant_cookie>) __ret = std::hash<size_t>{}(__t.index()) + std::hash<_Type>{}(__t_mem); else __ret = std::hash<size_t>{}(__t.index()); }, __t); return __ret; } }; template<typename... _Types> struct __variant_hash_call_base_impl<false, _Types...> {}; template<typename... _Types> using __variant_hash_call_base = __variant_hash_call_base_impl<(__poison_hash<remove_const_t<_Types>>:: __enable_hash_call &&...), _Types...>; template<typename... _Types> struct hash<variant<_Types...>> : private __detail::__variant::_Variant_hash_base< variant<_Types...>, std::index_sequence_for<_Types...>>, public __variant_hash_call_base<_Types...> { using result_type [[__deprecated__]] = size_t; using argument_type [[__deprecated__]] = variant<_Types...>; }; template<> struct hash<monostate> { using result_type [[__deprecated__]] = size_t; using argument_type [[__deprecated__]] = monostate; size_t operator()(const monostate&) const noexcept { constexpr size_t __magic_monostate_hash = -7777; return __magic_monostate_hash; } }; template<typename... _Types> struct __is_fast_hash<hash<variant<_Types...>>> : bool_constant<(__is_fast_hash<_Types>::value && ...)> { }; } # 48 "/usr/include/c++/13/format" 2 3 # 59 "/usr/include/c++/13/format" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 76 "/usr/include/c++/13/format" 3 template<typename _Out, typename _CharT> class basic_format_context; namespace __format { template<typename _CharT> struct _Sink; template<typename _CharT> class _Sink_iter; } using format_context = basic_format_context<__format::_Sink_iter<char>, char>; using wformat_context = basic_format_context<__format::_Sink_iter<wchar_t>, wchar_t>; template<typename _Context> class basic_format_args; using format_args = basic_format_args<format_context>; using wformat_args = basic_format_args<wformat_context>; template<typename _Context> class basic_format_arg; template<typename _CharT, typename... _Args> struct basic_format_string { template<typename _Tp> requires convertible_to<const _Tp&, basic_string_view<_CharT>> consteval basic_format_string(const _Tp& __s); [[__gnu__::__always_inline__]] constexpr basic_string_view<_CharT> get() const noexcept { return _M_str; } private: basic_string_view<_CharT> _M_str; }; template<typename... _Args> using format_string = basic_format_string<char, type_identity_t<_Args>...>; template<typename... _Args> using wformat_string = basic_format_string<wchar_t, type_identity_t<_Args>...>; template<typename _Tp, typename _CharT = char> struct formatter { formatter() = delete; formatter(const formatter&) = delete; formatter& operator=(const formatter&) = delete; }; class format_error : public runtime_error { public: explicit format_error(const string& __what) : runtime_error(__what) { } explicit format_error(const char* __what) : runtime_error(__what) { } }; [[noreturn]] inline void __throw_format_error(const char* __what) { (throw (format_error(__what))); } namespace __format { [[noreturn]] inline void __unmatched_left_brace_in_format_string() { __throw_format_error("format error: unmatched '{' in format string"); } [[noreturn]] inline void __unmatched_right_brace_in_format_string() { __throw_format_error("format error: unmatched '}' in format string"); } [[noreturn]] inline void __conflicting_indexing_in_format_string() { __throw_format_error("format error: conflicting indexing style in format string"); } [[noreturn]] inline void __invalid_arg_id_in_format_string() { __throw_format_error("format error: invalid arg-id in format string"); } [[noreturn]] inline void __failed_to_parse_format_spec() { __throw_format_error("format error: failed to parse format-spec"); } } template<typename _CharT> class basic_format_parse_context; using format_parse_context = basic_format_parse_context<char>; using wformat_parse_context = basic_format_parse_context<wchar_t>; template<typename _CharT> class basic_format_parse_context { public: using char_type = _CharT; using const_iterator = typename basic_string_view<_CharT>::const_iterator; using iterator = const_iterator; constexpr explicit basic_format_parse_context(basic_string_view<_CharT> __fmt, size_t __num_args = 0) noexcept : _M_begin(__fmt.begin()), _M_end(__fmt.end()), _M_num_args(__num_args) { } basic_format_parse_context(const basic_format_parse_context&) = delete; void operator=(const basic_format_parse_context&) = delete; constexpr const_iterator begin() const noexcept { return _M_begin; } constexpr const_iterator end() const noexcept { return _M_end; } constexpr void advance_to(const_iterator __it) noexcept { _M_begin = __it; } constexpr size_t next_arg_id() { if (_M_indexing == _Manual) __format::__conflicting_indexing_in_format_string(); _M_indexing = _Auto; if (std::is_constant_evaluated()) if (_M_next_arg_id == _M_num_args) __format::__invalid_arg_id_in_format_string(); return _M_next_arg_id++; } constexpr void check_arg_id(size_t __id) { if (_M_indexing == _Auto) __format::__conflicting_indexing_in_format_string(); _M_indexing = _Manual; if (std::is_constant_evaluated()) if (__id >= _M_num_args) __format::__invalid_arg_id_in_format_string(); } private: iterator _M_begin; iterator _M_end; enum _Indexing { _Unknown, _Manual, _Auto }; _Indexing _M_indexing = _Unknown; size_t _M_next_arg_id = 0; size_t _M_num_args; }; template<typename _Tp, template<typename...> class _Class> static constexpr bool __is_specialization_of = false; template<template<typename...> class _Class, typename... _Args> static constexpr bool __is_specialization_of<_Class<_Args...>, _Class> = true; namespace __format { template<typename _CharT> constexpr pair<unsigned short, const _CharT*> __parse_integer(const _CharT* __first, const _CharT* __last) { if (__first == __last) __builtin_unreachable(); if constexpr (is_same_v<_CharT, char>) { const auto __start = __first; unsigned short __val = 0; if (__detail::__from_chars_alnum<true>(__first, __last, __val, 10) && __first != __start) [[likely]] return {__val, __first}; } else { unsigned short __val = 0; constexpr int __n = 32; char __buf[__n]{}; for (int __i = 0; __i < __n && (__first + __i) != __last; ++__i) __buf[__i] = __first[__i]; auto [__v, __ptr] = __format::__parse_integer(__buf, __buf + __n); return {__v, __first + (__ptr - __buf)}; } return {0, nullptr}; } template<typename _CharT> constexpr pair<unsigned short, const _CharT*> __parse_arg_id(const _CharT* __first, const _CharT* __last) { if (__first == __last) __builtin_unreachable(); if (*__first == '0') return {0, __first + 1}; if ('1' <= *__first && *__first <= '9') { const unsigned short __id = *__first - '0'; const auto __next = __first + 1; if (__next == __last || !('0' <= *__next && *__next <= '9')) return {__id, __next}; else return __format::__parse_integer(__first, __last); } return {0, nullptr}; } enum _Pres_type { _Pres_none = 0, _Pres_d = 1, _Pres_b, _Pres_B, _Pres_o, _Pres_x, _Pres_X, _Pres_c, _Pres_a = 1, _Pres_A, _Pres_e, _Pres_E, _Pres_f, _Pres_g, _Pres_G, _Pres_p = 0, _Pres_P, _Pres_s = 0, _Pres_esc = 0xf, }; enum _Align { _Align_default, _Align_left, _Align_right, _Align_centre, }; enum _Sign { _Sign_default, _Sign_plus, _Sign_minus, _Sign_space, }; enum _WidthPrec { _WP_none, _WP_value, _WP_from_arg }; template<typename _Context> size_t __int_from_arg(const basic_format_arg<_Context>& __arg); constexpr bool __is_digit(char __c) { return std::__detail::__from_chars_alnum_to_val(__c) < 10; } constexpr bool __is_xdigit(char __c) { return std::__detail::__from_chars_alnum_to_val(__c) < 16; } template<typename _CharT> struct _Spec { _Align _M_align : 2; _Sign _M_sign : 2; unsigned _M_alt : 1; unsigned _M_localized : 1; unsigned _M_zero_fill : 1; _WidthPrec _M_width_kind : 2; _WidthPrec _M_prec_kind : 2; _Pres_type _M_type : 4; unsigned short _M_width; unsigned short _M_prec; _CharT _M_fill = ' '; using iterator = typename basic_string_view<_CharT>::iterator; static constexpr _Align _S_align(_CharT __c) noexcept { switch (__c) { case '<': return _Align_left; case '>': return _Align_right; case '^': return _Align_centre; default: return _Align_default; } } constexpr iterator _M_parse_fill_and_align(iterator __first, iterator __last) noexcept { if (*__first != '{') { if (__last - __first >= 2) { if (_Align __align = _S_align(__first[1])) { _M_fill = *__first; _M_align = __align; return __first + 2; } } if (_Align __align = _S_align(__first[0])) { _M_fill = ' '; _M_align = __align; return __first + 1; } } return __first; } static constexpr _Sign _S_sign(_CharT __c) noexcept { switch (__c) { case '+': return _Sign_plus; case '-': return _Sign_minus; case ' ': return _Sign_space; default: return _Sign_default; } } constexpr iterator _M_parse_sign(iterator __first, iterator) noexcept { if (_Sign __sign = _S_sign(*__first)) { _M_sign = __sign; return __first + 1; } return __first; } constexpr iterator _M_parse_alternate_form(iterator __first, iterator) noexcept { if (*__first == '#') { _M_alt = true; ++__first; } return __first; } constexpr iterator _M_parse_zero_fill(iterator __first, iterator ) noexcept { if (*__first == '0') { _M_zero_fill = true; ++__first; } return __first; } static constexpr iterator _S_parse_width_or_precision(iterator __first, iterator __last, unsigned short& __val, bool& __arg_id, basic_format_parse_context<_CharT>& __pc) { if (__format::__is_digit(*__first)) { auto [__v, __ptr] = __format::__parse_integer(__first, __last); if (!__ptr) __throw_format_error("format error: invalid width or precision " "in format-spec"); __first = __ptr; __val = __v; } else if (*__first == '{') { __arg_id = true; ++__first; if (__first == __last) __format::__unmatched_left_brace_in_format_string(); if (*__first == '}') __val = __pc.next_arg_id(); else { auto [__v, __ptr] = __format::__parse_arg_id(__first, __last); if (__ptr == nullptr || __ptr == __last || *__ptr != '}') __format::__invalid_arg_id_in_format_string(); __first = __ptr; __pc.check_arg_id(__v); __val = __v; } ++__first; } return __first; } constexpr iterator _M_parse_width(iterator __first, iterator __last, basic_format_parse_context<_CharT>& __pc) { bool __arg_id = false; if (*__first == '0') __throw_format_error("format error: width must be non-zero in " "format string"); auto __next = _S_parse_width_or_precision(__first, __last, _M_width, __arg_id, __pc); if (__next != __first) _M_width_kind = __arg_id ? _WP_from_arg : _WP_value; return __next; } constexpr iterator _M_parse_precision(iterator __first, iterator __last, basic_format_parse_context<_CharT>& __pc) { if (__first[0] != '.') return __first; ++__first; bool __arg_id = false; auto __next = _S_parse_width_or_precision(__first, __last, _M_prec, __arg_id, __pc); if (__next == __first) __throw_format_error("format error: missing precision after '.' in " "format string"); _M_prec_kind = __arg_id ? _WP_from_arg : _WP_value; return __next; } constexpr iterator _M_parse_locale(iterator __first, iterator ) noexcept { if (*__first == 'L') { _M_localized = true; ++__first; } return __first; } template<typename _Context> size_t _M_get_width(_Context& __ctx) const { size_t __width = 0; if (_M_width_kind == _WP_value) __width = _M_width; else if (_M_width_kind == _WP_from_arg) __width = __format::__int_from_arg(__ctx.arg(_M_width)); return __width; } template<typename _Context> size_t _M_get_precision(_Context& __ctx) const { size_t __prec = -1; if (_M_prec_kind == _WP_value) __prec = _M_prec; else if (_M_prec_kind == _WP_from_arg) __prec = __format::__int_from_arg(__ctx.arg(_M_prec)); return __prec; } }; template<typename _Int> inline char* __put_sign(_Int __i, _Sign __sign, char* __dest) noexcept { if (__i < 0) *__dest = '-'; else if (__sign == _Sign_plus) *__dest = '+'; else if (__sign == _Sign_space) *__dest = ' '; else ++__dest; return __dest; } template<typename _Out, typename _CharT> requires output_iterator<_Out, const _CharT&> inline _Out __write(_Out __out, basic_string_view<_CharT> __str) { if constexpr (is_same_v<_Out, _Sink_iter<_CharT>>) { if (__str.size()) __out = __str; } else for (_CharT __c : __str) *__out++ = __c; return __out; } template<typename _Out, typename _CharT> _Out __write_padded(_Out __out, basic_string_view<_CharT> __str, _Align __align, size_t __nfill, _CharT __fill_char) { const size_t __buflen = 0x20; _CharT __padding_chars[__buflen]; basic_string_view<_CharT> __padding{__padding_chars, __buflen}; auto __pad = [&__padding] (size_t __n, _Out& __o) { if (__n == 0) return; while (__n > __padding.size()) { __o = __format::__write(std::move(__o), __padding); __n -= __padding.size(); } if (__n != 0) __o = __format::__write(std::move(__o), __padding.substr(0, __n)); }; size_t __l, __r, __max; if (__align == _Align_centre) { __l = __nfill / 2; __r = __l + (__nfill & 1); __max = __r; } else if (__align == _Align_right) { __l = __nfill; __r = 0; __max = __l; } else { __l = 0; __r = __nfill; __max = __r; } if (__max < __buflen) __padding.remove_suffix(__buflen - __max); else __max = __buflen; char_traits<_CharT>::assign(__padding_chars, __max, __fill_char); __pad(__l, __out); __out = __format::__write(std::move(__out), __str); __pad(__r, __out); return __out; } template<typename _CharT, typename _Out> _Out __write_padded_as_spec(basic_string_view<type_identity_t<_CharT>> __str, size_t __estimated_width, basic_format_context<_Out, _CharT>& __fc, const _Spec<_CharT>& __spec, _Align __align = _Align_left) { size_t __width = __spec._M_get_width(__fc); if (__width <= __estimated_width) return __format::__write(__fc.out(), __str); const size_t __nfill = __width - __estimated_width; if (__spec._M_align) __align = __spec._M_align; return __format::__write_padded(__fc.out(), __str, __align, __nfill, __spec._M_fill); } struct _Optional_locale { [[__gnu__::__always_inline__]] _Optional_locale() : _M_dummy(), _M_hasval(false) { } _Optional_locale(const locale& __loc) noexcept : _M_loc(__loc), _M_hasval(true) { } _Optional_locale(const _Optional_locale& __l) noexcept : _M_dummy(), _M_hasval(__l._M_hasval) { if (_M_hasval) std::construct_at(&_M_loc, __l._M_loc); } _Optional_locale& operator=(const _Optional_locale& __l) noexcept { if (_M_hasval) { if (__l._M_hasval) _M_loc = __l._M_loc; else { _M_loc.~locale(); _M_hasval = false; } } else if (__l._M_hasval) { std::construct_at(&_M_loc, __l._M_loc); _M_hasval = true; } return *this; } ~_Optional_locale() { if (_M_hasval) _M_loc.~locale(); } _Optional_locale& operator=(locale&& __loc) noexcept { if (_M_hasval) _M_loc = std::move(__loc); else { std::construct_at(&_M_loc, std::move(__loc)); _M_hasval = true; } return *this; } const locale& value() noexcept { if (!_M_hasval) { std::construct_at(&_M_loc); _M_hasval = true; } return _M_loc; } bool has_value() const noexcept { return _M_hasval; } union { char _M_dummy = '\0'; std::locale _M_loc; }; bool _M_hasval = false; }; template<typename _CharT> concept __char = same_as<_CharT, char> || same_as<_CharT, wchar_t>; template<__char _CharT> struct __formatter_str { constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { auto __first = __pc.begin(); const auto __last = __pc.end(); _Spec<_CharT> __spec{}; auto __finalize = [this, &__spec] { _M_spec = __spec; }; auto __finished = [&] { if (__first == __last || *__first == '}') { __finalize(); return true; } return false; }; if (__finished()) return __first; __first = __spec._M_parse_fill_and_align(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_width(__first, __last, __pc); if (__finished()) return __first; __first = __spec._M_parse_precision(__first, __last, __pc); if (__finished()) return __first; if (*__first == 's') ++__first; # 807 "/usr/include/c++/13/format" 3 if (__finished()) return __first; __format::__failed_to_parse_format_spec(); } template<typename _Out> _Out format(basic_string_view<_CharT> __s, basic_format_context<_Out, _CharT>& __fc) const { if (_M_spec._M_type == _Pres_esc) { } if (_M_spec._M_width_kind == _WP_none && _M_spec._M_prec_kind == _WP_none) return __format::__write(__fc.out(), __s); size_t __estimated_width = __s.size(); if (_M_spec._M_prec_kind != _WP_none) { size_t __prec = _M_spec._M_get_precision(__fc); if (__estimated_width > __prec) { __s = __s.substr(0, __prec); __estimated_width = __prec; } } return __format::__write_padded_as_spec(__s, __estimated_width, __fc, _M_spec); } private: _Spec<_CharT> _M_spec{}; }; template<__char _CharT> struct __formatter_int { static constexpr _Pres_type _AsInteger = _Pres_d; static constexpr _Pres_type _AsBool = _Pres_s; static constexpr _Pres_type _AsChar = _Pres_c; constexpr typename basic_format_parse_context<_CharT>::iterator _M_do_parse(basic_format_parse_context<_CharT>& __pc, _Pres_type __type) { _Spec<_CharT> __spec{}; __spec._M_type = __type; const auto __last = __pc.end(); auto __first = __pc.begin(); auto __finalize = [this, &__spec] { _M_spec = __spec; }; auto __finished = [&] { if (__first == __last || *__first == '}') { __finalize(); return true; } return false; }; if (__finished()) return __first; __first = __spec._M_parse_fill_and_align(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_sign(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_alternate_form(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_zero_fill(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_width(__first, __last, __pc); if (__finished()) return __first; __first = __spec._M_parse_locale(__first, __last); if (__finished()) return __first; switch (*__first) { case 'b': __spec._M_type = _Pres_b; ++__first; break; case 'B': __spec._M_type = _Pres_B; ++__first; break; case 'c': if (__type != _AsBool) { __spec._M_type = _Pres_c; ++__first; } break; case 'd': __spec._M_type = _Pres_d; ++__first; break; case 'o': __spec._M_type = _Pres_o; ++__first; break; case 'x': __spec._M_type = _Pres_x; ++__first; break; case 'X': __spec._M_type = _Pres_X; ++__first; break; case 's': if (__type == _AsBool) { __spec._M_type = _Pres_s; ++__first; } break; # 961 "/usr/include/c++/13/format" 3 break; } if (__finished()) return __first; __format::__failed_to_parse_format_spec(); } template<typename _Tp> constexpr typename basic_format_parse_context<_CharT>::iterator _M_parse(basic_format_parse_context<_CharT>& __pc) { if constexpr (is_same_v<_Tp, bool>) { auto __end = _M_do_parse(__pc, _AsBool); if (_M_spec._M_type == _Pres_s) if (_M_spec._M_sign || _M_spec._M_alt || _M_spec._M_zero_fill) __throw_format_error("format error: format-spec contains " "invalid formatting options for " "'bool'"); return __end; } else if constexpr (__char<_Tp>) { auto __end = _M_do_parse(__pc, _AsChar); if (_M_spec._M_type == _Pres_c || _M_spec._M_type == _Pres_esc) if (_M_spec._M_sign || _M_spec._M_alt || _M_spec._M_zero_fill ) __throw_format_error("format error: format-spec contains " "invalid formatting options for " "'charT'"); return __end; } else return _M_do_parse(__pc, _AsInteger); } template<typename _Int, typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(_Int __i, basic_format_context<_Out, _CharT>& __fc) const { if (_M_spec._M_type == _Pres_c) return _M_format_character(_S_to_character(__i), __fc); char __buf[sizeof(_Int) * 8 + 3]; to_chars_result __res{}; string_view __base_prefix; make_unsigned_t<_Int> __u; if (__i < 0) __u = -static_cast<make_unsigned_t<_Int>>(__i); else __u = __i; char* __start = __buf + 3; char* const __end = __buf + sizeof(__buf); char* const __start_digits = __start; switch (_M_spec._M_type) { case _Pres_b: case _Pres_B: __base_prefix = _M_spec._M_type == _Pres_b ? "0b" : "0B"; __res = to_chars(__start, __end, __u, 2); break; case _Pres_none: [[fallthrough]]; case _Pres_d: __res = to_chars(__start, __end, __u, 10); break; case _Pres_o: if (__i != 0) __base_prefix = "0"; __res = to_chars(__start, __end, __u, 8); break; case _Pres_x: case _Pres_X: __base_prefix = _M_spec._M_type == _Pres_x ? "0x" : "0X"; __res = to_chars(__start, __end, __u, 16); if (_M_spec._M_type == _Pres_X) for (auto __p = __start; __p != __res.ptr; ++__p) *__p = __builtin_toupper(*__p); break; default: __builtin_unreachable(); } if (_M_spec._M_alt && __base_prefix.size()) { __start -= __base_prefix.size(); __builtin_memcpy(__start, __base_prefix.data(), __base_prefix.size()); } __start = __format::__put_sign(__i, _M_spec._M_sign, __start - 1); return _M_format_int(string_view(__start, __res.ptr - __start), __start_digits - __start, __fc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(bool __i, basic_format_context<_Out, _CharT>& __fc) const { if (_M_spec._M_type == _Pres_c) return _M_format_character(static_cast<unsigned char>(__i), __fc); if (_M_spec._M_type != _Pres_s) return format(static_cast<unsigned char>(__i), __fc); basic_string<_CharT> __s; size_t __est_width; if (_M_spec._M_localized) [[unlikely]] { auto& __np = std::use_facet<numpunct<_CharT>>(__fc.locale()); __s = __i ? __np.truename() : __np.falsename(); __est_width = __s.size(); } else { if constexpr (is_same_v<char, _CharT>) __s = __i ? "true" : "false"; else __s = __i ? L"true" : L"false"; __est_width = __s.size(); } return __format::__write_padded_as_spec(__s, __est_width, __fc, _M_spec); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator _M_format_character(_CharT __c, basic_format_context<_Out, _CharT>& __fc) const { return __format::__write_padded_as_spec({&__c, 1u}, 1, __fc, _M_spec); } template<typename _Int> static _CharT _S_to_character(_Int __i) { using _Traits = __gnu_cxx::__int_traits<_CharT>; if constexpr (is_signed_v<_Int> == is_signed_v<_CharT>) { if (_Traits::__min <= __i && __i <= _Traits::__max) return static_cast<_CharT>(__i); } else if constexpr (is_signed_v<_Int>) { if (__i >= 0 && make_unsigned_t<_Int>(__i) <= _Traits::__max) return static_cast<_CharT>(__i); } else if (__i <= make_unsigned_t<_CharT>(_Traits::__max)) return static_cast<_CharT>(__i); __throw_format_error("format error: integer not representable as " "character"); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator _M_format_int(string_view __narrow_str, size_t __prefix_len, basic_format_context<_Out, _CharT>& __fc) const { size_t __width = _M_spec._M_get_width(__fc); _Optional_locale __loc; basic_string_view<_CharT> __str; if constexpr (is_same_v<char, _CharT>) __str = __narrow_str; else { __loc = __fc.locale(); auto& __ct = use_facet<ctype<_CharT>>(__loc.value()); size_t __n = __narrow_str.size(); auto __p = (_CharT*)__builtin_alloca(__n * sizeof(_CharT)); __ct.widen(__narrow_str.data(), __narrow_str.data() + __n, __p); __str = {__p, __n}; } if (_M_spec._M_localized) { if constexpr (is_same_v<char, _CharT>) __loc = __fc.locale(); const auto& __l = __loc.value(); if (__l.name() != "C") { auto& __np = use_facet<numpunct<_CharT>>(__l); string __grp = __np.grouping(); if (!__grp.empty()) { size_t __n = __str.size() - __prefix_len; auto __p = (_CharT*)__builtin_alloca(2 * __n * sizeof(_CharT) + __prefix_len); auto __s = __str.data(); char_traits<_CharT>::copy(__p, __s, __prefix_len); __s += __prefix_len; auto __end = std::__add_grouping(__p + __prefix_len, __np.thousands_sep(), __grp.data(), __grp.size(), __s, __s + __n); __str = {__p, size_t(__end - __p)}; } } } if (__width <= __str.size()) return __format::__write(__fc.out(), __str); _CharT __fill_char = _M_spec._M_fill; _Align __align = _M_spec._M_align; size_t __nfill = __width - __str.size(); auto __out = __fc.out(); if (__align == _Align_default) { __align = _Align_right; if (_M_spec._M_zero_fill) { __fill_char = _CharT('0'); if (__prefix_len != 0) { __out = __format::__write(std::move(__out), __str.substr(0, __prefix_len)); __str.remove_prefix(__prefix_len); } } else __fill_char = _CharT(' '); } return __format::__write_padded(std::move(__out), __str, __align, __nfill, __fill_char); } # 1222 "/usr/include/c++/13/format" 3 _Spec<_CharT> _M_spec{}; }; # 1278 "/usr/include/c++/13/format" 3 using __float128_t = _Float128; to_chars_result to_chars(char*, char*, _Float128) noexcept __asm("_ZSt8to_charsPcS_DF128_"); to_chars_result to_chars(char*, char*, _Float128, chars_format) noexcept __asm("_ZSt8to_charsPcS_DF128_St12chars_format"); to_chars_result to_chars(char*, char*, _Float128, chars_format, int) noexcept __asm("_ZSt8to_charsPcS_DF128_St12chars_formati"); using std::to_chars; template<typename _Tp> concept __formattable_float = requires (_Tp __t, char* __p) { __format::to_chars(__p, __p, __t, chars_format::scientific, 6); }; template<__char _CharT> struct __formatter_fp { constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { _Spec<_CharT> __spec{}; const auto __last = __pc.end(); auto __first = __pc.begin(); auto __finalize = [this, &__spec] { _M_spec = __spec; }; auto __finished = [&] { if (__first == __last || *__first == '}') { __finalize(); return true; } return false; }; if (__finished()) return __first; __first = __spec._M_parse_fill_and_align(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_sign(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_alternate_form(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_zero_fill(__first, __last); if (__finished()) return __first; if (__first[0] != '.') { __first = __spec._M_parse_width(__first, __last, __pc); if (__finished()) return __first; } __first = __spec._M_parse_precision(__first, __last, __pc); if (__finished()) return __first; __first = __spec._M_parse_locale(__first, __last); if (__finished()) return __first; switch (*__first) { case 'a': __spec._M_type = _Pres_a; ++__first; break; case 'A': __spec._M_type = _Pres_A; ++__first; break; case 'e': __spec._M_type = _Pres_e; ++__first; break; case 'E': __spec._M_type = _Pres_E; ++__first; break; case 'f': case 'F': __spec._M_type = _Pres_f; ++__first; break; case 'g': __spec._M_type = _Pres_g; ++__first; break; case 'G': __spec._M_type = _Pres_G; ++__first; break; } if (__finished()) return __first; __format::__failed_to_parse_format_spec(); } template<typename _Fp, typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(_Fp __v, basic_format_context<_Out, _CharT>& __fc) const { std::string __dynbuf; char __buf[128]; to_chars_result __res{}; size_t __prec = 6; bool __use_prec = _M_spec._M_prec_kind != _WP_none; if (__use_prec) __prec = _M_spec._M_get_precision(__fc); char* __start = __buf + 1; char* __end = __buf + sizeof(__buf); chars_format __fmt{}; bool __upper = false; bool __trailing_zeros = false; char __expc = 0; switch (_M_spec._M_type) { case _Pres_A: __upper = true; [[fallthrough]]; case _Pres_a: __expc = 'p'; __fmt = chars_format::hex; break; case _Pres_E: __upper = true; [[fallthrough]]; case _Pres_e: __expc = 'e'; __use_prec = true; __fmt = chars_format::scientific; break; case _Pres_f: __use_prec = true; __fmt = chars_format::fixed; break; case _Pres_G: __upper = true; [[fallthrough]]; case _Pres_g: __trailing_zeros = true; __expc = 'e'; __use_prec = true; __fmt = chars_format::general; break; case _Pres_none: if (__use_prec) __fmt = chars_format::general; break; } auto __to_chars = [&](char* __b, char* __e) { if (__use_prec) return __format::to_chars(__b, __e, __v, __fmt, __prec); else if (__fmt != chars_format{}) return __format::to_chars(__b, __e, __v, __fmt); else return __format::to_chars(__b, __e, __v); }; __res = __to_chars(__start, __end); if (__builtin_expect(__res.ec == errc::value_too_large, 0)) { size_t __guess = __prec + sizeof(__buf); if (__fmt == chars_format::fixed) __guess += max((int)__builtin_log10(__builtin_abs(__v)) / 2, 1); __dynbuf.reserve(__guess); do { auto __overwrite = [&__to_chars, &__res] (char* __p, size_t __n) { __res = __to_chars(__p + 1, __p + __n - 1); return __res.ec == errc{} ? __res.ptr - __p : 0; }; _S_resize_and_overwrite(__dynbuf, __dynbuf.capacity() * 2, __overwrite); __start = __dynbuf.data() + 1; __end = __dynbuf.data() + __dynbuf.size(); } while (__builtin_expect(__res.ec == errc::value_too_large, 0)); } if (__upper) { for (char* __p = __start; __p != __res.ptr; ++__p) *__p = std::toupper(*__p); __expc = std::toupper(__expc); } if (!__builtin_signbit(__v)) { if (_M_spec._M_sign == _Sign_plus) *--__start = '+'; else if (_M_spec._M_sign == _Sign_space) *--__start = ' '; } string_view __narrow_str(__start, __res.ptr - __start); if (_M_spec._M_alt && __builtin_isfinite(__v)) { string_view __s = __narrow_str; size_t __z = 0; size_t __p; size_t __d = __s.find('.'); size_t __sigfigs; if (__d != __s.npos) { __p = __s.find(__expc, __d + 1); if (__p == __s.npos) __p = __s.size(); __sigfigs = __p - 1; } else { __p = __s.find(__expc); if (__p == __s.npos) __p = __s.size(); __d = __p; __sigfigs = __d; } if (__trailing_zeros) { if (!__format::__is_xdigit(__s[0])) --__sigfigs; __z = __prec - __sigfigs; } if (size_t __extras = int(__d == __p) + __z) { if (__dynbuf.empty() && __extras <= size_t(__end - __res.ptr)) { __builtin_memmove(__start + __p + __extras, __start + __p, __s.size() - __p); if (__d == __p) __start[__p++] = '.'; __builtin_memset(__start + __p, '0', __z); __narrow_str = {__s.data(), __s.size() + __extras}; } else { __dynbuf.reserve(__s.size() + __extras); if (__dynbuf.empty()) { __dynbuf = __s.substr(0, __p); if (__d == __p) __dynbuf += '.'; if (__z) __dynbuf.append(__z, '0'); } else { __dynbuf.insert(__p, __extras, '0'); if (__d == __p) __dynbuf[__p] = '.'; } __narrow_str = __dynbuf; } } } _Optional_locale __loc; basic_string_view<_CharT> __str; basic_string<_CharT> __wstr; if constexpr (is_same_v<_CharT, char>) __str = __narrow_str; else { __loc = __fc.locale(); auto& __ct = use_facet<ctype<_CharT>>(__loc.value()); const char* __data = __narrow_str.data(); auto __overwrite = [&__data, &__ct](_CharT* __p, size_t __n) { __ct.widen(__data, __data + __n, __p); return __n; }; _S_resize_and_overwrite(__wstr, __narrow_str.size(), __overwrite); __str = __wstr; } if (_M_spec._M_localized) { if constexpr (is_same_v<char, _CharT>) __wstr = _M_localize(__str, __expc, __fc.locale()); else __wstr = _M_localize(__str, __expc, __loc.value()); __str = __wstr; } size_t __width = _M_spec._M_get_width(__fc); if (__width <= __str.size()) return __format::__write(__fc.out(), __str); _CharT __fill_char = _M_spec._M_fill; _Align __align = _M_spec._M_align; size_t __nfill = __width - __str.size(); auto __out = __fc.out(); if (__align == _Align_default) { __align = _Align_right; if (_M_spec._M_zero_fill && __builtin_isfinite(__v)) { __fill_char = _CharT('0'); if (!__format::__is_xdigit(__narrow_str[0])) { *__out++ = __str[0]; __str.remove_prefix(1); } } else __fill_char = _CharT(' '); } return __format::__write_padded(std::move(__out), __str, __align, __nfill, __fill_char); } basic_string<_CharT> _M_localize(basic_string_view<_CharT> __str, char __expc, const locale& __loc) const { basic_string<_CharT> __lstr; if (__loc == locale::classic()) return __lstr; const auto& __np = use_facet<numpunct<_CharT>>(__loc); const _CharT __point = __np.decimal_point(); const string __grp = __np.grouping(); _CharT __dot, __exp; if constexpr (is_same_v<_CharT, char>) { __dot = '.'; __exp = __expc; } else { const auto& __ct = use_facet<ctype<_CharT>>(__loc); __dot = __ct.widen('.'); __exp = __ct.widen(__expc); } if (__grp.empty() && __point == __dot) return __lstr; size_t __d = __str.find(__dot); size_t __e = min(__d, __str.find(__exp)); if (__e == __str.npos) __e = __str.size(); const size_t __r = __str.size() - __e; auto __overwrite = [&](_CharT* __p, size_t) { auto __end = std::__add_grouping(__p, __np.thousands_sep(), __grp.data(), __grp.size(), __str.data(), __str.data() + __e); if (__r) { if (__d != __str.npos) { *__end = __point; ++__end; ++__e; } if (__r > 1) __end += __str.copy(__end, __str.npos, __e); } return (__end - __p); }; _S_resize_and_overwrite(__lstr, __e * 2 + __r, __overwrite); return __lstr; } template<typename _Ch, typename _Func> static void _S_resize_and_overwrite(basic_string<_Ch>& __str, size_t __n, _Func __f) { __str.resize(__n); __str.resize(__f(__str.data(), __n)); } _Spec<_CharT> _M_spec{}; }; } template<__format::__char _CharT> struct formatter<_CharT, _CharT> { formatter() = default; constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.template _M_parse<_CharT>(__pc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(_CharT __u, basic_format_context<_Out, _CharT>& __fc) const { if (_M_f._M_spec._M_type == __format::_Pres_none) return _M_f._M_format_character(__u, __fc); else if (_M_f._M_spec._M_type == __format::_Pres_esc) { return __fc.out(); } else return _M_f.format(__u, __fc); } private: __format::__formatter_int<_CharT> _M_f; }; template<> struct formatter<char, wchar_t> { formatter() = default; constexpr typename basic_format_parse_context<wchar_t>::iterator parse(basic_format_parse_context<wchar_t>& __pc) { return _M_f._M_parse<char>(__pc); } template<typename _Out> typename basic_format_context<_Out, wchar_t>::iterator format(char __u, basic_format_context<_Out, wchar_t>& __fc) const { if (_M_f._M_spec._M_type == __format::_Pres_none) return _M_f._M_format_character(__u, __fc); else if (_M_f._M_spec._M_type == __format::_Pres_esc) { return __fc.out(); } else return _M_f.format(__u, __fc); } constexpr void set_debug_format() noexcept { _M_f._M_spec._M_type = __format::_Pres_esc; } private: __format::__formatter_int<wchar_t> _M_f; }; template<__format::__char _CharT> struct formatter<_CharT*, _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.parse(__pc); } template<typename _Out> [[__gnu__::__nonnull__]] typename basic_format_context<_Out, _CharT>::iterator format(_CharT* __u, basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format(__u, __fc); } constexpr void set_debug_format() noexcept { _M_f.set_debug_format(); } private: __format::__formatter_str<_CharT> _M_f; }; template<__format::__char _CharT> struct formatter<const _CharT*, _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.parse(__pc); } template<typename _Out> [[__gnu__::__nonnull__]] typename basic_format_context<_Out, _CharT>::iterator format(const _CharT* __u, basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format(__u, __fc); } constexpr void set_debug_format() noexcept { _M_f.set_debug_format(); } private: __format::__formatter_str<_CharT> _M_f; }; template<__format::__char _CharT, size_t _Nm> struct formatter<_CharT[_Nm], _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(const _CharT (&__u)[_Nm], basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format({__u, _Nm}, __fc); } constexpr void set_debug_format() noexcept { _M_f.set_debug_format(); } private: __format::__formatter_str<_CharT> _M_f; }; template<typename _Traits, typename _Alloc> struct formatter<basic_string<char, _Traits, _Alloc>, char> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<char>::iterator parse(basic_format_parse_context<char>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, char>::iterator format(const basic_string<char, _Traits, _Alloc>& __u, basic_format_context<_Out, char>& __fc) const { return _M_f.format(__u, __fc); } private: __format::__formatter_str<char> _M_f; }; template<typename _Traits, typename _Alloc> struct formatter<basic_string<wchar_t, _Traits, _Alloc>, wchar_t> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<wchar_t>::iterator parse(basic_format_parse_context<wchar_t>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, wchar_t>::iterator format(const basic_string<wchar_t, _Traits, _Alloc>& __u, basic_format_context<_Out, wchar_t>& __fc) const { return _M_f.format(__u, __fc); } private: __format::__formatter_str<wchar_t> _M_f; }; template<typename _Traits> struct formatter<basic_string_view<char, _Traits>, char> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<char>::iterator parse(basic_format_parse_context<char>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, char>::iterator format(basic_string_view<char, _Traits> __u, basic_format_context<_Out, char>& __fc) const { return _M_f.format(__u, __fc); } private: __format::__formatter_str<char> _M_f; }; template<typename _Traits> struct formatter<basic_string_view<wchar_t, _Traits>, wchar_t> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<wchar_t>::iterator parse(basic_format_parse_context<wchar_t>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, wchar_t>::iterator format(basic_string_view<wchar_t, _Traits> __u, basic_format_context<_Out, wchar_t>& __fc) const { return _M_f.format(__u, __fc); } private: __format::__formatter_str<wchar_t> _M_f; }; template<integral _Tp, __format::__char _CharT> requires (!__is_one_of<_Tp, char, wchar_t, char16_t, char32_t>::value) struct formatter<_Tp, _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.template _M_parse<_Tp>(__pc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(_Tp __u, basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format(__u, __fc); } private: __format::__formatter_int<_CharT> _M_f; }; # 2017 "/usr/include/c++/13/format" 3 template<__format::__formattable_float _Tp, __format::__char _CharT> struct formatter<_Tp, _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(_Tp __u, basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format(__u, __fc); } private: __format::__formatter_fp<_CharT> _M_f; }; template<__format::__char _CharT> struct formatter<const void*, _CharT> { formatter() = default; constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { __format::_Spec<_CharT> __spec{}; const auto __last = __pc.end(); auto __first = __pc.begin(); auto __finalize = [this, &__spec] { _M_spec = __spec; }; auto __finished = [&] { if (__first == __last || *__first == '}') { __finalize(); return true; } return false; }; if (__finished()) return __first; __first = __spec._M_parse_fill_and_align(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_zero_fill(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_width(__first, __last, __pc); if (__first != __last) { if (*__first == 'p') ++__first; else if (*__first == 'P') { __spec._M_type = __format::_Pres_P; ++__first; } } if (__finished()) return __first; __format::__failed_to_parse_format_spec(); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(const void* __v, basic_format_context<_Out, _CharT>& __fc) const { auto __u = reinterpret_cast<long unsigned int>(__v); char __buf[2 + sizeof(__v) * 2]; auto [__ptr, __ec] = std::to_chars(__buf + 2, std::end(__buf), __u, 16); int __n = __ptr - __buf; __buf[0] = '0'; __buf[1] = 'x'; if (_M_spec._M_type == __format::_Pres_P) { __buf[1] = 'X'; for (auto __p = __buf + 2; __p != __ptr; ++__p) *__p = __builtin_toupper(*__p); } basic_string_view<_CharT> __str; if constexpr (is_same_v<_CharT, char>) __str = string_view(__buf, __n); else { const std::locale& __loc = __fc.locale(); auto& __ct = use_facet<ctype<_CharT>>(__loc); auto __p = (_CharT*)__builtin_alloca(__n * sizeof(_CharT)); __ct.widen(__buf, __buf + __n, __p); __str = wstring_view(__p, __n); } if (_M_spec._M_zero_fill) { size_t __width = _M_spec._M_get_width(__fc); if (__width <= __str.size()) return __format::__write(__fc.out(), __str); auto __out = __fc.out(); __out = __format::__write(std::move(__out), __str.substr(0, 2)); __str.remove_prefix(2); size_t __nfill = __width - __n; return __format::__write_padded(std::move(__out), __str, __format::_Align_right, __nfill, _CharT('0')); } return __format::__write_padded_as_spec(__str, __n, __fc, _M_spec, __format::_Align_right); } private: __format::_Spec<_CharT> _M_spec{}; }; template<__format::__char _CharT> struct formatter<void*, _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(void* __v, basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format(__v, __fc); } private: formatter<const void*, _CharT> _M_f; }; template<__format::__char _CharT> struct formatter<nullptr_t, _CharT> { formatter() = default; [[__gnu__::__always_inline__]] constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { return _M_f.parse(__pc); } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(nullptr_t, basic_format_context<_Out, _CharT>& __fc) const { return _M_f.format(nullptr, __fc); } private: formatter<const void*, _CharT> _M_f; }; namespace __format { template<typename _Tp, typename _Context, typename _Formatter = typename _Context::template formatter_type<remove_const_t<_Tp>>, typename _ParseContext = basic_format_parse_context<typename _Context::char_type>> concept __parsable_with = semiregular<_Formatter> && requires (_Formatter __f, _ParseContext __pc) { { __f.parse(__pc) } -> same_as<typename _ParseContext::iterator>; }; template<typename _Tp, typename _Context, typename _Formatter = typename _Context::template formatter_type<remove_const_t<_Tp>>, typename _ParseContext = basic_format_parse_context<typename _Context::char_type>> concept __formattable_with = semiregular<_Formatter> && requires (const _Formatter __cf, _Tp&& __t, _Context __fc) { { __cf.format(__t, __fc) } -> same_as<typename _Context::iterator>; }; template<typename _CharT> using _Iter_for = back_insert_iterator<basic_string<_CharT>>; template<typename _Tp, typename _CharT, typename _Context = basic_format_context<_Iter_for<_CharT>, _CharT>> concept __formattable_impl = __parsable_with<_Tp, _Context> && __formattable_with<_Tp, _Context>; } # 2270 "/usr/include/c++/13/format" 3 template<typename _Out> struct format_to_n_result { _Out out; iter_difference_t<_Out> size; }; namespace __format { template<typename _CharT> class _Sink_iter { _Sink<_CharT>* _M_sink = nullptr; public: using iterator_category = output_iterator_tag; using value_type = void; using difference_type = ptrdiff_t; using pointer = void; using reference = void; _Sink_iter() = default; _Sink_iter(const _Sink_iter&) = default; _Sink_iter& operator=(const _Sink_iter&) = default; [[__gnu__::__always_inline__]] explicit constexpr _Sink_iter(_Sink<_CharT>& __sink) : _M_sink(std::addressof(__sink)) { } [[__gnu__::__always_inline__]] constexpr _Sink_iter& operator=(_CharT __c) { _M_sink->_M_write(__c); return *this; } [[__gnu__::__always_inline__]] constexpr _Sink_iter& operator=(basic_string_view<_CharT> __s) { _M_sink->_M_write(__s); return *this; } [[__gnu__::__always_inline__]] constexpr _Sink_iter& operator*() { return *this; } [[__gnu__::__always_inline__]] constexpr _Sink_iter& operator++() { return *this; } [[__gnu__::__always_inline__]] constexpr _Sink_iter operator++(int) { return *this; } }; template<typename _CharT> class _Sink { friend class _Sink_iter<_CharT>; span<_CharT> _M_span; typename span<_CharT>::iterator _M_next; virtual void _M_overflow() = 0; protected: [[__gnu__::__always_inline__]] explicit constexpr _Sink(span<_CharT> __span) noexcept : _M_span(__span), _M_next(__span.begin()) { } [[__gnu__::__always_inline__]] span<_CharT> _M_used() const noexcept { return _M_span.first(_M_next - _M_span.begin()); } [[__gnu__::__always_inline__]] constexpr span<_CharT> _M_unused() const noexcept { return _M_span.subspan(_M_next - _M_span.begin()); } [[__gnu__::__always_inline__]] constexpr void _M_rewind() noexcept { _M_next = _M_span.begin(); } void _M_reset(span<_CharT> __s, typename span<_CharT>::iterator __next) noexcept { _M_span = __s; _M_next = __next; } constexpr void _M_write(_CharT __c) { *_M_next++ = __c; if (_M_next - _M_span.begin() == std::ssize(_M_span)) [[unlikely]] _M_overflow(); } constexpr void _M_write(basic_string_view<_CharT> __s) { span __to = _M_unused(); while (__to.size() <= __s.size()) { __s.copy(__to.data(), __to.size()); _M_next += __to.size(); __s.remove_prefix(__to.size()); _M_overflow(); __to = _M_unused(); } if (__s.size()) { __s.copy(__to.data(), __s.size()); _M_next += __s.size(); } } public: _Sink(const _Sink&) = delete; _Sink& operator=(const _Sink&) = delete; [[__gnu__::__always_inline__]] constexpr _Sink_iter<_CharT> out() noexcept { return _Sink_iter<_CharT>(*this); } }; template<typename _CharT> class _Buf_sink : public _Sink<_CharT> { protected: _CharT _M_buf[32 * sizeof(void*) / sizeof(_CharT)]; [[__gnu__::__always_inline__]] constexpr _Buf_sink() noexcept : _Sink<_CharT>(_M_buf) { } }; template<typename _Seq> class _Seq_sink : public _Buf_sink<typename _Seq::value_type> { using _CharT = typename _Seq::value_type; _Seq _M_seq; void _M_overflow() override { auto __s = this->_M_used(); if constexpr (__is_specialization_of<_Seq, basic_string>) _M_seq.append(__s.data(), __s.size()); else _M_seq.insert(_M_seq.end(), __s.begin(), __s.end()); this->_M_rewind(); } public: [[__gnu__::__always_inline__]] _Seq_sink() noexcept(is_nothrow_default_constructible_v<_Seq>) { } _Seq_sink(_Seq&& __s) noexcept(is_nothrow_move_constructible_v<_Seq>) : _M_seq(std::move(__s)) { } using _Sink<_CharT>::out; _Seq get() && { _Seq_sink::_M_overflow(); return std::move(_M_seq); } }; template<typename _CharT, typename _Alloc = allocator<_CharT>> using _Str_sink = _Seq_sink<basic_string<_CharT, char_traits<_CharT>, _Alloc>>; template<typename _CharT, typename _OutIter> class _Iter_sink : public _Buf_sink<_CharT> { _OutIter _M_out; iter_difference_t<_OutIter> _M_max; protected: size_t _M_count = 0; void _M_overflow() override { auto __s = this->_M_used(); if (_M_max < 0) _M_out = ranges::copy(__s, std::move(_M_out)).out; else if (_M_count < static_cast<size_t>(_M_max)) { auto __max = _M_max - _M_count; span<_CharT> __first; if (__max < __s.size()) __first = __s.first(static_cast<size_t>(__max)); else __first = __s; _M_out = ranges::copy(__first, std::move(_M_out)).out; } this->_M_rewind(); _M_count += __s.size(); } public: [[__gnu__::__always_inline__]] explicit _Iter_sink(_OutIter __out, iter_difference_t<_OutIter> __max = -1) : _M_out(std::move(__out)), _M_max(__max) { } using _Sink<_CharT>::out; format_to_n_result<_OutIter> _M_finish() && { _Iter_sink::_M_overflow(); iter_difference_t<_OutIter> __count(_M_count); return { std::move(_M_out), __count }; } }; # 2536 "/usr/include/c++/13/format" 3 template<typename _CharT, contiguous_iterator _OutIter> class _Iter_sink<_CharT, _OutIter> : public _Sink<_CharT> { using uint64_t = long unsigned int; _OutIter _M_first; iter_difference_t<_OutIter> _M_max = -1; protected: size_t _M_count = 0; private: _CharT _M_buf[64]; protected: void _M_overflow() { auto __s = this->_M_used(); _M_count += __s.size(); if (_M_max >= 0) { span<_CharT> __buf{_M_buf}; this->_M_reset(__buf, __buf.begin()); } else { this->_M_reset({__s.data(), __s.size() + 1024}, __s.end()); } } private: static span<_CharT> _S_make_span(_CharT* __ptr, iter_difference_t<_OutIter> __n, span<_CharT> __buf) noexcept { if (__n == 0) return __buf; if (__n > 0) { if constexpr (!is_integral_v<iter_difference_t<_OutIter>> || sizeof(__n) > sizeof(size_t)) { auto __m = iter_difference_t<_OutIter>((size_t)-1); if (__n > __m) __n = __m; } return {__ptr, (size_t)__n}; } if (size_t __bytes = __builtin_dynamic_object_size(__ptr, 2)) return {__ptr, __bytes / sizeof(_CharT)}; uint64_t __off = reinterpret_cast<uint64_t>(__ptr) % 1024; __n = (1024 - __off) / sizeof(_CharT); if (__n > 0) [[likely]] return {__ptr, static_cast<size_t>(__n)}; else return {__ptr, 1}; } public: explicit _Iter_sink(_OutIter __out, iter_difference_t<_OutIter> __n = -1) noexcept : _Sink<_CharT>(_S_make_span(std::to_address(__out), __n, _M_buf)), _M_first(__out), _M_max(__n) { } format_to_n_result<_OutIter> _M_finish() && { _Iter_sink::_M_overflow(); iter_difference_t<_OutIter> __count(_M_count); auto __s = this->_M_used(); auto __last = _M_first; if (__s.data() == _M_buf) __last += _M_max; else __last += iter_difference_t<_OutIter>(__s.size()); return { __last, __count }; } }; enum _Arg_t : unsigned char { _Arg_none, _Arg_bool, _Arg_c, _Arg_i, _Arg_u, _Arg_ll, _Arg_ull, _Arg_flt, _Arg_dbl, _Arg_ldbl, _Arg_str, _Arg_sv, _Arg_ptr, _Arg_handle, _Arg_i128, _Arg_u128, _Arg_bf16, _Arg_f16, _Arg_f32, _Arg_f64, _Arg_f128, _Arg_max_ }; template<typename _Context> struct _Arg_value { using _CharT = typename _Context::char_type; struct _HandleBase { const void* _M_ptr; void (*_M_func)(); }; union { monostate _M_none; bool _M_bool; _CharT _M_c; int _M_i; unsigned _M_u; long long _M_ll; unsigned long long _M_ull; float _M_flt; double _M_dbl; long double _M_ldbl; const _CharT* _M_str; basic_string_view<_CharT> _M_sv; const void* _M_ptr; _HandleBase _M_handle; __int128 _M_i128; unsigned __int128 _M_u128; __float128_t _M_f128; }; [[__gnu__::__always_inline__]] _Arg_value() : _M_none() { } template<typename _Tp, typename _Self> [[__gnu__::__always_inline__]] static auto& _S_get(_Self& __u) noexcept { if constexpr (is_same_v<_Tp, bool>) return __u._M_bool; else if constexpr (is_same_v<_Tp, _CharT>) return __u._M_c; else if constexpr (is_same_v<_Tp, int>) return __u._M_i; else if constexpr (is_same_v<_Tp, unsigned>) return __u._M_u; else if constexpr (is_same_v<_Tp, long long>) return __u._M_ll; else if constexpr (is_same_v<_Tp, unsigned long long>) return __u._M_ull; else if constexpr (is_same_v<_Tp, float>) return __u._M_flt; else if constexpr (is_same_v<_Tp, double>) return __u._M_dbl; else if constexpr (is_same_v<_Tp, long double>) return __u._M_ldbl; else if constexpr (is_same_v<_Tp, const _CharT*>) return __u._M_str; else if constexpr (is_same_v<_Tp, basic_string_view<_CharT>>) return __u._M_sv; else if constexpr (is_same_v<_Tp, const void*>) return __u._M_ptr; else if constexpr (is_same_v<_Tp, __int128>) return __u._M_i128; else if constexpr (is_same_v<_Tp, unsigned __int128>) return __u._M_u128; else if constexpr (is_same_v<_Tp, __float128_t>) return __u._M_f128; else if constexpr (derived_from<_Tp, _HandleBase>) return static_cast<_Tp&>(__u._M_handle); } template<typename _Tp> [[__gnu__::__always_inline__]] auto& _M_get() noexcept { return _S_get<_Tp>(*this); } template<typename _Tp> [[__gnu__::__always_inline__]] const auto& _M_get() const noexcept { return _S_get<_Tp>(*this); } template<typename _Tp> [[__gnu__::__always_inline__]] void _M_set(_Tp __v) noexcept { if constexpr (derived_from<_Tp, _HandleBase>) std::construct_at(&_M_handle, __v); else _S_get<_Tp>(*this) = __v; } }; template<typename _Context, typename... _Args> class _Arg_store; } template<typename _Context> class basic_format_arg { using _CharT = typename _Context::char_type; template<typename _Tp> static constexpr bool __formattable = __format::__formattable_with<_Tp, _Context>; public: class handle : public __format::_Arg_value<_Context>::_HandleBase { using _Base = typename __format::_Arg_value<_Context>::_HandleBase; template<typename _Tp> using __maybe_const_t = __conditional_t<__format::__formattable_with<_Tp, _Context>, const _Tp, _Tp>; template<typename _Tq> static void _S_format(basic_format_parse_context<_CharT>& __parse_ctx, _Context& __format_ctx, const void* __ptr) { using _Td = remove_const_t<_Tq>; typename _Context::template formatter_type<_Td> __f; __parse_ctx.advance_to(__f.parse(__parse_ctx)); _Tq& __val = *const_cast<_Tq*>(static_cast<const _Td*>(__ptr)); __format_ctx.advance_to(__f.format(__val, __format_ctx)); } template<typename _Tp> explicit handle(_Tp& __val) noexcept { if constexpr (!__format::__formattable_with<const _Tp, _Context>) static_assert(!is_const_v<_Tp>, "std::format argument must be " "non-const for this type"); this->_M_ptr = __builtin_addressof(__val); auto __func = _S_format<__maybe_const_t<_Tp>>; this->_M_func = reinterpret_cast<void(*)()>(__func); } friend class basic_format_arg<_Context>; public: handle(const handle&) = default; handle& operator=(const handle&) = default; [[__gnu__::__always_inline__]] void format(basic_format_parse_context<_CharT>& __pc, _Context& __fc) const { using _Func = void(*)(basic_format_parse_context<_CharT>&, _Context&, const void*); auto __f = reinterpret_cast<_Func>(this->_M_func); __f(__pc, __fc, this->_M_ptr); } }; [[__gnu__::__always_inline__]] basic_format_arg() noexcept : _M_type(__format::_Arg_none) { } [[nodiscard,__gnu__::__always_inline__]] explicit operator bool() const noexcept { return _M_type != __format::_Arg_none; } private: template<typename _Ctx> friend class basic_format_args; template<typename _Ctx, typename... _Args> friend class __format::_Arg_store; static_assert(is_trivially_copyable_v<__format::_Arg_value<_Context>>); __format::_Arg_value<_Context> _M_val; __format::_Arg_t _M_type; template<typename _Tp> static consteval auto _S_to_arg_type() { using _Td = remove_const_t<_Tp>; if constexpr (is_same_v<_Td, bool>) return type_identity<bool>(); else if constexpr (is_same_v<_Td, _CharT>) return type_identity<_CharT>(); else if constexpr (is_same_v<_Td, char> && is_same_v<_CharT, wchar_t>) return type_identity<_CharT>(); else if constexpr (is_same_v<_Td, __int128>) return type_identity<__int128>(); else if constexpr (is_same_v<_Td, unsigned __int128>) return type_identity<unsigned __int128>(); else if constexpr (__is_signed_integer<_Td>::value) { if constexpr (sizeof(_Td) <= sizeof(int)) return type_identity<int>(); else if constexpr (sizeof(_Td) <= sizeof(long long)) return type_identity<long long>(); } else if constexpr (__is_unsigned_integer<_Td>::value) { if constexpr (sizeof(_Td) <= sizeof(unsigned)) return type_identity<unsigned>(); else if constexpr (sizeof(_Td) <= sizeof(unsigned long long)) return type_identity<unsigned long long>(); } else if constexpr (is_same_v<_Td, float>) return type_identity<float>(); else if constexpr (is_same_v<_Td, double>) return type_identity<double>(); else if constexpr (is_same_v<_Td, long double>) return type_identity<long double>(); # 2906 "/usr/include/c++/13/format" 3 else if constexpr (is_same_v<_Td, _Float32>) return type_identity<float>(); else if constexpr (is_same_v<_Td, _Float64>) return type_identity<double>(); else if constexpr (is_same_v<_Td, _Float128>) return type_identity<__format::__float128_t>(); else if constexpr (is_same_v<_Td, __float128>) return type_identity<__format::__float128_t>(); else if constexpr (__is_specialization_of<_Td, basic_string_view>) return type_identity<basic_string_view<_CharT>>(); else if constexpr (__is_specialization_of<_Td, basic_string>) return type_identity<basic_string_view<_CharT>>(); else if constexpr (is_same_v<decay_t<_Td>, const _CharT*>) return type_identity<const _CharT*>(); else if constexpr (is_same_v<decay_t<_Td>, _CharT*>) return type_identity<const _CharT*>(); else if constexpr (is_void_v<remove_pointer_t<_Td>>) return type_identity<const void*>(); else if constexpr (is_same_v<_Td, nullptr_t>) return type_identity<const void*>(); else return type_identity<handle>(); } template<typename _Tp> using _Normalize = typename decltype(_S_to_arg_type<_Tp>())::type; template<typename _Tp> static consteval __format::_Arg_t _S_to_enum() { using namespace __format; if constexpr (is_same_v<_Tp, bool>) return _Arg_bool; else if constexpr (is_same_v<_Tp, _CharT>) return _Arg_c; else if constexpr (is_same_v<_Tp, int>) return _Arg_i; else if constexpr (is_same_v<_Tp, unsigned>) return _Arg_u; else if constexpr (is_same_v<_Tp, long long>) return _Arg_ll; else if constexpr (is_same_v<_Tp, unsigned long long>) return _Arg_ull; else if constexpr (is_same_v<_Tp, float>) return _Arg_flt; else if constexpr (is_same_v<_Tp, double>) return _Arg_dbl; else if constexpr (is_same_v<_Tp, long double>) return _Arg_ldbl; else if constexpr (is_same_v<_Tp, const _CharT*>) return _Arg_str; else if constexpr (is_same_v<_Tp, basic_string_view<_CharT>>) return _Arg_sv; else if constexpr (is_same_v<_Tp, const void*>) return _Arg_ptr; else if constexpr (is_same_v<_Tp, __int128>) return _Arg_i128; else if constexpr (is_same_v<_Tp, unsigned __int128>) return _Arg_u128; # 3007 "/usr/include/c++/13/format" 3 else if constexpr (is_same_v<_Tp, __format::__float128_t>) return _Arg_f128; else if constexpr (is_same_v<_Tp, handle>) return _Arg_handle; } template<typename _Tp> void _M_set(_Tp __v) noexcept { _M_type = _S_to_enum<_Tp>(); _M_val._M_set(__v); } template<typename _Tp> requires __format::__formattable_with<_Tp, _Context> explicit basic_format_arg(_Tp& __v) noexcept { using _Td = _Normalize<_Tp>; if constexpr (is_same_v<_Td, basic_string_view<_CharT>>) _M_set(_Td{__v.data(), __v.size()}); else _M_set(static_cast<_Td>(__v)); } template<typename _Ctx, typename... _Argz> friend auto make_format_args(_Argz&&...) noexcept; template<typename _Visitor, typename _Ctx> friend decltype(auto) visit_format_arg(_Visitor&& __vis, basic_format_arg<_Ctx>); template<typename _Visitor> decltype(auto) _M_visit(_Visitor&& __vis, __format::_Arg_t __type) { using namespace __format; switch (__type) { case _Arg_none: return std::forward<_Visitor>(__vis)(_M_val._M_none); case _Arg_bool: return std::forward<_Visitor>(__vis)(_M_val._M_bool); case _Arg_c: return std::forward<_Visitor>(__vis)(_M_val._M_c); case _Arg_i: return std::forward<_Visitor>(__vis)(_M_val._M_i); case _Arg_u: return std::forward<_Visitor>(__vis)(_M_val._M_u); case _Arg_ll: return std::forward<_Visitor>(__vis)(_M_val._M_ll); case _Arg_ull: return std::forward<_Visitor>(__vis)(_M_val._M_ull); case _Arg_flt: return std::forward<_Visitor>(__vis)(_M_val._M_flt); case _Arg_dbl: return std::forward<_Visitor>(__vis)(_M_val._M_dbl); case _Arg_ldbl: return std::forward<_Visitor>(__vis)(_M_val._M_ldbl); case _Arg_str: return std::forward<_Visitor>(__vis)(_M_val._M_str); case _Arg_sv: return std::forward<_Visitor>(__vis)(_M_val._M_sv); case _Arg_ptr: return std::forward<_Visitor>(__vis)(_M_val._M_ptr); case _Arg_handle: { auto& __h = static_cast<handle&>(_M_val._M_handle); return std::forward<_Visitor>(__vis)(__h); } case _Arg_i128: return std::forward<_Visitor>(__vis)(_M_val._M_i128); case _Arg_u128: return std::forward<_Visitor>(__vis)(_M_val._M_u128); case _Arg_f128: return std::forward<_Visitor>(__vis)(_M_val._M_f128); } __builtin_unreachable(); } }; template<typename _Visitor, typename _Context> inline decltype(auto) visit_format_arg(_Visitor&& __vis, basic_format_arg<_Context> __arg) { return __arg._M_visit(std::forward<_Visitor>(__vis), __arg._M_type); } namespace __format { struct _WidthPrecVisitor { template<typename _Tp> size_t operator()(_Tp& __arg) const { if constexpr (is_same_v<_Tp, monostate>) __format::__invalid_arg_id_in_format_string(); else if constexpr (sizeof(_Tp) <= sizeof(long long)) { if constexpr (__is_unsigned_integer<_Tp>::value) return __arg; else if constexpr (__is_signed_integer<_Tp>::value) if (__arg >= 0) return __arg; } __throw_format_error("format error: argument used for width or " "precision must be a non-negative integer"); } }; template<typename _Context> inline size_t __int_from_arg(const basic_format_arg<_Context>& __arg) { return std::visit_format_arg(_WidthPrecVisitor(), __arg); } template<int _Bits, size_t _Nm> constexpr auto __pack_arg_types(const array<_Arg_t, _Nm>& __types) { long unsigned int __packed_types = 0; for (auto __i = __types.rbegin(); __i != __types.rend(); ++__i) __packed_types = (__packed_types << _Bits) | *__i; return __packed_types; } } template<typename _Context> class basic_format_args { static constexpr int _S_packed_type_bits = 5; static constexpr int _S_packed_type_mask = 0b11111; static constexpr int _S_max_packed_args = 12; static_assert( __format::_Arg_max_ <= (1 << _S_packed_type_bits) ); template<typename... _Args> using _Store = __format::_Arg_store<_Context, _Args...>; template<typename _Ctx, typename... _Args> friend class __format::_Arg_store; using uint64_t = long unsigned int; using _Format_arg = basic_format_arg<_Context>; using _Format_arg_val = __format::_Arg_value<_Context>; uint64_t _M_packed_size : 4; uint64_t _M_unpacked_size : 60; union { const _Format_arg_val* _M_values; const _Format_arg* _M_args; }; size_t _M_size() const noexcept { return _M_packed_size ? _M_packed_size : _M_unpacked_size; } typename __format::_Arg_t _M_type(size_t __i) const noexcept { uint64_t __t = _M_unpacked_size >> (__i * _S_packed_type_bits); return static_cast<__format::_Arg_t>(__t & _S_packed_type_mask); } template<typename _Ctx, typename... _Args> friend auto make_format_args(_Args&&...) noexcept; template<typename... _Args> static consteval array<__format::_Arg_t, sizeof...(_Args)> _S_types_to_pack() { return {_Format_arg::template _S_to_enum<_Args>()...}; } public: basic_format_args() noexcept = default; template<typename... _Args> basic_format_args(const _Store<_Args...>& __store) noexcept; [[nodiscard,__gnu__::__always_inline__]] basic_format_arg<_Context> get(size_t __i) const noexcept { basic_format_arg<_Context> __arg; if (__i < _M_packed_size) { __arg._M_type = _M_type(__i); __arg._M_val = _M_values[__i]; } else if (_M_packed_size == 0 && __i < _M_unpacked_size) __arg = _M_args[__i]; return __arg; } }; template<typename _Context, typename... _Args> basic_format_args(__format::_Arg_store<_Context, _Args...>) -> basic_format_args<_Context>; template<typename _Context, typename... _Args> auto make_format_args(_Args&&... __fmt_args) noexcept; template<typename _Context, typename... _Args> class __format::_Arg_store { friend std::basic_format_args<_Context>; template<typename _Ctx, typename... _Argz> friend auto std::make_format_args(_Argz&&...) noexcept; static constexpr bool _S_values_only = sizeof...(_Args) <= basic_format_args<_Context>::_S_max_packed_args; using _Element_t = __conditional_t<_S_values_only, __format::_Arg_value<_Context>, basic_format_arg<_Context>>; _Element_t _M_args[sizeof...(_Args)]; template<typename _Tp> static _Element_t _S_make_elt(_Tp& __v) { basic_format_arg<_Context> __arg(__v); if constexpr (_S_values_only) return __arg._M_val; else return __arg; } template<typename... _Tp> requires (sizeof...(_Tp) == sizeof...(_Args)) [[__gnu__::__always_inline__]] _Arg_store(_Tp&... __a) noexcept : _M_args{_S_make_elt(__a)...} { } }; template<typename _Context> class __format::_Arg_store<_Context> { }; template<typename _Context> template<typename... _Args> basic_format_args<_Context>:: basic_format_args(const _Store<_Args...>& __store) noexcept { if constexpr (sizeof...(_Args) == 0) { _M_packed_size = 0; _M_unpacked_size = 0; _M_args = nullptr; } else if constexpr (sizeof...(_Args) <= _S_max_packed_args) { _M_packed_size = sizeof...(_Args); _M_unpacked_size = __format::__pack_arg_types<_S_packed_type_bits>(_S_types_to_pack<_Args...>()); _M_values = __store._M_args; } else { _M_packed_size = 0; _M_unpacked_size = sizeof...(_Args); _M_args = __store._M_args; } } template<typename _Context = format_context, typename... _Args> [[nodiscard,__gnu__::__always_inline__]] inline auto make_format_args(_Args&&... __fmt_args) noexcept { using _Fmt_arg = basic_format_arg<_Context>; using _Store = __format::_Arg_store<_Context, typename _Fmt_arg::template _Normalize<remove_reference_t<_Args>>...>; return _Store(__fmt_args...); } template<typename... _Args> [[nodiscard,__gnu__::__always_inline__]] inline auto make_wformat_args(_Args&&... __args) noexcept { return std::make_format_args<wformat_context>(__args...); } namespace __format { template<typename _Out, typename _CharT, typename _Context> _Out __do_vformat_to(_Out, basic_string_view<_CharT>, const basic_format_args<_Context>&, const locale* = nullptr); } # 3359 "/usr/include/c++/13/format" 3 template<typename _Out, typename _CharT> class basic_format_context { static_assert( output_iterator<_Out, const _CharT&> ); basic_format_args<basic_format_context> _M_args; _Out _M_out; __format::_Optional_locale _M_loc; basic_format_context(basic_format_args<basic_format_context> __args, _Out __out) : _M_args(__args), _M_out(std::move(__out)) { } basic_format_context(basic_format_args<basic_format_context> __args, _Out __out, const std::locale& __loc) : _M_args(__args), _M_out(std::move(__out)), _M_loc(__loc) { } template<typename _Out2, typename _CharT2, typename _Context2> friend _Out2 __format::__do_vformat_to(_Out2, basic_string_view<_CharT2>, const basic_format_args<_Context2>&, const locale*); public: basic_format_context() = default; ~basic_format_context() = default; using iterator = _Out; using char_type = _CharT; template<typename _Tp> using formatter_type = formatter<_Tp, _CharT>; [[nodiscard]] basic_format_arg<basic_format_context> arg(size_t __id) const noexcept { return _M_args.get(__id); } [[nodiscard]] std::locale locale() { return _M_loc.value(); } [[nodiscard]] iterator out() { return std::move(_M_out); } void advance_to(iterator __it) { _M_out = std::move(__it); } }; namespace __format { template<typename _Ctx, typename _CharT> [[__gnu__::__always_inline__]] inline void __write(_Ctx& __ctx, basic_string_view<_CharT> __str) requires requires { { __ctx.out() } -> output_iterator<const _CharT&>; } { __ctx.advance_to(__format::__write(__ctx.out())); } template<typename _CharT> struct _Scanner { using iterator = typename basic_format_parse_context<_CharT>::iterator; basic_format_parse_context<_CharT> _M_pc; constexpr explicit _Scanner(basic_string_view<_CharT> __str, size_t __nargs = -1) : _M_pc(__str, __nargs) { } constexpr iterator begin() const noexcept { return _M_pc.begin(); } constexpr iterator end() const noexcept { return _M_pc.end(); } constexpr void _M_scan() { basic_string_view<_CharT> __fmt = _M_fmt_str(); if (__fmt.size() == 2 && __fmt[0] == '{' && __fmt[1] == '}') { _M_pc.advance_to(begin() + 1); _M_format_arg(_M_pc.next_arg_id()); return; } size_t __lbr = __fmt.find('{'); size_t __rbr = __fmt.find('}'); while (__fmt.size()) { auto __cmp = __lbr <=> __rbr; if (__cmp == 0) { _M_on_chars(end()); _M_pc.advance_to(end()); return; } else if (__cmp < 0) { if (__lbr + 1 == __fmt.size() || (__rbr == __fmt.npos && __fmt[__lbr + 1] != '{')) __format::__unmatched_left_brace_in_format_string(); const bool __is_escape = __fmt[__lbr + 1] == '{'; iterator __last = begin() + __lbr + int(__is_escape); _M_on_chars(__last); _M_pc.advance_to(__last + 1); __fmt = _M_fmt_str(); if (__is_escape) { if (__rbr != __fmt.npos) __rbr -= __lbr + 2; __lbr = __fmt.find('{'); } else { _M_on_replacement_field(); __fmt = _M_fmt_str(); __lbr = __fmt.find('{'); __rbr = __fmt.find('}'); } } else { if (++__rbr == __fmt.size() || __fmt[__rbr] != '}') __format::__unmatched_right_brace_in_format_string(); iterator __last = begin() + __rbr; _M_on_chars(__last); _M_pc.advance_to(__last + 1); __fmt = _M_fmt_str(); if (__lbr != __fmt.npos) __lbr -= __rbr + 1; __rbr = __fmt.find('}'); } } } constexpr basic_string_view<_CharT> _M_fmt_str() const noexcept { return {begin(), end()}; } constexpr virtual void _M_on_chars(iterator) { } constexpr void _M_on_replacement_field() { auto __next = begin(); size_t __id; if (*__next == '}') __id = _M_pc.next_arg_id(); else if (*__next == ':') { __id = _M_pc.next_arg_id(); _M_pc.advance_to(++__next); } else { auto [__i, __ptr] = __format::__parse_arg_id(begin(), end()); if (!__ptr || !(*__ptr == '}' || *__ptr == ':')) __format::__invalid_arg_id_in_format_string(); _M_pc.check_arg_id(__id = __i); if (*__ptr == ':') { _M_pc.advance_to(++__ptr); } else _M_pc.advance_to(__ptr); } _M_format_arg(__id); _M_pc.advance_to(_M_pc.begin() + 1); } constexpr virtual void _M_format_arg(size_t __id) = 0; }; template<typename _Out, typename _CharT> class _Formatting_scanner : public _Scanner<_CharT> { public: _Formatting_scanner(basic_format_context<_Out, _CharT>& __fc, basic_string_view<_CharT> __str) : _Scanner<_CharT>(__str), _M_fc(__fc) { } private: basic_format_context<_Out, _CharT>& _M_fc; using iterator = typename _Scanner<_CharT>::iterator; void _M_on_chars(iterator __last) override { basic_string_view<_CharT> __str(this->begin(), __last); _M_fc.advance_to(__format::__write(_M_fc.out(), __str)); } void _M_format_arg(size_t __id) override { using _Context = basic_format_context<_Out, _CharT>; using handle = typename basic_format_arg<_Context>::handle; std::visit_format_arg([this](auto& __arg) { using _Type = remove_reference_t<decltype(__arg)>; using _Formatter = typename _Context::template formatter_type<_Type>; if constexpr (is_same_v<_Type, monostate>) __format::__invalid_arg_id_in_format_string(); else if constexpr (is_same_v<_Type, handle>) __arg.format(this->_M_pc, this->_M_fc); else if constexpr (is_default_constructible_v<_Formatter>) { _Formatter __f; this->_M_pc.advance_to(__f.parse(this->_M_pc)); this->_M_fc.advance_to(__f.format(__arg, this->_M_fc)); } else static_assert(__format::__formattable_with<_Type, _Context>); }, _M_fc.arg(__id)); } }; template<typename _CharT, typename... _Args> class _Checking_scanner : public _Scanner<_CharT> { static_assert( (is_default_constructible_v<formatter<_Args, _CharT>> && ...), "std::formatter must be specialized for each type being formatted"); public: constexpr _Checking_scanner(basic_string_view<_CharT> __str) : _Scanner<_CharT>(__str, sizeof...(_Args)) { } private: constexpr void _M_format_arg(size_t __id) override { if constexpr (sizeof...(_Args) != 0) { if (__id < sizeof...(_Args)) { _M_parse_format_spec<_Args...>(__id); return; } } __builtin_unreachable(); } template<typename _Tp, typename... _OtherArgs> constexpr void _M_parse_format_spec(size_t __id) { if (__id == 0) { formatter<_Tp, _CharT> __f; this->_M_pc.advance_to(__f.parse(this->_M_pc)); } else if constexpr (sizeof...(_OtherArgs) != 0) _M_parse_format_spec<_OtherArgs...>(__id - 1); else __builtin_unreachable(); } }; template<typename _Out, typename _CharT, typename _Context> inline _Out __do_vformat_to(_Out __out, basic_string_view<_CharT> __fmt, const basic_format_args<_Context>& __args, const locale* __loc) { _Iter_sink<_CharT, _Out> __sink(std::move(__out)); _Sink_iter<_CharT> __sink_out; if constexpr (is_same_v<_Out, _Sink_iter<_CharT>>) __sink_out = __out; else __sink_out = __sink.out(); auto __ctx = __loc == nullptr ? _Context(__args, __sink_out) : _Context(__args, __sink_out, *__loc); _Formatting_scanner<_Sink_iter<_CharT>, _CharT> __scanner(__ctx, __fmt); __scanner._M_scan(); if constexpr (is_same_v<_Out, _Sink_iter<_CharT>>) return __ctx.out(); else return std::move(__sink)._M_finish().out; } } template<typename _CharT, typename... _Args> template<typename _Tp> requires convertible_to<const _Tp&, basic_string_view<_CharT>> consteval basic_format_string<_CharT, _Args...>:: basic_format_string(const _Tp& __s) : _M_str(__s) { __format::_Checking_scanner<_CharT, remove_cvref_t<_Args>...> __scanner(_M_str); __scanner._M_scan(); } template<typename _Out> requires output_iterator<_Out, const char&> [[__gnu__::__always_inline__]] inline _Out vformat_to(_Out __out, string_view __fmt, format_args __args) { return __format::__do_vformat_to(std::move(__out), __fmt, __args); } template<typename _Out> requires output_iterator<_Out, const wchar_t&> [[__gnu__::__always_inline__]] inline _Out vformat_to(_Out __out, wstring_view __fmt, wformat_args __args) { return __format::__do_vformat_to(std::move(__out), __fmt, __args); } template<typename _Out> requires output_iterator<_Out, const char&> [[__gnu__::__always_inline__]] inline _Out vformat_to(_Out __out, const locale& __loc, string_view __fmt, format_args __args) { return __format::__do_vformat_to(std::move(__out), __fmt, __args, &__loc); } template<typename _Out> requires output_iterator<_Out, const wchar_t&> [[__gnu__::__always_inline__]] inline _Out vformat_to(_Out __out, const locale& __loc, wstring_view __fmt, wformat_args __args) { return __format::__do_vformat_to(std::move(__out), __fmt, __args, &__loc); } [[nodiscard]] inline string vformat(string_view __fmt, format_args __args) { __format::_Str_sink<char> __buf; std::vformat_to(__buf.out(), __fmt, __args); return std::move(__buf).get(); } [[nodiscard]] inline wstring vformat(wstring_view __fmt, wformat_args __args) { __format::_Str_sink<wchar_t> __buf; std::vformat_to(__buf.out(), __fmt, __args); return std::move(__buf).get(); } [[nodiscard]] inline string vformat(const locale& __loc, string_view __fmt, format_args __args) { __format::_Str_sink<char> __buf; std::vformat_to(__buf.out(), __loc, __fmt, __args); return std::move(__buf).get(); } [[nodiscard]] inline wstring vformat(const locale& __loc, wstring_view __fmt, wformat_args __args) { __format::_Str_sink<wchar_t> __buf; std::vformat_to(__buf.out(), __loc, __fmt, __args); return std::move(__buf).get(); } template<typename... _Args> [[nodiscard]] inline string format(format_string<_Args...> __fmt, _Args&&... __args) { return std::vformat(__fmt.get(), std::make_format_args(__args...)); } template<typename... _Args> [[nodiscard]] inline wstring format(wformat_string<_Args...> __fmt, _Args&&... __args) { return std::vformat(__fmt.get(), std::make_wformat_args(__args...)); } template<typename... _Args> [[nodiscard]] inline string format(const locale& __loc, format_string<_Args...> __fmt, _Args&&... __args) { return std::vformat(__loc, __fmt.get(), std::make_format_args(__args...)); } template<typename... _Args> [[nodiscard]] inline wstring format(const locale& __loc, wformat_string<_Args...> __fmt, _Args&&... __args) { return std::vformat(__loc, __fmt.get(), std::make_wformat_args(__args...)); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const char&> inline _Out format_to(_Out __out, format_string<_Args...> __fmt, _Args&&... __args) { return std::vformat_to(std::move(__out), __fmt.get(), std::make_format_args(std::forward<_Args>(__args)...)); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const wchar_t&> inline _Out format_to(_Out __out, wformat_string<_Args...> __fmt, _Args&&... __args) { return std::vformat_to(std::move(__out), __fmt.get(), std::make_wformat_args(std::forward<_Args>(__args)...)); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const char&> inline _Out format_to(_Out __out, const locale& __loc, format_string<_Args...> __fmt, _Args&&... __args) { return std::vformat_to(std::move(__out), __loc, __fmt.get(), std::make_format_args(std::forward<_Args>(__args)...)); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const wchar_t&> inline _Out format_to(_Out __out, const locale& __loc, wformat_string<_Args...> __fmt, _Args&&... __args) { return std::vformat_to(std::move(__out), __loc, __fmt.get(), std::make_wformat_args(std::forward<_Args>(__args)...)); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const char&> inline format_to_n_result<_Out> format_to_n(_Out __out, iter_difference_t<_Out> __n, format_string<_Args...> __fmt, _Args&&... __args) { __format::_Iter_sink<char, _Out> __sink(std::move(__out), __n); std::vformat_to(__sink.out(), __fmt.get(), std::make_format_args(__args...)); return std::move(__sink)._M_finish(); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const wchar_t&> inline format_to_n_result<_Out> format_to_n(_Out __out, iter_difference_t<_Out> __n, wformat_string<_Args...> __fmt, _Args&&... __args) { __format::_Iter_sink<wchar_t, _Out> __sink(std::move(__out), __n); std::vformat_to(__sink.out(), __fmt.get(), std::make_wformat_args(__args...)); return std::move(__sink)._M_finish(); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const char&> inline format_to_n_result<_Out> format_to_n(_Out __out, iter_difference_t<_Out> __n, const locale& __loc, format_string<_Args...> __fmt, _Args&&... __args) { __format::_Iter_sink<char, _Out> __sink(std::move(__out), __n); std::vformat_to(__sink.out(), __loc, __fmt.get(), std::make_format_args(__args...)); return std::move(__sink)._M_finish(); } template<typename _Out, typename... _Args> requires output_iterator<_Out, const wchar_t&> inline format_to_n_result<_Out> format_to_n(_Out __out, iter_difference_t<_Out> __n, const locale& __loc, wformat_string<_Args...> __fmt, _Args&&... __args) { __format::_Iter_sink<wchar_t, _Out> __sink(std::move(__out), __n); std::vformat_to(__sink.out(), __loc, __fmt.get(), std::make_wformat_args(__args...)); return std::move(__sink)._M_finish(); } namespace __format { template<typename _CharT> class _Counting_sink : public _Iter_sink<_CharT, _CharT*> { public: _Counting_sink() : _Iter_sink<_CharT, _CharT*>(nullptr, 0) { } [[__gnu__::__always_inline__]] size_t count() { _Counting_sink::_M_overflow(); return this->_M_count; } }; # 3901 "/usr/include/c++/13/format" 3 } template<typename... _Args> [[nodiscard]] inline size_t formatted_size(format_string<_Args...> __fmt, _Args&&... __args) { __format::_Counting_sink<char> __buf; std::vformat_to(__buf.out(), __fmt.get(), std::make_format_args(std::forward<_Args>(__args)...)); return __buf.count(); } template<typename... _Args> [[nodiscard]] inline size_t formatted_size(wformat_string<_Args...> __fmt, _Args&&... __args) { __format::_Counting_sink<wchar_t> __buf; std::vformat_to(__buf.out(), __fmt.get(), std::make_wformat_args(std::forward<_Args>(__args)...)); return __buf.count(); } template<typename... _Args> [[nodiscard]] inline size_t formatted_size(const locale& __loc, format_string<_Args...> __fmt, _Args&&... __args) { __format::_Counting_sink<char> __buf; std::vformat_to(__buf.out(), __loc, __fmt.get(), std::make_format_args(std::forward<_Args>(__args)...)); return __buf.count(); } template<typename... _Args> [[nodiscard]] inline size_t formatted_size(const locale& __loc, wformat_string<_Args...> __fmt, _Args&&... __args) { __format::_Counting_sink<wchar_t> __buf; std::vformat_to(__buf.out(), __loc, __fmt.get(), std::make_wformat_args(std::forward<_Args>(__args)...)); return __buf.count(); } # 4019 "/usr/include/c++/13/format" 3 } # 40 "/usr/include/c++/13/bits/chrono_io.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace chrono { namespace __detail { template<typename _CharT> consteval auto _Widen(const char* __narrow, const wchar_t* __wide) { if constexpr (is_same_v<_CharT, wchar_t>) return __wide; else return __narrow; } template<typename _Period> constexpr const char* __units_suffix_misc(char* __buf, size_t ) noexcept { namespace __tc = std::__detail; char* __p = __buf; __p[0] = '['; unsigned __nlen = __tc::__to_chars_len((uintmax_t)_Period::num); __tc::__to_chars_10_impl(__p + 1, __nlen, (uintmax_t)_Period::num); __p += 1 + __nlen; if constexpr (_Period::den != 1) { __p[0] = '/'; unsigned __dlen = __tc::__to_chars_len((uintmax_t)_Period::den); __tc::__to_chars_10_impl(__p + 1, __dlen, (uintmax_t)_Period::den); __p += 1 + __dlen; } __p[0] = ']'; __p[1] = 's'; __p[2] = '\0'; return __buf; } template<typename _Period, typename _CharT> constexpr auto __units_suffix(char* __buf, size_t __n) noexcept { # 109 "/usr/include/c++/13/bits/chrono_io.h" 3 if constexpr (is_same_v<_Period, atto>) return ::std::chrono::__detail::_Widen<_CharT>("as", L"as"); else if constexpr (is_same_v<_Period, femto>) return ::std::chrono::__detail::_Widen<_CharT>("fs", L"fs"); else if constexpr (is_same_v<_Period, pico>) return ::std::chrono::__detail::_Widen<_CharT>("ps", L"ps"); else if constexpr (is_same_v<_Period, nano>) return ::std::chrono::__detail::_Widen<_CharT>("ns", L"ns"); else if constexpr (is_same_v<_Period, milli>) return ::std::chrono::__detail::_Widen<_CharT>("ms", L"ms"); else if constexpr (is_same_v<_Period, micro>) return ::std::chrono::__detail::_Widen<_CharT>("us", L"us"); else if constexpr (is_same_v<_Period, centi>) return ::std::chrono::__detail::_Widen<_CharT>("cs", L"cs"); else if constexpr (is_same_v<_Period, deci>) return ::std::chrono::__detail::_Widen<_CharT>("ds", L"ds"); else if constexpr (is_same_v<_Period, ratio<1> >) return ::std::chrono::__detail::_Widen<_CharT>("s", L"s"); else if constexpr (is_same_v<_Period, deca>) return ::std::chrono::__detail::_Widen<_CharT>("das", L"das"); else if constexpr (is_same_v<_Period, hecto>) return ::std::chrono::__detail::_Widen<_CharT>("hs", L"hs"); else if constexpr (is_same_v<_Period, kilo>) return ::std::chrono::__detail::_Widen<_CharT>("ks", L"ks"); else if constexpr (is_same_v<_Period, mega>) return ::std::chrono::__detail::_Widen<_CharT>("Ms", L"Ms"); else if constexpr (is_same_v<_Period, giga>) return ::std::chrono::__detail::_Widen<_CharT>("Gs", L"Gs"); else if constexpr (is_same_v<_Period, tera>) return ::std::chrono::__detail::_Widen<_CharT>("Ts", L"Ts"); else if constexpr (is_same_v<_Period, tera>) return ::std::chrono::__detail::_Widen<_CharT>("Ts", L"Ts"); else if constexpr (is_same_v<_Period, peta>) return ::std::chrono::__detail::_Widen<_CharT>("Ps", L"Ps"); else if constexpr (is_same_v<_Period, exa>) return ::std::chrono::__detail::_Widen<_CharT>("Es", L"Es"); else if constexpr (is_same_v<_Period, ratio<60> >) return ::std::chrono::__detail::_Widen<_CharT>("min", L"min"); else if constexpr (is_same_v<_Period, ratio<3600> >) return ::std::chrono::__detail::_Widen<_CharT>("h", L"h"); else if constexpr (is_same_v<_Period, ratio<86400> >) return ::std::chrono::__detail::_Widen<_CharT>("d", L"d"); else return __detail::__units_suffix_misc<_Period>(__buf, __n); } } template<typename _CharT, typename _Traits, typename _Rep, typename _Period> inline basic_ostream<_CharT, _Traits>& operator<<(std::basic_ostream<_CharT, _Traits>& __os, const duration<_Rep, _Period>& __d) { using period = typename _Period::type; char __buf[sizeof("[/]s") + 2 * numeric_limits<intmax_t>::digits10]; std::basic_ostringstream<_CharT, _Traits> __s; __s.flags(__os.flags()); __s.imbue(__os.getloc()); __s.precision(__os.precision()); __s << __d.count(); __s << __detail::__units_suffix<period, _CharT>(__buf, sizeof(__buf)); __os << std::move(__s).str(); return __os; } namespace __detail { template<typename _Duration> struct __local_time_fmt { local_time<_Duration> _M_time; const string* _M_abbrev; const seconds* _M_offset_sec; }; struct __local_fmt_t; } # 189 "/usr/include/c++/13/bits/chrono_io.h" 3 template<typename _Duration> inline __detail::__local_time_fmt<_Duration> local_time_format(local_time<_Duration> __time, const string* __abbrev = nullptr, const seconds* __offset_sec = nullptr) { return {__time, __abbrev, __offset_sec}; } } namespace __format { [[noreturn,__gnu__::__always_inline__]] inline void __no_timezone_available() { __throw_format_error("format error: no timezone available for %Z or %z"); } [[noreturn,__gnu__::__always_inline__]] inline void __not_valid_for_duration() { __throw_format_error("format error: chrono-format-spec not valid for " "chrono::duration"); } [[noreturn,__gnu__::__always_inline__]] inline void __invalid_chrono_spec() { __throw_format_error("format error: chrono-format-spec not valid for " "argument type"); } template<typename _CharT> struct _ChronoSpec : _Spec<_CharT> { basic_string_view<_CharT> _M_chrono_specs; }; enum _ChronoParts { _Year = 1, _Month = 2, _Day = 4, _Weekday = 8, _TimeOfDay = 16, _TimeZone = 32, _Date = _Year | _Month | _Day | _Weekday, _DateTime = _Date | _TimeOfDay, _ZonedDateTime = _DateTime | _TimeZone, _Duration = 128 }; constexpr _ChronoParts operator|(_ChronoParts __x, _ChronoParts __y) { return static_cast<_ChronoParts>((int)__x | (int)__y); } template<typename _CharT> struct __formatter_chrono { using __string_view = basic_string_view<_CharT>; using __string = basic_string<_CharT>; template<typename _ParseContext> constexpr typename _ParseContext::iterator _M_parse(_ParseContext& __pc, _ChronoParts __parts) { auto __first = __pc.begin(); auto __last = __pc.end(); _ChronoSpec<_CharT> __spec{}; auto __finalize = [this, &__spec] { _M_spec = __spec; }; auto __finished = [&] { if (__first == __last || *__first == '}') { __finalize(); return true; } return false; }; if (__finished()) return __first; __first = __spec._M_parse_fill_and_align(__first, __last); if (__finished()) return __first; __first = __spec._M_parse_width(__first, __last, __pc); if (__finished()) return __first; if (__parts & _ChronoParts::_Duration) { __first = __spec._M_parse_precision(__first, __last, __pc); if (__finished()) return __first; } __first = __spec._M_parse_locale(__first, __last); if (__finished()) return __first; { __string_view __str(__first, __last - __first); auto __end = __str.find('}'); if (__end != __str.npos) { __str.remove_suffix(__str.length() - __end); __last = __first + __end; } if (__str.find('{') != __str.npos) __throw_format_error("chrono format error: '{' in chrono-specs"); } const auto __chrono_specs = __first++; if (*__chrono_specs != '%') __throw_format_error("chrono format error: no '%' at start of " "chrono-specs"); _CharT __mod{}; bool __conv = true; int __needed = 0; while (__first != __last) { enum _Mods { _Mod_none, _Mod_E, _Mod_O, _Mod_E_O }; _Mods __allowed_mods = _Mod_none; _CharT __c = *__first++; switch (__c) { case 'a': case 'A': __needed = _Weekday; break; case 'b': case 'h': case 'B': __needed = _Month; break; case 'c': __needed = _DateTime; __allowed_mods = _Mod_E; break; case 'C': __needed = _Year; __allowed_mods = _Mod_E; break; case 'd': case 'e': __needed = _Day; __allowed_mods = _Mod_O; break; case 'D': case 'F': __needed = _Date; break; case 'g': case 'G': __needed = _Date; break; case 'H': case 'I': __needed = _TimeOfDay; __allowed_mods = _Mod_O; break; case 'j': if (!(__parts & _Duration)) __needed = _Date; break; case 'm': __needed = _Month; __allowed_mods = _Mod_O; break; case 'M': __needed = _TimeOfDay; __allowed_mods = _Mod_O; break; case 'p': case 'r': case 'R': case 'T': __needed = _TimeOfDay; break; case 'q': case 'Q': __needed = _Duration; break; case 'S': __needed = _TimeOfDay; __allowed_mods = _Mod_O; break; case 'u': case 'w': __needed = _Weekday; __allowed_mods = _Mod_O; break; case 'U': case 'V': case 'W': __needed = _Date; __allowed_mods = _Mod_O; break; case 'x': __needed = _Date; __allowed_mods = _Mod_E; break; case 'X': __needed = _TimeOfDay; __allowed_mods = _Mod_E; break; case 'y': __needed = _Year; __allowed_mods = _Mod_E_O; break; case 'Y': __needed = _Year; __allowed_mods = _Mod_E; break; case 'z': __needed = _TimeZone; __allowed_mods = _Mod_E; break; case 'Z': __needed = _TimeZone; __allowed_mods = _Mod_E_O; break; case 'n': case 't': case '%': break; case 'O': case 'E': __mod = __c; continue; default: __throw_format_error("chrono format error: invalid " " specifier in chrono-specs"); } if ((__mod == 'E' && !(__allowed_mods & _Mod_E)) || __mod == 'O' && !(__allowed_mods & _Mod_O)) __throw_format_error("chrono format error: invalid " " modifier in chrono-specs"); __mod = _CharT(); if ((__parts & __needed) != __needed) __throw_format_error("chrono format error: format argument " "does not contain the information " "required by the chrono-specs"); size_t __pos = __string_view(__first, __last - __first).find('%'); if (__pos == 0) ++__first; else { if (__pos == __string_view::npos) { __first = __last; __conv = false; } else __first += __pos + 1; } } if (__conv || __mod != _CharT()) __throw_format_error("chrono format error: unescaped '%' in " "chrono-specs"); _M_spec = __spec; _M_spec._M_chrono_specs = {__chrono_specs, __first - __chrono_specs}; return __first; } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_format(const _Tp& __t, _FormatContext& __fc, bool __is_neg = false) const { if constexpr (__is_specialization_of<_Tp, chrono::hh_mm_ss>) __is_neg = __t.is_negative(); else if constexpr (!chrono::__is_duration_v<_Tp>) __is_neg = false; auto __first = _M_spec._M_chrono_specs.begin(); const auto __last = _M_spec._M_chrono_specs.end(); if (__first == __last) return _M_format_to_ostream(__t, __fc, __is_neg); _Sink_iter<_CharT> __out; __format::_Str_sink<_CharT> __sink; bool __write_direct = false; if constexpr (is_same_v<typename _FormatContext::iterator, _Sink_iter<_CharT>>) { if (_M_spec._M_width_kind == __format::_WP_none) { __out = __fc.out(); __write_direct = true; } else __out = __sink.out(); } else __out = __sink.out(); auto __print_sign = [&__is_neg, &__out] { if (__is_neg) { *__out++ = _S_plus_minus[1]; __is_neg = false; } return std::move(__out); }; constexpr const _CharT* __literals = ::std::chrono::__detail::_Widen<_CharT>("\n\t%", L"\n\t%"); ++__first; _CharT __mod{}; do { _CharT __c = *__first++; switch (__c) { case 'a': case 'A': __out = _M_a_A(__t, std::move(__out), __fc, __c == 'A'); break; case 'b': case 'h': case 'B': __out = _M_b_B(__t, std::move(__out), __fc, __c == 'B'); break; case 'c': __out = _M_c(__t, std::move(__out), __fc, __mod == 'E'); break; case 'C': case 'y': case 'Y': __out = _M_C_y_Y(__t, std::move(__out), __fc, __c, __mod); break; case 'd': __out = _S_dd_zero_fill((unsigned)_S_day(__t), std::move(__out), __fc, __mod == 'O'); break; case 'D': __out = _M_D(__t, std::move(__out), __fc); break; case 'e': __out = _M_e(__t, std::move(__out), __fc, __mod == 'O'); break; case 'F': __out = _M_F(__t, std::move(__out), __fc); break; case 'g': case 'G': __out = _M_g_G(__t, std::move(__out), __fc, __c == 'G'); break; case 'H': __out = _S_dd_zero_fill(_S_hms(__t).hours().count(), __print_sign(), __fc, __mod == 'O'); break; case 'I': __out = _M_I(__t, __print_sign(), __fc, __mod == 'O'); break; case 'j': __out = _M_j(__t, __print_sign(), __fc); break; case 'm': __out = _S_dd_zero_fill((unsigned)_S_month(__t), std::move(__out), __fc, __mod == 'O'); break; case 'M': __out = _S_dd_zero_fill(_S_hms(__t).minutes().count(), __print_sign(), __fc, __mod == 'O'); break; case 'p': __out = _M_p(__t, std::move(__out), __fc); break; case 'q': __out = _M_q(__t, std::move(__out), __fc); break; case 'Q': if constexpr (chrono::__is_duration_v<_Tp>) __out = std::format_to(__print_sign(), _S_empty_spec, __t.count()); else __throw_format_error("chrono format error: argument is " "not a duration"); break; case 'r': __out = _M_r(__t, __print_sign(), __fc); break; case 'R': case 'T': __out = _M_R_T(__t, __print_sign(), __fc, __c == 'T'); break; case 'S': __out = _M_S(__t, __print_sign(), __fc, __mod == 'O'); break; case 'u': case 'w': __out = _M_u_w(__t, std::move(__out), __fc, __c, __mod == 'O'); break; case 'U': case 'V': case 'W': __out = _M_U_V_W(__t, std::move(__out), __fc, __c, __mod == 'O'); break; case 'x': __out = _M_x(__t, std::move(__out), __fc, __mod == 'E'); break; case 'X': __out = _M_X(__t, __print_sign(), __fc, __mod == 'E'); break; case 'z': __out = _M_z(__t, std::move(__out), __fc, (bool)__mod); break; case 'Z': __out = _M_Z(__t, std::move(__out), __fc); break; case 'n': *__out++ = __literals[0]; break; case 't': *__out++ = __literals[1]; break; case '%': *__out++ = __literals[2]; break; case 'O': case 'E': __mod = __c; continue; case '}': __first = __last; break; } __mod = _CharT(); __string_view __str(__first, __last - __first); size_t __pos = __str.find('%'); if (__pos == 0) ++__first; else { if (__pos == __str.npos) __first = __last; else { __str.remove_suffix(__str.length() - __pos); __first += __pos + 1; } __out = __format::__write(std::move(__out), __str); } } while (__first != __last); if constexpr (is_same_v<typename _FormatContext::iterator, _Sink_iter<_CharT>>) if (__write_direct) return __out; auto __str = std::move(__sink).get(); return __format::__write_padded_as_spec(__str, __str.size(), __fc, _M_spec); } _ChronoSpec<_CharT> _M_spec; private: template<typename _FormatContext> std::locale _M_locale(_FormatContext& __fc) const { if (!_M_spec._M_localized) return std::locale::classic(); else return __fc.locale(); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_format_to_ostream(const _Tp& __t, _FormatContext& __fc, bool __is_neg) const { using ::std::chrono::__detail::__utc_leap_second; using ::std::chrono::__detail::__local_time_fmt; if constexpr (__is_specialization_of<_Tp, __local_time_fmt>) return _M_format_to_ostream(__t._M_time, __fc, false); else { basic_ostringstream<_CharT> __os; __os.imbue(_M_locale(__fc)); if constexpr (__is_specialization_of<_Tp, __utc_leap_second>) __os << __t._M_date << ' ' << __t._M_time; else { if (__is_neg) [[unlikely]] __os << _S_plus_minus[1]; __os << __t; } auto __str = std::move(__os).str(); return __format::__write_padded_as_spec(__str, __str.size(), __fc, _M_spec); } } static constexpr const _CharT* _S_chars = ::std::chrono::__detail::_Widen<_CharT>("0123456789+-:/ {}", L"0123456789+-:/ {}"); static constexpr const _CharT* _S_plus_minus = _S_chars + 10; static constexpr _CharT _S_colon = _S_chars[12]; static constexpr _CharT _S_slash = _S_chars[13]; static constexpr _CharT _S_space = _S_chars[14]; static constexpr const _CharT* _S_empty_spec = _S_chars + 15; template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_a_A(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __full) const { chrono::weekday __wd = _S_weekday(__t); if (!__wd.ok()) __throw_format_error("format error: invalid weekday"); locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __days[7]; if (__full) __tp._M_days(__days); else __tp._M_days_abbreviated(__days); __string_view __str(__days[__wd.c_encoding()]); return __format::__write(std::move(__out), __str); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_b_B(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __full) const { chrono::month __m = _S_month(__t); if (!__m.ok()) __throw_format_error("format error: invalid month"); locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __months[12]; if (__full) __tp._M_months(__months); else __tp._M_months_abbreviated(__months); __string_view __str(__months[(unsigned)__m - 1]); return __format::__write(std::move(__out), __str); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_c(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __formats[2]; __tp._M_date_time_formats(__formats); const _CharT* __rep = __formats[__mod]; if (!*__rep) __rep = ::std::chrono::__detail::_Widen<_CharT>("%a %b %e %H:%M:%S %Y", L"%a %b %e %H:%M:%S %Y"); basic_string<_CharT> __fmt(_S_empty_spec); __fmt.insert(1u, 1u, _S_colon); __fmt.insert(2u, __rep); return std::vformat_to(std::move(__out), __loc, __fmt, std::make_format_args<_FormatContext>(__t)); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_C_y_Y(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, char __conv, char __mod = 0) const { # 821 "/usr/include/c++/13/bits/chrono_io.h" 3 chrono::year __y = _S_year(__t); if (__mod == 'E') { } basic_string<_CharT> __s; int __yi = (int)__y; const bool __is_neg = __yi < 0; __yi = __builtin_abs(__yi); if (__conv == 'Y' || __conv == 'C') { if (__is_neg) __s.assign(1, _S_plus_minus[1]); int __ci = __yi / 100; if (__ci >= 100) [[unlikely]] { __s += std::format(_S_empty_spec, __ci / 100); __ci %= 100; } __s += _S_two_digits(__ci); } if (__conv == 'Y' || __conv == 'y') __s += _S_two_digits(__yi % 100); if (__mod == 'O') _S_altnum(_M_locale(__ctx), __s, __is_neg); return __format::__write(std::move(__out), __string_view(__s)); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_D(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext&) const { auto __ymd = _S_date(__t); basic_string<_CharT> __s; __s = _S_two_digits((unsigned)__ymd.month()); __s += _S_slash; __s += _S_two_digits((unsigned)__ymd.day()); __s += _S_slash; __s += _S_two_digits(__builtin_abs((int)__ymd.year()) % 100); return __format::__write(std::move(__out), __string_view(__s)); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_e(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { chrono::day __d = _S_day(__t); unsigned __i = (unsigned)__d; auto __sv = _S_two_digits(__i); basic_string<_CharT> __s; if (__mod) __sv = _S_altnum(_M_locale(__ctx), __s.assign(__sv)); if (__i < 10) __sv = __s = {_S_space, __sv[1]}; return __format::__write(std::move(__out), __sv); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_F(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext&) const { auto __ymd = _S_date(__t); basic_string<_CharT> __s; __s += std::format(::std::chrono::__detail::_Widen<_CharT>("{:04d}- - ", L"{:04d}- - "), (int)__ymd.year()); auto __sv = _S_two_digits((unsigned)__ymd.month()); __s[__s.size() - 5] = __sv[0]; __s[__s.size() - 4] = __sv[1]; __sv = _S_two_digits((unsigned)__ymd.day()); __s[__s.size() - 2] = __sv[0]; __s[__s.size() - 1] = __sv[1]; __sv = __s; return __format::__write(std::move(__out), __sv); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_g_G(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __full) const { using namespace chrono; auto __d = _S_days(__t); __d -= (weekday(__d) - Monday) - days(3); year __y = year_month_day(__d).year(); return _M_C_y_Y(__y, std::move(__out), __ctx, "yY"[__full]); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_I(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { auto __hms = _S_hms(__t); int __i = __hms.hours().count(); if (__i == 0) __i = 12; else if (__i > 12) __i -= 12; auto __sv = _S_two_digits(__i); basic_string<_CharT> __s; if (__mod) __sv = _S_altnum(_M_locale(__ctx), __s.assign(__sv)); return __format::__write(std::move(__out), __sv); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_j(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx) const { if constexpr (chrono::__is_duration_v<_Tp>) { unsigned __d = chrono::duration_cast<chrono::days>(__t).count(); return std::format_to(std::move(__out), _S_empty_spec, __d); } else { using namespace chrono; auto __day = _S_days(__t); auto __ymd = _S_date(__t); days __d; if constexpr (is_same_v<typename decltype(__day)::clock, local_t>) __d = __day - local_days(__ymd.year()/January/0); else __d = __day - sys_days(__ymd.year()/January/0); return std::format_to(std::move(__out), ::std::chrono::__detail::_Widen<_CharT>("{:03d}", L"{:03d}"), __d.count()); } } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_p(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx) const { auto __hms = _S_hms(__t); locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __ampm[2]; __tp._M_am_pm(__ampm); return std::format_to(std::move(__out), _S_empty_spec, __ampm[__hms.hours().count() >= 12]); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_q(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx) const { if constexpr (!chrono::__is_duration_v<_Tp>) __throw_format_error("format error: argument is not a duration"); else { using period = typename _Tp::period; char __buf[sizeof("[/]s") + 2 * numeric_limits<intmax_t>::digits10]; constexpr size_t __n = sizeof(__buf); auto __s = chrono::__detail::__units_suffix<period, _CharT>(__buf, __n); if constexpr (is_same_v<decltype(__s), const _CharT*>) return std::format_to(std::move(__out), _S_empty_spec, __s); else { _CharT __wbuf[__n]; size_t __len = __builtin_strlen(__buf); locale __loc = _M_locale(__ctx); auto& __ct = use_facet<ctype<_CharT>>(__loc); __ct.widen(__buf, __len, __wbuf); __wbuf[__len] = 0; return std::format_to(std::move(__out), _S_empty_spec, __wbuf); } } } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_r(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx) const { locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __ampm_fmt; __tp._M_am_pm_format(&__ampm_fmt); basic_string<_CharT> __fmt(_S_empty_spec); __fmt.insert(1u, 1u, _S_colon); __fmt.insert(2u, __ampm_fmt); return std::vformat_to(std::move(__out), __fmt, std::make_format_args<_FormatContext>(__t)); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_R_T(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __secs) const { auto __hms = _S_hms(__t); basic_string<_CharT> __s; __s = std::format(::std::chrono::__detail::_Widen<_CharT>("{:02d}:00", L"{:02d}:00"), __hms.hours().count()); auto __sv = _S_two_digits(__hms.minutes().count()); __s[__s.size() - 2] = __sv[0]; __s[__s.size() - 1] = __sv[1]; __sv = __s; __out = __format::__write(std::move(__out), __sv); if (__secs) { *__out++ = _S_colon; __out = _M_S(__hms, std::move(__out), __ctx); } return __out; } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_S(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { auto __hms = _S_hms(__t); __out = _S_dd_zero_fill(__hms.seconds().count(), std::move(__out), __ctx, __mod); using rep = typename decltype(__hms)::precision::rep; if constexpr (__hms.fractional_width != 0) { locale __loc = _M_locale(__ctx); auto __ss = __hms.subseconds(); if constexpr (is_floating_point_v<rep>) { __out = std::format_to(__loc, std::move(__out), ::std::chrono::__detail::_Widen<_CharT>("{:.{}Lg}", L"{:.{}Lg}"), __ss.count(), __hms.fractional_width); } else if constexpr (is_integral_v<rep>) { const auto& __np = use_facet<numpunct<_CharT>>(__loc); __out = std::format_to(std::move(__out), ::std::chrono::__detail::_Widen<_CharT>("{}{:0{}}", L"{}{:0{}}"), __np.decimal_point(), __ss.count(), __hms.fractional_width); } else { const auto& __np = use_facet<numpunct<_CharT>>(__loc); *__out++ = __np.decimal_point(); auto __str = std::format(_S_empty_spec, __ss.count()); __out = std::format_to(::std::chrono::__detail::_Widen<_CharT>("{:0>{}s}", L"{:0>{}s}"), __str, __hms.fractional_width); } } return __out; } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_u_w(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, _CharT __conv, bool __mod = false) const { chrono::weekday __wd = _S_weekday(__t); unsigned __wdi = __conv == 'u' ? __wd.iso_encoding() : __wd.c_encoding(); basic_string<_CharT> __s(1, _S_digit(__wdi)); if (__mod) _S_altnum(_M_locale(__ctx), __s); return __format::__write(std::move(__out), __string_view(__s)); return __out; } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_U_V_W(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, _CharT __conv, bool __mod = false) const { using namespace chrono; auto __d = _S_days(__t); using _TDays = decltype(__d); _TDays __first; if (__conv == 'V') { __d -= (weekday(__d) - Monday) - days(3); __first = _TDays(year_month_day(__d).year()/January/1); } else { year __y; if constexpr (requires { __t.year(); }) __y = __t.year(); else __y = year_month_day(__d).year(); const weekday __weekstart = __conv == 'U' ? Sunday : Monday; __first = _TDays(__y/January/__weekstart[1]); } auto __weeks = chrono::floor<weeks>(__d - __first); __string_view __sv = _S_two_digits(__weeks.count() + 1); basic_string<_CharT> __s; if (__mod) __sv = _S_altnum(_M_locale(__ctx), __s.assign(__sv)); return __format::__write(std::move(__out), __sv); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_x(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __date_reps[2]; __tp._M_date_formats(__date_reps); const _CharT* __rep = __date_reps[__mod]; if (!*__rep) return _M_D(__t, std::move(__out), __ctx); basic_string<_CharT> __fmt(_S_empty_spec); __fmt.insert(1u, 1u, _S_colon); __fmt.insert(2u, __rep); return std::vformat_to(std::move(__out), __fmt, std::make_format_args<_FormatContext>(__t)); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_X(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { locale __loc = _M_locale(__ctx); const auto& __tp = use_facet<__timepunct<_CharT>>(__loc); const _CharT* __time_reps[2]; __tp._M_time_formats(__time_reps); const _CharT* __rep = __time_reps[__mod]; if (!*__rep) return _M_R_T(__t, std::move(__out), __ctx, true); basic_string<_CharT> __fmt(_S_empty_spec); __fmt.insert(1u, 1u, _S_colon); __fmt.insert(2u, __rep); return std::vformat_to(std::move(__out), __fmt, std::make_format_args<_FormatContext>(__t)); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_z(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __mod = false) const { using ::std::chrono::__detail::__utc_leap_second; using ::std::chrono::__detail::__local_time_fmt; auto __utc = __mod ? __string_view(::std::chrono::__detail::_Widen<_CharT>("+00:00", L"+00:00"), 6) : __string_view(::std::chrono::__detail::_Widen<_CharT>("+0000", L"+0000"), 5); if constexpr (chrono::__is_time_point_v<_Tp>) { if constexpr (is_same_v<typename _Tp::clock, chrono::system_clock>) return __format::__write(std::move(__out), __utc); } else if constexpr (__is_specialization_of<_Tp, __local_time_fmt>) { if (__t._M_offset_sec) { auto __sv = __utc; basic_string<_CharT> __s; if (*__t._M_offset_sec != 0s) { chrono:: hh_mm_ss __hms(*__t._M_offset_sec); __s = _S_plus_minus[__hms.is_negative()]; __s += _S_two_digits(__hms.hours().count()); if (__mod) __s += _S_colon; __s += _S_two_digits(__hms.minutes().count()); __sv = __s; } return __format::__write(std::move(__out), __sv); } } else if constexpr (__is_specialization_of<_Tp, __utc_leap_second>) return __format::__write(std::move(__out), __utc); __no_timezone_available(); } template<typename _Tp, typename _FormatContext> typename _FormatContext::iterator _M_Z(const _Tp& __t, typename _FormatContext::iterator __out, _FormatContext& __ctx) const { using ::std::chrono::__detail::__utc_leap_second; using ::std::chrono::__detail::__local_time_fmt; __string_view __utc(::std::chrono::__detail::_Widen<_CharT>("UTC", L"UTC"), 3); if constexpr (chrono::__is_time_point_v<_Tp>) { if constexpr (is_same_v<typename _Tp::clock, chrono::system_clock>) return __format::__write(std::move(__out), __utc); } else if constexpr (__is_specialization_of<_Tp, __local_time_fmt>) { if (__t._M_abbrev) { __string_view __wsv; if constexpr (is_same_v<_CharT, char>) __wsv = *__t._M_abbrev; else { string_view __sv = *__t._M_abbrev; basic_string<_CharT> __ws(__sv.size()); auto& __ct = use_facet<ctype<_CharT>>(_M_locale(__ctx)); __ct.widen(__sv.data(), __sv.size(), __ws.data()); __wsv = __ws; } return __format::__write(std::move(__out), __wsv); } } else if constexpr (__is_specialization_of<_Tp, __utc_leap_second>) return __format::__write(std::move(__out), __utc); __no_timezone_available(); } static _CharT _S_digit(int __n) noexcept { return ::std::chrono::__detail::_Widen<_CharT>("0123456789999999", L"0123456789999999")[__n & 0xf]; } static basic_string_view<_CharT> _S_two_digits(int __n) noexcept { return { ::std::chrono::__detail::_Widen<_CharT>("0001020304050607080910111213141516171819" "2021222324252627282930313233343536373839" "4041424344454647484950515253545556575859" "6061626364656667686970717273747576777879" "8081828384858687888990919293949596979899" "9999999999999999999999999999999999999999" "9999999999999999", L"0001020304050607080910111213141516171819" "2021222324252627282930313233343536373839" "4041424344454647484950515253545556575859" "6061626364656667686970717273747576777879" "8081828384858687888990919293949596979899" "9999999999999999999999999999999999999999" "9999999999999999") + 2 * (__n & 0x7f), 2 }; } static basic_string_view<_CharT> _S_altnum(const locale& __loc, basic_string<_CharT>& __s, bool __is_neg = false) { if (__loc == locale::classic()) return __s; # 1344 "/usr/include/c++/13/bits/chrono_io.h" 3 return __s; } template<typename _FormatContext> typename _FormatContext::iterator _S_dd_zero_fill(int __val, typename _FormatContext::iterator __out, _FormatContext& __ctx, bool __alt_num) const { auto __sv = _S_two_digits(__val); basic_string<_CharT> __s; if (__alt_num) __sv = _S_altnum(_M_locale(__ctx), __s.assign(__sv)); return __format::__write(std::move(__out), __sv); } template<typename _Tp> static decltype(auto) _S_hms(const _Tp& __t) { using ::std::chrono::__detail::__utc_leap_second; using ::std::chrono::__detail::__local_time_fmt; if constexpr (__is_specialization_of<_Tp, chrono::hh_mm_ss>) return __t; else if constexpr (__is_specialization_of<_Tp, __utc_leap_second>) return __t._M_time; else if constexpr (chrono::__is_duration_v<_Tp>) return chrono::hh_mm_ss<_Tp>(__t); else if constexpr (chrono::__is_time_point_v<_Tp>) return chrono::hh_mm_ss(__t - chrono::floor<chrono::days>(__t)); else if constexpr (__is_specialization_of<_Tp, __local_time_fmt>) return _S_hms(__t._M_time); else { __invalid_chrono_spec(); return chrono::hh_mm_ss<chrono::seconds>(); } } template<typename _Tp> static auto _S_days(const _Tp& __t) { using namespace chrono; using ::std::chrono::__detail::__utc_leap_second; using ::std::chrono::__detail::__local_time_fmt; if constexpr (__is_time_point_v<_Tp>) return chrono::floor<days>(__t); else if constexpr (__is_specialization_of<_Tp, __utc_leap_second>) return __t._M_date; else if constexpr (__is_specialization_of<_Tp, __local_time_fmt>) return chrono::floor<days>(__t._M_time); else if constexpr (is_same_v<_Tp, year_month_day> || is_same_v<_Tp, year_month_day_last> || is_same_v<_Tp, year_month_weekday> || is_same_v<_Tp, year_month_weekday_last>) return sys_days(__t); else { if constexpr (__is_duration_v<_Tp>) __not_valid_for_duration(); else __invalid_chrono_spec(); return chrono::sys_days(); } } template<typename _Tp> static chrono::year_month_day _S_date(const _Tp& __t) { if constexpr (is_same_v<_Tp, chrono::year_month_day>) return __t; else return chrono::year_month_day(_S_days(__t)); } template<typename _Tp> static chrono::day _S_day(const _Tp& __t) { using namespace chrono; if constexpr (is_same_v<_Tp, day>) return __t; else if constexpr (requires { __t.day(); }) return __t.day(); else return _S_date(__t).day(); } template<typename _Tp> static chrono::month _S_month(const _Tp& __t) { using namespace chrono; if constexpr (is_same_v<_Tp, month>) return __t; else if constexpr (requires { __t.month(); }) return __t.month(); else return _S_date(__t).month(); } template<typename _Tp> static chrono::year _S_year(const _Tp& __t) { using namespace chrono; if constexpr (is_same_v<_Tp, year>) return __t; else if constexpr (requires { __t.year(); }) return __t.year(); else return _S_date(__t).year(); } template<typename _Tp> static chrono::weekday _S_weekday(const _Tp& __t) { using namespace ::std::chrono; using ::std::chrono::__detail::__local_time_fmt; if constexpr (is_same_v<_Tp, weekday>) return __t; else if constexpr (requires { __t.weekday(); }) return __t.weekday(); else if constexpr (is_same_v<_Tp, month_weekday>) return __t.weekday_indexed().weekday(); else if constexpr (is_same_v<_Tp, month_weekday_last>) return __t.weekday_last().weekday(); else return weekday(_S_days(__t)); } }; } template<typename _Rep, typename _Period, typename _CharT> struct formatter<chrono::duration<_Rep, _Period>, _CharT> { constexpr typename basic_format_parse_context<_CharT>::iterator parse(basic_format_parse_context<_CharT>& __pc) { using namespace __format; auto __it = _M_f._M_parse(__pc, _Duration|_TimeOfDay); if constexpr (!is_floating_point_v<_Rep>) if (_M_f._M_spec._M_prec_kind != __format::_WP_none) __throw_format_error("format error: invalid precision for duration"); return __it; } template<typename _Out> typename basic_format_context<_Out, _CharT>::iterator format(const chrono::duration<_Rep, _Period>& __d, basic_format_context<_Out, _CharT>& __fc) const { return _M_f._M_format(chrono::abs(__d), __fc, __d < __d.zero()); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::day, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Day); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::day& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::month, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Month); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::month& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::year, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Year); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::year& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::weekday, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Weekday); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::weekday& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::weekday_indexed, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Weekday); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::weekday_indexed& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::weekday_last, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Weekday); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::weekday_last& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::month_day, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Month|__format::_Day); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::month_day& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::month_day_last, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Month|__format::_Day); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::month_day_last& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::month_weekday, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Month|__format::_Weekday); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::month_weekday& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::month_weekday_last, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Month|__format::_Weekday); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::month_weekday_last& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::year_month, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Year|__format::_Month); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::year_month& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::year_month_day, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Date); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::year_month_day& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::year_month_day_last, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Date); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::year_month_day_last& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::year_month_weekday, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Date); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::year_month_weekday& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::year_month_weekday_last, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_Date); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::year_month_weekday_last& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Rep, typename _Period, typename _CharT> struct formatter<chrono::hh_mm_ss<chrono::duration<_Rep, _Period>>, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_TimeOfDay); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::hh_mm_ss<chrono::duration<_Rep, _Period>>& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::sys_info, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ChronoParts{}); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::sys_info& __i, _FormatContext& __fc) const { return _M_f._M_format(__i, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _CharT> struct formatter<chrono::local_info, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ChronoParts{}); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::local_info& __i, _FormatContext& __fc) const { return _M_f._M_format(__i, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::sys_time<_Duration>, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ZonedDateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::sys_time<_Duration>& __t, _FormatContext& __fc) const { return _M_f._M_format(__t, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::utc_time<_Duration>, _CharT> : __format::__formatter_chrono<_CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ZonedDateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::utc_time<_Duration>& __t, _FormatContext& __fc) const { using chrono::__detail::__utc_leap_second; using chrono::seconds; using chrono::sys_time; using _CDur = common_type_t<_Duration, seconds>; const auto __li = chrono::get_leap_second_info(__t); sys_time<_CDur> __s{__t.time_since_epoch() - __li.elapsed}; if (!__li.is_leap_second) [[likely]] return _M_f._M_format(__s, __fc); else return _M_f._M_format(__utc_leap_second(__s), __fc); } private: friend formatter<chrono::__detail::__utc_leap_second<_Duration>, _CharT>; __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::tai_time<_Duration>, _CharT> : __format::__formatter_chrono<_CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ZonedDateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::tai_time<_Duration>& __t, _FormatContext& __fc) const { constexpr chrono::days __tai_offset = chrono::days(4383); using _CDur = common_type_t<_Duration, chrono::days>; chrono::local_time<_CDur> __lt(__t.time_since_epoch() - __tai_offset); const string __abbrev("TAI", 3); const chrono::seconds __off = 0s; const auto __lf = chrono::local_time_format(__lt, &__abbrev, &__off); return _M_f._M_format(__lf, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::gps_time<_Duration>, _CharT> : __format::__formatter_chrono<_CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ZonedDateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::gps_time<_Duration>& __t, _FormatContext& __fc) const { constexpr chrono::days __gps_offset = chrono::days(3657); using _CDur = common_type_t<_Duration, chrono::days>; chrono::local_time<_CDur> __lt(__t.time_since_epoch() + __gps_offset); const string __abbrev("GPS", 3); const chrono::seconds __off = 0s; const auto __lf = chrono::local_time_format(__lt, &__abbrev, &__off); return _M_f._M_format(__lf, __fc); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::file_time<_Duration>, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ZonedDateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::file_time<_Duration>& __t, _FormatContext& __ctx) const { using namespace chrono; return _M_f._M_format(chrono::clock_cast<system_clock>(__t), __ctx); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::local_time<_Duration>, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_DateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::local_time<_Duration>& __t, _FormatContext& __ctx) const { return _M_f._M_format(__t, __ctx); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _CharT> struct formatter<chrono::__detail::__local_time_fmt<_Duration>, _CharT> { template<typename _ParseContext> constexpr typename _ParseContext::iterator parse(_ParseContext& __pc) { return _M_f._M_parse(__pc, __format::_ZonedDateTime); } template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::__detail::__local_time_fmt<_Duration>& __t, _FormatContext& __ctx) const { return _M_f._M_format(__t, __ctx); } private: __format::__formatter_chrono<_CharT> _M_f; }; template<typename _Duration, typename _TimeZonePtr, typename _CharT> struct formatter<chrono::zoned_time<_Duration, _TimeZonePtr>, _CharT> : formatter<chrono::__detail::__local_time_fmt<_Duration>, _CharT> { template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::zoned_time<_Duration, _TimeZonePtr>& __tp, _FormatContext& __ctx) const { using chrono::__detail::__local_time_fmt; using _Base = formatter<__local_time_fmt<_Duration>, _CharT>; const chrono::sys_info __info = __tp.get_info(); const auto __lf = chrono::local_time_format(__tp.get_local_time(), &__info.abbrev, &__info.offset); return _Base::format(__lf, __ctx); } }; template<typename _Duration, typename _CharT> struct formatter<chrono::__detail::__utc_leap_second<_Duration>, _CharT> : formatter<chrono::utc_time<_Duration>, _CharT> { template<typename _FormatContext> typename _FormatContext::iterator format(const chrono::__detail::__utc_leap_second<_Duration>& __t, _FormatContext& __fc) const { return this->_M_f._M_format(__t, __fc); } }; namespace chrono { # 2053 "/usr/include/c++/13/bits/chrono_io.h" 3 template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const day& __d) { using _Ctx = __conditional_t<is_same_v<_CharT, char>, format_context, wformat_context>; using _Str = basic_string_view<_CharT>; _Str __s = ::std::chrono::__detail::_Widen<_CharT>("{:02d} is not a valid day", L"{:02d} is not a valid day"); if (__d.ok()) __s = __s.substr(0, 6); __os << std::vformat(__s, make_format_args<_Ctx>((unsigned)__d)); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const month& __m) { using _Ctx = __conditional_t<is_same_v<_CharT, char>, format_context, wformat_context>; using _Str = basic_string_view<_CharT>; _Str __s = ::std::chrono::__detail::_Widen<_CharT>("{:L%b}{} is not a valid month", L"{:L%b}{} is not a valid month"); if (__m.ok()) __os << std::vformat(__os.getloc(), __s.substr(0, 6), make_format_args<_Ctx>(__m)); else __os << std::vformat(__s.substr(6), make_format_args<_Ctx>((unsigned)__m)); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const year& __y) { using _Ctx = __conditional_t<is_same_v<_CharT, char>, format_context, wformat_context>; using _Str = basic_string_view<_CharT>; _Str __s = ::std::chrono::__detail::_Widen<_CharT>("-{:04d} is not a valid year", L"-{:04d} is not a valid year"); if (__y.ok()) __s = __s.substr(0, 7); int __i = (int)__y; if (__i >= 0) [[likely]] __s.remove_prefix(1); else __i = -__i; __os << std::vformat(__s, make_format_args<_Ctx>(__i)); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const weekday& __wd) { using _Ctx = __conditional_t<is_same_v<_CharT, char>, format_context, wformat_context>; using _Str = basic_string_view<_CharT>; _Str __s = ::std::chrono::__detail::_Widen<_CharT>("{:L%a}{} is not a valid weekday", L"{:L%a}{} is not a valid weekday"); if (__wd.ok()) __os << std::vformat(__os.getloc(), __s.substr(0, 6), make_format_args<_Ctx>(__wd)); else __os << std::vformat(__s.substr(6), make_format_args<_Ctx>(__wd.c_encoding())); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const weekday_indexed& __wdi) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __wdi.weekday(); const auto __i = __wdi.index(); if constexpr (is_same_v<_CharT, char>) __os2 << std::format("[{}", __i); else __os2 << std::format(L"[{}", __i); basic_string_view<_CharT> __s = ::std::chrono::__detail::_Widen<_CharT>(" is not a valid index]", L" is not a valid index]"); if (__i >= 1 && __i <= 5) __os2 << __s.back(); else __os2 << __s; __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const weekday_last& __wdl) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __wdl.weekday() << ::std::chrono::__detail::_Widen<_CharT>("[last]", L"[last]"); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const month_day& __md) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __md.month(); if constexpr (is_same_v<_CharT, char>) __os2 << '/'; else __os2 << L'/'; __os2 << __md.day(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const month_day_last& __mdl) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __mdl.month(); if constexpr (is_same_v<_CharT, char>) __os2 << "/last"; else __os2 << L"/last"; __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const month_weekday& __mwd) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __mwd.month(); if constexpr (is_same_v<_CharT, char>) __os2 << '/'; else __os2 << L'/'; __os2 << __mwd.weekday_indexed(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const month_weekday_last& __mwdl) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __mwdl.month(); if constexpr (is_same_v<_CharT, char>) __os2 << '/'; else __os2 << L'/'; __os2 << __mwdl.weekday_last(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const year_month& __ym) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __ym.year(); if constexpr (is_same_v<_CharT, char>) __os2 << '/'; else __os2 << L'/'; __os2 << __ym.month(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const year_month_day& __ymd) { using _Ctx = __conditional_t<is_same_v<_CharT, char>, format_context, wformat_context>; using _Str = basic_string_view<_CharT>; _Str __s = ::std::chrono::__detail::_Widen<_CharT>("{:%F} is not a valid date", L"{:%F} is not a valid date"); __os << std::vformat(__ymd.ok() ? __s.substr(0, 5) : __s, make_format_args<_Ctx>(__ymd)); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const year_month_day_last& __ymdl) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); __os2 << __ymdl.year(); if constexpr (is_same_v<_CharT, char>) __os2 << '/'; else __os2 << L'/'; __os2 << __ymdl.month_day_last(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const year_month_weekday& __ymwd) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); _CharT __slash; if constexpr (is_same_v<_CharT, char>) __slash = '/'; else __slash = L'/'; __os2 << __ymwd.year() << __slash << __ymwd.month() << __slash << __ymwd.weekday_indexed(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const year_month_weekday_last& __ymwdl) { basic_stringstream<_CharT> __os2; __os2.imbue(__os.getloc()); _CharT __slash; if constexpr (is_same_v<_CharT, char>) __slash = '/'; else __slash = L'/'; __os2 << __ymwdl.year() << __slash << __ymwdl.month() << __slash << __ymwdl.weekday_last(); __os << __os2.view(); return __os; } template<typename _CharT, typename _Traits, typename _Duration> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const hh_mm_ss<_Duration>& __hms) { return __os << format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%T}", L"{:L%T}"), __hms); } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const sys_info& __i) { __os << '[' << __i.begin << ',' << __i.end << ',' << hh_mm_ss(__i.offset) << ',' << __i.save << ',' << __i.abbrev << ']'; return __os; } template<typename _CharT, typename _Traits> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const local_info& __li) { __os << '['; if (__li.result == local_info::unique) __os << __li.first; else { if (__li.result == local_info::nonexistent) __os << "nonexistent"; else __os << "ambiguous"; __os << " local time between " << __li.first; __os << " and " << __li.second; } __os << ']'; return __os; } template<typename _CharT, typename _Traits, typename _Duration, typename _TimeZonePtr> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const zoned_time<_Duration, _TimeZonePtr>& __t) { __os << format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%F %T %Z}", L"{:L%F %T %Z}"), __t); return __os; } template<typename _CharT, typename _Traits, typename _Duration> requires (!treat_as_floating_point_v<typename _Duration::rep>) && ratio_less_v<typename _Duration::period, days::period> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const sys_time<_Duration>& __tp) { __os << std::format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%F %T}", L"{:L%F %T}"), __tp); return __os; } template<typename _CharT, typename _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const sys_days& __dp) { __os << year_month_day{__dp}; return __os; } template<typename _CharT, typename _Traits, typename _Duration> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const utc_time<_Duration>& __t) { __os << std::format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%F %T}", L"{:L%F %T}"), __t); return __os; } template<typename _CharT, typename _Traits, typename _Duration> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const tai_time<_Duration>& __t) { __os << std::format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%F %T}", L"{:L%F %T}"), __t); return __os; } template<typename _CharT, typename _Traits, typename _Duration> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const gps_time<_Duration>& __t) { __os << std::format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%F %T}", L"{:L%F %T}"), __t); return __os; } template<typename _CharT, typename _Traits, typename _Duration> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const file_time<_Duration>& __t) { __os << std::format(__os.getloc(), ::std::chrono::__detail::_Widen<_CharT>("{:L%F %T}", L"{:L%F %T}"), __t); return __os; } template<typename _CharT, typename _Traits, typename _Duration> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const local_time<_Duration>& __lt) { __os << sys_time<_Duration>{__lt.time_since_epoch()}; return __os; } } } # 3331 "/usr/include/c++/13/chrono" 2 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono.hpp" 2 3 4 namespace boost { namespace asio { namespace chrono { using std::chrono::duration; using std::chrono::time_point; using std::chrono::duration_cast; using std::chrono::nanoseconds; using std::chrono::microseconds; using std::chrono::milliseconds; using std::chrono::seconds; using std::chrono::minutes; using std::chrono::hours; using std::chrono::time_point_cast; using std::chrono::steady_clock; using std::chrono::system_clock; using std::chrono::high_resolution_clock; # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono.hpp" 3 4 } } } # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_event.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_event.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_mutex.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_mutex.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_mutex.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class conditionally_enabled_mutex : private noncopyable { public: class scoped_lock : private noncopyable { public: enum adopt_lock_t { adopt_lock }; scoped_lock(conditionally_enabled_mutex& m, adopt_lock_t) : mutex_(m), locked_(m.enabled_) { } explicit scoped_lock(conditionally_enabled_mutex& m) : mutex_(m) { if (m.enabled_) { mutex_.mutex_.lock(); locked_ = true; } else locked_ = false; } ~scoped_lock() { if (locked_) mutex_.mutex_.unlock(); } void lock() { if (mutex_.enabled_ && !locked_) { mutex_.mutex_.lock(); locked_ = true; } } void unlock() { if (locked_) { mutex_.unlock(); locked_ = false; } } bool locked() const { return locked_; } boost::asio::detail::mutex& mutex() { return mutex_.mutex_; } private: friend class conditionally_enabled_event; conditionally_enabled_mutex& mutex_; bool locked_; }; explicit conditionally_enabled_mutex(bool enabled) : enabled_(enabled) { } ~conditionally_enabled_mutex() { } bool enabled() const { return enabled_; } void lock() { if (enabled_) mutex_.lock(); } void unlock() { if (enabled_) mutex_.unlock(); } private: friend class scoped_lock; friend class conditionally_enabled_event; boost::asio::detail::mutex mutex_; const bool enabled_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 150 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_mutex.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_event.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/null_event.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/null_event.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/null_event.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class null_event : private noncopyable { public: null_event() { } ~null_event() { } template <typename Lock> void signal(Lock&) { } template <typename Lock> void signal_all(Lock&) { } template <typename Lock> void unlock_and_signal_one(Lock&) { } template <typename Lock> void unlock_and_signal_one_for_destruction(Lock&) { } template <typename Lock> bool maybe_unlock_and_signal_one(Lock&) { return false; } template <typename Lock> void clear(Lock&) { } template <typename Lock> void wait(Lock&) { do_wait(); } template <typename Lock> bool wait_for_usec(Lock&, long usec) { do_wait_for_usec(usec); return true; } private: inline static void do_wait(); inline static void do_wait_for_usec(long usec); }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 103 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/null_event.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/null_event.ipp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/null_event.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/null_event.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { void null_event::do_wait() { ::pause(); } void null_event::do_wait_for_usec(long usec) { # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/null_event.ipp" 3 4 timeval tv; tv.tv_sec = usec / 1000000; tv.tv_usec = usec % 1000000; ::select(0, 0, 0, 0, &tv); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/null_event.ipp" 2 3 4 # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/null_event.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_event.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_event.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class conditionally_enabled_event : private noncopyable { public: conditionally_enabled_event() { } ~conditionally_enabled_event() { } void signal(conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) event_.signal(lock); } void signal_all(conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) event_.signal_all(lock); } void unlock_and_signal_one( conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) event_.unlock_and_signal_one(lock); } void unlock_and_signal_one_for_destruction( conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) event_.unlock_and_signal_one(lock); } bool maybe_unlock_and_signal_one( conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) return event_.maybe_unlock_and_signal_one(lock); else return false; } void clear(conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) event_.clear(lock); } void wait(conditionally_enabled_mutex::scoped_lock& lock) { if (lock.mutex_.enabled_) event_.wait(lock); else null_event().wait(lock); } bool wait_for_usec( conditionally_enabled_mutex::scoped_lock& lock, long usec) { if (lock.mutex_.enabled_) return event_.wait_for_usec(lock, usec); else return null_event().wait_for_usec(lock, usec); } private: boost::asio::detail::event event_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 121 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/conditionally_enabled_event.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/op_queue.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/op_queue.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/op_queue.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Operation> class op_queue; class op_queue_access { public: template <typename Operation> static Operation* next(Operation* o) { return static_cast<Operation*>(o->next_); } template <typename Operation1, typename Operation2> static void next(Operation1*& o1, Operation2* o2) { o1->next_ = o2; } template <typename Operation> static void destroy(Operation* o) { o->destroy(); } template <typename Operation> static Operation*& front(op_queue<Operation>& q) { return q.front_; } template <typename Operation> static Operation*& back(op_queue<Operation>& q) { return q.back_; } }; template <typename Operation> class op_queue : private noncopyable { public: op_queue() : front_(0), back_(0) { } ~op_queue() { while (Operation* op = front_) { pop(); op_queue_access::destroy(op); } } Operation* front() { return front_; } void pop() { if (front_) { Operation* tmp = front_; front_ = op_queue_access::next(front_); if (front_ == 0) back_ = 0; op_queue_access::next(tmp, static_cast<Operation*>(0)); } } void push(Operation* h) { op_queue_access::next(h, static_cast<Operation*>(0)); if (back_) { op_queue_access::next(back_, h); back_ = h; } else { front_ = back_ = h; } } template <typename OtherOperation> void push(op_queue<OtherOperation>& q) { if (Operation* other_front = op_queue_access::front(q)) { if (back_) op_queue_access::next(back_, other_front); else front_ = other_front; back_ = op_queue_access::back(q); op_queue_access::front(q) = 0; op_queue_access::back(q) = 0; } } bool empty() const { return front_ == 0; } bool is_enqueued(Operation* o) const { return op_queue_access::next(o) != 0 || back_ == o; } private: friend class op_queue_access; Operation* front_; Operation* back_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/op_queue.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_operation.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_operation.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 3 4 namespace boost { namespace asio { class execution_context; } } # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { # 258 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 263 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/handler_tracking.ipp" 1 3 4 # 266 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_tracking.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_operation.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_operation.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class scheduler; class scheduler_operation { public: typedef scheduler_operation operation_type; void complete(void* owner, const boost::system::error_code& ec, std::size_t bytes_transferred) { func_(owner, this, ec, bytes_transferred); } void destroy() { func_(0, this, boost::system::error_code(), 0); } protected: typedef void (*func_type)(void*, scheduler_operation*, const boost::system::error_code&, std::size_t); scheduler_operation(func_type func) : next_(0), func_(func), task_result_(0) { } ~scheduler_operation() { } private: friend class op_queue_access; scheduler_operation* next_; func_type func_; protected: friend class scheduler; unsigned int task_result_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_operation.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_task.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_task.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_task.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class scheduler_operation; class scheduler_task { public: virtual void run(long usec, op_queue<scheduler_operation>& ops) = 0; virtual void interrupt() = 0; protected: ~scheduler_task() { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_task.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_thread.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_thread.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_thread.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { extern "C" { inline void* boost_asio_detail_posix_thread_function(void* arg); } class posix_thread : private noncopyable { public: template <typename Function> posix_thread(Function f, unsigned int = 0) : joined_(false) { start_thread(new func<Function>(f)); } inline ~posix_thread(); inline void join(); inline static std::size_t hardware_concurrency(); private: friend void* boost_asio_detail_posix_thread_function(void* arg); class func_base { public: virtual ~func_base() {} virtual void run() = 0; }; struct auto_func_base_ptr { func_base* ptr; ~auto_func_base_ptr() { delete ptr; } }; template <typename Function> class func : public func_base { public: func(Function f) : f_(f) { } virtual void run() { f_(); } private: Function f_; }; inline void start_thread(func_base* arg); ::pthread_t thread_; bool joined_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_thread.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_thread.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_thread.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_thread.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_thread.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_thread.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { posix_thread::~posix_thread() { if (!joined_) ::pthread_detach(thread_); } void posix_thread::join() { if (!joined_) { ::pthread_join(thread_, 0); joined_ = true; } } std::size_t posix_thread::hardware_concurrency() { long result = sysconf(_SC_NPROCESSORS_ONLN); if (result > 0) return result; return 0; } void posix_thread::start_thread(func_base* arg) { int error = ::pthread_create(&thread_, 0, boost_asio_detail_posix_thread_function, arg); if (error != 0) { delete arg; boost::system::error_code ec(error, boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "thread"); } } void* boost_asio_detail_posix_thread_function(void* arg) { posix_thread::auto_func_base_ptr func = { static_cast<posix_thread::func_base*>(arg) }; func.ptr->run(); return 0; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 83 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_thread.ipp" 2 3 4 # 107 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_thread.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread.hpp" 3 4 namespace boost { namespace asio { namespace detail { typedef posix_thread thread; # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread.hpp" 3 4 } } } # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct scheduler_thread_info; class scheduler : public execution_context_service_base<scheduler>, public thread_context { public: typedef scheduler_operation operation; typedef scheduler_task* (*get_task_func_type)( boost::asio::execution_context&); inline scheduler(boost::asio::execution_context& ctx, int concurrency_hint = 0, bool own_thread = true, get_task_func_type get_task = &scheduler::get_default_task); inline ~scheduler(); inline void shutdown(); inline void init_task(); inline std::size_t run(boost::system::error_code& ec); inline std::size_t run_one(boost::system::error_code& ec); inline std::size_t wait_one( long usec, boost::system::error_code& ec); inline std::size_t poll(boost::system::error_code& ec); inline std::size_t poll_one(boost::system::error_code& ec); inline void stop(); inline bool stopped() const; inline void restart(); void work_started() { ++outstanding_work_; } inline void compensating_work_started(); void work_finished() { if (--outstanding_work_ == 0) stop(); } inline bool can_dispatch(); inline void capture_current_exception(); inline void post_immediate_completion( operation* op, bool is_continuation); inline void post_immediate_completions(std::size_t n, op_queue<operation>& ops, bool is_continuation); inline void post_deferred_completion(operation* op); inline void post_deferred_completions(op_queue<operation>& ops); inline void do_dispatch(operation* op); inline void abandon_operations(op_queue<operation>& ops); int concurrency_hint() const { return concurrency_hint_; } private: typedef conditionally_enabled_mutex mutex; typedef conditionally_enabled_event event; typedef scheduler_thread_info thread_info; inline std::size_t do_run_one(mutex::scoped_lock& lock, thread_info& this_thread, const boost::system::error_code& ec); inline std::size_t do_wait_one(mutex::scoped_lock& lock, thread_info& this_thread, long usec, const boost::system::error_code& ec); inline std::size_t do_poll_one(mutex::scoped_lock& lock, thread_info& this_thread, const boost::system::error_code& ec); inline void stop_all_threads(mutex::scoped_lock& lock); inline void wake_one_thread_and_unlock( mutex::scoped_lock& lock); inline static scheduler_task* get_default_task( boost::asio::execution_context& ctx); class thread_function; friend class thread_function; struct task_cleanup; friend struct task_cleanup; struct work_cleanup; friend struct work_cleanup; const bool one_thread_; mutable mutex mutex_; event wakeup_event_; scheduler_task* task_; get_task_func_type get_task_; struct task_operation : operation { task_operation() : operation(0) {} } task_operation_; bool task_interrupted_; atomic_count outstanding_work_; op_queue<operation> op_queue_; bool stopped_; bool shutdown_; const int concurrency_hint_; boost::asio::detail::thread* thread_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 238 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/limits.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/limits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/limits.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/limits.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_thread_info.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_thread_info.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_thread_info.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class scheduler; class scheduler_operation; struct scheduler_thread_info : public thread_info_base { op_queue<scheduler_operation> private_op_queue; long private_outstanding_work; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler_thread_info.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_blocker.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_blocker.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_signal_blocker.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_signal_blocker.hpp" 3 4 # 1 "/usr/include/c++/13/csignal" 1 3 4 # 39 "/usr/include/c++/13/csignal" 3 4 # 40 "/usr/include/c++/13/csignal" 3 # 1 "/usr/include/signal.h" 1 3 4 # 27 "/usr/include/signal.h" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/signum-generic.h" 1 3 4 # 76 "/usr/include/x86_64-linux-gnu/bits/signum-generic.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/signum-arch.h" 1 3 4 # 77 "/usr/include/x86_64-linux-gnu/bits/signum-generic.h" 2 3 4 # 31 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/sig_atomic_t.h" 1 3 4 typedef __sig_atomic_t sig_atomic_t; # 33 "/usr/include/signal.h" 2 3 4 # 57 "/usr/include/signal.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 5 "/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h" 2 3 4 # 16 "/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/siginfo-arch.h" 1 3 4 # 17 "/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h" 2 3 4 # 36 "/usr/include/x86_64-linux-gnu/bits/types/siginfo_t.h" 3 4 typedef struct { int si_signo; int si_errno; int si_code; int __pad0; union { int _pad[((128 / sizeof (int)) - 4)]; struct { __pid_t si_pid; __uid_t si_uid; } _kill; struct { int si_tid; int si_overrun; __sigval_t si_sigval; } _timer; struct { __pid_t si_pid; __uid_t si_uid; __sigval_t si_sigval; } _rt; struct { __pid_t si_pid; __uid_t si_uid; int si_status; __clock_t si_utime; __clock_t si_stime; } _sigchld; struct { void *si_addr; short int si_addr_lsb; union { struct { void *_lower; void *_upper; } _addr_bnd; __uint32_t _pkey; } _bounds; } _sigfault; struct { long int si_band; int si_fd; } _sigpoll; struct { void *_call_addr; int _syscall; unsigned int _arch; } _sigsys; } _sifields; } siginfo_t ; # 58 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h" 1 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h" 3 4 enum { SI_ASYNCNL = -60, SI_DETHREAD = -7, SI_TKILL, SI_SIGIO, SI_ASYNCIO, SI_MESGQ, SI_TIMER, SI_QUEUE, SI_USER, SI_KERNEL = 0x80 # 66 "/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h" 3 4 }; enum { ILL_ILLOPC = 1, ILL_ILLOPN, ILL_ILLADR, ILL_ILLTRP, ILL_PRVOPC, ILL_PRVREG, ILL_COPROC, ILL_BADSTK, ILL_BADIADDR }; enum { FPE_INTDIV = 1, FPE_INTOVF, FPE_FLTDIV, FPE_FLTOVF, FPE_FLTUND, FPE_FLTRES, FPE_FLTINV, FPE_FLTSUB, FPE_FLTUNK = 14, FPE_CONDTRAP }; enum { SEGV_MAPERR = 1, SEGV_ACCERR, SEGV_BNDERR, SEGV_PKUERR, SEGV_ACCADI, SEGV_ADIDERR, SEGV_ADIPERR, SEGV_MTEAERR, SEGV_MTESERR }; enum { BUS_ADRALN = 1, BUS_ADRERR, BUS_OBJERR, BUS_MCEERR_AR, BUS_MCEERR_AO }; enum { TRAP_BRKPT = 1, TRAP_TRACE, TRAP_BRANCH, TRAP_HWBKPT, TRAP_UNK }; enum { CLD_EXITED = 1, CLD_KILLED, CLD_DUMPED, CLD_TRAPPED, CLD_STOPPED, CLD_CONTINUED }; enum { POLL_IN = 1, POLL_OUT, POLL_MSG, POLL_ERR, POLL_PRI, POLL_HUP }; # 1 "/usr/include/x86_64-linux-gnu/bits/siginfo-consts-arch.h" 1 3 4 # 214 "/usr/include/x86_64-linux-gnu/bits/siginfo-consts.h" 2 3 4 # 59 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h" 1 3 4 # 16 "/usr/include/x86_64-linux-gnu/bits/types/sigval_t.h" 3 4 typedef __sigval_t sigval_t; # 63 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/sigevent-consts.h" 3 4 enum { SIGEV_SIGNAL = 0, SIGEV_NONE, SIGEV_THREAD, SIGEV_THREAD_ID = 4 }; # 68 "/usr/include/signal.h" 2 3 4 typedef void (*__sighandler_t) (int); extern __sighandler_t __sysv_signal (int __sig, __sighandler_t __handler) noexcept (true); extern __sighandler_t sysv_signal (int __sig, __sighandler_t __handler) noexcept (true); extern __sighandler_t signal (int __sig, __sighandler_t __handler) noexcept (true); # 112 "/usr/include/signal.h" 3 4 extern int kill (__pid_t __pid, int __sig) noexcept (true); extern int killpg (__pid_t __pgrp, int __sig) noexcept (true); extern int raise (int __sig) noexcept (true); extern __sighandler_t ssignal (int __sig, __sighandler_t __handler) noexcept (true); extern int gsignal (int __sig) noexcept (true); extern void psignal (int __sig, const char *__s); extern void psiginfo (const siginfo_t *__pinfo, const char *__s); # 151 "/usr/include/signal.h" 3 4 extern int sigpause (int __sig) __asm__ ("__xpg_sigpause") __attribute__ ((__deprecated__ ("Use the sigsuspend function instead"))); # 173 "/usr/include/signal.h" 3 4 extern int sigblock (int __mask) noexcept (true) __attribute__ ((__deprecated__)); extern int sigsetmask (int __mask) noexcept (true) __attribute__ ((__deprecated__)); extern int siggetmask (void) noexcept (true) __attribute__ ((__deprecated__)); # 188 "/usr/include/signal.h" 3 4 typedef __sighandler_t sighandler_t; typedef __sighandler_t sig_t; extern int sigemptyset (sigset_t *__set) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigfillset (sigset_t *__set) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigaddset (sigset_t *__set, int __signo) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigdelset (sigset_t *__set, int __signo) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigismember (const sigset_t *__set, int __signo) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigisemptyset (const sigset_t *__set) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigandset (sigset_t *__set, const sigset_t *__left, const sigset_t *__right) noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); extern int sigorset (sigset_t *__set, const sigset_t *__left, const sigset_t *__right) noexcept (true) __attribute__ ((__nonnull__ (1, 2, 3))); # 1 "/usr/include/x86_64-linux-gnu/bits/sigaction.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/sigaction.h" 3 4 struct sigaction { union { __sighandler_t sa_handler; void (*sa_sigaction) (int, siginfo_t *, void *); } __sigaction_handler; __sigset_t sa_mask; int sa_flags; void (*sa_restorer) (void); }; # 230 "/usr/include/signal.h" 2 3 4 extern int sigprocmask (int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) noexcept (true); extern int sigsuspend (const sigset_t *__set) __attribute__ ((__nonnull__ (1))); extern int sigaction (int __sig, const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) noexcept (true); extern int sigpending (sigset_t *__set) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig) __attribute__ ((__nonnull__ (1, 2))); extern int sigwaitinfo (const sigset_t *__restrict __set, siginfo_t *__restrict __info) __attribute__ ((__nonnull__ (1))); extern int sigtimedwait (const sigset_t *__restrict __set, siginfo_t *__restrict __info, const struct timespec *__restrict __timeout) __attribute__ ((__nonnull__ (1))); # 292 "/usr/include/signal.h" 3 4 extern int sigqueue (__pid_t __pid, int __sig, const union sigval __val) noexcept (true); # 1 "/usr/include/x86_64-linux-gnu/bits/sigcontext.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/bits/sigcontext.h" 3 4 struct _fpx_sw_bytes { __uint32_t magic1; __uint32_t extended_size; __uint64_t xstate_bv; __uint32_t xstate_size; __uint32_t __glibc_reserved1[7]; }; struct _fpreg { unsigned short significand[4]; unsigned short exponent; }; struct _fpxreg { unsigned short significand[4]; unsigned short exponent; unsigned short __glibc_reserved1[3]; }; struct _xmmreg { __uint32_t element[4]; }; # 123 "/usr/include/x86_64-linux-gnu/bits/sigcontext.h" 3 4 struct _fpstate { __uint16_t cwd; __uint16_t swd; __uint16_t ftw; __uint16_t fop; __uint64_t rip; __uint64_t rdp; __uint32_t mxcsr; __uint32_t mxcr_mask; struct _fpxreg _st[8]; struct _xmmreg _xmm[16]; __uint32_t __glibc_reserved1[24]; }; struct sigcontext { __uint64_t r8; __uint64_t r9; __uint64_t r10; __uint64_t r11; __uint64_t r12; __uint64_t r13; __uint64_t r14; __uint64_t r15; __uint64_t rdi; __uint64_t rsi; __uint64_t rbp; __uint64_t rbx; __uint64_t rdx; __uint64_t rax; __uint64_t rcx; __uint64_t rsp; __uint64_t rip; __uint64_t eflags; unsigned short cs; unsigned short gs; unsigned short fs; unsigned short __pad0; __uint64_t err; __uint64_t trapno; __uint64_t oldmask; __uint64_t cr2; __extension__ union { struct _fpstate * fpstate; __uint64_t __fpstate_word; }; __uint64_t __reserved1 [8]; }; struct _xsave_hdr { __uint64_t xstate_bv; __uint64_t __glibc_reserved1[2]; __uint64_t __glibc_reserved2[5]; }; struct _ymmh_state { __uint32_t ymmh_space[64]; }; struct _xstate { struct _fpstate fpstate; struct _xsave_hdr xstate_hdr; struct _ymmh_state ymmh; }; # 302 "/usr/include/signal.h" 2 3 4 extern int sigreturn (struct sigcontext *__scp) noexcept (true); # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 312 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/stack_t.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/types/stack_t.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/types/stack_t.h" 2 3 4 typedef struct { void *ss_sp; int ss_flags; size_t ss_size; } stack_t; # 314 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 1 3 4 # 37 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 3 4 __extension__ typedef long long int greg_t; # 46 "/usr/include/x86_64-linux-gnu/sys/ucontext.h" 3 4 typedef greg_t gregset_t[23]; enum { REG_R8 = 0, REG_R9, REG_R10, REG_R11, REG_R12, REG_R13, REG_R14, REG_R15, REG_RDI, REG_RSI, REG_RBP, REG_RBX, REG_RDX, REG_RAX, REG_RCX, REG_RSP, REG_RIP, REG_EFL, REG_CSGSFS, REG_ERR, REG_TRAPNO, REG_OLDMASK, REG_CR2 }; struct _libc_fpxreg { unsigned short int significand[4]; unsigned short int exponent; unsigned short int __glibc_reserved1[3]; }; struct _libc_xmmreg { __uint32_t element[4]; }; struct _libc_fpstate { __uint16_t cwd; __uint16_t swd; __uint16_t ftw; __uint16_t fop; __uint64_t rip; __uint64_t rdp; __uint32_t mxcsr; __uint32_t mxcr_mask; struct _libc_fpxreg _st[8]; struct _libc_xmmreg _xmm[16]; __uint32_t __glibc_reserved1[24]; }; typedef struct _libc_fpstate *fpregset_t; typedef struct { gregset_t gregs; fpregset_t fpregs; __extension__ unsigned long long __reserved1 [8]; } mcontext_t; typedef struct ucontext_t { unsigned long int uc_flags; struct ucontext_t *uc_link; stack_t uc_stack; mcontext_t uc_mcontext; sigset_t uc_sigmask; struct _libc_fpstate __fpregs_mem; __extension__ unsigned long long int __ssp[4]; } ucontext_t; # 317 "/usr/include/signal.h" 2 3 4 extern int siginterrupt (int __sig, int __interrupt) noexcept (true) __attribute__ ((__deprecated__ ("Use sigaction with SA_RESTART instead"))); # 1 "/usr/include/x86_64-linux-gnu/bits/sigstack.h" 1 3 4 # 328 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/sigstksz.h" 1 3 4 # 329 "/usr/include/signal.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/ss_flags.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/ss_flags.h" 3 4 enum { SS_ONSTACK = 1, SS_DISABLE }; # 330 "/usr/include/signal.h" 2 3 4 extern int sigaltstack (const stack_t *__restrict __ss, stack_t *__restrict __oss) noexcept (true); # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/types/struct_sigstack.h" 3 4 struct sigstack { void *ss_sp; int ss_onstack; }; # 340 "/usr/include/signal.h" 2 3 4 extern int sigstack (struct sigstack *__ss, struct sigstack *__oss) noexcept (true) __attribute__ ((__deprecated__)); extern int sighold (int __sig) noexcept (true) __attribute__ ((__deprecated__ ("Use the sigprocmask function instead"))); extern int sigrelse (int __sig) noexcept (true) __attribute__ ((__deprecated__ ("Use the sigprocmask function instead"))); extern int sigignore (int __sig) noexcept (true) __attribute__ ((__deprecated__ ("Use the signal function instead"))); extern __sighandler_t sigset (int __sig, __sighandler_t __disp) noexcept (true) __attribute__ ((__deprecated__ ("Use the signal and sigprocmask functions instead"))) ; # 1 "/usr/include/x86_64-linux-gnu/bits/sigthread.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/bits/sigthread.h" 3 4 extern int pthread_sigmask (int __how, const __sigset_t *__restrict __newmask, __sigset_t *__restrict __oldmask)noexcept (true); extern int pthread_kill (pthread_t __threadid, int __signo) noexcept (true); extern int pthread_sigqueue (pthread_t __threadid, int __signo, const union sigval __value) noexcept (true); # 377 "/usr/include/signal.h" 2 3 4 extern int __libc_current_sigrtmin (void) noexcept (true); extern int __libc_current_sigrtmax (void) noexcept (true); # 1 "/usr/include/x86_64-linux-gnu/bits/signal_ext.h" 1 3 4 # 29 "/usr/include/x86_64-linux-gnu/bits/signal_ext.h" 3 4 extern int tgkill (__pid_t __tgid, __pid_t __tid, int __signal); # 392 "/usr/include/signal.h" 2 3 4 } # 43 "/usr/include/c++/13/csignal" 2 3 namespace std { using ::sig_atomic_t; using ::signal; using ::raise; } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_signal_blocker.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_signal_blocker.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class posix_signal_blocker : private noncopyable { public: posix_signal_blocker() : blocked_(false) { sigset_t new_mask; sigfillset(&new_mask); blocked_ = (pthread_sigmask(0, &new_mask, &old_mask_) == 0); } ~posix_signal_blocker() { if (blocked_) pthread_sigmask(2, &old_mask_, 0); } void block() { if (!blocked_) { sigset_t new_mask; sigfillset(&new_mask); blocked_ = (pthread_sigmask(0, &new_mask, &old_mask_) == 0); } } void unblock() { if (blocked_) blocked_ = (pthread_sigmask(2, &old_mask_, 0) != 0); } private: bool blocked_; sigset_t old_mask_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_signal_blocker.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_blocker.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { typedef posix_signal_blocker signal_blocker; } } } # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/object_pool.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/object_pool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/object_pool.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Object> class object_pool; class object_pool_access { public: template <typename Object> static Object* create() { return new Object; } template <typename Object, typename Arg> static Object* create(Arg arg) { return new Object(arg); } template <typename Object> static void destroy(Object* o) { delete o; } template <typename Object> static Object*& next(Object* o) { return o->next_; } template <typename Object> static Object*& prev(Object* o) { return o->prev_; } }; template <typename Object> class object_pool : private noncopyable { public: object_pool() : live_list_(0), free_list_(0) { } ~object_pool() { destroy_list(live_list_); destroy_list(free_list_); } Object* first() { return live_list_; } Object* alloc() { Object* o = free_list_; if (o) free_list_ = object_pool_access::next(free_list_); else o = object_pool_access::create<Object>(); object_pool_access::next(o) = live_list_; object_pool_access::prev(o) = 0; if (live_list_) object_pool_access::prev(live_list_) = o; live_list_ = o; return o; } template <typename Arg> Object* alloc(Arg arg) { Object* o = free_list_; if (o) free_list_ = object_pool_access::next(free_list_); else o = object_pool_access::create<Object>(arg); object_pool_access::next(o) = live_list_; object_pool_access::prev(o) = 0; if (live_list_) object_pool_access::prev(live_list_) = o; live_list_ = o; return o; } void free(Object* o) { if (live_list_ == o) live_list_ = object_pool_access::next(o); if (object_pool_access::prev(o)) { object_pool_access::next(object_pool_access::prev(o)) = object_pool_access::next(o); } if (object_pool_access::next(o)) { object_pool_access::prev(object_pool_access::next(o)) = object_pool_access::prev(o); } object_pool_access::next(o) = free_list_; object_pool_access::prev(o) = 0; free_list_ = o; } private: void destroy_list(Object* list) { while (list) { Object* o = list; list = object_pool_access::next(o); object_pool_access::destroy(o); } } Object* live_list_; Object* free_list_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/object_pool.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor_op.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/operation.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/operation.hpp" 3 4 namespace boost { namespace asio { namespace detail { typedef scheduler_operation operation; } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class reactor_op : public operation { public: boost::system::error_code ec_; void* cancellation_key_; std::size_t bytes_transferred_; enum status { not_done, done, done_and_exhausted }; status perform() { return perform_func_(this); } protected: typedef status (*perform_func_type)(reactor_op*); reactor_op(const boost::system::error_code& success_ec, perform_func_type perform_func, func_type complete_func) : operation(complete_func), ec_(success_ec), cancellation_key_(0), bytes_transferred_(0), perform_func_(perform_func) { } private: perform_func_type perform_func_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor_op.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/select_interrupter.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/select_interrupter.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/eventfd_select_interrupter.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/eventfd_select_interrupter.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/eventfd_select_interrupter.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class eventfd_select_interrupter { public: inline eventfd_select_interrupter(); inline ~eventfd_select_interrupter(); inline void recreate(); inline void interrupt(); inline bool reset(); int read_descriptor() const { return read_descriptor_; } private: inline void open_descriptors(); inline void close_descriptors(); int read_descriptor_; int write_descriptor_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/eventfd_select_interrupter.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/stat.h" 1 3 4 # 99 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/stat.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/stat.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/struct_stat.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/struct_stat.h" 3 4 struct stat { __dev_t st_dev; __ino_t st_ino; __nlink_t st_nlink; __mode_t st_mode; __uid_t st_uid; __gid_t st_gid; int __pad0; __dev_t st_rdev; __off_t st_size; __blksize_t st_blksize; __blkcnt_t st_blocks; # 74 "/usr/include/x86_64-linux-gnu/bits/struct_stat.h" 3 4 struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # 89 "/usr/include/x86_64-linux-gnu/bits/struct_stat.h" 3 4 __syscall_slong_t __glibc_reserved[3]; # 99 "/usr/include/x86_64-linux-gnu/bits/struct_stat.h" 3 4 }; struct stat64 { __dev_t st_dev; __ino64_t st_ino; __nlink_t st_nlink; __mode_t st_mode; __uid_t st_uid; __gid_t st_gid; int __pad0; __dev_t st_rdev; __off_t st_size; __blksize_t st_blksize; __blkcnt64_t st_blocks; struct timespec st_atim; struct timespec st_mtim; struct timespec st_ctim; # 151 "/usr/include/x86_64-linux-gnu/bits/struct_stat.h" 3 4 __syscall_slong_t __glibc_reserved[3]; }; # 26 "/usr/include/x86_64-linux-gnu/bits/stat.h" 2 3 4 # 102 "/usr/include/x86_64-linux-gnu/sys/stat.h" 2 3 4 # 205 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int stat (const char *__restrict __file, struct stat *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int fstat (int __fd, struct stat *__buf) noexcept (true) __attribute__ ((__nonnull__ (2))); # 240 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int stat64 (const char *__restrict __file, struct stat64 *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); extern int fstat64 (int __fd, struct stat64 *__buf) noexcept (true) __attribute__ ((__nonnull__ (2))); # 264 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int fstatat (int __fd, const char *__restrict __file, struct stat *__restrict __buf, int __flag) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); # 291 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int fstatat64 (int __fd, const char *__restrict __file, struct stat64 *__restrict __buf, int __flag) noexcept (true) __attribute__ ((__nonnull__ (2, 3))); # 313 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int lstat (const char *__restrict __file, struct stat *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); # 338 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int lstat64 (const char *__restrict __file, struct stat64 *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); # 352 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int chmod (const char *__file, __mode_t __mode) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int lchmod (const char *__file, __mode_t __mode) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int fchmod (int __fd, __mode_t __mode) noexcept (true); extern int fchmodat (int __fd, const char *__file, __mode_t __mode, int __flag) noexcept (true) __attribute__ ((__nonnull__ (2))) ; extern __mode_t umask (__mode_t __mask) noexcept (true); extern __mode_t getumask (void) noexcept (true); extern int mkdir (const char *__path, __mode_t __mode) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int mkdirat (int __fd, const char *__path, __mode_t __mode) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int mknod (const char *__path, __mode_t __mode, __dev_t __dev) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int mknodat (int __fd, const char *__path, __mode_t __mode, __dev_t __dev) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int mkfifo (const char *__path, __mode_t __mode) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int mkfifoat (int __fd, const char *__path, __mode_t __mode) noexcept (true) __attribute__ ((__nonnull__ (2))); extern int utimensat (int __fd, const char *__path, const struct timespec __times[2], int __flags) noexcept (true) __attribute__ ((__nonnull__ (2))); # 452 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 extern int futimens (int __fd, const struct timespec __times[2]) noexcept (true); # 465 "/usr/include/x86_64-linux-gnu/sys/stat.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/statx.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/bits/statx.h" 3 4 # 1 "/usr/include/linux/stat.h" 1 3 4 # 1 "/usr/include/linux/types.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/types.h" 1 3 4 # 1 "/usr/include/asm-generic/types.h" 1 3 4 # 1 "/usr/include/asm-generic/int-ll64.h" 1 3 4 # 20 "/usr/include/asm-generic/int-ll64.h" 3 4 typedef __signed__ char __s8; typedef unsigned char __u8; typedef __signed__ short __s16; typedef unsigned short __u16; typedef __signed__ int __s32; typedef unsigned int __u32; __extension__ typedef __signed__ long long __s64; __extension__ typedef unsigned long long __u64; # 8 "/usr/include/asm-generic/types.h" 2 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/types.h" 2 3 4 # 6 "/usr/include/linux/types.h" 2 3 4 # 24 "/usr/include/linux/types.h" 3 4 typedef __u16 __le16; typedef __u16 __be16; typedef __u32 __le32; typedef __u32 __be32; typedef __u64 __le64; typedef __u64 __be64; typedef __u16 __sum16; typedef __u32 __wsum; # 47 "/usr/include/linux/types.h" 3 4 typedef unsigned __poll_t; # 6 "/usr/include/linux/stat.h" 2 3 4 # 56 "/usr/include/linux/stat.h" 3 4 struct statx_timestamp { __s64 tv_sec; __u32 tv_nsec; __s32 __reserved; }; # 99 "/usr/include/linux/stat.h" 3 4 struct statx { __u32 stx_mask; __u32 stx_blksize; __u64 stx_attributes; __u32 stx_nlink; __u32 stx_uid; __u32 stx_gid; __u16 stx_mode; __u16 __spare0[1]; __u64 stx_ino; __u64 stx_size; __u64 stx_blocks; __u64 stx_attributes_mask; struct statx_timestamp stx_atime; struct statx_timestamp stx_btime; struct statx_timestamp stx_ctime; struct statx_timestamp stx_mtime; __u32 stx_rdev_major; __u32 stx_rdev_minor; __u32 stx_dev_major; __u32 stx_dev_minor; __u64 stx_mnt_id; __u64 __spare2; __u64 __spare3[12]; }; # 32 "/usr/include/x86_64-linux-gnu/bits/statx.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/statx-generic.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/statx-generic.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_statx_timestamp.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/statx-generic.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/types/struct_statx.h" 1 3 4 # 27 "/usr/include/x86_64-linux-gnu/bits/statx-generic.h" 2 3 4 # 57 "/usr/include/x86_64-linux-gnu/bits/statx-generic.h" 3 4 extern "C" { int statx (int __dirfd, const char *__restrict __path, int __flags, unsigned int __mask, struct statx *__restrict __buf) noexcept (true) __attribute__ ((__nonnull__ (2, 5))); } # 40 "/usr/include/x86_64-linux-gnu/bits/statx.h" 2 3 4 # 466 "/usr/include/x86_64-linux-gnu/sys/stat.h" 2 3 4 } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 2 3 4 # 1 "/usr/include/fcntl.h" 1 3 4 # 28 "/usr/include/fcntl.h" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 1 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 3 4 struct flock { short int l_type; short int l_whence; __off_t l_start; __off_t l_len; __pid_t l_pid; }; struct flock64 { short int l_type; short int l_whence; __off64_t l_start; __off64_t l_len; __pid_t l_pid; }; # 1 "/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h" 1 3 4 # 265 "/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h" 3 4 enum __pid_type { F_OWNER_TID = 0, F_OWNER_PID, F_OWNER_PGRP, F_OWNER_GID = F_OWNER_PGRP }; struct f_owner_ex { enum __pid_type type; __pid_t pid; }; # 354 "/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h" 3 4 # 1 "/usr/include/linux/falloc.h" 1 3 4 # 355 "/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h" 2 3 4 struct file_handle { unsigned int handle_bytes; int handle_type; unsigned char f_handle[0]; }; # 393 "/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h" 3 4 extern "C" { extern __ssize_t readahead (int __fd, __off64_t __offset, size_t __count) noexcept (true); extern int sync_file_range (int __fd, __off64_t __offset, __off64_t __count, unsigned int __flags); extern __ssize_t vmsplice (int __fdout, const struct iovec *__iov, size_t __count, unsigned int __flags); extern __ssize_t splice (int __fdin, __off64_t *__offin, int __fdout, __off64_t *__offout, size_t __len, unsigned int __flags); extern __ssize_t tee (int __fdin, int __fdout, size_t __len, unsigned int __flags); extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len); # 448 "/usr/include/x86_64-linux-gnu/bits/fcntl-linux.h" 3 4 extern int fallocate64 (int __fd, int __mode, __off64_t __offset, __off64_t __len); extern int name_to_handle_at (int __dfd, const char *__name, struct file_handle *__handle, int *__mnt_id, int __flags) noexcept (true); extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, int __flags); } # 62 "/usr/include/x86_64-linux-gnu/bits/fcntl.h" 2 3 4 # 36 "/usr/include/fcntl.h" 2 3 4 # 78 "/usr/include/fcntl.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/stat.h" 1 3 4 # 79 "/usr/include/fcntl.h" 2 3 4 # 149 "/usr/include/fcntl.h" 3 4 extern int fcntl (int __fd, int __cmd, ...); # 158 "/usr/include/fcntl.h" 3 4 extern int fcntl64 (int __fd, int __cmd, ...); # 181 "/usr/include/fcntl.h" 3 4 extern int open (const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); # 191 "/usr/include/fcntl.h" 3 4 extern int open64 (const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (1))); # 205 "/usr/include/fcntl.h" 3 4 extern int openat (int __fd, const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (2))); # 216 "/usr/include/fcntl.h" 3 4 extern int openat64 (int __fd, const char *__file, int __oflag, ...) __attribute__ ((__nonnull__ (2))); # 227 "/usr/include/fcntl.h" 3 4 extern int creat (const char *__file, mode_t __mode) __attribute__ ((__nonnull__ (1))); # 237 "/usr/include/fcntl.h" 3 4 extern int creat64 (const char *__file, mode_t __mode) __attribute__ ((__nonnull__ (1))); # 273 "/usr/include/fcntl.h" 3 4 extern int posix_fadvise (int __fd, off_t __offset, off_t __len, int __advise) noexcept (true); # 285 "/usr/include/fcntl.h" 3 4 extern int posix_fadvise64 (int __fd, off64_t __offset, off64_t __len, int __advise) noexcept (true); # 295 "/usr/include/fcntl.h" 3 4 extern int posix_fallocate (int __fd, off_t __offset, off_t __len); # 306 "/usr/include/fcntl.h" 3 4 extern int posix_fallocate64 (int __fd, off64_t __offset, off64_t __len); # 317 "/usr/include/fcntl.h" 3 4 } # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/eventfd.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/sys/eventfd.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/eventfd.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/eventfd.h" 3 4 enum { EFD_SEMAPHORE = 00000001, EFD_CLOEXEC = 02000000, EFD_NONBLOCK = 00004000 }; # 25 "/usr/include/x86_64-linux-gnu/sys/eventfd.h" 2 3 4 typedef uint64_t eventfd_t; extern "C" { extern int eventfd (unsigned int __count, int __flags) noexcept (true); extern int eventfd_read (int __fd, eventfd_t *__value); extern int eventfd_write (int __fd, eventfd_t __value); } # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/eventfd_select_interrupter.hpp" 1 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { eventfd_select_interrupter::eventfd_select_interrupter() { open_descriptors(); } void eventfd_select_interrupter::open_descriptors() { # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 3 4 write_descriptor_ = read_descriptor_ = ::eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); if (read_descriptor_ == -1 && (*__errno_location ()) == 22) { write_descriptor_ = read_descriptor_ = ::eventfd(0, 0); if (read_descriptor_ != -1) { ::fcntl(read_descriptor_, 4, 04000); ::fcntl(read_descriptor_, 2, 1); } } if (read_descriptor_ == -1) { int pipe_fds[2]; if (pipe(pipe_fds) == 0) { read_descriptor_ = pipe_fds[0]; ::fcntl(read_descriptor_, 4, 04000); ::fcntl(read_descriptor_, 2, 1); write_descriptor_ = pipe_fds[1]; ::fcntl(write_descriptor_, 4, 04000); ::fcntl(write_descriptor_, 2, 1); } else { boost::system::error_code ec((*__errno_location ()), boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "eventfd_select_interrupter"); } } } eventfd_select_interrupter::~eventfd_select_interrupter() { close_descriptors(); } void eventfd_select_interrupter::close_descriptors() { if (write_descriptor_ != -1 && write_descriptor_ != read_descriptor_) ::close(write_descriptor_); if (read_descriptor_ != -1) ::close(read_descriptor_); } void eventfd_select_interrupter::recreate() { close_descriptors(); write_descriptor_ = -1; read_descriptor_ = -1; open_descriptors(); } void eventfd_select_interrupter::interrupt() { uint64_t counter(1UL); int result = ::write(write_descriptor_, &counter, sizeof(uint64_t)); (void)result; } bool eventfd_select_interrupter::reset() { if (write_descriptor_ == read_descriptor_) { for (;;) { uint64_t counter(0); (*__errno_location ()) = 0; int bytes_read = ::read(read_descriptor_, &counter, sizeof(uint64_t)); if (bytes_read < 0 && (*__errno_location ()) == 4) continue; return true; } } else { for (;;) { char data[1024]; int bytes_read = ::read(read_descriptor_, data, sizeof(data)); if (bytes_read == sizeof(data)) continue; if (bytes_read > 0) return true; if (bytes_read == 0) return false; if ((*__errno_location ()) == 4) continue; if ((*__errno_location ()) == 11) return true; if ((*__errno_location ()) == 11) return true; return false; } } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 170 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/eventfd_select_interrupter.ipp" 2 3 4 # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/eventfd_select_interrupter.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/select_interrupter.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { typedef eventfd_select_interrupter select_interrupter; } } } # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/ioctl.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/sys/ioctl.h" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/ioctls.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/ioctls.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/ioctls.h" 1 3 4 # 1 "/usr/include/asm-generic/ioctls.h" 1 3 4 # 1 "/usr/include/linux/ioctl.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/ioctl.h" 1 3 4 # 1 "/usr/include/asm-generic/ioctl.h" 1 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/ioctl.h" 2 3 4 # 6 "/usr/include/linux/ioctl.h" 2 3 4 # 6 "/usr/include/asm-generic/ioctls.h" 2 3 4 # 2 "/usr/include/x86_64-linux-gnu/asm/ioctls.h" 2 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/ioctls.h" 2 3 4 # 27 "/usr/include/x86_64-linux-gnu/sys/ioctl.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/ioctl-types.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/ioctl-types.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/asm/ioctls.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/ioctl-types.h" 2 3 4 struct winsize { unsigned short int ws_row; unsigned short int ws_col; unsigned short int ws_xpixel; unsigned short int ws_ypixel; }; struct termio { unsigned short int c_iflag; unsigned short int c_oflag; unsigned short int c_cflag; unsigned short int c_lflag; unsigned char c_line; unsigned char c_cc[8]; }; # 30 "/usr/include/x86_64-linux-gnu/sys/ioctl.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/ttydefaults.h" 1 3 4 # 37 "/usr/include/x86_64-linux-gnu/sys/ioctl.h" 2 3 4 extern int ioctl (int __fd, unsigned long int __request, ...) noexcept (true); # 53 "/usr/include/x86_64-linux-gnu/sys/ioctl.h" 3 4 } # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/usr/include/poll.h" 1 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/poll.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/sys/poll.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/poll.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/sys/poll.h" 2 3 4 typedef unsigned long int nfds_t; struct pollfd { int fd; short int events; short int revents; }; extern "C" { # 54 "/usr/include/x86_64-linux-gnu/sys/poll.h" 3 4 extern int poll (struct pollfd *__fds, nfds_t __nfds, int __timeout) __attribute__ ((__access__ (__write_only__, 1, 2))); # 64 "/usr/include/x86_64-linux-gnu/sys/poll.h" 3 4 extern int ppoll (struct pollfd *__fds, nfds_t __nfds, const struct timespec *__timeout, const __sigset_t *__ss) __attribute__ ((__access__ (__write_only__, 1, 2))); # 82 "/usr/include/x86_64-linux-gnu/sys/poll.h" 3 4 } # 2 "/usr/include/poll.h" 2 3 4 # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/uio.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern "C" { # 41 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t readv (int __fd, const struct iovec *__iovec, int __count) __attribute__ ((__access__ (__read_only__, 2, 3))); # 52 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t writev (int __fd, const struct iovec *__iovec, int __count) __attribute__ ((__access__ (__read_only__, 2, 3))); # 67 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t preadv (int __fd, const struct iovec *__iovec, int __count, __off_t __offset) __attribute__ ((__access__ (__read_only__, 2, 3))); # 80 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t pwritev (int __fd, const struct iovec *__iovec, int __count, __off_t __offset) __attribute__ ((__access__ (__read_only__, 2, 3))); # 110 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t preadv64 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __attribute__ ((__access__ (__read_only__, 2, 3))); # 123 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t pwritev64 (int __fd, const struct iovec *__iovec, int __count, __off64_t __offset) __attribute__ ((__access__ (__read_only__, 2, 3))); extern ssize_t preadv2 (int __fp, const struct iovec *__iovec, int __count, __off_t __offset, int ___flags) __attribute__ ((__access__ (__read_only__, 2, 3))); extern ssize_t pwritev2 (int __fd, const struct iovec *__iodev, int __count, __off_t __offset, int __flags) ; # 161 "/usr/include/x86_64-linux-gnu/sys/uio.h" 3 4 extern ssize_t preadv64v2 (int __fp, const struct iovec *__iovec, int __count, __off64_t __offset, int ___flags) __attribute__ ((__access__ (__read_only__, 2, 3))); extern ssize_t pwritev64v2 (int __fd, const struct iovec *__iodev, int __count, __off64_t __offset, int __flags) __attribute__ ((__access__ (__read_only__, 2, 3))); } # 1 "/usr/include/x86_64-linux-gnu/bits/uio-ext.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/uio-ext.h" 3 4 extern "C" { extern ssize_t process_vm_readv (pid_t __pid, const struct iovec *__lvec, unsigned long int __liovcnt, const struct iovec *__rvec, unsigned long int __riovcnt, unsigned long int __flags) noexcept (true); extern ssize_t process_vm_writev (pid_t __pid, const struct iovec *__lvec, unsigned long int __liovcnt, const struct iovec *__rvec, unsigned long int __riovcnt, unsigned long int __flags) noexcept (true); # 51 "/usr/include/x86_64-linux-gnu/bits/uio-ext.h" 3 4 } # 180 "/usr/include/x86_64-linux-gnu/sys/uio.h" 2 3 4 # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/un.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/sys/un.h" 3 4 extern "C" { struct sockaddr_un { sa_family_t sun_family; char sun_path[108]; }; # 44 "/usr/include/x86_64-linux-gnu/sys/un.h" 3 4 } # 80 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/usr/include/netinet/tcp.h" 1 3 4 # 93 "/usr/include/netinet/tcp.h" 3 4 typedef uint32_t tcp_seq; struct tcphdr { __extension__ union { struct { uint16_t th_sport; uint16_t th_dport; tcp_seq th_seq; tcp_seq th_ack; uint8_t th_x2:4; uint8_t th_off:4; uint8_t th_flags; uint16_t th_win; uint16_t th_sum; uint16_t th_urp; }; struct { uint16_t source; uint16_t dest; uint32_t seq; uint32_t ack_seq; uint16_t res1:4; uint16_t doff:4; uint16_t fin:1; uint16_t syn:1; uint16_t rst:1; uint16_t psh:1; uint16_t ack:1; uint16_t urg:1; uint16_t res2:2; # 156 "/usr/include/netinet/tcp.h" 3 4 uint16_t window; uint16_t check; uint16_t urg_ptr; }; }; }; enum { TCP_ESTABLISHED = 1, TCP_SYN_SENT, TCP_SYN_RECV, TCP_FIN_WAIT1, TCP_FIN_WAIT2, TCP_TIME_WAIT, TCP_CLOSE, TCP_CLOSE_WAIT, TCP_LAST_ACK, TCP_LISTEN, TCP_CLOSING }; # 217 "/usr/include/netinet/tcp.h" 3 4 enum tcp_ca_state { TCP_CA_Open = 0, TCP_CA_Disorder = 1, TCP_CA_CWR = 2, TCP_CA_Recovery = 3, TCP_CA_Loss = 4 }; struct tcp_info { uint8_t tcpi_state; uint8_t tcpi_ca_state; uint8_t tcpi_retransmits; uint8_t tcpi_probes; uint8_t tcpi_backoff; uint8_t tcpi_options; uint8_t tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4; uint32_t tcpi_rto; uint32_t tcpi_ato; uint32_t tcpi_snd_mss; uint32_t tcpi_rcv_mss; uint32_t tcpi_unacked; uint32_t tcpi_sacked; uint32_t tcpi_lost; uint32_t tcpi_retrans; uint32_t tcpi_fackets; uint32_t tcpi_last_data_sent; uint32_t tcpi_last_ack_sent; uint32_t tcpi_last_data_recv; uint32_t tcpi_last_ack_recv; uint32_t tcpi_pmtu; uint32_t tcpi_rcv_ssthresh; uint32_t tcpi_rtt; uint32_t tcpi_rttvar; uint32_t tcpi_snd_ssthresh; uint32_t tcpi_snd_cwnd; uint32_t tcpi_advmss; uint32_t tcpi_reordering; uint32_t tcpi_rcv_rtt; uint32_t tcpi_rcv_space; uint32_t tcpi_total_retrans; }; # 276 "/usr/include/netinet/tcp.h" 3 4 struct tcp_md5sig { struct sockaddr_storage tcpm_addr; uint8_t tcpm_flags; uint8_t tcpm_prefixlen; uint16_t tcpm_keylen; uint32_t __tcpm_pad; uint8_t tcpm_key[80]; }; struct tcp_repair_opt { uint32_t opt_code; uint32_t opt_val; }; enum { TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR, }; # 319 "/usr/include/netinet/tcp.h" 3 4 struct tcp_cookie_transactions { uint16_t tcpct_flags; uint8_t __tcpct_pad1; uint8_t tcpct_cookie_desired; uint16_t tcpct_s_data_desired; uint16_t tcpct_used; uint8_t tcpct_value[536U]; }; struct tcp_repair_window { uint32_t snd_wl1; uint32_t snd_wnd; uint32_t max_window; uint32_t rcv_wnd; uint32_t rcv_wup; }; struct tcp_zerocopy_receive { uint64_t address; uint32_t length; uint32_t recv_skip_hint; }; # 83 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/usr/include/arpa/inet.h" 1 3 4 # 30 "/usr/include/arpa/inet.h" 3 4 extern "C" { extern in_addr_t inet_addr (const char *__cp) noexcept (true); extern in_addr_t inet_lnaof (struct in_addr __in) noexcept (true); extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host) noexcept (true); extern in_addr_t inet_netof (struct in_addr __in) noexcept (true); extern in_addr_t inet_network (const char *__cp) noexcept (true); extern char *inet_ntoa (struct in_addr __in) noexcept (true); extern int inet_pton (int __af, const char *__restrict __cp, void *__restrict __buf) noexcept (true); extern const char *inet_ntop (int __af, const void *__restrict __cp, char *__restrict __buf, socklen_t __len) noexcept (true); extern int inet_aton (const char *__cp, struct in_addr *__inp) noexcept (true); extern char *inet_neta (in_addr_t __net, char *__buf, size_t __len) noexcept (true) __attribute__ ((__deprecated__ ("Use inet_ntop instead"))); extern char *inet_net_ntop (int __af, const void *__cp, int __bits, char *__buf, size_t __len) noexcept (true); extern int inet_net_pton (int __af, const char *__cp, void *__buf, size_t __len) noexcept (true); extern unsigned int inet_nsap_addr (const char *__cp, unsigned char *__buf, int __len) noexcept (true); extern char *inet_nsap_ntoa (int __len, const unsigned char *__cp, char *__buf) noexcept (true); } # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/usr/include/net/if.h" 1 3 4 # 33 "/usr/include/net/if.h" 3 4 struct if_nameindex { unsigned int if_index; char *if_name; }; enum { IFF_UP = 0x1, IFF_BROADCAST = 0x2, IFF_DEBUG = 0x4, IFF_LOOPBACK = 0x8, IFF_POINTOPOINT = 0x10, IFF_NOTRAILERS = 0x20, IFF_RUNNING = 0x40, IFF_NOARP = 0x80, IFF_PROMISC = 0x100, IFF_ALLMULTI = 0x200, IFF_MASTER = 0x400, IFF_SLAVE = 0x800, IFF_MULTICAST = 0x1000, IFF_PORTSEL = 0x2000, IFF_AUTOMEDIA = 0x4000, IFF_DYNAMIC = 0x8000 }; struct ifaddr { struct sockaddr ifa_addr; union { struct sockaddr ifu_broadaddr; struct sockaddr ifu_dstaddr; } ifa_ifu; struct iface *ifa_ifp; struct ifaddr *ifa_next; }; # 111 "/usr/include/net/if.h" 3 4 struct ifmap { unsigned long int mem_start; unsigned long int mem_end; unsigned short int base_addr; unsigned char irq; unsigned char dma; unsigned char port; }; struct ifreq { union { char ifrn_name[16]; } ifr_ifrn; union { struct sockaddr ifru_addr; struct sockaddr ifru_dstaddr; struct sockaddr ifru_broadaddr; struct sockaddr ifru_netmask; struct sockaddr ifru_hwaddr; short int ifru_flags; int ifru_ivalue; int ifru_mtu; struct ifmap ifru_map; char ifru_slave[16]; char ifru_newname[16]; __caddr_t ifru_data; } ifr_ifru; }; # 176 "/usr/include/net/if.h" 3 4 struct ifconf { int ifc_len; union { __caddr_t ifcu_buf; struct ifreq *ifcu_req; } ifc_ifcu; }; extern "C" { extern unsigned int if_nametoindex (const char *__ifname) noexcept (true); extern char *if_indextoname (unsigned int __ifindex, char __ifname[16]) noexcept (true) __attribute__ ((__access__ (__write_only__, 2))); extern struct if_nameindex *if_nameindex (void) noexcept (true); extern void if_freenameindex (struct if_nameindex *__ptr) noexcept (true); } # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { # 297 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 3 4 typedef int socket_type; const int invalid_socket = -1; const int socket_error_retval = -1; const int max_addr_v4_str_len = 16; const int max_addr_v6_str_len = 46 + 1 + 16; typedef sockaddr socket_addr_type; typedef in_addr in4_addr_type; # 316 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 3 4 typedef ip_mreq in4_mreq_type; typedef sockaddr_in sockaddr_in4_type; typedef in6_addr in6_addr_type; typedef ipv6_mreq in6_mreq_type; typedef sockaddr_in6 sockaddr_in6_type; typedef sockaddr_storage sockaddr_storage_type; typedef sockaddr_un sockaddr_un_type; typedef addrinfo addrinfo_type; typedef ::linger linger_type; typedef int ioctl_arg_type; typedef uint32_t u_long_type; typedef uint16_t u_short_type; typedef ssize_t signed_size_type; # 410 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 3 4 const int max_iov_len = 1024; # 419 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 3 4 const int custom_socket_option_level = 0xA5100000; const int enable_connection_aborted_option = 1; const int always_fail_option = 2; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 428 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_types.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_base.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_base.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class timer_queue_base : private noncopyable { public: timer_queue_base() : next_(0) {} virtual ~timer_queue_base() {} virtual bool empty() const = 0; virtual long wait_duration_msec(long max_duration) const = 0; virtual long wait_duration_usec(long max_duration) const = 0; virtual void get_ready_timers(op_queue<operation>& ops) = 0; virtual void get_all_timers(op_queue<operation>& ops) = 0; private: friend class timer_queue_set; timer_queue_base* next_; }; template <typename Time_Traits> class timer_queue; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_base.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_set.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_set.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_set.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class timer_queue_set { public: inline timer_queue_set(); inline void insert(timer_queue_base* q); inline void erase(timer_queue_base* q); inline bool all_empty() const; inline long wait_duration_msec(long max_duration) const; inline long wait_duration_usec(long max_duration) const; inline void get_ready_timers(op_queue<operation>& ops); inline void get_all_timers(op_queue<operation>& ops); private: timer_queue_base* first_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_set.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_set.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_set.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_set.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_set.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_set.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { timer_queue_set::timer_queue_set() : first_(0) { } void timer_queue_set::insert(timer_queue_base* q) { q->next_ = first_; first_ = q; } void timer_queue_set::erase(timer_queue_base* q) { if (first_) { if (q == first_) { first_ = q->next_; q->next_ = 0; return; } for (timer_queue_base* p = first_; p->next_; p = p->next_) { if (p->next_ == q) { p->next_ = q->next_; q->next_ = 0; return; } } } } bool timer_queue_set::all_empty() const { for (timer_queue_base* p = first_; p; p = p->next_) if (!p->empty()) return false; return true; } long timer_queue_set::wait_duration_msec(long max_duration) const { long min_duration = max_duration; for (timer_queue_base* p = first_; p; p = p->next_) min_duration = p->wait_duration_msec(min_duration); return min_duration; } long timer_queue_set::wait_duration_usec(long max_duration) const { long min_duration = max_duration; for (timer_queue_base* p = first_; p; p = p->next_) min_duration = p->wait_duration_usec(min_duration); return min_duration; } void timer_queue_set::get_ready_timers(op_queue<operation>& ops) { for (timer_queue_base* p = first_; p; p = p->next_) p->get_ready_timers(ops); } void timer_queue_set::get_all_timers(op_queue<operation>& ops) { for (timer_queue_base* p = first_; p; p = p->next_) p->get_all_timers(ops); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_set.ipp" 2 3 4 # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_set.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_op.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class wait_op : public operation { public: boost::system::error_code ec_; void* cancellation_key_; protected: wait_op(func_type func) : operation(func), cancellation_key_(0) { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_op.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/timerfd.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/sys/timerfd.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/timerfd.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/timerfd.h" 3 4 enum { TFD_CLOEXEC = 02000000, TFD_NONBLOCK = 00004000 }; # 26 "/usr/include/x86_64-linux-gnu/sys/timerfd.h" 2 3 4 enum { TFD_TIMER_ABSTIME = 1 << 0, TFD_TIMER_CANCEL_ON_SET = 1 << 1 }; extern "C" { extern int timerfd_create (__clockid_t __clock_id, int __flags) noexcept (true); extern int timerfd_settime (int __ufd, int __flags, const struct itimerspec *__utmr, struct itimerspec *__otmr) noexcept (true); # 63 "/usr/include/x86_64-linux-gnu/sys/timerfd.h" 3 4 extern int timerfd_gettime (int __ufd, struct itimerspec *__otmr) noexcept (true); # 75 "/usr/include/x86_64-linux-gnu/sys/timerfd.h" 3 4 } # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class epoll_reactor : public execution_context_service_base<epoll_reactor>, public scheduler_task { private: typedef conditionally_enabled_mutex mutex; public: enum op_types { read_op = 0, write_op = 1, connect_op = 1, except_op = 2, max_ops = 3 }; class descriptor_state : operation { friend class epoll_reactor; friend class object_pool_access; descriptor_state* next_; descriptor_state* prev_; mutex mutex_; epoll_reactor* reactor_; int descriptor_; uint32_t registered_events_; op_queue<reactor_op> op_queue_[max_ops]; bool try_speculative_[max_ops]; bool shutdown_; inline descriptor_state(bool locking); void set_ready_events(uint32_t events) { task_result_ = events; } void add_ready_events(uint32_t events) { task_result_ |= events; } inline operation* perform_io(uint32_t events); inline static void do_complete( void* owner, operation* base, const boost::system::error_code& ec, std::size_t bytes_transferred); }; typedef descriptor_state* per_descriptor_data; inline epoll_reactor(boost::asio::execution_context& ctx); inline ~epoll_reactor(); inline void shutdown(); inline void notify_fork( boost::asio::execution_context::fork_event fork_ev); inline void init_task(); inline int register_descriptor(socket_type descriptor, per_descriptor_data& descriptor_data); inline int register_internal_descriptor( int op_type, socket_type descriptor, per_descriptor_data& descriptor_data, reactor_op* op); inline void move_descriptor(socket_type descriptor, per_descriptor_data& target_descriptor_data, per_descriptor_data& source_descriptor_data); void post_immediate_completion(operation* op, bool is_continuation) const; inline static void call_post_immediate_completion( operation* op, bool is_continuation, const void* self); inline void start_op(int op_type, socket_type descriptor, per_descriptor_data& descriptor_data, reactor_op* op, bool is_continuation, bool allow_speculative, void (*on_immediate)(operation*, bool, const void*), const void* immediate_arg); void start_op(int op_type, socket_type descriptor, per_descriptor_data& descriptor_data, reactor_op* op, bool is_continuation, bool allow_speculative) { start_op(op_type, descriptor, descriptor_data, op, is_continuation, allow_speculative, &epoll_reactor::call_post_immediate_completion, this); } inline void cancel_ops(socket_type descriptor, per_descriptor_data& descriptor_data); inline void cancel_ops_by_key(socket_type descriptor, per_descriptor_data& descriptor_data, int op_type, void* cancellation_key); inline void deregister_descriptor(socket_type descriptor, per_descriptor_data& descriptor_data, bool closing); inline void deregister_internal_descriptor( socket_type descriptor, per_descriptor_data& descriptor_data); inline void cleanup_descriptor_data( per_descriptor_data& descriptor_data); template <typename Time_Traits> void add_timer_queue(timer_queue<Time_Traits>& timer_queue); template <typename Time_Traits> void remove_timer_queue(timer_queue<Time_Traits>& timer_queue); template <typename Time_Traits> void schedule_timer(timer_queue<Time_Traits>& queue, const typename Time_Traits::time_type& time, typename timer_queue<Time_Traits>::per_timer_data& timer, wait_op* op); template <typename Time_Traits> std::size_t cancel_timer(timer_queue<Time_Traits>& queue, typename timer_queue<Time_Traits>::per_timer_data& timer, std::size_t max_cancelled = (std::numeric_limits<std::size_t>::max)()); template <typename Time_Traits> void cancel_timer_by_key(timer_queue<Time_Traits>& queue, typename timer_queue<Time_Traits>::per_timer_data* timer, void* cancellation_key); template <typename Time_Traits> void move_timer(timer_queue<Time_Traits>& queue, typename timer_queue<Time_Traits>::per_timer_data& target, typename timer_queue<Time_Traits>::per_timer_data& source); inline void run(long usec, op_queue<operation>& ops); inline void interrupt(); private: enum { epoll_size = 20000 }; inline static int do_epoll_create(); inline static int do_timerfd_create(); inline descriptor_state* allocate_descriptor_state(); inline void free_descriptor_state(descriptor_state* s); inline void do_add_timer_queue(timer_queue_base& queue); inline void do_remove_timer_queue(timer_queue_base& queue); inline void update_timeout(); inline int get_timeout(int msec); inline int get_timeout(itimerspec& ts); scheduler& scheduler_; mutex mutex_; select_interrupter interrupter_; int epoll_fd_; int timer_fd_; timer_queue_set timer_queues_; bool shutdown_; mutex registered_descriptors_mutex_; object_pool<descriptor_state> registered_descriptors_; struct perform_io_cleanup_on_block_exit; friend struct perform_io_cleanup_on_block_exit; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 289 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { inline void epoll_reactor::post_immediate_completion( operation* op, bool is_continuation) const { scheduler_.post_immediate_completion(op, is_continuation); } template <typename Time_Traits> void epoll_reactor::add_timer_queue(timer_queue<Time_Traits>& queue) { do_add_timer_queue(queue); } template <typename Time_Traits> void epoll_reactor::remove_timer_queue(timer_queue<Time_Traits>& queue) { do_remove_timer_queue(queue); } template <typename Time_Traits> void epoll_reactor::schedule_timer(timer_queue<Time_Traits>& queue, const typename Time_Traits::time_type& time, typename timer_queue<Time_Traits>::per_timer_data& timer, wait_op* op) { mutex::scoped_lock lock(mutex_); if (shutdown_) { scheduler_.post_immediate_completion(op, false); return; } bool earliest = queue.enqueue_timer(time, timer, op); scheduler_.work_started(); if (earliest) update_timeout(); } template <typename Time_Traits> std::size_t epoll_reactor::cancel_timer(timer_queue<Time_Traits>& queue, typename timer_queue<Time_Traits>::per_timer_data& timer, std::size_t max_cancelled) { mutex::scoped_lock lock(mutex_); op_queue<operation> ops; std::size_t n = queue.cancel_timer(timer, ops, max_cancelled); lock.unlock(); scheduler_.post_deferred_completions(ops); return n; } template <typename Time_Traits> void epoll_reactor::cancel_timer_by_key(timer_queue<Time_Traits>& queue, typename timer_queue<Time_Traits>::per_timer_data* timer, void* cancellation_key) { mutex::scoped_lock lock(mutex_); op_queue<operation> ops; queue.cancel_timer_by_key(timer, ops, cancellation_key); lock.unlock(); scheduler_.post_deferred_completions(ops); } template <typename Time_Traits> void epoll_reactor::move_timer(timer_queue<Time_Traits>& queue, typename timer_queue<Time_Traits>::per_timer_data& target, typename timer_queue<Time_Traits>::per_timer_data& source) { mutex::scoped_lock lock(mutex_); op_queue<operation> ops; queue.cancel_timer(target, ops); queue.move_timer(target, source); lock.unlock(); scheduler_.post_deferred_completions(ops); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 108 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.hpp" 2 3 4 # 291 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 3 4 # 1 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 1 3 4 # 28 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/epoll.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/epoll.h" 3 4 enum { EPOLL_CLOEXEC = 02000000 }; # 29 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 2 3 4 enum EPOLL_EVENTS { EPOLLIN = 0x001, EPOLLPRI = 0x002, EPOLLOUT = 0x004, EPOLLRDNORM = 0x040, EPOLLRDBAND = 0x080, EPOLLWRNORM = 0x100, EPOLLWRBAND = 0x200, EPOLLMSG = 0x400, EPOLLERR = 0x008, EPOLLHUP = 0x010, EPOLLRDHUP = 0x2000, EPOLLEXCLUSIVE = 1u << 28, EPOLLWAKEUP = 1u << 29, EPOLLONESHOT = 1u << 30, EPOLLET = 1u << 31 }; # 76 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 3 4 typedef union epoll_data { void *ptr; int fd; uint32_t u32; uint64_t u64; } epoll_data_t; struct epoll_event { uint32_t events; epoll_data_t data; } __attribute__ ((__packed__)); extern "C" { extern int epoll_create (int __size) noexcept (true); extern int epoll_create1 (int __flags) noexcept (true); # 110 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 3 4 extern int epoll_ctl (int __epfd, int __op, int __fd, struct epoll_event *__event) noexcept (true); # 124 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 3 4 extern int epoll_wait (int __epfd, struct epoll_event *__events, int __maxevents, int __timeout); extern int epoll_pwait (int __epfd, struct epoll_event *__events, int __maxevents, int __timeout, const __sigset_t *__ss); extern int epoll_pwait2 (int __epfd, struct epoll_event *__events, int __maxevents, const struct timespec *__timeout, const __sigset_t *__ss); # 157 "/usr/include/x86_64-linux-gnu/sys/epoll.h" 3 4 } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { epoll_reactor::epoll_reactor(boost::asio::execution_context& ctx) : execution_context_service_base<epoll_reactor>(ctx), scheduler_(use_service<scheduler>(ctx)), mutex_((((static_cast<unsigned>(scheduler_.concurrency_hint()) & (0xFFFF0000u | 0x2u)) ^ 0xA5100000u) != 0) ), interrupter_(), epoll_fd_(do_epoll_create()), timer_fd_(do_timerfd_create()), shutdown_(false), registered_descriptors_mutex_(mutex_.enabled()) { epoll_event ev = { 0, { 0 } }; ev.events = EPOLLIN | EPOLLERR | EPOLLET; ev.data.ptr = &interrupter_; epoll_ctl(epoll_fd_, 1, interrupter_.read_descriptor(), &ev); interrupter_.interrupt(); if (timer_fd_ != -1) { ev.events = EPOLLIN | EPOLLERR; ev.data.ptr = &timer_fd_; epoll_ctl(epoll_fd_, 1, timer_fd_, &ev); } } epoll_reactor::~epoll_reactor() { if (epoll_fd_ != -1) close(epoll_fd_); if (timer_fd_ != -1) close(timer_fd_); } void epoll_reactor::shutdown() { mutex::scoped_lock lock(mutex_); shutdown_ = true; lock.unlock(); op_queue<operation> ops; while (descriptor_state* state = registered_descriptors_.first()) { for (int i = 0; i < max_ops; ++i) ops.push(state->op_queue_[i]); state->shutdown_ = true; registered_descriptors_.free(state); } timer_queues_.get_all_timers(ops); scheduler_.abandon_operations(ops); } void epoll_reactor::notify_fork( boost::asio::execution_context::fork_event fork_ev) { if (fork_ev == boost::asio::execution_context::fork_child) { if (epoll_fd_ != -1) ::close(epoll_fd_); epoll_fd_ = -1; epoll_fd_ = do_epoll_create(); if (timer_fd_ != -1) ::close(timer_fd_); timer_fd_ = -1; timer_fd_ = do_timerfd_create(); interrupter_.recreate(); epoll_event ev = { 0, { 0 } }; ev.events = EPOLLIN | EPOLLERR | EPOLLET; ev.data.ptr = &interrupter_; epoll_ctl(epoll_fd_, 1, interrupter_.read_descriptor(), &ev); interrupter_.interrupt(); if (timer_fd_ != -1) { ev.events = EPOLLIN | EPOLLERR; ev.data.ptr = &timer_fd_; epoll_ctl(epoll_fd_, 1, timer_fd_, &ev); } update_timeout(); mutex::scoped_lock descriptors_lock(registered_descriptors_mutex_); for (descriptor_state* state = registered_descriptors_.first(); state != 0; state = state->next_) { ev.events = state->registered_events_; ev.data.ptr = state; int result = epoll_ctl(epoll_fd_, 1, state->descriptor_, &ev); if (result != 0) { boost::system::error_code ec((*__errno_location ()), boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "epoll re-registration"); } } } } void epoll_reactor::init_task() { scheduler_.init_task(); } int epoll_reactor::register_descriptor(socket_type descriptor, epoll_reactor::per_descriptor_data& descriptor_data) { descriptor_data = allocate_descriptor_state(); (void)0 ; { mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); descriptor_data->reactor_ = this; descriptor_data->descriptor_ = descriptor; descriptor_data->shutdown_ = false; for (int i = 0; i < max_ops; ++i) descriptor_data->try_speculative_[i] = true; } epoll_event ev = { 0, { 0 } }; ev.events = EPOLLIN | EPOLLERR | EPOLLHUP | EPOLLPRI | EPOLLET; descriptor_data->registered_events_ = ev.events; ev.data.ptr = descriptor_data; int result = epoll_ctl(epoll_fd_, 1, descriptor, &ev); if (result != 0) { if ((*__errno_location ()) == 1) { descriptor_data->registered_events_ = 0; return 0; } return (*__errno_location ()); } return 0; } int epoll_reactor::register_internal_descriptor( int op_type, socket_type descriptor, epoll_reactor::per_descriptor_data& descriptor_data, reactor_op* op) { descriptor_data = allocate_descriptor_state(); (void)0 ; { mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); descriptor_data->reactor_ = this; descriptor_data->descriptor_ = descriptor; descriptor_data->shutdown_ = false; descriptor_data->op_queue_[op_type].push(op); for (int i = 0; i < max_ops; ++i) descriptor_data->try_speculative_[i] = true; } epoll_event ev = { 0, { 0 } }; ev.events = EPOLLIN | EPOLLERR | EPOLLHUP | EPOLLPRI | EPOLLET; descriptor_data->registered_events_ = ev.events; ev.data.ptr = descriptor_data; int result = epoll_ctl(epoll_fd_, 1, descriptor, &ev); if (result != 0) return (*__errno_location ()); return 0; } void epoll_reactor::move_descriptor(socket_type, epoll_reactor::per_descriptor_data& target_descriptor_data, epoll_reactor::per_descriptor_data& source_descriptor_data) { target_descriptor_data = source_descriptor_data; source_descriptor_data = 0; } void epoll_reactor::call_post_immediate_completion( operation* op, bool is_continuation, const void* self) { static_cast<const epoll_reactor*>(self)->post_immediate_completion( op, is_continuation); } void epoll_reactor::start_op(int op_type, socket_type descriptor, epoll_reactor::per_descriptor_data& descriptor_data, reactor_op* op, bool is_continuation, bool allow_speculative, void (*on_immediate)(operation*, bool, const void*), const void* immediate_arg) { if (!descriptor_data) { op->ec_ = boost::asio::error::bad_descriptor; on_immediate(op, is_continuation, immediate_arg); return; } mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); if (descriptor_data->shutdown_) { on_immediate(op, is_continuation, immediate_arg); return; } if (descriptor_data->op_queue_[op_type].empty()) { if (allow_speculative && (op_type != read_op || descriptor_data->op_queue_[except_op].empty())) { if (descriptor_data->try_speculative_[op_type]) { if (reactor_op::status status = op->perform()) { if (status == reactor_op::done_and_exhausted) if (descriptor_data->registered_events_ != 0) descriptor_data->try_speculative_[op_type] = false; descriptor_lock.unlock(); on_immediate(op, is_continuation, immediate_arg); return; } } if (descriptor_data->registered_events_ == 0) { op->ec_ = boost::asio::error::operation_not_supported; on_immediate(op, is_continuation, immediate_arg); return; } if (op_type == write_op) { if ((descriptor_data->registered_events_ & EPOLLOUT) == 0) { epoll_event ev = { 0, { 0 } }; ev.events = descriptor_data->registered_events_ | EPOLLOUT; ev.data.ptr = descriptor_data; if (epoll_ctl(epoll_fd_, 3, descriptor, &ev) == 0) { descriptor_data->registered_events_ |= ev.events; } else { op->ec_ = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); on_immediate(op, is_continuation, immediate_arg); return; } } } } else if (descriptor_data->registered_events_ == 0) { op->ec_ = boost::asio::error::operation_not_supported; on_immediate(op, is_continuation, immediate_arg); return; } else { if (op_type == write_op) { descriptor_data->registered_events_ |= EPOLLOUT; } epoll_event ev = { 0, { 0 } }; ev.events = descriptor_data->registered_events_; ev.data.ptr = descriptor_data; epoll_ctl(epoll_fd_, 3, descriptor, &ev); } } descriptor_data->op_queue_[op_type].push(op); scheduler_.work_started(); } void epoll_reactor::cancel_ops(socket_type, epoll_reactor::per_descriptor_data& descriptor_data) { if (!descriptor_data) return; mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); op_queue<operation> ops; for (int i = 0; i < max_ops; ++i) { while (reactor_op* op = descriptor_data->op_queue_[i].front()) { op->ec_ = boost::asio::error::operation_aborted; descriptor_data->op_queue_[i].pop(); ops.push(op); } } descriptor_lock.unlock(); scheduler_.post_deferred_completions(ops); } void epoll_reactor::cancel_ops_by_key(socket_type, epoll_reactor::per_descriptor_data& descriptor_data, int op_type, void* cancellation_key) { if (!descriptor_data) return; mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); op_queue<operation> ops; op_queue<reactor_op> other_ops; while (reactor_op* op = descriptor_data->op_queue_[op_type].front()) { descriptor_data->op_queue_[op_type].pop(); if (op->cancellation_key_ == cancellation_key) { op->ec_ = boost::asio::error::operation_aborted; ops.push(op); } else other_ops.push(op); } descriptor_data->op_queue_[op_type].push(other_ops); descriptor_lock.unlock(); scheduler_.post_deferred_completions(ops); } void epoll_reactor::deregister_descriptor(socket_type descriptor, epoll_reactor::per_descriptor_data& descriptor_data, bool closing) { if (!descriptor_data) return; mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); if (!descriptor_data->shutdown_) { if (closing) { } else if (descriptor_data->registered_events_ != 0) { epoll_event ev = { 0, { 0 } }; epoll_ctl(epoll_fd_, 2, descriptor, &ev); } op_queue<operation> ops; for (int i = 0; i < max_ops; ++i) { while (reactor_op* op = descriptor_data->op_queue_[i].front()) { op->ec_ = boost::asio::error::operation_aborted; descriptor_data->op_queue_[i].pop(); ops.push(op); } } descriptor_data->descriptor_ = -1; descriptor_data->shutdown_ = true; descriptor_lock.unlock(); (void)0 ; scheduler_.post_deferred_completions(ops); } else { descriptor_data = 0; } } void epoll_reactor::deregister_internal_descriptor(socket_type descriptor, epoll_reactor::per_descriptor_data& descriptor_data) { if (!descriptor_data) return; mutex::scoped_lock descriptor_lock(descriptor_data->mutex_); if (!descriptor_data->shutdown_) { epoll_event ev = { 0, { 0 } }; epoll_ctl(epoll_fd_, 2, descriptor, &ev); op_queue<operation> ops; for (int i = 0; i < max_ops; ++i) ops.push(descriptor_data->op_queue_[i]); descriptor_data->descriptor_ = -1; descriptor_data->shutdown_ = true; descriptor_lock.unlock(); (void)0 ; } else { descriptor_data = 0; } } void epoll_reactor::cleanup_descriptor_data( per_descriptor_data& descriptor_data) { if (descriptor_data) { free_descriptor_state(descriptor_data); descriptor_data = 0; } } void epoll_reactor::run(long usec, op_queue<operation>& ops) { int timeout; if (usec == 0) timeout = 0; else { timeout = (usec < 0) ? -1 : ((usec - 1) / 1000 + 1); if (timer_fd_ == -1) { mutex::scoped_lock lock(mutex_); timeout = get_timeout(timeout); } } epoll_event events[128]; int num_events = epoll_wait(epoll_fd_, events, 128, timeout); # 543 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 3 4 bool check_timers = (timer_fd_ == -1); for (int i = 0; i < num_events; ++i) { void* ptr = events[i].data.ptr; if (ptr == &interrupter_) { if (timer_fd_ == -1) check_timers = true; } else if (ptr == &timer_fd_) { check_timers = true; } else { descriptor_state* descriptor_data = static_cast<descriptor_state*>(ptr); if (!ops.is_enqueued(descriptor_data)) { descriptor_data->set_ready_events(events[i].events); ops.push(descriptor_data); } else { descriptor_data->add_ready_events(events[i].events); } } } if (check_timers) { mutex::scoped_lock common_lock(mutex_); timer_queues_.get_ready_timers(ops); if (timer_fd_ != -1) { itimerspec new_timeout; itimerspec old_timeout; int flags = get_timeout(new_timeout); timerfd_settime(timer_fd_, flags, &new_timeout, &old_timeout); } } } void epoll_reactor::interrupt() { epoll_event ev = { 0, { 0 } }; ev.events = EPOLLIN | EPOLLERR | EPOLLET; ev.data.ptr = &interrupter_; epoll_ctl(epoll_fd_, 3, interrupter_.read_descriptor(), &ev); } int epoll_reactor::do_epoll_create() { int fd = epoll_create1(EPOLL_CLOEXEC); if (fd == -1 && ((*__errno_location ()) == 22 || (*__errno_location ()) == 38)) { fd = epoll_create(epoll_size); if (fd != -1) ::fcntl(fd, 2, 1); } if (fd == -1) { boost::system::error_code ec((*__errno_location ()), boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "epoll"); } return fd; } int epoll_reactor::do_timerfd_create() { int fd = timerfd_create(1, TFD_CLOEXEC); if (fd == -1 && (*__errno_location ()) == 22) { fd = timerfd_create(1, 0); if (fd != -1) ::fcntl(fd, 2, 1); } return fd; } epoll_reactor::descriptor_state* epoll_reactor::allocate_descriptor_state() { mutex::scoped_lock descriptors_lock(registered_descriptors_mutex_); return registered_descriptors_.alloc((((static_cast<unsigned>(scheduler_.concurrency_hint()) & (0xFFFF0000u | 0x4u)) ^ 0xA5100000u) != 0) ); } void epoll_reactor::free_descriptor_state(epoll_reactor::descriptor_state* s) { mutex::scoped_lock descriptors_lock(registered_descriptors_mutex_); registered_descriptors_.free(s); } void epoll_reactor::do_add_timer_queue(timer_queue_base& queue) { mutex::scoped_lock lock(mutex_); timer_queues_.insert(&queue); } void epoll_reactor::do_remove_timer_queue(timer_queue_base& queue) { mutex::scoped_lock lock(mutex_); timer_queues_.erase(&queue); } void epoll_reactor::update_timeout() { if (timer_fd_ != -1) { itimerspec new_timeout; itimerspec old_timeout; int flags = get_timeout(new_timeout); timerfd_settime(timer_fd_, flags, &new_timeout, &old_timeout); return; } interrupt(); } int epoll_reactor::get_timeout(int msec) { const int max_msec = 5 * 60 * 1000; return timer_queues_.wait_duration_msec( (msec < 0 || max_msec < msec) ? max_msec : msec); } int epoll_reactor::get_timeout(itimerspec& ts) { ts.it_interval.tv_sec = 0; ts.it_interval.tv_nsec = 0; long usec = timer_queues_.wait_duration_usec(5 * 60 * 1000 * 1000); ts.it_value.tv_sec = usec / 1000000; ts.it_value.tv_nsec = usec ? (usec % 1000000) * 1000 : 1; return usec ? 0 : TFD_TIMER_ABSTIME; } struct epoll_reactor::perform_io_cleanup_on_block_exit { explicit perform_io_cleanup_on_block_exit(epoll_reactor* r) : reactor_(r), first_op_(0) { } ~perform_io_cleanup_on_block_exit() { if (first_op_) { if (!ops_.empty()) reactor_->scheduler_.post_deferred_completions(ops_); } else { reactor_->scheduler_.compensating_work_started(); } } epoll_reactor* reactor_; op_queue<operation> ops_; operation* first_op_; }; epoll_reactor::descriptor_state::descriptor_state(bool locking) : operation(&epoll_reactor::descriptor_state::do_complete), mutex_(locking) { } operation* epoll_reactor::descriptor_state::perform_io(uint32_t events) { mutex_.lock(); perform_io_cleanup_on_block_exit io_cleanup(reactor_); mutex::scoped_lock descriptor_lock(mutex_, mutex::scoped_lock::adopt_lock); static const int flag[max_ops] = { EPOLLIN, EPOLLOUT, EPOLLPRI }; for (int j = max_ops - 1; j >= 0; --j) { if (events & (flag[j] | EPOLLERR | EPOLLHUP)) { try_speculative_[j] = true; while (reactor_op* op = op_queue_[j].front()) { if (reactor_op::status status = op->perform()) { op_queue_[j].pop(); io_cleanup.ops_.push(op); if (status == reactor_op::done_and_exhausted) { try_speculative_[j] = false; break; } } else break; } } } io_cleanup.first_op_ = io_cleanup.ops_.front(); io_cleanup.ops_.pop(); return io_cleanup.first_op_; } void epoll_reactor::descriptor_state::do_complete( void* owner, operation* base, const boost::system::error_code& ec, std::size_t bytes_transferred) { if (owner) { descriptor_state* descriptor_data = static_cast<descriptor_state*>(base); uint32_t events = static_cast<uint32_t>(bytes_transferred); if (operation* op = descriptor_data->perform_io(events)) { op->complete(owner, ec, 0); } } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 825 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/epoll_reactor.ipp" 2 3 4 # 293 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/epoll_reactor.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor.hpp" 3 4 namespace boost { namespace asio { namespace detail { typedef epoll_reactor reactor; # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactor.hpp" 3 4 } } } # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { class scheduler::thread_function { public: explicit thread_function(scheduler* s) : this_(s) { } void operator()() { boost::system::error_code ec; this_->run(ec); } private: scheduler* this_; }; struct scheduler::task_cleanup { ~task_cleanup() { if (this_thread_->private_outstanding_work > 0) { boost::asio::detail::increment( scheduler_->outstanding_work_, this_thread_->private_outstanding_work); } this_thread_->private_outstanding_work = 0; lock_->lock(); scheduler_->task_interrupted_ = true; scheduler_->op_queue_.push(this_thread_->private_op_queue); scheduler_->op_queue_.push(&scheduler_->task_operation_); } scheduler* scheduler_; mutex::scoped_lock* lock_; thread_info* this_thread_; }; struct scheduler::work_cleanup { ~work_cleanup() { if (this_thread_->private_outstanding_work > 1) { boost::asio::detail::increment( scheduler_->outstanding_work_, this_thread_->private_outstanding_work - 1); } else if (this_thread_->private_outstanding_work < 1) { scheduler_->work_finished(); } this_thread_->private_outstanding_work = 0; if (!this_thread_->private_op_queue.empty()) { lock_->lock(); scheduler_->op_queue_.push(this_thread_->private_op_queue); } } scheduler* scheduler_; mutex::scoped_lock* lock_; thread_info* this_thread_; }; scheduler::scheduler(boost::asio::execution_context& ctx, int concurrency_hint, bool own_thread, get_task_func_type get_task) : boost::asio::detail::execution_context_service_base<scheduler>(ctx), one_thread_(concurrency_hint == 1 || !(((static_cast<unsigned>(concurrency_hint) & (0xFFFF0000u | 0x1u)) ^ 0xA5100000u) != 0) || !(((static_cast<unsigned>(concurrency_hint) & (0xFFFF0000u | 0x4u)) ^ 0xA5100000u) != 0) ), mutex_((((static_cast<unsigned>(concurrency_hint) & (0xFFFF0000u | 0x1u)) ^ 0xA5100000u) != 0) ), task_(0), get_task_(get_task), task_interrupted_(true), outstanding_work_(0), stopped_(false), shutdown_(false), concurrency_hint_(concurrency_hint), thread_(0) { (void)0; if (own_thread) { ++outstanding_work_; boost::asio::detail::signal_blocker sb; thread_ = new boost::asio::detail::thread(thread_function(this)); } } scheduler::~scheduler() { if (thread_) { mutex::scoped_lock lock(mutex_); shutdown_ = true; stop_all_threads(lock); lock.unlock(); thread_->join(); delete thread_; } } void scheduler::shutdown() { mutex::scoped_lock lock(mutex_); shutdown_ = true; if (thread_) stop_all_threads(lock); lock.unlock(); if (thread_) { thread_->join(); delete thread_; thread_ = 0; } while (!op_queue_.empty()) { operation* o = op_queue_.front(); op_queue_.pop(); if (o != &task_operation_) o->destroy(); } task_ = 0; } void scheduler::init_task() { mutex::scoped_lock lock(mutex_); if (!shutdown_ && !task_) { task_ = get_task_(this->context()); op_queue_.push(&task_operation_); wake_one_thread_and_unlock(lock); } } std::size_t scheduler::run(boost::system::error_code& ec) { ec = boost::system::error_code(); if (outstanding_work_ == 0) { stop(); return 0; } thread_info this_thread; this_thread.private_outstanding_work = 0; thread_call_stack::context ctx(this, this_thread); mutex::scoped_lock lock(mutex_); std::size_t n = 0; for (; do_run_one(lock, this_thread, ec); lock.lock()) if (n != (std::numeric_limits<std::size_t>::max)()) ++n; return n; } std::size_t scheduler::run_one(boost::system::error_code& ec) { ec = boost::system::error_code(); if (outstanding_work_ == 0) { stop(); return 0; } thread_info this_thread; this_thread.private_outstanding_work = 0; thread_call_stack::context ctx(this, this_thread); mutex::scoped_lock lock(mutex_); return do_run_one(lock, this_thread, ec); } std::size_t scheduler::wait_one(long usec, boost::system::error_code& ec) { ec = boost::system::error_code(); if (outstanding_work_ == 0) { stop(); return 0; } thread_info this_thread; this_thread.private_outstanding_work = 0; thread_call_stack::context ctx(this, this_thread); mutex::scoped_lock lock(mutex_); return do_wait_one(lock, this_thread, usec, ec); } std::size_t scheduler::poll(boost::system::error_code& ec) { ec = boost::system::error_code(); if (outstanding_work_ == 0) { stop(); return 0; } thread_info this_thread; this_thread.private_outstanding_work = 0; thread_call_stack::context ctx(this, this_thread); mutex::scoped_lock lock(mutex_); if (one_thread_) if (thread_info* outer_info = static_cast<thread_info*>(ctx.next_by_key())) op_queue_.push(outer_info->private_op_queue); std::size_t n = 0; for (; do_poll_one(lock, this_thread, ec); lock.lock()) if (n != (std::numeric_limits<std::size_t>::max)()) ++n; return n; } std::size_t scheduler::poll_one(boost::system::error_code& ec) { ec = boost::system::error_code(); if (outstanding_work_ == 0) { stop(); return 0; } thread_info this_thread; this_thread.private_outstanding_work = 0; thread_call_stack::context ctx(this, this_thread); mutex::scoped_lock lock(mutex_); if (one_thread_) if (thread_info* outer_info = static_cast<thread_info*>(ctx.next_by_key())) op_queue_.push(outer_info->private_op_queue); return do_poll_one(lock, this_thread, ec); } void scheduler::stop() { mutex::scoped_lock lock(mutex_); stop_all_threads(lock); } bool scheduler::stopped() const { mutex::scoped_lock lock(mutex_); return stopped_; } void scheduler::restart() { mutex::scoped_lock lock(mutex_); stopped_ = false; } void scheduler::compensating_work_started() { thread_info_base* this_thread = thread_call_stack::contains(this); if (this_thread != 0) {} else { __builtin_unreachable(); }; ++static_cast<thread_info*>(this_thread)->private_outstanding_work; } bool scheduler::can_dispatch() { return thread_call_stack::contains(this) != 0; } void scheduler::capture_current_exception() { if (thread_info_base* this_thread = thread_call_stack::contains(this)) this_thread->capture_current_exception(); } void scheduler::post_immediate_completion( scheduler::operation* op, bool is_continuation) { if (one_thread_ || is_continuation) { if (thread_info_base* this_thread = thread_call_stack::contains(this)) { ++static_cast<thread_info*>(this_thread)->private_outstanding_work; static_cast<thread_info*>(this_thread)->private_op_queue.push(op); return; } } work_started(); mutex::scoped_lock lock(mutex_); op_queue_.push(op); wake_one_thread_and_unlock(lock); } void scheduler::post_immediate_completions(std::size_t n, op_queue<scheduler::operation>& ops, bool is_continuation) { if (one_thread_ || is_continuation) { if (thread_info_base* this_thread = thread_call_stack::contains(this)) { static_cast<thread_info*>(this_thread)->private_outstanding_work += static_cast<long>(n); static_cast<thread_info*>(this_thread)->private_op_queue.push(ops); return; } } increment(outstanding_work_, static_cast<long>(n)); mutex::scoped_lock lock(mutex_); op_queue_.push(ops); wake_one_thread_and_unlock(lock); } void scheduler::post_deferred_completion(scheduler::operation* op) { if (one_thread_) { if (thread_info_base* this_thread = thread_call_stack::contains(this)) { static_cast<thread_info*>(this_thread)->private_op_queue.push(op); return; } } mutex::scoped_lock lock(mutex_); op_queue_.push(op); wake_one_thread_and_unlock(lock); } void scheduler::post_deferred_completions( op_queue<scheduler::operation>& ops) { if (!ops.empty()) { if (one_thread_) { if (thread_info_base* this_thread = thread_call_stack::contains(this)) { static_cast<thread_info*>(this_thread)->private_op_queue.push(ops); return; } } mutex::scoped_lock lock(mutex_); op_queue_.push(ops); wake_one_thread_and_unlock(lock); } } void scheduler::do_dispatch( scheduler::operation* op) { work_started(); mutex::scoped_lock lock(mutex_); op_queue_.push(op); wake_one_thread_and_unlock(lock); } void scheduler::abandon_operations( op_queue<scheduler::operation>& ops) { op_queue<scheduler::operation> ops2; ops2.push(ops); } std::size_t scheduler::do_run_one(mutex::scoped_lock& lock, scheduler::thread_info& this_thread, const boost::system::error_code& ec) { while (!stopped_) { if (!op_queue_.empty()) { operation* o = op_queue_.front(); op_queue_.pop(); bool more_handlers = (!op_queue_.empty()); if (o == &task_operation_) { task_interrupted_ = more_handlers; if (more_handlers && !one_thread_) wakeup_event_.unlock_and_signal_one(lock); else lock.unlock(); task_cleanup on_exit = { this, &lock, &this_thread }; (void)on_exit; task_->run(more_handlers ? 0 : -1, this_thread.private_op_queue); } else { std::size_t task_result = o->task_result_; if (more_handlers && !one_thread_) wake_one_thread_and_unlock(lock); else lock.unlock(); work_cleanup on_exit = { this, &lock, &this_thread }; (void)on_exit; o->complete(this, ec, task_result); this_thread.rethrow_pending_exception(); return 1; } } else { wakeup_event_.clear(lock); wakeup_event_.wait(lock); } } return 0; } std::size_t scheduler::do_wait_one(mutex::scoped_lock& lock, scheduler::thread_info& this_thread, long usec, const boost::system::error_code& ec) { if (stopped_) return 0; operation* o = op_queue_.front(); if (o == 0) { wakeup_event_.clear(lock); wakeup_event_.wait_for_usec(lock, usec); usec = 0; o = op_queue_.front(); } if (o == &task_operation_) { op_queue_.pop(); bool more_handlers = (!op_queue_.empty()); task_interrupted_ = more_handlers; if (more_handlers && !one_thread_) wakeup_event_.unlock_and_signal_one(lock); else lock.unlock(); { task_cleanup on_exit = { this, &lock, &this_thread }; (void)on_exit; task_->run(more_handlers ? 0 : usec, this_thread.private_op_queue); } o = op_queue_.front(); if (o == &task_operation_) { if (!one_thread_) wakeup_event_.maybe_unlock_and_signal_one(lock); return 0; } } if (o == 0) return 0; op_queue_.pop(); bool more_handlers = (!op_queue_.empty()); std::size_t task_result = o->task_result_; if (more_handlers && !one_thread_) wake_one_thread_and_unlock(lock); else lock.unlock(); work_cleanup on_exit = { this, &lock, &this_thread }; (void)on_exit; o->complete(this, ec, task_result); this_thread.rethrow_pending_exception(); return 1; } std::size_t scheduler::do_poll_one(mutex::scoped_lock& lock, scheduler::thread_info& this_thread, const boost::system::error_code& ec) { if (stopped_) return 0; operation* o = op_queue_.front(); if (o == &task_operation_) { op_queue_.pop(); lock.unlock(); { task_cleanup c = { this, &lock, &this_thread }; (void)c; task_->run(0, this_thread.private_op_queue); } o = op_queue_.front(); if (o == &task_operation_) { wakeup_event_.maybe_unlock_and_signal_one(lock); return 0; } } if (o == 0) return 0; op_queue_.pop(); bool more_handlers = (!op_queue_.empty()); std::size_t task_result = o->task_result_; if (more_handlers && !one_thread_) wake_one_thread_and_unlock(lock); else lock.unlock(); work_cleanup on_exit = { this, &lock, &this_thread }; (void)on_exit; o->complete(this, ec, task_result); this_thread.rethrow_pending_exception(); return 1; } void scheduler::stop_all_threads( mutex::scoped_lock& lock) { stopped_ = true; wakeup_event_.signal_all(lock); if (!task_interrupted_ && task_) { task_interrupted_ = true; task_->interrupt(); } } void scheduler::wake_one_thread_and_unlock( mutex::scoped_lock& lock) { if (!wakeup_event_.maybe_unlock_and_signal_one(lock)) { if (!task_interrupted_ && task_) { task_interrupted_ = true; task_->interrupt(); } lock.unlock(); } } scheduler_task* scheduler::get_default_task(boost::asio::execution_context& ctx) { return &use_service<reactor>(ctx); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 676 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/scheduler.ipp" 2 3 4 # 241 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/scheduler.hpp" 2 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { typedef scheduler io_context_impl; struct io_context_bits { static constexpr uintptr_t blocking_never = 1; static constexpr uintptr_t relationship_continuation = 2; static constexpr uintptr_t outstanding_work_tracked = 4; static constexpr uintptr_t runtime_bits = 3; }; } # 195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 class io_context : public execution_context { private: typedef detail::io_context_impl impl_type; struct initiate_dispatch; struct initiate_post; public: template <typename Allocator, uintptr_t Bits> class basic_executor_type; template <typename Allocator, uintptr_t Bits> friend class basic_executor_type; typedef basic_executor_type<std::allocator<void>, 0> executor_type; class work; friend class work; class service; class strand; typedef std::size_t count_type; inline io_context(); # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline explicit io_context(int concurrency_hint); # 279 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline ~io_context(); executor_type get_executor() noexcept; # 309 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type run(); # 340 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type run(boost::system::error_code& ec); # 355 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Rep, typename Period> std::size_t run_for(const chrono::duration<Rep, Period>& rel_time); # 368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Clock, typename Duration> std::size_t run_until(const chrono::time_point<Clock, Duration>& abs_time); # 389 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type run_one(); # 411 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type run_one(boost::system::error_code& ec); # 426 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Rep, typename Period> std::size_t run_one_for(const chrono::duration<Rep, Period>& rel_time); # 440 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Clock, typename Duration> std::size_t run_one_until( const chrono::time_point<Clock, Duration>& abs_time); # 453 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type poll(); # 466 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type poll(boost::system::error_code& ec); # 477 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type poll_one(); # 490 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline count_type poll_one(boost::system::error_code& ec); # 500 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline void stop(); # 512 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline bool stopped() const; # 525 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline void restart(); # 540 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 void reset(); # 564 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename LegacyCompletionHandler> auto dispatch(LegacyCompletionHandler&& handler) ; # 594 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename LegacyCompletionHandler> auto post(LegacyCompletionHandler&& handler) ; # 623 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Handler> detail::wrapped_handler<io_context&, Handler> wrap(Handler handler); private: io_context(const io_context&) = delete; io_context& operator=(const io_context&) = delete; inline impl_type& add_impl(impl_type* impl); template <typename Service> friend Service& use_service(io_context& ioc); # 652 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 impl_type& impl_; }; namespace detail { } template <typename Allocator, uintptr_t Bits> class io_context::basic_executor_type : detail::io_context_bits, Allocator { public: basic_executor_type( const basic_executor_type& other) noexcept : Allocator(static_cast<const Allocator&>(other)), target_(other.target_) { if (Bits & outstanding_work_tracked) if (context_ptr()) context_ptr()->impl_.work_started(); } basic_executor_type(basic_executor_type&& other) noexcept : Allocator(static_cast<Allocator&&>(other)), target_(other.target_) { if (Bits & outstanding_work_tracked) other.target_ = 0; } ~basic_executor_type() noexcept { if (Bits & outstanding_work_tracked) if (context_ptr()) context_ptr()->impl_.work_finished(); } basic_executor_type& operator=( const basic_executor_type& other) noexcept; basic_executor_type& operator=( basic_executor_type&& other) noexcept; private: friend struct boost_asio_require_fn::impl; friend struct boost_asio_prefer_fn::impl; # 721 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type require( execution::blocking_t::possibly_t) const { return basic_executor_type(context_ptr(), *this, bits() & ~blocking_never); } # 738 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type require( execution::blocking_t::never_t) const { return basic_executor_type(context_ptr(), *this, bits() | blocking_never); } # 755 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type require( execution::relationship_t::fork_t) const { return basic_executor_type(context_ptr(), *this, bits() & ~relationship_continuation); } # 772 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type require( execution::relationship_t::continuation_t) const { return basic_executor_type(context_ptr(), *this, bits() | relationship_continuation); } # 789 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type<Allocator, Bits | outstanding_work_tracked> require(execution::outstanding_work_t::tracked_t) const { return basic_executor_type<Allocator, Bits | outstanding_work_tracked>( context_ptr(), *this, bits()); } # 807 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type<Allocator, Bits & ~outstanding_work_tracked> require(execution::outstanding_work_t::untracked_t) const { return basic_executor_type<Allocator, Bits & ~outstanding_work_tracked>( context_ptr(), *this, bits()); } # 825 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename OtherAllocator> constexpr basic_executor_type<OtherAllocator, Bits> require(execution::allocator_t<OtherAllocator> a) const { return basic_executor_type<OtherAllocator, Bits>( context_ptr(), a.value(), bits()); } # 843 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr basic_executor_type<std::allocator<void>, Bits> require(execution::allocator_t<void>) const { return basic_executor_type<std::allocator<void>, Bits>( context_ptr(), std::allocator<void>(), bits()); } private: friend struct boost_asio_query_fn::impl; friend struct boost::asio::execution::detail::mapping_t<0>; friend struct boost::asio::execution::detail::outstanding_work_t<0>; # 868 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 static constexpr execution::mapping_t query( execution::mapping_t) noexcept { return execution::mapping.thread; } # 884 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 io_context& query(execution::context_t) const noexcept { return *context_ptr(); } # 900 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr execution::blocking_t query( execution::blocking_t) const noexcept { return (bits() & blocking_never) ? execution::blocking_t(execution::blocking.never) : execution::blocking_t(execution::blocking.possibly); } # 919 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr execution::relationship_t query( execution::relationship_t) const noexcept { return (bits() & relationship_continuation) ? execution::relationship_t(execution::relationship.continuation) : execution::relationship_t(execution::relationship.fork); } # 938 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 static constexpr execution::outstanding_work_t query( execution::outstanding_work_t) noexcept { return (Bits & outstanding_work_tracked) ? execution::outstanding_work_t(execution::outstanding_work.tracked) : execution::outstanding_work_t(execution::outstanding_work.untracked); } # 956 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename OtherAllocator> constexpr Allocator query( execution::allocator_t<OtherAllocator>) const noexcept { return static_cast<const Allocator&>(*this); } # 973 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 constexpr Allocator query( execution::allocator_t<void>) const noexcept { return static_cast<const Allocator&>(*this); } public: bool running_in_this_thread() const noexcept; friend bool operator==(const basic_executor_type& a, const basic_executor_type& b) noexcept { return a.target_ == b.target_ && static_cast<const Allocator&>(a) == static_cast<const Allocator&>(b); } friend bool operator!=(const basic_executor_type& a, const basic_executor_type& b) noexcept { return a.target_ != b.target_ || static_cast<const Allocator&>(a) != static_cast<const Allocator&>(b); } template <typename Function> void execute(Function&& f) const; public: io_context& context() const noexcept; void on_work_started() const noexcept; void on_work_finished() const noexcept; # 1048 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Function, typename OtherAllocator> void dispatch(Function&& f, const OtherAllocator& a) const; # 1065 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Function, typename OtherAllocator> void post(Function&& f, const OtherAllocator& a) const; # 1086 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 template <typename Function, typename OtherAllocator> void defer(Function&& f, const OtherAllocator& a) const; private: friend class io_context; template <typename, uintptr_t> friend class basic_executor_type; explicit basic_executor_type(io_context& i) noexcept : Allocator(), target_(reinterpret_cast<uintptr_t>(&i)) { if (Bits & outstanding_work_tracked) context_ptr()->impl_.work_started(); } basic_executor_type(io_context* i, const Allocator& a, uintptr_t bits) noexcept : Allocator(a), target_(reinterpret_cast<uintptr_t>(i) | bits) { if (Bits & outstanding_work_tracked) if (context_ptr()) context_ptr()->impl_.work_started(); } io_context* context_ptr() const noexcept { return reinterpret_cast<io_context*>(target_ & ~runtime_bits); } uintptr_t bits() const noexcept { return target_ & runtime_bits; } uintptr_t target_; }; # 1141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 class io_context::work { public: explicit work(boost::asio::io_context& io_context); work(const work& other); ~work(); boost::asio::io_context& get_io_context(); private: void operator=(const work& other); detail::io_context_impl& io_context_impl_; }; class io_context::service : public execution_context::service { public: boost::asio::io_context& get_io_context(); private: inline virtual void shutdown(); inline virtual void shutdown_service(); # 1204 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline virtual void notify_fork( execution_context::fork_event event); # 1214 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 inline virtual void fork_service( execution_context::fork_event event); protected: inline service(boost::asio::io_context& owner); inline virtual ~service(); }; namespace detail { template <typename Type> class service_base : public boost::asio::io_context::service { public: static boost::asio::detail::service_id<Type> id; service_base(boost::asio::io_context& io_context) : boost::asio::io_context::service(io_context) { } }; template <typename Type> boost::asio::detail::service_id<Type> service_base<Type>::id; } namespace traits { # 1505 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 3 4 } namespace execution { template <> struct is_executor<io_context> : false_type { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1522 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/completion_handler.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/completion_handler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/fenced_block.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/fenced_block.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/std_fenced_block.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/std_fenced_block.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/std_fenced_block.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class std_fenced_block : private noncopyable { public: enum half_t { half }; enum full_t { full }; explicit std_fenced_block(half_t) { } explicit std_fenced_block(full_t) { std::atomic_thread_fence(std::memory_order_acquire); } ~std_fenced_block() { std::atomic_thread_fence(std::memory_order_release); } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/std_fenced_block.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/fenced_block.hpp" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/fenced_block.hpp" 3 4 namespace boost { namespace asio { namespace detail { typedef std_fenced_block fenced_block; # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/fenced_block.hpp" 3 4 } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/completion_handler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_executor.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_executor.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_executor.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct executor_memfns_base { void context(); void on_work_started(); void on_work_finished(); void dispatch(); void post(); void defer(); }; template <typename T> struct executor_memfns_derived : T, executor_memfns_base { }; template <typename T, T> struct executor_memfns_check { }; template <typename> char (&context_memfn_helper(...))[2]; template <typename T> char context_memfn_helper( executor_memfns_check< void (executor_memfns_base::*)(), &executor_memfns_derived<T>::context>*); template <typename> char (&on_work_started_memfn_helper(...))[2]; template <typename T> char on_work_started_memfn_helper( executor_memfns_check< void (executor_memfns_base::*)(), &executor_memfns_derived<T>::on_work_started>*); template <typename> char (&on_work_finished_memfn_helper(...))[2]; template <typename T> char on_work_finished_memfn_helper( executor_memfns_check< void (executor_memfns_base::*)(), &executor_memfns_derived<T>::on_work_finished>*); template <typename> char (&dispatch_memfn_helper(...))[2]; template <typename T> char dispatch_memfn_helper( executor_memfns_check< void (executor_memfns_base::*)(), &executor_memfns_derived<T>::dispatch>*); template <typename> char (&post_memfn_helper(...))[2]; template <typename T> char post_memfn_helper( executor_memfns_check< void (executor_memfns_base::*)(), &executor_memfns_derived<T>::post>*); template <typename> char (&defer_memfn_helper(...))[2]; template <typename T> char defer_memfn_helper( executor_memfns_check< void (executor_memfns_base::*)(), &executor_memfns_derived<T>::defer>*); template <typename T> struct is_executor_class : integral_constant<bool, sizeof(context_memfn_helper<T>(0)) != 1 && sizeof(on_work_started_memfn_helper<T>(0)) != 1 && sizeof(on_work_finished_memfn_helper<T>(0)) != 1 && sizeof(dispatch_memfn_helper<T>(0)) != 1 && sizeof(post_memfn_helper<T>(0)) != 1 && sizeof(defer_memfn_helper<T>(0)) != 1> { }; template <typename T> struct is_executor : conditional<is_class<T>::value, is_executor_class<T>, false_type>::type { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_executor.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_executor.hpp" 2 3 4 namespace boost { namespace asio { # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_executor.hpp" 3 4 template <typename T> struct is_executor : boost::asio::detail::is_executor<T> { }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_executor.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 2 3 4 namespace boost { namespace asio { class system_context; # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 template <typename Blocking, typename Relationship, typename Allocator> class basic_system_executor { public: basic_system_executor() noexcept : allocator_(Allocator()) { } private: friend struct boost_asio_require_fn::impl; friend struct boost_asio_prefer_fn::impl; # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 basic_system_executor<execution::blocking_t::possibly_t, Relationship, Allocator> require(execution::blocking_t::possibly_t) const { return basic_system_executor<execution::blocking_t::possibly_t, Relationship, Allocator>(allocator_); } # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 basic_system_executor<execution::blocking_t::always_t, Relationship, Allocator> require(execution::blocking_t::always_t) const { return basic_system_executor<execution::blocking_t::always_t, Relationship, Allocator>(allocator_); } # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 basic_system_executor<execution::blocking_t::never_t, Relationship, Allocator> require(execution::blocking_t::never_t) const { return basic_system_executor<execution::blocking_t::never_t, Relationship, Allocator>(allocator_); } # 118 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 basic_system_executor<Blocking, execution::relationship_t::continuation_t, Allocator> require(execution::relationship_t::continuation_t) const { return basic_system_executor<Blocking, execution::relationship_t::continuation_t, Allocator>(allocator_); } # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 basic_system_executor<Blocking, execution::relationship_t::fork_t, Allocator> require(execution::relationship_t::fork_t) const { return basic_system_executor<Blocking, execution::relationship_t::fork_t, Allocator>(allocator_); } # 154 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 template <typename OtherAllocator> basic_system_executor<Blocking, Relationship, OtherAllocator> require(execution::allocator_t<OtherAllocator> a) const { return basic_system_executor<Blocking, Relationship, OtherAllocator>(a.value()); } # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 basic_system_executor<Blocking, Relationship, std::allocator<void> > require(execution::allocator_t<void>) const { return basic_system_executor<Blocking, Relationship, std::allocator<void> >(); } private: friend struct boost_asio_query_fn::impl; friend struct boost::asio::execution::detail::blocking_t<0>; friend struct boost::asio::execution::detail::mapping_t<0>; friend struct boost::asio::execution::detail::outstanding_work_t<0>; friend struct boost::asio::execution::detail::relationship_t<0>; # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 static constexpr execution::mapping_t query( execution::mapping_t) noexcept { return execution::mapping.thread; } # 215 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 static system_context& query(execution::context_t) noexcept; # 228 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 static constexpr execution::blocking_t query( execution::blocking_t) noexcept { return Blocking(); } # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 static constexpr execution::relationship_t query( execution::relationship_t) noexcept { return Relationship(); } # 261 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 template <typename OtherAllocator> constexpr Allocator query( execution::allocator_t<OtherAllocator>) const noexcept { return allocator_; } # 278 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 constexpr Allocator query( execution::allocator_t<void>) const noexcept { return allocator_; } # 295 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 std::size_t query(execution::occupancy_t) const noexcept; public: friend bool operator==(const basic_system_executor&, const basic_system_executor&) noexcept { return true; } friend bool operator!=(const basic_system_executor&, const basic_system_executor&) noexcept { return false; } template <typename Function> void execute(Function&& f) const { this->do_execute(static_cast<Function&&>(f), Blocking()); } public: system_context& context() const noexcept; void on_work_started() const noexcept { } void on_work_finished() const noexcept { } # 358 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 template <typename Function, typename OtherAllocator> void dispatch(Function&& f, const OtherAllocator& a) const; # 374 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 template <typename Function, typename OtherAllocator> void post(Function&& f, const OtherAllocator& a) const; # 390 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 template <typename Function, typename OtherAllocator> void defer(Function&& f, const OtherAllocator& a) const; private: template <typename, typename, typename> friend class basic_system_executor; basic_system_executor(const Allocator& a) : allocator_(a) { } template <typename Function> void do_execute(Function&& f, execution::blocking_t::possibly_t) const; template <typename Function> void do_execute(Function&& f, execution::blocking_t::always_t) const; template <typename Function> void do_execute(Function&& f, execution::blocking_t::never_t) const; Allocator allocator_; }; # 431 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 typedef basic_system_executor<execution::blocking_t::possibly_t, execution::relationship_t::fork_t, std::allocator<void> > system_executor; namespace traits { # 662 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 670 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_op.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename Alloc, typename Operation = scheduler_operation> class executor_op : public Operation { public: struct ptr { const Alloc* a; void* v; executor_op* p; ~ptr() { reset(); } static executor_op* allocate(const Alloc& a) { typedef typename ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::type recycling_allocator_type; typename std::allocator_traits<recycling_allocator_type>::template rebind_alloc<executor_op> a1( ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::get(a)); return a1.allocate(1); } void reset() { if (p) { p->~executor_op(); p = 0; } if (v) { typedef typename ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::type recycling_allocator_type; typename std::allocator_traits<recycling_allocator_type>::template rebind_alloc<executor_op> a1( ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::get(*a)); a1.deallocate(static_cast<executor_op*>(v), 1); v = 0; } } }; template <typename H> executor_op(H&& h, const Alloc& allocator) : Operation(&executor_op::do_complete), handler_(static_cast<H&&>(h)), allocator_(allocator) { } static void do_complete(void* owner, Operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; executor_op* o(static_cast<executor_op*>(base)); Alloc allocator(o->allocator_); ptr p = { detail::addressof(allocator), o, o }; (void)0; Handler handler(static_cast<Handler&&>(o->handler_)); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; boost_asio_handler_invoke_helpers::invoke(handler, handler); (void)0; } } private: Handler handler_; Alloc allocator_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/executor_op.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/global.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/global.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_global.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_global.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_global.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> struct posix_global_impl { static void do_init() { instance_.static_ptr_ = instance_.ptr_ = new T; } ~posix_global_impl() { delete static_ptr_; } static ::pthread_once_t init_once_; static T* static_ptr_; static posix_global_impl instance_; T* ptr_; }; template <typename T> ::pthread_once_t posix_global_impl<T>::init_once_ = 0; template <typename T> T* posix_global_impl<T>::static_ptr_ = 0; template <typename T> posix_global_impl<T> posix_global_impl<T>::instance_; template <typename T> T& posix_global() { int result = ::pthread_once( &posix_global_impl<T>::init_once_, &posix_global_impl<T>::do_init); if (result != 0) std::terminate(); return *posix_global_impl<T>::instance_.ptr_; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_global.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/global.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> inline T& global() { return posix_global<T>(); } } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_group.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_group.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_group.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class thread_group { public: thread_group() : first_(0) { } ~thread_group() { join(); } template <typename Function> void create_thread(Function f) { first_ = new item(f, first_); } template <typename Function> void create_threads(Function f, std::size_t num_threads) { for (std::size_t i = 0; i < num_threads; ++i) create_thread(f); } void join() { while (first_) { first_->thread_.join(); item* tmp = first_; first_ = first_->next_; delete tmp; } } bool empty() const { return first_ == 0; } private: struct item { template <typename Function> explicit item(Function f, item* next) : thread_(f), next_(next) { } boost::asio::detail::thread thread_; item* next_; }; item* first_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/thread_group.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 2 3 4 namespace boost { namespace asio { template <typename Blocking, typename Relationship, typename Allocator> class basic_system_executor; class system_context : public execution_context { public: typedef basic_system_executor< execution::blocking_t::possibly_t, execution::relationship_t::fork_t, std::allocator<void> > executor_type; inline ~system_context(); executor_type get_executor() noexcept; inline void stop(); inline bool stopped() const noexcept; inline void join(); inline system_context(); private: template <typename, typename, typename> friend class basic_system_executor; struct thread_function; inline detail::scheduler& add_scheduler(detail::scheduler* s); detail::scheduler& scheduler_; detail::thread_group threads_; std::size_t num_threads_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.hpp" 2 3 4 namespace boost { namespace asio { inline system_context::executor_type system_context::get_executor() noexcept { return system_executor(); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.hpp" 2 3 4 # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.ipp" 2 3 4 namespace boost { namespace asio { struct system_context::thread_function { detail::scheduler* scheduler_; void operator()() { try { boost::system::error_code ec; scheduler_->run(ec); } catch (...) { std::terminate(); } } }; system_context::system_context() : scheduler_(add_scheduler(new detail::scheduler(*this, 0, false))) { scheduler_.work_started(); thread_function f = { &scheduler_ }; num_threads_ = detail::thread::hardware_concurrency() * 2; num_threads_ = num_threads_ ? num_threads_ : 2; threads_.create_threads(f, num_threads_); } system_context::~system_context() { scheduler_.work_finished(); scheduler_.stop(); threads_.join(); } void system_context::stop() { scheduler_.stop(); } bool system_context::stopped() const noexcept { return scheduler_.stopped(); } void system_context::join() { scheduler_.work_finished(); threads_.join(); } detail::scheduler& system_context::add_scheduler(detail::scheduler* s) { detail::scoped_ptr<detail::scheduler> scoped_impl(s); boost::asio::add_service<detail::scheduler>(*this, scoped_impl.get()); return *scoped_impl.release(); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_context.ipp" 2 3 4 # 90 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_context.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 2 3 4 namespace boost { namespace asio { template <typename Blocking, typename Relationship, typename Allocator> inline system_context& basic_system_executor<Blocking, Relationship, Allocator>::query( execution::context_t) noexcept { return detail::global<system_context>(); } template <typename Blocking, typename Relationship, typename Allocator> inline std::size_t basic_system_executor<Blocking, Relationship, Allocator>::query( execution::occupancy_t) const noexcept { return detail::global<system_context>().num_threads_; } template <typename Blocking, typename Relationship, typename Allocator> template <typename Function> inline void basic_system_executor<Blocking, Relationship, Allocator>::do_execute( Function&& f, execution::blocking_t::possibly_t) const { detail::non_const_lvalue<Function> f2(f); try { detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(f2.value, f2.value); } catch (...) { std::terminate(); } } template <typename Blocking, typename Relationship, typename Allocator> template <typename Function> inline void basic_system_executor<Blocking, Relationship, Allocator>::do_execute( Function&& f, execution::blocking_t::always_t) const { detail::non_const_lvalue<Function> f2(f); try { detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(f2.value, f2.value); } catch (...) { std::terminate(); } } template <typename Blocking, typename Relationship, typename Allocator> template <typename Function> void basic_system_executor<Blocking, Relationship, Allocator>::do_execute( Function&& f, execution::blocking_t::never_t) const { system_context& ctx = detail::global<system_context>(); typedef typename decay<Function>::type function_type; typedef detail::executor_op<function_type, Allocator> op; typename op::ptr p = { detail::addressof(allocator_), op::ptr::allocate(allocator_), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), allocator_); if (is_same<Relationship, execution::relationship_t::continuation_t>::value) { (void)0 ; } else { (void)0 ; } ctx.scheduler_.post_immediate_completion(p.p, is_same<Relationship, execution::relationship_t::continuation_t>::value); p.v = p.p = 0; } template <typename Blocking, typename Relationship, typename Allocator> inline system_context& basic_system_executor< Blocking, Relationship, Allocator>::context() const noexcept { return detail::global<system_context>(); } template <typename Blocking, typename Relationship, typename Allocator> template <typename Function, typename OtherAllocator> void basic_system_executor<Blocking, Relationship, Allocator>::dispatch( Function&& f, const OtherAllocator&) const { typename decay<Function>::type tmp(static_cast<Function&&>(f)); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); } template <typename Blocking, typename Relationship, typename Allocator> template <typename Function, typename OtherAllocator> void basic_system_executor<Blocking, Relationship, Allocator>::post( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; system_context& ctx = detail::global<system_context>(); typedef detail::executor_op<function_type, OtherAllocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; ctx.scheduler_.post_immediate_completion(p.p, false); p.v = p.p = 0; } template <typename Blocking, typename Relationship, typename Allocator> template <typename Function, typename OtherAllocator> void basic_system_executor<Blocking, Relationship, Allocator>::defer( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; system_context& ctx = detail::global<system_context>(); typedef detail::executor_op<function_type, OtherAllocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; ctx.scheduler_.post_immediate_completion(p.p, true); p.v = p.p = 0; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/system_executor.hpp" 2 3 4 # 672 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_executor.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 2 3 4 namespace boost { namespace asio { template <typename T, typename Executor> struct associated_executor; namespace detail { template <typename T, typename = void> struct has_executor_type : false_type { }; template <typename T> struct has_executor_type<T, typename void_type<typename T::executor_type>::type> : true_type { }; template <typename T, typename E, typename = void, typename = void> struct associated_executor_impl { typedef void asio_associated_executor_is_unspecialised; typedef E type; static type get(const T&) noexcept { return type(); } static const type& get(const T&, const E& e) noexcept { return e; } }; template <typename T, typename E> struct associated_executor_impl<T, E, typename void_type<typename T::executor_type>::type> { typedef typename T::executor_type type; static auto get( const T& t) noexcept -> decltype (t.get_executor()) { return t.get_executor(); } static auto get( const T& t, const E&) noexcept -> decltype (t.get_executor()) { return t.get_executor(); } }; template <typename T, typename E> struct associated_executor_impl<T, E, typename enable_if< !has_executor_type<T>::value >::type, typename void_type< typename associator<associated_executor, T, E>::type >::type> : associator<associated_executor, T, E> { }; } # 121 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 3 4 template <typename T, typename Executor = system_executor> struct associated_executor : detail::associated_executor_impl<T, Executor> { # 140 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 3 4 }; template <typename T> [[nodiscard]] inline typename associated_executor<T>::type get_associated_executor(const T& t) noexcept { return associated_executor<T>::get(t); } template <typename T, typename Executor> [[nodiscard]] inline auto get_associated_executor(const T& t, const Executor& ex, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) noexcept -> decltype ( associated_executor<T, Executor>::get(t, ex)) { return associated_executor<T, Executor>::get(t, ex); } template <typename T, typename ExecutionContext> [[nodiscard]] inline typename associated_executor<T, typename ExecutionContext::executor_type>::type get_associated_executor(const T& t, ExecutionContext& ctx, typename constraint<is_convertible<ExecutionContext&, execution_context&>::value>::type = 0) noexcept { return associated_executor<T, typename ExecutionContext::executor_type>::get(t, ctx.get_executor()); } template <typename T, typename Executor = system_executor> using associated_executor_t = typename associated_executor<T, Executor>::type; namespace detail { template <typename T, typename E, typename = void> struct associated_executor_forwarding_base { }; template <typename T, typename E> struct associated_executor_forwarding_base<T, E, typename enable_if< is_same< typename associated_executor<T, E>::asio_associated_executor_is_unspecialised, void >::value >::type> { typedef void asio_associated_executor_is_unspecialised; }; } template <typename T, typename Executor> struct associated_executor<reference_wrapper<T>, Executor> : detail::associated_executor_forwarding_base<T, Executor> { typedef typename associated_executor<T, Executor>::type type; static type get(reference_wrapper<T> t) noexcept { return associated_executor<T, Executor>::get(t.get()); } static auto get( reference_wrapper<T> t, const Executor& ex) noexcept -> decltype ( associated_executor<T, Executor>::get(t.get(), ex)) { return associated_executor<T, Executor>::get(t.get(), ex); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 254 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_executor.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_immediate_executor.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_immediate_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_immediate_executor.hpp" 2 3 4 namespace boost { namespace asio { template <typename T, typename Executor> struct associated_immediate_executor; namespace detail { template <typename T, typename = void> struct has_immediate_executor_type : false_type { }; template <typename T> struct has_immediate_executor_type<T, typename void_type<typename T::immediate_executor_type>::type> : true_type { }; template <typename E, typename = void, typename = void> struct default_immediate_executor { typedef typename require_result<E, execution::blocking_t::never_t>::type type; static type get(const E& e) noexcept { return boost::asio::require(e, execution::blocking.never); } }; template <typename E> struct default_immediate_executor<E, typename enable_if< !execution::is_executor<E>::value >::type, typename enable_if< is_executor<E>::value >::type> { class type : public E { public: template <typename Executor1> explicit type(const Executor1& e, typename constraint< conditional< !is_same<Executor1, type>::value, is_convertible<Executor1, E>, false_type >::type::value >::type = 0) noexcept : E(e) { } type(const type& other) noexcept : E(static_cast<const E&>(other)) { } type(type&& other) noexcept : E(static_cast<E&&>(other)) { } template <typename Function, typename Allocator> void dispatch(Function&& f, const Allocator& a) const { this->post(static_cast<Function&&>(f), a); } friend bool operator==(const type& a, const type& b) noexcept { return static_cast<const E&>(a) == static_cast<const E&>(b); } friend bool operator!=(const type& a, const type& b) noexcept { return static_cast<const E&>(a) != static_cast<const E&>(b); } }; static type get(const E& e) noexcept { return type(e); } }; template <typename T, typename E, typename = void, typename = void> struct associated_immediate_executor_impl { typedef void asio_associated_immediate_executor_is_unspecialised; typedef typename default_immediate_executor<E>::type type; static auto get( const T&, const E& e) noexcept -> decltype (default_immediate_executor<E>::get(e)) { return default_immediate_executor<E>::get(e); } }; template <typename T, typename E> struct associated_immediate_executor_impl<T, E, typename void_type<typename T::immediate_executor_type>::type> { typedef typename T::immediate_executor_type type; static auto get( const T& t, const E&) noexcept -> decltype (t.get_immediate_executor()) { return t.get_immediate_executor(); } }; template <typename T, typename E> struct associated_immediate_executor_impl<T, E, typename enable_if< !has_immediate_executor_type<T>::value >::type, typename void_type< typename associator<associated_immediate_executor, T, E>::type >::type> : associator<associated_immediate_executor, T, E> { }; } # 184 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_immediate_executor.hpp" 3 4 template <typename T, typename Executor> struct associated_immediate_executor : detail::associated_immediate_executor_impl<T, Executor> { # 200 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_immediate_executor.hpp" 3 4 }; template <typename T, typename Executor> [[nodiscard]] inline auto get_associated_immediate_executor(const T& t, const Executor& ex, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) noexcept -> decltype ( associated_immediate_executor<T, Executor>::get(t, ex)) { return associated_immediate_executor<T, Executor>::get(t, ex); } template <typename T, typename ExecutionContext> [[nodiscard]] inline typename associated_immediate_executor<T, typename ExecutionContext::executor_type>::type get_associated_immediate_executor(const T& t, ExecutionContext& ctx, typename constraint<is_convertible<ExecutionContext&, execution_context&>::value>::type = 0) noexcept { return associated_immediate_executor<T, typename ExecutionContext::executor_type>::get(t, ctx.get_executor()); } template <typename T, typename Executor> using associated_immediate_executor_t = typename associated_immediate_executor<T, Executor>::type; namespace detail { template <typename T, typename E, typename = void> struct associated_immediate_executor_forwarding_base { }; template <typename T, typename E> struct associated_immediate_executor_forwarding_base<T, E, typename enable_if< is_same< typename associated_immediate_executor<T, E>::asio_associated_immediate_executor_is_unspecialised, void >::value >::type> { typedef void asio_associated_immediate_executor_is_unspecialised; }; } template <typename T, typename Executor> struct associated_immediate_executor<reference_wrapper<T>, Executor> : detail::associated_immediate_executor_forwarding_base<T, Executor> { typedef typename associated_immediate_executor<T, Executor>::type type; static auto get( reference_wrapper<T> t, const Executor& ex) noexcept -> decltype ( associated_immediate_executor<T, Executor>::get(t.get(), ex)) { return associated_immediate_executor<T, Executor>::get(t.get(), ex); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 298 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_immediate_executor.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_dispatch.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_dispatch.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/work_dispatcher.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/work_dispatcher.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 2 3 4 namespace boost { namespace asio { template <typename Executor, typename = void, typename = void> class executor_work_guard; # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 template <typename Executor> class executor_work_guard<Executor, typename enable_if< is_executor<Executor>::value >::type> { public: typedef Executor executor_type; explicit executor_work_guard(const executor_type& e) noexcept : executor_(e), owns_(true) { executor_.on_work_started(); } executor_work_guard(const executor_work_guard& other) noexcept : executor_(other.executor_), owns_(other.owns_) { if (owns_) executor_.on_work_started(); } executor_work_guard(executor_work_guard&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)), owns_(other.owns_) { other.owns_ = false; } ~executor_work_guard() { if (owns_) executor_.on_work_finished(); } executor_type get_executor() const noexcept { return executor_; } bool owns_work() const noexcept { return owns_; } void reset() noexcept { if (owns_) { executor_.on_work_finished(); owns_ = false; } } private: executor_work_guard& operator=(const executor_work_guard&); executor_type executor_; bool owns_; }; template <typename Executor> class executor_work_guard<Executor, typename enable_if< !is_executor<Executor>::value >::type, typename enable_if< execution::is_executor<Executor>::value >::type> { public: typedef Executor executor_type; explicit executor_work_guard(const executor_type& e) noexcept : executor_(e), owns_(true) { new (&work_) work_type(boost::asio::prefer(executor_, execution::outstanding_work.tracked)); } executor_work_guard(const executor_work_guard& other) noexcept : executor_(other.executor_), owns_(other.owns_) { if (owns_) { new (&work_) work_type(boost::asio::prefer(executor_, execution::outstanding_work.tracked)); } } executor_work_guard(executor_work_guard&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)), owns_(other.owns_) { if (owns_) { new (&work_) work_type( static_cast<work_type&&>( *static_cast<work_type*>( static_cast<void*>(&other.work_)))); other.owns_ = false; } } ~executor_work_guard() { if (owns_) static_cast<work_type*>(static_cast<void*>(&work_))->~work_type(); } executor_type get_executor() const noexcept { return executor_; } bool owns_work() const noexcept { return owns_; } void reset() noexcept { if (owns_) { static_cast<work_type*>(static_cast<void*>(&work_))->~work_type(); owns_ = false; } } private: executor_work_guard& operator=(const executor_work_guard&); typedef typename decay< typename prefer_result< const executor_type&, execution::outstanding_work_t::tracked_t >::type >::type work_type; executor_type executor_; typename aligned_storage<sizeof(work_type), alignment_of<work_type>::value>::type work_; bool owns_; }; # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 template <typename Executor> [[nodiscard]] inline executor_work_guard<Executor> make_work_guard(const Executor& ex, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) { return executor_work_guard<Executor>(ex); } # 270 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 template <typename ExecutionContext> [[nodiscard]] inline executor_work_guard<typename ExecutionContext::executor_type> make_work_guard(ExecutionContext& ctx, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { return executor_work_guard<typename ExecutionContext::executor_type>( ctx.get_executor()); } # 290 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 template <typename T> [[nodiscard]] inline executor_work_guard< typename constraint< !is_executor<T>::value && !execution::is_executor<T>::value && !is_convertible<T&, execution_context&>::value, associated_executor<T> >::type::type> make_work_guard(const T& t) { return executor_work_guard<typename associated_executor<T>::type>( associated_executor<T>::get(t)); } # 317 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 template <typename T, typename Executor> [[nodiscard]] inline executor_work_guard<typename associated_executor<T, Executor>::type> make_work_guard(const T& t, const Executor& ex, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) { return executor_work_guard<typename associated_executor<T, Executor>::type>( associated_executor<T, Executor>::get(t, ex)); } # 341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 3 4 template <typename T, typename ExecutionContext> [[nodiscard]] inline executor_work_guard<typename associated_executor<T, typename ExecutionContext::executor_type>::type> make_work_guard(const T& t, ExecutionContext& ctx, typename constraint< !is_executor<T>::value >::type = 0, typename constraint< !execution::is_executor<T>::value >::type = 0, typename constraint< !is_convertible<T&, execution_context&>::value >::type = 0, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { return executor_work_guard<typename associated_executor<T, typename ExecutionContext::executor_type>::type>( associated_executor<T, typename ExecutionContext::executor_type>::get( t, ctx.get_executor())); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor_work_guard.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/work_dispatcher.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/work_dispatcher.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename Executor, typename = void> struct is_work_dispatcher_required : true_type { }; template <typename Handler, typename Executor> struct is_work_dispatcher_required<Handler, Executor, typename enable_if< is_same< typename associated_executor<Handler, Executor>::asio_associated_executor_is_unspecialised, void >::value >::type> : false_type { }; template <typename Handler, typename Executor, typename = void> class work_dispatcher { public: template <typename CompletionHandler> work_dispatcher(CompletionHandler&& handler, const Executor& handler_ex) : handler_(static_cast<CompletionHandler&&>(handler)), executor_(boost::asio::prefer(handler_ex, execution::outstanding_work.tracked)) { } work_dispatcher(const work_dispatcher& other) : handler_(other.handler_), executor_(other.executor_) { } work_dispatcher(work_dispatcher&& other) : handler_(static_cast<Handler&&>(other.handler_)), executor_(static_cast<work_executor_type&&>(other.executor_)) { } void operator()() { typename associated_allocator<Handler>::type alloc( (get_associated_allocator)(handler_)); execution::execute( boost::asio::prefer(executor_, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<Handler&&>(handler_))); } private: typedef typename decay< typename prefer_result<const Executor&, execution::outstanding_work_t::tracked_t >::type >::type work_executor_type; Handler handler_; work_executor_type executor_; }; template <typename Handler, typename Executor> class work_dispatcher<Handler, Executor, typename enable_if<!execution::is_executor<Executor>::value>::type> { public: template <typename CompletionHandler> work_dispatcher(CompletionHandler&& handler, const Executor& handler_ex) : work_(handler_ex), handler_(static_cast<CompletionHandler&&>(handler)) { } work_dispatcher(const work_dispatcher& other) : work_(other.work_), handler_(other.handler_) { } work_dispatcher(work_dispatcher&& other) : work_(static_cast<executor_work_guard<Executor>&&>(other.work_)), handler_(static_cast<Handler&&>(other.handler_)) { } void operator()() { typename associated_allocator<Handler>::type alloc( (get_associated_allocator)(handler_)); work_.get_executor().dispatch( boost::asio::detail::bind_handler( static_cast<Handler&&>(handler_)), alloc); work_.reset(); } private: executor_work_guard<Executor> work_; Handler handler_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/work_dispatcher.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_dispatch.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_dispatch.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class initiate_dispatch { public: template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename associated_executor< typename decay<CompletionHandler>::type >::type >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_executor<handler_t>::type ex( (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); execution::execute( boost::asio::prefer(ex, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler))); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename associated_executor< typename decay<CompletionHandler>::type >::type >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_executor<handler_t>::type ex( (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex.dispatch(boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler)), alloc); } }; template <typename Executor> class initiate_dispatch_with_executor { public: typedef Executor executor_type; explicit initiate_dispatch_with_executor(const Executor& ex) : ex_(ex) { } executor_type get_executor() const noexcept { return ex_; } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< !detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); execution::execute( boost::asio::prefer(ex_, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler))); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typedef typename associated_executor< handler_t, Executor>::type handler_ex_t; handler_ex_t handler_ex((get_associated_executor)(handler, ex_)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); execution::execute( boost::asio::prefer(ex_, execution::allocator(alloc)), detail::work_dispatcher<handler_t, handler_ex_t>( static_cast<CompletionHandler&&>(handler), handler_ex)); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< !detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex_.dispatch(boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler)), alloc); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typedef typename associated_executor< handler_t, Executor>::type handler_ex_t; handler_ex_t handler_ex((get_associated_executor)(handler, ex_)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex_.dispatch(detail::work_dispatcher<handler_t, handler_ex_t>( static_cast<CompletionHandler&&>(handler), handler_ex), alloc); } private: Executor ex_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 230 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_dispatch.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 2 3 4 namespace boost { namespace asio { class executor; class io_context; class any_completion_executor; class any_io_executor; namespace execution { template <typename...> class any_executor; # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 3 4 } namespace detail { template <typename Executor, typename CandidateExecutor = void, typename IoContext = io_context, typename PolymorphicExecutor = executor, typename = void> class handler_work_base { public: explicit handler_work_base(int, int, const Executor& ex) noexcept : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } template <typename OtherExecutor> handler_work_base(bool , const Executor& ex, const OtherExecutor& ) noexcept : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } handler_work_base(const handler_work_base& other) noexcept : executor_(other.executor_) { } handler_work_base(handler_work_base&& other) noexcept : executor_(static_cast<executor_type&&>(other.executor_)) { } bool owns_work() const noexcept { return true; } template <typename Function, typename Handler> void dispatch(Function& function, Handler& handler) { execution::execute( boost::asio::prefer(executor_, execution::allocator((get_associated_allocator)(handler))), static_cast<Function&&>(function)); } private: typedef typename decay< typename prefer_result<Executor, execution::outstanding_work_t::tracked_t >::type >::type executor_type; executor_type executor_; }; template <typename Executor, typename CandidateExecutor, typename IoContext, typename PolymorphicExecutor> class handler_work_base<Executor, CandidateExecutor, IoContext, PolymorphicExecutor, typename enable_if< !execution::is_executor<Executor>::value && (!is_same<Executor, PolymorphicExecutor>::value || !is_same<CandidateExecutor, void>::value) >::type> { public: explicit handler_work_base(int, int, const Executor& ex) noexcept : executor_(ex), owns_work_(true) { executor_.on_work_started(); } handler_work_base(bool , const Executor& ex, const Executor& candidate) noexcept : executor_(ex), owns_work_(ex != candidate) { if (owns_work_) executor_.on_work_started(); } template <typename OtherExecutor> handler_work_base(bool , const Executor& ex, const OtherExecutor& ) noexcept : executor_(ex), owns_work_(true) { executor_.on_work_started(); } handler_work_base(const handler_work_base& other) noexcept : executor_(other.executor_), owns_work_(other.owns_work_) { if (owns_work_) executor_.on_work_started(); } handler_work_base(handler_work_base&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)), owns_work_(other.owns_work_) { other.owns_work_ = false; } ~handler_work_base() { if (owns_work_) executor_.on_work_finished(); } bool owns_work() const noexcept { return owns_work_; } template <typename Function, typename Handler> void dispatch(Function& function, Handler& handler) { executor_.dispatch(static_cast<Function&&>(function), boost::asio::get_associated_allocator(handler)); } private: Executor executor_; bool owns_work_; }; template <typename Executor, typename IoContext, typename PolymorphicExecutor> class handler_work_base<Executor, void, IoContext, PolymorphicExecutor, typename enable_if< is_same< Executor, typename IoContext::executor_type >::value >::type> { public: explicit handler_work_base(int, int, const Executor&) { } bool owns_work() const noexcept { return false; } template <typename Function, typename Handler> void dispatch(Function& function, Handler& handler) { boost_asio_handler_invoke_helpers::invoke(function, handler); } }; template <typename Executor, typename IoContext> class handler_work_base<Executor, void, IoContext, Executor> { public: explicit handler_work_base(int, int, const Executor& ex) noexcept : executor_( ex.target_type() == typeid(typename IoContext::executor_type) ? Executor() : ex) { if (executor_) executor_.on_work_started(); } handler_work_base(bool , const Executor& ex, const Executor& candidate) noexcept : executor_(ex != candidate ? ex : Executor()) { if (executor_) executor_.on_work_started(); } template <typename OtherExecutor> handler_work_base(const Executor& ex, const OtherExecutor&) noexcept : executor_(ex) { executor_.on_work_started(); } handler_work_base(const handler_work_base& other) noexcept : executor_(other.executor_) { if (executor_) executor_.on_work_started(); } handler_work_base(handler_work_base&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)) { } ~handler_work_base() { if (executor_) executor_.on_work_finished(); } bool owns_work() const noexcept { return !!executor_; } template <typename Function, typename Handler> void dispatch(Function& function, Handler& handler) { executor_.dispatch(static_cast<Function&&>(function), boost::asio::get_associated_allocator(handler)); } private: Executor executor_; }; template < typename... SupportableProperties, typename CandidateExecutor, typename IoContext, typename PolymorphicExecutor> class handler_work_base< execution::any_executor<SupportableProperties...>, CandidateExecutor, IoContext, PolymorphicExecutor> { public: typedef execution::any_executor<SupportableProperties...> executor_type; explicit handler_work_base(int, int, const executor_type& ex) noexcept : executor_( ex.target_type() == typeid(typename IoContext::executor_type) ? executor_type() : boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } handler_work_base(bool base1_owns_work, const executor_type& ex, const executor_type& candidate) noexcept : executor_( !base1_owns_work && ex == candidate ? executor_type() : boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } template <typename OtherExecutor> handler_work_base(bool , const executor_type& ex, const OtherExecutor& ) noexcept : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } handler_work_base(const handler_work_base& other) noexcept : executor_(other.executor_) { } handler_work_base(handler_work_base&& other) noexcept : executor_(static_cast<executor_type&&>(other.executor_)) { } bool owns_work() const noexcept { return !!executor_; } template <typename Function, typename Handler> void dispatch(Function& function, Handler&) { execution::execute(executor_, static_cast<Function&&>(function)); } private: executor_type executor_; }; template <typename Executor, typename CandidateExecutor, typename IoContext, typename PolymorphicExecutor> class handler_work_base< Executor, CandidateExecutor, IoContext, PolymorphicExecutor, typename enable_if< is_same<Executor, any_completion_executor>::value || is_same<Executor, any_io_executor>::value >::type> { public: typedef Executor executor_type; explicit handler_work_base(int, int, const executor_type& ex) noexcept : executor_( ex.target_type() == typeid(typename IoContext::executor_type) ? executor_type() : boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } handler_work_base(bool base1_owns_work, const executor_type& ex, const executor_type& candidate) noexcept : executor_( !base1_owns_work && ex == candidate ? executor_type() : boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } template <typename OtherExecutor> handler_work_base(bool , const executor_type& ex, const OtherExecutor& ) noexcept : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } handler_work_base(const handler_work_base& other) noexcept : executor_(other.executor_) { } handler_work_base(handler_work_base&& other) noexcept : executor_(static_cast<executor_type&&>(other.executor_)) { } bool owns_work() const noexcept { return !!executor_; } template <typename Function, typename Handler> void dispatch(Function& function, Handler&) { execution::execute(executor_, static_cast<Function&&>(function)); } private: executor_type executor_; }; template <typename Handler, typename IoExecutor, typename = void> class handler_work : handler_work_base<IoExecutor>, handler_work_base<typename associated_executor< Handler, IoExecutor>::type, IoExecutor> { public: typedef handler_work_base<IoExecutor> base1_type; typedef handler_work_base<typename associated_executor< Handler, IoExecutor>::type, IoExecutor> base2_type; handler_work(Handler& handler, const IoExecutor& io_ex) noexcept : base1_type(0, 0, io_ex), base2_type(base1_type::owns_work(), boost::asio::get_associated_executor(handler, io_ex), io_ex) { } template <typename Function> void complete(Function& function, Handler& handler) { if (!base1_type::owns_work() && !base2_type::owns_work()) { boost_asio_handler_invoke_helpers::invoke(function, handler); } else { base2_type::dispatch(function, handler); } } }; template <typename Handler, typename IoExecutor> class handler_work< Handler, IoExecutor, typename enable_if< is_same< typename associated_executor<Handler, IoExecutor>::asio_associated_executor_is_unspecialised, void >::value >::type> : handler_work_base<IoExecutor> { public: typedef handler_work_base<IoExecutor> base1_type; handler_work(Handler&, const IoExecutor& io_ex) noexcept : base1_type(0, 0, io_ex) { } template <typename Function> void complete(Function& function, Handler& handler) { if (!base1_type::owns_work()) { boost_asio_handler_invoke_helpers::invoke(function, handler); } else { base1_type::dispatch(function, handler); } } }; template <typename Handler, typename IoExecutor> class immediate_handler_work { public: typedef handler_work<Handler, IoExecutor> handler_work_type; explicit immediate_handler_work(handler_work_type&& w) : handler_work_(static_cast<handler_work_type&&>(w)) { } template <typename Function> void complete(Function& function, Handler& handler, const void* io_ex) { typedef typename associated_immediate_executor<Handler, IoExecutor>::type immediate_ex_type; immediate_ex_type immediate_ex = (get_associated_immediate_executor)( handler, *static_cast<const IoExecutor*>(io_ex)); (initiate_dispatch_with_executor<immediate_ex_type>(immediate_ex))( static_cast<Function&&>(function)); } private: handler_work_type handler_work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 566 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/handler_work.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/completion_handler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/completion_handler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename IoExecutor> class completion_handler : public operation { public: struct ptr { Handler* h; completion_handler* v; completion_handler* p; ~ptr() { reset(); } static completion_handler* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<completion_handler> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~completion_handler(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<completion_handler> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<completion_handler*>(v), 1); v = 0; } } }; completion_handler(Handler& h, const IoExecutor& io_ex) : operation(&completion_handler::do_complete), handler_(static_cast<Handler&&>(h)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { completion_handler* h(static_cast<completion_handler*>(base)); ptr p = { boost::asio::detail::addressof(h->handler_), h, h }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( h->work_)); Handler handler(static_cast<Handler&&>(h->handler_)); p.h = boost::asio::detail::addressof(handler); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler); (void)0; } } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/completion_handler.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.hpp" 2 3 4 namespace boost { namespace asio { template <typename Service> inline Service& use_service(io_context& ioc) { (void)static_cast<execution_context::service*>(static_cast<Service*>(0)); (void)static_cast<const execution_context::id*>(&Service::id); return ioc.service_registry_->template use_service<Service>(ioc); } template <> inline detail::io_context_impl& use_service<detail::io_context_impl>( io_context& ioc) { return ioc.impl_; } inline io_context::executor_type io_context::get_executor() noexcept { return executor_type(*this); } template <typename Rep, typename Period> std::size_t io_context::run_for( const chrono::duration<Rep, Period>& rel_time) { return this->run_until(chrono::steady_clock::now() + rel_time); } template <typename Clock, typename Duration> std::size_t io_context::run_until( const chrono::time_point<Clock, Duration>& abs_time) { std::size_t n = 0; while (this->run_one_until(abs_time)) if (n != (std::numeric_limits<std::size_t>::max)()) ++n; return n; } template <typename Rep, typename Period> std::size_t io_context::run_one_for( const chrono::duration<Rep, Period>& rel_time) { return this->run_one_until(chrono::steady_clock::now() + rel_time); } template <typename Clock, typename Duration> std::size_t io_context::run_one_until( const chrono::time_point<Clock, Duration>& abs_time) { typename Clock::time_point now = Clock::now(); while (now < abs_time) { typename Clock::duration rel_time = abs_time - now; if (rel_time > chrono::seconds(1)) rel_time = chrono::seconds(1); boost::system::error_code ec; std::size_t s = impl_.wait_one( static_cast<long>(chrono::duration_cast< chrono::microseconds>(rel_time).count()), ec); boost::asio::detail::throw_error(ec); if (s || impl_.stopped()) return s; now = Clock::now(); } return 0; } inline void io_context::reset() { restart(); } struct io_context::initiate_dispatch { template <typename LegacyCompletionHandler> void operator()(LegacyCompletionHandler&& handler, io_context* self) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<LegacyCompletionHandler>::type, void()>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::zero_arg_copyable_handler_test( boost::asio::detail::clvref< asio_true_handler_type>(), 0)) == 1, "CompletionHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::clvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()(), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<LegacyCompletionHandler> handler2(handler); if (self->impl_.can_dispatch()) { detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke( handler2.value, handler2.value); } else { typedef detail::completion_handler< typename decay<LegacyCompletionHandler>::type, executor_type> op; typename op::ptr p = { detail::addressof(handler2.value), op::ptr::allocate(handler2.value), 0 }; p.p = new (p.v) op(handler2.value, self->get_executor()); (void)0 ; self->impl_.do_dispatch(p.p); p.v = p.p = 0; } } }; template <typename LegacyCompletionHandler> auto io_context::dispatch(LegacyCompletionHandler&& handler) { return async_initiate<LegacyCompletionHandler, void ()>( initiate_dispatch(), handler, this); } struct io_context::initiate_post { template <typename LegacyCompletionHandler> void operator()(LegacyCompletionHandler&& handler, io_context* self) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<LegacyCompletionHandler>::type, void()>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::zero_arg_copyable_handler_test( boost::asio::detail::clvref< asio_true_handler_type>(), 0)) == 1, "CompletionHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::clvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()(), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<LegacyCompletionHandler> handler2(handler); bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler2.value); typedef detail::completion_handler< typename decay<LegacyCompletionHandler>::type, executor_type> op; typename op::ptr p = { detail::addressof(handler2.value), op::ptr::allocate(handler2.value), 0 }; p.p = new (p.v) op(handler2.value, self->get_executor()); (void)0 ; self->impl_.post_immediate_completion(p.p, is_continuation); p.v = p.p = 0; } }; template <typename LegacyCompletionHandler> auto io_context::post(LegacyCompletionHandler&& handler) { return async_initiate<LegacyCompletionHandler, void ()>( initiate_post(), handler, this); } template <typename Handler> inline detail::wrapped_handler<io_context&, Handler> io_context::wrap(Handler handler) { return detail::wrapped_handler<io_context&, Handler>(*this, handler); } template <typename Allocator, uintptr_t Bits> io_context::basic_executor_type<Allocator, Bits>& io_context::basic_executor_type<Allocator, Bits>::operator=( const basic_executor_type& other) noexcept { if (this != &other) { static_cast<Allocator&>(*this) = static_cast<const Allocator&>(other); io_context* old_io_context = context_ptr(); target_ = other.target_; if (Bits & outstanding_work_tracked) { if (context_ptr()) context_ptr()->impl_.work_started(); if (old_io_context) old_io_context->impl_.work_finished(); } } return *this; } template <typename Allocator, uintptr_t Bits> io_context::basic_executor_type<Allocator, Bits>& io_context::basic_executor_type<Allocator, Bits>::operator=( basic_executor_type&& other) noexcept { if (this != &other) { static_cast<Allocator&>(*this) = static_cast<Allocator&&>(other); io_context* old_io_context = context_ptr(); target_ = other.target_; if (Bits & outstanding_work_tracked) { other.target_ = 0; if (old_io_context) old_io_context->impl_.work_finished(); } } return *this; } template <typename Allocator, uintptr_t Bits> inline bool io_context::basic_executor_type<Allocator, Bits>::running_in_this_thread() const noexcept { return context_ptr()->impl_.can_dispatch(); } template <typename Allocator, uintptr_t Bits> template <typename Function> void io_context::basic_executor_type<Allocator, Bits>::execute( Function&& f) const { typedef typename decay<Function>::type function_type; if ((bits() & blocking_never) == 0 && context_ptr()->impl_.can_dispatch()) { function_type tmp(static_cast<Function&&>(f)); try { detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); return; } catch (...) { context_ptr()->impl_.capture_current_exception(); return; } } typedef detail::executor_op<function_type, Allocator, detail::operation> op; typename op::ptr p = { detail::addressof(static_cast<const Allocator&>(*this)), op::ptr::allocate(static_cast<const Allocator&>(*this)), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), static_cast<const Allocator&>(*this)); (void)0 ; context_ptr()->impl_.post_immediate_completion(p.p, (bits() & relationship_continuation) != 0); p.v = p.p = 0; } template <typename Allocator, uintptr_t Bits> inline io_context& io_context::basic_executor_type< Allocator, Bits>::context() const noexcept { return *context_ptr(); } template <typename Allocator, uintptr_t Bits> inline void io_context::basic_executor_type<Allocator, Bits>::on_work_started() const noexcept { context_ptr()->impl_.work_started(); } template <typename Allocator, uintptr_t Bits> inline void io_context::basic_executor_type<Allocator, Bits>::on_work_finished() const noexcept { context_ptr()->impl_.work_finished(); } template <typename Allocator, uintptr_t Bits> template <typename Function, typename OtherAllocator> void io_context::basic_executor_type<Allocator, Bits>::dispatch( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; if (context_ptr()->impl_.can_dispatch()) { function_type tmp(static_cast<Function&&>(f)); detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); return; } typedef detail::executor_op<function_type, OtherAllocator, detail::operation> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; context_ptr()->impl_.post_immediate_completion(p.p, false); p.v = p.p = 0; } template <typename Allocator, uintptr_t Bits> template <typename Function, typename OtherAllocator> void io_context::basic_executor_type<Allocator, Bits>::post( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; typedef detail::executor_op<function_type, OtherAllocator, detail::operation> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; context_ptr()->impl_.post_immediate_completion(p.p, false); p.v = p.p = 0; } template <typename Allocator, uintptr_t Bits> template <typename Function, typename OtherAllocator> void io_context::basic_executor_type<Allocator, Bits>::defer( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; typedef detail::executor_op<function_type, OtherAllocator, detail::operation> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; context_ptr()->impl_.post_immediate_completion(p.p, true); p.v = p.p = 0; } inline io_context::work::work(boost::asio::io_context& io_context) : io_context_impl_(io_context.impl_) { io_context_impl_.work_started(); } inline io_context::work::work(const work& other) : io_context_impl_(other.io_context_impl_) { io_context_impl_.work_started(); } inline io_context::work::~work() { io_context_impl_.work_finished(); } inline boost::asio::io_context& io_context::work::get_io_context() { return static_cast<boost::asio::io_context&>(io_context_impl_.context()); } inline boost::asio::io_context& io_context::service::get_io_context() { return static_cast<boost::asio::io_context&>(context()); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 451 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.hpp" 2 3 4 # 1524 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.ipp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.ipp" 2 3 4 namespace boost { namespace asio { io_context::io_context() : impl_(add_impl(new impl_type(*this, -1, false))) { } io_context::io_context(int concurrency_hint) : impl_(add_impl(new impl_type(*this, concurrency_hint == 1 ? 1 : concurrency_hint, false))) { } io_context::impl_type& io_context::add_impl(io_context::impl_type* impl) { boost::asio::detail::scoped_ptr<impl_type> scoped_impl(impl); boost::asio::add_service<impl_type>(*this, scoped_impl.get()); return *scoped_impl.release(); } io_context::~io_context() { shutdown(); } io_context::count_type io_context::run() { boost::system::error_code ec; count_type s = impl_.run(ec); boost::asio::detail::throw_error(ec); return s; } io_context::count_type io_context::run(boost::system::error_code& ec) { return impl_.run(ec); } io_context::count_type io_context::run_one() { boost::system::error_code ec; count_type s = impl_.run_one(ec); boost::asio::detail::throw_error(ec); return s; } io_context::count_type io_context::run_one(boost::system::error_code& ec) { return impl_.run_one(ec); } io_context::count_type io_context::poll() { boost::system::error_code ec; count_type s = impl_.poll(ec); boost::asio::detail::throw_error(ec); return s; } io_context::count_type io_context::poll(boost::system::error_code& ec) { return impl_.poll(ec); } io_context::count_type io_context::poll_one() { boost::system::error_code ec; count_type s = impl_.poll_one(ec); boost::asio::detail::throw_error(ec); return s; } io_context::count_type io_context::poll_one(boost::system::error_code& ec) { return impl_.poll_one(ec); } void io_context::stop() { impl_.stop(); } bool io_context::stopped() const { return impl_.stopped(); } void io_context::restart() { impl_.restart(); } io_context::service::service(boost::asio::io_context& owner) : execution_context::service(owner) { } io_context::service::~service() { } void io_context::service::shutdown() { shutdown_service(); } void io_context::service::shutdown_service() { } void io_context::service::notify_fork(io_context::fork_event ev) { fork_service(ev); } void io_context::service::fork_service(io_context::fork_event) { } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 177 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/io_context.ipp" 2 3 4 # 1526 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_object_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_object_impl.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename IoObjectService, typename Executor = io_context::executor_type> class io_object_impl { public: typedef IoObjectService service_type; typedef typename service_type::implementation_type implementation_type; typedef Executor executor_type; explicit io_object_impl(int, const executor_type& ex) : service_(&boost::asio::use_service<IoObjectService>( io_object_impl::get_context(ex))), executor_(ex) { service_->construct(implementation_); } template <typename ExecutionContext> explicit io_object_impl(int, int, ExecutionContext& context) : service_(&boost::asio::use_service<IoObjectService>(context)), executor_(context.get_executor()) { service_->construct(implementation_); } io_object_impl(io_object_impl&& other) : service_(&other.get_service()), executor_(other.get_executor()) { service_->move_construct(implementation_, other.implementation_); } template <typename Executor1> io_object_impl(io_object_impl<IoObjectService, Executor1>&& other) : service_(&other.get_service()), executor_(other.get_executor()) { service_->move_construct(implementation_, other.get_implementation()); } template <typename IoObjectService1, typename Executor1> io_object_impl(io_object_impl<IoObjectService1, Executor1>&& other) : service_(&boost::asio::use_service<IoObjectService>( io_object_impl::get_context(other.get_executor()))), executor_(other.get_executor()) { service_->converting_move_construct(implementation_, other.get_service(), other.get_implementation()); } ~io_object_impl() { service_->destroy(implementation_); } io_object_impl& operator=(io_object_impl&& other) { if (this != &other) { service_->move_assign(implementation_, *other.service_, other.implementation_); executor_.~executor_type(); new (&executor_) executor_type(other.executor_); service_ = other.service_; } return *this; } const executor_type& get_executor() noexcept { return executor_; } service_type& get_service() { return *service_; } const service_type& get_service() const { return *service_; } implementation_type& get_implementation() { return implementation_; } const implementation_type& get_implementation() const { return implementation_; } private: template <typename T> static execution_context& get_context(const T& t, typename enable_if<execution::is_executor<T>::value>::type* = 0) { return boost::asio::query(t, execution::context); } template <typename T> static execution_context& get_context(const T& t, typename enable_if<!execution::is_executor<T>::value>::type* = 0) { return t.context(); } io_object_impl(const io_object_impl&); io_object_impl& operator=(const io_object_impl&); service_type* service_; implementation_type implementation_; executor_type executor_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_object_impl.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class initiate_post { public: template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename associated_executor< typename decay<CompletionHandler>::type >::type >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_executor<handler_t>::type ex( (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require(ex, execution::blocking.never), execution::relationship.fork, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler))); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename associated_executor< typename decay<CompletionHandler>::type >::type >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_executor<handler_t>::type ex( (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex.post(boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler)), alloc); } }; template <typename Executor> class initiate_post_with_executor { public: typedef Executor executor_type; explicit initiate_post_with_executor(const Executor& ex) : ex_(ex) { } executor_type get_executor() const noexcept { return ex_; } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< !detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); # 141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require(ex_, execution::blocking.never), execution::relationship.fork, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler))); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typedef typename associated_executor< handler_t, Executor>::type handler_ex_t; handler_ex_t handler_ex((get_associated_executor)(handler, ex_)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); # 183 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require(ex_, execution::blocking.never), execution::relationship.fork, execution::allocator(alloc)), detail::work_dispatcher<handler_t, handler_ex_t>( static_cast<CompletionHandler&&>(handler), handler_ex)); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< !detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex_.post(boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler)), alloc); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typedef typename associated_executor< handler_t, Executor>::type handler_ex_t; handler_ex_t handler_ex((get_associated_executor)(handler, ex_)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex_.post(detail::work_dispatcher<handler_t, handler_ex_t>( static_cast<CompletionHandler&&>(handler), handler_ex), alloc); } private: Executor ex_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_post.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 2 3 4 namespace boost { namespace asio { # 80 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 3 4 template < ::boost::asio::completion_token_for<void()> NullaryToken> auto post( NullaryToken&& token) { return async_initiate<NullaryToken, void()>( detail::initiate_post(), token); } # 160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 3 4 template <typename Executor, ::boost::asio::completion_token_for<void()> NullaryToken = typename ::boost::asio::default_completion_token<Executor>::type> auto post( const Executor& ex, NullaryToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< (execution::is_executor<Executor>::value && can_require<Executor, execution::blocking_t::never_t>::value) || is_executor<Executor>::value >::type = 0) { return async_initiate<NullaryToken, void()>( detail::initiate_post_with_executor<Executor>(ex), token); } # 193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 3 4 template <typename ExecutionContext, ::boost::asio::completion_token_for<void()> NullaryToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > auto post( ExecutionContext& ctx, NullaryToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint<is_convertible< ExecutionContext&, execution_context&>::value>::type = 0) { return async_initiate<NullaryToken, void()>( detail::initiate_post_with_executor< typename ExecutionContext::executor_type>( ctx.get_executor()), token); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 219 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/post.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_control.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_control.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_control.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { namespace io_control { class bytes_readable { public: bytes_readable() : value_(0) { } bytes_readable(std::size_t value) : value_(static_cast<detail::ioctl_arg_type>(value)) { } int name() const { return static_cast<int>(0x541B); } void set(std::size_t value) { value_ = static_cast<detail::ioctl_arg_type>(value); } std::size_t get() const { return static_cast<std::size_t>(value_); } detail::ioctl_arg_type* data() { return &value_; } const detail::ioctl_arg_type* data() const { return &value_; } private: detail::ioctl_arg_type value_; }; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/io_control.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_option.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_option.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_option.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { namespace socket_option { template <int Level, int Name> class boolean { public: boolean() : value_(0) { } explicit boolean(bool v) : value_(v ? 1 : 0) { } boolean& operator=(bool v) { value_ = v ? 1 : 0; return *this; } bool value() const { return !!value_; } operator bool() const { return !!value_; } bool operator!() const { return !value_; } template <typename Protocol> int level(const Protocol&) const { return Level; } template <typename Protocol> int name(const Protocol&) const { return Name; } template <typename Protocol> int* data(const Protocol&) { return &value_; } template <typename Protocol> const int* data(const Protocol&) const { return &value_; } template <typename Protocol> std::size_t size(const Protocol&) const { return sizeof(value_); } template <typename Protocol> void resize(const Protocol&, std::size_t s) { switch (s) { case sizeof(char): value_ = *reinterpret_cast<char*>(&value_) ? 1 : 0; break; case sizeof(value_): break; default: { std::length_error ex("boolean socket option resize"); boost::asio::detail::throw_exception(ex); } } } private: int value_; }; template <int Level, int Name> class integer { public: integer() : value_(0) { } explicit integer(int v) : value_(v) { } integer& operator=(int v) { value_ = v; return *this; } int value() const { return value_; } template <typename Protocol> int level(const Protocol&) const { return Level; } template <typename Protocol> int name(const Protocol&) const { return Name; } template <typename Protocol> int* data(const Protocol&) { return &value_; } template <typename Protocol> const int* data(const Protocol&) const { return &value_; } template <typename Protocol> std::size_t size(const Protocol&) const { return sizeof(value_); } template <typename Protocol> void resize(const Protocol&, std::size_t s) { if (s != sizeof(value_)) { std::length_error ex("integer socket option resize"); boost::asio::detail::throw_exception(ex); } } private: int value_; }; template <int Level, int Name> class linger { public: linger() { value_.l_onoff = 0; value_.l_linger = 0; } linger(bool e, int t) { enabled(e); timeout (t); } void enabled(bool value) { value_.l_onoff = value ? 1 : 0; } bool enabled() const { return value_.l_onoff != 0; } void timeout (int value) { value_.l_linger = value; } int timeout () const { return static_cast<int>(value_.l_linger); } template <typename Protocol> int level(const Protocol&) const { return Level; } template <typename Protocol> int name(const Protocol&) const { return Name; } template <typename Protocol> detail::linger_type* data(const Protocol&) { return &value_; } template <typename Protocol> const detail::linger_type* data(const Protocol&) const { return &value_; } template <typename Protocol> std::size_t size(const Protocol&) const { return sizeof(value_); } template <typename Protocol> void resize(const Protocol&, std::size_t s) { if (s != sizeof(value_)) { std::length_error ex("linger socket option resize"); boost::asio::detail::throw_exception(ex); } } private: detail::linger_type value_; }; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 317 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_option.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 2 3 4 namespace boost { namespace asio { class socket_base { public: enum shutdown_type { # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 shutdown_receive = SHUT_RD, shutdown_send = SHUT_WR, shutdown_both = SHUT_RDWR }; typedef int message_flags; # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 static const int message_peek = MSG_PEEK ; static const int message_out_of_band = MSG_OOB ; static const int message_do_not_route = MSG_DONTROUTE ; static const int message_end_of_record = MSG_EOR ; enum wait_type { wait_read, wait_write, wait_error }; # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< 1, 6> broadcast; # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< 1, 1> debug; # 191 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< 1, 5> do_not_route; # 225 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< 1, 9> keep_alive; # 258 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::integer< 1, 7> send_buffer_size; # 292 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::integer< 1, 19> send_low_watermark; # 326 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::integer< 1, 8> receive_buffer_size; # 360 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::integer< 1, 18> receive_low_watermark; # 395 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< 1, 2> reuse_address; # 431 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::linger< 1, 13> linger; # 465 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< 1, 10> out_of_band_inline; # 501 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< boost::asio::detail::custom_socket_option_level, boost::asio::detail::enable_connection_aborted_option> enable_connection_aborted; # 527 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 typedef boost::asio::detail::io_control::bytes_readable bytes_readable; static const int max_listen_connections = 4096 ; # 544 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 3 4 static const int max_connections = 4096 ; protected: ~socket_base() { } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 560 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/socket_base.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/array_fwd.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/array_fwd.hpp" 3 4 namespace boost { template<class T, std::size_t N> class array; } # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/string_view.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/string_view.hpp" 3 4 namespace boost { namespace asio { using std::basic_string_view; using std::string_view; } } # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_contiguous_iterator.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_contiguous_iterator.hpp" 3 4 # 1 "/usr/include/c++/13/iterator" 1 3 4 # 58 "/usr/include/c++/13/iterator" 3 4 # 59 "/usr/include/c++/13/iterator" 3 # 1 "/usr/include/c++/13/bits/stream_iterator.h" 1 3 # 33 "/usr/include/c++/13/bits/stream_iterator.h" 3 # 34 "/usr/include/c++/13/bits/stream_iterator.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 50 "/usr/include/c++/13/bits/stream_iterator.h" 3 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" template<typename _Tp, typename _CharT = char, typename _Traits = char_traits<_CharT>, typename _Dist = ptrdiff_t> class istream_iterator : public iterator<input_iterator_tag, _Tp, _Dist, const _Tp*, const _Tp&> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef basic_istream<_CharT, _Traits> istream_type; private: istream_type* _M_stream; _Tp _M_value; bool _M_ok; public: constexpr istream_iterator() noexcept(is_nothrow_default_constructible<_Tp>::value) : _M_stream(0), _M_value(), _M_ok(false) {} istream_iterator(istream_type& __s) : _M_stream(std::__addressof(__s)), _M_ok(true) { _M_read(); } constexpr istream_iterator(const istream_iterator& __obj) noexcept(is_nothrow_copy_constructible<_Tp>::value) : _M_stream(__obj._M_stream), _M_value(__obj._M_value), _M_ok(__obj._M_ok) { } constexpr istream_iterator(default_sentinel_t) noexcept(is_nothrow_default_constructible_v<_Tp>) : istream_iterator() { } istream_iterator& operator=(const istream_iterator&) = default; ~istream_iterator() = default; [[__nodiscard__]] const _Tp& operator*() const noexcept { ; return _M_value; } [[__nodiscard__]] const _Tp* operator->() const noexcept { return std::__addressof((operator*())); } istream_iterator& operator++() { ; _M_read(); return *this; } istream_iterator operator++(int) { ; istream_iterator __tmp = *this; _M_read(); return __tmp; } private: bool _M_equal(const istream_iterator& __x) const noexcept { return (_M_ok == __x._M_ok) && (!_M_ok || _M_stream == __x._M_stream); } void _M_read() { if (_M_stream && !(*_M_stream >> _M_value)) { _M_stream = 0; _M_ok = false; } } [[__nodiscard__]] friend bool operator==(const istream_iterator& __x, const istream_iterator& __y) noexcept { return __x._M_equal(__y); } # 176 "/usr/include/c++/13/bits/stream_iterator.h" 3 [[nodiscard]] friend bool operator==(const istream_iterator& __i, default_sentinel_t) noexcept { return !__i._M_stream; } }; # 194 "/usr/include/c++/13/bits/stream_iterator.h" 3 template<typename _Tp, typename _CharT = char, typename _Traits = char_traits<_CharT> > class ostream_iterator : public iterator<output_iterator_tag, void, void, void, void> { public: using difference_type = ptrdiff_t; typedef _CharT char_type; typedef _Traits traits_type; typedef basic_ostream<_CharT, _Traits> ostream_type; private: ostream_type* _M_stream; const _CharT* _M_string; public: ostream_iterator(ostream_type& __s) noexcept : _M_stream(std::__addressof(__s)), _M_string(0) {} # 229 "/usr/include/c++/13/bits/stream_iterator.h" 3 ostream_iterator(ostream_type& __s, const _CharT* __c) noexcept : _M_stream(std::__addressof(__s)), _M_string(__c) { } ostream_iterator(const ostream_iterator& __obj) noexcept : _M_stream(__obj._M_stream), _M_string(__obj._M_string) { } ostream_iterator& operator=(const ostream_iterator&) = default; ostream_iterator& operator=(const _Tp& __value) { ; *_M_stream << __value; if (_M_string) *_M_stream << _M_string; return *this; } [[__nodiscard__]] ostream_iterator& operator*() noexcept { return *this; } ostream_iterator& operator++() noexcept { return *this; } ostream_iterator& operator++(int) noexcept { return *this; } }; #pragma GCC diagnostic pop } # 66 "/usr/include/c++/13/iterator" 2 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_contiguous_iterator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_contiguous_iterator.hpp" 2 3 4 namespace boost { namespace asio { template <typename T> struct is_contiguous_iterator : integral_constant<bool, std::contiguous_iterator<T> > { }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_contiguous_iterator.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/detail/workaround.hpp" 1 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 namespace boost { namespace asio { class mutable_buffer; class const_buffer; # 94 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 class mutable_buffer { public: mutable_buffer() noexcept : data_(0), size_(0) { } mutable_buffer(void* data, std::size_t size) noexcept : data_(data), size_(size) { } # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void* data() const noexcept { return data_; } std::size_t size() const noexcept { return size_; } mutable_buffer& operator+=(std::size_t n) noexcept { std::size_t offset = n < size_ ? n : size_; data_ = static_cast<char*>(data_) + offset; size_ -= offset; return *this; } private: void* data_; std::size_t size_; }; class mutable_buffers_1 : public mutable_buffer { public: typedef mutable_buffer value_type; typedef const mutable_buffer* const_iterator; mutable_buffers_1(void* data, std::size_t size) noexcept : mutable_buffer(data, size) { } # 189 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 explicit mutable_buffers_1(const mutable_buffer& b) noexcept : mutable_buffer(b) { } const_iterator begin() const noexcept { return this; } const_iterator end() const noexcept { return begin() + 1; } }; # 228 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 class const_buffer { public: const_buffer() noexcept : data_(0), size_(0) { } const_buffer(const void* data, std::size_t size) noexcept : data_(data), size_(size) { } const_buffer(const mutable_buffer& b) noexcept : data_(b.data()), size_(b.size()) { } # 271 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 const void* data() const noexcept { return data_; } std::size_t size() const noexcept { return size_; } const_buffer& operator+=(std::size_t n) noexcept { std::size_t offset = n < size_ ? n : size_; data_ = static_cast<const char*>(data_) + offset; size_ -= offset; return *this; } private: const void* data_; std::size_t size_; }; class const_buffers_1 : public const_buffer { public: typedef const_buffer value_type; typedef const const_buffer* const_iterator; const_buffers_1(const void* data, std::size_t size) noexcept : const_buffer(data, size) { } # 333 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 explicit const_buffers_1(const const_buffer& b) noexcept : const_buffer(b) { } const_iterator begin() const noexcept { return this; } const_iterator end() const noexcept { return begin() + 1; } }; class null_buffers { public: typedef mutable_buffer value_type; typedef const mutable_buffer* const_iterator; const_iterator begin() const noexcept { return &buf_; } const_iterator end() const noexcept { return &buf_; } private: mutable_buffer buf_; }; # 389 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename MutableBuffer> inline const mutable_buffer* buffer_sequence_begin(const MutableBuffer& b, typename constraint< is_convertible<const MutableBuffer*, const mutable_buffer*>::value >::type = 0) noexcept { return static_cast<const mutable_buffer*>(detail::addressof(b)); } template <typename ConstBuffer> inline const const_buffer* buffer_sequence_begin(const ConstBuffer& b, typename constraint< is_convertible<const ConstBuffer*, const const_buffer*>::value >::type = 0) noexcept { return static_cast<const const_buffer*>(detail::addressof(b)); } template <typename C> inline auto buffer_sequence_begin(C& c, typename constraint< !is_convertible<const C*, const mutable_buffer*>::value && !is_convertible<const C*, const const_buffer*>::value >::type = 0) noexcept -> decltype(c.begin()) { return c.begin(); } template <typename C> inline auto buffer_sequence_begin(const C& c, typename constraint< !is_convertible<const C*, const mutable_buffer*>::value && !is_convertible<const C*, const const_buffer*>::value >::type = 0) noexcept -> decltype(c.begin()) { return c.begin(); } # 466 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename MutableBuffer> inline const mutable_buffer* buffer_sequence_end(const MutableBuffer& b, typename constraint< is_convertible<const MutableBuffer*, const mutable_buffer*>::value >::type = 0) noexcept { return static_cast<const mutable_buffer*>(detail::addressof(b)) + 1; } template <typename ConstBuffer> inline const const_buffer* buffer_sequence_end(const ConstBuffer& b, typename constraint< is_convertible<const ConstBuffer*, const const_buffer*>::value >::type = 0) noexcept { return static_cast<const const_buffer*>(detail::addressof(b)) + 1; } template <typename C> inline auto buffer_sequence_end(C& c, typename constraint< !is_convertible<const C*, const mutable_buffer*>::value && !is_convertible<const C*, const const_buffer*>::value >::type = 0) noexcept -> decltype(c.end()) { return c.end(); } template <typename C> inline auto buffer_sequence_end(const C& c, typename constraint< !is_convertible<const C*, const mutable_buffer*>::value && !is_convertible<const C*, const const_buffer*>::value >::type = 0) noexcept -> decltype(c.end()) { return c.end(); } # 535 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 namespace detail { struct one_buffer {}; struct multiple_buffers {}; template <typename BufferSequence> struct buffer_sequence_cardinality : conditional< is_same<BufferSequence, mutable_buffer>::value || is_same<BufferSequence, mutable_buffers_1>::value || is_same<BufferSequence, const_buffers_1>::value || is_same<BufferSequence, const_buffer>::value, one_buffer, multiple_buffers>::type {}; template <typename Iterator> inline std::size_t buffer_size(one_buffer, Iterator begin, Iterator) noexcept { return const_buffer(*begin).size(); } template <typename Iterator> inline std::size_t buffer_size(multiple_buffers, Iterator begin, Iterator end) noexcept { std::size_t total_buffer_size = 0; Iterator iter = begin; for (; iter != end; ++iter) { const_buffer b(*iter); total_buffer_size += b.size(); } return total_buffer_size; } } # 596 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename BufferSequence> inline std::size_t buffer_size(const BufferSequence& b) noexcept { return detail::buffer_size( detail::buffer_sequence_cardinality<BufferSequence>(), boost::asio::buffer_sequence_begin(b), boost::asio::buffer_sequence_end(b)); } # 631 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PointerToPodType> inline PointerToPodType buffer_cast(const mutable_buffer& b) noexcept { return static_cast<PointerToPodType>(b.data()); } template <typename PointerToPodType> inline PointerToPodType buffer_cast(const const_buffer& b) noexcept { return static_cast<PointerToPodType>(b.data()); } # 652 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 inline mutable_buffer operator+(const mutable_buffer& b, std::size_t n) noexcept { std::size_t offset = n < b.size() ? n : b.size(); char* new_data = static_cast<char*>(b.data()) + offset; std::size_t new_size = b.size() - offset; return mutable_buffer(new_data, new_size ); } inline mutable_buffer operator+(std::size_t n, const mutable_buffer& b) noexcept { return b + n; } inline const_buffer operator+(const const_buffer& b, std::size_t n) noexcept { std::size_t offset = n < b.size() ? n : b.size(); const char* new_data = static_cast<const char*>(b.data()) + offset; std::size_t new_size = b.size() - offset; return const_buffer(new_data, new_size ); } inline const_buffer operator+(std::size_t n, const const_buffer& b) noexcept { return b + n; } # 930 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 [[nodiscard]] inline mutable_buffers_1 buffer( const mutable_buffer& b) noexcept { return mutable_buffers_1(b); } # 943 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 [[nodiscard]] inline mutable_buffers_1 buffer( const mutable_buffer& b, std::size_t max_size_in_bytes) noexcept { return mutable_buffers_1( mutable_buffer(b.data(), b.size() < max_size_in_bytes ? b.size() : max_size_in_bytes )); } [[nodiscard]] inline const_buffers_1 buffer( const const_buffer& b) noexcept { return const_buffers_1(b); } # 974 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 [[nodiscard]] inline const_buffers_1 buffer( const const_buffer& b, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(b.data(), b.size() < max_size_in_bytes ? b.size() : max_size_in_bytes ); } [[nodiscard]] inline mutable_buffers_1 buffer( void* data, std::size_t size_in_bytes) noexcept { return mutable_buffers_1(data, size_in_bytes); } [[nodiscard]] inline const_buffers_1 buffer( const void* data, std::size_t size_in_bytes) noexcept { return const_buffers_1(data, size_in_bytes); } # 1014 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline mutable_buffers_1 buffer( PodType (&data)[N]) noexcept { return mutable_buffers_1(data, N * sizeof(PodType)); } # 1028 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline mutable_buffers_1 buffer( PodType (&data)[N], std::size_t max_size_in_bytes) noexcept { return mutable_buffers_1(data, N * sizeof(PodType) < max_size_in_bytes ? N * sizeof(PodType) : max_size_in_bytes); } # 1045 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( const PodType (&data)[N]) noexcept { return const_buffers_1(data, N * sizeof(PodType)); } # 1059 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( const PodType (&data)[N], std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data, N * sizeof(PodType) < max_size_in_bytes ? N * sizeof(PodType) : max_size_in_bytes); } # 1148 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline mutable_buffers_1 buffer( boost::array<PodType, N>& data) noexcept { return mutable_buffers_1( data.c_array(), data.size() * sizeof(PodType)); } # 1163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline mutable_buffers_1 buffer( boost::array<PodType, N>& data, std::size_t max_size_in_bytes) noexcept { return mutable_buffers_1(data.c_array(), data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes); } # 1180 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( boost::array<const PodType, N>& data) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType)); } # 1194 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( boost::array<const PodType, N>& data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes); } # 1213 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( const boost::array<PodType, N>& data) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType)); } # 1227 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( const boost::array<PodType, N>& data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes); } # 1246 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline mutable_buffers_1 buffer( std::array<PodType, N>& data) noexcept { return mutable_buffers_1(data.data(), data.size() * sizeof(PodType)); } # 1260 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline mutable_buffers_1 buffer( std::array<PodType, N>& data, std::size_t max_size_in_bytes) noexcept { return mutable_buffers_1(data.data(), data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes); } # 1277 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( std::array<const PodType, N>& data) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType)); } # 1291 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( std::array<const PodType, N>& data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes); } # 1308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( const std::array<PodType, N>& data) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType)); } # 1322 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, std::size_t N> [[nodiscard]] inline const_buffers_1 buffer( const std::array<PodType, N>& data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes); } # 1344 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, typename Allocator> [[nodiscard]] inline mutable_buffers_1 buffer( std::vector<PodType, Allocator>& data) noexcept { return mutable_buffers_1( data.size() ? &data[0] : 0, data.size() * sizeof(PodType) ); } # 1368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, typename Allocator> [[nodiscard]] inline mutable_buffers_1 buffer( std::vector<PodType, Allocator>& data, std::size_t max_size_in_bytes) noexcept { return mutable_buffers_1(data.size() ? &data[0] : 0, data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes ); } # 1394 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, typename Allocator> [[nodiscard]] inline const_buffers_1 buffer( const std::vector<PodType, Allocator>& data) noexcept { return const_buffers_1( data.size() ? &data[0] : 0, data.size() * sizeof(PodType) ); } # 1418 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename PodType, typename Allocator> [[nodiscard]] inline const_buffers_1 buffer( const std::vector<PodType, Allocator>& data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.size() ? &data[0] : 0, data.size() * sizeof(PodType) < max_size_in_bytes ? data.size() * sizeof(PodType) : max_size_in_bytes ); } # 1442 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits, typename Allocator> [[nodiscard]] inline mutable_buffers_1 buffer( std::basic_string<Elem, Traits, Allocator>& data) noexcept { return mutable_buffers_1(data.size() ? &data[0] : 0, data.size() * sizeof(Elem) ); } # 1466 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits, typename Allocator> [[nodiscard]] inline mutable_buffers_1 buffer( std::basic_string<Elem, Traits, Allocator>& data, std::size_t max_size_in_bytes) noexcept { return mutable_buffers_1(data.size() ? &data[0] : 0, data.size() * sizeof(Elem) < max_size_in_bytes ? data.size() * sizeof(Elem) : max_size_in_bytes ); } # 1489 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits, typename Allocator> [[nodiscard]] inline const_buffers_1 buffer( const std::basic_string<Elem, Traits, Allocator>& data) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(Elem) ); } # 1512 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits, typename Allocator> [[nodiscard]] inline const_buffers_1 buffer( const std::basic_string<Elem, Traits, Allocator>& data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.data(), data.size() * sizeof(Elem) < max_size_in_bytes ? data.size() * sizeof(Elem) : max_size_in_bytes ); } # 1536 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits> [[nodiscard]] inline const_buffers_1 buffer( basic_string_view<Elem, Traits> data) noexcept { return const_buffers_1(data.size() ? &data[0] : 0, data.size() * sizeof(Elem) ); } # 1557 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits> [[nodiscard]] inline const_buffers_1 buffer( basic_string_view<Elem, Traits> data, std::size_t max_size_in_bytes) noexcept { return const_buffers_1(data.size() ? &data[0] : 0, data.size() * sizeof(Elem) < max_size_in_bytes ? data.size() * sizeof(Elem) : max_size_in_bytes ); } # 1583 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> [[nodiscard]] inline mutable_buffers_1 buffer( T& data, typename constraint< is_contiguous_iterator<typename T::iterator>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, const_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, mutable_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_const< typename remove_reference< typename std::iterator_traits<typename T::iterator>::reference >::type >::value, defaulted_constraint >::type = defaulted_constraint()) noexcept { return mutable_buffers_1( data.size() ? detail::to_address(data.begin()) : 0, data.size() * sizeof(typename T::value_type)); } # 1621 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> [[nodiscard]] inline mutable_buffers_1 buffer( T& data, std::size_t max_size_in_bytes, typename constraint< is_contiguous_iterator<typename T::iterator>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, const_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, mutable_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_const< typename remove_reference< typename std::iterator_traits<typename T::iterator>::reference >::type >::value, defaulted_constraint >::type = defaulted_constraint()) noexcept { return mutable_buffers_1( data.size() ? detail::to_address(data.begin()) : 0, data.size() * sizeof(typename T::value_type) < max_size_in_bytes ? data.size() * sizeof(typename T::value_type) : max_size_in_bytes); } # 1658 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> [[nodiscard]] inline const_buffers_1 buffer( T& data, typename constraint< is_contiguous_iterator<typename T::iterator>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, const_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, mutable_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< is_const< typename remove_reference< typename std::iterator_traits<typename T::iterator>::reference >::type >::value, defaulted_constraint >::type = defaulted_constraint()) noexcept { return const_buffers_1( data.size() ? detail::to_address(data.begin()) : 0, data.size() * sizeof(typename T::value_type)); } # 1696 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> [[nodiscard]] inline const_buffers_1 buffer( T& data, std::size_t max_size_in_bytes, typename constraint< is_contiguous_iterator<typename T::iterator>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, const_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, mutable_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< is_const< typename remove_reference< typename std::iterator_traits<typename T::iterator>::reference >::type >::value, defaulted_constraint >::type = defaulted_constraint()) noexcept { return const_buffers_1( data.size() ? detail::to_address(data.begin()) : 0, data.size() * sizeof(typename T::value_type) < max_size_in_bytes ? data.size() * sizeof(typename T::value_type) : max_size_in_bytes); } # 1733 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> [[nodiscard]] inline const_buffers_1 buffer( const T& data, typename constraint< is_contiguous_iterator<typename T::const_iterator>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, const_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, mutable_buffer>::value, defaulted_constraint >::type = defaulted_constraint()) noexcept { return const_buffers_1( data.size() ? detail::to_address(data.begin()) : 0, data.size() * sizeof(typename T::value_type)); } # 1763 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> [[nodiscard]] inline const_buffers_1 buffer( const T& data, std::size_t max_size_in_bytes, typename constraint< is_contiguous_iterator<typename T::const_iterator>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, const_buffer>::value, defaulted_constraint >::type = defaulted_constraint(), typename constraint< !is_convertible<T, mutable_buffer>::value, defaulted_constraint >::type = defaulted_constraint()) noexcept { return const_buffers_1( data.size() ? detail::to_address(data.begin()) : 0, data.size() * sizeof(typename T::value_type) < max_size_in_bytes ? data.size() * sizeof(typename T::value_type) : max_size_in_bytes); } template <typename Elem, typename Traits, typename Allocator> class dynamic_string_buffer { public: typedef const_buffers_1 const_buffers_type; typedef mutable_buffers_1 mutable_buffers_type; # 1815 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 explicit dynamic_string_buffer(std::basic_string<Elem, Traits, Allocator>& s, std::size_t maximum_size = (std::numeric_limits<std::size_t>::max)()) noexcept : string_(s), size_((std::numeric_limits<std::size_t>::max)()), max_size_(maximum_size) { } dynamic_string_buffer(const dynamic_string_buffer& other) noexcept : string_(other.string_), size_(other.size_), max_size_(other.max_size_) { } dynamic_string_buffer(dynamic_string_buffer&& other) noexcept : string_(other.string_), size_(other.size_), max_size_(other.max_size_) { } # 1855 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 std::size_t size() const noexcept { if (size_ != (std::numeric_limits<std::size_t>::max)()) return size_; return (std::min)(string_.size(), max_size()); } std::size_t max_size() const noexcept { return max_size_; } std::size_t capacity() const noexcept { return (std::min)(string_.capacity(), max_size()); } # 1895 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 const_buffers_type data() const noexcept { return const_buffers_type(boost::asio::buffer(string_, size_)); } # 1916 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 mutable_buffers_type data(std::size_t pos, std::size_t n) noexcept { return mutable_buffers_type(boost::asio::buffer( boost::asio::buffer(string_, max_size_) + pos, n)); } # 1934 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 const_buffers_type data(std::size_t pos, std::size_t n) const noexcept { return const_buffers_type(boost::asio::buffer( boost::asio::buffer(string_, max_size_) + pos, n)); } # 1958 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 mutable_buffers_type prepare(std::size_t n) { if (size() > max_size() || max_size() - size() < n) { std::length_error ex("dynamic_string_buffer too long"); boost::asio::detail::throw_exception(ex); } if (size_ == (std::numeric_limits<std::size_t>::max)()) size_ = string_.size(); string_.resize(size_ + n); return boost::asio::buffer(boost::asio::buffer(string_) + size_, n); } # 1987 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void commit(std::size_t n) { size_ += (std::min)(n, string_.size() - size_); string_.resize(size_); } # 2001 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void grow(std::size_t n) { if (size() > max_size() || max_size() - size() < n) { std::length_error ex("dynamic_string_buffer too long"); boost::asio::detail::throw_exception(ex); } string_.resize(size() + n); } # 2019 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void shrink(std::size_t n) { string_.resize(n > size() ? 0 : size() - n); } # 2036 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void consume(std::size_t n) { if (size_ != (std::numeric_limits<std::size_t>::max)()) { std::size_t consume_length = (std::min)(n, size_); string_.erase(0, consume_length); size_ -= consume_length; return; } string_.erase(0, n); } private: std::basic_string<Elem, Traits, Allocator>& string_; std::size_t size_; const std::size_t max_size_; }; template <typename Elem, typename Allocator> class dynamic_vector_buffer { public: typedef const_buffers_1 const_buffers_type; typedef mutable_buffers_1 mutable_buffers_type; # 2083 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 explicit dynamic_vector_buffer(std::vector<Elem, Allocator>& v, std::size_t maximum_size = (std::numeric_limits<std::size_t>::max)()) noexcept : vector_(v), size_((std::numeric_limits<std::size_t>::max)()), max_size_(maximum_size) { } dynamic_vector_buffer(const dynamic_vector_buffer& other) noexcept : vector_(other.vector_), size_(other.size_), max_size_(other.max_size_) { } dynamic_vector_buffer(dynamic_vector_buffer&& other) noexcept : vector_(other.vector_), size_(other.size_), max_size_(other.max_size_) { } # 2123 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 std::size_t size() const noexcept { if (size_ != (std::numeric_limits<std::size_t>::max)()) return size_; return (std::min)(vector_.size(), max_size()); } std::size_t max_size() const noexcept { return max_size_; } # 2151 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 std::size_t capacity() const noexcept { return (std::min)(vector_.capacity(), max_size()); } # 2168 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 const_buffers_type data() const noexcept { return const_buffers_type(boost::asio::buffer(vector_, size_)); } # 2189 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 mutable_buffers_type data(std::size_t pos, std::size_t n) noexcept { return mutable_buffers_type(boost::asio::buffer( boost::asio::buffer(vector_, max_size_) + pos, n)); } # 2207 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 const_buffers_type data(std::size_t pos, std::size_t n) const noexcept { return const_buffers_type(boost::asio::buffer( boost::asio::buffer(vector_, max_size_) + pos, n)); } # 2231 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 mutable_buffers_type prepare(std::size_t n) { if (size () > max_size() || max_size() - size() < n) { std::length_error ex("dynamic_vector_buffer too long"); boost::asio::detail::throw_exception(ex); } if (size_ == (std::numeric_limits<std::size_t>::max)()) size_ = vector_.size(); vector_.resize(size_ + n); return boost::asio::buffer(boost::asio::buffer(vector_) + size_, n); } # 2260 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void commit(std::size_t n) { size_ += (std::min)(n, vector_.size() - size_); vector_.resize(size_); } # 2274 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void grow(std::size_t n) { if (size() > max_size() || max_size() - size() < n) { std::length_error ex("dynamic_vector_buffer too long"); boost::asio::detail::throw_exception(ex); } vector_.resize(size() + n); } # 2292 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void shrink(std::size_t n) { vector_.resize(n > size() ? 0 : size() - n); } # 2309 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 void consume(std::size_t n) { if (size_ != (std::numeric_limits<std::size_t>::max)()) { std::size_t consume_length = (std::min)(n, size_); vector_.erase(vector_.begin(), vector_.begin() + consume_length); size_ -= consume_length; return; } vector_.erase(vector_.begin(), vector_.begin() + (std::min)(size(), n)); } private: std::vector<Elem, Allocator>& vector_; std::size_t size_; const std::size_t max_size_; }; # 2342 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename Elem, typename Traits, typename Allocator> [[nodiscard]] inline dynamic_string_buffer<Elem, Traits, Allocator> dynamic_buffer( std::basic_string<Elem, Traits, Allocator>& data) noexcept { return dynamic_string_buffer<Elem, Traits, Allocator>(data); } template <typename Elem, typename Traits, typename Allocator> [[nodiscard]] inline dynamic_string_buffer<Elem, Traits, Allocator> dynamic_buffer( std::basic_string<Elem, Traits, Allocator>& data, std::size_t max_size) noexcept { return dynamic_string_buffer<Elem, Traits, Allocator>(data, max_size); } template <typename Elem, typename Allocator> [[nodiscard]] inline dynamic_vector_buffer<Elem, Allocator> dynamic_buffer( std::vector<Elem, Allocator>& data) noexcept { return dynamic_vector_buffer<Elem, Allocator>(data); } template <typename Elem, typename Allocator> [[nodiscard]] inline dynamic_vector_buffer<Elem, Allocator> dynamic_buffer( std::vector<Elem, Allocator>& data, std::size_t max_size) noexcept { return dynamic_vector_buffer<Elem, Allocator>(data, max_size); } # 2419 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 namespace detail { inline std::size_t buffer_copy_1(const mutable_buffer& target, const const_buffer& source) { using namespace std; std::size_t target_size = target.size(); std::size_t source_size = source.size(); std::size_t n = target_size < source_size ? target_size : source_size; if (n > 0) memcpy(target.data(), source.data(), n); return n; } template <typename TargetIterator, typename SourceIterator> inline std::size_t buffer_copy(one_buffer, one_buffer, TargetIterator target_begin, TargetIterator, SourceIterator source_begin, SourceIterator) noexcept { return (buffer_copy_1)(*target_begin, *source_begin); } template <typename TargetIterator, typename SourceIterator> inline std::size_t buffer_copy(one_buffer, one_buffer, TargetIterator target_begin, TargetIterator, SourceIterator source_begin, SourceIterator, std::size_t max_bytes_to_copy) noexcept { return (buffer_copy_1)(*target_begin, boost::asio::buffer(*source_begin, max_bytes_to_copy)); } template <typename TargetIterator, typename SourceIterator> std::size_t buffer_copy(one_buffer, multiple_buffers, TargetIterator target_begin, TargetIterator, SourceIterator source_begin, SourceIterator source_end, std::size_t max_bytes_to_copy = (std::numeric_limits<std::size_t>::max)()) noexcept { std::size_t total_bytes_copied = 0; SourceIterator source_iter = source_begin; for (mutable_buffer target_buffer( boost::asio::buffer(*target_begin, max_bytes_to_copy)); target_buffer.size() && source_iter != source_end; ++source_iter) { const_buffer source_buffer(*source_iter); std::size_t bytes_copied = (buffer_copy_1)(target_buffer, source_buffer); total_bytes_copied += bytes_copied; target_buffer += bytes_copied; } return total_bytes_copied; } template <typename TargetIterator, typename SourceIterator> std::size_t buffer_copy(multiple_buffers, one_buffer, TargetIterator target_begin, TargetIterator target_end, SourceIterator source_begin, SourceIterator, std::size_t max_bytes_to_copy = (std::numeric_limits<std::size_t>::max)()) noexcept { std::size_t total_bytes_copied = 0; TargetIterator target_iter = target_begin; for (const_buffer source_buffer( boost::asio::buffer(*source_begin, max_bytes_to_copy)); source_buffer.size() && target_iter != target_end; ++target_iter) { mutable_buffer target_buffer(*target_iter); std::size_t bytes_copied = (buffer_copy_1)(target_buffer, source_buffer); total_bytes_copied += bytes_copied; source_buffer += bytes_copied; } return total_bytes_copied; } template <typename TargetIterator, typename SourceIterator> std::size_t buffer_copy(multiple_buffers, multiple_buffers, TargetIterator target_begin, TargetIterator target_end, SourceIterator source_begin, SourceIterator source_end) noexcept { std::size_t total_bytes_copied = 0; TargetIterator target_iter = target_begin; std::size_t target_buffer_offset = 0; SourceIterator source_iter = source_begin; std::size_t source_buffer_offset = 0; while (target_iter != target_end && source_iter != source_end) { mutable_buffer target_buffer = mutable_buffer(*target_iter) + target_buffer_offset; const_buffer source_buffer = const_buffer(*source_iter) + source_buffer_offset; std::size_t bytes_copied = (buffer_copy_1)(target_buffer, source_buffer); total_bytes_copied += bytes_copied; if (bytes_copied == target_buffer.size()) { ++target_iter; target_buffer_offset = 0; } else target_buffer_offset += bytes_copied; if (bytes_copied == source_buffer.size()) { ++source_iter; source_buffer_offset = 0; } else source_buffer_offset += bytes_copied; } return total_bytes_copied; } template <typename TargetIterator, typename SourceIterator> std::size_t buffer_copy(multiple_buffers, multiple_buffers, TargetIterator target_begin, TargetIterator target_end, SourceIterator source_begin, SourceIterator source_end, std::size_t max_bytes_to_copy) noexcept { std::size_t total_bytes_copied = 0; TargetIterator target_iter = target_begin; std::size_t target_buffer_offset = 0; SourceIterator source_iter = source_begin; std::size_t source_buffer_offset = 0; while (total_bytes_copied != max_bytes_to_copy && target_iter != target_end && source_iter != source_end) { mutable_buffer target_buffer = mutable_buffer(*target_iter) + target_buffer_offset; const_buffer source_buffer = const_buffer(*source_iter) + source_buffer_offset; std::size_t bytes_copied = (buffer_copy_1)( target_buffer, boost::asio::buffer(source_buffer, max_bytes_to_copy - total_bytes_copied)); total_bytes_copied += bytes_copied; if (bytes_copied == target_buffer.size()) { ++target_iter; target_buffer_offset = 0; } else target_buffer_offset += bytes_copied; if (bytes_copied == source_buffer.size()) { ++source_iter; source_buffer_offset = 0; } else source_buffer_offset += bytes_copied; } return total_bytes_copied; } } # 2610 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename MutableBufferSequence, typename ConstBufferSequence> inline std::size_t buffer_copy(const MutableBufferSequence& target, const ConstBufferSequence& source) noexcept { return detail::buffer_copy( detail::buffer_sequence_cardinality<MutableBufferSequence>(), detail::buffer_sequence_cardinality<ConstBufferSequence>(), boost::asio::buffer_sequence_begin(target), boost::asio::buffer_sequence_end(target), boost::asio::buffer_sequence_begin(source), boost::asio::buffer_sequence_end(source)); } # 2647 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename MutableBufferSequence, typename ConstBufferSequence> inline std::size_t buffer_copy(const MutableBufferSequence& target, const ConstBufferSequence& source, std::size_t max_bytes_to_copy) noexcept { return detail::buffer_copy( detail::buffer_sequence_cardinality<MutableBufferSequence>(), detail::buffer_sequence_cardinality<ConstBufferSequence>(), boost::asio::buffer_sequence_begin(target), boost::asio::buffer_sequence_end(target), boost::asio::buffer_sequence_begin(source), boost::asio::buffer_sequence_end(source), max_bytes_to_copy); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 2667 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 2 3 4 namespace boost { namespace asio { class mutable_buffer; class const_buffer; class mutable_registered_buffer; class const_registered_buffer; namespace detail { struct buffer_sequence_memfns_base { void begin(); void end(); void size(); void max_size(); void capacity(); void data(); void prepare(); void commit(); void consume(); void grow(); void shrink(); }; template <typename T> struct buffer_sequence_memfns_derived : T, buffer_sequence_memfns_base { }; template <typename T, T> struct buffer_sequence_memfns_check { }; template <typename> char buffer_sequence_begin_helper(...); template <typename T> char (&buffer_sequence_begin_helper(T* t, typename enable_if<!is_same< decltype(boost::asio::buffer_sequence_begin(*t)), void>::value>::type*))[2]; # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 3 4 template <typename> char buffer_sequence_end_helper(...); template <typename T> char (&buffer_sequence_end_helper(T* t, typename enable_if<!is_same< decltype(boost::asio::buffer_sequence_end(*t)), void>::value>::type*))[2]; # 107 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 3 4 template <typename> char (&size_memfn_helper(...))[2]; template <typename T> char size_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::size>*); template <typename> char (&max_size_memfn_helper(...))[2]; template <typename T> char max_size_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::max_size>*); template <typename> char (&capacity_memfn_helper(...))[2]; template <typename T> char capacity_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::capacity>*); template <typename> char (&data_memfn_helper(...))[2]; template <typename T> char data_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::data>*); template <typename> char (&prepare_memfn_helper(...))[2]; template <typename T> char prepare_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::prepare>*); template <typename> char (&commit_memfn_helper(...))[2]; template <typename T> char commit_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::commit>*); template <typename> char (&consume_memfn_helper(...))[2]; template <typename T> char consume_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::consume>*); template <typename> char (&grow_memfn_helper(...))[2]; template <typename T> char grow_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::grow>*); template <typename> char (&shrink_memfn_helper(...))[2]; template <typename T> char shrink_memfn_helper( buffer_sequence_memfns_check< void (buffer_sequence_memfns_base::*)(), &buffer_sequence_memfns_derived<T>::shrink>*); template <typename, typename> char (&buffer_sequence_element_type_helper(...))[2]; template <typename T, typename Buffer> char buffer_sequence_element_type_helper(T* t, typename enable_if<is_convertible< decltype(*boost::asio::buffer_sequence_begin(*t)), Buffer>::value>::type*); # 209 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 3 4 template <typename> char (&const_buffers_type_typedef_helper(...))[2]; template <typename T> char const_buffers_type_typedef_helper( typename T::const_buffers_type*); template <typename> char (&mutable_buffers_type_typedef_helper(...))[2]; template <typename T> char mutable_buffers_type_typedef_helper( typename T::mutable_buffers_type*); template <typename T, typename Buffer> struct is_buffer_sequence_class : integral_constant<bool, sizeof(buffer_sequence_begin_helper<T>(0, 0)) != 1 && sizeof(buffer_sequence_end_helper<T>(0, 0)) != 1 && sizeof(buffer_sequence_element_type_helper<T, Buffer>(0, 0)) == 1> { }; template <typename T, typename Buffer> struct is_buffer_sequence : conditional<is_class<T>::value, is_buffer_sequence_class<T, Buffer>, false_type>::type { }; template <> struct is_buffer_sequence<mutable_buffer, mutable_buffer> : true_type { }; template <> struct is_buffer_sequence<mutable_buffer, const_buffer> : true_type { }; template <> struct is_buffer_sequence<const_buffer, const_buffer> : true_type { }; template <> struct is_buffer_sequence<const_buffer, mutable_buffer> : false_type { }; template <> struct is_buffer_sequence<mutable_registered_buffer, mutable_buffer> : true_type { }; template <> struct is_buffer_sequence<mutable_registered_buffer, const_buffer> : true_type { }; template <> struct is_buffer_sequence<const_registered_buffer, const_buffer> : true_type { }; template <> struct is_buffer_sequence<const_registered_buffer, mutable_buffer> : false_type { }; template <typename T> struct is_dynamic_buffer_class_v1 : integral_constant<bool, sizeof(size_memfn_helper<T>(0)) != 1 && sizeof(max_size_memfn_helper<T>(0)) != 1 && sizeof(capacity_memfn_helper<T>(0)) != 1 && sizeof(data_memfn_helper<T>(0)) != 1 && sizeof(consume_memfn_helper<T>(0)) != 1 && sizeof(prepare_memfn_helper<T>(0)) != 1 && sizeof(commit_memfn_helper<T>(0)) != 1 && sizeof(const_buffers_type_typedef_helper<T>(0)) == 1 && sizeof(mutable_buffers_type_typedef_helper<T>(0)) == 1> { }; template <typename T> struct is_dynamic_buffer_v1 : conditional<is_class<T>::value, is_dynamic_buffer_class_v1<T>, false_type>::type { }; template <typename T> struct is_dynamic_buffer_class_v2 : integral_constant<bool, sizeof(size_memfn_helper<T>(0)) != 1 && sizeof(max_size_memfn_helper<T>(0)) != 1 && sizeof(capacity_memfn_helper<T>(0)) != 1 && sizeof(data_memfn_helper<T>(0)) != 1 && sizeof(consume_memfn_helper<T>(0)) != 1 && sizeof(grow_memfn_helper<T>(0)) != 1 && sizeof(shrink_memfn_helper<T>(0)) != 1 && sizeof(const_buffers_type_typedef_helper<T>(0)) == 1 && sizeof(mutable_buffers_type_typedef_helper<T>(0)) == 1> { }; template <typename T> struct is_dynamic_buffer_v2 : conditional<is_class<T>::value, is_dynamic_buffer_class_v2<T>, false_type>::type { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 339 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/is_buffer_sequence.hpp" 2 3 4 # 2668 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 2669 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 namespace boost { namespace asio { template <typename T> struct is_mutable_buffer_sequence : boost::asio::detail::is_buffer_sequence<T, mutable_buffer> { }; template <typename T> struct is_const_buffer_sequence : boost::asio::detail::is_buffer_sequence<T, const_buffer> { }; template <typename T> struct is_dynamic_buffer_v1 : boost::asio::detail::is_dynamic_buffer_v1<T> { }; template <typename T> struct is_dynamic_buffer_v2 : boost::asio::detail::is_dynamic_buffer_v2<T> { }; # 2730 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 3 4 template <typename T> struct is_dynamic_buffer : boost::asio::is_dynamic_buffer_v1<T> { }; namespace buffer_literals { namespace detail { template <char... Chars> struct chars {}; template <unsigned char... Bytes> struct bytes {}; template <typename Bytes, char... Chars> struct bin_literal; template <unsigned char... Bytes> struct bin_literal<bytes<Bytes...> > { static const std::size_t size = sizeof...(Bytes); static const unsigned char data[sizeof...(Bytes)]; }; template <unsigned char... Bytes> const unsigned char bin_literal<bytes<Bytes...> >::data[sizeof...(Bytes)] = { Bytes... }; template <unsigned char... Bytes, char Bit7, char Bit6, char Bit5, char Bit4, char Bit3, char Bit2, char Bit1, char Bit0, char... Chars> struct bin_literal<bytes<Bytes...>, Bit7, Bit6, Bit5, Bit4, Bit3, Bit2, Bit1, Bit0, Chars...> : bin_literal< bytes<Bytes..., static_cast<unsigned char>( (Bit7 == '1' ? 0x80 : 0) | (Bit6 == '1' ? 0x40 : 0) | (Bit5 == '1' ? 0x20 : 0) | (Bit4 == '1' ? 0x10 : 0) | (Bit3 == '1' ? 0x08 : 0) | (Bit2 == '1' ? 0x04 : 0) | (Bit1 == '1' ? 0x02 : 0) | (Bit0 == '1' ? 0x01 : 0)) >, Chars...> {}; template <unsigned char... Bytes, char... Chars> struct bin_literal<bytes<Bytes...>, Chars...> { static_assert(sizeof...(Chars) == 0, "number of digits in a binary buffer literal must be a multiple of 8"); static const std::size_t size = 0; static const unsigned char data[1]; }; template <unsigned char... Bytes, char... Chars> const unsigned char bin_literal<bytes<Bytes...>, Chars...>::data[1] = {}; template <typename Bytes, char... Chars> struct hex_literal; template <unsigned char... Bytes> struct hex_literal<bytes<Bytes...> > { static const std::size_t size = sizeof...(Bytes); static const unsigned char data[sizeof...(Bytes)]; }; template <unsigned char... Bytes> const unsigned char hex_literal<bytes<Bytes...> >::data[sizeof...(Bytes)] = { Bytes... }; template <unsigned char... Bytes, char Hi, char Lo, char... Chars> struct hex_literal<bytes<Bytes...>, Hi, Lo, Chars...> : hex_literal< bytes<Bytes..., static_cast<unsigned char>( Lo >= 'A' && Lo <= 'F' ? Lo - 'A' + 10 : (Lo >= 'a' && Lo <= 'f' ? Lo - 'a' + 10 : Lo - '0')) | ((static_cast<unsigned char>( Hi >= 'A' && Hi <= 'F' ? Hi - 'A' + 10 : (Hi >= 'a' && Hi <= 'f' ? Hi - 'a' + 10 : Hi - '0'))) << 4) >, Chars...> {}; template <unsigned char... Bytes, char Char> struct hex_literal<bytes<Bytes...>, Char> { static_assert(!Char, "a hexadecimal buffer literal must have an even number of digits"); static const std::size_t size = 0; static const unsigned char data[1]; }; template <unsigned char... Bytes, char Char> const unsigned char hex_literal<bytes<Bytes...>, Char>::data[1] = {}; template <template <typename, char...> class Literal, typename Clean, char... Raw> struct remove_separators; template <template <typename, char...> class Literal, char... Clean, char... Raw> struct remove_separators<Literal, chars<Clean...>, '\'', Raw...> : remove_separators<Literal, chars<Clean...>, Raw...> {}; template <template <typename, char...> class Literal, char... Clean, char C, char... Raw> struct remove_separators<Literal, chars<Clean...>, C, Raw...> : remove_separators<Literal, chars<Clean..., C>, Raw...> {}; template <template <typename, char...> class Literal, char... Clean> struct remove_separators<Literal, chars<Clean...> > : Literal<bytes<>, Clean...> {}; template <char... Chars> struct literal; template <char... Chars> struct literal<'0', 'b', Chars...> : remove_separators<bin_literal, chars<>, Chars...>{}; template <char... Chars> struct literal<'0', 'B', Chars...> : remove_separators<bin_literal, chars<>, Chars...>{}; template <char... Chars> struct literal<'0', 'x', Chars...> : remove_separators<hex_literal, chars<>, Chars...>{}; template <char... Chars> struct literal<'0', 'X', Chars...> : remove_separators<hex_literal, chars<>, Chars...>{}; } inline const_buffers_1 operator"" _buf(const char* data, std::size_t n) { return const_buffers_1(data, n); } template <char... Chars> inline const_buffers_1 operator"" _buf() { return const_buffers_1( +detail::literal<Chars...>::data, detail::literal<Chars...>::size); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 2912 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/registered_buffer.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/registered_buffer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/registered_buffer.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class buffer_registration_base; } class const_registered_buffer; class registered_buffer_id { public: typedef int native_handle_type; registered_buffer_id() noexcept : scope_(0), index_(-1) { } native_handle_type native_handle() const noexcept { return index_; } friend bool operator==(const registered_buffer_id& lhs, const registered_buffer_id& rhs) noexcept { return lhs.scope_ == rhs.scope_ && lhs.index_ == rhs.index_; } friend bool operator!=(const registered_buffer_id& lhs, const registered_buffer_id& rhs) noexcept { return lhs.scope_ != rhs.scope_ || lhs.index_ != rhs.index_; } private: friend class detail::buffer_registration_base; registered_buffer_id(const void* scope, int index) noexcept : scope_(scope), index_(index) { } const void* scope_; int index_; }; class mutable_registered_buffer { public: mutable_registered_buffer() noexcept : buffer_(), id_() { } const mutable_buffer& buffer() const noexcept { return buffer_; } void* data() const noexcept { return buffer_.data(); } std::size_t size() const noexcept { return buffer_.size(); } const registered_buffer_id& id() const noexcept { return id_; } mutable_registered_buffer& operator+=(std::size_t n) noexcept { buffer_ += n; return *this; } private: friend class detail::buffer_registration_base; mutable_registered_buffer(const mutable_buffer& b, const registered_buffer_id& i) noexcept : buffer_(b), id_(i) { } friend mutable_registered_buffer buffer( const mutable_registered_buffer& b, std::size_t n) noexcept; mutable_buffer buffer_; registered_buffer_id id_; }; class const_registered_buffer { public: const_registered_buffer() noexcept : buffer_(), id_() { } const_registered_buffer( const mutable_registered_buffer& b) noexcept : buffer_(b.buffer()), id_(b.id()) { } const const_buffer& buffer() const noexcept { return buffer_; } const void* data() const noexcept { return buffer_.data(); } std::size_t size() const noexcept { return buffer_.size(); } const registered_buffer_id& id() const noexcept { return id_; } const_registered_buffer& operator+=(std::size_t n) noexcept { buffer_ += n; return *this; } private: const_registered_buffer(const const_buffer& b, const registered_buffer_id& i) noexcept : buffer_(b), id_(i) { } friend const_registered_buffer buffer( const const_registered_buffer& b, std::size_t n) noexcept; const_buffer buffer_; registered_buffer_id id_; }; inline const mutable_buffer* buffer_sequence_begin( const mutable_registered_buffer& b) noexcept { return &b.buffer(); } inline const const_buffer* buffer_sequence_begin( const const_registered_buffer& b) noexcept { return &b.buffer(); } inline const mutable_buffer* buffer_sequence_end( const mutable_registered_buffer& b) noexcept { return &b.buffer() + 1; } inline const const_buffer* buffer_sequence_end( const const_registered_buffer& b) noexcept { return &b.buffer() + 1; } inline mutable_registered_buffer buffer( const mutable_registered_buffer& b) noexcept { return b; } inline const_registered_buffer buffer( const const_registered_buffer& b) noexcept { return b; } inline mutable_registered_buffer buffer( const mutable_registered_buffer& b, std::size_t n) noexcept { return mutable_registered_buffer(buffer(b.buffer_, n), b.id_); } inline const_registered_buffer buffer( const const_registered_buffer& b, std::size_t n) noexcept { return const_registered_buffer(buffer(b.buffer_, n), b.id_); } # 312 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/registered_buffer.hpp" 3 4 inline mutable_registered_buffer operator+( const mutable_registered_buffer& b, std::size_t n) noexcept { mutable_registered_buffer tmp(b); tmp += n; return tmp; } inline mutable_registered_buffer operator+(std::size_t n, const mutable_registered_buffer& b) noexcept { return b + n; } inline const_registered_buffer operator+(const const_registered_buffer& b, std::size_t n) noexcept { const_registered_buffer tmp(b); tmp += n; return tmp; } inline const_registered_buffer operator+(std::size_t n, const const_registered_buffer& b) noexcept { return b + n; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 357 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/registered_buffer.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class buffer_sequence_adapter_base { # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 3 4 public: enum { max_buffers = 64 < max_iov_len ? 64 : max_iov_len }; protected: typedef iovec native_buffer_type; static void init_iov_base(void*& base, void* addr) { base = addr; } template <typename T> static void init_iov_base(T& base, void* addr) { base = static_cast<T>(addr); } static void init_native_buffer(iovec& iov, const boost::asio::mutable_buffer& buffer) { init_iov_base(iov.iov_base, buffer.data()); iov.iov_len = buffer.size(); } static void init_native_buffer(iovec& iov, const boost::asio::const_buffer& buffer) { init_iov_base(iov.iov_base, const_cast<void*>(buffer.data())); iov.iov_len = buffer.size(); } }; template <typename Buffer, typename Buffers> class buffer_sequence_adapter : buffer_sequence_adapter_base { public: enum { is_single_buffer = false }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter(const Buffers& buffer_sequence) : count_(0), total_buffer_size_(0) { buffer_sequence_adapter::init( boost::asio::buffer_sequence_begin(buffer_sequence), boost::asio::buffer_sequence_end(buffer_sequence)); } native_buffer_type* buffers() { return buffers_; } std::size_t count() const { return count_; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const Buffers& buffer_sequence) { return buffer_sequence_adapter::all_empty( boost::asio::buffer_sequence_begin(buffer_sequence), boost::asio::buffer_sequence_end(buffer_sequence)); } static void validate(const Buffers& buffer_sequence) { buffer_sequence_adapter::validate( boost::asio::buffer_sequence_begin(buffer_sequence), boost::asio::buffer_sequence_end(buffer_sequence)); } static Buffer first(const Buffers& buffer_sequence) { return buffer_sequence_adapter::first( boost::asio::buffer_sequence_begin(buffer_sequence), boost::asio::buffer_sequence_end(buffer_sequence)); } enum { linearisation_storage_size = 8192 }; static Buffer linearise(const Buffers& buffer_sequence, const boost::asio::mutable_buffer& storage) { return buffer_sequence_adapter::linearise( boost::asio::buffer_sequence_begin(buffer_sequence), boost::asio::buffer_sequence_end(buffer_sequence), storage); } private: template <typename Iterator> void init(Iterator begin, Iterator end) { Iterator iter = begin; for (; iter != end && count_ < max_buffers; ++iter, ++count_) { Buffer buffer(*iter); init_native_buffer(buffers_[count_], buffer); total_buffer_size_ += buffer.size(); } } template <typename Iterator> static bool all_empty(Iterator begin, Iterator end) { Iterator iter = begin; std::size_t i = 0; for (; iter != end && i < max_buffers; ++iter, ++i) if (Buffer(*iter).size() > 0) return false; return true; } template <typename Iterator> static void validate(Iterator begin, Iterator end) { Iterator iter = begin; for (; iter != end; ++iter) { Buffer buffer(*iter); buffer.data(); } } template <typename Iterator> static Buffer first(Iterator begin, Iterator end) { Iterator iter = begin; for (; iter != end; ++iter) { Buffer buffer(*iter); if (buffer.size() != 0) return buffer; } return Buffer(); } template <typename Iterator> static Buffer linearise(Iterator begin, Iterator end, const boost::asio::mutable_buffer& storage) { boost::asio::mutable_buffer unused_storage = storage; Iterator iter = begin; while (iter != end && unused_storage.size() != 0) { Buffer buffer(*iter); ++iter; if (buffer.size() == 0) continue; if (unused_storage.size() == storage.size()) { if (iter == end) return buffer; if (buffer.size() >= unused_storage.size()) return buffer; } unused_storage += boost::asio::buffer_copy(unused_storage, buffer); } return Buffer(storage.data(), storage.size() - unused_storage.size()); } native_buffer_type buffers_[max_buffers]; std::size_t count_; std::size_t total_buffer_size_; }; template <typename Buffer> class buffer_sequence_adapter<Buffer, boost::asio::mutable_buffer> : buffer_sequence_adapter_base { public: enum { is_single_buffer = true }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter( const boost::asio::mutable_buffer& buffer_sequence) { init_native_buffer(buffer_, Buffer(buffer_sequence)); total_buffer_size_ = buffer_sequence.size(); } native_buffer_type* buffers() { return &buffer_; } std::size_t count() const { return 1; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const boost::asio::mutable_buffer& buffer_sequence) { return buffer_sequence.size() == 0; } static void validate(const boost::asio::mutable_buffer& buffer_sequence) { buffer_sequence.data(); } static Buffer first(const boost::asio::mutable_buffer& buffer_sequence) { return Buffer(buffer_sequence); } enum { linearisation_storage_size = 1 }; static Buffer linearise(const boost::asio::mutable_buffer& buffer_sequence, const Buffer&) { return Buffer(buffer_sequence); } private: native_buffer_type buffer_; std::size_t total_buffer_size_; }; template <typename Buffer> class buffer_sequence_adapter<Buffer, boost::asio::const_buffer> : buffer_sequence_adapter_base { public: enum { is_single_buffer = true }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter( const boost::asio::const_buffer& buffer_sequence) { init_native_buffer(buffer_, Buffer(buffer_sequence)); total_buffer_size_ = buffer_sequence.size(); } native_buffer_type* buffers() { return &buffer_; } std::size_t count() const { return 1; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const boost::asio::const_buffer& buffer_sequence) { return buffer_sequence.size() == 0; } static void validate(const boost::asio::const_buffer& buffer_sequence) { buffer_sequence.data(); } static Buffer first(const boost::asio::const_buffer& buffer_sequence) { return Buffer(buffer_sequence); } enum { linearisation_storage_size = 1 }; static Buffer linearise(const boost::asio::const_buffer& buffer_sequence, const Buffer&) { return Buffer(buffer_sequence); } private: native_buffer_type buffer_; std::size_t total_buffer_size_; }; template <typename Buffer> class buffer_sequence_adapter<Buffer, boost::asio::mutable_buffers_1> : buffer_sequence_adapter_base { public: enum { is_single_buffer = true }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter( const boost::asio::mutable_buffers_1& buffer_sequence) { init_native_buffer(buffer_, Buffer(buffer_sequence)); total_buffer_size_ = buffer_sequence.size(); } native_buffer_type* buffers() { return &buffer_; } std::size_t count() const { return 1; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const boost::asio::mutable_buffers_1& buffer_sequence) { return buffer_sequence.size() == 0; } static void validate(const boost::asio::mutable_buffers_1& buffer_sequence) { buffer_sequence.data(); } static Buffer first(const boost::asio::mutable_buffers_1& buffer_sequence) { return Buffer(buffer_sequence); } enum { linearisation_storage_size = 1 }; static Buffer linearise(const boost::asio::mutable_buffers_1& buffer_sequence, const Buffer&) { return Buffer(buffer_sequence); } private: native_buffer_type buffer_; std::size_t total_buffer_size_; }; template <typename Buffer> class buffer_sequence_adapter<Buffer, boost::asio::const_buffers_1> : buffer_sequence_adapter_base { public: enum { is_single_buffer = true }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter( const boost::asio::const_buffers_1& buffer_sequence) { init_native_buffer(buffer_, Buffer(buffer_sequence)); total_buffer_size_ = buffer_sequence.size(); } native_buffer_type* buffers() { return &buffer_; } std::size_t count() const { return 1; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const boost::asio::const_buffers_1& buffer_sequence) { return buffer_sequence.size() == 0; } static void validate(const boost::asio::const_buffers_1& buffer_sequence) { buffer_sequence.data(); } static Buffer first(const boost::asio::const_buffers_1& buffer_sequence) { return Buffer(buffer_sequence); } enum { linearisation_storage_size = 1 }; static Buffer linearise(const boost::asio::const_buffers_1& buffer_sequence, const Buffer&) { return Buffer(buffer_sequence); } private: native_buffer_type buffer_; std::size_t total_buffer_size_; }; template <typename Buffer> class buffer_sequence_adapter<Buffer, boost::asio::mutable_registered_buffer> : buffer_sequence_adapter_base { public: enum { is_single_buffer = true }; enum { is_registered_buffer = true }; explicit buffer_sequence_adapter( const boost::asio::mutable_registered_buffer& buffer_sequence) { init_native_buffer(buffer_, buffer_sequence.buffer()); total_buffer_size_ = buffer_sequence.size(); registered_id_ = buffer_sequence.id(); } native_buffer_type* buffers() { return &buffer_; } std::size_t count() const { return 1; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_id_; } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty( const boost::asio::mutable_registered_buffer& buffer_sequence) { return buffer_sequence.size() == 0; } static void validate( const boost::asio::mutable_registered_buffer& buffer_sequence) { buffer_sequence.data(); } static Buffer first( const boost::asio::mutable_registered_buffer& buffer_sequence) { return Buffer(buffer_sequence.buffer()); } enum { linearisation_storage_size = 1 }; static Buffer linearise( const boost::asio::mutable_registered_buffer& buffer_sequence, const Buffer&) { return Buffer(buffer_sequence.buffer()); } private: native_buffer_type buffer_; std::size_t total_buffer_size_; registered_buffer_id registered_id_; }; template <typename Buffer> class buffer_sequence_adapter<Buffer, boost::asio::const_registered_buffer> : buffer_sequence_adapter_base { public: enum { is_single_buffer = true }; enum { is_registered_buffer = true }; explicit buffer_sequence_adapter( const boost::asio::const_registered_buffer& buffer_sequence) { init_native_buffer(buffer_, buffer_sequence.buffer()); total_buffer_size_ = buffer_sequence.size(); registered_id_ = buffer_sequence.id(); } native_buffer_type* buffers() { return &buffer_; } std::size_t count() const { return 1; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_id_; } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty( const boost::asio::const_registered_buffer& buffer_sequence) { return buffer_sequence.size() == 0; } static void validate( const boost::asio::const_registered_buffer& buffer_sequence) { buffer_sequence.data(); } static Buffer first( const boost::asio::const_registered_buffer& buffer_sequence) { return Buffer(buffer_sequence.buffer()); } enum { linearisation_storage_size = 1 }; static Buffer linearise( const boost::asio::const_registered_buffer& buffer_sequence, const Buffer&) { return Buffer(buffer_sequence.buffer()); } private: native_buffer_type buffer_; std::size_t total_buffer_size_; registered_buffer_id registered_id_; }; template <typename Buffer, typename Elem> class buffer_sequence_adapter<Buffer, boost::array<Elem, 2> > : buffer_sequence_adapter_base { public: enum { is_single_buffer = false }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter( const boost::array<Elem, 2>& buffer_sequence) { init_native_buffer(buffers_[0], Buffer(buffer_sequence[0])); init_native_buffer(buffers_[1], Buffer(buffer_sequence[1])); total_buffer_size_ = buffer_sequence[0].size() + buffer_sequence[1].size(); } native_buffer_type* buffers() { return buffers_; } std::size_t count() const { return 2; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const boost::array<Elem, 2>& buffer_sequence) { return buffer_sequence[0].size() == 0 && buffer_sequence[1].size() == 0; } static void validate(const boost::array<Elem, 2>& buffer_sequence) { buffer_sequence[0].data(); buffer_sequence[1].data(); } static Buffer first(const boost::array<Elem, 2>& buffer_sequence) { return Buffer(buffer_sequence[0].size() != 0 ? buffer_sequence[0] : buffer_sequence[1]); } enum { linearisation_storage_size = 8192 }; static Buffer linearise(const boost::array<Elem, 2>& buffer_sequence, const boost::asio::mutable_buffer& storage) { if (buffer_sequence[0].size() == 0) return Buffer(buffer_sequence[1]); if (buffer_sequence[1].size() == 0) return Buffer(buffer_sequence[0]); return Buffer(storage.data(), boost::asio::buffer_copy(storage, buffer_sequence)); } private: native_buffer_type buffers_[2]; std::size_t total_buffer_size_; }; template <typename Buffer, typename Elem> class buffer_sequence_adapter<Buffer, std::array<Elem, 2> > : buffer_sequence_adapter_base { public: enum { is_single_buffer = false }; enum { is_registered_buffer = false }; explicit buffer_sequence_adapter( const std::array<Elem, 2>& buffer_sequence) { init_native_buffer(buffers_[0], Buffer(buffer_sequence[0])); init_native_buffer(buffers_[1], Buffer(buffer_sequence[1])); total_buffer_size_ = buffer_sequence[0].size() + buffer_sequence[1].size(); } native_buffer_type* buffers() { return buffers_; } std::size_t count() const { return 2; } std::size_t total_size() const { return total_buffer_size_; } registered_buffer_id registered_id() const { return registered_buffer_id(); } bool all_empty() const { return total_buffer_size_ == 0; } static bool all_empty(const std::array<Elem, 2>& buffer_sequence) { return buffer_sequence[0].size() == 0 && buffer_sequence[1].size() == 0; } static void validate(const std::array<Elem, 2>& buffer_sequence) { buffer_sequence[0].data(); buffer_sequence[1].data(); } static Buffer first(const std::array<Elem, 2>& buffer_sequence) { return Buffer(buffer_sequence[0].size() != 0 ? buffer_sequence[0] : buffer_sequence[1]); } enum { linearisation_storage_size = 8192 }; static Buffer linearise(const std::array<Elem, 2>& buffer_sequence, const boost::asio::mutable_buffer& storage) { if (buffer_sequence[0].size() == 0) return Buffer(buffer_sequence[1]); if (buffer_sequence[1].size() == 0) return Buffer(buffer_sequence[0]); return Buffer(storage.data(), boost::asio::buffer_copy(storage, buffer_sequence)); } private: native_buffer_type buffers_[2]; std::size_t total_buffer_size_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 838 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/buffer_sequence_adapter.ipp" 1 3 4 # 841 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_sequence_adapter.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_null_buffers_op.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_null_buffers_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_null_buffers_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename IoExecutor> class reactive_null_buffers_op : public reactor_op { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_null_buffers_op* v; reactive_null_buffers_op* p; ~ptr() { reset(); } static reactive_null_buffers_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_null_buffers_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_null_buffers_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_null_buffers_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_null_buffers_op*>(v), 1); v = 0; } } }; reactive_null_buffers_op(const boost::system::error_code& success_ec, Handler& handler, const IoExecutor& io_ex) : reactor_op(success_ec, &reactive_null_buffers_op::do_perform, &reactive_null_buffers_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static status do_perform(reactor_op*) { return done; } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_null_buffers_op* o(static_cast<reactive_null_buffers_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_null_buffers_op* o(static_cast<reactive_null_buffers_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_null_buffers_op.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_accept_op.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_accept_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_holder.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_holder.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { namespace socket_ops { enum { user_set_non_blocking = 1, internal_non_blocking = 2, non_blocking = user_set_non_blocking | internal_non_blocking, enable_connection_aborted = 4, user_set_linger = 8, stream_oriented = 16, datagram_oriented = 32, possible_dup = 64 }; typedef unsigned char state_type; struct noop_deleter { void operator()(void*) {} }; typedef shared_ptr<void> shared_cancel_token_type; typedef weak_ptr<void> weak_cancel_token_type; inline socket_type accept(socket_type s, void* addr, std::size_t* addrlen, boost::system::error_code& ec); inline socket_type sync_accept(socket_type s, state_type state, void* addr, std::size_t* addrlen, boost::system::error_code& ec); # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 inline bool non_blocking_accept(socket_type s, state_type state, void* addr, std::size_t* addrlen, boost::system::error_code& ec, socket_type& new_socket); inline int bind(socket_type s, const void* addr, std::size_t addrlen, boost::system::error_code& ec); inline int close(socket_type s, state_type& state, bool destruction, boost::system::error_code& ec); inline bool set_user_non_blocking(socket_type s, state_type& state, bool value, boost::system::error_code& ec); inline bool set_internal_non_blocking(socket_type s, state_type& state, bool value, boost::system::error_code& ec); inline int shutdown(socket_type s, int what, boost::system::error_code& ec); inline int connect(socket_type s, const void* addr, std::size_t addrlen, boost::system::error_code& ec); inline void sync_connect(socket_type s, const void* addr, std::size_t addrlen, boost::system::error_code& ec); # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 inline bool non_blocking_connect(socket_type s, boost::system::error_code& ec); inline int socketpair(int af, int type, int protocol, socket_type sv[2], boost::system::error_code& ec); inline bool sockatmark(socket_type s, boost::system::error_code& ec); inline size_t available(socket_type s, boost::system::error_code& ec); inline int listen(socket_type s, int backlog, boost::system::error_code& ec); typedef iovec buf; inline void init_buf(buf& b, void* data, size_t size); inline void init_buf(buf& b, const void* data, size_t size); inline signed_size_type recv(socket_type s, buf* bufs, size_t count, int flags, boost::system::error_code& ec); inline signed_size_type recv1(socket_type s, void* data, size_t size, int flags, boost::system::error_code& ec); inline size_t sync_recv(socket_type s, state_type state, buf* bufs, size_t count, int flags, bool all_empty, boost::system::error_code& ec); inline size_t sync_recv1(socket_type s, state_type state, void* data, size_t size, int flags, boost::system::error_code& ec); # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 inline bool non_blocking_recv(socket_type s, buf* bufs, size_t count, int flags, bool is_stream, boost::system::error_code& ec, size_t& bytes_transferred); inline bool non_blocking_recv1(socket_type s, void* data, size_t size, int flags, bool is_stream, boost::system::error_code& ec, size_t& bytes_transferred); inline signed_size_type recvfrom(socket_type s, buf* bufs, size_t count, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec); inline signed_size_type recvfrom1(socket_type s, void* data, size_t size, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec); inline size_t sync_recvfrom(socket_type s, state_type state, buf* bufs, size_t count, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec); inline size_t sync_recvfrom1(socket_type s, state_type state, void* data, size_t size, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec); # 192 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 inline bool non_blocking_recvfrom(socket_type s, buf* bufs, size_t count, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec, size_t& bytes_transferred); inline bool non_blocking_recvfrom1(socket_type s, void* data, size_t size, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec, size_t& bytes_transferred); inline signed_size_type recvmsg(socket_type s, buf* bufs, size_t count, int in_flags, int& out_flags, boost::system::error_code& ec); inline size_t sync_recvmsg(socket_type s, state_type state, buf* bufs, size_t count, int in_flags, int& out_flags, boost::system::error_code& ec); # 218 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 inline bool non_blocking_recvmsg(socket_type s, buf* bufs, size_t count, int in_flags, int& out_flags, boost::system::error_code& ec, size_t& bytes_transferred); inline signed_size_type send(socket_type s, const buf* bufs, size_t count, int flags, boost::system::error_code& ec); inline signed_size_type send1(socket_type s, const void* data, size_t size, int flags, boost::system::error_code& ec); inline size_t sync_send(socket_type s, state_type state, const buf* bufs, size_t count, int flags, bool all_empty, boost::system::error_code& ec); inline size_t sync_send1(socket_type s, state_type state, const void* data, size_t size, int flags, boost::system::error_code& ec); # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 3 4 inline bool non_blocking_send(socket_type s, const buf* bufs, size_t count, int flags, boost::system::error_code& ec, size_t& bytes_transferred); inline bool non_blocking_send1(socket_type s, const void* data, size_t size, int flags, boost::system::error_code& ec, size_t& bytes_transferred); inline signed_size_type sendto(socket_type s, const buf* bufs, size_t count, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec); inline signed_size_type sendto1(socket_type s, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec); inline size_t sync_sendto(socket_type s, state_type state, const buf* bufs, size_t count, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec); inline size_t sync_sendto1(socket_type s, state_type state, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec); inline bool non_blocking_sendto(socket_type s, const buf* bufs, size_t count, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec, size_t& bytes_transferred); inline bool non_blocking_sendto1(socket_type s, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec, size_t& bytes_transferred); inline socket_type socket(int af, int type, int protocol, boost::system::error_code& ec); inline int setsockopt(socket_type s, state_type& state, int level, int optname, const void* optval, std::size_t optlen, boost::system::error_code& ec); inline int getsockopt(socket_type s, state_type state, int level, int optname, void* optval, size_t* optlen, boost::system::error_code& ec); inline int getpeername(socket_type s, void* addr, std::size_t* addrlen, bool cached, boost::system::error_code& ec); inline int getsockname(socket_type s, void* addr, std::size_t* addrlen, boost::system::error_code& ec); inline int ioctl(socket_type s, state_type& state, int cmd, ioctl_arg_type* arg, boost::system::error_code& ec); inline int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timeval* timeout, boost::system::error_code& ec); inline int poll_read(socket_type s, state_type state, int msec, boost::system::error_code& ec); inline int poll_write(socket_type s, state_type state, int msec, boost::system::error_code& ec); inline int poll_error(socket_type s, state_type state, int msec, boost::system::error_code& ec); inline int poll_connect(socket_type s, int msec, boost::system::error_code& ec); inline const char* inet_ntop(int af, const void* src, char* dest, size_t length, unsigned long scope_id, boost::system::error_code& ec); inline int inet_pton(int af, const char* src, void* dest, unsigned long* scope_id, boost::system::error_code& ec); inline int gethostname(char* name, int namelen, boost::system::error_code& ec); inline boost::system::error_code getaddrinfo(const char* host, const char* service, const addrinfo_type& hints, addrinfo_type** result, boost::system::error_code& ec); inline boost::system::error_code background_getaddrinfo( const weak_cancel_token_type& cancel_token, const char* host, const char* service, const addrinfo_type& hints, addrinfo_type** result, boost::system::error_code& ec); inline void freeaddrinfo(addrinfo_type* ai); inline boost::system::error_code getnameinfo(const void* addr, std::size_t addrlen, char* host, std::size_t hostlen, char* serv, std::size_t servlen, int flags, boost::system::error_code& ec); inline boost::system::error_code sync_getnameinfo(const void* addr, std::size_t addrlen, char* host, std::size_t hostlen, char* serv, std::size_t servlen, int sock_type, boost::system::error_code& ec); inline boost::system::error_code background_getnameinfo( const weak_cancel_token_type& cancel_token, const void* addr, std::size_t addrlen, char* host, std::size_t hostlen, char* serv, std::size_t servlen, int sock_type, boost::system::error_code& ec); inline u_long_type network_to_host_long(u_long_type value); inline u_long_type host_to_network_long(u_long_type value); inline u_short_type network_to_host_short(u_short_type value); inline u_short_type host_to_network_short(u_short_type value); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 372 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 # 1 "/usr/include/c++/13/cctype" 1 3 4 # 39 "/usr/include/c++/13/cctype" 3 4 # 40 "/usr/include/c++/13/cctype" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 1 "/usr/include/c++/13/cerrno" 1 3 4 # 39 "/usr/include/c++/13/cerrno" 3 4 # 40 "/usr/include/c++/13/cerrno" 3 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { namespace socket_ops { # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 inline void clear_last_error() { (*__errno_location ()) = 0; } inline void get_last_error( boost::system::error_code& ec, bool is_error_condition) { if (!is_error_condition) { boost::asio::error::clear(ec); } else { ec = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); } } template <typename SockLenType> inline socket_type call_accept(SockLenType msghdr::*, socket_type s, void* addr, std::size_t* addrlen) { SockLenType tmp_addrlen = addrlen ? (SockLenType)*addrlen : 0; socket_type result = ::accept(s, static_cast<socket_addr_type*>(addr), addrlen ? &tmp_addrlen : 0); if (addrlen) *addrlen = (std::size_t)tmp_addrlen; return result; } socket_type accept(socket_type s, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return invalid_socket; } socket_type new_s = call_accept(&msghdr::msg_namelen, s, addr, addrlen); get_last_error(ec, new_s == invalid_socket); if (new_s == invalid_socket) return new_s; # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 boost::asio::error::clear(ec); return new_s; } socket_type sync_accept(socket_type s, state_type state, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { for (;;) { socket_type new_socket = socket_ops::accept(s, addr, addrlen, ec); if (new_socket != invalid_socket) return new_socket; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) { if (state & user_set_non_blocking) return invalid_socket; } else if (ec == boost::asio::error::connection_aborted) { if (state & enable_connection_aborted) return invalid_socket; } else if (ec.value() == 71) { if (state & enable_connection_aborted) return invalid_socket; } else return invalid_socket; if (socket_ops::poll_read(s, 0, -1, ec) < 0) return invalid_socket; } } # 229 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 bool non_blocking_accept(socket_type s, state_type state, void* addr, std::size_t* addrlen, boost::system::error_code& ec, socket_type& new_socket) { for (;;) { new_socket = socket_ops::accept(s, addr, addrlen, ec); if (new_socket != invalid_socket) return true; if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) { } else if (ec == boost::asio::error::connection_aborted) { if (state & enable_connection_aborted) return true; } else if (ec.value() == 71) { if (state & enable_connection_aborted) return true; } else return true; return false; } } template <typename SockLenType> inline int call_bind(SockLenType msghdr::*, socket_type s, const void* addr, std::size_t addrlen) { return ::bind(s, static_cast<const socket_addr_type*>(addr), (SockLenType)addrlen); } int bind(socket_type s, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } int result = call_bind(&msghdr::msg_namelen, s, addr, addrlen); get_last_error(ec, result != 0); return result; } int close(socket_type s, state_type& state, bool destruction, boost::system::error_code& ec) { int result = 0; if (s != invalid_socket) { if (destruction && (state & user_set_linger)) { ::linger opt; opt.l_onoff = 0; opt.l_linger = 0; boost::system::error_code ignored_ec; socket_ops::setsockopt(s, state, 1, 13, &opt, sizeof(opt), ignored_ec); } result = ::close(s); get_last_error(ec, result != 0); if (result != 0 && (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again)) { # 342 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 ioctl_arg_type arg = 0; ::ioctl(s, 0x5421, &arg); state &= ~non_blocking; result = ::close(s); get_last_error(ec, result != 0); } } return result; } bool set_user_non_blocking(socket_type s, state_type& state, bool value, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return false; } # 383 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 ioctl_arg_type arg = (value ? 1 : 0); int result = ::ioctl(s, 0x5421, &arg); get_last_error(ec, result < 0); if (result >= 0) { if (value) state |= user_set_non_blocking; else { state &= ~(user_set_non_blocking | internal_non_blocking); } return true; } return false; } bool set_internal_non_blocking(socket_type s, state_type& state, bool value, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return false; } if (!value && (state & user_set_non_blocking)) { ec = boost::asio::error::invalid_argument; return false; } # 437 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 ioctl_arg_type arg = (value ? 1 : 0); int result = ::ioctl(s, 0x5421, &arg); get_last_error(ec, result < 0); if (result >= 0) { if (value) state |= internal_non_blocking; else state &= ~internal_non_blocking; return true; } return false; } int shutdown(socket_type s, int what, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } int result = ::shutdown(s, what); get_last_error(ec, result != 0); return result; } template <typename SockLenType> inline int call_connect(SockLenType msghdr::*, socket_type s, const void* addr, std::size_t addrlen) { return ::connect(s, static_cast<const socket_addr_type*>(addr), (SockLenType)addrlen); } int connect(socket_type s, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } int result = call_connect(&msghdr::msg_namelen, s, addr, addrlen); get_last_error(ec, result != 0); if (result != 0 && ec == boost::asio::error::try_again) { if (static_cast<const socket_addr_type*>(addr)->sa_family == 1) ec = boost::asio::error::in_progress; else ec = boost::asio::error::no_buffer_space; } return result; } void sync_connect(socket_type s, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { socket_ops::connect(s, addr, addrlen, ec); if (ec != boost::asio::error::in_progress && ec != boost::asio::error::would_block) { return; } if (socket_ops::poll_connect(s, -1, ec) < 0) return; int connect_error = 0; size_t connect_error_len = sizeof(connect_error); if (socket_ops::getsockopt(s, 0, 1, 4, &connect_error, &connect_error_len, ec) == socket_error_retval) return; ec = boost::system::error_code(connect_error, boost::asio::error::get_system_category()); } # 562 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 bool non_blocking_connect(socket_type s, boost::system::error_code& ec) { # 582 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 pollfd fds; fds.fd = s; fds.events = 0x004; fds.revents = 0; int ready = ::poll(&fds, 1, 0); if (ready == 0) { return false; } int connect_error = 0; size_t connect_error_len = sizeof(connect_error); if (socket_ops::getsockopt(s, 0, 1, 4, &connect_error, &connect_error_len, ec) == 0) { if (connect_error) { ec = boost::system::error_code(connect_error, boost::asio::error::get_system_category()); } else boost::asio::error::clear(ec); } return true; } int socketpair(int af, int type, int protocol, socket_type sv[2], boost::system::error_code& ec) { # 625 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int result = ::socketpair(af, type, protocol, sv); get_last_error(ec, result != 0); return result; } bool sockatmark(socket_type s, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return false; } ioctl_arg_type value = 0; int result = ::ioctl(s, 0x8905, &value); get_last_error(ec, result < 0); if (ec.value() == 25) ec = boost::asio::error::not_socket; return ec ? false : value != 0; } size_t available(socket_type s, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } ioctl_arg_type value = 0; int result = ::ioctl(s, 0x541B, &value); get_last_error(ec, result < 0); if (ec.value() == 25) ec = boost::asio::error::not_socket; return ec ? static_cast<size_t>(0) : static_cast<size_t>(value); } int listen(socket_type s, int backlog, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } int result = ::listen(s, backlog); get_last_error(ec, result != 0); return result; } inline void init_buf_iov_base(void*& base, void* addr) { base = addr; } template <typename T> inline void init_buf_iov_base(T& base, void* addr) { base = static_cast<T>(addr); } typedef iovec buf; void init_buf(buf& b, void* data, size_t size) { init_buf_iov_base(b.iov_base, data); b.iov_len = size; } void init_buf(buf& b, const void* data, size_t size) { init_buf_iov_base(b.iov_base, const_cast<void*>(data)); b.iov_len = size; } inline void init_msghdr_msg_name(void*& name, void* addr) { name = static_cast<socket_addr_type*>(addr); } inline void init_msghdr_msg_name(void*& name, const socket_addr_type* addr) { name = const_cast<socket_addr_type*>(addr); } template <typename T> inline void init_msghdr_msg_name(T& name, void* addr) { name = static_cast<T>(addr); } template <typename T> inline void init_msghdr_msg_name(T& name, const void* addr) { name = static_cast<T>(const_cast<void*>(addr)); } signed_size_type recv(socket_type s, buf* bufs, size_t count, int flags, boost::system::error_code& ec) { # 778 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 msghdr msg = msghdr(); msg.msg_iov = bufs; msg.msg_iovlen = static_cast<int>(count); signed_size_type result = ::recvmsg(s, &msg, flags); get_last_error(ec, result < 0); return result; } signed_size_type recv1(socket_type s, void* data, size_t size, int flags, boost::system::error_code& ec) { # 811 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 signed_size_type result = ::recv(s, static_cast<char*>(data), size, flags); get_last_error(ec, result < 0); return result; } size_t sync_recv(socket_type s, state_type state, buf* bufs, size_t count, int flags, bool all_empty, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } if (all_empty && (state & stream_oriented)) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = socket_ops::recv(s, bufs, count, flags, ec); if ((state & stream_oriented) && bytes == 0) { ec = boost::asio::error::eof; return 0; } if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_read(s, 0, -1, ec) < 0) return 0; } } size_t sync_recv1(socket_type s, state_type state, void* data, size_t size, int flags, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } if (size == 0 && (state & stream_oriented)) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = socket_ops::recv1(s, data, size, flags, ec); if ((state & stream_oriented) && bytes == 0) { ec = boost::asio::error::eof; return 0; } if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_read(s, 0, -1, ec) < 0) return 0; } } # 941 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 bool non_blocking_recv(socket_type s, buf* bufs, size_t count, int flags, bool is_stream, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::recv(s, bufs, count, flags, ec); if (is_stream && bytes == 0) { ec = boost::asio::error::eof; return true; } if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } bool non_blocking_recv1(socket_type s, void* data, size_t size, int flags, bool is_stream, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::recv1(s, data, size, flags, ec); if (is_stream && bytes == 0) { ec = boost::asio::error::eof; return true; } if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } signed_size_type recvfrom(socket_type s, buf* bufs, size_t count, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { # 1043 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 msghdr msg = msghdr(); init_msghdr_msg_name(msg.msg_name, addr); msg.msg_namelen = static_cast<int>(*addrlen); msg.msg_iov = bufs; msg.msg_iovlen = static_cast<int>(count); signed_size_type result = ::recvmsg(s, &msg, flags); get_last_error(ec, result < 0); *addrlen = msg.msg_namelen; return result; } template <typename SockLenType> inline signed_size_type call_recvfrom(SockLenType msghdr::*, socket_type s, void* data, size_t size, int flags, void* addr, std::size_t* addrlen) { SockLenType tmp_addrlen = addrlen ? (SockLenType)*addrlen : 0; signed_size_type result = ::recvfrom(s, static_cast<char*>(data), size, flags, static_cast<socket_addr_type*>(addr), addrlen ? &tmp_addrlen : 0); if (addrlen) *addrlen = (std::size_t)tmp_addrlen; return result; } signed_size_type recvfrom1(socket_type s, void* data, size_t size, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { # 1093 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 signed_size_type result = call_recvfrom(&msghdr::msg_namelen, s, data, size, flags, addr, addrlen); get_last_error(ec, result < 0); return result; } size_t sync_recvfrom(socket_type s, state_type state, buf* bufs, size_t count, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } for (;;) { signed_size_type bytes = socket_ops::recvfrom( s, bufs, count, flags, addr, addrlen, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_read(s, 0, -1, ec) < 0) return 0; } } size_t sync_recvfrom1(socket_type s, state_type state, void* data, size_t size, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } for (;;) { signed_size_type bytes = socket_ops::recvfrom1( s, data, size, flags, addr, addrlen, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_read(s, 0, -1, ec) < 0) return 0; } } # 1190 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 bool non_blocking_recvfrom(socket_type s, buf* bufs, size_t count, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::recvfrom( s, bufs, count, flags, addr, addrlen, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } bool non_blocking_recvfrom1(socket_type s, void* data, size_t size, int flags, void* addr, std::size_t* addrlen, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::recvfrom1( s, data, size, flags, addr, addrlen, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } signed_size_type recvmsg(socket_type s, buf* bufs, size_t count, int in_flags, int& out_flags, boost::system::error_code& ec) { msghdr msg = msghdr(); msg.msg_iov = bufs; msg.msg_iovlen = static_cast<int>(count); signed_size_type result = ::recvmsg(s, &msg, in_flags); get_last_error(ec, result < 0); if (result >= 0) out_flags = msg.msg_flags; else out_flags = 0; return result; } size_t sync_recvmsg(socket_type s, state_type state, buf* bufs, size_t count, int in_flags, int& out_flags, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } for (;;) { signed_size_type bytes = socket_ops::recvmsg( s, bufs, count, in_flags, out_flags, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_read(s, 0, -1, ec) < 0) return 0; } } # 1335 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 bool non_blocking_recvmsg(socket_type s, buf* bufs, size_t count, int in_flags, int& out_flags, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::recvmsg( s, bufs, count, in_flags, out_flags, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } signed_size_type send(socket_type s, const buf* bufs, size_t count, int flags, boost::system::error_code& ec) { # 1389 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 msghdr msg = msghdr(); msg.msg_iov = const_cast<buf*>(bufs); msg.msg_iovlen = static_cast<int>(count); flags |= MSG_NOSIGNAL; signed_size_type result = ::sendmsg(s, &msg, flags); get_last_error(ec, result < 0); return result; } signed_size_type send1(socket_type s, const void* data, size_t size, int flags, boost::system::error_code& ec) { # 1424 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 flags |= MSG_NOSIGNAL; signed_size_type result = ::send(s, static_cast<const char*>(data), size, flags); get_last_error(ec, result < 0); return result; } size_t sync_send(socket_type s, state_type state, const buf* bufs, size_t count, int flags, bool all_empty, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } if (all_empty && (state & stream_oriented)) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = socket_ops::send(s, bufs, count, flags, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_write(s, 0, -1, ec) < 0) return 0; } } size_t sync_send1(socket_type s, state_type state, const void* data, size_t size, int flags, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } if (size == 0 && (state & stream_oriented)) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = socket_ops::send1(s, data, size, flags, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_write(s, 0, -1, ec) < 0) return 0; } } # 1531 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 bool non_blocking_send(socket_type s, const buf* bufs, size_t count, int flags, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::send(s, bufs, count, flags, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } bool non_blocking_send1(socket_type s, const void* data, size_t size, int flags, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::send1(s, data, size, flags, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } signed_size_type sendto(socket_type s, const buf* bufs, size_t count, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { # 1617 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 msghdr msg = msghdr(); init_msghdr_msg_name(msg.msg_name, addr); msg.msg_namelen = static_cast<int>(addrlen); msg.msg_iov = const_cast<buf*>(bufs); msg.msg_iovlen = static_cast<int>(count); flags |= MSG_NOSIGNAL; signed_size_type result = ::sendmsg(s, &msg, flags); get_last_error(ec, result < 0); return result; } template <typename SockLenType> inline signed_size_type call_sendto(SockLenType msghdr::*, socket_type s, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen) { return ::sendto(s, static_cast<char*>(const_cast<void*>(data)), size, flags, static_cast<const socket_addr_type*>(addr), (SockLenType)addrlen); } signed_size_type sendto1(socket_type s, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { # 1664 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 flags |= MSG_NOSIGNAL; signed_size_type result = call_sendto(&msghdr::msg_namelen, s, data, size, flags, addr, addrlen); get_last_error(ec, result < 0); return result; } size_t sync_sendto(socket_type s, state_type state, const buf* bufs, size_t count, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } for (;;) { signed_size_type bytes = socket_ops::sendto( s, bufs, count, flags, addr, addrlen, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_write(s, 0, -1, ec) < 0) return 0; } } size_t sync_sendto1(socket_type s, state_type state, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return 0; } for (;;) { signed_size_type bytes = socket_ops::sendto1( s, data, size, flags, addr, addrlen, ec); if (bytes >= 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (socket_ops::poll_write(s, 0, -1, ec) < 0) return 0; } } bool non_blocking_sendto(socket_type s, const buf* bufs, size_t count, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::sendto( s, bufs, count, flags, addr, addrlen, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } bool non_blocking_sendto1(socket_type s, const void* data, size_t size, int flags, const void* addr, std::size_t addrlen, boost::system::error_code& ec, size_t& bytes_transferred) { for (;;) { signed_size_type bytes = socket_ops::sendto1( s, data, size, flags, addr, addrlen, ec); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } socket_type socket(int af, int type, int protocol, boost::system::error_code& ec) { # 1847 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int s = ::socket(af, type, protocol); get_last_error(ec, s < 0); return s; } template <typename SockLenType> inline int call_setsockopt(SockLenType msghdr::*, socket_type s, int level, int optname, const void* optval, std::size_t optlen) { return ::setsockopt(s, level, optname, (const char*)optval, (SockLenType)optlen); } int setsockopt(socket_type s, state_type& state, int level, int optname, const void* optval, std::size_t optlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } if (level == custom_socket_option_level && optname == always_fail_option) { ec = boost::asio::error::invalid_argument; return socket_error_retval; } if (level == custom_socket_option_level && optname == enable_connection_aborted_option) { if (optlen != sizeof(int)) { ec = boost::asio::error::invalid_argument; return socket_error_retval; } if (*static_cast<const int*>(optval)) state |= enable_connection_aborted; else state &= ~enable_connection_aborted; boost::asio::error::clear(ec); return 0; } if (level == 1 && optname == 13) state |= user_set_linger; # 1916 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int result = call_setsockopt(&msghdr::msg_namelen, s, level, optname, optval, optlen); get_last_error(ec, result != 0); if (result == 0) { # 1933 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 } return result; } template <typename SockLenType> inline int call_getsockopt(SockLenType msghdr::*, socket_type s, int level, int optname, void* optval, std::size_t* optlen) { SockLenType tmp_optlen = (SockLenType)*optlen; int result = ::getsockopt(s, level, optname, (char*)optval, &tmp_optlen); *optlen = (std::size_t)tmp_optlen; return result; } int getsockopt(socket_type s, state_type state, int level, int optname, void* optval, size_t* optlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } if (level == custom_socket_option_level && optname == always_fail_option) { ec = boost::asio::error::invalid_argument; return socket_error_retval; } if (level == custom_socket_option_level && optname == enable_connection_aborted_option) { if (*optlen != sizeof(int)) { ec = boost::asio::error::invalid_argument; return socket_error_retval; } *static_cast<int*>(optval) = (state & enable_connection_aborted) ? 1 : 0; boost::asio::error::clear(ec); return 0; } # 2026 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int result = call_getsockopt(&msghdr::msg_namelen, s, level, optname, optval, optlen); get_last_error(ec, result != 0); if (result == 0 && level == 1 && *optlen == sizeof(int) && (optname == 7 || optname == 8)) { *static_cast<int*>(optval) /= 2; } return result; } template <typename SockLenType> inline int call_getpeername(SockLenType msghdr::*, socket_type s, void* addr, std::size_t* addrlen) { SockLenType tmp_addrlen = (SockLenType)*addrlen; int result = ::getpeername(s, static_cast<socket_addr_type*>(addr), &tmp_addrlen); *addrlen = (std::size_t)tmp_addrlen; return result; } int getpeername(socket_type s, void* addr, std::size_t* addrlen, bool cached, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } # 2089 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 (void)cached; int result = call_getpeername(&msghdr::msg_namelen, s, addr, addrlen); get_last_error(ec, result != 0); return result; } template <typename SockLenType> inline int call_getsockname(SockLenType msghdr::*, socket_type s, void* addr, std::size_t* addrlen) { SockLenType tmp_addrlen = (SockLenType)*addrlen; int result = ::getsockname(s, static_cast<socket_addr_type*>(addr), &tmp_addrlen); *addrlen = (std::size_t)tmp_addrlen; return result; } int getsockname(socket_type s, void* addr, std::size_t* addrlen, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } int result = call_getsockname(&msghdr::msg_namelen, s, addr, addrlen); get_last_error(ec, result != 0); return result; } int ioctl(socket_type s, state_type& state, int cmd, ioctl_arg_type* arg, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } int result = ::ioctl(s, cmd, arg); get_last_error(ec, result < 0); if (result >= 0) { if (cmd == static_cast<int>(0x5421)) { if (*arg) { state |= user_set_non_blocking; } else { state &= ~(user_set_non_blocking | internal_non_blocking); } } } return result; } int select(int nfds, fd_set* readfds, fd_set* writefds, fd_set* exceptfds, timeval* timeout, boost::system::error_code& ec) { # 2202 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int result = ::select(nfds, readfds, writefds, exceptfds, timeout); get_last_error(ec, result < 0); return result; } int poll_read(socket_type s, state_type state, int msec, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } # 2244 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 pollfd fds; fds.fd = s; fds.events = 0x001; fds.revents = 0; int timeout = (state & user_set_non_blocking) ? 0 : msec; int result = ::poll(&fds, 1, timeout); get_last_error(ec, result < 0); if (result == 0) if (state & user_set_non_blocking) ec = boost::asio::error::would_block; return result; } int poll_write(socket_type s, state_type state, int msec, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } # 2296 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 pollfd fds; fds.fd = s; fds.events = 0x004; fds.revents = 0; int timeout = (state & user_set_non_blocking) ? 0 : msec; int result = ::poll(&fds, 1, timeout); get_last_error(ec, result < 0); if (result == 0) if (state & user_set_non_blocking) ec = boost::asio::error::would_block; return result; } int poll_error(socket_type s, state_type state, int msec, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } # 2348 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 pollfd fds; fds.fd = s; fds.events = 0x002 | 0x008 | 0x010; fds.revents = 0; int timeout = (state & user_set_non_blocking) ? 0 : msec; int result = ::poll(&fds, 1, timeout); get_last_error(ec, result < 0); if (result == 0) if (state & user_set_non_blocking) ec = boost::asio::error::would_block; return result; } int poll_connect(socket_type s, int msec, boost::system::error_code& ec) { if (s == invalid_socket) { ec = boost::asio::error::bad_descriptor; return socket_error_retval; } # 2397 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 pollfd fds; fds.fd = s; fds.events = 0x004; fds.revents = 0; int result = ::poll(&fds, 1, msec); get_last_error(ec, result < 0); return result; } const char* inet_ntop(int af, const void* src, char* dest, size_t length, unsigned long scope_id, boost::system::error_code& ec) { clear_last_error(); # 2508 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 const char* result = ::inet_ntop(af, src, dest, static_cast<int>(length)); get_last_error(ec, true); if (result == 0 && !ec) ec = boost::asio::error::invalid_argument; if (result != 0 && af == 10 && scope_id != 0) { using namespace std; char if_name[(16 > 21 ? 16 : 21) + 1] = "%"; const in6_addr_type* ipv6_address = static_cast<const in6_addr_type*>(src); bool is_link_local = ((ipv6_address->__in6_u.__u6_addr8[0] == 0xfe) && ((ipv6_address->__in6_u.__u6_addr8[1] & 0xc0) == 0x80)); bool is_multicast_link_local = ((ipv6_address->__in6_u.__u6_addr8[0] == 0xff) && ((ipv6_address->__in6_u.__u6_addr8[1] & 0x0f) == 0x02)); if ((!is_link_local && !is_multicast_link_local) || if_indextoname(static_cast<unsigned>(scope_id), if_name + 1) == 0) sprintf(if_name + 1, "%lu", scope_id); strcat(dest, if_name); } return result; } int inet_pton(int af, const char* src, void* dest, unsigned long* scope_id, boost::system::error_code& ec) { clear_last_error(); # 2745 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 using namespace std; const bool is_v6 = (af == 10); const char* if_name = is_v6 ? strchr(src, '%') : 0; char src_buf[max_addr_v6_str_len + 1]; const char* src_ptr = src; if (if_name != 0) { if (if_name - src > max_addr_v6_str_len) { ec = boost::asio::error::invalid_argument; return 0; } memcpy(src_buf, src, if_name - src); src_buf[if_name - src] = 0; src_ptr = src_buf; } int result = ::inet_pton(af, src_ptr, dest); get_last_error(ec, true); if (result <= 0 && !ec) ec = boost::asio::error::invalid_argument; if (result > 0 && is_v6 && scope_id) { using namespace std; *scope_id = 0; if (if_name != 0) { in6_addr_type* ipv6_address = static_cast<in6_addr_type*>(dest); bool is_link_local = ((ipv6_address->__in6_u.__u6_addr8[0] == 0xfe) && ((ipv6_address->__in6_u.__u6_addr8[1] & 0xc0) == 0x80)); bool is_multicast_link_local = ((ipv6_address->__in6_u.__u6_addr8[0] == 0xff) && ((ipv6_address->__in6_u.__u6_addr8[1] & 0x0f) == 0x02)); if (is_link_local || is_multicast_link_local) *scope_id = if_nametoindex(if_name + 1); if (*scope_id == 0) *scope_id = atoi(if_name + 1); } } return result; } int gethostname(char* name, int namelen, boost::system::error_code& ec) { # 2822 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int result = ::gethostname(name, namelen); get_last_error(ec, result != 0); return result; } # 3680 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 inline boost::system::error_code translate_addrinfo_error(int error) { switch (error) { case 0: return boost::system::error_code(); case -3: return boost::asio::error::host_not_found_try_again; case -1: return boost::asio::error::invalid_argument; case -4: return boost::asio::error::no_recovery; case -6: return boost::asio::error::address_family_not_supported; case -10: return boost::asio::error::no_memory; case -2: case -9: case -5: return boost::asio::error::host_not_found; case -8: return boost::asio::error::service_not_found; case -7: return boost::asio::error::socket_type_not_supported; default: return boost::system::error_code( (*__errno_location ()), boost::asio::error::get_system_category()); } } boost::system::error_code getaddrinfo(const char* host, const char* service, const addrinfo_type& hints, addrinfo_type** result, boost::system::error_code& ec) { host = (host && *host) ? host : 0; service = (service && *service) ? service : 0; clear_last_error(); # 3750 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 int error = ::getaddrinfo(host, service, &hints, result); # 3782 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 return ec = translate_addrinfo_error(error); } boost::system::error_code background_getaddrinfo( const weak_cancel_token_type& cancel_token, const char* host, const char* service, const addrinfo_type& hints, addrinfo_type** result, boost::system::error_code& ec) { if (cancel_token.expired()) ec = boost::asio::error::operation_aborted; else socket_ops::getaddrinfo(host, service, hints, result, ec); return ec; } void freeaddrinfo(addrinfo_type* ai) { # 3820 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 ::freeaddrinfo(ai); } boost::system::error_code getnameinfo(const void* addr, std::size_t addrlen, char* host, std::size_t hostlen, char* serv, std::size_t servlen, int flags, boost::system::error_code& ec) { # 3864 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 clear_last_error(); int error = ::getnameinfo(static_cast<const socket_addr_type*>(addr), addrlen, host, hostlen, serv, servlen, flags); return ec = translate_addrinfo_error(error); } boost::system::error_code sync_getnameinfo(const void* addr, std::size_t addrlen, char* host, std::size_t hostlen, char* serv, std::size_t servlen, int sock_type, boost::system::error_code& ec) { int flags = (sock_type == SOCK_DGRAM) ? 16 : 0; socket_ops::getnameinfo(addr, addrlen, host, hostlen, serv, servlen, flags, ec); if (ec) { socket_ops::getnameinfo(addr, addrlen, host, hostlen, serv, servlen, flags | 2, ec); } return ec; } boost::system::error_code background_getnameinfo( const weak_cancel_token_type& cancel_token, const void* addr, std::size_t addrlen, char* host, std::size_t hostlen, char* serv, std::size_t servlen, int sock_type, boost::system::error_code& ec) { if (cancel_token.expired()) { ec = boost::asio::error::operation_aborted; } else { int flags = (sock_type == SOCK_DGRAM) ? 16 : 0; socket_ops::getnameinfo(addr, addrlen, host, hostlen, serv, servlen, flags, ec); if (ec) { socket_ops::getnameinfo(addr, addrlen, host, hostlen, serv, servlen, flags | 2, ec); } } return ec; } u_long_type network_to_host_long(u_long_type value) { # 3928 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 return ntohl(value); } u_long_type host_to_network_long(u_long_type value) { # 3943 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 3 4 return htonl(value); } u_short_type network_to_host_short(u_short_type value) { return ntohs(value); } u_short_type host_to_network_short(u_short_type value) { return htons(value); } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 3978 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/socket_ops.ipp" 2 3 4 # 375 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_ops.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_holder.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_holder.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class socket_holder : private noncopyable { public: socket_holder() : socket_(invalid_socket) { } explicit socket_holder(socket_type s) : socket_(s) { } ~socket_holder() { if (socket_ != invalid_socket) { boost::system::error_code ec; socket_ops::state_type state = 0; socket_ops::close(socket_, state, true, ec); } } socket_type get() const { return socket_; } void reset() { if (socket_ != invalid_socket) { boost::system::error_code ec; socket_ops::state_type state = 0; socket_ops::close(socket_, state, true, ec); socket_ = invalid_socket; } } void reset(socket_type s) { reset(); socket_ = s; } socket_type release() { socket_type tmp = socket_; socket_ = invalid_socket; return tmp; } private: socket_type socket_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/socket_holder.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_accept_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_accept_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Socket, typename Protocol> class reactive_socket_accept_op_base : public reactor_op { public: reactive_socket_accept_op_base(const boost::system::error_code& success_ec, socket_type socket, socket_ops::state_type state, Socket& peer, const Protocol& protocol, typename Protocol::endpoint* peer_endpoint, func_type complete_func) : reactor_op(success_ec, &reactive_socket_accept_op_base::do_perform, complete_func), socket_(socket), state_(state), peer_(peer), protocol_(protocol), peer_endpoint_(peer_endpoint), addrlen_(peer_endpoint ? peer_endpoint->capacity() : 0) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_accept_op_base* o( static_cast<reactive_socket_accept_op_base*>(base)); socket_type new_socket = invalid_socket; status result = socket_ops::non_blocking_accept(o->socket_, o->state_, o->peer_endpoint_ ? o->peer_endpoint_->data() : 0, o->peer_endpoint_ ? &o->addrlen_ : 0, o->ec_, new_socket) ? done : not_done; o->new_socket_.reset(new_socket); (void)0; return result; } void do_assign() { if (new_socket_.get() != invalid_socket) { if (peer_endpoint_) peer_endpoint_->resize(addrlen_); peer_.assign(protocol_, new_socket_.get(), ec_); if (!ec_) new_socket_.release(); } } private: socket_type socket_; socket_ops::state_type state_; socket_holder new_socket_; Socket& peer_; Protocol protocol_; typename Protocol::endpoint* peer_endpoint_; std::size_t addrlen_; }; template <typename Socket, typename Protocol, typename Handler, typename IoExecutor> class reactive_socket_accept_op : public reactive_socket_accept_op_base<Socket, Protocol> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_accept_op* v; reactive_socket_accept_op* p; ~ptr() { reset(); } static reactive_socket_accept_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_accept_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_accept_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_accept_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_accept_op*>(v), 1); v = 0; } } }; reactive_socket_accept_op(const boost::system::error_code& success_ec, socket_type socket, socket_ops::state_type state, Socket& peer, const Protocol& protocol, typename Protocol::endpoint* peer_endpoint, Handler& handler, const IoExecutor& io_ex) : reactive_socket_accept_op_base<Socket, Protocol>( success_ec, socket, state, peer, protocol, peer_endpoint, &reactive_socket_accept_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_accept_op* o(static_cast<reactive_socket_accept_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; if (owner) o->do_assign(); (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder1<Handler, boost::system::error_code> handler(o->handler_, o->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_accept_op* o(static_cast<reactive_socket_accept_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; o->do_assign(); (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder1<Handler, boost::system::error_code> handler(o->handler_, o->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; template <typename Protocol, typename PeerIoExecutor, typename Handler, typename IoExecutor> class reactive_socket_move_accept_op : private Protocol::socket::template rebind_executor<PeerIoExecutor>::other, public reactive_socket_accept_op_base< typename Protocol::socket::template rebind_executor<PeerIoExecutor>::other, Protocol> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_move_accept_op* v; reactive_socket_move_accept_op* p; ~ptr() { reset(); } static reactive_socket_move_accept_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_move_accept_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_move_accept_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_move_accept_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_move_accept_op*>(v), 1); v = 0; } } }; reactive_socket_move_accept_op(const boost::system::error_code& success_ec, const PeerIoExecutor& peer_io_ex, socket_type socket, socket_ops::state_type state, const Protocol& protocol, typename Protocol::endpoint* peer_endpoint, Handler& handler, const IoExecutor& io_ex) : peer_socket_type(peer_io_ex), reactive_socket_accept_op_base<peer_socket_type, Protocol>( success_ec, socket, state, *this, protocol, peer_endpoint, &reactive_socket_move_accept_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_move_accept_op* o( static_cast<reactive_socket_move_accept_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; if (owner) o->do_assign(); (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::move_binder2<Handler, boost::system::error_code, peer_socket_type> handler(0, static_cast<Handler&&>(o->handler_), o->ec_, static_cast<peer_socket_type&&>(*o)); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_move_accept_op* o( static_cast<reactive_socket_move_accept_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; o->do_assign(); (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::move_binder2<Handler, boost::system::error_code, peer_socket_type> handler(0, static_cast<Handler&&>(o->handler_), o->ec_, static_cast<peer_socket_type&&>(*o)); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: typedef typename Protocol::socket::template rebind_executor<PeerIoExecutor>::other peer_socket_type; Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 329 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_accept_op.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_connect_op.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_connect_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_connect_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class reactive_socket_connect_op_base : public reactor_op { public: reactive_socket_connect_op_base(const boost::system::error_code& success_ec, socket_type socket, func_type complete_func) : reactor_op(success_ec, &reactive_socket_connect_op_base::do_perform, complete_func), socket_(socket) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_connect_op_base* o( static_cast<reactive_socket_connect_op_base*>(base)); status result = socket_ops::non_blocking_connect( o->socket_, o->ec_) ? done : not_done; (void)0; return result; } private: socket_type socket_; }; template <typename Handler, typename IoExecutor> class reactive_socket_connect_op : public reactive_socket_connect_op_base { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_connect_op* v; reactive_socket_connect_op* p; ~ptr() { reset(); } static reactive_socket_connect_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_connect_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_connect_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_connect_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_connect_op*>(v), 1); v = 0; } } }; reactive_socket_connect_op(const boost::system::error_code& success_ec, socket_type socket, Handler& handler, const IoExecutor& io_ex) : reactive_socket_connect_op_base(success_ec, socket, &reactive_socket_connect_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_connect_op* o (static_cast<reactive_socket_connect_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder1<Handler, boost::system::error_code> handler(o->handler_, o->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_connect_op* o (static_cast<reactive_socket_connect_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder1<Handler, boost::system::error_code> handler(o->handler_, o->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_connect_op.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvfrom_op.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvfrom_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvfrom_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename MutableBufferSequence, typename Endpoint> class reactive_socket_recvfrom_op_base : public reactor_op { public: reactive_socket_recvfrom_op_base(const boost::system::error_code& success_ec, socket_type socket, int protocol_type, const MutableBufferSequence& buffers, Endpoint& endpoint, socket_base::message_flags flags, func_type complete_func) : reactor_op(success_ec, &reactive_socket_recvfrom_op_base::do_perform, complete_func), socket_(socket), protocol_type_(protocol_type), buffers_(buffers), sender_endpoint_(endpoint), flags_(flags) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recvfrom_op_base* o( static_cast<reactive_socket_recvfrom_op_base*>(base)); typedef buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs_type; std::size_t addr_len = o->sender_endpoint_.capacity(); status result; if (bufs_type::is_single_buffer) { result = socket_ops::non_blocking_recvfrom1( o->socket_, bufs_type::first(o->buffers_).data(), bufs_type::first(o->buffers_).size(), o->flags_, o->sender_endpoint_.data(), &addr_len, o->ec_, o->bytes_transferred_) ? done : not_done; } else { bufs_type bufs(o->buffers_); result = socket_ops::non_blocking_recvfrom(o->socket_, bufs.buffers(), bufs.count(), o->flags_, o->sender_endpoint_.data(), &addr_len, o->ec_, o->bytes_transferred_) ? done : not_done; } if (result && !o->ec_) o->sender_endpoint_.resize(addr_len); (void)0 ; return result; } private: socket_type socket_; int protocol_type_; MutableBufferSequence buffers_; Endpoint& sender_endpoint_; socket_base::message_flags flags_; }; template <typename MutableBufferSequence, typename Endpoint, typename Handler, typename IoExecutor> class reactive_socket_recvfrom_op : public reactive_socket_recvfrom_op_base<MutableBufferSequence, Endpoint> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_recvfrom_op* v; reactive_socket_recvfrom_op* p; ~ptr() { reset(); } static reactive_socket_recvfrom_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_recvfrom_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_recvfrom_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_recvfrom_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_recvfrom_op*>(v), 1); v = 0; } } }; reactive_socket_recvfrom_op(const boost::system::error_code& success_ec, socket_type socket, int protocol_type, const MutableBufferSequence& buffers, Endpoint& endpoint, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) : reactive_socket_recvfrom_op_base<MutableBufferSequence, Endpoint>( success_ec, socket, protocol_type, buffers, endpoint, flags, &reactive_socket_recvfrom_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recvfrom_op* o( static_cast<reactive_socket_recvfrom_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recvfrom_op* o( static_cast<reactive_socket_recvfrom_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 205 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvfrom_op.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_sendto_op.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_sendto_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_sendto_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename ConstBufferSequence, typename Endpoint> class reactive_socket_sendto_op_base : public reactor_op { public: reactive_socket_sendto_op_base(const boost::system::error_code& success_ec, socket_type socket, const ConstBufferSequence& buffers, const Endpoint& endpoint, socket_base::message_flags flags, func_type complete_func) : reactor_op(success_ec, &reactive_socket_sendto_op_base::do_perform, complete_func), socket_(socket), buffers_(buffers), destination_(endpoint), flags_(flags) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_sendto_op_base* o( static_cast<reactive_socket_sendto_op_base*>(base)); typedef buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence> bufs_type; status result; if (bufs_type::is_single_buffer) { result = socket_ops::non_blocking_sendto1(o->socket_, bufs_type::first(o->buffers_).data(), bufs_type::first(o->buffers_).size(), o->flags_, o->destination_.data(), o->destination_.size(), o->ec_, o->bytes_transferred_) ? done : not_done; } else { bufs_type bufs(o->buffers_); result = socket_ops::non_blocking_sendto(o->socket_, bufs.buffers(), bufs.count(), o->flags_, o->destination_.data(), o->destination_.size(), o->ec_, o->bytes_transferred_) ? done : not_done; } (void)0 ; return result; } private: socket_type socket_; ConstBufferSequence buffers_; Endpoint destination_; socket_base::message_flags flags_; }; template <typename ConstBufferSequence, typename Endpoint, typename Handler, typename IoExecutor> class reactive_socket_sendto_op : public reactive_socket_sendto_op_base<ConstBufferSequence, Endpoint> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_sendto_op* v; reactive_socket_sendto_op* p; ~ptr() { reset(); } static reactive_socket_sendto_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_sendto_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_sendto_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_sendto_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_sendto_op*>(v), 1); v = 0; } } }; reactive_socket_sendto_op(const boost::system::error_code& success_ec, socket_type socket, const ConstBufferSequence& buffers, const Endpoint& endpoint, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) : reactive_socket_sendto_op_base<ConstBufferSequence, Endpoint>( success_ec, socket, buffers, endpoint, flags, &reactive_socket_sendto_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_sendto_op* o(static_cast<reactive_socket_sendto_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_sendto_op* o(static_cast<reactive_socket_sendto_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 196 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_sendto_op.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_type.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_type.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_type.hpp" 2 3 4 namespace boost { namespace asio { # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_type.hpp" 3 4 enum class cancellation_type : unsigned int { none = 0, terminal = 1, partial = 2, total = 4, all = 0xFFFFFFFF }; typedef cancellation_type cancellation_type_t; # 91 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_type.hpp" 3 4 inline constexpr bool operator!(cancellation_type_t x) { return static_cast<unsigned int>(x) == 0; } inline constexpr cancellation_type_t operator&( cancellation_type_t x, cancellation_type_t y) { return static_cast<cancellation_type_t>( static_cast<unsigned int>(x) & static_cast<unsigned int>(y)); } inline constexpr cancellation_type_t operator|( cancellation_type_t x, cancellation_type_t y) { return static_cast<cancellation_type_t>( static_cast<unsigned int>(x) | static_cast<unsigned int>(y)); } inline constexpr cancellation_type_t operator^( cancellation_type_t x, cancellation_type_t y) { return static_cast<cancellation_type_t>( static_cast<unsigned int>(x) ^ static_cast<unsigned int>(y)); } inline constexpr cancellation_type_t operator~(cancellation_type_t x) { return static_cast<cancellation_type_t>(~static_cast<unsigned int>(x)); } inline cancellation_type_t& operator&=( cancellation_type_t& x, cancellation_type_t y) { x = x & y; return x; } inline cancellation_type_t& operator|=( cancellation_type_t& x, cancellation_type_t y) { x = x | y; return x; } inline cancellation_type_t& operator^=( cancellation_type_t& x, cancellation_type_t y) { x = x ^ y; return x; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 175 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_type.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class cancellation_handler_base { public: virtual void call(cancellation_type_t) = 0; virtual std::pair<void*, std::size_t> destroy() noexcept = 0; protected: ~cancellation_handler_base() {} }; template <typename Handler> class cancellation_handler : public cancellation_handler_base { public: template <typename... Args> cancellation_handler(std::size_t size, Args&&... args) : handler_(static_cast<Args&&>(args)...), size_(size) { } # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 3 4 void call(cancellation_type_t type) { handler_(type); } std::pair<void*, std::size_t> destroy() noexcept { std::pair<void*, std::size_t> mem(this, size_); this->cancellation_handler::~cancellation_handler(); return mem; } Handler& handler() noexcept { return handler_; } private: ~cancellation_handler() { } Handler handler_; std::size_t size_; }; } class cancellation_slot; class cancellation_signal { public: constexpr cancellation_signal() : handler_(0) { } inline ~cancellation_signal(); void emit(cancellation_type_t type) { if (handler_) handler_->call(type); } cancellation_slot slot() noexcept; private: cancellation_signal(const cancellation_signal&) = delete; cancellation_signal& operator=(const cancellation_signal&) = delete; detail::cancellation_handler_base* handler_; }; class cancellation_slot { public: constexpr cancellation_slot() : handler_(0) { } # 165 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 3 4 template <typename CancellationHandler, typename... Args> CancellationHandler& emplace(Args&&... args) { typedef detail::cancellation_handler<CancellationHandler> cancellation_handler_type; auto_delete_helper del = { prepare_memory( sizeof(cancellation_handler_type), alignof(CancellationHandler)) }; cancellation_handler_type* handler_obj = new (del.mem.first) cancellation_handler_type( del.mem.second, static_cast<Args&&>(args)...); del.mem.first = 0; *handler_ = handler_obj; return handler_obj->handler(); } # 231 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 3 4 template <typename CancellationHandler> typename decay<CancellationHandler>::type& assign( CancellationHandler&& handler) { return this->emplace<typename decay<CancellationHandler>::type>( static_cast<CancellationHandler&&>(handler)); } inline void clear(); constexpr bool is_connected() const noexcept { return handler_ != 0; } constexpr bool has_handler() const noexcept { return handler_ != 0 && *handler_ != 0; } friend constexpr bool operator==(const cancellation_slot& lhs, const cancellation_slot& rhs) noexcept { return lhs.handler_ == rhs.handler_; } friend constexpr bool operator!=(const cancellation_slot& lhs, const cancellation_slot& rhs) noexcept { return lhs.handler_ != rhs.handler_; } private: friend class cancellation_signal; constexpr cancellation_slot(int, detail::cancellation_handler_base** handler) : handler_(handler) { } inline std::pair<void*, std::size_t> prepare_memory( std::size_t size, std::size_t align); struct auto_delete_helper { std::pair<void*, std::size_t> mem; inline ~auto_delete_helper(); }; detail::cancellation_handler_base** handler_; }; inline cancellation_slot cancellation_signal::slot() noexcept { return cancellation_slot(0, &handler_); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 302 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/cancellation_signal.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/cancellation_signal.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/cancellation_signal.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/cancellation_signal.ipp" 2 3 4 namespace boost { namespace asio { cancellation_signal::~cancellation_signal() { if (handler_) { std::pair<void*, std::size_t> mem = handler_->destroy(); detail::thread_info_base::deallocate( detail::thread_info_base::cancellation_signal_tag(), detail::thread_context::top_of_thread_call_stack(), mem.first, mem.second); } } void cancellation_slot::clear() { if (handler_ != 0 && *handler_ != 0) { std::pair<void*, std::size_t> mem = (*handler_)->destroy(); detail::thread_info_base::deallocate( detail::thread_info_base::cancellation_signal_tag(), detail::thread_context::top_of_thread_call_stack(), mem.first, mem.second); *handler_ = 0; } } std::pair<void*, std::size_t> cancellation_slot::prepare_memory( std::size_t size, std::size_t align) { (static_cast <bool> (handler_) ? void (0) : __assert_fail ("handler_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/cancellation_signal.ipp", 56, __extension__ __PRETTY_FUNCTION__)); std::pair<void*, std::size_t> mem; if (*handler_) { mem = (*handler_)->destroy(); *handler_ = 0; } if (size > mem.second || reinterpret_cast<std::size_t>(mem.first) % align != 0) { if (mem.first) { detail::thread_info_base::deallocate( detail::thread_info_base::cancellation_signal_tag(), detail::thread_context::top_of_thread_call_stack(), mem.first, mem.second); } mem.first = detail::thread_info_base::allocate( detail::thread_info_base::cancellation_signal_tag(), detail::thread_context::top_of_thread_call_stack(), size, align); mem.second = size; } return mem; } cancellation_slot::auto_delete_helper::~auto_delete_helper() { if (mem.first) { detail::thread_info_base::deallocate( detail::thread_info_base::cancellation_signal_tag(), detail::thread_context::top_of_thread_call_stack(), mem.first, mem.second); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/cancellation_signal.ipp" 2 3 4 # 305 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_signal.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 2 3 4 namespace boost { namespace asio { template <typename T, typename CancellationSlot> struct associated_cancellation_slot; namespace detail { template <typename T, typename = void> struct has_cancellation_slot_type : false_type { }; template <typename T> struct has_cancellation_slot_type<T, typename void_type<typename T::cancellation_slot_type>::type> : true_type { }; template <typename T, typename S, typename = void, typename = void> struct associated_cancellation_slot_impl { typedef void asio_associated_cancellation_slot_is_unspecialised; typedef S type; static type get(const T&) noexcept { return type(); } static const type& get(const T&, const S& s) noexcept { return s; } }; template <typename T, typename S> struct associated_cancellation_slot_impl<T, S, typename void_type<typename T::cancellation_slot_type>::type> { typedef typename T::cancellation_slot_type type; static auto get( const T& t) noexcept -> decltype (t.get_cancellation_slot()) { return t.get_cancellation_slot(); } static auto get( const T& t, const S&) noexcept -> decltype (t.get_cancellation_slot()) { return t.get_cancellation_slot(); } }; template <typename T, typename S> struct associated_cancellation_slot_impl<T, S, typename enable_if< !has_cancellation_slot_type<T>::value >::type, typename void_type< typename associator<associated_cancellation_slot, T, S>::type >::type> : associator<associated_cancellation_slot, T, S> { }; } # 119 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 3 4 template <typename T, typename CancellationSlot = cancellation_slot> struct associated_cancellation_slot : detail::associated_cancellation_slot_impl<T, CancellationSlot> { # 140 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 3 4 }; template <typename T> [[nodiscard]] inline typename associated_cancellation_slot<T>::type get_associated_cancellation_slot(const T& t) noexcept { return associated_cancellation_slot<T>::get(t); } template <typename T, typename CancellationSlot> [[nodiscard]] inline auto get_associated_cancellation_slot(const T& t, const CancellationSlot& st) noexcept -> decltype ( associated_cancellation_slot<T, CancellationSlot>::get(t, st)) { return associated_cancellation_slot<T, CancellationSlot>::get(t, st); } template <typename T, typename CancellationSlot = cancellation_slot> using associated_cancellation_slot_t = typename associated_cancellation_slot<T, CancellationSlot>::type; namespace detail { template <typename T, typename S, typename = void> struct associated_cancellation_slot_forwarding_base { }; template <typename T, typename S> struct associated_cancellation_slot_forwarding_base<T, S, typename enable_if< is_same< typename associated_cancellation_slot<T, S>::asio_associated_cancellation_slot_is_unspecialised, void >::value >::type> { typedef void asio_associated_cancellation_slot_is_unspecialised; }; } template <typename T, typename CancellationSlot> struct associated_cancellation_slot<reference_wrapper<T>, CancellationSlot> : detail::associated_cancellation_slot_forwarding_base<T, CancellationSlot> { typedef typename associated_cancellation_slot<T, CancellationSlot>::type type; static type get(reference_wrapper<T> t) noexcept { return associated_cancellation_slot<T, CancellationSlot>::get(t.get()); } static auto get(reference_wrapper<T> t, const CancellationSlot& s) noexcept -> decltype ( associated_cancellation_slot<T, CancellationSlot>::get(t.get(), s)) { return associated_cancellation_slot<T, CancellationSlot>::get(t.get(), s); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 239 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/associated_cancellation_slot.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recv_op.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recv_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recv_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename MutableBufferSequence> class reactive_socket_recv_op_base : public reactor_op { public: reactive_socket_recv_op_base(const boost::system::error_code& success_ec, socket_type socket, socket_ops::state_type state, const MutableBufferSequence& buffers, socket_base::message_flags flags, func_type complete_func) : reactor_op(success_ec, &reactive_socket_recv_op_base::do_perform, complete_func), socket_(socket), state_(state), buffers_(buffers), flags_(flags) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recv_op_base* o( static_cast<reactive_socket_recv_op_base*>(base)); typedef buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs_type; status result; if (bufs_type::is_single_buffer) { result = socket_ops::non_blocking_recv1(o->socket_, bufs_type::first(o->buffers_).data(), bufs_type::first(o->buffers_).size(), o->flags_, (o->state_ & socket_ops::stream_oriented) != 0, o->ec_, o->bytes_transferred_) ? done : not_done; } else { bufs_type bufs(o->buffers_); result = socket_ops::non_blocking_recv(o->socket_, bufs.buffers(), bufs.count(), o->flags_, (o->state_ & socket_ops::stream_oriented) != 0, o->ec_, o->bytes_transferred_) ? done : not_done; } if (result == done) if ((o->state_ & socket_ops::stream_oriented) != 0) if (o->bytes_transferred_ == 0) result = done_and_exhausted; (void)0 ; return result; } private: socket_type socket_; socket_ops::state_type state_; MutableBufferSequence buffers_; socket_base::message_flags flags_; }; template <typename MutableBufferSequence, typename Handler, typename IoExecutor> class reactive_socket_recv_op : public reactive_socket_recv_op_base<MutableBufferSequence> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_recv_op* v; reactive_socket_recv_op* p; ~ptr() { reset(); } static reactive_socket_recv_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_recv_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_recv_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_recv_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_recv_op*>(v), 1); v = 0; } } }; reactive_socket_recv_op(const boost::system::error_code& success_ec, socket_type socket, socket_ops::state_type state, const MutableBufferSequence& buffers, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) : reactive_socket_recv_op_base<MutableBufferSequence>(success_ec, socket, state, buffers, flags, &reactive_socket_recv_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recv_op* o(static_cast<reactive_socket_recv_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recv_op* o(static_cast<reactive_socket_recv_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recv_op.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvmsg_op.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvmsg_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvmsg_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename MutableBufferSequence> class reactive_socket_recvmsg_op_base : public reactor_op { public: reactive_socket_recvmsg_op_base(const boost::system::error_code& success_ec, socket_type socket, const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, func_type complete_func) : reactor_op(success_ec, &reactive_socket_recvmsg_op_base::do_perform, complete_func), socket_(socket), buffers_(buffers), in_flags_(in_flags), out_flags_(out_flags) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recvmsg_op_base* o( static_cast<reactive_socket_recvmsg_op_base*>(base)); buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs(o->buffers_); status result = socket_ops::non_blocking_recvmsg(o->socket_, bufs.buffers(), bufs.count(), o->in_flags_, o->out_flags_, o->ec_, o->bytes_transferred_) ? done : not_done; (void)0 ; return result; } private: socket_type socket_; MutableBufferSequence buffers_; socket_base::message_flags in_flags_; socket_base::message_flags& out_flags_; }; template <typename MutableBufferSequence, typename Handler, typename IoExecutor> class reactive_socket_recvmsg_op : public reactive_socket_recvmsg_op_base<MutableBufferSequence> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_recvmsg_op* v; reactive_socket_recvmsg_op* p; ~ptr() { reset(); } static reactive_socket_recvmsg_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_recvmsg_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_recvmsg_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_recvmsg_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_recvmsg_op*>(v), 1); v = 0; } } }; reactive_socket_recvmsg_op(const boost::system::error_code& success_ec, socket_type socket, const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, Handler& handler, const IoExecutor& io_ex) : reactive_socket_recvmsg_op_base<MutableBufferSequence>( success_ec, socket, buffers, in_flags, out_flags, &reactive_socket_recvmsg_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recvmsg_op* o( static_cast<reactive_socket_recvmsg_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_recvmsg_op* o( static_cast<reactive_socket_recvmsg_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_recvmsg_op.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_send_op.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_send_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_send_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename ConstBufferSequence> class reactive_socket_send_op_base : public reactor_op { public: reactive_socket_send_op_base(const boost::system::error_code& success_ec, socket_type socket, socket_ops::state_type state, const ConstBufferSequence& buffers, socket_base::message_flags flags, func_type complete_func) : reactor_op(success_ec, &reactive_socket_send_op_base::do_perform, complete_func), socket_(socket), state_(state), buffers_(buffers), flags_(flags) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_send_op_base* o( static_cast<reactive_socket_send_op_base*>(base)); typedef buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence> bufs_type; status result; if (bufs_type::is_single_buffer) { result = socket_ops::non_blocking_send1(o->socket_, bufs_type::first(o->buffers_).data(), bufs_type::first(o->buffers_).size(), o->flags_, o->ec_, o->bytes_transferred_) ? done : not_done; if (result == done) if ((o->state_ & socket_ops::stream_oriented) != 0) if (o->bytes_transferred_ < bufs_type::first(o->buffers_).size()) result = done_and_exhausted; } else { bufs_type bufs(o->buffers_); result = socket_ops::non_blocking_send(o->socket_, bufs.buffers(), bufs.count(), o->flags_, o->ec_, o->bytes_transferred_) ? done : not_done; if (result == done) if ((o->state_ & socket_ops::stream_oriented) != 0) if (o->bytes_transferred_ < bufs.total_size()) result = done_and_exhausted; } (void)0 ; return result; } private: socket_type socket_; socket_ops::state_type state_; ConstBufferSequence buffers_; socket_base::message_flags flags_; }; template <typename ConstBufferSequence, typename Handler, typename IoExecutor> class reactive_socket_send_op : public reactive_socket_send_op_base<ConstBufferSequence> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_socket_send_op* v; reactive_socket_send_op* p; ~ptr() { reset(); } static reactive_socket_send_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_send_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_socket_send_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_socket_send_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_socket_send_op*>(v), 1); v = 0; } } }; reactive_socket_send_op(const boost::system::error_code& success_ec, socket_type socket, socket_ops::state_type state, const ConstBufferSequence& buffers, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) : reactive_socket_send_op_base<ConstBufferSequence>(success_ec, socket, state, buffers, flags, &reactive_socket_send_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_send_op* o(static_cast<reactive_socket_send_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_socket_send_op* o(static_cast<reactive_socket_send_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_send_op.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_wait_op.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_wait_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_wait_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename IoExecutor> class reactive_wait_op : public reactor_op { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; reactive_wait_op* v; reactive_wait_op* p; ~ptr() { reset(); } static reactive_wait_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_wait_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~reactive_wait_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<reactive_wait_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<reactive_wait_op*>(v), 1); v = 0; } } }; reactive_wait_op(const boost::system::error_code& success_ec, Handler& handler, const IoExecutor& io_ex) : reactor_op(success_ec, &reactive_wait_op::do_perform, &reactive_wait_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static status do_perform(reactor_op*) { return done; } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_wait_op* o(static_cast<reactive_wait_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); detail::binder1<Handler, boost::system::error_code> handler(o->handler_, o->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; reactive_wait_op* o(static_cast<reactive_wait_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); detail::binder1<Handler, boost::system::error_code> handler(o->handler_, o->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_wait_op.hpp" 2 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class reactive_socket_service_base { public: typedef socket_type native_handle_type; struct base_implementation_type { socket_type socket_; socket_ops::state_type state_; reactor::per_descriptor_data reactor_data_; }; inline reactive_socket_service_base(execution_context& context); inline void base_shutdown(); inline void construct(base_implementation_type& impl); inline void base_move_construct(base_implementation_type& impl, base_implementation_type& other_impl) noexcept; inline void base_move_assign(base_implementation_type& impl, reactive_socket_service_base& other_service, base_implementation_type& other_impl); inline void destroy(base_implementation_type& impl); bool is_open(const base_implementation_type& impl) const { return impl.socket_ != invalid_socket; } inline boost::system::error_code close( base_implementation_type& impl, boost::system::error_code& ec); inline socket_type release( base_implementation_type& impl, boost::system::error_code& ec); native_handle_type native_handle(base_implementation_type& impl) { return impl.socket_; } inline boost::system::error_code cancel( base_implementation_type& impl, boost::system::error_code& ec); bool at_mark(const base_implementation_type& impl, boost::system::error_code& ec) const { return socket_ops::sockatmark(impl.socket_, ec); } std::size_t available(const base_implementation_type& impl, boost::system::error_code& ec) const { return socket_ops::available(impl.socket_, ec); } boost::system::error_code listen(base_implementation_type& impl, int backlog, boost::system::error_code& ec) { socket_ops::listen(impl.socket_, backlog, ec); return ec; } template <typename IO_Control_Command> boost::system::error_code io_control(base_implementation_type& impl, IO_Control_Command& command, boost::system::error_code& ec) { socket_ops::ioctl(impl.socket_, impl.state_, command.name(), static_cast<ioctl_arg_type*>(command.data()), ec); return ec; } bool non_blocking(const base_implementation_type& impl) const { return (impl.state_ & socket_ops::user_set_non_blocking) != 0; } boost::system::error_code non_blocking(base_implementation_type& impl, bool mode, boost::system::error_code& ec) { socket_ops::set_user_non_blocking(impl.socket_, impl.state_, mode, ec); return ec; } bool native_non_blocking(const base_implementation_type& impl) const { return (impl.state_ & socket_ops::internal_non_blocking) != 0; } boost::system::error_code native_non_blocking(base_implementation_type& impl, bool mode, boost::system::error_code& ec) { socket_ops::set_internal_non_blocking(impl.socket_, impl.state_, mode, ec); return ec; } boost::system::error_code wait(base_implementation_type& impl, socket_base::wait_type w, boost::system::error_code& ec) { switch (w) { case socket_base::wait_read: socket_ops::poll_read(impl.socket_, impl.state_, -1, ec); break; case socket_base::wait_write: socket_ops::poll_write(impl.socket_, impl.state_, -1, ec); break; case socket_base::wait_error: socket_ops::poll_error(impl.socket_, impl.state_, -1, ec); break; default: ec = boost::asio::error::invalid_argument; break; } return ec; } template <typename Handler, typename IoExecutor> void async_wait(base_implementation_type& impl, socket_base::wait_type w, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_wait_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); (void)0 ; int op_type; switch (w) { case socket_base::wait_read: op_type = reactor::read_op; break; case socket_base::wait_write: op_type = reactor::write_op; break; case socket_base::wait_error: op_type = reactor::except_op; break; default: p.p->ec_ = boost::asio::error::invalid_argument; start_op(impl, reactor::read_op, p.p, is_continuation, false, true, &io_ex, 0); p.v = p.p = 0; return; } if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, op_type); } start_op(impl, op_type, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename ConstBufferSequence> size_t send(base_implementation_type& impl, const ConstBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { typedef buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence> bufs_type; if (bufs_type::is_single_buffer) { return socket_ops::sync_send1(impl.socket_, impl.state_, bufs_type::first(buffers).data(), bufs_type::first(buffers).size(), flags, ec); } else { bufs_type bufs(buffers); return socket_ops::sync_send(impl.socket_, impl.state_, bufs.buffers(), bufs.count(), flags, bufs.all_empty(), ec); } } size_t send(base_implementation_type& impl, const null_buffers&, socket_base::message_flags, boost::system::error_code& ec) { socket_ops::poll_write(impl.socket_, impl.state_, -1, ec); return 0; } template <typename ConstBufferSequence, typename Handler, typename IoExecutor> void async_send(base_implementation_type& impl, const ConstBufferSequence& buffers, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_send_op< ConstBufferSequence, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.socket_, impl.state_, buffers, flags, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::write_op); } (void)0 ; start_op(impl, reactor::write_op, p.p, is_continuation, true, ((impl.state_ & socket_ops::stream_oriented) && buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence>::all_empty(buffers)), &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_send(base_implementation_type& impl, const null_buffers&, socket_base::message_flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::write_op); } (void)0 ; start_op(impl, reactor::write_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename MutableBufferSequence> size_t receive(base_implementation_type& impl, const MutableBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { typedef buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs_type; if (bufs_type::is_single_buffer) { return socket_ops::sync_recv1(impl.socket_, impl.state_, bufs_type::first(buffers).data(), bufs_type::first(buffers).size(), flags, ec); } else { bufs_type bufs(buffers); return socket_ops::sync_recv(impl.socket_, impl.state_, bufs.buffers(), bufs.count(), flags, bufs.all_empty(), ec); } } size_t receive(base_implementation_type& impl, const null_buffers&, socket_base::message_flags, boost::system::error_code& ec) { socket_ops::poll_read(impl.socket_, impl.state_, -1, ec); return 0; } template <typename MutableBufferSequence, typename Handler, typename IoExecutor> void async_receive(base_implementation_type& impl, const MutableBufferSequence& buffers, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_recv_op< MutableBufferSequence, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.socket_, impl.state_, buffers, flags, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; start_op(impl, (flags & socket_base::message_out_of_band) ? reactor::except_op : reactor::read_op, p.p, is_continuation, (flags & socket_base::message_out_of_band) == 0, ((impl.state_ & socket_ops::stream_oriented) && buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence>::all_empty(buffers)), &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_receive(base_implementation_type& impl, const null_buffers&, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; start_op(impl, (flags & socket_base::message_out_of_band) ? reactor::except_op : reactor::read_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename MutableBufferSequence> size_t receive_with_flags(base_implementation_type& impl, const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, boost::system::error_code& ec) { buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs(buffers); return socket_ops::sync_recvmsg(impl.socket_, impl.state_, bufs.buffers(), bufs.count(), in_flags, out_flags, ec); } size_t receive_with_flags(base_implementation_type& impl, const null_buffers&, socket_base::message_flags, socket_base::message_flags& out_flags, boost::system::error_code& ec) { socket_ops::poll_read(impl.socket_, impl.state_, -1, ec); out_flags = 0; return 0; } template <typename MutableBufferSequence, typename Handler, typename IoExecutor> void async_receive_with_flags(base_implementation_type& impl, const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_recvmsg_op< MutableBufferSequence, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.socket_, buffers, in_flags, out_flags, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; start_op(impl, (in_flags & socket_base::message_out_of_band) ? reactor::except_op : reactor::read_op, p.p, is_continuation, (in_flags & socket_base::message_out_of_band) == 0, false, &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_receive_with_flags(base_implementation_type& impl, const null_buffers&, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; out_flags = 0; start_op(impl, (in_flags & socket_base::message_out_of_band) ? reactor::except_op : reactor::read_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } protected: inline boost::system::error_code do_open( base_implementation_type& impl, int af, int type, int protocol, boost::system::error_code& ec); inline boost::system::error_code do_assign( base_implementation_type& impl, int type, const native_handle_type& native_socket, boost::system::error_code& ec); inline void do_start_op(base_implementation_type& impl, int op_type, reactor_op* op, bool is_continuation, bool is_non_blocking, bool noop, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg); template <typename Op> void start_op(base_implementation_type& impl, int op_type, Op* op, bool is_continuation, bool is_non_blocking, bool noop, const void* io_ex, ...) { return do_start_op(impl, op_type, op, is_continuation, is_non_blocking, noop, &Op::do_immediate, io_ex); } template <typename Op> void start_op(base_implementation_type& impl, int op_type, Op* op, bool is_continuation, bool is_non_blocking, bool noop, const void*, typename enable_if< is_same< typename associated_immediate_executor< typename Op::handler_type, typename Op::io_executor_type >::asio_associated_immediate_executor_is_unspecialised, void >::value >::type*) { return do_start_op(impl, op_type, op, is_continuation, is_non_blocking, noop, &reactor::call_post_immediate_completion, &reactor_); } inline void do_start_accept_op(base_implementation_type& impl, reactor_op* op, bool is_continuation, bool peer_is_open, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg); template <typename Op> void start_accept_op(base_implementation_type& impl, Op* op, bool is_continuation, bool peer_is_open, const void* io_ex, ...) { return do_start_accept_op(impl, op, is_continuation, peer_is_open, &Op::do_immediate, io_ex); } template <typename Op> void start_accept_op(base_implementation_type& impl, Op* op, bool is_continuation, bool peer_is_open, const void*, typename enable_if< is_same< typename associated_immediate_executor< typename Op::handler_type, typename Op::io_executor_type >::asio_associated_immediate_executor_is_unspecialised, void >::value >::type*) { return do_start_accept_op(impl, op, is_continuation, peer_is_open, &reactor::call_post_immediate_completion, &reactor_); } inline void do_start_connect_op(base_implementation_type& impl, reactor_op* op, bool is_continuation, const void* addr, size_t addrlen, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg); template <typename Op> void start_connect_op(base_implementation_type& impl, Op* op, bool is_continuation, const void* addr, size_t addrlen, const void* io_ex, ...) { return do_start_connect_op(impl, op, is_continuation, addr, addrlen, &Op::do_immediate, io_ex); } template <typename Op> void start_connect_op(base_implementation_type& impl, Op* op, bool is_continuation, const void* addr, size_t addrlen, const void*, typename enable_if< is_same< typename associated_immediate_executor< typename Op::handler_type, typename Op::io_executor_type >::asio_associated_immediate_executor_is_unspecialised, void >::value >::type*) { return do_start_connect_op(impl, op, is_continuation, addr, addrlen, &reactor::call_post_immediate_completion, &reactor_); } class reactor_op_cancellation { public: reactor_op_cancellation(reactor* r, reactor::per_descriptor_data* p, socket_type d, int o) : reactor_(r), reactor_data_(p), descriptor_(d), op_type_(o) { } void operator()(cancellation_type_t type) { if (!!(type & (cancellation_type::terminal | cancellation_type::partial | cancellation_type::total))) { reactor_->cancel_ops_by_key(descriptor_, *reactor_data_, op_type_, this); } } private: reactor* reactor_; reactor::per_descriptor_data* reactor_data_; socket_type descriptor_; int op_type_; }; reactor& reactor_; const boost::system::error_code success_ec_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 743 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_socket_service_base.ipp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_socket_service_base.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_socket_service_base.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_socket_service_base.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { reactive_socket_service_base::reactive_socket_service_base( execution_context& context) : reactor_(use_service<reactor>(context)) { reactor_.init_task(); } void reactive_socket_service_base::base_shutdown() { } void reactive_socket_service_base::construct( reactive_socket_service_base::base_implementation_type& impl) { impl.socket_ = invalid_socket; impl.state_ = 0; impl.reactor_data_ = reactor::per_descriptor_data(); } void reactive_socket_service_base::base_move_construct( reactive_socket_service_base::base_implementation_type& impl, reactive_socket_service_base::base_implementation_type& other_impl) noexcept { impl.socket_ = other_impl.socket_; other_impl.socket_ = invalid_socket; impl.state_ = other_impl.state_; other_impl.state_ = 0; reactor_.move_descriptor(impl.socket_, impl.reactor_data_, other_impl.reactor_data_); } void reactive_socket_service_base::base_move_assign( reactive_socket_service_base::base_implementation_type& impl, reactive_socket_service_base& other_service, reactive_socket_service_base::base_implementation_type& other_impl) { destroy(impl); impl.socket_ = other_impl.socket_; other_impl.socket_ = invalid_socket; impl.state_ = other_impl.state_; other_impl.state_ = 0; other_service.reactor_.move_descriptor(impl.socket_, impl.reactor_data_, other_impl.reactor_data_); } void reactive_socket_service_base::destroy( reactive_socket_service_base::base_implementation_type& impl) { if (impl.socket_ != invalid_socket) { (void)0 ; reactor_.deregister_descriptor(impl.socket_, impl.reactor_data_, (impl.state_ & socket_ops::possible_dup) == 0); boost::system::error_code ignored_ec; socket_ops::close(impl.socket_, impl.state_, true, ignored_ec); reactor_.cleanup_descriptor_data(impl.reactor_data_); } } boost::system::error_code reactive_socket_service_base::close( reactive_socket_service_base::base_implementation_type& impl, boost::system::error_code& ec) { if (is_open(impl)) { (void)0 ; reactor_.deregister_descriptor(impl.socket_, impl.reactor_data_, (impl.state_ & socket_ops::possible_dup) == 0); socket_ops::close(impl.socket_, impl.state_, false, ec); reactor_.cleanup_descriptor_data(impl.reactor_data_); } else { ec = boost::system::error_code(); } # 130 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_socket_service_base.ipp" 3 4 construct(impl); return ec; } socket_type reactive_socket_service_base::release( reactive_socket_service_base::base_implementation_type& impl, boost::system::error_code& ec) { if (!is_open(impl)) { ec = boost::asio::error::bad_descriptor; return invalid_socket; } (void)0 ; reactor_.deregister_descriptor(impl.socket_, impl.reactor_data_, false); reactor_.cleanup_descriptor_data(impl.reactor_data_); socket_type sock = impl.socket_; construct(impl); ec = boost::system::error_code(); return sock; } boost::system::error_code reactive_socket_service_base::cancel( reactive_socket_service_base::base_implementation_type& impl, boost::system::error_code& ec) { if (!is_open(impl)) { ec = boost::asio::error::bad_descriptor; return ec; } (void)0 ; reactor_.cancel_ops(impl.socket_, impl.reactor_data_); ec = boost::system::error_code(); return ec; } boost::system::error_code reactive_socket_service_base::do_open( reactive_socket_service_base::base_implementation_type& impl, int af, int type, int protocol, boost::system::error_code& ec) { if (is_open(impl)) { ec = boost::asio::error::already_open; return ec; } socket_holder sock(socket_ops::socket(af, type, protocol, ec)); if (sock.get() == invalid_socket) return ec; if (int err = reactor_.register_descriptor(sock.get(), impl.reactor_data_)) { ec = boost::system::error_code(err, boost::asio::error::get_system_category()); return ec; } impl.socket_ = sock.release(); switch (type) { case SOCK_STREAM: impl.state_ = socket_ops::stream_oriented; break; case SOCK_DGRAM: impl.state_ = socket_ops::datagram_oriented; break; default: impl.state_ = 0; break; } ec = boost::system::error_code(); return ec; } boost::system::error_code reactive_socket_service_base::do_assign( reactive_socket_service_base::base_implementation_type& impl, int type, const reactive_socket_service_base::native_handle_type& native_socket, boost::system::error_code& ec) { if (is_open(impl)) { ec = boost::asio::error::already_open; return ec; } if (int err = reactor_.register_descriptor( native_socket, impl.reactor_data_)) { ec = boost::system::error_code(err, boost::asio::error::get_system_category()); return ec; } impl.socket_ = native_socket; switch (type) { case SOCK_STREAM: impl.state_ = socket_ops::stream_oriented; break; case SOCK_DGRAM: impl.state_ = socket_ops::datagram_oriented; break; default: impl.state_ = 0; break; } impl.state_ |= socket_ops::possible_dup; ec = boost::system::error_code(); return ec; } void reactive_socket_service_base::do_start_op( reactive_socket_service_base::base_implementation_type& impl, int op_type, reactor_op* op, bool is_continuation, bool is_non_blocking, bool noop, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg) { if (!noop) { if ((impl.state_ & socket_ops::non_blocking) || socket_ops::set_internal_non_blocking( impl.socket_, impl.state_, true, op->ec_)) { reactor_.start_op(op_type, impl.socket_, impl.reactor_data_, op, is_continuation, is_non_blocking, on_immediate, immediate_arg); return; } } on_immediate(op, is_continuation, immediate_arg); } void reactive_socket_service_base::do_start_accept_op( reactive_socket_service_base::base_implementation_type& impl, reactor_op* op, bool is_continuation, bool peer_is_open, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg) { if (!peer_is_open) { do_start_op(impl, reactor::read_op, op, is_continuation, true, false, on_immediate, immediate_arg); } else { op->ec_ = boost::asio::error::already_open; on_immediate(op, is_continuation, immediate_arg); } } void reactive_socket_service_base::do_start_connect_op( reactive_socket_service_base::base_implementation_type& impl, reactor_op* op, bool is_continuation, const void* addr, size_t addrlen, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg) { if ((impl.state_ & socket_ops::non_blocking) || socket_ops::set_internal_non_blocking( impl.socket_, impl.state_, true, op->ec_)) { if (socket_ops::connect(impl.socket_, addr, addrlen, op->ec_) != 0) { if (op->ec_ == boost::asio::error::in_progress || op->ec_ == boost::asio::error::would_block) { op->ec_ = boost::system::error_code(); reactor_.start_op(reactor::connect_op, impl.socket_, impl.reactor_data_, op, is_continuation, false, on_immediate, immediate_arg); return; } } } on_immediate(op, is_continuation, immediate_arg); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 307 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_socket_service_base.ipp" 2 3 4 # 746 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service_base.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Protocol> class reactive_socket_service : public execution_context_service_base<reactive_socket_service<Protocol> >, public reactive_socket_service_base { public: typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; typedef socket_type native_handle_type; struct implementation_type : reactive_socket_service_base::base_implementation_type { implementation_type() : protocol_(endpoint_type().protocol()) { } protocol_type protocol_; }; reactive_socket_service(execution_context& context) : execution_context_service_base< reactive_socket_service<Protocol> >(context), reactive_socket_service_base(context) { } void shutdown() { this->base_shutdown(); } void move_construct(implementation_type& impl, implementation_type& other_impl) noexcept { this->base_move_construct(impl, other_impl); impl.protocol_ = other_impl.protocol_; other_impl.protocol_ = endpoint_type().protocol(); } void move_assign(implementation_type& impl, reactive_socket_service_base& other_service, implementation_type& other_impl) { this->base_move_assign(impl, other_service, other_impl); impl.protocol_ = other_impl.protocol_; other_impl.protocol_ = endpoint_type().protocol(); } template <typename Protocol1> void converting_move_construct(implementation_type& impl, reactive_socket_service<Protocol1>&, typename reactive_socket_service< Protocol1>::implementation_type& other_impl) { this->base_move_construct(impl, other_impl); impl.protocol_ = protocol_type(other_impl.protocol_); other_impl.protocol_ = typename Protocol1::endpoint().protocol(); } boost::system::error_code open(implementation_type& impl, const protocol_type& protocol, boost::system::error_code& ec) { if (!do_open(impl, protocol.family(), protocol.type(), protocol.protocol(), ec)) impl.protocol_ = protocol; do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } boost::system::error_code assign(implementation_type& impl, const protocol_type& protocol, const native_handle_type& native_socket, boost::system::error_code& ec) { if (!do_assign(impl, protocol.type(), native_socket, ec)) impl.protocol_ = protocol; do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } native_handle_type native_handle(implementation_type& impl) { return impl.socket_; } boost::system::error_code bind(implementation_type& impl, const endpoint_type& endpoint, boost::system::error_code& ec) { socket_ops::bind(impl.socket_, endpoint.data(), endpoint.size(), ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename Option> boost::system::error_code set_option(implementation_type& impl, const Option& option, boost::system::error_code& ec) { socket_ops::setsockopt(impl.socket_, impl.state_, option.level(impl.protocol_), option.name(impl.protocol_), option.data(impl.protocol_), option.size(impl.protocol_), ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename Option> boost::system::error_code get_option(const implementation_type& impl, Option& option, boost::system::error_code& ec) const { std::size_t size = option.size(impl.protocol_); socket_ops::getsockopt(impl.socket_, impl.state_, option.level(impl.protocol_), option.name(impl.protocol_), option.data(impl.protocol_), &size, ec); if (!ec) option.resize(impl.protocol_, size); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } endpoint_type local_endpoint(const implementation_type& impl, boost::system::error_code& ec) const { endpoint_type endpoint; std::size_t addr_len = endpoint.capacity(); if (socket_ops::getsockname(impl.socket_, endpoint.data(), &addr_len, ec)) { do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return endpoint_type(); } endpoint.resize(addr_len); return endpoint; } endpoint_type remote_endpoint(const implementation_type& impl, boost::system::error_code& ec) const { endpoint_type endpoint; std::size_t addr_len = endpoint.capacity(); if (socket_ops::getpeername(impl.socket_, endpoint.data(), &addr_len, false, ec)) { do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return endpoint_type(); } endpoint.resize(addr_len); return endpoint; } boost::system::error_code shutdown(base_implementation_type& impl, socket_base::shutdown_type what, boost::system::error_code& ec) { socket_ops::shutdown(impl.socket_, what, ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename ConstBufferSequence> size_t send_to(implementation_type& impl, const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags, boost::system::error_code& ec) { typedef buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence> bufs_type; size_t n; if (bufs_type::is_single_buffer) { n = socket_ops::sync_sendto1(impl.socket_, impl.state_, bufs_type::first(buffers).data(), bufs_type::first(buffers).size(), flags, destination.data(), destination.size(), ec); } else { bufs_type bufs(buffers); n = socket_ops::sync_sendto(impl.socket_, impl.state_, bufs.buffers(), bufs.count(), flags, destination.data(), destination.size(), ec); } do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return n; } size_t send_to(implementation_type& impl, const null_buffers&, const endpoint_type&, socket_base::message_flags, boost::system::error_code& ec) { socket_ops::poll_write(impl.socket_, impl.state_, -1, ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return 0; } template <typename ConstBufferSequence, typename Handler, typename IoExecutor> void async_send_to(implementation_type& impl, const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_sendto_op<ConstBufferSequence, endpoint_type, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.socket_, buffers, destination, flags, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::write_op); } (void)0 ; start_op(impl, reactor::write_op, p.p, is_continuation, true, false, &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_send_to(implementation_type& impl, const null_buffers&, const endpoint_type&, socket_base::message_flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::write_op); } (void)0 ; start_op(impl, reactor::write_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename MutableBufferSequence> size_t receive_from(implementation_type& impl, const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags, boost::system::error_code& ec) { typedef buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs_type; std::size_t addr_len = sender_endpoint.capacity(); std::size_t n; if (bufs_type::is_single_buffer) { n = socket_ops::sync_recvfrom1(impl.socket_, impl.state_, bufs_type::first(buffers).data(), bufs_type::first(buffers).size(), flags, sender_endpoint.data(), &addr_len, ec); } else { bufs_type bufs(buffers); n = socket_ops::sync_recvfrom(impl.socket_, impl.state_, bufs.buffers(), bufs.count(), flags, sender_endpoint.data(), &addr_len, ec); } if (!ec) sender_endpoint.resize(addr_len); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return n; } size_t receive_from(implementation_type& impl, const null_buffers&, endpoint_type& sender_endpoint, socket_base::message_flags, boost::system::error_code& ec) { socket_ops::poll_read(impl.socket_, impl.state_, -1, ec); sender_endpoint = endpoint_type(); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return 0; } template <typename MutableBufferSequence, typename Handler, typename IoExecutor> void async_receive_from(implementation_type& impl, const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_recvfrom_op<MutableBufferSequence, endpoint_type, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; int protocol = impl.protocol_.type(); p.p = new (p.v) op(success_ec_, impl.socket_, protocol, buffers, sender_endpoint, flags, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; start_op(impl, (flags & socket_base::message_out_of_band) ? reactor::except_op : reactor::read_op, p.p, is_continuation, true, false, &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_receive_from(implementation_type& impl, const null_buffers&, endpoint_type& sender_endpoint, socket_base::message_flags flags, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; sender_endpoint = endpoint_type(); start_op(impl, (flags & socket_base::message_out_of_band) ? reactor::except_op : reactor::read_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename Socket> boost::system::error_code accept(implementation_type& impl, Socket& peer, endpoint_type* peer_endpoint, boost::system::error_code& ec) { if (peer.is_open()) { ec = boost::asio::error::already_open; do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } std::size_t addr_len = peer_endpoint ? peer_endpoint->capacity() : 0; socket_holder new_socket(socket_ops::sync_accept(impl.socket_, impl.state_, peer_endpoint ? peer_endpoint->data() : 0, peer_endpoint ? &addr_len : 0, ec)); if (new_socket.get() != invalid_socket) { if (peer_endpoint) peer_endpoint->resize(addr_len); peer.assign(impl.protocol_, new_socket.get(), ec); if (!ec) new_socket.release(); } do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename Socket, typename Handler, typename IoExecutor> void async_accept(implementation_type& impl, Socket& peer, endpoint_type* peer_endpoint, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_accept_op<Socket, Protocol, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.socket_, impl.state_, peer, impl.protocol_, peer_endpoint, handler, io_ex); if (slot.is_connected() && !peer.is_open()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; start_accept_op(impl, p.p, is_continuation, peer.is_open(), &io_ex, 0); p.v = p.p = 0; } template <typename PeerIoExecutor, typename Handler, typename IoExecutor> void async_move_accept(implementation_type& impl, const PeerIoExecutor& peer_io_ex, endpoint_type* peer_endpoint, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_move_accept_op<Protocol, PeerIoExecutor, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, peer_io_ex, impl.socket_, impl.state_, impl.protocol_, peer_endpoint, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::read_op); } (void)0 ; start_accept_op(impl, p.p, is_continuation, false, &io_ex, 0); p.v = p.p = 0; } boost::system::error_code connect(implementation_type& impl, const endpoint_type& peer_endpoint, boost::system::error_code& ec) { socket_ops::sync_connect(impl.socket_, peer_endpoint.data(), peer_endpoint.size(), ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename Handler, typename IoExecutor> void async_connect(implementation_type& impl, const endpoint_type& peer_endpoint, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_socket_connect_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.socket_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.socket_, reactor::connect_op); } (void)0 ; start_connect_op(impl, p.p, is_continuation, peer_endpoint.data(), peer_endpoint.size(), &io_ex, 0); p.v = p.p = 0; } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 633 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_socket_service.hpp" 2 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 namespace boost { namespace asio { template <typename Protocol, typename Executor = any_io_executor> class basic_socket; # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename Protocol, typename Executor> class basic_socket : public socket_base { private: class initiate_async_connect; class initiate_async_wait; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_socket<Protocol, Executor1> other; }; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 typedef typename detail::reactive_socket_service< Protocol>::native_handle_type native_handle_type; typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; typedef basic_socket<Protocol, Executor> lowest_layer_type; # 123 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 explicit basic_socket(const executor_type& ex) : impl_(0, ex) { } # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename ExecutionContext> explicit basic_socket(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { } # 156 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 basic_socket(const executor_type& ex, const protocol_type& protocol) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); } # 176 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename ExecutionContext> basic_socket(ExecutionContext& context, const protocol_type& protocol, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); } # 204 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 basic_socket(const executor_type& ex, const endpoint_type& endpoint) : impl_(0, ex) { boost::system::error_code ec; const protocol_type protocol = endpoint.protocol(); impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); boost::asio::detail::throw_error(ec, "bind"); } # 231 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename ExecutionContext> basic_socket(ExecutionContext& context, const endpoint_type& endpoint, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; const protocol_type protocol = endpoint.protocol(); impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); boost::asio::detail::throw_error(ec, "bind"); } # 259 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 basic_socket(const executor_type& ex, const protocol_type& protocol, const native_handle_type& native_socket) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), protocol, native_socket, ec); boost::asio::detail::throw_error(ec, "assign"); } # 283 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename ExecutionContext> basic_socket(ExecutionContext& context, const protocol_type& protocol, const native_handle_type& native_socket, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), protocol, native_socket, ec); boost::asio::detail::throw_error(ec, "assign"); } # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 basic_socket(basic_socket&& other) noexcept : impl_(std::move(other.impl_)) { } # 323 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 basic_socket& operator=(basic_socket&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Protocol1, typename Executor1> friend class basic_socket; # 343 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> basic_socket(basic_socket<Protocol1, Executor1>&& other, typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value >::type = 0) : impl_(std::move(other.impl_)) { } # 363 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value, basic_socket& >::type operator=(basic_socket<Protocol1, Executor1>&& other) { basic_socket tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 392 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 lowest_layer_type& lowest_layer() { return *this; } # 406 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 const lowest_layer_type& lowest_layer() const { return *this; } # 426 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void open(const protocol_type& protocol = protocol_type()) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); } # 452 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code open(const protocol_type& protocol, boost::system::error_code& ec) { impl_.get_service().open(impl_.get_implementation(), protocol, ec); return ec; } # 469 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void assign(const protocol_type& protocol, const native_handle_type& native_socket) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), protocol, native_socket, ec); boost::asio::detail::throw_error(ec, "assign"); } # 488 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code assign(const protocol_type& protocol, const native_handle_type& native_socket, boost::system::error_code& ec) { impl_.get_service().assign(impl_.get_implementation(), protocol, native_socket, ec); return ec; } bool is_open() const { return impl_.get_service().is_open(impl_.get_implementation()); } # 514 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void close() { boost::system::error_code ec; impl_.get_service().close(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "close"); } # 545 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code close(boost::system::error_code& ec) { impl_.get_service().close(impl_.get_implementation(), ec); return ec; } # 570 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 native_handle_type release() { boost::system::error_code ec; native_handle_type s = impl_.get_service().release( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "release"); return s; } # 598 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 native_handle_type release(boost::system::error_code& ec) { return impl_.get_service().release(impl_.get_implementation(), ec); } native_handle_type native_handle() { return impl_.get_service().native_handle(impl_.get_implementation()); } # 655 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 703 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 719 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 bool at_mark() const { boost::system::error_code ec; bool b = impl_.get_service().at_mark(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "at_mark"); return b; } # 737 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 bool at_mark(boost::system::error_code& ec) const { return impl_.get_service().at_mark(impl_.get_implementation(), ec); } # 752 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 std::size_t available() const { boost::system::error_code ec; std::size_t s = impl_.get_service().available( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "available"); return s; } # 771 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 std::size_t available(boost::system::error_code& ec) const { return impl_.get_service().available(impl_.get_implementation(), ec); } # 794 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void bind(const endpoint_type& endpoint) { boost::system::error_code ec; impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); boost::asio::detail::throw_error(ec, "bind"); } # 824 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code bind(const endpoint_type& endpoint, boost::system::error_code& ec) { impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); return ec; } # 854 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void connect(const endpoint_type& peer_endpoint) { boost::system::error_code ec; if (!is_open()) { impl_.get_service().open(impl_.get_implementation(), peer_endpoint.protocol(), ec); boost::asio::detail::throw_error(ec, "connect"); } impl_.get_service().connect(impl_.get_implementation(), peer_endpoint, ec); boost::asio::detail::throw_error(ec, "connect"); } # 895 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code connect(const endpoint_type& peer_endpoint, boost::system::error_code& ec) { if (!is_open()) { impl_.get_service().open(impl_.get_implementation(), peer_endpoint.protocol(), ec); if (ec) { return ec; } } impl_.get_service().connect(impl_.get_implementation(), peer_endpoint, ec); return ec; } # 969 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code)> ConnectToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_connect(const endpoint_type& peer_endpoint, ConnectToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { boost::system::error_code open_ec; if (!is_open()) { const protocol_type protocol = peer_endpoint.protocol(); impl_.get_service().open(impl_.get_implementation(), protocol, open_ec); } return async_initiate<ConnectToken, void (boost::system::error_code)>( initiate_async_connect(this), token, peer_endpoint, open_ec); } # 1027 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename SettableSocketOption> void set_option(const SettableSocketOption& option) { boost::system::error_code ec; impl_.get_service().set_option(impl_.get_implementation(), option, ec); boost::asio::detail::throw_error(ec, "set_option"); } # 1074 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename SettableSocketOption> boost::system::error_code set_option(const SettableSocketOption& option, boost::system::error_code& ec) { impl_.get_service().set_option(impl_.get_implementation(), option, ec); return ec; } # 1117 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename GettableSocketOption> void get_option(GettableSocketOption& option) const { boost::system::error_code ec; impl_.get_service().get_option(impl_.get_implementation(), option, ec); boost::asio::detail::throw_error(ec, "get_option"); } # 1165 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename GettableSocketOption> boost::system::error_code get_option(GettableSocketOption& option, boost::system::error_code& ec) const { impl_.get_service().get_option(impl_.get_implementation(), option, ec); return ec; } # 1195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename IoControlCommand> void io_control(IoControlCommand& command) { boost::system::error_code ec; impl_.get_service().io_control(impl_.get_implementation(), command, ec); boost::asio::detail::throw_error(ec, "io_control"); } # 1230 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template <typename IoControlCommand> boost::system::error_code io_control(IoControlCommand& command, boost::system::error_code& ec) { impl_.get_service().io_control(impl_.get_implementation(), command, ec); return ec; } # 1249 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 bool non_blocking() const { return impl_.get_service().non_blocking(impl_.get_implementation()); } # 1267 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void non_blocking(bool mode) { boost::system::error_code ec; impl_.get_service().non_blocking(impl_.get_implementation(), mode, ec); boost::asio::detail::throw_error(ec, "non_blocking"); } # 1287 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code non_blocking( bool mode, boost::system::error_code& ec) { impl_.get_service().non_blocking(impl_.get_implementation(), mode, ec); return ec; } # 1378 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 bool native_non_blocking() const { return impl_.get_service().native_non_blocking(impl_.get_implementation()); } # 1468 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void native_non_blocking(bool mode) { boost::system::error_code ec; impl_.get_service().native_non_blocking( impl_.get_implementation(), mode, ec); boost::asio::detail::throw_error(ec, "native_non_blocking"); } # 1561 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code native_non_blocking( bool mode, boost::system::error_code& ec) { impl_.get_service().native_non_blocking( impl_.get_implementation(), mode, ec); return ec; } # 1584 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 endpoint_type local_endpoint() const { boost::system::error_code ec; endpoint_type ep = impl_.get_service().local_endpoint( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "local_endpoint"); return ep; } # 1614 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 endpoint_type local_endpoint(boost::system::error_code& ec) const { return impl_.get_service().local_endpoint(impl_.get_implementation(), ec); } # 1634 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 endpoint_type remote_endpoint() const { boost::system::error_code ec; endpoint_type ep = impl_.get_service().remote_endpoint( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "remote_endpoint"); return ep; } # 1664 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 endpoint_type remote_endpoint(boost::system::error_code& ec) const { return impl_.get_service().remote_endpoint(impl_.get_implementation(), ec); } # 1686 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void shutdown(shutdown_type what) { boost::system::error_code ec; impl_.get_service().shutdown(impl_.get_implementation(), what, ec); boost::asio::detail::throw_error(ec, "shutdown"); } # 1715 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code shutdown(shutdown_type what, boost::system::error_code& ec) { impl_.get_service().shutdown(impl_.get_implementation(), what, ec); return ec; } # 1738 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 void wait(wait_type w) { boost::system::error_code ec; impl_.get_service().wait(impl_.get_implementation(), w, ec); boost::asio::detail::throw_error(ec, "wait"); } # 1764 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 boost::system::error_code wait(wait_type w, boost::system::error_code& ec) { impl_.get_service().wait(impl_.get_implementation(), w, ec); return ec; } # 1823 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code)> WaitToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_wait(wait_type w, WaitToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WaitToken, void (boost::system::error_code)>( initiate_async_wait(this), token, w); } protected: ~basic_socket() { } # 1859 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 3 4 detail::io_object_impl< detail::reactive_socket_service<Protocol>, Executor> impl_; private: basic_socket(const basic_socket&) = delete; basic_socket& operator=(const basic_socket&) = delete; class initiate_async_connect { public: typedef Executor executor_type; explicit initiate_async_connect(basic_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ConnectHandler> void operator()(ConnectHandler&& handler, const endpoint_type& peer_endpoint, const boost::system::error_code& open_ec) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ConnectHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "ConnectHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; if (open_ec) { boost::asio::post(self_->impl_.get_executor(), boost::asio::detail::bind_handler( static_cast<ConnectHandler&&>(handler), open_ec)); } else { detail::non_const_lvalue<ConnectHandler> handler2(handler); self_->impl_.get_service().async_connect( self_->impl_.get_implementation(), peer_endpoint, handler2.value, self_->impl_.get_executor()); } } private: basic_socket* self_; }; class initiate_async_wait { public: typedef Executor executor_type; explicit initiate_async_wait(basic_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WaitHandler> void operator()(WaitHandler&& handler, wait_type w) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WaitHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "WaitHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WaitHandler> handler2(handler); self_->impl_.get_service().async_wait( self_->impl_.get_implementation(), w, handler2.value, self_->impl_.get_executor()); } private: basic_socket* self_; }; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1948 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 2 3 4 namespace boost { namespace asio { template <typename Protocol, typename Executor = any_io_executor> class basic_datagram_socket; # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename Protocol, typename Executor> class basic_datagram_socket : public basic_socket<Protocol, Executor> { private: class initiate_async_send; class initiate_async_send_to; class initiate_async_receive; class initiate_async_receive_from; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_datagram_socket<Protocol, Executor1> other; }; typedef typename basic_socket<Protocol, Executor>::native_handle_type native_handle_type; typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 explicit basic_datagram_socket(const executor_type& ex) : basic_socket<Protocol, Executor>(ex) { } # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ExecutionContext> explicit basic_datagram_socket(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context) { } # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 basic_datagram_socket(const executor_type& ex, const protocol_type& protocol) : basic_socket<Protocol, Executor>(ex, protocol) { } # 152 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ExecutionContext> basic_datagram_socket(ExecutionContext& context, const protocol_type& protocol, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : basic_socket<Protocol, Executor>(context, protocol) { } # 178 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 basic_datagram_socket(const executor_type& ex, const endpoint_type& endpoint) : basic_socket<Protocol, Executor>(ex, endpoint) { } # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ExecutionContext> basic_datagram_socket(ExecutionContext& context, const endpoint_type& endpoint, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, endpoint) { } # 223 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 basic_datagram_socket(const executor_type& ex, const protocol_type& protocol, const native_handle_type& native_socket) : basic_socket<Protocol, Executor>(ex, protocol, native_socket) { } # 244 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ExecutionContext> basic_datagram_socket(ExecutionContext& context, const protocol_type& protocol, const native_handle_type& native_socket, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, protocol, native_socket) { } # 266 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 basic_datagram_socket(basic_datagram_socket&& other) noexcept : basic_socket<Protocol, Executor>(std::move(other)) { } # 283 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 basic_datagram_socket& operator=(basic_datagram_socket&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } # 301 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> basic_datagram_socket(basic_datagram_socket<Protocol1, Executor1>&& other, typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value >::type = 0) : basic_socket<Protocol, Executor>(std::move(other)) { } # 324 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value, basic_datagram_socket& >::type operator=(basic_datagram_socket<Protocol1, Executor1>&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } ~basic_datagram_socket() { } # 367 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 394 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 422 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); } # 481 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, socket_base::message_flags(0)); } # 546 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, socket_base::message_flags flags, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, flags); } # 591 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send_to(const ConstBufferSequence& buffers, const endpoint_type& destination) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send_to( this->impl_.get_implementation(), buffers, destination, 0, ec); boost::asio::detail::throw_error(ec, "send_to"); return s; } # 618 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send_to( this->impl_.get_implementation(), buffers, destination, flags, ec); boost::asio::detail::throw_error(ec, "send_to"); return s; } # 645 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().send_to(this->impl_.get_implementation(), buffers, destination, flags, ec); } # 707 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send_to(this), token, buffers, destination, socket_base::message_flags(0)); } # 772 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send_to(this), token, buffers, destination, flags); } # 818 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 846 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 875 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, flags, ec); } # 935 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, socket_base::message_flags(0)); } # 1000 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, socket_base::message_flags flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, flags); } # 1046 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive_from( this->impl_.get_implementation(), buffers, sender_endpoint, 0, ec); boost::asio::detail::throw_error(ec, "receive_from"); return s; } # 1073 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive_from( this->impl_.get_implementation(), buffers, sender_endpoint, flags, ec); boost::asio::detail::throw_error(ec, "receive_from"); return s; } # 1100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().receive_from( this->impl_.get_implementation(), buffers, sender_endpoint, flags, ec); } # 1161 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive_from(this), token, buffers, &sender_endpoint, socket_base::message_flags(0)); } # 1228 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive_from(this), token, buffers, &sender_endpoint, flags); } private: basic_datagram_socket(const basic_datagram_socket&) = delete; basic_datagram_socket& operator=( const basic_datagram_socket&) = delete; class initiate_async_send { public: typedef Executor executor_type; explicit initiate_async_send(basic_datagram_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_send( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_datagram_socket* self_; }; class initiate_async_send_to { public: typedef Executor executor_type; explicit initiate_async_send_to(basic_datagram_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_send_to( self_->impl_.get_implementation(), buffers, destination, flags, handler2.value, self_->impl_.get_executor()); } private: basic_datagram_socket* self_; }; class initiate_async_receive { public: typedef Executor executor_type; explicit initiate_async_receive(basic_datagram_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_receive( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_datagram_socket* self_; }; class initiate_async_receive_from { public: typedef Executor executor_type; explicit initiate_async_receive_from(basic_datagram_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, endpoint_type* sender_endpoint, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_receive_from( self_->impl_.get_implementation(), buffers, *sender_endpoint, flags, handler2.value, self_->impl_.get_executor()); } private: basic_datagram_socket* self_; }; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1397 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_datagram_socket.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/array.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/array.hpp" 3 4 namespace boost { namespace asio { namespace detail { using std::array; } } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/winsock_init.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 class address_v4 { public: typedef uint_least32_t uint_type; # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 typedef boost::asio::detail::array<unsigned char, 4> bytes_type; # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 address_v4() noexcept { addr_.s_addr = 0; } # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 inline explicit address_v4(const bytes_type& bytes); inline explicit address_v4(uint_type addr); address_v4(const address_v4& other) noexcept : addr_(other.addr_) { } address_v4(address_v4&& other) noexcept : addr_(other.addr_) { } address_v4& operator=(const address_v4& other) noexcept { addr_ = other.addr_; return *this; } address_v4& operator=(address_v4&& other) noexcept { addr_ = other.addr_; return *this; } inline bytes_type to_bytes() const noexcept; inline uint_type to_uint() const noexcept; inline unsigned long to_ulong() const; inline std::string to_string() const; inline std::string to_string(boost::system::error_code& ec) const; static address_v4 from_string(const char* str); static address_v4 from_string( const char* str, boost::system::error_code& ec); static address_v4 from_string(const std::string& str); static address_v4 from_string( const std::string& str, boost::system::error_code& ec); # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 inline bool is_loopback() const noexcept; # 181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 inline bool is_unspecified() const noexcept; inline bool is_class_a() const; inline bool is_class_b() const; inline bool is_class_c() const; # 205 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 inline bool is_multicast() const noexcept; friend bool operator==(const address_v4& a1, const address_v4& a2) noexcept { return a1.addr_.s_addr == a2.addr_.s_addr; } friend bool operator!=(const address_v4& a1, const address_v4& a2) noexcept { return a1.addr_.s_addr != a2.addr_.s_addr; } friend bool operator<(const address_v4& a1, const address_v4& a2) noexcept { return a1.to_uint() < a2.to_uint(); } friend bool operator>(const address_v4& a1, const address_v4& a2) noexcept { return a1.to_uint() > a2.to_uint(); } friend bool operator<=(const address_v4& a1, const address_v4& a2) noexcept { return a1.to_uint() <= a2.to_uint(); } friend bool operator>=(const address_v4& a1, const address_v4& a2) noexcept { return a1.to_uint() >= a2.to_uint(); } # 276 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 static address_v4 any() noexcept { return address_v4(); } # 288 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 static address_v4 loopback() noexcept { return address_v4(0x7F000001); } # 300 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 static address_v4 broadcast() noexcept { return address_v4(0xFFFFFFFF); } inline static address_v4 broadcast( const address_v4& addr, const address_v4& mask); inline static address_v4 netmask(const address_v4& addr); private: boost::asio::detail::in4_addr_type addr_; }; inline address_v4 make_address_v4(const address_v4::bytes_type& bytes) { return address_v4(bytes); } inline address_v4 make_address_v4(address_v4::uint_type addr) { return address_v4(addr); } inline address_v4 make_address_v4(const char* str); inline address_v4 make_address_v4(const char* str, boost::system::error_code& ec) noexcept; inline address_v4 make_address_v4(const std::string& str); inline address_v4 make_address_v4(const std::string& str, boost::system::error_code& ec) noexcept; # 373 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 inline address_v4 make_address_v4(string_view str); inline address_v4 make_address_v4(string_view str, boost::system::error_code& ec) noexcept; # 399 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 3 4 template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const address_v4& addr); } } } namespace std { template <> struct hash<boost::asio::ip::address_v4> { std::size_t operator()(const boost::asio::ip::address_v4& addr) const noexcept { return std::hash<unsigned int>()(addr.to_uint()); } }; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 426 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { inline address_v4 address_v4::from_string(const char* str) { return boost::asio::ip::make_address_v4(str); } inline address_v4 address_v4::from_string( const char* str, boost::system::error_code& ec) { return boost::asio::ip::make_address_v4(str, ec); } inline address_v4 address_v4::from_string(const std::string& str) { return boost::asio::ip::make_address_v4(str); } inline address_v4 address_v4::from_string( const std::string& str, boost::system::error_code& ec) { return boost::asio::ip::make_address_v4(str, ec); } template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const address_v4& addr) { return os << addr.to_string().c_str(); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.hpp" 2 3 4 # 428 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 3 4 # 1 "/usr/include/c++/13/climits" 1 3 4 # 39 "/usr/include/c++/13/climits" 3 4 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { address_v4::address_v4(const address_v4::bytes_type& bytes) { # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 3 4 using namespace std; memcpy(&addr_.s_addr, bytes.data(), 4); } address_v4::address_v4(address_v4::uint_type addr) { if ((std::numeric_limits<uint_type>::max)() > 0xFFFFFFFF) { std::out_of_range ex("address_v4 from unsigned integer"); boost::asio::detail::throw_exception(ex); } addr_.s_addr = boost::asio::detail::socket_ops::host_to_network_long( static_cast<boost::asio::detail::u_long_type>(addr)); } address_v4::bytes_type address_v4::to_bytes() const noexcept { using namespace std; bytes_type bytes; memcpy(bytes.data(), &addr_.s_addr, 4); return bytes; } address_v4::uint_type address_v4::to_uint() const noexcept { return boost::asio::detail::socket_ops::network_to_host_long(addr_.s_addr); } unsigned long address_v4::to_ulong() const { return boost::asio::detail::socket_ops::network_to_host_long(addr_.s_addr); } std::string address_v4::to_string() const { boost::system::error_code ec; char addr_str[boost::asio::detail::max_addr_v4_str_len]; const char* addr = boost::asio::detail::socket_ops::inet_ntop( 2, &addr_, addr_str, boost::asio::detail::max_addr_v4_str_len, 0, ec); if (addr == 0) boost::asio::detail::throw_error(ec); return addr; } std::string address_v4::to_string(boost::system::error_code& ec) const { char addr_str[boost::asio::detail::max_addr_v4_str_len]; const char* addr = boost::asio::detail::socket_ops::inet_ntop( 2, &addr_, addr_str, boost::asio::detail::max_addr_v4_str_len, 0, ec); if (addr == 0) return std::string(); return addr; } bool address_v4::is_loopback() const noexcept { return (to_uint() & 0xFF000000) == 0x7F000000; } bool address_v4::is_unspecified() const noexcept { return to_uint() == 0; } bool address_v4::is_class_a() const { return (to_uint() & 0x80000000) == 0; } bool address_v4::is_class_b() const { return (to_uint() & 0xC0000000) == 0x80000000; } bool address_v4::is_class_c() const { return (to_uint() & 0xE0000000) == 0xC0000000; } bool address_v4::is_multicast() const noexcept { return (to_uint() & 0xF0000000) == 0xE0000000; } address_v4 address_v4::broadcast(const address_v4& addr, const address_v4& mask) { return address_v4(addr.to_uint() | (mask.to_uint() ^ 0xFFFFFFFF)); } address_v4 address_v4::netmask(const address_v4& addr) { if (addr.is_class_a()) return address_v4(0xFF000000); if (addr.is_class_b()) return address_v4(0xFFFF0000); if (addr.is_class_c()) return address_v4(0xFFFFFF00); return address_v4(0xFFFFFFFF); } address_v4 make_address_v4(const char* str) { boost::system::error_code ec; address_v4 addr = make_address_v4(str, ec); boost::asio::detail::throw_error(ec); return addr; } address_v4 make_address_v4(const char* str, boost::system::error_code& ec) noexcept { address_v4::bytes_type bytes; if (boost::asio::detail::socket_ops::inet_pton( 2, str, &bytes, 0, ec) <= 0) return address_v4(); return address_v4(bytes); } address_v4 make_address_v4(const std::string& str) { return make_address_v4(str.c_str()); } address_v4 make_address_v4(const std::string& str, boost::system::error_code& ec) noexcept { return make_address_v4(str.c_str(), ec); } address_v4 make_address_v4(string_view str) { return make_address_v4(static_cast<std::string>(str)); } address_v4 make_address_v4(string_view str, boost::system::error_code& ec) noexcept { return make_address_v4(static_cast<std::string>(str), ec); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 211 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v4.ipp" 2 3 4 # 430 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename> class basic_address_iterator; typedef uint_least32_t scope_id_type; # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 class address_v6 { public: # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 typedef boost::asio::detail::array<unsigned char, 16> bytes_type; # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 inline address_v6() noexcept; # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 inline explicit address_v6(const bytes_type& bytes, scope_id_type scope_id = 0); inline address_v6(const address_v6& other) noexcept; inline address_v6(address_v6&& other) noexcept; inline address_v6& operator=( const address_v6& other) noexcept; inline address_v6& operator=(address_v6&& other) noexcept; scope_id_type scope_id() const noexcept { return scope_id_; } void scope_id(scope_id_type id) noexcept { scope_id_ = id; } inline bytes_type to_bytes() const noexcept; inline std::string to_string() const; inline std::string to_string(boost::system::error_code& ec) const; static address_v6 from_string(const char* str); static address_v6 from_string( const char* str, boost::system::error_code& ec); static address_v6 from_string(const std::string& str); static address_v6 from_string( const std::string& str, boost::system::error_code& ec); inline address_v4 to_v4() const; inline bool is_loopback() const noexcept; inline bool is_unspecified() const noexcept; inline bool is_link_local() const noexcept; inline bool is_site_local() const noexcept; inline bool is_v4_mapped() const noexcept; inline bool is_v4_compatible() const; inline bool is_multicast() const noexcept; inline bool is_multicast_global() const noexcept; inline bool is_multicast_link_local() const noexcept; inline bool is_multicast_node_local() const noexcept; inline bool is_multicast_org_local() const noexcept; inline bool is_multicast_site_local() const noexcept; inline friend bool operator==(const address_v6& a1, const address_v6& a2) noexcept; friend bool operator!=(const address_v6& a1, const address_v6& a2) noexcept { return !(a1 == a2); } inline friend bool operator<(const address_v6& a1, const address_v6& a2) noexcept; friend bool operator>(const address_v6& a1, const address_v6& a2) noexcept { return a2 < a1; } friend bool operator<=(const address_v6& a1, const address_v6& a2) noexcept { return !(a2 < a1); } friend bool operator>=(const address_v6& a1, const address_v6& a2) noexcept { return !(a1 < a2); } # 251 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 static address_v6 any() noexcept { return address_v6(); } inline static address_v6 loopback() noexcept; inline static address_v6 v4_mapped(const address_v4& addr); inline static address_v6 v4_compatible(const address_v4& addr); private: friend class basic_address_iterator<address_v6>; boost::asio::detail::in6_addr_type addr_; scope_id_type scope_id_; }; inline address_v6 make_address_v6(const address_v6::bytes_type& bytes, scope_id_type scope_id = 0) { return address_v6(bytes, scope_id); } inline address_v6 make_address_v6(const char* str); inline address_v6 make_address_v6(const char* str, boost::system::error_code& ec) noexcept; inline address_v6 make_address_v6(const std::string& str); inline address_v6 make_address_v6(const std::string& str, boost::system::error_code& ec) noexcept; # 324 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 inline address_v6 make_address_v6(string_view str); inline address_v6 make_address_v6(string_view str, boost::system::error_code& ec) noexcept; enum v4_mapped_t { v4_mapped }; inline address_v4 make_address_v4( v4_mapped_t, const address_v6& v6_addr); inline address_v6 make_address_v6( v4_mapped_t, const address_v4& v4_addr); # 368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 3 4 template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const address_v6& addr); } } } namespace std { template <> struct hash<boost::asio::ip::address_v6> { std::size_t operator()(const boost::asio::ip::address_v6& addr) const noexcept { const boost::asio::ip::address_v6::bytes_type bytes = addr.to_bytes(); std::size_t result = static_cast<std::size_t>(addr.scope_id()); combine_4_bytes(result, &bytes[0]); combine_4_bytes(result, &bytes[4]); combine_4_bytes(result, &bytes[8]); combine_4_bytes(result, &bytes[12]); return result; } private: static void combine_4_bytes(std::size_t& seed, const unsigned char* bytes) { const std::size_t bytes_hash = (static_cast<std::size_t>(bytes[0]) << 24) | (static_cast<std::size_t>(bytes[1]) << 16) | (static_cast<std::size_t>(bytes[2]) << 8) | (static_cast<std::size_t>(bytes[3])); seed ^= bytes_hash + 0x9e3779b9 + (seed << 6) + (seed >> 2); } }; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { inline address_v6 address_v6::from_string(const char* str) { return boost::asio::ip::make_address_v6(str); } inline address_v6 address_v6::from_string( const char* str, boost::system::error_code& ec) { return boost::asio::ip::make_address_v6(str, ec); } inline address_v6 address_v6::from_string(const std::string& str) { return boost::asio::ip::make_address_v6(str); } inline address_v6 address_v6::from_string( const std::string& str, boost::system::error_code& ec) { return boost::asio::ip::make_address_v6(str, ec); } template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const address_v6& addr) { return os << addr.to_string().c_str(); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.hpp" 2 3 4 # 414 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/bad_address_cast.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/bad_address_cast.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/bad_address_cast.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { class bad_address_cast : public std::bad_cast { public: bad_address_cast() {} bad_address_cast(const bad_address_cast& other) noexcept : std::bad_cast(static_cast<const std::bad_cast&>(other)) { } virtual ~bad_address_cast() noexcept {} virtual const char* what() const noexcept { return "bad address cast"; } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/bad_address_cast.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { address_v6::address_v6() noexcept : addr_(), scope_id_(0) { } address_v6::address_v6(const address_v6::bytes_type& bytes, scope_id_type scope) : scope_id_(scope) { # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 3 4 using namespace std; memcpy(addr_.__in6_u.__u6_addr8, bytes.data(), 16); } address_v6::address_v6(const address_v6& other) noexcept : addr_(other.addr_), scope_id_(other.scope_id_) { } address_v6::address_v6(address_v6&& other) noexcept : addr_(other.addr_), scope_id_(other.scope_id_) { } address_v6& address_v6::operator=(const address_v6& other) noexcept { addr_ = other.addr_; scope_id_ = other.scope_id_; return *this; } address_v6& address_v6::operator=(address_v6&& other) noexcept { addr_ = other.addr_; scope_id_ = other.scope_id_; return *this; } address_v6::bytes_type address_v6::to_bytes() const noexcept { using namespace std; bytes_type bytes; memcpy(bytes.data(), addr_.__in6_u.__u6_addr8, 16); return bytes; } std::string address_v6::to_string() const { boost::system::error_code ec; char addr_str[boost::asio::detail::max_addr_v6_str_len]; const char* addr = boost::asio::detail::socket_ops::inet_ntop( 10, &addr_, addr_str, boost::asio::detail::max_addr_v6_str_len, scope_id_, ec); if (addr == 0) boost::asio::detail::throw_error(ec); return addr; } std::string address_v6::to_string(boost::system::error_code& ec) const { char addr_str[boost::asio::detail::max_addr_v6_str_len]; const char* addr = boost::asio::detail::socket_ops::inet_ntop( 10, &addr_, addr_str, boost::asio::detail::max_addr_v6_str_len, scope_id_, ec); if (addr == 0) return std::string(); return addr; } address_v4 address_v6::to_v4() const { if (!is_v4_mapped() && !is_v4_compatible()) { bad_address_cast ex; boost::asio::detail::throw_exception(ex); } address_v4::bytes_type v4_bytes = { { addr_.__in6_u.__u6_addr8[12], addr_.__in6_u.__u6_addr8[13], addr_.__in6_u.__u6_addr8[14], addr_.__in6_u.__u6_addr8[15] } }; return address_v4(v4_bytes); } bool address_v6::is_loopback() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0) && (addr_.__in6_u.__u6_addr8[1] == 0) && (addr_.__in6_u.__u6_addr8[2] == 0) && (addr_.__in6_u.__u6_addr8[3] == 0) && (addr_.__in6_u.__u6_addr8[4] == 0) && (addr_.__in6_u.__u6_addr8[5] == 0) && (addr_.__in6_u.__u6_addr8[6] == 0) && (addr_.__in6_u.__u6_addr8[7] == 0) && (addr_.__in6_u.__u6_addr8[8] == 0) && (addr_.__in6_u.__u6_addr8[9] == 0) && (addr_.__in6_u.__u6_addr8[10] == 0) && (addr_.__in6_u.__u6_addr8[11] == 0) && (addr_.__in6_u.__u6_addr8[12] == 0) && (addr_.__in6_u.__u6_addr8[13] == 0) && (addr_.__in6_u.__u6_addr8[14] == 0) && (addr_.__in6_u.__u6_addr8[15] == 1)); } bool address_v6::is_unspecified() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0) && (addr_.__in6_u.__u6_addr8[1] == 0) && (addr_.__in6_u.__u6_addr8[2] == 0) && (addr_.__in6_u.__u6_addr8[3] == 0) && (addr_.__in6_u.__u6_addr8[4] == 0) && (addr_.__in6_u.__u6_addr8[5] == 0) && (addr_.__in6_u.__u6_addr8[6] == 0) && (addr_.__in6_u.__u6_addr8[7] == 0) && (addr_.__in6_u.__u6_addr8[8] == 0) && (addr_.__in6_u.__u6_addr8[9] == 0) && (addr_.__in6_u.__u6_addr8[10] == 0) && (addr_.__in6_u.__u6_addr8[11] == 0) && (addr_.__in6_u.__u6_addr8[12] == 0) && (addr_.__in6_u.__u6_addr8[13] == 0) && (addr_.__in6_u.__u6_addr8[14] == 0) && (addr_.__in6_u.__u6_addr8[15] == 0)); } bool address_v6::is_link_local() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xfe) && ((addr_.__in6_u.__u6_addr8[1] & 0xc0) == 0x80)); } bool address_v6::is_site_local() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xfe) && ((addr_.__in6_u.__u6_addr8[1] & 0xc0) == 0xc0)); } bool address_v6::is_v4_mapped() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0) && (addr_.__in6_u.__u6_addr8[1] == 0) && (addr_.__in6_u.__u6_addr8[2] == 0) && (addr_.__in6_u.__u6_addr8[3] == 0) && (addr_.__in6_u.__u6_addr8[4] == 0) && (addr_.__in6_u.__u6_addr8[5] == 0) && (addr_.__in6_u.__u6_addr8[6] == 0) && (addr_.__in6_u.__u6_addr8[7] == 0) && (addr_.__in6_u.__u6_addr8[8] == 0) && (addr_.__in6_u.__u6_addr8[9] == 0) && (addr_.__in6_u.__u6_addr8[10] == 0xff) && (addr_.__in6_u.__u6_addr8[11] == 0xff)); } bool address_v6::is_v4_compatible() const { return ((addr_.__in6_u.__u6_addr8[0] == 0) && (addr_.__in6_u.__u6_addr8[1] == 0) && (addr_.__in6_u.__u6_addr8[2] == 0) && (addr_.__in6_u.__u6_addr8[3] == 0) && (addr_.__in6_u.__u6_addr8[4] == 0) && (addr_.__in6_u.__u6_addr8[5] == 0) && (addr_.__in6_u.__u6_addr8[6] == 0) && (addr_.__in6_u.__u6_addr8[7] == 0) && (addr_.__in6_u.__u6_addr8[8] == 0) && (addr_.__in6_u.__u6_addr8[9] == 0) && (addr_.__in6_u.__u6_addr8[10] == 0) && (addr_.__in6_u.__u6_addr8[11] == 0) && !((addr_.__in6_u.__u6_addr8[12] == 0) && (addr_.__in6_u.__u6_addr8[13] == 0) && (addr_.__in6_u.__u6_addr8[14] == 0) && ((addr_.__in6_u.__u6_addr8[15] == 0) || (addr_.__in6_u.__u6_addr8[15] == 1)))); } bool address_v6::is_multicast() const noexcept { return (addr_.__in6_u.__u6_addr8[0] == 0xff); } bool address_v6::is_multicast_global() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xff) && ((addr_.__in6_u.__u6_addr8[1] & 0x0f) == 0x0e)); } bool address_v6::is_multicast_link_local() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xff) && ((addr_.__in6_u.__u6_addr8[1] & 0x0f) == 0x02)); } bool address_v6::is_multicast_node_local() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xff) && ((addr_.__in6_u.__u6_addr8[1] & 0x0f) == 0x01)); } bool address_v6::is_multicast_org_local() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xff) && ((addr_.__in6_u.__u6_addr8[1] & 0x0f) == 0x08)); } bool address_v6::is_multicast_site_local() const noexcept { return ((addr_.__in6_u.__u6_addr8[0] == 0xff) && ((addr_.__in6_u.__u6_addr8[1] & 0x0f) == 0x05)); } bool operator==(const address_v6& a1, const address_v6& a2) noexcept { using namespace std; return memcmp(&a1.addr_, &a2.addr_, sizeof(boost::asio::detail::in6_addr_type)) == 0 && a1.scope_id_ == a2.scope_id_; } bool operator<(const address_v6& a1, const address_v6& a2) noexcept { using namespace std; int memcmp_result = memcmp(&a1.addr_, &a2.addr_, sizeof(boost::asio::detail::in6_addr_type)); if (memcmp_result < 0) return true; if (memcmp_result > 0) return false; return a1.scope_id_ < a2.scope_id_; } address_v6 address_v6::loopback() noexcept { address_v6 tmp; tmp.addr_.__in6_u.__u6_addr8[15] = 1; return tmp; } address_v6 address_v6::v4_mapped(const address_v4& addr) { address_v4::bytes_type v4_bytes = addr.to_bytes(); bytes_type v6_bytes = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, v4_bytes[0], v4_bytes[1], v4_bytes[2], v4_bytes[3] } }; return address_v6(v6_bytes); } address_v6 address_v6::v4_compatible(const address_v4& addr) { address_v4::bytes_type v4_bytes = addr.to_bytes(); bytes_type v6_bytes = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, v4_bytes[0], v4_bytes[1], v4_bytes[2], v4_bytes[3] } }; return address_v6(v6_bytes); } address_v6 make_address_v6(const char* str) { boost::system::error_code ec; address_v6 addr = make_address_v6(str, ec); boost::asio::detail::throw_error(ec); return addr; } address_v6 make_address_v6(const char* str, boost::system::error_code& ec) noexcept { address_v6::bytes_type bytes; unsigned long scope_id = 0; if (boost::asio::detail::socket_ops::inet_pton( 10, str, &bytes[0], &scope_id, ec) <= 0) return address_v6(); return address_v6(bytes, scope_id); } address_v6 make_address_v6(const std::string& str) { return make_address_v6(str.c_str()); } address_v6 make_address_v6(const std::string& str, boost::system::error_code& ec) noexcept { return make_address_v6(str.c_str(), ec); } address_v6 make_address_v6(string_view str) { return make_address_v6(static_cast<std::string>(str)); } address_v6 make_address_v6(string_view str, boost::system::error_code& ec) noexcept { return make_address_v6(static_cast<std::string>(str), ec); } address_v4 make_address_v4( v4_mapped_t, const address_v6& v6_addr) { if (!v6_addr.is_v4_mapped()) { bad_address_cast ex; boost::asio::detail::throw_exception(ex); } address_v6::bytes_type v6_bytes = v6_addr.to_bytes(); address_v4::bytes_type v4_bytes = { { v6_bytes[12], v6_bytes[13], v6_bytes[14], v6_bytes[15] } }; return address_v4(v4_bytes); } address_v6 make_address_v6( v4_mapped_t, const address_v4& v4_addr) { address_v4::bytes_type v4_bytes = v4_addr.to_bytes(); address_v6::bytes_type v6_bytes = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xFF, 0xFF, v4_bytes[0], v4_bytes[1], v4_bytes[2], v4_bytes[3] } }; return address_v6(v6_bytes); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 351 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address_v6.ipp" 2 3 4 # 416 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 3 4 class address { public: inline address() noexcept; inline address( const boost::asio::ip::address_v4& ipv4_address) noexcept; inline address( const boost::asio::ip::address_v6& ipv6_address) noexcept; inline address(const address& other) noexcept; inline address(address&& other) noexcept; inline address& operator=(const address& other) noexcept; inline address& operator=(address&& other) noexcept; inline address& operator=( const boost::asio::ip::address_v4& ipv4_address) noexcept; inline address& operator=( const boost::asio::ip::address_v6& ipv6_address) noexcept; bool is_v4() const noexcept { return type_ == ipv4; } bool is_v6() const noexcept { return type_ == ipv6; } inline boost::asio::ip::address_v4 to_v4() const; inline boost::asio::ip::address_v6 to_v6() const; inline std::string to_string() const; inline std::string to_string(boost::system::error_code& ec) const; static address from_string(const char* str); static address from_string(const char* str, boost::system::error_code& ec); static address from_string(const std::string& str); static address from_string( const std::string& str, boost::system::error_code& ec); inline bool is_loopback() const noexcept; inline bool is_unspecified() const noexcept; inline bool is_multicast() const noexcept; inline friend bool operator==(const address& a1, const address& a2) noexcept; friend bool operator!=(const address& a1, const address& a2) noexcept { return !(a1 == a2); } inline friend bool operator<(const address& a1, const address& a2) noexcept; friend bool operator>(const address& a1, const address& a2) noexcept { return a2 < a1; } friend bool operator<=(const address& a1, const address& a2) noexcept { return !(a2 < a1); } friend bool operator>=(const address& a1, const address& a2) noexcept { return !(a1 < a2); } private: enum { ipv4, ipv6 } type_; boost::asio::ip::address_v4 ipv4_address_; boost::asio::ip::address_v6 ipv6_address_; }; inline address make_address(const char* str); inline address make_address(const char* str, boost::system::error_code& ec) noexcept; inline address make_address(const std::string& str); inline address make_address(const std::string& str, boost::system::error_code& ec) noexcept; # 230 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 3 4 inline address make_address(string_view str); inline address make_address(string_view str, boost::system::error_code& ec) noexcept; # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 3 4 template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const address& addr); } } } namespace std { template <> struct hash<boost::asio::ip::address> { std::size_t operator()(const boost::asio::ip::address& addr) const noexcept { return addr.is_v4() ? std::hash<boost::asio::ip::address_v4>()(addr.to_v4()) : std::hash<boost::asio::ip::address_v6>()(addr.to_v6()); } }; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 286 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { inline address address::from_string(const char* str) { return boost::asio::ip::make_address(str); } inline address address::from_string( const char* str, boost::system::error_code& ec) { return boost::asio::ip::make_address(str, ec); } inline address address::from_string(const std::string& str) { return boost::asio::ip::make_address(str); } inline address address::from_string( const std::string& str, boost::system::error_code& ec) { return boost::asio::ip::make_address(str, ec); } template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const address& addr) { return os << addr.to_string().c_str(); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.hpp" 2 3 4 # 288 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.ipp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { address::address() noexcept : type_(ipv4), ipv4_address_(), ipv6_address_() { } address::address( const boost::asio::ip::address_v4& ipv4_address) noexcept : type_(ipv4), ipv4_address_(ipv4_address), ipv6_address_() { } address::address( const boost::asio::ip::address_v6& ipv6_address) noexcept : type_(ipv6), ipv4_address_(), ipv6_address_(ipv6_address) { } address::address(const address& other) noexcept : type_(other.type_), ipv4_address_(other.ipv4_address_), ipv6_address_(other.ipv6_address_) { } address::address(address&& other) noexcept : type_(other.type_), ipv4_address_(other.ipv4_address_), ipv6_address_(other.ipv6_address_) { } address& address::operator=(const address& other) noexcept { type_ = other.type_; ipv4_address_ = other.ipv4_address_; ipv6_address_ = other.ipv6_address_; return *this; } address& address::operator=(address&& other) noexcept { type_ = other.type_; ipv4_address_ = other.ipv4_address_; ipv6_address_ = other.ipv6_address_; return *this; } address& address::operator=( const boost::asio::ip::address_v4& ipv4_address) noexcept { type_ = ipv4; ipv4_address_ = ipv4_address; ipv6_address_ = boost::asio::ip::address_v6(); return *this; } address& address::operator=( const boost::asio::ip::address_v6& ipv6_address) noexcept { type_ = ipv6; ipv4_address_ = boost::asio::ip::address_v4(); ipv6_address_ = ipv6_address; return *this; } address make_address(const char* str) { boost::system::error_code ec; address addr = make_address(str, ec); boost::asio::detail::throw_error(ec); return addr; } address make_address(const char* str, boost::system::error_code& ec) noexcept { boost::asio::ip::address_v6 ipv6_address = boost::asio::ip::make_address_v6(str, ec); if (!ec) return address(ipv6_address); boost::asio::ip::address_v4 ipv4_address = boost::asio::ip::make_address_v4(str, ec); if (!ec) return address(ipv4_address); return address(); } address make_address(const std::string& str) { return make_address(str.c_str()); } address make_address(const std::string& str, boost::system::error_code& ec) noexcept { return make_address(str.c_str(), ec); } address make_address(string_view str) { return make_address(static_cast<std::string>(str)); } address make_address(string_view str, boost::system::error_code& ec) noexcept { return make_address(static_cast<std::string>(str), ec); } boost::asio::ip::address_v4 address::to_v4() const { if (type_ != ipv4) { bad_address_cast ex; boost::asio::detail::throw_exception(ex); } return ipv4_address_; } boost::asio::ip::address_v6 address::to_v6() const { if (type_ != ipv6) { bad_address_cast ex; boost::asio::detail::throw_exception(ex); } return ipv6_address_; } std::string address::to_string() const { if (type_ == ipv6) return ipv6_address_.to_string(); return ipv4_address_.to_string(); } std::string address::to_string(boost::system::error_code& ec) const { if (type_ == ipv6) return ipv6_address_.to_string(ec); return ipv4_address_.to_string(ec); } bool address::is_loopback() const noexcept { return (type_ == ipv4) ? ipv4_address_.is_loopback() : ipv6_address_.is_loopback(); } bool address::is_unspecified() const noexcept { return (type_ == ipv4) ? ipv4_address_.is_unspecified() : ipv6_address_.is_unspecified(); } bool address::is_multicast() const noexcept { return (type_ == ipv4) ? ipv4_address_.is_multicast() : ipv6_address_.is_multicast(); } bool operator==(const address& a1, const address& a2) noexcept { if (a1.type_ != a2.type_) return false; if (a1.type_ == address::ipv6) return a1.ipv6_address_ == a2.ipv6_address_; return a1.ipv4_address_ == a2.ipv4_address_; } bool operator<(const address& a1, const address& a2) noexcept { if (a1.type_ < a2.type_) return true; if (a1.type_ > a2.type_) return false; if (a1.type_ == address::ipv6) return a1.ipv6_address_ < a2.ipv6_address_; return a1.ipv4_address_ < a2.ipv4_address_; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 240 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/address.ipp" 2 3 4 # 290 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/endpoint.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { namespace detail { class endpoint { public: inline endpoint() noexcept; inline endpoint(int family, unsigned short port_num) noexcept; inline endpoint(const boost::asio::ip::address& addr, unsigned short port_num) noexcept; endpoint(const endpoint& other) noexcept : data_(other.data_) { } endpoint& operator=(const endpoint& other) noexcept { data_ = other.data_; return *this; } boost::asio::detail::socket_addr_type* data() noexcept { return &data_.base; } const boost::asio::detail::socket_addr_type* data() const noexcept { return &data_.base; } std::size_t size() const noexcept { if (is_v4()) return sizeof(boost::asio::detail::sockaddr_in4_type); else return sizeof(boost::asio::detail::sockaddr_in6_type); } inline void resize(std::size_t new_size); std::size_t capacity() const noexcept { return sizeof(data_); } inline unsigned short port() const noexcept; inline void port(unsigned short port_num) noexcept; inline boost::asio::ip::address address() const noexcept; inline void address( const boost::asio::ip::address& addr) noexcept; inline friend bool operator==(const endpoint& e1, const endpoint& e2) noexcept; inline friend bool operator<(const endpoint& e1, const endpoint& e2) noexcept; bool is_v4() const noexcept { return data_.base.sa_family == 2; } inline std::string to_string() const; private: union data_union { boost::asio::detail::socket_addr_type base; boost::asio::detail::sockaddr_in4_type v4; boost::asio::detail::sockaddr_in6_type v6; } data_; }; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 138 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/impl/endpoint.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/impl/endpoint.ipp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/impl/endpoint.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/endpoint.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/impl/endpoint.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/impl/endpoint.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { namespace detail { endpoint::endpoint() noexcept : data_() { data_.v4.sin_family = 2; data_.v4.sin_port = 0; data_.v4.sin_addr.s_addr = ((in_addr_t) 0x00000000); } endpoint::endpoint(int family, unsigned short port_num) noexcept : data_() { using namespace std; if (family == 2) { data_.v4.sin_family = 2; data_.v4.sin_port = boost::asio::detail::socket_ops::host_to_network_short(port_num); data_.v4.sin_addr.s_addr = ((in_addr_t) 0x00000000); } else { data_.v6.sin6_family = 10; data_.v6.sin6_port = boost::asio::detail::socket_ops::host_to_network_short(port_num); data_.v6.sin6_flowinfo = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[0] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[1] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[2] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[3] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[4] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[5] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[6] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[7] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[8] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[9] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[10] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[11] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[12] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[13] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[14] = 0; data_.v6.sin6_addr.__in6_u.__u6_addr8[15] = 0; data_.v6.sin6_scope_id = 0; } } endpoint::endpoint(const boost::asio::ip::address& addr, unsigned short port_num) noexcept : data_() { using namespace std; if (addr.is_v4()) { data_.v4.sin_family = 2; data_.v4.sin_port = boost::asio::detail::socket_ops::host_to_network_short(port_num); data_.v4.sin_addr.s_addr = boost::asio::detail::socket_ops::host_to_network_long( addr.to_v4().to_uint()); } else { data_.v6.sin6_family = 10; data_.v6.sin6_port = boost::asio::detail::socket_ops::host_to_network_short(port_num); data_.v6.sin6_flowinfo = 0; boost::asio::ip::address_v6 v6_addr = addr.to_v6(); boost::asio::ip::address_v6::bytes_type bytes = v6_addr.to_bytes(); memcpy(data_.v6.sin6_addr.__in6_u.__u6_addr8, bytes.data(), 16); data_.v6.sin6_scope_id = static_cast<boost::asio::detail::u_long_type>( v6_addr.scope_id()); } } void endpoint::resize(std::size_t new_size) { if (new_size > sizeof(boost::asio::detail::sockaddr_storage_type)) { boost::system::error_code ec(boost::asio::error::invalid_argument); boost::asio::detail::throw_error(ec); } } unsigned short endpoint::port() const noexcept { if (is_v4()) { return boost::asio::detail::socket_ops::network_to_host_short( data_.v4.sin_port); } else { return boost::asio::detail::socket_ops::network_to_host_short( data_.v6.sin6_port); } } void endpoint::port(unsigned short port_num) noexcept { if (is_v4()) { data_.v4.sin_port = boost::asio::detail::socket_ops::host_to_network_short(port_num); } else { data_.v6.sin6_port = boost::asio::detail::socket_ops::host_to_network_short(port_num); } } boost::asio::ip::address endpoint::address() const noexcept { using namespace std; if (is_v4()) { return boost::asio::ip::address_v4( boost::asio::detail::socket_ops::network_to_host_long( data_.v4.sin_addr.s_addr)); } else { boost::asio::ip::address_v6::bytes_type bytes; memcpy(bytes.data(), data_.v6.sin6_addr.__in6_u.__u6_addr8, 16); return boost::asio::ip::address_v6(bytes, data_.v6.sin6_scope_id); } } void endpoint::address(const boost::asio::ip::address& addr) noexcept { endpoint tmp_endpoint(addr, port()); data_ = tmp_endpoint.data_; } bool operator==(const endpoint& e1, const endpoint& e2) noexcept { return e1.address() == e2.address() && e1.port() == e2.port(); } bool operator<(const endpoint& e1, const endpoint& e2) noexcept { if (e1.address() < e2.address()) return true; if (e1.address() != e2.address()) return false; return e1.port() < e2.port(); } std::string endpoint::to_string() const { std::ostringstream tmp_os; tmp_os.imbue(std::locale::classic()); if (is_v4()) tmp_os << address(); else tmp_os << '[' << address() << ']'; tmp_os << ':' << port(); return tmp_os.str(); } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 200 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/impl/endpoint.ipp" 2 3 4 # 141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/endpoint.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { typedef uint_least16_t port_type; # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 3 4 template <typename InternetProtocol> class basic_endpoint { public: typedef InternetProtocol protocol_type; typedef boost::asio::detail::socket_addr_type data_type; basic_endpoint() noexcept : impl_() { } # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 3 4 basic_endpoint(const InternetProtocol& internet_protocol, port_type port_num) noexcept : impl_(internet_protocol.family(), port_num) { } basic_endpoint(const boost::asio::ip::address& addr, port_type port_num) noexcept : impl_(addr, port_num) { } basic_endpoint(const basic_endpoint& other) noexcept : impl_(other.impl_) { } basic_endpoint(basic_endpoint&& other) noexcept : impl_(other.impl_) { } basic_endpoint& operator=(const basic_endpoint& other) noexcept { impl_ = other.impl_; return *this; } basic_endpoint& operator=(basic_endpoint&& other) noexcept { impl_ = other.impl_; return *this; } protocol_type protocol() const noexcept { if (impl_.is_v4()) return InternetProtocol::v4(); return InternetProtocol::v6(); } data_type* data() noexcept { return impl_.data(); } const data_type* data() const noexcept { return impl_.data(); } std::size_t size() const noexcept { return impl_.size(); } void resize(std::size_t new_size) { impl_.resize(new_size); } std::size_t capacity() const noexcept { return impl_.capacity(); } port_type port() const noexcept { return impl_.port(); } void port(port_type port_num) noexcept { impl_.port(port_num); } boost::asio::ip::address address() const noexcept { return impl_.address(); } void address(const boost::asio::ip::address& addr) noexcept { impl_.address(addr); } friend bool operator==(const basic_endpoint<InternetProtocol>& e1, const basic_endpoint<InternetProtocol>& e2) noexcept { return e1.impl_ == e2.impl_; } friend bool operator!=(const basic_endpoint<InternetProtocol>& e1, const basic_endpoint<InternetProtocol>& e2) noexcept { return !(e1 == e2); } friend bool operator<(const basic_endpoint<InternetProtocol>& e1, const basic_endpoint<InternetProtocol>& e2) noexcept { return e1.impl_ < e2.impl_; } friend bool operator>(const basic_endpoint<InternetProtocol>& e1, const basic_endpoint<InternetProtocol>& e2) noexcept { return e2.impl_ < e1.impl_; } friend bool operator<=(const basic_endpoint<InternetProtocol>& e1, const basic_endpoint<InternetProtocol>& e2) noexcept { return !(e2 < e1); } friend bool operator>=(const basic_endpoint<InternetProtocol>& e1, const basic_endpoint<InternetProtocol>& e2) noexcept { return !(e1 < e2); } private: boost::asio::ip::detail::endpoint impl_; }; # 259 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 3 4 template <typename Elem, typename Traits, typename InternetProtocol> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const basic_endpoint<InternetProtocol>& endpoint); } } } namespace std { template <typename InternetProtocol> struct hash<boost::asio::ip::basic_endpoint<InternetProtocol> > { std::size_t operator()( const boost::asio::ip::basic_endpoint<InternetProtocol>& ep) const noexcept { std::size_t hash1 = std::hash<boost::asio::ip::address>()(ep.address()); std::size_t hash2 = std::hash<unsigned short>()(ep.port()); return hash1 ^ (hash2 + 0x9e3779b9 + (hash1 << 6) + (hash1 >> 2)); } }; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 290 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/basic_endpoint.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/basic_endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/basic_endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename Elem, typename Traits, typename InternetProtocol> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const basic_endpoint<InternetProtocol>& endpoint) { boost::asio::ip::detail::endpoint tmp_ep(endpoint.address(), endpoint.port()); return os << tmp_ep.to_string().c_str(); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/basic_endpoint.hpp" 2 3 4 # 292 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_endpoint.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_entry.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_entry.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_entry.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_entry.hpp" 3 4 template <typename InternetProtocol> class basic_resolver_entry { public: typedef InternetProtocol protocol_type; typedef typename InternetProtocol::endpoint endpoint_type; basic_resolver_entry() { } basic_resolver_entry(const endpoint_type& ep, boost::asio::string_view host, boost::asio::string_view service) : endpoint_(ep), host_name_(static_cast<std::string>(host)), service_name_(static_cast<std::string>(service)) { } endpoint_type endpoint() const { return endpoint_; } operator endpoint_type() const { return endpoint_; } std::string host_name() const { return host_name_; } template <class Allocator> std::basic_string<char, std::char_traits<char>, Allocator> host_name( const Allocator& alloc = Allocator()) const { return std::basic_string<char, std::char_traits<char>, Allocator>( host_name_.c_str(), alloc); } std::string service_name() const { return service_name_; } template <class Allocator> std::basic_string<char, std::char_traits<char>, Allocator> service_name( const Allocator& alloc = Allocator()) const { return std::basic_string<char, std::char_traits<char>, Allocator>( service_name_.c_str(), alloc); } private: endpoint_type endpoint_; std::string host_name_; std::string service_name_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_entry.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 3 4 template <typename InternetProtocol> class basic_resolver_iterator { public: typedef std::ptrdiff_t difference_type; typedef basic_resolver_entry<InternetProtocol> value_type; typedef const basic_resolver_entry<InternetProtocol>* pointer; typedef const basic_resolver_entry<InternetProtocol>& reference; typedef std::forward_iterator_tag iterator_category; basic_resolver_iterator() : index_(0) { } basic_resolver_iterator(const basic_resolver_iterator& other) : values_(other.values_), index_(other.index_) { } basic_resolver_iterator(basic_resolver_iterator&& other) : values_(static_cast<values_ptr_type&&>(other.values_)), index_(other.index_) { other.index_ = 0; } basic_resolver_iterator& operator=(const basic_resolver_iterator& other) { values_ = other.values_; index_ = other.index_; return *this; } basic_resolver_iterator& operator=(basic_resolver_iterator&& other) { if (this != &other) { values_ = static_cast<values_ptr_type&&>(other.values_); index_ = other.index_; other.index_ = 0; } return *this; } const basic_resolver_entry<InternetProtocol>& operator*() const { return dereference(); } const basic_resolver_entry<InternetProtocol>* operator->() const { return &dereference(); } basic_resolver_iterator& operator++() { increment(); return *this; } basic_resolver_iterator operator++(int) { basic_resolver_iterator tmp(*this); ++*this; return tmp; } friend bool operator==(const basic_resolver_iterator& a, const basic_resolver_iterator& b) { return a.equal(b); } friend bool operator!=(const basic_resolver_iterator& a, const basic_resolver_iterator& b) { return !a.equal(b); } protected: void increment() { if (++index_ == values_->size()) { values_.reset(); index_ = 0; } } bool equal(const basic_resolver_iterator& other) const { if (!values_ && !other.values_) return true; if (values_ != other.values_) return false; return index_ == other.index_; } const basic_resolver_entry<InternetProtocol>& dereference() const { return (*values_)[index_]; } typedef std::vector<basic_resolver_entry<InternetProtocol> > values_type; typedef boost::asio::detail::shared_ptr<values_type> values_ptr_type; values_ptr_type values_; std::size_t index_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_iterator.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_query_base.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_query_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_base.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_base.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { class resolver_base { public: # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_base.hpp" 3 4 enum flags { canonical_name = 0x0002, passive = 0x0001, numeric_host = 0x0004, numeric_service = 0x0400, v4_mapped = 0x0008, all_matching = 0x0010, address_configured = 0x0020 }; friend flags operator&(flags x, flags y) { return static_cast<flags>( static_cast<unsigned int>(x) & static_cast<unsigned int>(y)); } friend flags operator|(flags x, flags y) { return static_cast<flags>( static_cast<unsigned int>(x) | static_cast<unsigned int>(y)); } friend flags operator^(flags x, flags y) { return static_cast<flags>( static_cast<unsigned int>(x) ^ static_cast<unsigned int>(y)); } friend flags operator~(flags x) { return static_cast<flags>(~static_cast<unsigned int>(x)); } friend flags& operator&=(flags& x, flags y) { x = x & y; return x; } friend flags& operator|=(flags& x, flags y) { x = x | y; return x; } friend flags& operator^=(flags& x, flags y) { x = x ^ y; return x; } protected: ~resolver_base() { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 130 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_base.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_query_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_query_base.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { class resolver_query_base : public resolver_base { protected: ~resolver_query_base() { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/resolver_query_base.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 3 4 template <typename InternetProtocol> class basic_resolver_query : public resolver_query_base { public: typedef InternetProtocol protocol_type; # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 3 4 basic_resolver_query(const std::string& service, resolver_query_base::flags resolve_flags = passive | address_configured) : hints_(), host_name_(), service_name_(service) { typename InternetProtocol::endpoint endpoint; hints_.ai_flags = static_cast<int>(resolve_flags); hints_.ai_family = 0; hints_.ai_socktype = endpoint.protocol().type(); hints_.ai_protocol = endpoint.protocol().protocol(); hints_.ai_addrlen = 0; hints_.ai_canonname = 0; hints_.ai_addr = 0; hints_.ai_next = 0; } # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 3 4 basic_resolver_query(const protocol_type& protocol, const std::string& service, resolver_query_base::flags resolve_flags = passive | address_configured) : hints_(), host_name_(), service_name_(service) { hints_.ai_flags = static_cast<int>(resolve_flags); hints_.ai_family = protocol.family(); hints_.ai_socktype = protocol.type(); hints_.ai_protocol = protocol.protocol(); hints_.ai_addrlen = 0; hints_.ai_canonname = 0; hints_.ai_addr = 0; hints_.ai_next = 0; } # 148 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 3 4 basic_resolver_query(const std::string& host, const std::string& service, resolver_query_base::flags resolve_flags = address_configured) : hints_(), host_name_(host), service_name_(service) { typename InternetProtocol::endpoint endpoint; hints_.ai_flags = static_cast<int>(resolve_flags); hints_.ai_family = 0; hints_.ai_socktype = endpoint.protocol().type(); hints_.ai_protocol = endpoint.protocol().protocol(); hints_.ai_addrlen = 0; hints_.ai_canonname = 0; hints_.ai_addr = 0; hints_.ai_next = 0; } # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 3 4 basic_resolver_query(const protocol_type& protocol, const std::string& host, const std::string& service, resolver_query_base::flags resolve_flags = address_configured) : hints_(), host_name_(host), service_name_(service) { hints_.ai_flags = static_cast<int>(resolve_flags); hints_.ai_family = protocol.family(); hints_.ai_socktype = protocol.type(); hints_.ai_protocol = protocol.protocol(); hints_.ai_addrlen = 0; hints_.ai_canonname = 0; hints_.ai_addr = 0; hints_.ai_next = 0; } const boost::asio::detail::addrinfo_type& hints() const { return hints_; } std::string host_name() const { return host_name_; } std::string service_name() const { return service_name_; } private: boost::asio::detail::addrinfo_type hints_; std::string host_name_; std::string service_name_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_query.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 3 4 template <typename InternetProtocol> class basic_resolver_results : public basic_resolver_iterator<InternetProtocol> { public: typedef InternetProtocol protocol_type; typedef typename protocol_type::endpoint endpoint_type; typedef basic_resolver_entry<protocol_type> value_type; typedef const value_type& const_reference; typedef value_type& reference; typedef basic_resolver_iterator<protocol_type> const_iterator; typedef const_iterator iterator; typedef std::ptrdiff_t difference_type; typedef std::size_t size_type; basic_resolver_results() { } basic_resolver_results(const basic_resolver_results& other) : basic_resolver_iterator<InternetProtocol>(other) { } basic_resolver_results(basic_resolver_results&& other) : basic_resolver_iterator<InternetProtocol>( static_cast<basic_resolver_results&&>(other)) { } basic_resolver_results& operator=(const basic_resolver_results& other) { basic_resolver_iterator<InternetProtocol>::operator=(other); return *this; } basic_resolver_results& operator=(basic_resolver_results&& other) { basic_resolver_iterator<InternetProtocol>::operator=( static_cast<basic_resolver_results&&>(other)); return *this; } static basic_resolver_results create( boost::asio::detail::addrinfo_type* address_info, const std::string& host_name, const std::string& service_name) { basic_resolver_results results; if (!address_info) return results; std::string actual_host_name = host_name; if (address_info->ai_canonname) actual_host_name = address_info->ai_canonname; results.values_.reset(new values_type); while (address_info) { if (address_info->ai_family == 2 || address_info->ai_family == 10) { using namespace std; typename InternetProtocol::endpoint endpoint; endpoint.resize(static_cast<std::size_t>(address_info->ai_addrlen)); memcpy(endpoint.data(), address_info->ai_addr, address_info->ai_addrlen); results.values_->push_back( basic_resolver_entry<InternetProtocol>(endpoint, actual_host_name, service_name)); } address_info = address_info->ai_next; } return results; } static basic_resolver_results create(const endpoint_type& endpoint, const std::string& host_name, const std::string& service_name) { basic_resolver_results results; results.values_.reset(new values_type); results.values_->push_back( basic_resolver_entry<InternetProtocol>( endpoint, host_name, service_name)); return results; } template <typename EndpointIterator> static basic_resolver_results create( EndpointIterator begin, EndpointIterator end, const std::string& host_name, const std::string& service_name) { basic_resolver_results results; if (begin != end) { results.values_.reset(new values_type); for (EndpointIterator ep_iter = begin; ep_iter != end; ++ep_iter) { results.values_->push_back( basic_resolver_entry<InternetProtocol>( *ep_iter, host_name, service_name)); } } return results; } # 234 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 3 4 size_type size() const noexcept { return this->values_ ? this->values_->size() : 0; } size_type max_size() const noexcept { return this->values_ ? this->values_->max_size() : values_type().max_size(); } bool empty() const noexcept { return this->values_ ? this->values_->empty() : true; } const_iterator begin() const { basic_resolver_results tmp(*this); tmp.index_ = 0; return static_cast<basic_resolver_results&&>(tmp); } const_iterator end() const { return const_iterator(); } const_iterator cbegin() const { return begin(); } const_iterator cend() const { return end(); } void swap(basic_resolver_results& that) noexcept { if (this != &that) { this->values_.swap(that.values_); std::size_t index = this->index_; this->index_ = that.index_; that.index_ = index; } } friend bool operator==(const basic_resolver_results& a, const basic_resolver_results& b) { return a.equal(b); } friend bool operator!=(const basic_resolver_results& a, const basic_resolver_results& b) { return !a.equal(b); } private: typedef std::vector<basic_resolver_entry<InternetProtocol> > values_type; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 312 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver_results.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_endpoint_op.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_endpoint_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_op.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class resolve_op : public operation { public: boost::system::error_code ec_; protected: resolve_op(func_type complete_func) : operation(complete_func) { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_op.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_endpoint_op.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_endpoint_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_endpoint_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Protocol, typename Handler, typename IoExecutor> class resolve_endpoint_op : public resolve_op { public: struct ptr { Handler* h; resolve_endpoint_op* v; resolve_endpoint_op* p; ~ptr() { reset(); } static resolve_endpoint_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<resolve_endpoint_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~resolve_endpoint_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<resolve_endpoint_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<resolve_endpoint_op*>(v), 1); v = 0; } } }; typedef typename Protocol::endpoint endpoint_type; typedef boost::asio::ip::basic_resolver_results<Protocol> results_type; typedef class scheduler scheduler_impl; resolve_endpoint_op(socket_ops::weak_cancel_token_type cancel_token, const endpoint_type& endpoint, scheduler_impl& sched, Handler& handler, const IoExecutor& io_ex) : resolve_op(&resolve_endpoint_op::do_complete), cancel_token_(cancel_token), endpoint_(endpoint), scheduler_(sched), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; resolve_endpoint_op* o(static_cast<resolve_endpoint_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; if (owner && owner != &o->scheduler_) { char host_name[1025] = ""; char service_name[32] = ""; socket_ops::background_getnameinfo(o->cancel_token_, o->endpoint_.data(), o->endpoint_.size(), host_name, 1025, service_name, 32, o->endpoint_.protocol().type(), o->ec_); o->results_ = results_type::create(o->endpoint_, host_name, service_name); o->scheduler_.post_deferred_completion(o); p.v = p.p = 0; } else { (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); detail::binder2<Handler, boost::system::error_code, results_type> handler(o->handler_, o->ec_, o->results_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } } private: socket_ops::weak_cancel_token_type cancel_token_; endpoint_type endpoint_; scheduler_impl& scheduler_; Handler handler_; handler_work<Handler, IoExecutor> work_; results_type results_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_endpoint_op.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_query_op.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_query_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_query_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Protocol, typename Handler, typename IoExecutor> class resolve_query_op : public resolve_op { public: struct ptr { Handler* h; resolve_query_op* v; resolve_query_op* p; ~ptr() { reset(); } static resolve_query_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<resolve_query_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~resolve_query_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<resolve_query_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<resolve_query_op*>(v), 1); v = 0; } } }; typedef boost::asio::ip::basic_resolver_query<Protocol> query_type; typedef boost::asio::ip::basic_resolver_results<Protocol> results_type; typedef class scheduler scheduler_impl; resolve_query_op(socket_ops::weak_cancel_token_type cancel_token, const query_type& qry, scheduler_impl& sched, Handler& handler, const IoExecutor& io_ex) : resolve_op(&resolve_query_op::do_complete), cancel_token_(cancel_token), query_(qry), scheduler_(sched), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex), addrinfo_(0) { } ~resolve_query_op() { if (addrinfo_) socket_ops::freeaddrinfo(addrinfo_); } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; resolve_query_op* o(static_cast<resolve_query_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; if (owner && owner != &o->scheduler_) { socket_ops::background_getaddrinfo(o->cancel_token_, o->query_.host_name().c_str(), o->query_.service_name().c_str(), o->query_.hints(), &o->addrinfo_, o->ec_); o->scheduler_.post_deferred_completion(o); p.v = p.p = 0; } else { (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); detail::binder2<Handler, boost::system::error_code, results_type> handler(o->handler_, o->ec_, results_type()); p.h = boost::asio::detail::addressof(handler.handler_); if (o->addrinfo_) { handler.arg2_ = results_type::create(o->addrinfo_, o->query_.host_name(), o->query_.service_name()); } p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } } private: socket_ops::weak_cancel_token_type cancel_token_; query_type query_; scheduler_impl& scheduler_; Handler handler_; handler_work<Handler, IoExecutor> work_; boost::asio::detail::addrinfo_type* addrinfo_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 152 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolve_query_op.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service_base.hpp" 1 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service_base.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class resolver_service_base { public: typedef socket_ops::shared_cancel_token_type implementation_type; inline resolver_service_base(execution_context& context); inline ~resolver_service_base(); inline void base_shutdown(); inline void base_notify_fork( execution_context::fork_event fork_ev); inline void construct(implementation_type& impl); inline void destroy(implementation_type&); inline void move_construct(implementation_type& impl, implementation_type& other_impl); inline void move_assign(implementation_type& impl, resolver_service_base& other_service, implementation_type& other_impl); void converting_move_construct(implementation_type& impl, resolver_service_base&, implementation_type& other_impl) { move_construct(impl, other_impl); } void converting_move_assign(implementation_type& impl, resolver_service_base& other_service, implementation_type& other_impl) { move_assign(impl, other_service, other_impl); } inline void cancel(implementation_type& impl); protected: inline void start_resolve_op(resolve_op* op); class auto_addrinfo : private boost::asio::detail::noncopyable { public: explicit auto_addrinfo(boost::asio::detail::addrinfo_type* ai) : ai_(ai) { } ~auto_addrinfo() { if (ai_) socket_ops::freeaddrinfo(ai_); } operator boost::asio::detail::addrinfo_type*() { return ai_; } private: boost::asio::detail::addrinfo_type* ai_; }; class work_scheduler_runner; inline void start_work_thread(); typedef class scheduler scheduler_impl; scheduler_impl& scheduler_; private: boost::asio::detail::mutex mutex_; boost::asio::detail::scoped_ptr<scheduler_impl> work_scheduler_; boost::asio::detail::scoped_ptr<boost::asio::detail::thread> work_thread_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/resolver_service_base.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/resolver_service_base.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service_base.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/resolver_service_base.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/resolver_service_base.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { class resolver_service_base::work_scheduler_runner { public: work_scheduler_runner(scheduler_impl& work_scheduler) : work_scheduler_(work_scheduler) { } void operator()() { boost::system::error_code ec; work_scheduler_.run(ec); } private: scheduler_impl& work_scheduler_; }; resolver_service_base::resolver_service_base(execution_context& context) : scheduler_(boost::asio::use_service<scheduler_impl>(context)), work_scheduler_(new scheduler_impl(context, -1, false)), work_thread_(0) { work_scheduler_->work_started(); } resolver_service_base::~resolver_service_base() { base_shutdown(); } void resolver_service_base::base_shutdown() { if (work_scheduler_.get()) { work_scheduler_->work_finished(); work_scheduler_->stop(); if (work_thread_.get()) { work_thread_->join(); work_thread_.reset(); } work_scheduler_.reset(); } } void resolver_service_base::base_notify_fork( execution_context::fork_event fork_ev) { if (work_thread_.get()) { if (fork_ev == execution_context::fork_prepare) { work_scheduler_->stop(); work_thread_->join(); work_thread_.reset(); } } else if (fork_ev != execution_context::fork_prepare) { work_scheduler_->restart(); } } void resolver_service_base::construct( resolver_service_base::implementation_type& impl) { impl.reset(static_cast<void*>(0), socket_ops::noop_deleter()); } void resolver_service_base::destroy( resolver_service_base::implementation_type& impl) { (void)0 ; impl.reset(); } void resolver_service_base::move_construct(implementation_type& impl, implementation_type& other_impl) { impl = static_cast<implementation_type&&>(other_impl); } void resolver_service_base::move_assign(implementation_type& impl, resolver_service_base&, implementation_type& other_impl) { destroy(impl); impl = static_cast<implementation_type&&>(other_impl); } void resolver_service_base::cancel( resolver_service_base::implementation_type& impl) { (void)0 ; impl.reset(static_cast<void*>(0), socket_ops::noop_deleter()); } void resolver_service_base::start_resolve_op(resolve_op* op) { if ((((static_cast<unsigned>(scheduler_.concurrency_hint()) & (0xFFFF0000u | 0x1u)) ^ 0xA5100000u) != 0) ) { start_work_thread(); scheduler_.work_started(); work_scheduler_->post_immediate_completion(op, false); } else { op->ec_ = boost::asio::error::operation_not_supported; scheduler_.post_immediate_completion(op, false); } } void resolver_service_base::start_work_thread() { boost::asio::detail::mutex::scoped_lock lock(mutex_); if (!work_thread_.get()) { work_thread_.reset(new boost::asio::detail::thread( work_scheduler_runner(*work_scheduler_))); } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 159 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/resolver_service_base.ipp" 2 3 4 # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service_base.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Protocol> class resolver_service : public execution_context_service_base<resolver_service<Protocol> >, public resolver_service_base { public: typedef socket_ops::shared_cancel_token_type implementation_type; typedef typename Protocol::endpoint endpoint_type; typedef boost::asio::ip::basic_resolver_query<Protocol> query_type; typedef boost::asio::ip::basic_resolver_results<Protocol> results_type; resolver_service(execution_context& context) : execution_context_service_base<resolver_service<Protocol> >(context), resolver_service_base(context) { } void shutdown() { this->base_shutdown(); } void notify_fork(execution_context::fork_event fork_ev) { this->base_notify_fork(fork_ev); } results_type resolve(implementation_type&, const query_type& qry, boost::system::error_code& ec) { boost::asio::detail::addrinfo_type* address_info = 0; socket_ops::getaddrinfo(qry.host_name().c_str(), qry.service_name().c_str(), qry.hints(), &address_info, ec); auto_addrinfo auto_address_info(address_info); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec ? results_type() : results_type::create( address_info, qry.host_name(), qry.service_name()); } template <typename Handler, typename IoExecutor> void async_resolve(implementation_type& impl, const query_type& qry, Handler& handler, const IoExecutor& io_ex) { typedef resolve_query_op<Protocol, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(impl, qry, scheduler_, handler, io_ex); (void)0 ; start_resolve_op(p.p); p.v = p.p = 0; } results_type resolve(implementation_type&, const endpoint_type& endpoint, boost::system::error_code& ec) { char host_name[1025]; char service_name[32]; socket_ops::sync_getnameinfo(endpoint.data(), endpoint.size(), host_name, 1025, service_name, 32, endpoint.protocol().type(), ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec ? results_type() : results_type::create( endpoint, host_name, service_name); } template <typename Handler, typename IoExecutor> void async_resolve(implementation_type& impl, const endpoint_type& endpoint, Handler& handler, const IoExecutor& io_ex) { typedef resolve_endpoint_op<Protocol, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(impl, endpoint, scheduler_, handler, io_ex); (void)0 ; start_resolve_op(p.p); p.v = p.p = 0; } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 146 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/resolver_service.hpp" 2 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename InternetProtocol, typename Executor = any_io_executor> class basic_resolver; # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template <typename InternetProtocol, typename Executor> class basic_resolver : public resolver_base { private: class initiate_async_resolve; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_resolver<InternetProtocol, Executor1> other; }; typedef InternetProtocol protocol_type; typedef typename InternetProtocol::endpoint endpoint_type; typedef basic_resolver_query<InternetProtocol> query; typedef basic_resolver_iterator<InternetProtocol> iterator; typedef basic_resolver_results<InternetProtocol> results_type; # 111 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 explicit basic_resolver(const executor_type& ex) : impl_(0, ex) { } # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template <typename ExecutionContext> explicit basic_resolver(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { } # 144 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 basic_resolver(basic_resolver&& other) : impl_(std::move(other.impl_)) { } template <typename InternetProtocol1, typename Executor1> friend class basic_resolver; # 163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template <typename Executor1> basic_resolver(basic_resolver<InternetProtocol, Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value >::type = 0) : impl_(std::move(other.impl_)) { } # 184 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 basic_resolver& operator=(basic_resolver&& other) { impl_ = std::move(other.impl_); return *this; } # 202 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_resolver& >::type operator=(basic_resolver<InternetProtocol, Executor1>&& other) { basic_resolver tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } # 220 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 ~basic_resolver() { } executor_type get_executor() noexcept { return impl_.get_executor(); } void cancel() { return impl_.get_service().cancel(impl_.get_implementation()); } # 255 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const query& q) { boost::system::error_code ec; results_type r = impl_.get_service().resolve( impl_.get_implementation(), q, ec); boost::asio::detail::throw_error(ec, "resolve"); return r; } # 277 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const query& q, boost::system::error_code& ec) { return impl_.get_service().resolve(impl_.get_implementation(), q, ec); } # 316 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(boost::asio::string_view host, boost::asio::string_view service) { return resolve(host, service, resolver_base::flags()); } # 355 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(boost::asio::string_view host, boost::asio::string_view service, boost::system::error_code& ec) { return resolve(host, service, resolver_base::flags(), ec); } # 399 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(boost::asio::string_view host, boost::asio::string_view service, resolver_base::flags resolve_flags) { boost::system::error_code ec; basic_resolver_query<protocol_type> q(static_cast<std::string>(host), static_cast<std::string>(service), resolve_flags); results_type r = impl_.get_service().resolve( impl_.get_implementation(), q, ec); boost::asio::detail::throw_error(ec, "resolve"); return r; } # 449 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(boost::asio::string_view host, boost::asio::string_view service, resolver_base::flags resolve_flags, boost::system::error_code& ec) { basic_resolver_query<protocol_type> q(static_cast<std::string>(host), static_cast<std::string>(service), resolve_flags); return impl_.get_service().resolve(impl_.get_implementation(), q, ec); } # 494 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const protocol_type& protocol, boost::asio::string_view host, boost::asio::string_view service) { return resolve(protocol, host, service, resolver_base::flags()); } # 536 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const protocol_type& protocol, boost::asio::string_view host, boost::asio::string_view service, boost::system::error_code& ec) { return resolve(protocol, host, service, resolver_base::flags(), ec); } # 584 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const protocol_type& protocol, boost::asio::string_view host, boost::asio::string_view service, resolver_base::flags resolve_flags) { boost::system::error_code ec; basic_resolver_query<protocol_type> q( protocol, static_cast<std::string>(host), static_cast<std::string>(service), resolve_flags); results_type r = impl_.get_service().resolve( impl_.get_implementation(), q, ec); boost::asio::detail::throw_error(ec, "resolve"); return r; } # 639 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const protocol_type& protocol, boost::asio::string_view host, boost::asio::string_view service, resolver_base::flags resolve_flags, boost::system::error_code& ec) { basic_resolver_query<protocol_type> q( protocol, static_cast<std::string>(host), static_cast<std::string>(service), resolve_flags); return impl_.get_service().resolve(impl_.get_implementation(), q, ec); } # 679 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, results_type)> ResolveToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_resolve(const query& q, ResolveToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return boost::asio::async_initiate<ResolveToken, void (boost::system::error_code, results_type)>( initiate_async_resolve(this), token, q); } # 746 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, results_type)> ResolveToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_resolve(boost::asio::string_view host, boost::asio::string_view service, ResolveToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_resolve(host, service, resolver_base::flags(), static_cast<ResolveToken&&>(token)); } # 819 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, results_type)> ResolveToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_resolve(boost::asio::string_view host, boost::asio::string_view service, resolver_base::flags resolve_flags, ResolveToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { basic_resolver_query<protocol_type> q(static_cast<std::string>(host), static_cast<std::string>(service), resolve_flags); return boost::asio::async_initiate<ResolveToken, void (boost::system::error_code, results_type)>( initiate_async_resolve(this), token, q); } # 895 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, results_type)> ResolveToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_resolve(const protocol_type& protocol, boost::asio::string_view host, boost::asio::string_view service, ResolveToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_resolve(protocol, host, service, resolver_base::flags(), static_cast<ResolveToken&&>(token)); } # 971 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, results_type)> ResolveToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_resolve(const protocol_type& protocol, boost::asio::string_view host, boost::asio::string_view service, resolver_base::flags resolve_flags, ResolveToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { basic_resolver_query<protocol_type> q( protocol, static_cast<std::string>(host), static_cast<std::string>(service), resolve_flags); return boost::asio::async_initiate<ResolveToken, void (boost::system::error_code, results_type)>( initiate_async_resolve(this), token, q); } # 1011 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const endpoint_type& e) { boost::system::error_code ec; results_type i = impl_.get_service().resolve( impl_.get_implementation(), e, ec); boost::asio::detail::throw_error(ec, "resolve"); return i; } # 1034 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 results_type resolve(const endpoint_type& e, boost::system::error_code& ec) { return impl_.get_service().resolve(impl_.get_implementation(), e, ec); } # 1069 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, results_type)> ResolveToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_resolve(const endpoint_type& e, ResolveToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return boost::asio::async_initiate<ResolveToken, void (boost::system::error_code, results_type)>( initiate_async_resolve(this), token, e); } private: basic_resolver(const basic_resolver&) = delete; basic_resolver& operator=(const basic_resolver&) = delete; class initiate_async_resolve { public: typedef Executor executor_type; explicit initiate_async_resolve(basic_resolver* self) : self_(self) { } executor_type get_executor() const noexcept { return self_->get_executor(); } template <typename ResolveHandler, typename Query> void operator()(ResolveHandler&& handler, const Query& q) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ResolveHandler>::type, void(boost::system::error_code, results_type)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const results_type*>(0))) == 1, "ResolveHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const results_type>()), char(0))> __attribute__((__unused__)) type_check; boost::asio::detail::non_const_lvalue<ResolveHandler> handler2(handler); self_->impl_.get_service().async_resolve( self_->impl_.get_implementation(), q, handler2.value, self_->impl_.get_executor()); } private: basic_resolver* self_; }; boost::asio::detail::io_object_impl< boost::asio::detail::resolver_service<InternetProtocol>, Executor> impl_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/basic_resolver.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 3 4 class udp { public: typedef basic_endpoint<udp> endpoint; static udp v4() noexcept { return udp(2); } static udp v6() noexcept { return udp(10); } int type() const noexcept { return SOCK_DGRAM; } int protocol() const noexcept { return IPPROTO_UDP; } int family() const noexcept { return family_; } typedef basic_datagram_socket<udp> socket; typedef basic_resolver<udp> resolver; friend bool operator==(const udp& p1, const udp& p2) { return p1.family_ == p2.family_; } friend bool operator!=(const udp& p1, const udp& p2) { return p1.family_ != p2.family_; } private: explicit udp(int protocol_family) noexcept : family_(protocol_family) { } int family_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 112 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/udp.hpp" 2 3 4 # 9 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/awaitable.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/awaitable.hpp" 3 4 # 1 "/usr/include/c++/13/coroutine" 1 3 4 # 32 "/usr/include/c++/13/coroutine" 3 4 # 33 "/usr/include/c++/13/coroutine" 3 # 54 "/usr/include/c++/13/coroutine" 3 namespace std __attribute__ ((__visibility__ ("default"))) { inline namespace __n4861 { template <typename _Result, typename... _ArgTypes> struct coroutine_traits; template <typename _Result, typename = void> struct __coroutine_traits_impl {}; template <typename _Result> requires requires { typename _Result::promise_type; } struct __coroutine_traits_impl<_Result, void> { using promise_type = typename _Result::promise_type; }; template <typename _Result, typename... _ArgTypes> struct coroutine_traits : __coroutine_traits_impl<_Result> {}; template <typename _Promise = void> struct coroutine_handle; template <> struct coroutine_handle<void> { public: constexpr coroutine_handle() noexcept : _M_fr_ptr(0) {} constexpr coroutine_handle(std::nullptr_t __h) noexcept : _M_fr_ptr(__h) {} coroutine_handle& operator=(std::nullptr_t) noexcept { _M_fr_ptr = nullptr; return *this; } public: constexpr void* address() const noexcept { return _M_fr_ptr; } constexpr static coroutine_handle from_address(void* __a) noexcept { coroutine_handle __self; __self._M_fr_ptr = __a; return __self; } public: constexpr explicit operator bool() const noexcept { return bool(_M_fr_ptr); } bool done() const noexcept { return __builtin_coro_done(_M_fr_ptr); } void operator()() const { resume(); } void resume() const { __builtin_coro_resume(_M_fr_ptr); } void destroy() const { __builtin_coro_destroy(_M_fr_ptr); } protected: void* _M_fr_ptr; }; constexpr bool operator==(coroutine_handle<> __a, coroutine_handle<> __b) noexcept { return __a.address() == __b.address(); } constexpr strong_ordering operator<=>(coroutine_handle<> __a, coroutine_handle<> __b) noexcept { return std::compare_three_way()(__a.address(), __b.address()); } # 190 "/usr/include/c++/13/coroutine" 3 template <typename _Promise> struct coroutine_handle { constexpr coroutine_handle() noexcept { } constexpr coroutine_handle(nullptr_t) noexcept { } static coroutine_handle from_promise(_Promise& __p) { coroutine_handle __self; __self._M_fr_ptr = __builtin_coro_promise((char*) &__p, __alignof(_Promise), true); return __self; } coroutine_handle& operator=(nullptr_t) noexcept { _M_fr_ptr = nullptr; return *this; } constexpr void* address() const noexcept { return _M_fr_ptr; } constexpr static coroutine_handle from_address(void* __a) noexcept { coroutine_handle __self; __self._M_fr_ptr = __a; return __self; } constexpr operator coroutine_handle<>() const noexcept { return coroutine_handle<>::from_address(address()); } constexpr explicit operator bool() const noexcept { return bool(_M_fr_ptr); } bool done() const noexcept { return __builtin_coro_done(_M_fr_ptr); } void operator()() const { resume(); } void resume() const { __builtin_coro_resume(_M_fr_ptr); } void destroy() const { __builtin_coro_destroy(_M_fr_ptr); } _Promise& promise() const { void* __t = __builtin_coro_promise (_M_fr_ptr, __alignof(_Promise), false); return *static_cast<_Promise*>(__t); } private: void* _M_fr_ptr = nullptr; }; struct noop_coroutine_promise { }; template <> struct coroutine_handle<noop_coroutine_promise> { constexpr operator coroutine_handle<>() const noexcept { return coroutine_handle<>::from_address(address()); } constexpr explicit operator bool() const noexcept { return true; } constexpr bool done() const noexcept { return false; } void operator()() const noexcept {} void resume() const noexcept {} void destroy() const noexcept {} noop_coroutine_promise& promise() const noexcept { return _S_fr.__p; } constexpr void* address() const noexcept { return _M_fr_ptr; } private: friend coroutine_handle noop_coroutine() noexcept; struct __frame { static void __dummy_resume_destroy() { } void (*__r)() = __dummy_resume_destroy; void (*__d)() = __dummy_resume_destroy; struct noop_coroutine_promise __p; }; static __frame _S_fr; explicit coroutine_handle() noexcept = default; void* _M_fr_ptr = &_S_fr; }; using noop_coroutine_handle = coroutine_handle<noop_coroutine_promise>; inline noop_coroutine_handle::__frame noop_coroutine_handle::_S_fr{}; inline noop_coroutine_handle noop_coroutine() noexcept { return noop_coroutine_handle(); } struct suspend_always { constexpr bool await_ready() const noexcept { return false; } constexpr void await_suspend(coroutine_handle<>) const noexcept {} constexpr void await_resume() const noexcept {} }; struct suspend_never { constexpr bool await_ready() const noexcept { return true; } constexpr void await_suspend(coroutine_handle<>) const noexcept {} constexpr void await_resume() const noexcept {} }; } template<typename _Tp> struct hash; template<typename _Promise> struct hash<coroutine_handle<_Promise>> { size_t operator()(const coroutine_handle<_Promise>& __h) const noexcept { return reinterpret_cast<size_t>(__h.address()); } }; } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/awaitable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/awaitable.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { using std::coroutine_handle; using std::suspend_always; template <typename> class awaitable_thread; template <typename, typename> class awaitable_frame; } template <typename T, typename Executor = any_io_executor> class [[nodiscard]] awaitable { public: typedef T value_type; typedef Executor executor_type; constexpr awaitable() noexcept : frame_(nullptr) { } awaitable(awaitable&& other) noexcept : frame_(std::exchange(other.frame_, nullptr)) { } ~awaitable() { if (frame_) frame_->destroy(); } awaitable& operator=(awaitable&& other) noexcept { if (this != &other) frame_ = std::exchange(other.frame_, nullptr); return *this; } bool valid() const noexcept { return !!frame_; } bool await_ready() const noexcept { return false; } template <class U> void await_suspend( detail::coroutine_handle<detail::awaitable_frame<U, Executor>> h) { frame_->push_frame(&h.promise()); } T await_resume() { return awaitable(static_cast<awaitable&&>(*this)).frame_->get(); } private: template <typename> friend class detail::awaitable_thread; template <typename, typename> friend class detail::awaitable_frame; awaitable(const awaitable&) = delete; awaitable& operator=(const awaitable&) = delete; explicit awaitable(detail::awaitable_frame<T, Executor>* a) : frame_(a) { } detail::awaitable_frame<T, Executor>* frame_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/awaitable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 2 3 4 namespace boost { namespace asio { template <cancellation_type_t Mask> struct cancellation_filter { cancellation_type_t operator()( cancellation_type_t type) const noexcept { return type & Mask; } }; typedef cancellation_filter<cancellation_type::none> disable_cancellation; typedef cancellation_filter<cancellation_type::terminal> enable_terminal_cancellation; # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 3 4 typedef cancellation_filter< static_cast<cancellation_type_t>( static_cast<unsigned int>(cancellation_type::terminal) | static_cast<unsigned int>(cancellation_type::partial))> enable_partial_cancellation; typedef cancellation_filter< static_cast<cancellation_type_t>( static_cast<unsigned int>(cancellation_type::terminal) | static_cast<unsigned int>(cancellation_type::partial) | static_cast<unsigned int>(cancellation_type::total))> enable_total_cancellation; class cancellation_state { public: constexpr cancellation_state() noexcept : impl_(0) { } # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 3 4 template <typename CancellationSlot> constexpr explicit cancellation_state(CancellationSlot slot) : impl_(slot.is_connected() ? &slot.template emplace<impl<> >() : 0) { } # 122 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 3 4 template <typename CancellationSlot, typename Filter> constexpr cancellation_state(CancellationSlot slot, Filter filter) : impl_(slot.is_connected() ? &slot.template emplace<impl<Filter, Filter> >(filter, filter) : 0) { } # 154 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 3 4 template <typename CancellationSlot, typename InFilter, typename OutFilter> constexpr cancellation_state(CancellationSlot slot, InFilter in_filter, OutFilter out_filter) : impl_(slot.is_connected() ? &slot.template emplace<impl<InFilter, OutFilter> >( static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)) : 0) { } constexpr cancellation_slot slot() const noexcept { return impl_ ? impl_->signal_.slot() : cancellation_slot(); } cancellation_type_t cancelled() const noexcept { return impl_ ? impl_->cancelled_ : cancellation_type_t(); } void clear(cancellation_type_t mask = cancellation_type::all) noexcept { if (impl_) impl_->cancelled_ &= ~mask; } private: struct impl_base { impl_base() : cancelled_() { } cancellation_signal signal_; cancellation_type_t cancelled_; }; template < typename InFilter = enable_terminal_cancellation, typename OutFilter = InFilter> struct impl : impl_base { impl() : in_filter_(), out_filter_() { } impl(InFilter in_filter, OutFilter out_filter) : in_filter_(static_cast<InFilter&&>(in_filter)), out_filter_(static_cast<OutFilter&&>(out_filter)) { } void operator()(cancellation_type_t in) { this->cancelled_ = in_filter_(in); cancellation_type_t out = out_filter_(this->cancelled_); if (out != cancellation_type::none) this->signal_.emit(out); } InFilter in_filter_; OutFilter out_filter_; }; impl_base* impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 236 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/cancellation_state.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/this_coro.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/this_coro.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/this_coro.hpp" 2 3 4 namespace boost { namespace asio { namespace this_coro { struct executor_t { constexpr executor_t() { } }; constexpr executor_t executor; struct cancellation_state_t { constexpr cancellation_state_t() { } }; # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/this_coro.hpp" 3 4 constexpr cancellation_state_t cancellation_state; # 180 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/this_coro.hpp" 3 4 struct reset_cancellation_state_0_t { constexpr reset_cancellation_state_0_t() { } }; [[nodiscard]] inline constexpr reset_cancellation_state_0_t reset_cancellation_state() { return reset_cancellation_state_0_t(); } template <typename Filter> struct reset_cancellation_state_1_t { template <typename F> explicit constexpr reset_cancellation_state_1_t( F&& filt) : filter(static_cast<F&&>(filt)) { } Filter filter; }; template <typename Filter> [[nodiscard]] inline constexpr reset_cancellation_state_1_t< typename decay<Filter>::type> reset_cancellation_state(Filter&& filter) { return reset_cancellation_state_1_t<typename decay<Filter>::type>( static_cast<Filter&&>(filter)); } template <typename InFilter, typename OutFilter> struct reset_cancellation_state_2_t { template <typename F1, typename F2> constexpr reset_cancellation_state_2_t( F1&& in_filt, F2&& out_filt) : in_filter(static_cast<F1&&>(in_filt)), out_filter(static_cast<F2&&>(out_filt)) { } InFilter in_filter; OutFilter out_filter; }; template <typename InFilter, typename OutFilter> [[nodiscard]] inline constexpr reset_cancellation_state_2_t< typename decay<InFilter>::type, typename decay<OutFilter>::type> reset_cancellation_state( InFilter&& in_filter, OutFilter&& out_filter) { return reset_cancellation_state_2_t< typename decay<InFilter>::type, typename decay<OutFilter>::type>( static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)); } struct throw_if_cancelled_0_t { constexpr throw_if_cancelled_0_t() { } }; [[nodiscard]] inline constexpr throw_if_cancelled_0_t throw_if_cancelled() { return throw_if_cancelled_0_t(); } struct throw_if_cancelled_1_t { explicit constexpr throw_if_cancelled_1_t(bool val) : value(val) { } bool value; }; [[nodiscard]] inline constexpr throw_if_cancelled_1_t throw_if_cancelled(bool value) { return throw_if_cancelled_1_t(value); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 281 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/this_coro.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct awaitable_thread_has_context_switched {}; template <typename, typename> class awaitable_async_op_handler; template <typename, typename, typename> class awaitable_async_op; # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 3 4 template <typename Executor> class awaitable_frame_base { public: void* operator new(std::size_t size) { return boost::asio::detail::thread_info_base::allocate( boost::asio::detail::thread_info_base::awaitable_frame_tag(), boost::asio::detail::thread_context::top_of_thread_call_stack(), size); } void operator delete(void* pointer, std::size_t size) { boost::asio::detail::thread_info_base::deallocate( boost::asio::detail::thread_info_base::awaitable_frame_tag(), boost::asio::detail::thread_context::top_of_thread_call_stack(), pointer, size); } auto initial_suspend() noexcept { return suspend_always(); } auto final_suspend() noexcept { struct result { awaitable_frame_base* this_; bool await_ready() const noexcept { return false; } void await_suspend(coroutine_handle<void>) noexcept { this->this_->pop_frame(); } void await_resume() const noexcept { } }; return result{this}; } void set_except(std::exception_ptr e) noexcept { pending_exception_ = e; } void set_error(const boost::system::error_code& ec) { this->set_except(std::make_exception_ptr(boost::system::system_error(ec))); } void unhandled_exception() { set_except(std::current_exception()); } void rethrow_exception() { if (pending_exception_) { std::exception_ptr ex = std::exchange(pending_exception_, nullptr); std::rethrow_exception(ex); } } void clear_cancellation_slot() { this->attached_thread_->entry_point()->cancellation_state_.slot().clear(); } template <typename T> auto await_transform(awaitable<T, Executor> a) const { if (attached_thread_->entry_point()->throw_if_cancelled_) if (!!attached_thread_->get_cancellation_state().cancelled()) throw_error(boost::asio::error::operation_aborted, "co_await"); return a; } template <typename Op> auto await_transform(Op&& op, typename constraint<is_async_operation<Op>::value>::type = 0 ) { if (attached_thread_->entry_point()->throw_if_cancelled_) if (!!attached_thread_->get_cancellation_state().cancelled()) throw_error(boost::asio::error::operation_aborted, "co_await"); return awaitable_async_op<typename completion_signature_of<Op>::type, typename decay<Op>::type, Executor>{ std::forward<Op>(op), this }; } auto await_transform(this_coro::executor_t) noexcept { struct result { awaitable_frame_base* this_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() const noexcept { return this_->attached_thread_->get_executor(); } }; return result{this}; } auto await_transform(this_coro::cancellation_state_t) noexcept { struct result { awaitable_frame_base* this_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() const noexcept { return this_->attached_thread_->get_cancellation_state(); } }; return result{this}; } auto await_transform(this_coro::reset_cancellation_state_0_t) noexcept { struct result { awaitable_frame_base* this_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() const { return this_->attached_thread_->reset_cancellation_state(); } }; return result{this}; } template <typename Filter> auto await_transform( this_coro::reset_cancellation_state_1_t<Filter> reset) noexcept { struct result { awaitable_frame_base* this_; Filter filter_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() { return this_->attached_thread_->reset_cancellation_state( static_cast<Filter&&>(filter_)); } }; return result{this, static_cast<Filter&&>(reset.filter)}; } template <typename InFilter, typename OutFilter> auto await_transform( this_coro::reset_cancellation_state_2_t<InFilter, OutFilter> reset) noexcept { struct result { awaitable_frame_base* this_; InFilter in_filter_; OutFilter out_filter_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() { return this_->attached_thread_->reset_cancellation_state( static_cast<InFilter&&>(in_filter_), static_cast<OutFilter&&>(out_filter_)); } }; return result{this, static_cast<InFilter&&>(reset.in_filter), static_cast<OutFilter&&>(reset.out_filter)}; } auto await_transform(this_coro::throw_if_cancelled_0_t) noexcept { struct result { awaitable_frame_base* this_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() { return this_->attached_thread_->throw_if_cancelled(); } }; return result{this}; } auto await_transform(this_coro::throw_if_cancelled_1_t throw_if_cancelled) noexcept { struct result { awaitable_frame_base* this_; bool value_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } auto await_resume() { this_->attached_thread_->throw_if_cancelled(value_); } }; return result{this, throw_if_cancelled.value}; } template <typename Function> auto await_transform(Function f, typename enable_if< is_convertible< typename result_of<Function(awaitable_frame_base*)>::type, awaitable_thread<Executor>* >::value >::type* = nullptr) { struct result { Function function_; awaitable_frame_base* this_; bool await_ready() const noexcept { return false; } void await_suspend(coroutine_handle<void>) noexcept { this_->after_suspend( [](void* arg) { result* r = static_cast<result*>(arg); r->function_(r->this_); }, this); } void await_resume() const noexcept { } }; return result{std::move(f), this}; } auto await_transform(detail::awaitable_thread_has_context_switched) noexcept { struct result { awaitable_frame_base* this_; bool await_ready() const noexcept { return true; } void await_suspend(coroutine_handle<void>) noexcept { } bool& await_resume() const noexcept { return this_->attached_thread_->entry_point()->has_context_switched_; } }; return result{this}; } void attach_thread(awaitable_thread<Executor>* handler) noexcept { attached_thread_ = handler; } awaitable_thread<Executor>* detach_thread() noexcept { attached_thread_->entry_point()->has_context_switched_ = true; return std::exchange(attached_thread_, nullptr); } void push_frame(awaitable_frame_base<Executor>* caller) noexcept { caller_ = caller; attached_thread_ = caller_->attached_thread_; attached_thread_->entry_point()->top_of_stack_ = this; caller_->attached_thread_ = nullptr; } void pop_frame() noexcept { if (caller_) caller_->attached_thread_ = attached_thread_; attached_thread_->entry_point()->top_of_stack_ = caller_; attached_thread_ = nullptr; caller_ = nullptr; } struct resume_context { void (*after_suspend_fn_)(void*) = nullptr; void *after_suspend_arg_ = nullptr; }; void resume() { resume_context context; resume_context_ = &context; coro_.resume(); if (context.after_suspend_fn_) context.after_suspend_fn_(context.after_suspend_arg_); } void after_suspend(void (*fn)(void*), void* arg) { resume_context_->after_suspend_fn_ = fn; resume_context_->after_suspend_arg_ = arg; } void destroy() { coro_.destroy(); } protected: coroutine_handle<void> coro_ = nullptr; awaitable_thread<Executor>* attached_thread_ = nullptr; awaitable_frame_base<Executor>* caller_ = nullptr; std::exception_ptr pending_exception_ = nullptr; resume_context* resume_context_ = nullptr; }; template <typename T, typename Executor> class awaitable_frame : public awaitable_frame_base<Executor> { public: awaitable_frame() noexcept { } awaitable_frame(awaitable_frame&& other) noexcept : awaitable_frame_base<Executor>(std::move(other)) { } ~awaitable_frame() { if (has_result_) static_cast<T*>(static_cast<void*>(result_))->~T(); } awaitable<T, Executor> get_return_object() noexcept { this->coro_ = coroutine_handle<awaitable_frame>::from_promise(*this); return awaitable<T, Executor>(this); }; template <typename U> void return_value(U&& u) { new (&result_) T(std::forward<U>(u)); has_result_ = true; } template <typename... Us> void return_values(Us&&... us) { this->return_value(std::forward_as_tuple(std::forward<Us>(us)...)); } T get() { this->caller_ = nullptr; this->rethrow_exception(); return std::move(*static_cast<T*>(static_cast<void*>(result_))); } private: alignas(T) unsigned char result_[sizeof(T)]; bool has_result_ = false; }; template <typename Executor> class awaitable_frame<void, Executor> : public awaitable_frame_base<Executor> { public: awaitable<void, Executor> get_return_object() { this->coro_ = coroutine_handle<awaitable_frame>::from_promise(*this); return awaitable<void, Executor>(this); }; void return_void() { } void get() { this->caller_ = nullptr; this->rethrow_exception(); } }; struct awaitable_thread_entry_point {}; template <typename Executor> class awaitable_frame<awaitable_thread_entry_point, Executor> : public awaitable_frame_base<Executor> { public: awaitable_frame() : top_of_stack_(0), has_executor_(false), has_context_switched_(false), throw_if_cancelled_(true) { } ~awaitable_frame() { if (has_executor_) u_.executor_.~Executor(); } awaitable<awaitable_thread_entry_point, Executor> get_return_object() { this->coro_ = coroutine_handle<awaitable_frame>::from_promise(*this); return awaitable<awaitable_thread_entry_point, Executor>(this); }; void return_void() { } void get() { this->caller_ = nullptr; this->rethrow_exception(); } private: template <typename> friend class awaitable_frame_base; template <typename, typename> friend class awaitable_async_op_handler; template <typename, typename> friend class awaitable_handler_base; template <typename> friend class awaitable_thread; union u { u() {} ~u() {} char c_; Executor executor_; } u_; awaitable_frame_base<Executor>* top_of_stack_; boost::asio::cancellation_slot parent_cancellation_slot_; boost::asio::cancellation_state cancellation_state_; bool has_executor_; bool has_context_switched_; bool throw_if_cancelled_; }; template <typename Executor> class awaitable_thread { public: typedef Executor executor_type; typedef cancellation_slot cancellation_slot_type; awaitable_thread(awaitable<awaitable_thread_entry_point, Executor> p, const Executor& ex, cancellation_slot parent_cancel_slot, cancellation_state cancel_state) : bottom_of_stack_(std::move(p)) { bottom_of_stack_.frame_->top_of_stack_ = bottom_of_stack_.frame_; new (&bottom_of_stack_.frame_->u_.executor_) Executor(ex); bottom_of_stack_.frame_->has_executor_ = true; bottom_of_stack_.frame_->parent_cancellation_slot_ = parent_cancel_slot; bottom_of_stack_.frame_->cancellation_state_ = cancel_state; } awaitable_thread(awaitable_thread&& other) noexcept : bottom_of_stack_(std::move(other.bottom_of_stack_)) { } ~awaitable_thread() { if (bottom_of_stack_.valid()) { auto* bottom_frame = bottom_of_stack_.frame_; (post)(bottom_frame->u_.executor_, [a = std::move(bottom_of_stack_)]() mutable { (void)awaitable<awaitable_thread_entry_point, Executor>( std::move(a)); }); } } awaitable_frame<awaitable_thread_entry_point, Executor>* entry_point() { return bottom_of_stack_.frame_; } executor_type get_executor() const noexcept { return bottom_of_stack_.frame_->u_.executor_; } cancellation_state get_cancellation_state() const noexcept { return bottom_of_stack_.frame_->cancellation_state_; } void reset_cancellation_state() { bottom_of_stack_.frame_->cancellation_state_ = cancellation_state(bottom_of_stack_.frame_->parent_cancellation_slot_); } template <typename Filter> void reset_cancellation_state(Filter&& filter) { bottom_of_stack_.frame_->cancellation_state_ = cancellation_state(bottom_of_stack_.frame_->parent_cancellation_slot_, static_cast<Filter&&>(filter)); } template <typename InFilter, typename OutFilter> void reset_cancellation_state(InFilter&& in_filter, OutFilter&& out_filter) { bottom_of_stack_.frame_->cancellation_state_ = cancellation_state(bottom_of_stack_.frame_->parent_cancellation_slot_, static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)); } bool throw_if_cancelled() const { return bottom_of_stack_.frame_->throw_if_cancelled_; } void throw_if_cancelled(bool value) { bottom_of_stack_.frame_->throw_if_cancelled_ = value; } cancellation_slot_type get_cancellation_slot() const noexcept { return bottom_of_stack_.frame_->cancellation_state_.slot(); } void launch() { bottom_of_stack_.frame_->top_of_stack_->attach_thread(this); pump(); } protected: template <typename> friend class awaitable_frame_base; void pump() { do bottom_of_stack_.frame_->top_of_stack_->resume(); while (bottom_of_stack_.frame_ && bottom_of_stack_.frame_->top_of_stack_); if (bottom_of_stack_.frame_) { awaitable<awaitable_thread_entry_point, Executor> a( std::move(bottom_of_stack_)); a.frame_->rethrow_exception(); } } awaitable<awaitable_thread_entry_point, Executor> bottom_of_stack_; }; template <typename Signature, typename Executor> class awaitable_async_op_handler; template <typename R, typename Executor> class awaitable_async_op_handler<R(), Executor> : public awaitable_thread<Executor> { public: struct result_type {}; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type&) : awaitable_thread<Executor>(std::move(*h)) { } void operator()() { this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static void resume(result_type&) { } }; template <typename R, typename Executor> class awaitable_async_op_handler<R(boost::system::error_code), Executor> : public awaitable_thread<Executor> { public: typedef boost::system::error_code* result_type; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } void operator()(boost::system::error_code ec) { result_ = &ec; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static void resume(result_type& result) { throw_error(*result); } private: result_type& result_; }; template <typename R, typename Executor> class awaitable_async_op_handler<R(std::exception_ptr), Executor> : public awaitable_thread<Executor> { public: typedef std::exception_ptr* result_type; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } void operator()(std::exception_ptr ex) { result_ = &ex; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static void resume(result_type& result) { if (*result) { std::exception_ptr ex = std::exchange(*result, nullptr); std::rethrow_exception(ex); } } private: result_type& result_; }; template <typename R, typename T, typename Executor> class awaitable_async_op_handler<R(T), Executor> : public awaitable_thread<Executor> { public: typedef T* result_type; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } void operator()(T result) { result_ = &result; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static T resume(result_type& result) { return std::move(*result); } private: result_type& result_; }; template <typename R, typename T, typename Executor> class awaitable_async_op_handler<R(boost::system::error_code, T), Executor> : public awaitable_thread<Executor> { public: struct result_type { boost::system::error_code* ec_; T* value_; }; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } void operator()(boost::system::error_code ec, T value) { result_.ec_ = &ec; result_.value_ = &value; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static T resume(result_type& result) { throw_error(*result.ec_); return std::move(*result.value_); } private: result_type& result_; }; template <typename R, typename T, typename Executor> class awaitable_async_op_handler<R(std::exception_ptr, T), Executor> : public awaitable_thread<Executor> { public: struct result_type { std::exception_ptr* ex_; T* value_; }; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } void operator()(std::exception_ptr ex, T value) { result_.ex_ = &ex; result_.value_ = &value; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static T resume(result_type& result) { if (*result.ex_) { std::exception_ptr ex = std::exchange(*result.ex_, nullptr); std::rethrow_exception(ex); } return std::move(*result.value_); } private: result_type& result_; }; template <typename R, typename... Ts, typename Executor> class awaitable_async_op_handler<R(Ts...), Executor> : public awaitable_thread<Executor> { public: typedef std::tuple<Ts...>* result_type; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } template <typename... Args> void operator()(Args&&... args) { std::tuple<Ts...> result(std::forward<Args>(args)...); result_ = &result; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static std::tuple<Ts...> resume(result_type& result) { return std::move(*result); } private: result_type& result_; }; template <typename R, typename... Ts, typename Executor> class awaitable_async_op_handler<R(boost::system::error_code, Ts...), Executor> : public awaitable_thread<Executor> { public: struct result_type { boost::system::error_code* ec_; std::tuple<Ts...>* value_; }; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } template <typename... Args> void operator()(boost::system::error_code ec, Args&&... args) { result_.ec_ = &ec; std::tuple<Ts...> value(std::forward<Args>(args)...); result_.value_ = &value; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static std::tuple<Ts...> resume(result_type& result) { throw_error(*result.ec_); return std::move(*result.value_); } private: result_type& result_; }; template <typename R, typename... Ts, typename Executor> class awaitable_async_op_handler<R(std::exception_ptr, Ts...), Executor> : public awaitable_thread<Executor> { public: struct result_type { std::exception_ptr* ex_; std::tuple<Ts...>* value_; }; awaitable_async_op_handler( awaitable_thread<Executor>* h, result_type& result) : awaitable_thread<Executor>(std::move(*h)), result_(result) { } template <typename... Args> void operator()(std::exception_ptr ex, Args&&... args) { result_.ex_ = &ex; std::tuple<Ts...> value(std::forward<Args>(args)...); result_.value_ = &value; this->entry_point()->top_of_stack_->attach_thread(this); this->entry_point()->top_of_stack_->clear_cancellation_slot(); this->pump(); } static std::tuple<Ts...> resume(result_type& result) { if (*result.ex_) { std::exception_ptr ex = std::exchange(*result.ex_, nullptr); std::rethrow_exception(ex); } return std::move(*result.value_); } private: result_type& result_; }; template <typename Signature, typename Op, typename Executor> class awaitable_async_op { public: typedef awaitable_async_op_handler<Signature, Executor> handler_type; awaitable_async_op(Op&& o, awaitable_frame_base<Executor>* frame ) : op_(std::forward<Op>(o)), frame_(frame), result_() { } bool await_ready() const noexcept { return false; } void await_suspend(coroutine_handle<void>) { frame_->after_suspend( [](void* arg) { awaitable_async_op* self = static_cast<awaitable_async_op*>(arg); std::forward<Op&&>(self->op_)( handler_type(self->frame_->detach_thread(), self->result_)); }, this); } auto await_resume() { return handler_type::resume(result_); } private: Op&& op_; awaitable_frame_base<Executor>* frame_; typename handler_type::result_type result_; }; } } } namespace std { template <typename T, typename Executor, typename... Args> struct coroutine_traits<boost::asio::awaitable<T, Executor>, Args...> { typedef boost::asio::detail::awaitable_frame<T, Executor> promise_type; }; } # 1195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1196 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/awaitable.hpp" 2 3 4 # 141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/awaitable.hpp" 2 3 4 # 10 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" 1 # 62 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" 1 # 36 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" # 36 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" namespace DTrackSDK_Datatypes { struct DTrackQuaternion { double w; double x; double y; double z; }; DTrackQuaternion rot2quat( const double rot[ 9 ] ); struct DTrackMarker { int id; double quality; double loc[ 3 ]; }; typedef DTrackMarker DTrack_Marker_Type_d; struct DTrackBody { int id; double quality; double loc[ 3 ]; double rot[ 9 ]; double covref[ 3 ]; double cov[ 36 ]; bool isTracked() const { return ( quality >= 0.0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } }; typedef DTrackBody DTrack_Body_Type_d; struct DTrackInertial { int id; int st; double error; double loc[ 3 ]; double rot[ 9 ]; bool isTracked() const { return ( st > 0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } }; typedef DTrackInertial DTrack_Inertial_Type_d; # 146 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" struct DTrackFlyStick { int id; double quality; int num_button; int button[ 16 ]; int num_joystick; double joystick[ 8 ]; double loc[ 3 ]; double rot[ 9 ]; bool isTracked() const { return ( quality >= 0.0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } }; typedef DTrackFlyStick DTrack_FlyStick_Type_d; # 185 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" struct DTrackMeaTool { int id; double quality; int num_button; int button[ 16 ]; double loc[ 3 ]; double rot[ 9 ]; double tipradius; double cov[ 9 ]; bool isTracked() const { return ( quality >= 0.0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } }; typedef DTrackMeaTool DTrack_MeaTool_Type_d; struct DTrackMeaRef { int id; double quality; double loc[ 3 ]; double rot[ 9 ]; bool isTracked() const { return ( quality >= 0.0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } }; typedef DTrackMeaRef DTrack_MeaRef_Type_d; # 253 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" struct DTrackHand { int id; double quality; int lr; int nfinger; double loc[ 3 ]; double rot[ 9 ]; bool isTracked() const { return ( quality >= 0.0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } struct DTrackFinger { double loc[ 3 ]; double rot[ 9 ]; double radiustip; double lengthphalanx[ 3 ]; double anglephalanx[ 2 ]; DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } } finger[ 5 ]; }; typedef DTrackHand DTrack_Hand_Type_d; # 310 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" struct DTrackHuman { int id; int num_joints; bool isTracked() const { return ( num_joints > 0 ); } struct DTrackJoint { int id; double quality; double loc[ 3 ]; double ang[ 3 ]; double rot[ 9 ]; bool isTracked() const { return ( quality >= 0.0 ); } DTrackQuaternion getQuaternion() const { return rot2quat( rot ); } } joint[ 200 ]; }; typedef DTrackHuman DTrack_Human_Type_d; # 361 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackDataTypes.hpp" struct DTrackCameraStatus { int idCamera; int numReflections; int numReflectionsUsed; int maxIntensity; }; struct DTrackStatus { int numCameras; int numTrackedBodies; int numTrackedMarkers; int numCameraErrorMessages; int numCameraWarningMessages; int numOtherErrorMessages; int numOtherWarningMessages; int numInfoMessages; std::vector< DTrackCameraStatus > cameraStatus; }; } # 63 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" 1 # 37 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" namespace DTrackNet { struct _ip_socket_struct; void net_init(void); void net_exit(void); # 58 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" unsigned int ip_name2ip(const char* name); class UDP { public: UDP( unsigned short port, unsigned int multicastIp = 0 ); ~UDP(); bool isValid(); unsigned short getPort(); unsigned int getRemoteIp(); # 112 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" int receive( void *buffer, int maxLen, int toutUs ); # 124 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" int send( const void* buffer, int len, unsigned int ip, unsigned short port, int toutUs ); private: bool m_isValid; struct _ip_socket_struct* m_socket; unsigned short m_port; unsigned int m_multicastIp; unsigned int m_remoteIp; }; class TCP { public: TCP( unsigned int ip, unsigned short port ); ~TCP(); bool isValid(); # 169 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" int receive( void *buffer, int maxLen, int toutUs ); # 179 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackNet.hpp" int send( const void* buffer, int len, int toutUs ); private: bool m_isValid; struct _ip_socket_struct* m_socket; }; } # 64 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" 1 # 42 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" using namespace DTrackSDK_Datatypes; class DTrackParser { protected: DTrackParser(); virtual ~DTrackParser(); void startFrame(); void endFrame(); # 79 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine( char **line ); public: # 90 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" unsigned int getFrameCounter() const; # 99 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" double getTimeStamp() const; # 108 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumBody() const; # 118 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackBody* getBody( int id ) const; # 127 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumFlyStick() const; # 137 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackFlyStick* getFlyStick( int id ) const; # 146 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumMeaTool() const; # 156 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackMeaTool* getMeaTool( int id ) const; # 165 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumMeaRef() const; # 175 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackMeaRef* getMeaRef( int id ) const; # 184 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumHand() const; # 194 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackHand* getHand( int id ) const; # 203 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumHuman() const; # 213 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackHuman* getHuman( int id ) const; # 222 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumInertial() const; # 232 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackInertial* getInertial( int id ) const; # 241 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" int getNumMarker() const; # 251 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackMarker* getMarker( int index ) const; # 260 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool isStatusAvailable() const; # 269 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" const DTrackStatus* getStatus() const; private: # 282 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_fr( char **line ); # 292 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_ts( char **line ); # 302 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6dcal( char **line ); # 312 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6d( char **line ); # 322 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6dcov( char **line ); # 332 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6df( char **line ); # 342 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6df2( char **line ); # 352 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6dmt( char **line ); # 362 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6dmt2( char **line ); # 372 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6dmtr( char **line ); # 382 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_glcal( char **line ); # 392 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_gl( char **line ); # 402 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6dj( char **line ); # 412 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_6di( char **line ); # 422 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_3d( char **line ); # 432 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" bool parseLine_st( char** line ); private: unsigned int act_framecounter; double act_timestamp; int act_num_body; std::vector< DTrackBody > act_body; int act_num_flystick; std::vector< DTrackFlyStick > act_flystick; int act_num_meatool; std::vector< DTrackMeaTool > act_meatool; int act_num_mearef; std::vector< DTrackMeaRef > act_mearef; int act_num_hand; std::vector< DTrackHand > act_hand; int act_num_human; std::vector< DTrackHuman > act_human; int act_num_inertial; std::vector< DTrackInertial > act_inertial; int act_num_marker; std::vector< DTrackMarker > act_marker; bool act_is_status_available; DTrackStatus act_status; int loc_num_bodycal; int loc_num_handcal; int loc_num_flystick1; int loc_num_meatool1; }; # 65 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" 2 # 77 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" class DTrackSDK : public DTrackParser { public: static const int DTRACK2_PROT_MAXLEN = 200; typedef enum { SYS_DTRACK_UNKNOWN = 0, SYS_DTRACK, SYS_DTRACK_2 } RemoteSystemType; typedef enum { ERR_NONE = 0, ERR_TIMEOUT, ERR_NET, ERR_PARSE } Errors; # 111 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" DTrackSDK( const std::string& connection ); # 121 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" DTrackSDK(unsigned short data_port); # 137 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" DTrackSDK(const std::string& server_host, unsigned short data_port); # 146 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" DTrackSDK(const std::string& server_host, unsigned short server_port, unsigned short data_port); # 159 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" DTrackSDK(const std::string& server_host, unsigned short server_port, unsigned short data_port, RemoteSystemType remote_type, int data_bufsize = 0, int data_timeout_us = 0, int srv_timeout_us = 0 ); ~DTrackSDK(); # 182 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool isDataInterfaceValid() const; # 191 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool isUDPValid() const { return isDataInterfaceValid(); } # 200 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool isLocalDataPortValid() const { return isDataInterfaceValid(); } unsigned short getDataPort() const; bool isCommandInterfaceValid() const; # 223 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool isTCPValid() const { return isCommandInterfaceValid(); } bool isCommandInterfaceFullAccess(); RemoteSystemType getRemoteSystemType() const; bool setDataTimeoutUS( int timeout ); bool setCommandTimeoutUS( int timeout ); # 263 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool setControllerTimeoutUS( int timeout ) { return setCommandTimeoutUS( timeout ); }; bool setDataBufferSize( int bufSize ); # 282 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool receive(); # 292 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool processPacket( const std::string& data ); std::string getBuf() const; Errors getLastDataError() const; Errors getLastServerError() const; int getLastDTrackError() const; std::string getLastDTrackErrorDescription() const; # 338 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool startMeasurement(); bool stopMeasurement(); # 356 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool sendDTrack1Command( const std::string& command ); # 366 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool sendCommand( const std::string& command ) { return sendDTrack1Command( command ); } # 382 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" int sendDTrack2Command(const std::string& command, std::string* answer = # 382 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" 3 4 __null # 382 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" ); # 392 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool setParam(const std::string& category, const std::string& name, const std::string& value); bool setParam(const std::string& parameter); # 410 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool getParam(const std::string& category, const std::string& name, std::string& value); # 419 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool getParam(const std::string& parameter, std::string& value); # 430 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool getMessage(); unsigned int getMessageFrameNr() const; unsigned int getMessageErrorId() const; std::string getMessageOrigin() const; std::string getMessageStatus() const; std::string getMessageMsg() const; # 481 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool tactileFinger( int handId, int fingerId, double strength ); # 495 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool tactileHand( int handId, const std::vector< double >& strength ); # 507 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool tactileHandOff( int handId, int numFinger ); # 521 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool flystickBeep( int flystickId, double durationMs, double frequencyHz ); # 533 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" bool flystickVibration( int flystickId, int vibrationPattern ); private: static const unsigned short DTRACK2_PORT_COMMAND = 50105; static const unsigned short DTRACK2_PORT_FEEDBACK = 50110; static const int DEFAULT_TCP_TIMEOUT = 10000000; static const int DEFAULT_UDP_TIMEOUT = 1000000; static const int DEFAULT_UDP_BUFSIZE = 32768; void setLastDTrackError(int newError = 0, const std::string& newErrorString = ""); # 561 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackSDK.hpp" void init( const std::string& server_host, unsigned short server_port, unsigned short data_port, RemoteSystemType remote_type ); bool sendFeedbackCommand( const std::string& command ); RemoteSystemType rsType; Errors lastDataError; Errors lastServerError; int lastDTrackError; std::string lastDTrackErrorString; DTrackNet::TCP* d_tcp; int d_tcptimeout_us; DTrackNet::UDP* d_udp; unsigned int d_remoteIp; unsigned short d_remoteDT1Port; int d_udptimeout_us; int d_udpbufsize; char* d_udpbuf; std::string d_message_origin; std::string d_message_status; unsigned int d_message_framenr; unsigned int d_message_errorid; std::string d_message_msg; }; # 11 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/EigenTypes.h" 1 # 13 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/EigenTypes.h" # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Geometry" 1 3 4 # 11 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Geometry" 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 1 3 4 # 15 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/DisableStupidWarnings.h" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wshadow" #pragma GCC diagnostic ignored "-Wignored-attributes" # 16 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Macros.h" 1 3 4 # 679 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Macros.h" 3 4 # 1 "/usr/include/c++/13/cmath" 1 3 4 # 39 "/usr/include/c++/13/cmath" 3 4 # 40 "/usr/include/c++/13/cmath" 3 # 1 "/usr/include/math.h" 1 3 4 # 27 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libc-header-start.h" 1 3 4 # 28 "/usr/include/math.h" 2 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/math-vector.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/bits/math-vector.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/libm-simd-decl-stubs.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/bits/math-vector.h" 2 3 4 # 41 "/usr/include/math.h" 2 3 4 # 152 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/flt-eval-method.h" 1 3 4 # 153 "/usr/include/math.h" 2 3 4 # 163 "/usr/include/math.h" 3 4 typedef float float_t; typedef double double_t; # 204 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/fp-logb.h" 1 3 4 # 205 "/usr/include/math.h" 2 3 4 # 247 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/fp-fast.h" 1 3 4 # 248 "/usr/include/math.h" 2 3 4 enum { FP_INT_UPWARD = 0, FP_INT_DOWNWARD = 1, FP_INT_TOWARDZERO = 2, FP_INT_TONEARESTFROMZERO = 3, FP_INT_TONEAREST = 4, }; # 312 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassify (double __value) noexcept (true) __attribute__ ((__const__)); extern int __signbit (double __value) noexcept (true) __attribute__ ((__const__)); extern int __isinf (double __value) noexcept (true) __attribute__ ((__const__)); extern int __finite (double __value) noexcept (true) __attribute__ ((__const__)); extern int __isnan (double __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsig (double __x, double __y) noexcept (true); extern int __issignaling (double __value) noexcept (true) __attribute__ ((__const__)); # 313 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern double acos (double __x) noexcept (true); extern double __acos (double __x) noexcept (true); extern double asin (double __x) noexcept (true); extern double __asin (double __x) noexcept (true); extern double atan (double __x) noexcept (true); extern double __atan (double __x) noexcept (true); extern double atan2 (double __y, double __x) noexcept (true); extern double __atan2 (double __y, double __x) noexcept (true); extern double cos (double __x) noexcept (true); extern double __cos (double __x) noexcept (true); extern double sin (double __x) noexcept (true); extern double __sin (double __x) noexcept (true); extern double tan (double __x) noexcept (true); extern double __tan (double __x) noexcept (true); extern double cosh (double __x) noexcept (true); extern double __cosh (double __x) noexcept (true); extern double sinh (double __x) noexcept (true); extern double __sinh (double __x) noexcept (true); extern double tanh (double __x) noexcept (true); extern double __tanh (double __x) noexcept (true); extern void sincos (double __x, double *__sinx, double *__cosx) noexcept (true); extern void __sincos (double __x, double *__sinx, double *__cosx) noexcept (true) ; extern double acosh (double __x) noexcept (true); extern double __acosh (double __x) noexcept (true); extern double asinh (double __x) noexcept (true); extern double __asinh (double __x) noexcept (true); extern double atanh (double __x) noexcept (true); extern double __atanh (double __x) noexcept (true); extern double exp (double __x) noexcept (true); extern double __exp (double __x) noexcept (true); extern double frexp (double __x, int *__exponent) noexcept (true); extern double __frexp (double __x, int *__exponent) noexcept (true); extern double ldexp (double __x, int __exponent) noexcept (true); extern double __ldexp (double __x, int __exponent) noexcept (true); extern double log (double __x) noexcept (true); extern double __log (double __x) noexcept (true); extern double log10 (double __x) noexcept (true); extern double __log10 (double __x) noexcept (true); extern double modf (double __x, double *__iptr) noexcept (true); extern double __modf (double __x, double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern double exp10 (double __x) noexcept (true); extern double __exp10 (double __x) noexcept (true); extern double expm1 (double __x) noexcept (true); extern double __expm1 (double __x) noexcept (true); extern double log1p (double __x) noexcept (true); extern double __log1p (double __x) noexcept (true); extern double logb (double __x) noexcept (true); extern double __logb (double __x) noexcept (true); extern double exp2 (double __x) noexcept (true); extern double __exp2 (double __x) noexcept (true); extern double log2 (double __x) noexcept (true); extern double __log2 (double __x) noexcept (true); extern double pow (double __x, double __y) noexcept (true); extern double __pow (double __x, double __y) noexcept (true); extern double sqrt (double __x) noexcept (true); extern double __sqrt (double __x) noexcept (true); extern double hypot (double __x, double __y) noexcept (true); extern double __hypot (double __x, double __y) noexcept (true); extern double cbrt (double __x) noexcept (true); extern double __cbrt (double __x) noexcept (true); extern double ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double __ceil (double __x) noexcept (true) __attribute__ ((__const__)); extern double fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double __fabs (double __x) noexcept (true) __attribute__ ((__const__)); extern double floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double __floor (double __x) noexcept (true) __attribute__ ((__const__)); extern double fmod (double __x, double __y) noexcept (true); extern double __fmod (double __x, double __y) noexcept (true); # 183 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int finite (double __value) noexcept (true) __attribute__ ((__const__)); extern double drem (double __x, double __y) noexcept (true); extern double __drem (double __x, double __y) noexcept (true); extern double significand (double __x) noexcept (true); extern double __significand (double __x) noexcept (true); extern double copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __copysign (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double nan (const char *__tagb) noexcept (true); extern double __nan (const char *__tagb) noexcept (true); # 220 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern double j0 (double) noexcept (true); extern double __j0 (double) noexcept (true); extern double j1 (double) noexcept (true); extern double __j1 (double) noexcept (true); extern double jn (int, double) noexcept (true); extern double __jn (int, double) noexcept (true); extern double y0 (double) noexcept (true); extern double __y0 (double) noexcept (true); extern double y1 (double) noexcept (true); extern double __y1 (double) noexcept (true); extern double yn (int, double) noexcept (true); extern double __yn (int, double) noexcept (true); extern double erf (double) noexcept (true); extern double __erf (double) noexcept (true); extern double erfc (double) noexcept (true); extern double __erfc (double) noexcept (true); extern double lgamma (double) noexcept (true); extern double __lgamma (double) noexcept (true); extern double tgamma (double) noexcept (true); extern double __tgamma (double) noexcept (true); extern double gamma (double) noexcept (true); extern double __gamma (double) noexcept (true); extern double lgamma_r (double, int *__signgamp) noexcept (true); extern double __lgamma_r (double, int *__signgamp) noexcept (true); extern double rint (double __x) noexcept (true); extern double __rint (double __x) noexcept (true); extern double nextafter (double __x, double __y) noexcept (true); extern double __nextafter (double __x, double __y) noexcept (true); extern double nexttoward (double __x, long double __y) noexcept (true); extern double __nexttoward (double __x, long double __y) noexcept (true); extern double nextdown (double __x) noexcept (true); extern double __nextdown (double __x) noexcept (true); extern double nextup (double __x) noexcept (true); extern double __nextup (double __x) noexcept (true); extern double remainder (double __x, double __y) noexcept (true); extern double __remainder (double __x, double __y) noexcept (true); extern double scalbn (double __x, int __n) noexcept (true); extern double __scalbn (double __x, int __n) noexcept (true); extern int ilogb (double __x) noexcept (true); extern int __ilogb (double __x) noexcept (true); extern long int llogb (double __x) noexcept (true); extern long int __llogb (double __x) noexcept (true); extern double scalbln (double __x, long int __n) noexcept (true); extern double __scalbln (double __x, long int __n) noexcept (true); extern double nearbyint (double __x) noexcept (true); extern double __nearbyint (double __x) noexcept (true); extern double round (double __x) noexcept (true) __attribute__ ((__const__)); extern double __round (double __x) noexcept (true) __attribute__ ((__const__)); extern double trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double __trunc (double __x) noexcept (true) __attribute__ ((__const__)); extern double remquo (double __x, double __y, int *__quo) noexcept (true); extern double __remquo (double __x, double __y, int *__quo) noexcept (true); extern long int lrint (double __x) noexcept (true); extern long int __lrint (double __x) noexcept (true); __extension__ extern long long int llrint (double __x) noexcept (true); extern long long int __llrint (double __x) noexcept (true); extern long int lround (double __x) noexcept (true); extern long int __lround (double __x) noexcept (true); __extension__ extern long long int llround (double __x) noexcept (true); extern long long int __llround (double __x) noexcept (true); extern double fdim (double __x, double __y) noexcept (true); extern double __fdim (double __x, double __y) noexcept (true); extern double fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmax (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmin (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fma (double __x, double __y, double __z) noexcept (true); extern double __fma (double __x, double __y, double __z) noexcept (true); extern double roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern double __roundeven (double __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfp (double __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfp (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfp (double __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpx (double __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpx (double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpx (double __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalize (double *__cx, const double *__x) noexcept (true); extern double fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaxmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminmag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fmaximum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern double __fminimum_mag_num (double __x, double __y) noexcept (true) __attribute__ ((__const__)); extern int totalorder (const double *__x, const double *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermag (const double *__x, const double *__y) noexcept (true) __attribute__ ((__pure__)); extern double getpayload (const double *__x) noexcept (true); extern double __getpayload (const double *__x) noexcept (true); extern int setpayload (double *__x, double __payload) noexcept (true); extern int setpayloadsig (double *__x, double __payload) noexcept (true); extern double scalb (double __x, double __n) noexcept (true); extern double __scalb (double __x, double __n) noexcept (true); # 314 "/usr/include/math.h" 2 3 4 # 329 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassifyf (float __value) noexcept (true) __attribute__ ((__const__)); extern int __signbitf (float __value) noexcept (true) __attribute__ ((__const__)); extern int __isinff (float __value) noexcept (true) __attribute__ ((__const__)); extern int __finitef (float __value) noexcept (true) __attribute__ ((__const__)); extern int __isnanf (float __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsigf (float __x, float __y) noexcept (true); extern int __issignalingf (float __value) noexcept (true) __attribute__ ((__const__)); # 330 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern float acosf (float __x) noexcept (true); extern float __acosf (float __x) noexcept (true); extern float asinf (float __x) noexcept (true); extern float __asinf (float __x) noexcept (true); extern float atanf (float __x) noexcept (true); extern float __atanf (float __x) noexcept (true); extern float atan2f (float __y, float __x) noexcept (true); extern float __atan2f (float __y, float __x) noexcept (true); extern float cosf (float __x) noexcept (true); extern float __cosf (float __x) noexcept (true); extern float sinf (float __x) noexcept (true); extern float __sinf (float __x) noexcept (true); extern float tanf (float __x) noexcept (true); extern float __tanf (float __x) noexcept (true); extern float coshf (float __x) noexcept (true); extern float __coshf (float __x) noexcept (true); extern float sinhf (float __x) noexcept (true); extern float __sinhf (float __x) noexcept (true); extern float tanhf (float __x) noexcept (true); extern float __tanhf (float __x) noexcept (true); extern void sincosf (float __x, float *__sinx, float *__cosx) noexcept (true); extern void __sincosf (float __x, float *__sinx, float *__cosx) noexcept (true) ; extern float acoshf (float __x) noexcept (true); extern float __acoshf (float __x) noexcept (true); extern float asinhf (float __x) noexcept (true); extern float __asinhf (float __x) noexcept (true); extern float atanhf (float __x) noexcept (true); extern float __atanhf (float __x) noexcept (true); extern float expf (float __x) noexcept (true); extern float __expf (float __x) noexcept (true); extern float frexpf (float __x, int *__exponent) noexcept (true); extern float __frexpf (float __x, int *__exponent) noexcept (true); extern float ldexpf (float __x, int __exponent) noexcept (true); extern float __ldexpf (float __x, int __exponent) noexcept (true); extern float logf (float __x) noexcept (true); extern float __logf (float __x) noexcept (true); extern float log10f (float __x) noexcept (true); extern float __log10f (float __x) noexcept (true); extern float modff (float __x, float *__iptr) noexcept (true); extern float __modff (float __x, float *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern float exp10f (float __x) noexcept (true); extern float __exp10f (float __x) noexcept (true); extern float expm1f (float __x) noexcept (true); extern float __expm1f (float __x) noexcept (true); extern float log1pf (float __x) noexcept (true); extern float __log1pf (float __x) noexcept (true); extern float logbf (float __x) noexcept (true); extern float __logbf (float __x) noexcept (true); extern float exp2f (float __x) noexcept (true); extern float __exp2f (float __x) noexcept (true); extern float log2f (float __x) noexcept (true); extern float __log2f (float __x) noexcept (true); extern float powf (float __x, float __y) noexcept (true); extern float __powf (float __x, float __y) noexcept (true); extern float sqrtf (float __x) noexcept (true); extern float __sqrtf (float __x) noexcept (true); extern float hypotf (float __x, float __y) noexcept (true); extern float __hypotf (float __x, float __y) noexcept (true); extern float cbrtf (float __x) noexcept (true); extern float __cbrtf (float __x) noexcept (true); extern float ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __ceilf (float __x) noexcept (true) __attribute__ ((__const__)); extern float fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __fabsf (float __x) noexcept (true) __attribute__ ((__const__)); extern float floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __floorf (float __x) noexcept (true) __attribute__ ((__const__)); extern float fmodf (float __x, float __y) noexcept (true); extern float __fmodf (float __x, float __y) noexcept (true); # 177 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isinff (float __value) noexcept (true) __attribute__ ((__const__)); extern int finitef (float __value) noexcept (true) __attribute__ ((__const__)); extern float dremf (float __x, float __y) noexcept (true); extern float __dremf (float __x, float __y) noexcept (true); extern float significandf (float __x) noexcept (true); extern float __significandf (float __x) noexcept (true); extern float copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __copysignf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float nanf (const char *__tagb) noexcept (true); extern float __nanf (const char *__tagb) noexcept (true); # 213 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isnanf (float __value) noexcept (true) __attribute__ ((__const__)); extern float j0f (float) noexcept (true); extern float __j0f (float) noexcept (true); extern float j1f (float) noexcept (true); extern float __j1f (float) noexcept (true); extern float jnf (int, float) noexcept (true); extern float __jnf (int, float) noexcept (true); extern float y0f (float) noexcept (true); extern float __y0f (float) noexcept (true); extern float y1f (float) noexcept (true); extern float __y1f (float) noexcept (true); extern float ynf (int, float) noexcept (true); extern float __ynf (int, float) noexcept (true); extern float erff (float) noexcept (true); extern float __erff (float) noexcept (true); extern float erfcf (float) noexcept (true); extern float __erfcf (float) noexcept (true); extern float lgammaf (float) noexcept (true); extern float __lgammaf (float) noexcept (true); extern float tgammaf (float) noexcept (true); extern float __tgammaf (float) noexcept (true); extern float gammaf (float) noexcept (true); extern float __gammaf (float) noexcept (true); extern float lgammaf_r (float, int *__signgamp) noexcept (true); extern float __lgammaf_r (float, int *__signgamp) noexcept (true); extern float rintf (float __x) noexcept (true); extern float __rintf (float __x) noexcept (true); extern float nextafterf (float __x, float __y) noexcept (true); extern float __nextafterf (float __x, float __y) noexcept (true); extern float nexttowardf (float __x, long double __y) noexcept (true); extern float __nexttowardf (float __x, long double __y) noexcept (true); extern float nextdownf (float __x) noexcept (true); extern float __nextdownf (float __x) noexcept (true); extern float nextupf (float __x) noexcept (true); extern float __nextupf (float __x) noexcept (true); extern float remainderf (float __x, float __y) noexcept (true); extern float __remainderf (float __x, float __y) noexcept (true); extern float scalbnf (float __x, int __n) noexcept (true); extern float __scalbnf (float __x, int __n) noexcept (true); extern int ilogbf (float __x) noexcept (true); extern int __ilogbf (float __x) noexcept (true); extern long int llogbf (float __x) noexcept (true); extern long int __llogbf (float __x) noexcept (true); extern float scalblnf (float __x, long int __n) noexcept (true); extern float __scalblnf (float __x, long int __n) noexcept (true); extern float nearbyintf (float __x) noexcept (true); extern float __nearbyintf (float __x) noexcept (true); extern float roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundf (float __x) noexcept (true) __attribute__ ((__const__)); extern float truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __truncf (float __x) noexcept (true) __attribute__ ((__const__)); extern float remquof (float __x, float __y, int *__quo) noexcept (true); extern float __remquof (float __x, float __y, int *__quo) noexcept (true); extern long int lrintf (float __x) noexcept (true); extern long int __lrintf (float __x) noexcept (true); __extension__ extern long long int llrintf (float __x) noexcept (true); extern long long int __llrintf (float __x) noexcept (true); extern long int lroundf (float __x) noexcept (true); extern long int __lroundf (float __x) noexcept (true); __extension__ extern long long int llroundf (float __x) noexcept (true); extern long long int __llroundf (float __x) noexcept (true); extern float fdimf (float __x, float __y) noexcept (true); extern float __fdimf (float __x, float __y) noexcept (true); extern float fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaf (float __x, float __y, float __z) noexcept (true); extern float __fmaf (float __x, float __y, float __z) noexcept (true); extern float roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern float __roundevenf (float __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf (float __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf (float __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf (float __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf (float __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizef (float *__cx, const float *__x) noexcept (true); extern float fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaxmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminmagf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimumf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_magf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fmaximum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern float __fminimum_mag_numf (float __x, float __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf (const float *__x, const float *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf (const float *__x, const float *__y) noexcept (true) __attribute__ ((__pure__)); extern float getpayloadf (const float *__x) noexcept (true); extern float __getpayloadf (const float *__x) noexcept (true); extern int setpayloadf (float *__x, float __payload) noexcept (true); extern int setpayloadsigf (float *__x, float __payload) noexcept (true); extern float scalbf (float __x, float __n) noexcept (true); extern float __scalbf (float __x, float __n) noexcept (true); # 331 "/usr/include/math.h" 2 3 4 # 398 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassifyl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __signbitl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __isinfl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __finitel (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __isnanl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsigl (long double __x, long double __y) noexcept (true); extern int __issignalingl (long double __value) noexcept (true) __attribute__ ((__const__)); # 399 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern long double acosl (long double __x) noexcept (true); extern long double __acosl (long double __x) noexcept (true); extern long double asinl (long double __x) noexcept (true); extern long double __asinl (long double __x) noexcept (true); extern long double atanl (long double __x) noexcept (true); extern long double __atanl (long double __x) noexcept (true); extern long double atan2l (long double __y, long double __x) noexcept (true); extern long double __atan2l (long double __y, long double __x) noexcept (true); extern long double cosl (long double __x) noexcept (true); extern long double __cosl (long double __x) noexcept (true); extern long double sinl (long double __x) noexcept (true); extern long double __sinl (long double __x) noexcept (true); extern long double tanl (long double __x) noexcept (true); extern long double __tanl (long double __x) noexcept (true); extern long double coshl (long double __x) noexcept (true); extern long double __coshl (long double __x) noexcept (true); extern long double sinhl (long double __x) noexcept (true); extern long double __sinhl (long double __x) noexcept (true); extern long double tanhl (long double __x) noexcept (true); extern long double __tanhl (long double __x) noexcept (true); extern void sincosl (long double __x, long double *__sinx, long double *__cosx) noexcept (true); extern void __sincosl (long double __x, long double *__sinx, long double *__cosx) noexcept (true) ; extern long double acoshl (long double __x) noexcept (true); extern long double __acoshl (long double __x) noexcept (true); extern long double asinhl (long double __x) noexcept (true); extern long double __asinhl (long double __x) noexcept (true); extern long double atanhl (long double __x) noexcept (true); extern long double __atanhl (long double __x) noexcept (true); extern long double expl (long double __x) noexcept (true); extern long double __expl (long double __x) noexcept (true); extern long double frexpl (long double __x, int *__exponent) noexcept (true); extern long double __frexpl (long double __x, int *__exponent) noexcept (true); extern long double ldexpl (long double __x, int __exponent) noexcept (true); extern long double __ldexpl (long double __x, int __exponent) noexcept (true); extern long double logl (long double __x) noexcept (true); extern long double __logl (long double __x) noexcept (true); extern long double log10l (long double __x) noexcept (true); extern long double __log10l (long double __x) noexcept (true); extern long double modfl (long double __x, long double *__iptr) noexcept (true); extern long double __modfl (long double __x, long double *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern long double exp10l (long double __x) noexcept (true); extern long double __exp10l (long double __x) noexcept (true); extern long double expm1l (long double __x) noexcept (true); extern long double __expm1l (long double __x) noexcept (true); extern long double log1pl (long double __x) noexcept (true); extern long double __log1pl (long double __x) noexcept (true); extern long double logbl (long double __x) noexcept (true); extern long double __logbl (long double __x) noexcept (true); extern long double exp2l (long double __x) noexcept (true); extern long double __exp2l (long double __x) noexcept (true); extern long double log2l (long double __x) noexcept (true); extern long double __log2l (long double __x) noexcept (true); extern long double powl (long double __x, long double __y) noexcept (true); extern long double __powl (long double __x, long double __y) noexcept (true); extern long double sqrtl (long double __x) noexcept (true); extern long double __sqrtl (long double __x) noexcept (true); extern long double hypotl (long double __x, long double __y) noexcept (true); extern long double __hypotl (long double __x, long double __y) noexcept (true); extern long double cbrtl (long double __x) noexcept (true); extern long double __cbrtl (long double __x) noexcept (true); extern long double ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __ceill (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __fabsl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __floorl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double fmodl (long double __x, long double __y) noexcept (true); extern long double __fmodl (long double __x, long double __y) noexcept (true); # 177 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isinfl (long double __value) noexcept (true) __attribute__ ((__const__)); extern int finitel (long double __value) noexcept (true) __attribute__ ((__const__)); extern long double dreml (long double __x, long double __y) noexcept (true); extern long double __dreml (long double __x, long double __y) noexcept (true); extern long double significandl (long double __x) noexcept (true); extern long double __significandl (long double __x) noexcept (true); extern long double copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __copysignl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double nanl (const char *__tagb) noexcept (true); extern long double __nanl (const char *__tagb) noexcept (true); # 213 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern int isnanl (long double __value) noexcept (true) __attribute__ ((__const__)); extern long double j0l (long double) noexcept (true); extern long double __j0l (long double) noexcept (true); extern long double j1l (long double) noexcept (true); extern long double __j1l (long double) noexcept (true); extern long double jnl (int, long double) noexcept (true); extern long double __jnl (int, long double) noexcept (true); extern long double y0l (long double) noexcept (true); extern long double __y0l (long double) noexcept (true); extern long double y1l (long double) noexcept (true); extern long double __y1l (long double) noexcept (true); extern long double ynl (int, long double) noexcept (true); extern long double __ynl (int, long double) noexcept (true); extern long double erfl (long double) noexcept (true); extern long double __erfl (long double) noexcept (true); extern long double erfcl (long double) noexcept (true); extern long double __erfcl (long double) noexcept (true); extern long double lgammal (long double) noexcept (true); extern long double __lgammal (long double) noexcept (true); extern long double tgammal (long double) noexcept (true); extern long double __tgammal (long double) noexcept (true); extern long double gammal (long double) noexcept (true); extern long double __gammal (long double) noexcept (true); extern long double lgammal_r (long double, int *__signgamp) noexcept (true); extern long double __lgammal_r (long double, int *__signgamp) noexcept (true); extern long double rintl (long double __x) noexcept (true); extern long double __rintl (long double __x) noexcept (true); extern long double nextafterl (long double __x, long double __y) noexcept (true); extern long double __nextafterl (long double __x, long double __y) noexcept (true); extern long double nexttowardl (long double __x, long double __y) noexcept (true); extern long double __nexttowardl (long double __x, long double __y) noexcept (true); extern long double nextdownl (long double __x) noexcept (true); extern long double __nextdownl (long double __x) noexcept (true); extern long double nextupl (long double __x) noexcept (true); extern long double __nextupl (long double __x) noexcept (true); extern long double remainderl (long double __x, long double __y) noexcept (true); extern long double __remainderl (long double __x, long double __y) noexcept (true); extern long double scalbnl (long double __x, int __n) noexcept (true); extern long double __scalbnl (long double __x, int __n) noexcept (true); extern int ilogbl (long double __x) noexcept (true); extern int __ilogbl (long double __x) noexcept (true); extern long int llogbl (long double __x) noexcept (true); extern long int __llogbl (long double __x) noexcept (true); extern long double scalblnl (long double __x, long int __n) noexcept (true); extern long double __scalblnl (long double __x, long int __n) noexcept (true); extern long double nearbyintl (long double __x) noexcept (true); extern long double __nearbyintl (long double __x) noexcept (true); extern long double roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __truncl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double remquol (long double __x, long double __y, int *__quo) noexcept (true); extern long double __remquol (long double __x, long double __y, int *__quo) noexcept (true); extern long int lrintl (long double __x) noexcept (true); extern long int __lrintl (long double __x) noexcept (true); __extension__ extern long long int llrintl (long double __x) noexcept (true); extern long long int __llrintl (long double __x) noexcept (true); extern long int lroundl (long double __x) noexcept (true); extern long int __lroundl (long double __x) noexcept (true); __extension__ extern long long int llroundl (long double __x) noexcept (true); extern long long int __llroundl (long double __x) noexcept (true); extern long double fdiml (long double __x, long double __y) noexcept (true); extern long double __fdiml (long double __x, long double __y) noexcept (true); extern long double fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmal (long double __x, long double __y, long double __z) noexcept (true); extern long double __fmal (long double __x, long double __y, long double __z) noexcept (true); extern long double roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern long double __roundevenl (long double __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpl (long double __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpl (long double __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxl (long double __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizel (long double *__cx, const long double *__x) noexcept (true); extern long double fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaxmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminmagl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimuml (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimum_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimum_magl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fmaximum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fmaximum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double fminimum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern long double __fminimum_mag_numl (long double __x, long double __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderl (const long double *__x, const long double *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagl (const long double *__x, const long double *__y) noexcept (true) __attribute__ ((__pure__)); extern long double getpayloadl (const long double *__x) noexcept (true); extern long double __getpayloadl (const long double *__x) noexcept (true); extern int setpayloadl (long double *__x, long double __payload) noexcept (true); extern int setpayloadsigl (long double *__x, long double __payload) noexcept (true); extern long double scalbl (long double __x, long double __n) noexcept (true); extern long double __scalbl (long double __x, long double __n) noexcept (true); # 400 "/usr/include/math.h" 2 3 4 # 450 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true); extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true); extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true); extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true); extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true); extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true); extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true); extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true); extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true); extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true) ; extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true); extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true); extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true); extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true); extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true); extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true); extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float32 exp10f32 (_Float32 __x) noexcept (true); extern _Float32 __exp10f32 (_Float32 __x) noexcept (true); extern _Float32 expm1f32 (_Float32 __x) noexcept (true); extern _Float32 __expm1f32 (_Float32 __x) noexcept (true); extern _Float32 log1pf32 (_Float32 __x) noexcept (true); extern _Float32 __log1pf32 (_Float32 __x) noexcept (true); extern _Float32 logbf32 (_Float32 __x) noexcept (true); extern _Float32 __logbf32 (_Float32 __x) noexcept (true); extern _Float32 exp2f32 (_Float32 __x) noexcept (true); extern _Float32 __exp2f32 (_Float32 __x) noexcept (true); extern _Float32 log2f32 (_Float32 __x) noexcept (true); extern _Float32 __log2f32 (_Float32 __x) noexcept (true); extern _Float32 powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __powf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 __sqrtf32 (_Float32 __x) noexcept (true); extern _Float32 hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __hypotf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 __cbrtf32 (_Float32 __x) noexcept (true); extern _Float32 ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __ceilf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fabsf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __floorf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fmodf32 (_Float32 __x, _Float32 __y) noexcept (true); # 198 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __copysignf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 nanf32 (const char *__tagb) noexcept (true); extern _Float32 __nanf32 (const char *__tagb) noexcept (true); # 220 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 j0f32 (_Float32) noexcept (true); extern _Float32 __j0f32 (_Float32) noexcept (true); extern _Float32 j1f32 (_Float32) noexcept (true); extern _Float32 __j1f32 (_Float32) noexcept (true); extern _Float32 jnf32 (int, _Float32) noexcept (true); extern _Float32 __jnf32 (int, _Float32) noexcept (true); extern _Float32 y0f32 (_Float32) noexcept (true); extern _Float32 __y0f32 (_Float32) noexcept (true); extern _Float32 y1f32 (_Float32) noexcept (true); extern _Float32 __y1f32 (_Float32) noexcept (true); extern _Float32 ynf32 (int, _Float32) noexcept (true); extern _Float32 __ynf32 (int, _Float32) noexcept (true); extern _Float32 erff32 (_Float32) noexcept (true); extern _Float32 __erff32 (_Float32) noexcept (true); extern _Float32 erfcf32 (_Float32) noexcept (true); extern _Float32 __erfcf32 (_Float32) noexcept (true); extern _Float32 lgammaf32 (_Float32) noexcept (true); extern _Float32 __lgammaf32 (_Float32) noexcept (true); extern _Float32 tgammaf32 (_Float32) noexcept (true); extern _Float32 __tgammaf32 (_Float32) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32 lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 __lgammaf32_r (_Float32, int *__signgamp) noexcept (true); extern _Float32 rintf32 (_Float32 __x) noexcept (true); extern _Float32 __rintf32 (_Float32 __x) noexcept (true); extern _Float32 nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __nextafterf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 __nextdownf32 (_Float32 __x) noexcept (true); extern _Float32 nextupf32 (_Float32 __x) noexcept (true); extern _Float32 __nextupf32 (_Float32 __x) noexcept (true); extern _Float32 remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __remainderf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 scalbnf32 (_Float32 __x, int __n) noexcept (true); extern _Float32 __scalbnf32 (_Float32 __x, int __n) noexcept (true); extern int ilogbf32 (_Float32 __x) noexcept (true); extern int __ilogbf32 (_Float32 __x) noexcept (true); extern long int llogbf32 (_Float32 __x) noexcept (true); extern long int __llogbf32 (_Float32 __x) noexcept (true); extern _Float32 scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 __scalblnf32 (_Float32 __x, long int __n) noexcept (true); extern _Float32 nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 __nearbyintf32 (_Float32 __x) noexcept (true); extern _Float32 roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __truncf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern _Float32 __remquof32 (_Float32 __x, _Float32 __y, int *__quo) noexcept (true); extern long int lrintf32 (_Float32 __x) noexcept (true); extern long int __lrintf32 (_Float32 __x) noexcept (true); __extension__ extern long long int llrintf32 (_Float32 __x) noexcept (true); extern long long int __llrintf32 (_Float32 __x) noexcept (true); extern long int lroundf32 (_Float32 __x) noexcept (true); extern long int __lroundf32 (_Float32 __x) noexcept (true); __extension__ extern long long int llroundf32 (_Float32 __x) noexcept (true); extern long long int __llroundf32 (_Float32 __x) noexcept (true); extern _Float32 fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 __fdimf32 (_Float32 __x, _Float32 __y) noexcept (true); extern _Float32 fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 __fmaf32 (_Float32 __x, _Float32 __y, _Float32 __z) noexcept (true); extern _Float32 roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern _Float32 __roundevenf32 (_Float32 __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32 (_Float32 __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizef32 (_Float32 *__cx, const _Float32 *__x) noexcept (true); extern _Float32 fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaxmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminmagf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimumf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_magf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fmaximum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern _Float32 __fminimum_mag_numf32 (_Float32 __x, _Float32 __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf32 (const _Float32 *__x, const _Float32 *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float32 getpayloadf32 (const _Float32 *__x) noexcept (true); extern _Float32 __getpayloadf32 (const _Float32 *__x) noexcept (true); extern int setpayloadf32 (_Float32 *__x, _Float32 __payload) noexcept (true); extern int setpayloadsigf32 (_Float32 *__x, _Float32 __payload) noexcept (true); # 451 "/usr/include/math.h" 2 3 4 # 467 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 acosf64 (_Float64 __x) noexcept (true); extern _Float64 __acosf64 (_Float64 __x) noexcept (true); extern _Float64 asinf64 (_Float64 __x) noexcept (true); extern _Float64 __asinf64 (_Float64 __x) noexcept (true); extern _Float64 atanf64 (_Float64 __x) noexcept (true); extern _Float64 __atanf64 (_Float64 __x) noexcept (true); extern _Float64 atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 __atan2f64 (_Float64 __y, _Float64 __x) noexcept (true); extern _Float64 cosf64 (_Float64 __x) noexcept (true); extern _Float64 __cosf64 (_Float64 __x) noexcept (true); extern _Float64 sinf64 (_Float64 __x) noexcept (true); extern _Float64 __sinf64 (_Float64 __x) noexcept (true); extern _Float64 tanf64 (_Float64 __x) noexcept (true); extern _Float64 __tanf64 (_Float64 __x) noexcept (true); extern _Float64 coshf64 (_Float64 __x) noexcept (true); extern _Float64 __coshf64 (_Float64 __x) noexcept (true); extern _Float64 sinhf64 (_Float64 __x) noexcept (true); extern _Float64 __sinhf64 (_Float64 __x) noexcept (true); extern _Float64 tanhf64 (_Float64 __x) noexcept (true); extern _Float64 __tanhf64 (_Float64 __x) noexcept (true); extern void sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true); extern void __sincosf64 (_Float64 __x, _Float64 *__sinx, _Float64 *__cosx) noexcept (true) ; extern _Float64 acoshf64 (_Float64 __x) noexcept (true); extern _Float64 __acoshf64 (_Float64 __x) noexcept (true); extern _Float64 asinhf64 (_Float64 __x) noexcept (true); extern _Float64 __asinhf64 (_Float64 __x) noexcept (true); extern _Float64 atanhf64 (_Float64 __x) noexcept (true); extern _Float64 __atanhf64 (_Float64 __x) noexcept (true); extern _Float64 expf64 (_Float64 __x) noexcept (true); extern _Float64 __expf64 (_Float64 __x) noexcept (true); extern _Float64 frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 __frexpf64 (_Float64 __x, int *__exponent) noexcept (true); extern _Float64 ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 __ldexpf64 (_Float64 __x, int __exponent) noexcept (true); extern _Float64 logf64 (_Float64 __x) noexcept (true); extern _Float64 __logf64 (_Float64 __x) noexcept (true); extern _Float64 log10f64 (_Float64 __x) noexcept (true); extern _Float64 __log10f64 (_Float64 __x) noexcept (true); extern _Float64 modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true); extern _Float64 __modff64 (_Float64 __x, _Float64 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float64 exp10f64 (_Float64 __x) noexcept (true); extern _Float64 __exp10f64 (_Float64 __x) noexcept (true); extern _Float64 expm1f64 (_Float64 __x) noexcept (true); extern _Float64 __expm1f64 (_Float64 __x) noexcept (true); extern _Float64 log1pf64 (_Float64 __x) noexcept (true); extern _Float64 __log1pf64 (_Float64 __x) noexcept (true); extern _Float64 logbf64 (_Float64 __x) noexcept (true); extern _Float64 __logbf64 (_Float64 __x) noexcept (true); extern _Float64 exp2f64 (_Float64 __x) noexcept (true); extern _Float64 __exp2f64 (_Float64 __x) noexcept (true); extern _Float64 log2f64 (_Float64 __x) noexcept (true); extern _Float64 __log2f64 (_Float64 __x) noexcept (true); extern _Float64 powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __powf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 __sqrtf64 (_Float64 __x) noexcept (true); extern _Float64 hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __hypotf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 __cbrtf64 (_Float64 __x) noexcept (true); extern _Float64 ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __ceilf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fabsf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __floorf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fmodf64 (_Float64 __x, _Float64 __y) noexcept (true); # 198 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __copysignf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 nanf64 (const char *__tagb) noexcept (true); extern _Float64 __nanf64 (const char *__tagb) noexcept (true); # 220 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 j0f64 (_Float64) noexcept (true); extern _Float64 __j0f64 (_Float64) noexcept (true); extern _Float64 j1f64 (_Float64) noexcept (true); extern _Float64 __j1f64 (_Float64) noexcept (true); extern _Float64 jnf64 (int, _Float64) noexcept (true); extern _Float64 __jnf64 (int, _Float64) noexcept (true); extern _Float64 y0f64 (_Float64) noexcept (true); extern _Float64 __y0f64 (_Float64) noexcept (true); extern _Float64 y1f64 (_Float64) noexcept (true); extern _Float64 __y1f64 (_Float64) noexcept (true); extern _Float64 ynf64 (int, _Float64) noexcept (true); extern _Float64 __ynf64 (int, _Float64) noexcept (true); extern _Float64 erff64 (_Float64) noexcept (true); extern _Float64 __erff64 (_Float64) noexcept (true); extern _Float64 erfcf64 (_Float64) noexcept (true); extern _Float64 __erfcf64 (_Float64) noexcept (true); extern _Float64 lgammaf64 (_Float64) noexcept (true); extern _Float64 __lgammaf64 (_Float64) noexcept (true); extern _Float64 tgammaf64 (_Float64) noexcept (true); extern _Float64 __tgammaf64 (_Float64) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64 lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 __lgammaf64_r (_Float64, int *__signgamp) noexcept (true); extern _Float64 rintf64 (_Float64 __x) noexcept (true); extern _Float64 __rintf64 (_Float64 __x) noexcept (true); extern _Float64 nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __nextafterf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 __nextdownf64 (_Float64 __x) noexcept (true); extern _Float64 nextupf64 (_Float64 __x) noexcept (true); extern _Float64 __nextupf64 (_Float64 __x) noexcept (true); extern _Float64 remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __remainderf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 scalbnf64 (_Float64 __x, int __n) noexcept (true); extern _Float64 __scalbnf64 (_Float64 __x, int __n) noexcept (true); extern int ilogbf64 (_Float64 __x) noexcept (true); extern int __ilogbf64 (_Float64 __x) noexcept (true); extern long int llogbf64 (_Float64 __x) noexcept (true); extern long int __llogbf64 (_Float64 __x) noexcept (true); extern _Float64 scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 __scalblnf64 (_Float64 __x, long int __n) noexcept (true); extern _Float64 nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 __nearbyintf64 (_Float64 __x) noexcept (true); extern _Float64 roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __truncf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern _Float64 __remquof64 (_Float64 __x, _Float64 __y, int *__quo) noexcept (true); extern long int lrintf64 (_Float64 __x) noexcept (true); extern long int __lrintf64 (_Float64 __x) noexcept (true); __extension__ extern long long int llrintf64 (_Float64 __x) noexcept (true); extern long long int __llrintf64 (_Float64 __x) noexcept (true); extern long int lroundf64 (_Float64 __x) noexcept (true); extern long int __lroundf64 (_Float64 __x) noexcept (true); __extension__ extern long long int llroundf64 (_Float64 __x) noexcept (true); extern long long int __llroundf64 (_Float64 __x) noexcept (true); extern _Float64 fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 __fdimf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float64 fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 __fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float64 roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern _Float64 __roundevenf64 (_Float64 __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64 (_Float64 __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizef64 (_Float64 *__cx, const _Float64 *__x) noexcept (true); extern _Float64 fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaxmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminmagf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimumf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_magf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fmaximum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern _Float64 __fminimum_mag_numf64 (_Float64 __x, _Float64 __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf64 (const _Float64 *__x, const _Float64 *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float64 getpayloadf64 (const _Float64 *__x) noexcept (true); extern _Float64 __getpayloadf64 (const _Float64 *__x) noexcept (true); extern int setpayloadf64 (_Float64 *__x, _Float64 __payload) noexcept (true); extern int setpayloadsigf64 (_Float64 *__x, _Float64 __payload) noexcept (true); # 468 "/usr/include/math.h" 2 3 4 # 481 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 1 3 4 # 20 "/usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h" 3 4 extern int __fpclassifyf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __signbitf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __isinff128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __finitef128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __isnanf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); extern int __iseqsigf128 (_Float128 __x, _Float128 __y) noexcept (true); extern int __issignalingf128 (_Float128 __value) noexcept (true) __attribute__ ((__const__)); # 482 "/usr/include/math.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 acosf128 (_Float128 __x) noexcept (true); extern _Float128 __acosf128 (_Float128 __x) noexcept (true); extern _Float128 asinf128 (_Float128 __x) noexcept (true); extern _Float128 __asinf128 (_Float128 __x) noexcept (true); extern _Float128 atanf128 (_Float128 __x) noexcept (true); extern _Float128 __atanf128 (_Float128 __x) noexcept (true); extern _Float128 atan2f128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 __atan2f128 (_Float128 __y, _Float128 __x) noexcept (true); extern _Float128 cosf128 (_Float128 __x) noexcept (true); extern _Float128 __cosf128 (_Float128 __x) noexcept (true); extern _Float128 sinf128 (_Float128 __x) noexcept (true); extern _Float128 __sinf128 (_Float128 __x) noexcept (true); extern _Float128 tanf128 (_Float128 __x) noexcept (true); extern _Float128 __tanf128 (_Float128 __x) noexcept (true); extern _Float128 coshf128 (_Float128 __x) noexcept (true); extern _Float128 __coshf128 (_Float128 __x) noexcept (true); extern _Float128 sinhf128 (_Float128 __x) noexcept (true); extern _Float128 __sinhf128 (_Float128 __x) noexcept (true); extern _Float128 tanhf128 (_Float128 __x) noexcept (true); extern _Float128 __tanhf128 (_Float128 __x) noexcept (true); extern void sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) noexcept (true); extern void __sincosf128 (_Float128 __x, _Float128 *__sinx, _Float128 *__cosx) noexcept (true) ; extern _Float128 acoshf128 (_Float128 __x) noexcept (true); extern _Float128 __acoshf128 (_Float128 __x) noexcept (true); extern _Float128 asinhf128 (_Float128 __x) noexcept (true); extern _Float128 __asinhf128 (_Float128 __x) noexcept (true); extern _Float128 atanhf128 (_Float128 __x) noexcept (true); extern _Float128 __atanhf128 (_Float128 __x) noexcept (true); extern _Float128 expf128 (_Float128 __x) noexcept (true); extern _Float128 __expf128 (_Float128 __x) noexcept (true); extern _Float128 frexpf128 (_Float128 __x, int *__exponent) noexcept (true); extern _Float128 __frexpf128 (_Float128 __x, int *__exponent) noexcept (true); extern _Float128 ldexpf128 (_Float128 __x, int __exponent) noexcept (true); extern _Float128 __ldexpf128 (_Float128 __x, int __exponent) noexcept (true); extern _Float128 logf128 (_Float128 __x) noexcept (true); extern _Float128 __logf128 (_Float128 __x) noexcept (true); extern _Float128 log10f128 (_Float128 __x) noexcept (true); extern _Float128 __log10f128 (_Float128 __x) noexcept (true); extern _Float128 modff128 (_Float128 __x, _Float128 *__iptr) noexcept (true); extern _Float128 __modff128 (_Float128 __x, _Float128 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float128 exp10f128 (_Float128 __x) noexcept (true); extern _Float128 __exp10f128 (_Float128 __x) noexcept (true); extern _Float128 expm1f128 (_Float128 __x) noexcept (true); extern _Float128 __expm1f128 (_Float128 __x) noexcept (true); extern _Float128 log1pf128 (_Float128 __x) noexcept (true); extern _Float128 __log1pf128 (_Float128 __x) noexcept (true); extern _Float128 logbf128 (_Float128 __x) noexcept (true); extern _Float128 __logbf128 (_Float128 __x) noexcept (true); extern _Float128 exp2f128 (_Float128 __x) noexcept (true); extern _Float128 __exp2f128 (_Float128 __x) noexcept (true); extern _Float128 log2f128 (_Float128 __x) noexcept (true); extern _Float128 __log2f128 (_Float128 __x) noexcept (true); extern _Float128 powf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __powf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 sqrtf128 (_Float128 __x) noexcept (true); extern _Float128 __sqrtf128 (_Float128 __x) noexcept (true); extern _Float128 hypotf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __hypotf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 cbrtf128 (_Float128 __x) noexcept (true); extern _Float128 __cbrtf128 (_Float128 __x) noexcept (true); extern _Float128 ceilf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __ceilf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 fabsf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fabsf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 floorf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __floorf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmodf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __fmodf128 (_Float128 __x, _Float128 __y) noexcept (true); # 198 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 copysignf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __copysignf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 nanf128 (const char *__tagb) noexcept (true); extern _Float128 __nanf128 (const char *__tagb) noexcept (true); # 220 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 j0f128 (_Float128) noexcept (true); extern _Float128 __j0f128 (_Float128) noexcept (true); extern _Float128 j1f128 (_Float128) noexcept (true); extern _Float128 __j1f128 (_Float128) noexcept (true); extern _Float128 jnf128 (int, _Float128) noexcept (true); extern _Float128 __jnf128 (int, _Float128) noexcept (true); extern _Float128 y0f128 (_Float128) noexcept (true); extern _Float128 __y0f128 (_Float128) noexcept (true); extern _Float128 y1f128 (_Float128) noexcept (true); extern _Float128 __y1f128 (_Float128) noexcept (true); extern _Float128 ynf128 (int, _Float128) noexcept (true); extern _Float128 __ynf128 (int, _Float128) noexcept (true); extern _Float128 erff128 (_Float128) noexcept (true); extern _Float128 __erff128 (_Float128) noexcept (true); extern _Float128 erfcf128 (_Float128) noexcept (true); extern _Float128 __erfcf128 (_Float128) noexcept (true); extern _Float128 lgammaf128 (_Float128) noexcept (true); extern _Float128 __lgammaf128 (_Float128) noexcept (true); extern _Float128 tgammaf128 (_Float128) noexcept (true); extern _Float128 __tgammaf128 (_Float128) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float128 lgammaf128_r (_Float128, int *__signgamp) noexcept (true); extern _Float128 __lgammaf128_r (_Float128, int *__signgamp) noexcept (true); extern _Float128 rintf128 (_Float128 __x) noexcept (true); extern _Float128 __rintf128 (_Float128 __x) noexcept (true); extern _Float128 nextafterf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __nextafterf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 nextdownf128 (_Float128 __x) noexcept (true); extern _Float128 __nextdownf128 (_Float128 __x) noexcept (true); extern _Float128 nextupf128 (_Float128 __x) noexcept (true); extern _Float128 __nextupf128 (_Float128 __x) noexcept (true); extern _Float128 remainderf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __remainderf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 scalbnf128 (_Float128 __x, int __n) noexcept (true); extern _Float128 __scalbnf128 (_Float128 __x, int __n) noexcept (true); extern int ilogbf128 (_Float128 __x) noexcept (true); extern int __ilogbf128 (_Float128 __x) noexcept (true); extern long int llogbf128 (_Float128 __x) noexcept (true); extern long int __llogbf128 (_Float128 __x) noexcept (true); extern _Float128 scalblnf128 (_Float128 __x, long int __n) noexcept (true); extern _Float128 __scalblnf128 (_Float128 __x, long int __n) noexcept (true); extern _Float128 nearbyintf128 (_Float128 __x) noexcept (true); extern _Float128 __nearbyintf128 (_Float128 __x) noexcept (true); extern _Float128 roundf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __roundf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 truncf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __truncf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 remquof128 (_Float128 __x, _Float128 __y, int *__quo) noexcept (true); extern _Float128 __remquof128 (_Float128 __x, _Float128 __y, int *__quo) noexcept (true); extern long int lrintf128 (_Float128 __x) noexcept (true); extern long int __lrintf128 (_Float128 __x) noexcept (true); __extension__ extern long long int llrintf128 (_Float128 __x) noexcept (true); extern long long int __llrintf128 (_Float128 __x) noexcept (true); extern long int lroundf128 (_Float128 __x) noexcept (true); extern long int __lroundf128 (_Float128 __x) noexcept (true); __extension__ extern long long int llroundf128 (_Float128 __x) noexcept (true); extern long long int __llroundf128 (_Float128 __x) noexcept (true); extern _Float128 fdimf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 __fdimf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float128 fmaxf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaxf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float128 __fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float128 roundevenf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern _Float128 __roundevenf128 (_Float128 __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf128 (_Float128 __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizef128 (_Float128 *__cx, const _Float128 *__x) noexcept (true); extern _Float128 fmaxmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaxmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminmagf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimumf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimum_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimum_magf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fmaximum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fmaximum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 fminimum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern _Float128 __fminimum_mag_numf128 (_Float128 __x, _Float128 __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf128 (const _Float128 *__x, const _Float128 *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf128 (const _Float128 *__x, const _Float128 *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float128 getpayloadf128 (const _Float128 *__x) noexcept (true); extern _Float128 __getpayloadf128 (const _Float128 *__x) noexcept (true); extern int setpayloadf128 (_Float128 *__x, _Float128 __payload) noexcept (true); extern int setpayloadsigf128 (_Float128 *__x, _Float128 __payload) noexcept (true); # 485 "/usr/include/math.h" 2 3 4 # 501 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x acosf32x (_Float32x __x) noexcept (true); extern _Float32x __acosf32x (_Float32x __x) noexcept (true); extern _Float32x asinf32x (_Float32x __x) noexcept (true); extern _Float32x __asinf32x (_Float32x __x) noexcept (true); extern _Float32x atanf32x (_Float32x __x) noexcept (true); extern _Float32x __atanf32x (_Float32x __x) noexcept (true); extern _Float32x atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x __atan2f32x (_Float32x __y, _Float32x __x) noexcept (true); extern _Float32x cosf32x (_Float32x __x) noexcept (true); extern _Float32x __cosf32x (_Float32x __x) noexcept (true); extern _Float32x sinf32x (_Float32x __x) noexcept (true); extern _Float32x __sinf32x (_Float32x __x) noexcept (true); extern _Float32x tanf32x (_Float32x __x) noexcept (true); extern _Float32x __tanf32x (_Float32x __x) noexcept (true); extern _Float32x coshf32x (_Float32x __x) noexcept (true); extern _Float32x __coshf32x (_Float32x __x) noexcept (true); extern _Float32x sinhf32x (_Float32x __x) noexcept (true); extern _Float32x __sinhf32x (_Float32x __x) noexcept (true); extern _Float32x tanhf32x (_Float32x __x) noexcept (true); extern _Float32x __tanhf32x (_Float32x __x) noexcept (true); extern void sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true); extern void __sincosf32x (_Float32x __x, _Float32x *__sinx, _Float32x *__cosx) noexcept (true) ; extern _Float32x acoshf32x (_Float32x __x) noexcept (true); extern _Float32x __acoshf32x (_Float32x __x) noexcept (true); extern _Float32x asinhf32x (_Float32x __x) noexcept (true); extern _Float32x __asinhf32x (_Float32x __x) noexcept (true); extern _Float32x atanhf32x (_Float32x __x) noexcept (true); extern _Float32x __atanhf32x (_Float32x __x) noexcept (true); extern _Float32x expf32x (_Float32x __x) noexcept (true); extern _Float32x __expf32x (_Float32x __x) noexcept (true); extern _Float32x frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x __frexpf32x (_Float32x __x, int *__exponent) noexcept (true); extern _Float32x ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x __ldexpf32x (_Float32x __x, int __exponent) noexcept (true); extern _Float32x logf32x (_Float32x __x) noexcept (true); extern _Float32x __logf32x (_Float32x __x) noexcept (true); extern _Float32x log10f32x (_Float32x __x) noexcept (true); extern _Float32x __log10f32x (_Float32x __x) noexcept (true); extern _Float32x modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true); extern _Float32x __modff32x (_Float32x __x, _Float32x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float32x exp10f32x (_Float32x __x) noexcept (true); extern _Float32x __exp10f32x (_Float32x __x) noexcept (true); extern _Float32x expm1f32x (_Float32x __x) noexcept (true); extern _Float32x __expm1f32x (_Float32x __x) noexcept (true); extern _Float32x log1pf32x (_Float32x __x) noexcept (true); extern _Float32x __log1pf32x (_Float32x __x) noexcept (true); extern _Float32x logbf32x (_Float32x __x) noexcept (true); extern _Float32x __logbf32x (_Float32x __x) noexcept (true); extern _Float32x exp2f32x (_Float32x __x) noexcept (true); extern _Float32x __exp2f32x (_Float32x __x) noexcept (true); extern _Float32x log2f32x (_Float32x __x) noexcept (true); extern _Float32x __log2f32x (_Float32x __x) noexcept (true); extern _Float32x powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __powf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x __sqrtf32x (_Float32x __x) noexcept (true); extern _Float32x hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __hypotf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x __cbrtf32x (_Float32x __x) noexcept (true); extern _Float32x ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __ceilf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fabsf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __floorf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fmodf32x (_Float32x __x, _Float32x __y) noexcept (true); # 198 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __copysignf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x nanf32x (const char *__tagb) noexcept (true); extern _Float32x __nanf32x (const char *__tagb) noexcept (true); # 220 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x j0f32x (_Float32x) noexcept (true); extern _Float32x __j0f32x (_Float32x) noexcept (true); extern _Float32x j1f32x (_Float32x) noexcept (true); extern _Float32x __j1f32x (_Float32x) noexcept (true); extern _Float32x jnf32x (int, _Float32x) noexcept (true); extern _Float32x __jnf32x (int, _Float32x) noexcept (true); extern _Float32x y0f32x (_Float32x) noexcept (true); extern _Float32x __y0f32x (_Float32x) noexcept (true); extern _Float32x y1f32x (_Float32x) noexcept (true); extern _Float32x __y1f32x (_Float32x) noexcept (true); extern _Float32x ynf32x (int, _Float32x) noexcept (true); extern _Float32x __ynf32x (int, _Float32x) noexcept (true); extern _Float32x erff32x (_Float32x) noexcept (true); extern _Float32x __erff32x (_Float32x) noexcept (true); extern _Float32x erfcf32x (_Float32x) noexcept (true); extern _Float32x __erfcf32x (_Float32x) noexcept (true); extern _Float32x lgammaf32x (_Float32x) noexcept (true); extern _Float32x __lgammaf32x (_Float32x) noexcept (true); extern _Float32x tgammaf32x (_Float32x) noexcept (true); extern _Float32x __tgammaf32x (_Float32x) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float32x lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x __lgammaf32x_r (_Float32x, int *__signgamp) noexcept (true); extern _Float32x rintf32x (_Float32x __x) noexcept (true); extern _Float32x __rintf32x (_Float32x __x) noexcept (true); extern _Float32x nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __nextafterf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x __nextdownf32x (_Float32x __x) noexcept (true); extern _Float32x nextupf32x (_Float32x __x) noexcept (true); extern _Float32x __nextupf32x (_Float32x __x) noexcept (true); extern _Float32x remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __remainderf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x scalbnf32x (_Float32x __x, int __n) noexcept (true); extern _Float32x __scalbnf32x (_Float32x __x, int __n) noexcept (true); extern int ilogbf32x (_Float32x __x) noexcept (true); extern int __ilogbf32x (_Float32x __x) noexcept (true); extern long int llogbf32x (_Float32x __x) noexcept (true); extern long int __llogbf32x (_Float32x __x) noexcept (true); extern _Float32x scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x __scalblnf32x (_Float32x __x, long int __n) noexcept (true); extern _Float32x nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x __nearbyintf32x (_Float32x __x) noexcept (true); extern _Float32x roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __truncf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern _Float32x __remquof32x (_Float32x __x, _Float32x __y, int *__quo) noexcept (true); extern long int lrintf32x (_Float32x __x) noexcept (true); extern long int __lrintf32x (_Float32x __x) noexcept (true); __extension__ extern long long int llrintf32x (_Float32x __x) noexcept (true); extern long long int __llrintf32x (_Float32x __x) noexcept (true); extern long int lroundf32x (_Float32x __x) noexcept (true); extern long int __lroundf32x (_Float32x __x) noexcept (true); __extension__ extern long long int llroundf32x (_Float32x __x) noexcept (true); extern long long int __llroundf32x (_Float32x __x) noexcept (true); extern _Float32x fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x __fdimf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32x fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x __fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32x roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern _Float32x __roundevenf32x (_Float32x __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf32x (_Float32x __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizef32x (_Float32x *__cx, const _Float32x *__x) noexcept (true); extern _Float32x fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaxmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminmagf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimumf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_magf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fmaximum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern _Float32x __fminimum_mag_numf32x (_Float32x __x, _Float32x __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf32x (const _Float32x *__x, const _Float32x *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float32x getpayloadf32x (const _Float32x *__x) noexcept (true); extern _Float32x __getpayloadf32x (const _Float32x *__x) noexcept (true); extern int setpayloadf32x (_Float32x *__x, _Float32x __payload) noexcept (true); extern int setpayloadsigf32x (_Float32x *__x, _Float32x __payload) noexcept (true); # 502 "/usr/include/math.h" 2 3 4 # 518 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 1 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x acosf64x (_Float64x __x) noexcept (true); extern _Float64x __acosf64x (_Float64x __x) noexcept (true); extern _Float64x asinf64x (_Float64x __x) noexcept (true); extern _Float64x __asinf64x (_Float64x __x) noexcept (true); extern _Float64x atanf64x (_Float64x __x) noexcept (true); extern _Float64x __atanf64x (_Float64x __x) noexcept (true); extern _Float64x atan2f64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x __atan2f64x (_Float64x __y, _Float64x __x) noexcept (true); extern _Float64x cosf64x (_Float64x __x) noexcept (true); extern _Float64x __cosf64x (_Float64x __x) noexcept (true); extern _Float64x sinf64x (_Float64x __x) noexcept (true); extern _Float64x __sinf64x (_Float64x __x) noexcept (true); extern _Float64x tanf64x (_Float64x __x) noexcept (true); extern _Float64x __tanf64x (_Float64x __x) noexcept (true); extern _Float64x coshf64x (_Float64x __x) noexcept (true); extern _Float64x __coshf64x (_Float64x __x) noexcept (true); extern _Float64x sinhf64x (_Float64x __x) noexcept (true); extern _Float64x __sinhf64x (_Float64x __x) noexcept (true); extern _Float64x tanhf64x (_Float64x __x) noexcept (true); extern _Float64x __tanhf64x (_Float64x __x) noexcept (true); extern void sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) noexcept (true); extern void __sincosf64x (_Float64x __x, _Float64x *__sinx, _Float64x *__cosx) noexcept (true) ; extern _Float64x acoshf64x (_Float64x __x) noexcept (true); extern _Float64x __acoshf64x (_Float64x __x) noexcept (true); extern _Float64x asinhf64x (_Float64x __x) noexcept (true); extern _Float64x __asinhf64x (_Float64x __x) noexcept (true); extern _Float64x atanhf64x (_Float64x __x) noexcept (true); extern _Float64x __atanhf64x (_Float64x __x) noexcept (true); extern _Float64x expf64x (_Float64x __x) noexcept (true); extern _Float64x __expf64x (_Float64x __x) noexcept (true); extern _Float64x frexpf64x (_Float64x __x, int *__exponent) noexcept (true); extern _Float64x __frexpf64x (_Float64x __x, int *__exponent) noexcept (true); extern _Float64x ldexpf64x (_Float64x __x, int __exponent) noexcept (true); extern _Float64x __ldexpf64x (_Float64x __x, int __exponent) noexcept (true); extern _Float64x logf64x (_Float64x __x) noexcept (true); extern _Float64x __logf64x (_Float64x __x) noexcept (true); extern _Float64x log10f64x (_Float64x __x) noexcept (true); extern _Float64x __log10f64x (_Float64x __x) noexcept (true); extern _Float64x modff64x (_Float64x __x, _Float64x *__iptr) noexcept (true); extern _Float64x __modff64x (_Float64x __x, _Float64x *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2))); extern _Float64x exp10f64x (_Float64x __x) noexcept (true); extern _Float64x __exp10f64x (_Float64x __x) noexcept (true); extern _Float64x expm1f64x (_Float64x __x) noexcept (true); extern _Float64x __expm1f64x (_Float64x __x) noexcept (true); extern _Float64x log1pf64x (_Float64x __x) noexcept (true); extern _Float64x __log1pf64x (_Float64x __x) noexcept (true); extern _Float64x logbf64x (_Float64x __x) noexcept (true); extern _Float64x __logbf64x (_Float64x __x) noexcept (true); extern _Float64x exp2f64x (_Float64x __x) noexcept (true); extern _Float64x __exp2f64x (_Float64x __x) noexcept (true); extern _Float64x log2f64x (_Float64x __x) noexcept (true); extern _Float64x __log2f64x (_Float64x __x) noexcept (true); extern _Float64x powf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __powf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x sqrtf64x (_Float64x __x) noexcept (true); extern _Float64x __sqrtf64x (_Float64x __x) noexcept (true); extern _Float64x hypotf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __hypotf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x cbrtf64x (_Float64x __x) noexcept (true); extern _Float64x __cbrtf64x (_Float64x __x) noexcept (true); extern _Float64x ceilf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __ceilf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x fabsf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fabsf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x floorf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __floorf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmodf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __fmodf64x (_Float64x __x, _Float64x __y) noexcept (true); # 198 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x copysignf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __copysignf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x nanf64x (const char *__tagb) noexcept (true); extern _Float64x __nanf64x (const char *__tagb) noexcept (true); # 220 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x j0f64x (_Float64x) noexcept (true); extern _Float64x __j0f64x (_Float64x) noexcept (true); extern _Float64x j1f64x (_Float64x) noexcept (true); extern _Float64x __j1f64x (_Float64x) noexcept (true); extern _Float64x jnf64x (int, _Float64x) noexcept (true); extern _Float64x __jnf64x (int, _Float64x) noexcept (true); extern _Float64x y0f64x (_Float64x) noexcept (true); extern _Float64x __y0f64x (_Float64x) noexcept (true); extern _Float64x y1f64x (_Float64x) noexcept (true); extern _Float64x __y1f64x (_Float64x) noexcept (true); extern _Float64x ynf64x (int, _Float64x) noexcept (true); extern _Float64x __ynf64x (int, _Float64x) noexcept (true); extern _Float64x erff64x (_Float64x) noexcept (true); extern _Float64x __erff64x (_Float64x) noexcept (true); extern _Float64x erfcf64x (_Float64x) noexcept (true); extern _Float64x __erfcf64x (_Float64x) noexcept (true); extern _Float64x lgammaf64x (_Float64x) noexcept (true); extern _Float64x __lgammaf64x (_Float64x) noexcept (true); extern _Float64x tgammaf64x (_Float64x) noexcept (true); extern _Float64x __tgammaf64x (_Float64x) noexcept (true); # 252 "/usr/include/x86_64-linux-gnu/bits/mathcalls.h" 3 4 extern _Float64x lgammaf64x_r (_Float64x, int *__signgamp) noexcept (true); extern _Float64x __lgammaf64x_r (_Float64x, int *__signgamp) noexcept (true); extern _Float64x rintf64x (_Float64x __x) noexcept (true); extern _Float64x __rintf64x (_Float64x __x) noexcept (true); extern _Float64x nextafterf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __nextafterf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x nextdownf64x (_Float64x __x) noexcept (true); extern _Float64x __nextdownf64x (_Float64x __x) noexcept (true); extern _Float64x nextupf64x (_Float64x __x) noexcept (true); extern _Float64x __nextupf64x (_Float64x __x) noexcept (true); extern _Float64x remainderf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __remainderf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x scalbnf64x (_Float64x __x, int __n) noexcept (true); extern _Float64x __scalbnf64x (_Float64x __x, int __n) noexcept (true); extern int ilogbf64x (_Float64x __x) noexcept (true); extern int __ilogbf64x (_Float64x __x) noexcept (true); extern long int llogbf64x (_Float64x __x) noexcept (true); extern long int __llogbf64x (_Float64x __x) noexcept (true); extern _Float64x scalblnf64x (_Float64x __x, long int __n) noexcept (true); extern _Float64x __scalblnf64x (_Float64x __x, long int __n) noexcept (true); extern _Float64x nearbyintf64x (_Float64x __x) noexcept (true); extern _Float64x __nearbyintf64x (_Float64x __x) noexcept (true); extern _Float64x roundf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __roundf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x truncf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __truncf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x remquof64x (_Float64x __x, _Float64x __y, int *__quo) noexcept (true); extern _Float64x __remquof64x (_Float64x __x, _Float64x __y, int *__quo) noexcept (true); extern long int lrintf64x (_Float64x __x) noexcept (true); extern long int __lrintf64x (_Float64x __x) noexcept (true); __extension__ extern long long int llrintf64x (_Float64x __x) noexcept (true); extern long long int __llrintf64x (_Float64x __x) noexcept (true); extern long int lroundf64x (_Float64x __x) noexcept (true); extern long int __lroundf64x (_Float64x __x) noexcept (true); __extension__ extern long long int llroundf64x (_Float64x __x) noexcept (true); extern long long int __llroundf64x (_Float64x __x) noexcept (true); extern _Float64x fdimf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x __fdimf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64x fmaxf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaxf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64x __fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64x roundevenf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern _Float64x __roundevenf64x (_Float64x __x) noexcept (true) __attribute__ ((__const__)); extern __intmax_t fromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) ; extern __intmax_t fromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __intmax_t __fromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) ; extern __uintmax_t ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true); extern __uintmax_t __ufromfpxf64x (_Float64x __x, int __round, unsigned int __width) noexcept (true) ; extern int canonicalizef64x (_Float64x *__cx, const _Float64x *__x) noexcept (true); extern _Float64x fmaxmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaxmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminmagf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimumf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimum_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimum_magf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fmaximum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fmaximum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x fminimum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern _Float64x __fminimum_mag_numf64x (_Float64x __x, _Float64x __y) noexcept (true) __attribute__ ((__const__)); extern int totalorderf64x (const _Float64x *__x, const _Float64x *__y) noexcept (true) __attribute__ ((__pure__)); extern int totalordermagf64x (const _Float64x *__x, const _Float64x *__y) noexcept (true) __attribute__ ((__pure__)); extern _Float64x getpayloadf64x (const _Float64x *__x) noexcept (true); extern _Float64x __getpayloadf64x (const _Float64x *__x) noexcept (true); extern int setpayloadf64x (_Float64x *__x, _Float64x __payload) noexcept (true); extern int setpayloadsigf64x (_Float64x *__x, _Float64x __payload) noexcept (true); # 519 "/usr/include/math.h" 2 3 4 # 566 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern float fadd (double __x, double __y) noexcept (true); extern float fdiv (double __x, double __y) noexcept (true); extern float ffma (double __x, double __y, double __z) noexcept (true); extern float fmul (double __x, double __y) noexcept (true); extern float fsqrt (double __x) noexcept (true); extern float fsub (double __x, double __y) noexcept (true); # 567 "/usr/include/math.h" 2 3 4 # 587 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern float faddl (long double __x, long double __y) noexcept (true); extern float fdivl (long double __x, long double __y) noexcept (true); extern float ffmal (long double __x, long double __y, long double __z) noexcept (true); extern float fmull (long double __x, long double __y) noexcept (true); extern float fsqrtl (long double __x) noexcept (true); extern float fsubl (long double __x, long double __y) noexcept (true); # 588 "/usr/include/math.h" 2 3 4 # 616 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern double daddl (long double __x, long double __y) noexcept (true); extern double ddivl (long double __x, long double __y) noexcept (true); extern double dfmal (long double __x, long double __y, long double __z) noexcept (true); extern double dmull (long double __x, long double __y) noexcept (true); extern double dsqrtl (long double __x) noexcept (true); extern double dsubl (long double __x, long double __y) noexcept (true); # 617 "/usr/include/math.h" 2 3 4 # 697 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32 f32divf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32 f32fmaf32x (_Float32x __x, _Float32x __y, _Float32x __z) noexcept (true); extern _Float32 f32mulf32x (_Float32x __x, _Float32x __y) noexcept (true); extern _Float32 f32sqrtf32x (_Float32x __x) noexcept (true); extern _Float32 f32subf32x (_Float32x __x, _Float32x __y) noexcept (true); # 698 "/usr/include/math.h" 2 3 4 # 707 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32 f32divf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32 f32fmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float32 f32mulf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32 f32sqrtf64 (_Float64 __x) noexcept (true); extern _Float32 f32subf64 (_Float64 __x, _Float64 __y) noexcept (true); # 708 "/usr/include/math.h" 2 3 4 # 717 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32 f32divf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32 f32fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float32 f32mulf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32 f32sqrtf64x (_Float64x __x) noexcept (true); extern _Float32 f32subf64x (_Float64x __x, _Float64x __y) noexcept (true); # 718 "/usr/include/math.h" 2 3 4 # 727 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32 f32addf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32 f32divf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32 f32fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float32 f32mulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32 f32sqrtf128 (_Float128 __x) noexcept (true); extern _Float32 f32subf128 (_Float128 __x, _Float128 __y) noexcept (true); # 728 "/usr/include/math.h" 2 3 4 # 747 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32x f32xaddf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32x f32xdivf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32x f32xfmaf64 (_Float64 __x, _Float64 __y, _Float64 __z) noexcept (true); extern _Float32x f32xmulf64 (_Float64 __x, _Float64 __y) noexcept (true); extern _Float32x f32xsqrtf64 (_Float64 __x) noexcept (true); extern _Float32x f32xsubf64 (_Float64 __x, _Float64 __y) noexcept (true); # 748 "/usr/include/math.h" 2 3 4 # 757 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32x f32xaddf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32x f32xdivf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32x f32xfmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float32x f32xmulf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float32x f32xsqrtf64x (_Float64x __x) noexcept (true); extern _Float32x f32xsubf64x (_Float64x __x, _Float64x __y) noexcept (true); # 758 "/usr/include/math.h" 2 3 4 # 767 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float32x f32xaddf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32x f32xdivf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32x f32xfmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float32x f32xmulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float32x f32xsqrtf128 (_Float128 __x) noexcept (true); extern _Float32x f32xsubf128 (_Float128 __x, _Float128 __y) noexcept (true); # 768 "/usr/include/math.h" 2 3 4 # 787 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float64 f64addf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64 f64divf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64 f64fmaf64x (_Float64x __x, _Float64x __y, _Float64x __z) noexcept (true); extern _Float64 f64mulf64x (_Float64x __x, _Float64x __y) noexcept (true); extern _Float64 f64sqrtf64x (_Float64x __x) noexcept (true); extern _Float64 f64subf64x (_Float64x __x, _Float64x __y) noexcept (true); # 788 "/usr/include/math.h" 2 3 4 # 797 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float64 f64addf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64 f64divf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64 f64fmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float64 f64mulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64 f64sqrtf128 (_Float128 __x) noexcept (true); extern _Float64 f64subf128 (_Float128 __x, _Float128 __y) noexcept (true); # 798 "/usr/include/math.h" 2 3 4 # 817 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/mathcalls-narrow.h" 3 4 extern _Float64x f64xaddf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64x f64xdivf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64x f64xfmaf128 (_Float128 __x, _Float128 __y, _Float128 __z) noexcept (true); extern _Float64x f64xmulf128 (_Float128 __x, _Float128 __y) noexcept (true); extern _Float64x f64xsqrtf128 (_Float128 __x) noexcept (true); extern _Float64x f64xsubf128 (_Float128 __x, _Float128 __y) noexcept (true); # 818 "/usr/include/math.h" 2 3 4 # 854 "/usr/include/math.h" 3 4 extern int signgam; # 934 "/usr/include/math.h" 3 4 enum { FP_NAN = 0, FP_INFINITE = 1, FP_ZERO = 2, FP_SUBNORMAL = 3, FP_NORMAL = 4 }; # 1054 "/usr/include/math.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/iscanonical.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/iscanonical.h" 3 4 extern int __iscanonicall (long double __x) noexcept (true) __attribute__ ((__const__)); # 46 "/usr/include/x86_64-linux-gnu/bits/iscanonical.h" 3 4 extern "C++" { inline int iscanonical (float __val) { return ((void) (__typeof (__val)) (__val), 1); } inline int iscanonical (double __val) { return ((void) (__typeof (__val)) (__val), 1); } inline int iscanonical (long double __val) { return __iscanonicall (__val); } inline int iscanonical (_Float128 __val) { return ((void) (__typeof (__val)) (__val), 1); } } # 1055 "/usr/include/math.h" 2 3 4 # 1066 "/usr/include/math.h" 3 4 extern "C++" { inline int issignaling (float __val) { return __issignalingf (__val); } inline int issignaling (double __val) { return __issignaling (__val); } inline int issignaling (long double __val) { return __issignalingl (__val); } inline int issignaling (_Float128 __val) { return __issignalingf128 (__val); } } # 1097 "/usr/include/math.h" 3 4 extern "C++" { # 1128 "/usr/include/math.h" 3 4 template <class __T> inline bool iszero (__T __val) { return __val == 0; } } # 1363 "/usr/include/math.h" 3 4 extern "C++" { template<typename> struct __iseqsig_type; template<> struct __iseqsig_type<float> { static int __call (float __x, float __y) throw () { return __iseqsigf (__x, __y); } }; template<> struct __iseqsig_type<double> { static int __call (double __x, double __y) throw () { return __iseqsig (__x, __y); } }; template<> struct __iseqsig_type<long double> { static int __call (long double __x, long double __y) throw () { return __iseqsigl (__x, __y); } }; template<> struct __iseqsig_type<_Float128> { static int __call (_Float128 __x, _Float128 __y) throw () { return __iseqsigf128 (__x, __y); } }; template<typename _T1, typename _T2> inline int iseqsig (_T1 __x, _T2 __y) throw () { typedef decltype (((__x) + (__y) + 0.0f)) _T3; return __iseqsig_type<_T3>::__call (__x, __y); } } } # 48 "/usr/include/c++/13/cmath" 2 3 # 79 "/usr/include/c++/13/cmath" 3 extern "C++" { namespace std __attribute__ ((__visibility__ ("default"))) { using ::acos; inline constexpr float acos(float __x) { return __builtin_acosf(__x); } inline constexpr long double acos(long double __x) { return __builtin_acosl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type acos(_Tp __x) { return __builtin_acos(__x); } using ::asin; inline constexpr float asin(float __x) { return __builtin_asinf(__x); } inline constexpr long double asin(long double __x) { return __builtin_asinl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type asin(_Tp __x) { return __builtin_asin(__x); } using ::atan; inline constexpr float atan(float __x) { return __builtin_atanf(__x); } inline constexpr long double atan(long double __x) { return __builtin_atanl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type atan(_Tp __x) { return __builtin_atan(__x); } using ::atan2; inline constexpr float atan2(float __y, float __x) { return __builtin_atan2f(__y, __x); } inline constexpr long double atan2(long double __y, long double __x) { return __builtin_atan2l(__y, __x); } using ::ceil; inline constexpr float ceil(float __x) { return __builtin_ceilf(__x); } inline constexpr long double ceil(long double __x) { return __builtin_ceill(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type ceil(_Tp __x) { return __builtin_ceil(__x); } using ::cos; inline constexpr float cos(float __x) { return __builtin_cosf(__x); } inline constexpr long double cos(long double __x) { return __builtin_cosl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cos(_Tp __x) { return __builtin_cos(__x); } using ::cosh; inline constexpr float cosh(float __x) { return __builtin_coshf(__x); } inline constexpr long double cosh(long double __x) { return __builtin_coshl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cosh(_Tp __x) { return __builtin_cosh(__x); } using ::exp; inline constexpr float exp(float __x) { return __builtin_expf(__x); } inline constexpr long double exp(long double __x) { return __builtin_expl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type exp(_Tp __x) { return __builtin_exp(__x); } using ::fabs; inline constexpr float fabs(float __x) { return __builtin_fabsf(__x); } inline constexpr long double fabs(long double __x) { return __builtin_fabsl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type fabs(_Tp __x) { return __builtin_fabs(__x); } using ::floor; inline constexpr float floor(float __x) { return __builtin_floorf(__x); } inline constexpr long double floor(long double __x) { return __builtin_floorl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type floor(_Tp __x) { return __builtin_floor(__x); } using ::fmod; inline constexpr float fmod(float __x, float __y) { return __builtin_fmodf(__x, __y); } inline constexpr long double fmod(long double __x, long double __y) { return __builtin_fmodl(__x, __y); } using ::frexp; inline float frexp(float __x, int* __exp) { return __builtin_frexpf(__x, __exp); } inline long double frexp(long double __x, int* __exp) { return __builtin_frexpl(__x, __exp); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type frexp(_Tp __x, int* __exp) { return __builtin_frexp(__x, __exp); } using ::ldexp; inline constexpr float ldexp(float __x, int __exp) { return __builtin_ldexpf(__x, __exp); } inline constexpr long double ldexp(long double __x, int __exp) { return __builtin_ldexpl(__x, __exp); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type ldexp(_Tp __x, int __exp) { return __builtin_ldexp(__x, __exp); } using ::log; inline constexpr float log(float __x) { return __builtin_logf(__x); } inline constexpr long double log(long double __x) { return __builtin_logl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log(_Tp __x) { return __builtin_log(__x); } using ::log10; inline constexpr float log10(float __x) { return __builtin_log10f(__x); } inline constexpr long double log10(long double __x) { return __builtin_log10l(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log10(_Tp __x) { return __builtin_log10(__x); } using ::modf; inline float modf(float __x, float* __iptr) { return __builtin_modff(__x, __iptr); } inline long double modf(long double __x, long double* __iptr) { return __builtin_modfl(__x, __iptr); } using ::pow; inline constexpr float pow(float __x, float __y) { return __builtin_powf(__x, __y); } inline constexpr long double pow(long double __x, long double __y) { return __builtin_powl(__x, __y); } # 396 "/usr/include/c++/13/cmath" 3 using ::sin; inline constexpr float sin(float __x) { return __builtin_sinf(__x); } inline constexpr long double sin(long double __x) { return __builtin_sinl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sin(_Tp __x) { return __builtin_sin(__x); } using ::sinh; inline constexpr float sinh(float __x) { return __builtin_sinhf(__x); } inline constexpr long double sinh(long double __x) { return __builtin_sinhl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sinh(_Tp __x) { return __builtin_sinh(__x); } using ::sqrt; inline constexpr float sqrt(float __x) { return __builtin_sqrtf(__x); } inline constexpr long double sqrt(long double __x) { return __builtin_sqrtl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type sqrt(_Tp __x) { return __builtin_sqrt(__x); } using ::tan; inline constexpr float tan(float __x) { return __builtin_tanf(__x); } inline constexpr long double tan(long double __x) { return __builtin_tanl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tan(_Tp __x) { return __builtin_tan(__x); } using ::tanh; inline constexpr float tanh(float __x) { return __builtin_tanhf(__x); } inline constexpr long double tanh(long double __x) { return __builtin_tanhl(__x); } template<typename _Tp> inline constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tanh(_Tp __x) { return __builtin_tanh(__x); } # 1049 "/usr/include/c++/13/cmath" 3 template<typename _Tp, typename _Up> inline constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type atan2(_Tp __y, _Up __x) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return atan2(__type(__y), __type(__x)); } template<typename _Tp, typename _Up> inline constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmod(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmod(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> inline constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type pow(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return pow(__type(__x), __type(__y)); } # 1096 "/usr/include/c++/13/cmath" 3 constexpr int fpclassify(float __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr int fpclassify(double __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } constexpr int fpclassify(long double __x) { return __builtin_fpclassify(0, 1, 4, 3, 2, __x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, int>::__type fpclassify(_Tp __x) { return __x != 0 ? 4 : 2; } constexpr bool isfinite(float __x) { return __builtin_isfinite(__x); } constexpr bool isfinite(double __x) { return __builtin_isfinite(__x); } constexpr bool isfinite(long double __x) { return __builtin_isfinite(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isfinite(_Tp __x) { return true; } constexpr bool isinf(float __x) { return __builtin_isinf(__x); } constexpr bool isinf(double __x) { return __builtin_isinf(__x); } constexpr bool isinf(long double __x) { return __builtin_isinf(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isinf(_Tp __x) { return false; } constexpr bool isnan(float __x) { return __builtin_isnan(__x); } constexpr bool isnan(double __x) { return __builtin_isnan(__x); } constexpr bool isnan(long double __x) { return __builtin_isnan(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isnan(_Tp __x) { return false; } constexpr bool isnormal(float __x) { return __builtin_isnormal(__x); } constexpr bool isnormal(double __x) { return __builtin_isnormal(__x); } constexpr bool isnormal(long double __x) { return __builtin_isnormal(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type isnormal(_Tp __x) { return __x != 0 ? true : false; } constexpr bool signbit(float __x) { return __builtin_signbit(__x); } constexpr bool signbit(double __x) { return __builtin_signbit(__x); } constexpr bool signbit(long double __x) { return __builtin_signbit(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, bool>::__type signbit(_Tp __x) { return __x < 0 ? true : false; } constexpr bool isgreater(float __x, float __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreater(double __x, double __y) { return __builtin_isgreater(__x, __y); } constexpr bool isgreater(long double __x, long double __y) { return __builtin_isgreater(__x, __y); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isgreater(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isgreater(__type(__x), __type(__y)); } constexpr bool isgreaterequal(float __x, float __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isgreaterequal(double __x, double __y) { return __builtin_isgreaterequal(__x, __y); } constexpr bool isgreaterequal(long double __x, long double __y) { return __builtin_isgreaterequal(__x, __y); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isgreaterequal(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isgreaterequal(__type(__x), __type(__y)); } constexpr bool isless(float __x, float __y) { return __builtin_isless(__x, __y); } constexpr bool isless(double __x, double __y) { return __builtin_isless(__x, __y); } constexpr bool isless(long double __x, long double __y) { return __builtin_isless(__x, __y); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isless(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isless(__type(__x), __type(__y)); } constexpr bool islessequal(float __x, float __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessequal(double __x, double __y) { return __builtin_islessequal(__x, __y); } constexpr bool islessequal(long double __x, long double __y) { return __builtin_islessequal(__x, __y); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type islessequal(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_islessequal(__type(__x), __type(__y)); } constexpr bool islessgreater(float __x, float __y) { return __builtin_islessgreater(__x, __y); } constexpr bool islessgreater(double __x, double __y) { return __builtin_islessgreater(__x, __y); } constexpr bool islessgreater(long double __x, long double __y) { return __builtin_islessgreater(__x, __y); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type islessgreater(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_islessgreater(__type(__x), __type(__y)); } constexpr bool isunordered(float __x, float __y) { return __builtin_isunordered(__x, __y); } constexpr bool isunordered(double __x, double __y) { return __builtin_isunordered(__x, __y); } constexpr bool isunordered(long double __x, long double __y) { return __builtin_isunordered(__x, __y); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__enable_if<(__is_arithmetic<_Tp>::__value && __is_arithmetic<_Up>::__value), bool>::__type isunordered(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return __builtin_isunordered(__type(__x), __type(__y)); } # 1881 "/usr/include/c++/13/cmath" 3 using ::double_t; using ::float_t; using ::acosh; using ::acoshf; using ::acoshl; using ::asinh; using ::asinhf; using ::asinhl; using ::atanh; using ::atanhf; using ::atanhl; using ::cbrt; using ::cbrtf; using ::cbrtl; using ::copysign; using ::copysignf; using ::copysignl; using ::erf; using ::erff; using ::erfl; using ::erfc; using ::erfcf; using ::erfcl; using ::exp2; using ::exp2f; using ::exp2l; using ::expm1; using ::expm1f; using ::expm1l; using ::fdim; using ::fdimf; using ::fdiml; using ::fma; using ::fmaf; using ::fmal; using ::fmax; using ::fmaxf; using ::fmaxl; using ::fmin; using ::fminf; using ::fminl; using ::hypot; using ::hypotf; using ::hypotl; using ::ilogb; using ::ilogbf; using ::ilogbl; using ::lgamma; using ::lgammaf; using ::lgammal; using ::llrint; using ::llrintf; using ::llrintl; using ::llround; using ::llroundf; using ::llroundl; using ::log1p; using ::log1pf; using ::log1pl; using ::log2; using ::log2f; using ::log2l; using ::logb; using ::logbf; using ::logbl; using ::lrint; using ::lrintf; using ::lrintl; using ::lround; using ::lroundf; using ::lroundl; using ::nan; using ::nanf; using ::nanl; using ::nearbyint; using ::nearbyintf; using ::nearbyintl; using ::nextafter; using ::nextafterf; using ::nextafterl; using ::nexttoward; using ::nexttowardf; using ::nexttowardl; using ::remainder; using ::remainderf; using ::remainderl; using ::remquo; using ::remquof; using ::remquol; using ::rint; using ::rintf; using ::rintl; using ::round; using ::roundf; using ::roundl; using ::scalbln; using ::scalblnf; using ::scalblnl; using ::scalbn; using ::scalbnf; using ::scalbnl; using ::tgamma; using ::tgammaf; using ::tgammal; using ::trunc; using ::truncf; using ::truncl; constexpr float acosh(float __x) { return __builtin_acoshf(__x); } constexpr long double acosh(long double __x) { return __builtin_acoshl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type acosh(_Tp __x) { return __builtin_acosh(__x); } constexpr float asinh(float __x) { return __builtin_asinhf(__x); } constexpr long double asinh(long double __x) { return __builtin_asinhl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type asinh(_Tp __x) { return __builtin_asinh(__x); } constexpr float atanh(float __x) { return __builtin_atanhf(__x); } constexpr long double atanh(long double __x) { return __builtin_atanhl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type atanh(_Tp __x) { return __builtin_atanh(__x); } constexpr float cbrt(float __x) { return __builtin_cbrtf(__x); } constexpr long double cbrt(long double __x) { return __builtin_cbrtl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type cbrt(_Tp __x) { return __builtin_cbrt(__x); } constexpr float copysign(float __x, float __y) { return __builtin_copysignf(__x, __y); } constexpr long double copysign(long double __x, long double __y) { return __builtin_copysignl(__x, __y); } constexpr float erf(float __x) { return __builtin_erff(__x); } constexpr long double erf(long double __x) { return __builtin_erfl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type erf(_Tp __x) { return __builtin_erf(__x); } constexpr float erfc(float __x) { return __builtin_erfcf(__x); } constexpr long double erfc(long double __x) { return __builtin_erfcl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type erfc(_Tp __x) { return __builtin_erfc(__x); } constexpr float exp2(float __x) { return __builtin_exp2f(__x); } constexpr long double exp2(long double __x) { return __builtin_exp2l(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type exp2(_Tp __x) { return __builtin_exp2(__x); } constexpr float expm1(float __x) { return __builtin_expm1f(__x); } constexpr long double expm1(long double __x) { return __builtin_expm1l(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type expm1(_Tp __x) { return __builtin_expm1(__x); } constexpr float fdim(float __x, float __y) { return __builtin_fdimf(__x, __y); } constexpr long double fdim(long double __x, long double __y) { return __builtin_fdiml(__x, __y); } constexpr float fma(float __x, float __y, float __z) { return __builtin_fmaf(__x, __y, __z); } constexpr long double fma(long double __x, long double __y, long double __z) { return __builtin_fmal(__x, __y, __z); } constexpr float fmax(float __x, float __y) { return __builtin_fmaxf(__x, __y); } constexpr long double fmax(long double __x, long double __y) { return __builtin_fmaxl(__x, __y); } constexpr float fmin(float __x, float __y) { return __builtin_fminf(__x, __y); } constexpr long double fmin(long double __x, long double __y) { return __builtin_fminl(__x, __y); } constexpr float hypot(float __x, float __y) { return __builtin_hypotf(__x, __y); } constexpr long double hypot(long double __x, long double __y) { return __builtin_hypotl(__x, __y); } constexpr int ilogb(float __x) { return __builtin_ilogbf(__x); } constexpr int ilogb(long double __x) { return __builtin_ilogbl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, int>::__type ilogb(_Tp __x) { return __builtin_ilogb(__x); } constexpr float lgamma(float __x) { return __builtin_lgammaf(__x); } constexpr long double lgamma(long double __x) { return __builtin_lgammal(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type lgamma(_Tp __x) { return __builtin_lgamma(__x); } constexpr long long llrint(float __x) { return __builtin_llrintf(__x); } constexpr long long llrint(long double __x) { return __builtin_llrintl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long long>::__type llrint(_Tp __x) { return __builtin_llrint(__x); } constexpr long long llround(float __x) { return __builtin_llroundf(__x); } constexpr long long llround(long double __x) { return __builtin_llroundl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long long>::__type llround(_Tp __x) { return __builtin_llround(__x); } constexpr float log1p(float __x) { return __builtin_log1pf(__x); } constexpr long double log1p(long double __x) { return __builtin_log1pl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log1p(_Tp __x) { return __builtin_log1p(__x); } constexpr float log2(float __x) { return __builtin_log2f(__x); } constexpr long double log2(long double __x) { return __builtin_log2l(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type log2(_Tp __x) { return __builtin_log2(__x); } constexpr float logb(float __x) { return __builtin_logbf(__x); } constexpr long double logb(long double __x) { return __builtin_logbl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type logb(_Tp __x) { return __builtin_logb(__x); } constexpr long lrint(float __x) { return __builtin_lrintf(__x); } constexpr long lrint(long double __x) { return __builtin_lrintl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long>::__type lrint(_Tp __x) { return __builtin_lrint(__x); } constexpr long lround(float __x) { return __builtin_lroundf(__x); } constexpr long lround(long double __x) { return __builtin_lroundl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, long>::__type lround(_Tp __x) { return __builtin_lround(__x); } constexpr float nearbyint(float __x) { return __builtin_nearbyintf(__x); } constexpr long double nearbyint(long double __x) { return __builtin_nearbyintl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type nearbyint(_Tp __x) { return __builtin_nearbyint(__x); } constexpr float nextafter(float __x, float __y) { return __builtin_nextafterf(__x, __y); } constexpr long double nextafter(long double __x, long double __y) { return __builtin_nextafterl(__x, __y); } constexpr float nexttoward(float __x, long double __y) { return __builtin_nexttowardf(__x, __y); } constexpr long double nexttoward(long double __x, long double __y) { return __builtin_nexttowardl(__x, __y); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type nexttoward(_Tp __x, long double __y) { return __builtin_nexttoward(__x, __y); } constexpr float remainder(float __x, float __y) { return __builtin_remainderf(__x, __y); } constexpr long double remainder(long double __x, long double __y) { return __builtin_remainderl(__x, __y); } inline float remquo(float __x, float __y, int* __pquo) { return __builtin_remquof(__x, __y, __pquo); } inline long double remquo(long double __x, long double __y, int* __pquo) { return __builtin_remquol(__x, __y, __pquo); } constexpr float rint(float __x) { return __builtin_rintf(__x); } constexpr long double rint(long double __x) { return __builtin_rintl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type rint(_Tp __x) { return __builtin_rint(__x); } constexpr float round(float __x) { return __builtin_roundf(__x); } constexpr long double round(long double __x) { return __builtin_roundl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type round(_Tp __x) { return __builtin_round(__x); } constexpr float scalbln(float __x, long __ex) { return __builtin_scalblnf(__x, __ex); } constexpr long double scalbln(long double __x, long __ex) { return __builtin_scalblnl(__x, __ex); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type scalbln(_Tp __x, long __ex) { return __builtin_scalbln(__x, __ex); } constexpr float scalbn(float __x, int __ex) { return __builtin_scalbnf(__x, __ex); } constexpr long double scalbn(long double __x, int __ex) { return __builtin_scalbnl(__x, __ex); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type scalbn(_Tp __x, int __ex) { return __builtin_scalbn(__x, __ex); } constexpr float tgamma(float __x) { return __builtin_tgammaf(__x); } constexpr long double tgamma(long double __x) { return __builtin_tgammal(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type tgamma(_Tp __x) { return __builtin_tgamma(__x); } constexpr float trunc(float __x) { return __builtin_truncf(__x); } constexpr long double trunc(long double __x) { return __builtin_truncl(__x); } template<typename _Tp> constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value, double>::__type trunc(_Tp __x) { return __builtin_trunc(__x); } # 3469 "/usr/include/c++/13/cmath" 3 template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type copysign(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return copysign(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fdim(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fdim(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmax(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmax(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type fmin(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return fmin(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type hypot(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return hypot(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type nextafter(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return nextafter(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type remainder(_Tp __x, _Up __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return remainder(__type(__x), __type(__y)); } template<typename _Tp, typename _Up> inline typename __gnu_cxx::__promote_2<_Tp, _Up>::__type remquo(_Tp __x, _Up __y, int* __pquo) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return remquo(__type(__x), __type(__y), __pquo); } template<typename _Tp, typename _Up, typename _Vp> constexpr typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type fma(_Tp __x, _Up __y, _Vp __z) { typedef typename __gnu_cxx::__promote_3<_Tp, _Up, _Vp>::__type __type; return fma(__type(__x), __type(__y), __type(__z)); } # 3550 "/usr/include/c++/13/cmath" 3 template<typename _Tp> inline _Tp __hypot3(_Tp __x, _Tp __y, _Tp __z) { __x = std::abs(__x); __y = std::abs(__y); __z = std::abs(__z); if (_Tp __a = __x < __y ? __y < __z ? __z : __y : __x < __z ? __z : __x) return __a * std::sqrt((__x / __a) * (__x / __a) + (__y / __a) * (__y / __a) + (__z / __a) * (__z / __a)); else return {}; } inline float hypot(float __x, float __y, float __z) { return std::__hypot3<float>(__x, __y, __z); } inline double hypot(double __x, double __y, double __z) { return std::__hypot3<double>(__x, __y, __z); } inline long double hypot(long double __x, long double __y, long double __z) { return std::__hypot3<long double>(__x, __y, __z); } template<typename _Tp, typename _Up, typename _Vp> __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> hypot(_Tp __x, _Up __y, _Vp __z) { using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; return std::__hypot3<__type>(__x, __y, __z); } # 3623 "/usr/include/c++/13/cmath" 3 template<typename _Fp> constexpr _Fp __lerp(_Fp __a, _Fp __b, _Fp __t) noexcept { if ((__a <= 0 && __b >= 0) || (__a >= 0 && __b <= 0)) return __t * __b + (1 - __t) * __a; if (__t == 1) return __b; const _Fp __x = __a + __t * (__b - __a); return (__t > 1) == (__b > __a) ? (__b < __x ? __x : __b) : (__b > __x ? __x : __b); } constexpr float lerp(float __a, float __b, float __t) noexcept { return std::__lerp(__a, __b, __t); } constexpr double lerp(double __a, double __b, double __t) noexcept { return std::__lerp(__a, __b, __t); } constexpr long double lerp(long double __a, long double __b, long double __t) noexcept { return std::__lerp(__a, __b, __t); } template<typename _Tp, typename _Up, typename _Vp> constexpr __gnu_cxx::__promoted_t<_Tp, _Up, _Vp> lerp(_Tp __x, _Up __y, _Vp __z) noexcept { using __type = __gnu_cxx::__promoted_t<_Tp, _Up, _Vp>; return std::__lerp<__type>(__x, __y, __z); } # 3695 "/usr/include/c++/13/cmath" 3 } # 1 "/usr/include/c++/13/bits/specfun.h" 1 3 # 47 "/usr/include/c++/13/bits/specfun.h" 3 # 1 "/usr/include/c++/13/tr1/gamma.tcc" 1 3 # 49 "/usr/include/c++/13/tr1/gamma.tcc" 3 # 1 "/usr/include/c++/13/tr1/special_function_util.h" 1 3 # 39 "/usr/include/c++/13/tr1/special_function_util.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 50 "/usr/include/c++/13/tr1/special_function_util.h" 3 namespace __detail { template<typename _Tp> struct __floating_point_constant { static const _Tp __value; }; template<typename _Tp> struct __numeric_constants { static _Tp __pi() throw() { return static_cast<_Tp>(3.1415926535897932384626433832795029L); } static _Tp __pi_2() throw() { return static_cast<_Tp>(1.5707963267948966192313216916397514L); } static _Tp __pi_3() throw() { return static_cast<_Tp>(1.0471975511965977461542144610931676L); } static _Tp __pi_4() throw() { return static_cast<_Tp>(0.7853981633974483096156608458198757L); } static _Tp __1_pi() throw() { return static_cast<_Tp>(0.3183098861837906715377675267450287L); } static _Tp __2_sqrtpi() throw() { return static_cast<_Tp>(1.1283791670955125738961589031215452L); } static _Tp __sqrt2() throw() { return static_cast<_Tp>(1.4142135623730950488016887242096981L); } static _Tp __sqrt3() throw() { return static_cast<_Tp>(1.7320508075688772935274463415058723L); } static _Tp __sqrtpio2() throw() { return static_cast<_Tp>(1.2533141373155002512078826424055226L); } static _Tp __sqrt1_2() throw() { return static_cast<_Tp>(0.7071067811865475244008443621048490L); } static _Tp __lnpi() throw() { return static_cast<_Tp>(1.1447298858494001741434273513530587L); } static _Tp __gamma_e() throw() { return static_cast<_Tp>(0.5772156649015328606065120900824024L); } static _Tp __euler() throw() { return static_cast<_Tp>(2.7182818284590452353602874713526625L); } }; # 114 "/usr/include/c++/13/tr1/special_function_util.h" 3 template<typename _Tp> inline bool __isnan(_Tp __x) { return std::isnan(__x); } # 133 "/usr/include/c++/13/tr1/special_function_util.h" 3 } } # 50 "/usr/include/c++/13/tr1/gamma.tcc" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/13/tr1/gamma.tcc" 3 namespace __detail { # 76 "/usr/include/c++/13/tr1/gamma.tcc" 3 template <typename _Tp> _Tp __bernoulli_series(unsigned int __n) { static const _Tp __num[28] = { _Tp(1UL), -_Tp(1UL) / _Tp(2UL), _Tp(1UL) / _Tp(6UL), _Tp(0UL), -_Tp(1UL) / _Tp(30UL), _Tp(0UL), _Tp(1UL) / _Tp(42UL), _Tp(0UL), -_Tp(1UL) / _Tp(30UL), _Tp(0UL), _Tp(5UL) / _Tp(66UL), _Tp(0UL), -_Tp(691UL) / _Tp(2730UL), _Tp(0UL), _Tp(7UL) / _Tp(6UL), _Tp(0UL), -_Tp(3617UL) / _Tp(510UL), _Tp(0UL), _Tp(43867UL) / _Tp(798UL), _Tp(0UL), -_Tp(174611) / _Tp(330UL), _Tp(0UL), _Tp(854513UL) / _Tp(138UL), _Tp(0UL), -_Tp(236364091UL) / _Tp(2730UL), _Tp(0UL), _Tp(8553103UL) / _Tp(6UL), _Tp(0UL) }; if (__n == 0) return _Tp(1); if (__n == 1) return -_Tp(1) / _Tp(2); if (__n % 2 == 1) return _Tp(0); if (__n < 28) return __num[__n]; _Tp __fact = _Tp(1); if ((__n / 2) % 2 == 0) __fact *= _Tp(-1); for (unsigned int __k = 1; __k <= __n; ++__k) __fact *= __k / (_Tp(2) * __numeric_constants<_Tp>::__pi()); __fact *= _Tp(2); _Tp __sum = _Tp(0); for (unsigned int __i = 1; __i < 1000; ++__i) { _Tp __term = std::pow(_Tp(__i), -_Tp(__n)); if (__term < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term; } return __fact * __sum; } # 139 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> inline _Tp __bernoulli(int __n) { return __bernoulli_series<_Tp>(__n); } # 153 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __log_gamma_bernoulli(_Tp __x) { _Tp __lg = (__x - _Tp(0.5L)) * std::log(__x) - __x + _Tp(0.5L) * std::log(_Tp(2) * __numeric_constants<_Tp>::__pi()); const _Tp __xx = __x * __x; _Tp __help = _Tp(1) / __x; for ( unsigned int __i = 1; __i < 20; ++__i ) { const _Tp __2i = _Tp(2 * __i); __help /= __2i * (__2i - _Tp(1)) * __xx; __lg += __bernoulli<_Tp>(2 * __i) * __help; } return __lg; } # 181 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __log_gamma_lanczos(_Tp __x) { const _Tp __xm1 = __x - _Tp(1); static const _Tp __lanczos_cheb_7[9] = { _Tp( 0.99999999999980993227684700473478L), _Tp( 676.520368121885098567009190444019L), _Tp(-1259.13921672240287047156078755283L), _Tp( 771.3234287776530788486528258894L), _Tp(-176.61502916214059906584551354L), _Tp( 12.507343278686904814458936853L), _Tp(-0.13857109526572011689554707L), _Tp( 9.984369578019570859563e-6L), _Tp( 1.50563273514931155834e-7L) }; static const _Tp __LOGROOT2PI = _Tp(0.9189385332046727417803297364056176L); _Tp __sum = __lanczos_cheb_7[0]; for(unsigned int __k = 1; __k < 9; ++__k) __sum += __lanczos_cheb_7[__k] / (__xm1 + __k); const _Tp __term1 = (__xm1 + _Tp(0.5L)) * std::log((__xm1 + _Tp(7.5L)) / __numeric_constants<_Tp>::__euler()); const _Tp __term2 = __LOGROOT2PI + std::log(__sum); const _Tp __result = __term1 + (__term2 - _Tp(7)); return __result; } # 225 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __log_gamma(_Tp __x) { if (__x > _Tp(0.5L)) return __log_gamma_lanczos(__x); else { const _Tp __sin_fact = std::abs(std::sin(__numeric_constants<_Tp>::__pi() * __x)); if (__sin_fact == _Tp(0)) std::__throw_domain_error(("Argument is nonpositive integer " "in __log_gamma") ); return __numeric_constants<_Tp>::__lnpi() - std::log(__sin_fact) - __log_gamma_lanczos(_Tp(1) - __x); } } # 252 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __log_gamma_sign(_Tp __x) { if (__x > _Tp(0)) return _Tp(1); else { const _Tp __sin_fact = std::sin(__numeric_constants<_Tp>::__pi() * __x); if (__sin_fact > _Tp(0)) return (1); else if (__sin_fact < _Tp(0)) return -_Tp(1); else return _Tp(0); } } # 283 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __log_bincoef(unsigned int __n, unsigned int __k) { static const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); _Tp __coeff = ::std::lgamma(_Tp(1 + __n)) - ::std::lgamma(_Tp(1 + __k)) - ::std::lgamma(_Tp(1 + __n - __k)); } # 314 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __bincoef(unsigned int __n, unsigned int __k) { static const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); const _Tp __log_coeff = __log_bincoef<_Tp>(__n, __k); if (__log_coeff > __max_bincoeff) return std::numeric_limits<_Tp>::quiet_NaN(); else return std::exp(__log_coeff); } # 337 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> inline _Tp __gamma(_Tp __x) { return std::exp(__log_gamma(__x)); } # 356 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __psi_series(_Tp __x) { _Tp __sum = -__numeric_constants<_Tp>::__gamma_e() - _Tp(1) / __x; const unsigned int __max_iter = 100000; for (unsigned int __k = 1; __k < __max_iter; ++__k) { const _Tp __term = __x / (__k * (__k + __x)); __sum += __term; if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) break; } return __sum; } # 386 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __psi_asymp(_Tp __x) { _Tp __sum = std::log(__x) - _Tp(0.5L) / __x; const _Tp __xx = __x * __x; _Tp __xp = __xx; const unsigned int __max_iter = 100; for (unsigned int __k = 1; __k < __max_iter; ++__k) { const _Tp __term = __bernoulli<_Tp>(2 * __k) / (2 * __k * __xp); __sum -= __term; if (std::abs(__term / __sum) < std::numeric_limits<_Tp>::epsilon()) break; __xp *= __xx; } return __sum; } # 417 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __psi(_Tp __x) { const int __n = static_cast<int>(__x + 0.5L); const _Tp __eps = _Tp(4) * std::numeric_limits<_Tp>::epsilon(); if (__n <= 0 && std::abs(__x - _Tp(__n)) < __eps) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x < _Tp(0)) { const _Tp __pi = __numeric_constants<_Tp>::__pi(); return __psi(_Tp(1) - __x) - __pi * std::cos(__pi * __x) / std::sin(__pi * __x); } else if (__x > _Tp(100)) return __psi_asymp(__x); else return __psi_series(__x); } # 446 "/usr/include/c++/13/tr1/gamma.tcc" 3 template<typename _Tp> _Tp __psi(unsigned int __n, _Tp __x) { if (__x <= _Tp(0)) std::__throw_domain_error(("Argument out of range " "in __psi") ); else if (__n == 0) return __psi(__x); else { const _Tp __hzeta = __hurwitz_zeta(_Tp(__n + 1), __x); const _Tp __ln_nfact = ::std::lgamma(_Tp(__n + 1)); _Tp __result = std::exp(__ln_nfact) * __hzeta; if (__n % 2 == 1) __result = -__result; return __result; } } } } # 48 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/bessel_function.tcc" 1 3 # 55 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 71 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 namespace __detail { # 98 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> void __gamma_temme(_Tp __mu, _Tp & __gam1, _Tp & __gam2, _Tp & __gampl, _Tp & __gammi) { __gampl = _Tp(1) / ::std::tgamma(_Tp(1) + __mu); __gammi = _Tp(1) / ::std::tgamma(_Tp(1) - __mu); if (std::abs(__mu) < std::numeric_limits<_Tp>::epsilon()) __gam1 = -_Tp(__numeric_constants<_Tp>::__gamma_e()); else __gam1 = (__gammi - __gampl) / (_Tp(2) * __mu); __gam2 = (__gammi + __gampl) / (_Tp(2)); return; } # 136 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> void __bessel_jn(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu, _Tp & __Jpnu, _Tp & __Npnu) { if (__x == _Tp(0)) { if (__nu == _Tp(0)) { __Jnu = _Tp(1); __Jpnu = _Tp(0); } else if (__nu == _Tp(1)) { __Jnu = _Tp(0); __Jpnu = _Tp(0.5L); } else { __Jnu = _Tp(0); __Jpnu = _Tp(0); } __Nnu = -std::numeric_limits<_Tp>::infinity(); __Npnu = std::numeric_limits<_Tp>::infinity(); return; } const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __fp_min = std::sqrt(std::numeric_limits<_Tp>::min()); const int __max_iter = 15000; const _Tp __x_min = _Tp(2); const int __nl = (__x < __x_min ? static_cast<int>(__nu + _Tp(0.5L)) : std::max(0, static_cast<int>(__nu - __x + _Tp(1.5L)))); const _Tp __mu = __nu - __nl; const _Tp __mu2 = __mu * __mu; const _Tp __xi = _Tp(1) / __x; const _Tp __xi2 = _Tp(2) * __xi; _Tp __w = __xi2 / __numeric_constants<_Tp>::__pi(); int __isign = 1; _Tp __h = __nu * __xi; if (__h < __fp_min) __h = __fp_min; _Tp __b = __xi2 * __nu; _Tp __d = _Tp(0); _Tp __c = __h; int __i; for (__i = 1; __i <= __max_iter; ++__i) { __b += __xi2; __d = __b - __d; if (std::abs(__d) < __fp_min) __d = __fp_min; __c = __b - _Tp(1) / __c; if (std::abs(__c) < __fp_min) __c = __fp_min; __d = _Tp(1) / __d; const _Tp __del = __c * __d; __h *= __del; if (__d < _Tp(0)) __isign = -__isign; if (std::abs(__del - _Tp(1)) < __eps) break; } if (__i > __max_iter) std::__throw_runtime_error(("Argument x too large in __bessel_jn; " "try asymptotic expansion.") ); _Tp __Jnul = __isign * __fp_min; _Tp __Jpnul = __h * __Jnul; _Tp __Jnul1 = __Jnul; _Tp __Jpnu1 = __Jpnul; _Tp __fact = __nu * __xi; for ( int __l = __nl; __l >= 1; --__l ) { const _Tp __Jnutemp = __fact * __Jnul + __Jpnul; __fact -= __xi; __Jpnul = __fact * __Jnutemp - __Jnul; __Jnul = __Jnutemp; } if (__Jnul == _Tp(0)) __Jnul = __eps; _Tp __f= __Jpnul / __Jnul; _Tp __Nmu, __Nnu1, __Npmu, __Jmu; if (__x < __x_min) { const _Tp __x2 = __x / _Tp(2); const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; _Tp __fact = (std::abs(__pimu) < __eps ? _Tp(1) : __pimu / std::sin(__pimu)); _Tp __d = -std::log(__x2); _Tp __e = __mu * __d; _Tp __fact2 = (std::abs(__e) < __eps ? _Tp(1) : std::sinh(__e) / __e); _Tp __gam1, __gam2, __gampl, __gammi; __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); _Tp __ff = (_Tp(2) / __numeric_constants<_Tp>::__pi()) * __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); __e = std::exp(__e); _Tp __p = __e / (__numeric_constants<_Tp>::__pi() * __gampl); _Tp __q = _Tp(1) / (__e * __numeric_constants<_Tp>::__pi() * __gammi); const _Tp __pimu2 = __pimu / _Tp(2); _Tp __fact3 = (std::abs(__pimu2) < __eps ? _Tp(1) : std::sin(__pimu2) / __pimu2 ); _Tp __r = __numeric_constants<_Tp>::__pi() * __pimu2 * __fact3 * __fact3; _Tp __c = _Tp(1); __d = -__x2 * __x2; _Tp __sum = __ff + __r * __q; _Tp __sum1 = __p; for (__i = 1; __i <= __max_iter; ++__i) { __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); __c *= __d / _Tp(__i); __p /= _Tp(__i) - __mu; __q /= _Tp(__i) + __mu; const _Tp __del = __c * (__ff + __r * __q); __sum += __del; const _Tp __del1 = __c * __p - __i * __del; __sum1 += __del1; if ( std::abs(__del) < __eps * (_Tp(1) + std::abs(__sum)) ) break; } if ( __i > __max_iter ) std::__throw_runtime_error(("Bessel y series failed to converge " "in __bessel_jn.") ); __Nmu = -__sum; __Nnu1 = -__sum1 * __xi2; __Npmu = __mu * __xi * __Nmu - __Nnu1; __Jmu = __w / (__Npmu - __f * __Nmu); } else { _Tp __a = _Tp(0.25L) - __mu2; _Tp __q = _Tp(1); _Tp __p = -__xi / _Tp(2); _Tp __br = _Tp(2) * __x; _Tp __bi = _Tp(2); _Tp __fact = __a * __xi / (__p * __p + __q * __q); _Tp __cr = __br + __q * __fact; _Tp __ci = __bi + __p * __fact; _Tp __den = __br * __br + __bi * __bi; _Tp __dr = __br / __den; _Tp __di = -__bi / __den; _Tp __dlr = __cr * __dr - __ci * __di; _Tp __dli = __cr * __di + __ci * __dr; _Tp __temp = __p * __dlr - __q * __dli; __q = __p * __dli + __q * __dlr; __p = __temp; int __i; for (__i = 2; __i <= __max_iter; ++__i) { __a += _Tp(2 * (__i - 1)); __bi += _Tp(2); __dr = __a * __dr + __br; __di = __a * __di + __bi; if (std::abs(__dr) + std::abs(__di) < __fp_min) __dr = __fp_min; __fact = __a / (__cr * __cr + __ci * __ci); __cr = __br + __cr * __fact; __ci = __bi - __ci * __fact; if (std::abs(__cr) + std::abs(__ci) < __fp_min) __cr = __fp_min; __den = __dr * __dr + __di * __di; __dr /= __den; __di /= -__den; __dlr = __cr * __dr - __ci * __di; __dli = __cr * __di + __ci * __dr; __temp = __p * __dlr - __q * __dli; __q = __p * __dli + __q * __dlr; __p = __temp; if (std::abs(__dlr - _Tp(1)) + std::abs(__dli) < __eps) break; } if (__i > __max_iter) std::__throw_runtime_error(("Lentz's method failed " "in __bessel_jn.") ); const _Tp __gam = (__p - __f) / __q; __Jmu = std::sqrt(__w / ((__p - __f) * __gam + __q)); __Jmu = ::std::copysign(__Jmu, __Jnul); __Nmu = __gam * __Jmu; __Npmu = (__p + __q / __gam) * __Nmu; __Nnu1 = __mu * __xi * __Nmu - __Npmu; } __fact = __Jmu / __Jnul; __Jnu = __fact * __Jnul1; __Jpnu = __fact * __Jpnu1; for (__i = 1; __i <= __nl; ++__i) { const _Tp __Nnutemp = (__mu + __i) * __xi2 * __Nnu1 - __Nmu; __Nmu = __Nnu1; __Nnu1 = __Nnutemp; } __Nnu = __Nmu; __Npnu = __nu * __xi * __Nmu - __Nnu1; return; } # 361 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> void __cyl_bessel_jn_asymp(_Tp __nu, _Tp __x, _Tp & __Jnu, _Tp & __Nnu) { const _Tp __mu = _Tp(4) * __nu * __nu; const _Tp __8x = _Tp(8) * __x; _Tp __P = _Tp(0); _Tp __Q = _Tp(0); _Tp __k = _Tp(0); _Tp __term = _Tp(1); int __epsP = 0; int __epsQ = 0; _Tp __eps = std::numeric_limits<_Tp>::epsilon(); do { __term *= (__k == 0 ? _Tp(1) : -(__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x)); __epsP = std::abs(__term) < __eps * std::abs(__P); __P += __term; __k++; __term *= (__mu - (2 * __k - 1) * (2 * __k - 1)) / (__k * __8x); __epsQ = std::abs(__term) < __eps * std::abs(__Q); __Q += __term; if (__epsP && __epsQ && __k > (__nu / 2.)) break; __k++; } while (__k < 1000); const _Tp __chi = __x - (__nu + _Tp(0.5L)) * __numeric_constants<_Tp>::__pi_2(); const _Tp __c = std::cos(__chi); const _Tp __s = std::sin(__chi); const _Tp __coef = std::sqrt(_Tp(2) / (__numeric_constants<_Tp>::__pi() * __x)); __Jnu = __coef * (__c * __P - __s * __Q); __Nnu = __coef * (__s * __P + __c * __Q); return; } # 444 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> _Tp __cyl_bessel_ij_series(_Tp __nu, _Tp __x, _Tp __sgn, unsigned int __max_iter) { if (__x == _Tp(0)) return __nu == _Tp(0) ? _Tp(1) : _Tp(0); const _Tp __x2 = __x / _Tp(2); _Tp __fact = __nu * std::log(__x2); __fact -= ::std::lgamma(__nu + _Tp(1)); __fact = std::exp(__fact); const _Tp __xx4 = __sgn * __x2 * __x2; _Tp __Jn = _Tp(1); _Tp __term = _Tp(1); for (unsigned int __i = 1; __i < __max_iter; ++__i) { __term *= __xx4 / (_Tp(__i) * (__nu + _Tp(__i))); __Jn += __term; if (std::abs(__term / __Jn) < std::numeric_limits<_Tp>::epsilon()) break; } return __fact * __Jn; } # 490 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template<typename _Tp> _Tp __cyl_bessel_j(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_bessel_j.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) return __cyl_bessel_ij_series(__nu, __x, -_Tp(1), 200); else if (__x > _Tp(1000)) { _Tp __J_nu, __N_nu; __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); return __J_nu; } else { _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); return __J_nu; } } # 532 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template<typename _Tp> _Tp __cyl_neumann_n(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_neumann_n.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x > _Tp(1000)) { _Tp __J_nu, __N_nu; __cyl_bessel_jn_asymp(__nu, __x, __J_nu, __N_nu); return __N_nu; } else { _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); return __N_nu; } } # 569 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> void __sph_bessel_jn(unsigned int __n, _Tp __x, _Tp & __j_n, _Tp & __n_n, _Tp & __jp_n, _Tp & __np_n) { const _Tp __nu = _Tp(__n) + _Tp(0.5L); _Tp __J_nu, __N_nu, __Jp_nu, __Np_nu; __bessel_jn(__nu, __x, __J_nu, __N_nu, __Jp_nu, __Np_nu); const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() / std::sqrt(__x); __j_n = __factor * __J_nu; __n_n = __factor * __N_nu; __jp_n = __factor * __Jp_nu - __j_n / (_Tp(2) * __x); __np_n = __factor * __Np_nu - __n_n / (_Tp(2) * __x); return; } # 604 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> _Tp __sph_bessel(unsigned int __n, _Tp __x) { if (__x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __sph_bessel.") ); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x == _Tp(0)) { if (__n == 0) return _Tp(1); else return _Tp(0); } else { _Tp __j_n, __n_n, __jp_n, __np_n; __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); return __j_n; } } # 642 "/usr/include/c++/13/tr1/bessel_function.tcc" 3 template <typename _Tp> _Tp __sph_neumann(unsigned int __n, _Tp __x) { if (__x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __sph_neumann.") ); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x == _Tp(0)) return -std::numeric_limits<_Tp>::infinity(); else { _Tp __j_n, __n_n, __jp_n, __np_n; __sph_bessel_jn(__n, __x, __j_n, __n_n, __jp_n, __np_n); return __n_n; } } } } # 49 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/beta_function.tcc" 1 3 # 49 "/usr/include/c++/13/tr1/beta_function.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/13/tr1/beta_function.tcc" 3 namespace __detail { # 79 "/usr/include/c++/13/tr1/beta_function.tcc" 3 template<typename _Tp> _Tp __beta_gamma(_Tp __x, _Tp __y) { _Tp __bet; if (__x > __y) { __bet = ::std::tgamma(__x) / ::std::tgamma(__x + __y); __bet *= ::std::tgamma(__y); } else { __bet = ::std::tgamma(__y) / ::std::tgamma(__x + __y); __bet *= ::std::tgamma(__x); } # 111 "/usr/include/c++/13/tr1/beta_function.tcc" 3 return __bet; } # 127 "/usr/include/c++/13/tr1/beta_function.tcc" 3 template<typename _Tp> _Tp __beta_lgamma(_Tp __x, _Tp __y) { _Tp __bet = ::std::lgamma(__x) + ::std::lgamma(__y) - ::std::lgamma(__x + __y); __bet = std::exp(__bet); return __bet; } # 158 "/usr/include/c++/13/tr1/beta_function.tcc" 3 template<typename _Tp> _Tp __beta_product(_Tp __x, _Tp __y) { _Tp __bet = (__x + __y) / (__x * __y); unsigned int __max_iter = 1000000; for (unsigned int __k = 1; __k < __max_iter; ++__k) { _Tp __term = (_Tp(1) + (__x + __y) / __k) / ((_Tp(1) + __x / __k) * (_Tp(1) + __y / __k)); __bet *= __term; } return __bet; } # 189 "/usr/include/c++/13/tr1/beta_function.tcc" 3 template<typename _Tp> inline _Tp __beta(_Tp __x, _Tp __y) { if (__isnan(__x) || __isnan(__y)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __beta_lgamma(__x, __y); } } } # 50 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/ell_integral.tcc" 1 3 # 45 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 59 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 namespace __detail { # 76 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_rf(_Tp __x, _Tp __y, _Tp __z) { const _Tp __min = std::numeric_limits<_Tp>::min(); const _Tp __lolim = _Tp(5) * __min; if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) std::__throw_domain_error(("Argument less than zero " "in __ellint_rf.") ); else if (__x + __y < __lolim || __x + __z < __lolim || __y + __z < __lolim) std::__throw_domain_error(("Argument too small in __ellint_rf")); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(1) / _Tp(24); const _Tp __c2 = _Tp(1) / _Tp(10); const _Tp __c3 = _Tp(3) / _Tp(44); const _Tp __c4 = _Tp(1) / _Tp(14); _Tp __xn = __x; _Tp __yn = __y; _Tp __zn = __z; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps, _Tp(1) / _Tp(6)); _Tp __mu; _Tp __xndev, __yndev, __zndev; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + __yn + __zn) / _Tp(3); __xndev = 2 - (__mu + __xn) / __mu; __yndev = 2 - (__mu + __yn) / __mu; __zndev = 2 - (__mu + __zn) / __mu; _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); __epsilon = std::max(__epsilon, std::abs(__zndev)); if (__epsilon < __errtol) break; const _Tp __xnroot = std::sqrt(__xn); const _Tp __ynroot = std::sqrt(__yn); const _Tp __znroot = std::sqrt(__zn); const _Tp __lambda = __xnroot * (__ynroot + __znroot) + __ynroot * __znroot; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); __zn = __c0 * (__zn + __lambda); } const _Tp __e2 = __xndev * __yndev - __zndev * __zndev; const _Tp __e3 = __xndev * __yndev * __zndev; const _Tp __s = _Tp(1) + (__c1 * __e2 - __c2 - __c3 * __e3) * __e2 + __c4 * __e3; return __s / std::sqrt(__mu); } } # 153 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __comp_ellint_1_series(_Tp __k) { const _Tp __kk = __k * __k; _Tp __term = __kk / _Tp(4); _Tp __sum = _Tp(1) + __term; const unsigned int __max_iter = 1000; for (unsigned int __i = 2; __i < __max_iter; ++__i) { __term *= (2 * __i - 1) * __kk / (2 * __i); if (__term < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term; } return __numeric_constants<_Tp>::__pi_2() * __sum; } # 191 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __comp_ellint_1(_Tp __k) { if (__isnan(__k)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) >= _Tp(1)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __ellint_rf(_Tp(0), _Tp(1) - __k * __k, _Tp(1)); } # 219 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_1(_Tp __k, _Tp __phi) { if (__isnan(__k) || __isnan(__phi)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __ellint_1.")); else { const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() + _Tp(0.5L)); const _Tp __phi_red = __phi - __n * __numeric_constants<_Tp>::__pi(); const _Tp __s = std::sin(__phi_red); const _Tp __c = std::cos(__phi_red); const _Tp __F = __s * __ellint_rf(__c * __c, _Tp(1) - __k * __k * __s * __s, _Tp(1)); if (__n == 0) return __F; else return __F + _Tp(2) * __n * __comp_ellint_1(__k); } } # 266 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __comp_ellint_2_series(_Tp __k) { const _Tp __kk = __k * __k; _Tp __term = __kk; _Tp __sum = __term; const unsigned int __max_iter = 1000; for (unsigned int __i = 2; __i < __max_iter; ++__i) { const _Tp __i2m = 2 * __i - 1; const _Tp __i2 = 2 * __i; __term *= __i2m * __i2m * __kk / (__i2 * __i2); if (__term < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term / __i2m; } return __numeric_constants<_Tp>::__pi_2() * (_Tp(1) - __sum); } # 314 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_rd(_Tp __x, _Tp __y, _Tp __z) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); const _Tp __max = std::numeric_limits<_Tp>::max(); const _Tp __lolim = _Tp(2) / std::pow(__max, _Tp(2) / _Tp(3)); if (__x < _Tp(0) || __y < _Tp(0)) std::__throw_domain_error(("Argument less than zero " "in __ellint_rd.") ); else if (__x + __y < __lolim || __z < __lolim) std::__throw_domain_error(("Argument too small " "in __ellint_rd.") ); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(3) / _Tp(14); const _Tp __c2 = _Tp(1) / _Tp(6); const _Tp __c3 = _Tp(9) / _Tp(22); const _Tp __c4 = _Tp(3) / _Tp(26); _Tp __xn = __x; _Tp __yn = __y; _Tp __zn = __z; _Tp __sigma = _Tp(0); _Tp __power4 = _Tp(1); _Tp __mu; _Tp __xndev, __yndev, __zndev; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + __yn + _Tp(3) * __zn) / _Tp(5); __xndev = (__mu - __xn) / __mu; __yndev = (__mu - __yn) / __mu; __zndev = (__mu - __zn) / __mu; _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); __epsilon = std::max(__epsilon, std::abs(__zndev)); if (__epsilon < __errtol) break; _Tp __xnroot = std::sqrt(__xn); _Tp __ynroot = std::sqrt(__yn); _Tp __znroot = std::sqrt(__zn); _Tp __lambda = __xnroot * (__ynroot + __znroot) + __ynroot * __znroot; __sigma += __power4 / (__znroot * (__zn + __lambda)); __power4 *= __c0; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); __zn = __c0 * (__zn + __lambda); } _Tp __ea = __xndev * __yndev; _Tp __eb = __zndev * __zndev; _Tp __ec = __ea - __eb; _Tp __ed = __ea - _Tp(6) * __eb; _Tp __ef = __ed + __ec + __ec; _Tp __s1 = __ed * (-__c1 + __c3 * __ed / _Tp(3) - _Tp(3) * __c4 * __zndev * __ef / _Tp(2)); _Tp __s2 = __zndev * (__c2 * __ef + __zndev * (-__c3 * __ec - __zndev * __c4 - __ea)); return _Tp(3) * __sigma + __power4 * (_Tp(1) + __s1 + __s2) / (__mu * std::sqrt(__mu)); } } # 399 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __comp_ellint_2(_Tp __k) { if (__isnan(__k)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) == 1) return _Tp(1); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __comp_ellint_2.")); else { const _Tp __kk = __k * __k; return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) - __kk * __ellint_rd(_Tp(0), _Tp(1) - __kk, _Tp(1)) / _Tp(3); } } # 433 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_2(_Tp __k, _Tp __phi) { if (__isnan(__k) || __isnan(__phi)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __ellint_2.")); else { const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() + _Tp(0.5L)); const _Tp __phi_red = __phi - __n * __numeric_constants<_Tp>::__pi(); const _Tp __kk = __k * __k; const _Tp __s = std::sin(__phi_red); const _Tp __ss = __s * __s; const _Tp __sss = __ss * __s; const _Tp __c = std::cos(__phi_red); const _Tp __cc = __c * __c; const _Tp __E = __s * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) - __kk * __sss * __ellint_rd(__cc, _Tp(1) - __kk * __ss, _Tp(1)) / _Tp(3); if (__n == 0) return __E; else return __E + _Tp(2) * __n * __comp_ellint_2(__k); } } # 492 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_rc(_Tp __x, _Tp __y) { const _Tp __min = std::numeric_limits<_Tp>::min(); const _Tp __lolim = _Tp(5) * __min; if (__x < _Tp(0) || __y < _Tp(0) || __x + __y < __lolim) std::__throw_domain_error(("Argument less than zero " "in __ellint_rc.") ); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(1) / _Tp(7); const _Tp __c2 = _Tp(9) / _Tp(22); const _Tp __c3 = _Tp(3) / _Tp(10); const _Tp __c4 = _Tp(3) / _Tp(8); _Tp __xn = __x; _Tp __yn = __y; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps / _Tp(30), _Tp(1) / _Tp(6)); _Tp __mu; _Tp __sn; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + _Tp(2) * __yn) / _Tp(3); __sn = (__yn + __mu) / __mu - _Tp(2); if (std::abs(__sn) < __errtol) break; const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) + __yn; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); } _Tp __s = __sn * __sn * (__c3 + __sn*(__c1 + __sn * (__c4 + __sn * __c2))); return (_Tp(1) + __s) / std::sqrt(__mu); } } # 561 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_rj(_Tp __x, _Tp __y, _Tp __z, _Tp __p) { const _Tp __min = std::numeric_limits<_Tp>::min(); const _Tp __lolim = std::pow(_Tp(5) * __min, _Tp(1)/_Tp(3)); if (__x < _Tp(0) || __y < _Tp(0) || __z < _Tp(0)) std::__throw_domain_error(("Argument less than zero " "in __ellint_rj.") ); else if (__x + __y < __lolim || __x + __z < __lolim || __y + __z < __lolim || __p < __lolim) std::__throw_domain_error(("Argument too small " "in __ellint_rj") ); else { const _Tp __c0 = _Tp(1) / _Tp(4); const _Tp __c1 = _Tp(3) / _Tp(14); const _Tp __c2 = _Tp(1) / _Tp(3); const _Tp __c3 = _Tp(3) / _Tp(22); const _Tp __c4 = _Tp(3) / _Tp(26); _Tp __xn = __x; _Tp __yn = __y; _Tp __zn = __z; _Tp __pn = __p; _Tp __sigma = _Tp(0); _Tp __power4 = _Tp(1); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __errtol = std::pow(__eps / _Tp(8), _Tp(1) / _Tp(6)); _Tp __mu; _Tp __xndev, __yndev, __zndev, __pndev; const unsigned int __max_iter = 100; for (unsigned int __iter = 0; __iter < __max_iter; ++__iter) { __mu = (__xn + __yn + __zn + _Tp(2) * __pn) / _Tp(5); __xndev = (__mu - __xn) / __mu; __yndev = (__mu - __yn) / __mu; __zndev = (__mu - __zn) / __mu; __pndev = (__mu - __pn) / __mu; _Tp __epsilon = std::max(std::abs(__xndev), std::abs(__yndev)); __epsilon = std::max(__epsilon, std::abs(__zndev)); __epsilon = std::max(__epsilon, std::abs(__pndev)); if (__epsilon < __errtol) break; const _Tp __xnroot = std::sqrt(__xn); const _Tp __ynroot = std::sqrt(__yn); const _Tp __znroot = std::sqrt(__zn); const _Tp __lambda = __xnroot * (__ynroot + __znroot) + __ynroot * __znroot; const _Tp __alpha1 = __pn * (__xnroot + __ynroot + __znroot) + __xnroot * __ynroot * __znroot; const _Tp __alpha2 = __alpha1 * __alpha1; const _Tp __beta = __pn * (__pn + __lambda) * (__pn + __lambda); __sigma += __power4 * __ellint_rc(__alpha2, __beta); __power4 *= __c0; __xn = __c0 * (__xn + __lambda); __yn = __c0 * (__yn + __lambda); __zn = __c0 * (__zn + __lambda); __pn = __c0 * (__pn + __lambda); } _Tp __ea = __xndev * (__yndev + __zndev) + __yndev * __zndev; _Tp __eb = __xndev * __yndev * __zndev; _Tp __ec = __pndev * __pndev; _Tp __e2 = __ea - _Tp(3) * __ec; _Tp __e3 = __eb + _Tp(2) * __pndev * (__ea - __ec); _Tp __s1 = _Tp(1) + __e2 * (-__c1 + _Tp(3) * __c3 * __e2 / _Tp(4) - _Tp(3) * __c4 * __e3 / _Tp(2)); _Tp __s2 = __eb * (__c2 / _Tp(2) + __pndev * (-__c3 - __c3 + __pndev * __c4)); _Tp __s3 = __pndev * __ea * (__c2 - __pndev * __c3) - __c2 * __pndev * __ec; return _Tp(3) * __sigma + __power4 * (__s1 + __s2 + __s3) / (__mu * std::sqrt(__mu)); } } # 661 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __comp_ellint_3(_Tp __k, _Tp __nu) { if (__isnan(__k) || __isnan(__nu)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__nu == _Tp(1)) return std::numeric_limits<_Tp>::infinity(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __comp_ellint_3.")); else { const _Tp __kk = __k * __k; return __ellint_rf(_Tp(0), _Tp(1) - __kk, _Tp(1)) + __nu * __ellint_rj(_Tp(0), _Tp(1) - __kk, _Tp(1), _Tp(1) - __nu) / _Tp(3); } } # 701 "/usr/include/c++/13/tr1/ell_integral.tcc" 3 template<typename _Tp> _Tp __ellint_3(_Tp __k, _Tp __nu, _Tp __phi) { if (__isnan(__k) || __isnan(__nu) || __isnan(__phi)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (std::abs(__k) > _Tp(1)) std::__throw_domain_error(("Bad argument in __ellint_3.")); else { const int __n = std::floor(__phi / __numeric_constants<_Tp>::__pi() + _Tp(0.5L)); const _Tp __phi_red = __phi - __n * __numeric_constants<_Tp>::__pi(); const _Tp __kk = __k * __k; const _Tp __s = std::sin(__phi_red); const _Tp __ss = __s * __s; const _Tp __sss = __ss * __s; const _Tp __c = std::cos(__phi_red); const _Tp __cc = __c * __c; const _Tp __Pi = __s * __ellint_rf(__cc, _Tp(1) - __kk * __ss, _Tp(1)) + __nu * __sss * __ellint_rj(__cc, _Tp(1) - __kk * __ss, _Tp(1), _Tp(1) - __nu * __ss) / _Tp(3); if (__n == 0) return __Pi; else return __Pi + _Tp(2) * __n * __comp_ellint_3(__k, __nu); } } } } # 51 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/exp_integral.tcc" 1 3 # 50 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 64 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 namespace __detail { template<typename _Tp> _Tp __expint_E1(_Tp); # 81 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_E1_series(_Tp __x) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); _Tp __term = _Tp(1); _Tp __esum = _Tp(0); _Tp __osum = _Tp(0); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { __term *= - __x / __i; if (std::abs(__term) < __eps) break; if (__term >= _Tp(0)) __esum += __term / __i; else __osum += __term / __i; } return - __esum - __osum - __numeric_constants<_Tp>::__gamma_e() - std::log(__x); } # 118 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_E1_asymp(_Tp __x) { _Tp __term = _Tp(1); _Tp __esum = _Tp(1); _Tp __osum = _Tp(0); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { _Tp __prev = __term; __term *= - __i / __x; if (std::abs(__term) > std::abs(__prev)) break; if (__term >= _Tp(0)) __esum += __term; else __osum += __term; } return std::exp(- __x) * (__esum + __osum) / __x; } # 155 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_En_series(unsigned int __n, _Tp __x) { const unsigned int __max_iter = 1000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const int __nm1 = __n - 1; _Tp __ans = (__nm1 != 0 ? _Tp(1) / __nm1 : -std::log(__x) - __numeric_constants<_Tp>::__gamma_e()); _Tp __fact = _Tp(1); for (int __i = 1; __i <= __max_iter; ++__i) { __fact *= -__x / _Tp(__i); _Tp __del; if ( __i != __nm1 ) __del = -__fact / _Tp(__i - __nm1); else { _Tp __psi = -__numeric_constants<_Tp>::gamma_e(); for (int __ii = 1; __ii <= __nm1; ++__ii) __psi += _Tp(1) / _Tp(__ii); __del = __fact * (__psi - std::log(__x)); } __ans += __del; if (std::abs(__del) < __eps * std::abs(__ans)) return __ans; } std::__throw_runtime_error(("Series summation failed " "in __expint_En_series.") ); } # 201 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_En_cont_frac(unsigned int __n, _Tp __x) { const unsigned int __max_iter = 1000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __fp_min = std::numeric_limits<_Tp>::min(); const int __nm1 = __n - 1; _Tp __b = __x + _Tp(__n); _Tp __c = _Tp(1) / __fp_min; _Tp __d = _Tp(1) / __b; _Tp __h = __d; for ( unsigned int __i = 1; __i <= __max_iter; ++__i ) { _Tp __a = -_Tp(__i * (__nm1 + __i)); __b += _Tp(2); __d = _Tp(1) / (__a * __d + __b); __c = __b + __a / __c; const _Tp __del = __c * __d; __h *= __del; if (std::abs(__del - _Tp(1)) < __eps) { const _Tp __ans = __h * std::exp(-__x); return __ans; } } std::__throw_runtime_error(("Continued fraction failed " "in __expint_En_cont_frac.") ); } # 246 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_En_recursion(unsigned int __n, _Tp __x) { _Tp __En; _Tp __E1 = __expint_E1(__x); if (__x < _Tp(__n)) { __En = __E1; for (unsigned int __j = 2; __j < __n; ++__j) __En = (std::exp(-__x) - __x * __En) / _Tp(__j - 1); } else { __En = _Tp(1); const int __N = __n + 20; _Tp __save = _Tp(0); for (int __j = __N; __j > 0; --__j) { __En = (std::exp(-__x) - __j * __En) / __x; if (__j == __n) __save = __En; } _Tp __norm = __En / __E1; __En /= __norm; } return __En; } # 290 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_Ei_series(_Tp __x) { _Tp __term = _Tp(1); _Tp __sum = _Tp(0); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { __term *= __x / __i; __sum += __term / __i; if (__term < std::numeric_limits<_Tp>::epsilon() * __sum) break; } return __numeric_constants<_Tp>::__gamma_e() + __sum + std::log(__x); } # 321 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_Ei_asymp(_Tp __x) { _Tp __term = _Tp(1); _Tp __sum = _Tp(1); const unsigned int __max_iter = 1000; for (unsigned int __i = 1; __i < __max_iter; ++__i) { _Tp __prev = __term; __term *= __i / __x; if (__term < std::numeric_limits<_Tp>::epsilon()) break; if (__term >= __prev) break; __sum += __term; } return std::exp(__x) * __sum / __x; } # 354 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_Ei(_Tp __x) { if (__x < _Tp(0)) return -__expint_E1(-__x); else if (__x < -std::log(std::numeric_limits<_Tp>::epsilon())) return __expint_Ei_series(__x); else return __expint_Ei_asymp(__x); } # 378 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_E1(_Tp __x) { if (__x < _Tp(0)) return -__expint_Ei(-__x); else if (__x < _Tp(1)) return __expint_E1_series(__x); else if (__x < _Tp(100)) return __expint_En_cont_frac(1, __x); else return __expint_E1_asymp(__x); } # 408 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_asymp(unsigned int __n, _Tp __x) { _Tp __term = _Tp(1); _Tp __sum = _Tp(1); for (unsigned int __i = 1; __i <= __n; ++__i) { _Tp __prev = __term; __term *= -(__n - __i + 1) / __x; if (std::abs(__term) > std::abs(__prev)) break; __sum += __term; } return std::exp(-__x) * __sum / __x; } # 442 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint_large_n(unsigned int __n, _Tp __x) { const _Tp __xpn = __x + __n; const _Tp __xpn2 = __xpn * __xpn; _Tp __term = _Tp(1); _Tp __sum = _Tp(1); for (unsigned int __i = 1; __i <= __n; ++__i) { _Tp __prev = __term; __term *= (__n - 2 * (__i - 1) * __x) / __xpn2; if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) break; __sum += __term; } return std::exp(-__x) * __sum / __xpn; } # 476 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> _Tp __expint(unsigned int __n, _Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__n <= 1 && __x == _Tp(0)) return std::numeric_limits<_Tp>::infinity(); else { _Tp __E0 = std::exp(__x) / __x; if (__n == 0) return __E0; _Tp __E1 = __expint_E1(__x); if (__n == 1) return __E1; if (__x == _Tp(0)) return _Tp(1) / static_cast<_Tp>(__n - 1); _Tp __En = __expint_En_recursion(__n, __x); return __En; } } # 516 "/usr/include/c++/13/tr1/exp_integral.tcc" 3 template<typename _Tp> inline _Tp __expint(_Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __expint_Ei(__x); } } } # 52 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/hypergeometric.tcc" 1 3 # 44 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 60 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 namespace __detail { # 83 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 template<typename _Tp> _Tp __conf_hyperg_series(_Tp __a, _Tp __c, _Tp __x) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); _Tp __term = _Tp(1); _Tp __Fac = _Tp(1); const unsigned int __max_iter = 100000; unsigned int __i; for (__i = 0; __i < __max_iter; ++__i) { __term *= (__a + _Tp(__i)) * __x / ((__c + _Tp(__i)) * _Tp(1 + __i)); if (std::abs(__term) < __eps) { break; } __Fac += __term; } if (__i == __max_iter) std::__throw_runtime_error(("Series failed to converge " "in __conf_hyperg_series.") ); return __Fac; } # 120 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 template<typename _Tp> _Tp __conf_hyperg_luke(_Tp __a, _Tp __c, _Tp __xin) { const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); const int __nmax = 20000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __x = -__xin; const _Tp __x3 = __x * __x * __x; const _Tp __t0 = __a / __c; const _Tp __t1 = (__a + _Tp(1)) / (_Tp(2) * __c); const _Tp __t2 = (__a + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); _Tp __F = _Tp(1); _Tp __prec; _Tp __Bnm3 = _Tp(1); _Tp __Bnm2 = _Tp(1) + __t1 * __x; _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); _Tp __Anm3 = _Tp(1); _Tp __Anm2 = __Bnm2 - __t0 * __x; _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; int __n = 3; while(1) { _Tp __npam1 = _Tp(__n - 1) + __a; _Tp __npcm1 = _Tp(__n - 1) + __c; _Tp __npam2 = _Tp(__n - 2) + __a; _Tp __npcm2 = _Tp(__n - 2) + __c; _Tp __tnm1 = _Tp(2 * __n - 1); _Tp __tnm3 = _Tp(2 * __n - 3); _Tp __tnm5 = _Tp(2 * __n - 5); _Tp __F1 = (_Tp(__n - 2) - __a) / (_Tp(2) * __tnm3 * __npcm1); _Tp __F2 = (_Tp(__n) + __a) * __npam1 / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); _Tp __F3 = -__npam2 * __npam1 * (_Tp(__n - 2) - __a) / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); _Tp __E = -__npam1 * (_Tp(__n - 1) - __c) / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; _Tp __r = __An / __Bn; __prec = std::abs((__F - __r) / __F); __F = __r; if (__prec < __eps || __n > __nmax) break; if (std::abs(__An) > __big || std::abs(__Bn) > __big) { __An /= __big; __Bn /= __big; __Anm1 /= __big; __Bnm1 /= __big; __Anm2 /= __big; __Bnm2 /= __big; __Anm3 /= __big; __Bnm3 /= __big; } else if (std::abs(__An) < _Tp(1) / __big || std::abs(__Bn) < _Tp(1) / __big) { __An *= __big; __Bn *= __big; __Anm1 *= __big; __Bnm1 *= __big; __Anm2 *= __big; __Bnm2 *= __big; __Anm3 *= __big; __Bnm3 *= __big; } ++__n; __Bnm3 = __Bnm2; __Bnm2 = __Bnm1; __Bnm1 = __Bn; __Anm3 = __Anm2; __Anm2 = __Anm1; __Anm1 = __An; } if (__n >= __nmax) std::__throw_runtime_error(("Iteration failed to converge " "in __conf_hyperg_luke.") ); return __F; } # 227 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 template<typename _Tp> _Tp __conf_hyperg(_Tp __a, _Tp __c, _Tp __x) { const _Tp __c_nint = ::std::nearbyint(__c); if (__isnan(__a) || __isnan(__c) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__c_nint == __c && __c_nint <= 0) return std::numeric_limits<_Tp>::infinity(); else if (__a == _Tp(0)) return _Tp(1); else if (__c == __a) return std::exp(__x); else if (__x < _Tp(0)) return __conf_hyperg_luke(__a, __c, __x); else return __conf_hyperg_series(__a, __c, __x); } # 271 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 template<typename _Tp> _Tp __hyperg_series(_Tp __a, _Tp __b, _Tp __c, _Tp __x) { const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); _Tp __term = _Tp(1); _Tp __Fabc = _Tp(1); const unsigned int __max_iter = 100000; unsigned int __i; for (__i = 0; __i < __max_iter; ++__i) { __term *= (__a + _Tp(__i)) * (__b + _Tp(__i)) * __x / ((__c + _Tp(__i)) * _Tp(1 + __i)); if (std::abs(__term) < __eps) { break; } __Fabc += __term; } if (__i == __max_iter) std::__throw_runtime_error(("Series failed to converge " "in __hyperg_series.") ); return __Fabc; } template<typename _Tp> _Tp __hyperg_luke(_Tp __a, _Tp __b, _Tp __c, _Tp __xin) { const _Tp __big = std::pow(std::numeric_limits<_Tp>::max(), _Tp(0.16L)); const int __nmax = 20000; const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __x = -__xin; const _Tp __x3 = __x * __x * __x; const _Tp __t0 = __a * __b / __c; const _Tp __t1 = (__a + _Tp(1)) * (__b + _Tp(1)) / (_Tp(2) * __c); const _Tp __t2 = (__a + _Tp(2)) * (__b + _Tp(2)) / (_Tp(2) * (__c + _Tp(1))); _Tp __F = _Tp(1); _Tp __Bnm3 = _Tp(1); _Tp __Bnm2 = _Tp(1) + __t1 * __x; _Tp __Bnm1 = _Tp(1) + __t2 * __x * (_Tp(1) + __t1 / _Tp(3) * __x); _Tp __Anm3 = _Tp(1); _Tp __Anm2 = __Bnm2 - __t0 * __x; _Tp __Anm1 = __Bnm1 - __t0 * (_Tp(1) + __t2 * __x) * __x + __t0 * __t1 * (__c / (__c + _Tp(1))) * __x * __x; int __n = 3; while (1) { const _Tp __npam1 = _Tp(__n - 1) + __a; const _Tp __npbm1 = _Tp(__n - 1) + __b; const _Tp __npcm1 = _Tp(__n - 1) + __c; const _Tp __npam2 = _Tp(__n - 2) + __a; const _Tp __npbm2 = _Tp(__n - 2) + __b; const _Tp __npcm2 = _Tp(__n - 2) + __c; const _Tp __tnm1 = _Tp(2 * __n - 1); const _Tp __tnm3 = _Tp(2 * __n - 3); const _Tp __tnm5 = _Tp(2 * __n - 5); const _Tp __n2 = __n * __n; const _Tp __F1 = (_Tp(3) * __n2 + (__a + __b - _Tp(6)) * __n + _Tp(2) - __a * __b - _Tp(2) * (__a + __b)) / (_Tp(2) * __tnm3 * __npcm1); const _Tp __F2 = -(_Tp(3) * __n2 - (__a + __b + _Tp(6)) * __n + _Tp(2) - __a * __b) * __npam1 * __npbm1 / (_Tp(4) * __tnm1 * __tnm3 * __npcm2 * __npcm1); const _Tp __F3 = (__npam2 * __npam1 * __npbm2 * __npbm1 * (_Tp(__n - 2) - __a) * (_Tp(__n - 2) - __b)) / (_Tp(8) * __tnm3 * __tnm3 * __tnm5 * (_Tp(__n - 3) + __c) * __npcm2 * __npcm1); const _Tp __E = -__npam1 * __npbm1 * (_Tp(__n - 1) - __c) / (_Tp(2) * __tnm3 * __npcm2 * __npcm1); _Tp __An = (_Tp(1) + __F1 * __x) * __Anm1 + (__E + __F2 * __x) * __x * __Anm2 + __F3 * __x3 * __Anm3; _Tp __Bn = (_Tp(1) + __F1 * __x) * __Bnm1 + (__E + __F2 * __x) * __x * __Bnm2 + __F3 * __x3 * __Bnm3; const _Tp __r = __An / __Bn; const _Tp __prec = std::abs((__F - __r) / __F); __F = __r; if (__prec < __eps || __n > __nmax) break; if (std::abs(__An) > __big || std::abs(__Bn) > __big) { __An /= __big; __Bn /= __big; __Anm1 /= __big; __Bnm1 /= __big; __Anm2 /= __big; __Bnm2 /= __big; __Anm3 /= __big; __Bnm3 /= __big; } else if (std::abs(__An) < _Tp(1) / __big || std::abs(__Bn) < _Tp(1) / __big) { __An *= __big; __Bn *= __big; __Anm1 *= __big; __Bnm1 *= __big; __Anm2 *= __big; __Bnm2 *= __big; __Anm3 *= __big; __Bnm3 *= __big; } ++__n; __Bnm3 = __Bnm2; __Bnm2 = __Bnm1; __Bnm1 = __Bn; __Anm3 = __Anm2; __Anm2 = __Anm1; __Anm1 = __An; } if (__n >= __nmax) std::__throw_runtime_error(("Iteration failed to converge " "in __hyperg_luke.") ); return __F; } # 438 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 template<typename _Tp> _Tp __hyperg_reflect(_Tp __a, _Tp __b, _Tp __c, _Tp __x) { const _Tp __d = __c - __a - __b; const int __intd = std::floor(__d + _Tp(0.5L)); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __toler = _Tp(1000) * __eps; const _Tp __log_max = std::log(std::numeric_limits<_Tp>::max()); const bool __d_integer = (std::abs(__d - __intd) < __toler); if (__d_integer) { const _Tp __ln_omx = std::log(_Tp(1) - __x); const _Tp __ad = std::abs(__d); _Tp __F1, __F2; _Tp __d1, __d2; if (__d >= _Tp(0)) { __d1 = __d; __d2 = _Tp(0); } else { __d1 = _Tp(0); __d2 = __d; } const _Tp __lng_c = __log_gamma(__c); if (__ad < __eps) { __F1 = _Tp(0); } else { bool __ok_d1 = true; _Tp __lng_ad, __lng_ad1, __lng_bd1; try { __lng_ad = __log_gamma(__ad); __lng_ad1 = __log_gamma(__a + __d1); __lng_bd1 = __log_gamma(__b + __d1); } catch(...) { __ok_d1 = false; } if (__ok_d1) { _Tp __sum1 = _Tp(1); _Tp __term = _Tp(1); _Tp __ln_pre1 = __lng_ad + __lng_c + __d2 * __ln_omx - __lng_ad1 - __lng_bd1; for (int __i = 1; __i < __ad; ++__i) { const int __j = __i - 1; __term *= (__a + __d2 + __j) * (__b + __d2 + __j) / (_Tp(1) + __d2 + __j) / __i * (_Tp(1) - __x); __sum1 += __term; } if (__ln_pre1 > __log_max) std::__throw_runtime_error(("Overflow of gamma functions" " in __hyperg_luke.") ); else __F1 = std::exp(__ln_pre1) * __sum1; } else { __F1 = _Tp(0); } } bool __ok_d2 = true; _Tp __lng_ad2, __lng_bd2; try { __lng_ad2 = __log_gamma(__a + __d2); __lng_bd2 = __log_gamma(__b + __d2); } catch(...) { __ok_d2 = false; } if (__ok_d2) { const int __maxiter = 2000; const _Tp __psi_1 = -__numeric_constants<_Tp>::__gamma_e(); const _Tp __psi_1pd = __psi(_Tp(1) + __ad); const _Tp __psi_apd1 = __psi(__a + __d1); const _Tp __psi_bpd1 = __psi(__b + __d1); _Tp __psi_term = __psi_1 + __psi_1pd - __psi_apd1 - __psi_bpd1 - __ln_omx; _Tp __fact = _Tp(1); _Tp __sum2 = __psi_term; _Tp __ln_pre2 = __lng_c + __d1 * __ln_omx - __lng_ad2 - __lng_bd2; int __j; for (__j = 1; __j < __maxiter; ++__j) { const _Tp __term1 = _Tp(1) / _Tp(__j) + _Tp(1) / (__ad + __j); const _Tp __term2 = _Tp(1) / (__a + __d1 + _Tp(__j - 1)) + _Tp(1) / (__b + __d1 + _Tp(__j - 1)); __psi_term += __term1 - __term2; __fact *= (__a + __d1 + _Tp(__j - 1)) * (__b + __d1 + _Tp(__j - 1)) / ((__ad + __j) * __j) * (_Tp(1) - __x); const _Tp __delta = __fact * __psi_term; __sum2 += __delta; if (std::abs(__delta) < __eps * std::abs(__sum2)) break; } if (__j == __maxiter) std::__throw_runtime_error(("Sum F2 failed to converge " "in __hyperg_reflect") ); if (__sum2 == _Tp(0)) __F2 = _Tp(0); else __F2 = std::exp(__ln_pre2) * __sum2; } else { __F2 = _Tp(0); } const _Tp __sgn_2 = (__intd % 2 == 1 ? -_Tp(1) : _Tp(1)); const _Tp __F = __F1 + __sgn_2 * __F2; return __F; } else { bool __ok1 = true; _Tp __sgn_g1ca = _Tp(0), __ln_g1ca = _Tp(0); _Tp __sgn_g1cb = _Tp(0), __ln_g1cb = _Tp(0); try { __sgn_g1ca = __log_gamma_sign(__c - __a); __ln_g1ca = __log_gamma(__c - __a); __sgn_g1cb = __log_gamma_sign(__c - __b); __ln_g1cb = __log_gamma(__c - __b); } catch(...) { __ok1 = false; } bool __ok2 = true; _Tp __sgn_g2a = _Tp(0), __ln_g2a = _Tp(0); _Tp __sgn_g2b = _Tp(0), __ln_g2b = _Tp(0); try { __sgn_g2a = __log_gamma_sign(__a); __ln_g2a = __log_gamma(__a); __sgn_g2b = __log_gamma_sign(__b); __ln_g2b = __log_gamma(__b); } catch(...) { __ok2 = false; } const _Tp __sgn_gc = __log_gamma_sign(__c); const _Tp __ln_gc = __log_gamma(__c); const _Tp __sgn_gd = __log_gamma_sign(__d); const _Tp __ln_gd = __log_gamma(__d); const _Tp __sgn_gmd = __log_gamma_sign(-__d); const _Tp __ln_gmd = __log_gamma(-__d); const _Tp __sgn1 = __sgn_gc * __sgn_gd * __sgn_g1ca * __sgn_g1cb; const _Tp __sgn2 = __sgn_gc * __sgn_gmd * __sgn_g2a * __sgn_g2b; _Tp __pre1, __pre2; if (__ok1 && __ok2) { _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b + __d * std::log(_Tp(1) - __x); if (__ln_pre1 < __log_max && __ln_pre2 < __log_max) { __pre1 = std::exp(__ln_pre1); __pre2 = std::exp(__ln_pre2); __pre1 *= __sgn1; __pre2 *= __sgn2; } else { std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") ); } } else if (__ok1 && !__ok2) { _Tp __ln_pre1 = __ln_gc + __ln_gd - __ln_g1ca - __ln_g1cb; if (__ln_pre1 < __log_max) { __pre1 = std::exp(__ln_pre1); __pre1 *= __sgn1; __pre2 = _Tp(0); } else { std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") ); } } else if (!__ok1 && __ok2) { _Tp __ln_pre2 = __ln_gc + __ln_gmd - __ln_g2a - __ln_g2b + __d * std::log(_Tp(1) - __x); if (__ln_pre2 < __log_max) { __pre1 = _Tp(0); __pre2 = std::exp(__ln_pre2); __pre2 *= __sgn2; } else { std::__throw_runtime_error(("Overflow of gamma functions " "in __hyperg_reflect") ); } } else { __pre1 = _Tp(0); __pre2 = _Tp(0); std::__throw_runtime_error(("Underflow of gamma functions " "in __hyperg_reflect") ); } const _Tp __F1 = __hyperg_series(__a, __b, _Tp(1) - __d, _Tp(1) - __x); const _Tp __F2 = __hyperg_series(__c - __a, __c - __b, _Tp(1) + __d, _Tp(1) - __x); const _Tp __F = __pre1 * __F1 + __pre2 * __F2; return __F; } } # 728 "/usr/include/c++/13/tr1/hypergeometric.tcc" 3 template<typename _Tp> _Tp __hyperg(_Tp __a, _Tp __b, _Tp __c, _Tp __x) { const _Tp __a_nint = ::std::nearbyint(__a); const _Tp __b_nint = ::std::nearbyint(__b); const _Tp __c_nint = ::std::nearbyint(__c); const _Tp __toler = _Tp(1000) * std::numeric_limits<_Tp>::epsilon(); if (std::abs(__x) >= _Tp(1)) std::__throw_domain_error(("Argument outside unit circle " "in __hyperg.") ); else if (__isnan(__a) || __isnan(__b) || __isnan(__c) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__c_nint == __c && __c_nint <= _Tp(0)) return std::numeric_limits<_Tp>::infinity(); else if (std::abs(__c - __b) < __toler || std::abs(__c - __a) < __toler) return std::pow(_Tp(1) - __x, __c - __a - __b); else if (__a >= _Tp(0) && __b >= _Tp(0) && __c >= _Tp(0) && __x >= _Tp(0) && __x < _Tp(0.995L)) return __hyperg_series(__a, __b, __c, __x); else if (std::abs(__a) < _Tp(10) && std::abs(__b) < _Tp(10)) { if (__a < _Tp(0) && std::abs(__a - __a_nint) < __toler) return __hyperg_series(__a_nint, __b, __c, __x); else if (__b < _Tp(0) && std::abs(__b - __b_nint) < __toler) return __hyperg_series(__a, __b_nint, __c, __x); else if (__x < -_Tp(0.25L)) return __hyperg_luke(__a, __b, __c, __x); else if (__x < _Tp(0.5L)) return __hyperg_series(__a, __b, __c, __x); else if (std::abs(__c) > _Tp(10)) return __hyperg_series(__a, __b, __c, __x); else return __hyperg_reflect(__a, __b, __c, __x); } else return __hyperg_luke(__a, __b, __c, __x); } } } # 53 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/legendre_function.tcc" 1 3 # 49 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 namespace __detail { # 80 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 template<typename _Tp> _Tp __poly_legendre_p(unsigned int __l, _Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x == +_Tp(1)) return +_Tp(1); else if (__x == -_Tp(1)) return (__l % 2 == 1 ? -_Tp(1) : +_Tp(1)); else { _Tp __p_lm2 = _Tp(1); if (__l == 0) return __p_lm2; _Tp __p_lm1 = __x; if (__l == 1) return __p_lm1; _Tp __p_l = 0; for (unsigned int __ll = 2; __ll <= __l; ++__ll) { __p_l = _Tp(2) * __x * __p_lm1 - __p_lm2 - (__x * __p_lm1 - __p_lm2) / _Tp(__ll); __p_lm2 = __p_lm1; __p_lm1 = __p_l; } return __p_l; } } # 136 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 template<typename _Tp> _Tp __assoc_legendre_p(unsigned int __l, unsigned int __m, _Tp __x, _Tp __phase = _Tp(+1)) { if (__m > __l) return _Tp(0); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__m == 0) return __poly_legendre_p(__l, __x); else { _Tp __p_mm = _Tp(1); if (__m > 0) { _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); _Tp __fact = _Tp(1); for (unsigned int __i = 1; __i <= __m; ++__i) { __p_mm *= __phase * __fact * __root; __fact += _Tp(2); } } if (__l == __m) return __p_mm; _Tp __p_mp1m = _Tp(2 * __m + 1) * __x * __p_mm; if (__l == __m + 1) return __p_mp1m; _Tp __p_lm2m = __p_mm; _Tp __P_lm1m = __p_mp1m; _Tp __p_lm = _Tp(0); for (unsigned int __j = __m + 2; __j <= __l; ++__j) { __p_lm = (_Tp(2 * __j - 1) * __x * __P_lm1m - _Tp(__j + __m - 1) * __p_lm2m) / _Tp(__j - __m); __p_lm2m = __P_lm1m; __P_lm1m = __p_lm; } return __p_lm; } } # 214 "/usr/include/c++/13/tr1/legendre_function.tcc" 3 template <typename _Tp> _Tp __sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) { if (__isnan(__theta)) return std::numeric_limits<_Tp>::quiet_NaN(); const _Tp __x = std::cos(__theta); if (__m > __l) return _Tp(0); else if (__m == 0) { _Tp __P = __poly_legendre_p(__l, __x); _Tp __fact = std::sqrt(_Tp(2 * __l + 1) / (_Tp(4) * __numeric_constants<_Tp>::__pi())); __P *= __fact; return __P; } else if (__x == _Tp(1) || __x == -_Tp(1)) { return _Tp(0); } else { const _Tp __sgn = ( __m % 2 == 1 ? -_Tp(1) : _Tp(1)); const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); const _Tp __lncirc = ::std::log1p(-__x * __x); const _Tp __lnpoch = ::std::lgamma(_Tp(__m + _Tp(0.5L))) - ::std::lgamma(_Tp(__m)); const _Tp __lnpre_val = -_Tp(0.25L) * __numeric_constants<_Tp>::__lnpi() + _Tp(0.5L) * (__lnpoch + __m * __lncirc); const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) / (_Tp(4) * __numeric_constants<_Tp>::__pi())); _Tp __y_mm = __sgn * __sr * std::exp(__lnpre_val); _Tp __y_mp1m = __y_mp1m_factor * __y_mm; if (__l == __m) return __y_mm; else if (__l == __m + 1) return __y_mp1m; else { _Tp __y_lm = _Tp(0); for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll) { const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m); const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1); const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) * _Tp(2 * __ll - 1)); const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) / _Tp(2 * __ll - 3)); __y_lm = (__x * __y_mp1m * __fact1 - (__ll + __m - 1) * __y_mm * __fact2) / _Tp(__ll - __m); __y_mm = __y_mp1m; __y_mp1m = __y_lm; } return __y_lm; } } } } } # 54 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 1 3 # 51 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 65 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 namespace __detail { # 83 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 template <typename _Tp> void __bessel_ik(_Tp __nu, _Tp __x, _Tp & __Inu, _Tp & __Knu, _Tp & __Ipnu, _Tp & __Kpnu) { if (__x == _Tp(0)) { if (__nu == _Tp(0)) { __Inu = _Tp(1); __Ipnu = _Tp(0); } else if (__nu == _Tp(1)) { __Inu = _Tp(0); __Ipnu = _Tp(0.5L); } else { __Inu = _Tp(0); __Ipnu = _Tp(0); } __Knu = std::numeric_limits<_Tp>::infinity(); __Kpnu = -std::numeric_limits<_Tp>::infinity(); return; } const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __fp_min = _Tp(10) * std::numeric_limits<_Tp>::epsilon(); const int __max_iter = 15000; const _Tp __x_min = _Tp(2); const int __nl = static_cast<int>(__nu + _Tp(0.5L)); const _Tp __mu = __nu - __nl; const _Tp __mu2 = __mu * __mu; const _Tp __xi = _Tp(1) / __x; const _Tp __xi2 = _Tp(2) * __xi; _Tp __h = __nu * __xi; if ( __h < __fp_min ) __h = __fp_min; _Tp __b = __xi2 * __nu; _Tp __d = _Tp(0); _Tp __c = __h; int __i; for ( __i = 1; __i <= __max_iter; ++__i ) { __b += __xi2; __d = _Tp(1) / (__b + __d); __c = __b + _Tp(1) / __c; const _Tp __del = __c * __d; __h *= __del; if (std::abs(__del - _Tp(1)) < __eps) break; } if (__i > __max_iter) std::__throw_runtime_error(("Argument x too large " "in __bessel_ik; " "try asymptotic expansion.") ); _Tp __Inul = __fp_min; _Tp __Ipnul = __h * __Inul; _Tp __Inul1 = __Inul; _Tp __Ipnu1 = __Ipnul; _Tp __fact = __nu * __xi; for (int __l = __nl; __l >= 1; --__l) { const _Tp __Inutemp = __fact * __Inul + __Ipnul; __fact -= __xi; __Ipnul = __fact * __Inutemp + __Inul; __Inul = __Inutemp; } _Tp __f = __Ipnul / __Inul; _Tp __Kmu, __Knu1; if (__x < __x_min) { const _Tp __x2 = __x / _Tp(2); const _Tp __pimu = __numeric_constants<_Tp>::__pi() * __mu; const _Tp __fact = (std::abs(__pimu) < __eps ? _Tp(1) : __pimu / std::sin(__pimu)); _Tp __d = -std::log(__x2); _Tp __e = __mu * __d; const _Tp __fact2 = (std::abs(__e) < __eps ? _Tp(1) : std::sinh(__e) / __e); _Tp __gam1, __gam2, __gampl, __gammi; __gamma_temme(__mu, __gam1, __gam2, __gampl, __gammi); _Tp __ff = __fact * (__gam1 * std::cosh(__e) + __gam2 * __fact2 * __d); _Tp __sum = __ff; __e = std::exp(__e); _Tp __p = __e / (_Tp(2) * __gampl); _Tp __q = _Tp(1) / (_Tp(2) * __e * __gammi); _Tp __c = _Tp(1); __d = __x2 * __x2; _Tp __sum1 = __p; int __i; for (__i = 1; __i <= __max_iter; ++__i) { __ff = (__i * __ff + __p + __q) / (__i * __i - __mu2); __c *= __d / __i; __p /= __i - __mu; __q /= __i + __mu; const _Tp __del = __c * __ff; __sum += __del; const _Tp __del1 = __c * (__p - __i * __ff); __sum1 += __del1; if (std::abs(__del) < __eps * std::abs(__sum)) break; } if (__i > __max_iter) std::__throw_runtime_error(("Bessel k series failed to converge " "in __bessel_ik.") ); __Kmu = __sum; __Knu1 = __sum1 * __xi2; } else { _Tp __b = _Tp(2) * (_Tp(1) + __x); _Tp __d = _Tp(1) / __b; _Tp __delh = __d; _Tp __h = __delh; _Tp __q1 = _Tp(0); _Tp __q2 = _Tp(1); _Tp __a1 = _Tp(0.25L) - __mu2; _Tp __q = __c = __a1; _Tp __a = -__a1; _Tp __s = _Tp(1) + __q * __delh; int __i; for (__i = 2; __i <= __max_iter; ++__i) { __a -= 2 * (__i - 1); __c = -__a * __c / __i; const _Tp __qnew = (__q1 - __b * __q2) / __a; __q1 = __q2; __q2 = __qnew; __q += __c * __qnew; __b += _Tp(2); __d = _Tp(1) / (__b + __a * __d); __delh = (__b * __d - _Tp(1)) * __delh; __h += __delh; const _Tp __dels = __q * __delh; __s += __dels; if ( std::abs(__dels / __s) < __eps ) break; } if (__i > __max_iter) std::__throw_runtime_error(("Steed's method failed " "in __bessel_ik.") ); __h = __a1 * __h; __Kmu = std::sqrt(__numeric_constants<_Tp>::__pi() / (_Tp(2) * __x)) * std::exp(-__x) / __s; __Knu1 = __Kmu * (__mu + __x + _Tp(0.5L) - __h) * __xi; } _Tp __Kpmu = __mu * __xi * __Kmu - __Knu1; _Tp __Inumu = __xi / (__f * __Kmu - __Kpmu); __Inu = __Inumu * __Inul1 / __Inul; __Ipnu = __Inumu * __Ipnu1 / __Inul; for ( __i = 1; __i <= __nl; ++__i ) { const _Tp __Knutemp = (__mu + __i) * __xi2 * __Knu1 + __Kmu; __Kmu = __Knu1; __Knu1 = __Knutemp; } __Knu = __Kmu; __Kpnu = __nu * __xi * __Kmu - __Knu1; return; } # 267 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 template<typename _Tp> _Tp __cyl_bessel_i(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_bessel_i.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__x * __x < _Tp(10) * (__nu + _Tp(1))) return __cyl_bessel_ij_series(__nu, __x, +_Tp(1), 200); else { _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); return __I_nu; } } # 303 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 template<typename _Tp> _Tp __cyl_bessel_k(_Tp __nu, _Tp __x) { if (__nu < _Tp(0) || __x < _Tp(0)) std::__throw_domain_error(("Bad argument " "in __cyl_bessel_k.") ); else if (__isnan(__nu) || __isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else { _Tp __I_nu, __K_nu, __Ip_nu, __Kp_nu; __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); return __K_nu; } } # 337 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 template <typename _Tp> void __sph_bessel_ik(unsigned int __n, _Tp __x, _Tp & __i_n, _Tp & __k_n, _Tp & __ip_n, _Tp & __kp_n) { const _Tp __nu = _Tp(__n) + _Tp(0.5L); _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; __bessel_ik(__nu, __x, __I_nu, __K_nu, __Ip_nu, __Kp_nu); const _Tp __factor = __numeric_constants<_Tp>::__sqrtpio2() / std::sqrt(__x); __i_n = __factor * __I_nu; __k_n = __factor * __K_nu; __ip_n = __factor * __Ip_nu - __i_n / (_Tp(2) * __x); __kp_n = __factor * __Kp_nu - __k_n / (_Tp(2) * __x); return; } # 373 "/usr/include/c++/13/tr1/modified_bessel_func.tcc" 3 template <typename _Tp> void __airy(_Tp __x, _Tp & __Ai, _Tp & __Bi, _Tp & __Aip, _Tp & __Bip) { const _Tp __absx = std::abs(__x); const _Tp __rootx = std::sqrt(__absx); const _Tp __z = _Tp(2) * __absx * __rootx / _Tp(3); const _Tp _S_inf = std::numeric_limits<_Tp>::infinity(); if (__isnan(__x)) __Bip = __Aip = __Bi = __Ai = std::numeric_limits<_Tp>::quiet_NaN(); else if (__z == _S_inf) { __Aip = __Ai = _Tp(0); __Bip = __Bi = _S_inf; } else if (__z == -_S_inf) __Bip = __Aip = __Bi = __Ai = _Tp(0); else if (__x > _Tp(0)) { _Tp __I_nu, __Ip_nu, __K_nu, __Kp_nu; __bessel_ik(_Tp(1) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); __Ai = __rootx * __K_nu / (__numeric_constants<_Tp>::__sqrt3() * __numeric_constants<_Tp>::__pi()); __Bi = __rootx * (__K_nu / __numeric_constants<_Tp>::__pi() + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); __bessel_ik(_Tp(2) / _Tp(3), __z, __I_nu, __K_nu, __Ip_nu, __Kp_nu); __Aip = -__x * __K_nu / (__numeric_constants<_Tp>::__sqrt3() * __numeric_constants<_Tp>::__pi()); __Bip = __x * (__K_nu / __numeric_constants<_Tp>::__pi() + _Tp(2) * __I_nu / __numeric_constants<_Tp>::__sqrt3()); } else if (__x < _Tp(0)) { _Tp __J_nu, __Jp_nu, __N_nu, __Np_nu; __bessel_jn(_Tp(1) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); __Ai = __rootx * (__J_nu - __N_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); __Bi = -__rootx * (__N_nu + __J_nu / __numeric_constants<_Tp>::__sqrt3()) / _Tp(2); __bessel_jn(_Tp(2) / _Tp(3), __z, __J_nu, __N_nu, __Jp_nu, __Np_nu); __Aip = __absx * (__N_nu / __numeric_constants<_Tp>::__sqrt3() + __J_nu) / _Tp(2); __Bip = __absx * (__J_nu / __numeric_constants<_Tp>::__sqrt3() - __N_nu) / _Tp(2); } else { __Ai = _Tp(0.35502805388781723926L); __Bi = __Ai * __numeric_constants<_Tp>::__sqrt3(); __Aip = -_Tp(0.25881940379280679840L); __Bip = -__Aip * __numeric_constants<_Tp>::__sqrt3(); } return; } } } # 55 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/poly_hermite.tcc" 1 3 # 42 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 56 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 namespace __detail { # 72 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 template<typename _Tp> _Tp __poly_hermite_recursion(unsigned int __n, _Tp __x) { _Tp __H_0 = 1; if (__n == 0) return __H_0; _Tp __H_1 = 2 * __x; if (__n == 1) return __H_1; _Tp __H_n, __H_nm1, __H_nm2; unsigned int __i; for (__H_nm2 = __H_0, __H_nm1 = __H_1, __i = 2; __i <= __n; ++__i) { __H_n = 2 * (__x * __H_nm1 - (__i - 1) * __H_nm2); __H_nm2 = __H_nm1; __H_nm1 = __H_n; } return __H_n; } # 114 "/usr/include/c++/13/tr1/poly_hermite.tcc" 3 template<typename _Tp> inline _Tp __poly_hermite(unsigned int __n, _Tp __x) { if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else return __poly_hermite_recursion(__n, __x); } } } # 56 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 1 3 # 44 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 60 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 namespace __detail { # 75 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 template<typename _Tpa, typename _Tp> _Tp __poly_laguerre_large_n(unsigned __n, _Tpa __alpha1, _Tp __x) { const _Tp __a = -_Tp(__n); const _Tp __b = _Tp(__alpha1) + _Tp(1); const _Tp __eta = _Tp(2) * __b - _Tp(4) * __a; const _Tp __cos2th = __x / __eta; const _Tp __sin2th = _Tp(1) - __cos2th; const _Tp __th = std::acos(std::sqrt(__cos2th)); const _Tp __pre_h = __numeric_constants<_Tp>::__pi_2() * __numeric_constants<_Tp>::__pi_2() * __eta * __eta * __cos2th * __sin2th; const _Tp __lg_b = ::std::lgamma(_Tp(__n) + __b); const _Tp __lnfact = ::std::lgamma(_Tp(__n + 1)); _Tp __pre_term1 = _Tp(0.5L) * (_Tp(1) - __b) * std::log(_Tp(0.25L) * __x * __eta); _Tp __pre_term2 = _Tp(0.25L) * std::log(__pre_h); _Tp __lnpre = __lg_b - __lnfact + _Tp(0.5L) * __x + __pre_term1 - __pre_term2; _Tp __ser_term1 = std::sin(__a * __numeric_constants<_Tp>::__pi()); _Tp __ser_term2 = std::sin(_Tp(0.25L) * __eta * (_Tp(2) * __th - std::sin(_Tp(2) * __th)) + __numeric_constants<_Tp>::__pi_4()); _Tp __ser = __ser_term1 + __ser_term2; return std::exp(__lnpre) * __ser; } # 129 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 template<typename _Tpa, typename _Tp> _Tp __poly_laguerre_hyperg(unsigned int __n, _Tpa __alpha1, _Tp __x) { const _Tp __b = _Tp(__alpha1) + _Tp(1); const _Tp __mx = -__x; const _Tp __tc_sgn = (__x < _Tp(0) ? _Tp(1) : ((__n % 2 == 1) ? -_Tp(1) : _Tp(1))); _Tp __tc = _Tp(1); const _Tp __ax = std::abs(__x); for (unsigned int __k = 1; __k <= __n; ++__k) __tc *= (__ax / __k); _Tp __term = __tc * __tc_sgn; _Tp __sum = __term; for (int __k = int(__n) - 1; __k >= 0; --__k) { __term *= ((__b + _Tp(__k)) / _Tp(int(__n) - __k)) * _Tp(__k + 1) / __mx; __sum += __term; } return __sum; } # 185 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 template<typename _Tpa, typename _Tp> _Tp __poly_laguerre_recursion(unsigned int __n, _Tpa __alpha1, _Tp __x) { _Tp __l_0 = _Tp(1); if (__n == 0) return __l_0; _Tp __l_1 = -__x + _Tp(1) + _Tp(__alpha1); if (__n == 1) return __l_1; _Tp __l_n2 = __l_0; _Tp __l_n1 = __l_1; _Tp __l_n = _Tp(0); for (unsigned int __nn = 2; __nn <= __n; ++__nn) { __l_n = (_Tp(2 * __nn - 1) + _Tp(__alpha1) - __x) * __l_n1 / _Tp(__nn) - (_Tp(__nn - 1) + _Tp(__alpha1)) * __l_n2 / _Tp(__nn); __l_n2 = __l_n1; __l_n1 = __l_n; } return __l_n; } # 244 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 template<typename _Tpa, typename _Tp> _Tp __poly_laguerre(unsigned int __n, _Tpa __alpha1, _Tp __x) { if (__x < _Tp(0)) std::__throw_domain_error(("Negative argument " "in __poly_laguerre.") ); else if (__isnan(__x)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__n == 0) return _Tp(1); else if (__n == 1) return _Tp(1) + _Tp(__alpha1) - __x; else if (__x == _Tp(0)) { _Tp __prod = _Tp(__alpha1) + _Tp(1); for (unsigned int __k = 2; __k <= __n; ++__k) __prod *= (_Tp(__alpha1) + _Tp(__k)) / _Tp(__k); return __prod; } else if (__n > 10000000 && _Tp(__alpha1) > -_Tp(1) && __x < _Tp(2) * (_Tp(__alpha1) + _Tp(1)) + _Tp(4 * __n)) return __poly_laguerre_large_n(__n, __alpha1, __x); else if (_Tp(__alpha1) >= _Tp(0) || (__x > _Tp(0) && _Tp(__alpha1) < -_Tp(__n + 1))) return __poly_laguerre_recursion(__n, __alpha1, __x); else return __poly_laguerre_hyperg(__n, __alpha1, __x); } # 296 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 template<typename _Tp> inline _Tp __assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) { return __poly_laguerre<unsigned int, _Tp>(__n, __m, __x); } # 316 "/usr/include/c++/13/tr1/poly_laguerre.tcc" 3 template<typename _Tp> inline _Tp __laguerre(unsigned int __n, _Tp __x) { return __poly_laguerre<unsigned int, _Tp>(__n, 0, __x); } } } # 57 "/usr/include/c++/13/bits/specfun.h" 2 3 # 1 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 1 3 # 47 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 63 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 namespace __detail { # 78 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> _Tp __riemann_zeta_sum(_Tp __s) { if (__s < _Tp(1)) std::__throw_domain_error(("Bad argument in zeta sum.")); const unsigned int max_iter = 10000; _Tp __zeta = _Tp(0); for (unsigned int __k = 1; __k < max_iter; ++__k) { _Tp __term = std::pow(static_cast<_Tp>(__k), -__s); if (__term < std::numeric_limits<_Tp>::epsilon()) { break; } __zeta += __term; } return __zeta; } # 115 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> _Tp __riemann_zeta_alt(_Tp __s) { _Tp __sgn = _Tp(1); _Tp __zeta = _Tp(0); for (unsigned int __i = 1; __i < 10000000; ++__i) { _Tp __term = __sgn / std::pow(__i, __s); if (std::abs(__term) < std::numeric_limits<_Tp>::epsilon()) break; __zeta += __term; __sgn *= _Tp(-1); } __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); return __zeta; } # 157 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> _Tp __riemann_zeta_glob(_Tp __s) { _Tp __zeta = _Tp(0); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); if (__s < _Tp(0)) { if (::std::fmod(__s,_Tp(2)) == _Tp(0)) return _Tp(0); else { _Tp __zeta = __riemann_zeta_glob(_Tp(1) - __s); __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) * std::exp(::std::lgamma(_Tp(1) - __s)) / __numeric_constants<_Tp>::__pi(); return __zeta; } } _Tp __num = _Tp(0.5L); const unsigned int __maxit = 10000; for (unsigned int __i = 0; __i < __maxit; ++__i) { bool __punt = false; _Tp __sgn = _Tp(1); _Tp __term = _Tp(0); for (unsigned int __j = 0; __j <= __i; ++__j) { _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) - ::std::lgamma(_Tp(1 + __j)) - ::std::lgamma(_Tp(1 + __i - __j)); if (__bincoeff > __max_bincoeff) { __punt = true; break; } __bincoeff = std::exp(__bincoeff); __term += __sgn * __bincoeff * std::pow(_Tp(1 + __j), -__s); __sgn *= _Tp(-1); } if (__punt) break; __term *= __num; __zeta += __term; if (std::abs(__term/__zeta) < __eps) break; __num *= _Tp(0.5L); } __zeta /= _Tp(1) - std::pow(_Tp(2), _Tp(1) - __s); return __zeta; } # 252 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> _Tp __riemann_zeta_product(_Tp __s) { static const _Tp __prime[] = { _Tp(2), _Tp(3), _Tp(5), _Tp(7), _Tp(11), _Tp(13), _Tp(17), _Tp(19), _Tp(23), _Tp(29), _Tp(31), _Tp(37), _Tp(41), _Tp(43), _Tp(47), _Tp(53), _Tp(59), _Tp(61), _Tp(67), _Tp(71), _Tp(73), _Tp(79), _Tp(83), _Tp(89), _Tp(97), _Tp(101), _Tp(103), _Tp(107), _Tp(109) }; static const unsigned int __num_primes = sizeof(__prime) / sizeof(_Tp); _Tp __zeta = _Tp(1); for (unsigned int __i = 0; __i < __num_primes; ++__i) { const _Tp __fact = _Tp(1) - std::pow(__prime[__i], -__s); __zeta *= __fact; if (_Tp(1) - __fact < std::numeric_limits<_Tp>::epsilon()) break; } __zeta = _Tp(1) / __zeta; return __zeta; } # 293 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> _Tp __riemann_zeta(_Tp __s) { if (__isnan(__s)) return std::numeric_limits<_Tp>::quiet_NaN(); else if (__s == _Tp(1)) return std::numeric_limits<_Tp>::infinity(); else if (__s < -_Tp(19)) { _Tp __zeta = __riemann_zeta_product(_Tp(1) - __s); __zeta *= std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) * std::exp(::std::lgamma(_Tp(1) - __s)) / __numeric_constants<_Tp>::__pi(); return __zeta; } else if (__s < _Tp(20)) { bool __glob = true; if (__glob) return __riemann_zeta_glob(__s); else { if (__s > _Tp(1)) return __riemann_zeta_sum(__s); else { _Tp __zeta = std::pow(_Tp(2) * __numeric_constants<_Tp>::__pi(), __s) * std::sin(__numeric_constants<_Tp>::__pi_2() * __s) * ::std::tgamma(_Tp(1) - __s) * __riemann_zeta_sum(_Tp(1) - __s); return __zeta; } } } else return __riemann_zeta_product(__s); } # 365 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> _Tp __hurwitz_zeta_glob(_Tp __a, _Tp __s) { _Tp __zeta = _Tp(0); const _Tp __eps = std::numeric_limits<_Tp>::epsilon(); const _Tp __max_bincoeff = std::numeric_limits<_Tp>::max_exponent10 * std::log(_Tp(10)) - _Tp(1); const unsigned int __maxit = 10000; for (unsigned int __i = 0; __i < __maxit; ++__i) { bool __punt = false; _Tp __sgn = _Tp(1); _Tp __term = _Tp(0); for (unsigned int __j = 0; __j <= __i; ++__j) { _Tp __bincoeff = ::std::lgamma(_Tp(1 + __i)) - ::std::lgamma(_Tp(1 + __j)) - ::std::lgamma(_Tp(1 + __i - __j)); if (__bincoeff > __max_bincoeff) { __punt = true; break; } __bincoeff = std::exp(__bincoeff); __term += __sgn * __bincoeff * std::pow(_Tp(__a + __j), -__s); __sgn *= _Tp(-1); } if (__punt) break; __term /= _Tp(__i + 1); if (std::abs(__term / __zeta) < __eps) break; __zeta += __term; } __zeta /= __s - _Tp(1); return __zeta; } # 430 "/usr/include/c++/13/tr1/riemann_zeta.tcc" 3 template<typename _Tp> inline _Tp __hurwitz_zeta(_Tp __a, _Tp __s) { return __hurwitz_zeta_glob(__a, __s); } } } # 58 "/usr/include/c++/13/bits/specfun.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 203 "/usr/include/c++/13/bits/specfun.h" 3 inline float assoc_laguerref(unsigned int __n, unsigned int __m, float __x) { return __detail::__assoc_laguerre<float>(__n, __m, __x); } inline long double assoc_laguerrel(unsigned int __n, unsigned int __m, long double __x) { return __detail::__assoc_laguerre<long double>(__n, __m, __x); } # 248 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type assoc_laguerre(unsigned int __n, unsigned int __m, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__assoc_laguerre<__type>(__n, __m, __x); } # 264 "/usr/include/c++/13/bits/specfun.h" 3 inline float assoc_legendref(unsigned int __l, unsigned int __m, float __x) { return __detail::__assoc_legendre_p<float>(__l, __m, __x); } inline long double assoc_legendrel(unsigned int __l, unsigned int __m, long double __x) { return __detail::__assoc_legendre_p<long double>(__l, __m, __x); } # 294 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type assoc_legendre(unsigned int __l, unsigned int __m, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__assoc_legendre_p<__type>(__l, __m, __x); } # 309 "/usr/include/c++/13/bits/specfun.h" 3 inline float betaf(float __a, float __b) { return __detail::__beta<float>(__a, __b); } inline long double betal(long double __a, long double __b) { return __detail::__beta<long double>(__a, __b); } # 339 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpa, typename _Tpb> inline typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type beta(_Tpa __a, _Tpb __b) { typedef typename __gnu_cxx::__promote_2<_Tpa, _Tpb>::__type __type; return __detail::__beta<__type>(__a, __b); } # 355 "/usr/include/c++/13/bits/specfun.h" 3 inline float comp_ellint_1f(float __k) { return __detail::__comp_ellint_1<float>(__k); } inline long double comp_ellint_1l(long double __k) { return __detail::__comp_ellint_1<long double>(__k); } # 387 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type comp_ellint_1(_Tp __k) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__comp_ellint_1<__type>(__k); } # 403 "/usr/include/c++/13/bits/specfun.h" 3 inline float comp_ellint_2f(float __k) { return __detail::__comp_ellint_2<float>(__k); } inline long double comp_ellint_2l(long double __k) { return __detail::__comp_ellint_2<long double>(__k); } # 434 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type comp_ellint_2(_Tp __k) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__comp_ellint_2<__type>(__k); } # 450 "/usr/include/c++/13/bits/specfun.h" 3 inline float comp_ellint_3f(float __k, float __nu) { return __detail::__comp_ellint_3<float>(__k, __nu); } inline long double comp_ellint_3l(long double __k, long double __nu) { return __detail::__comp_ellint_3<long double>(__k, __nu); } # 485 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp, typename _Tpn> inline typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type comp_ellint_3(_Tp __k, _Tpn __nu) { typedef typename __gnu_cxx::__promote_2<_Tp, _Tpn>::__type __type; return __detail::__comp_ellint_3<__type>(__k, __nu); } # 501 "/usr/include/c++/13/bits/specfun.h" 3 inline float cyl_bessel_if(float __nu, float __x) { return __detail::__cyl_bessel_i<float>(__nu, __x); } inline long double cyl_bessel_il(long double __nu, long double __x) { return __detail::__cyl_bessel_i<long double>(__nu, __x); } # 531 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpnu, typename _Tp> inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_bessel_i(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_bessel_i<__type>(__nu, __x); } # 547 "/usr/include/c++/13/bits/specfun.h" 3 inline float cyl_bessel_jf(float __nu, float __x) { return __detail::__cyl_bessel_j<float>(__nu, __x); } inline long double cyl_bessel_jl(long double __nu, long double __x) { return __detail::__cyl_bessel_j<long double>(__nu, __x); } # 577 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpnu, typename _Tp> inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_bessel_j(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_bessel_j<__type>(__nu, __x); } # 593 "/usr/include/c++/13/bits/specfun.h" 3 inline float cyl_bessel_kf(float __nu, float __x) { return __detail::__cyl_bessel_k<float>(__nu, __x); } inline long double cyl_bessel_kl(long double __nu, long double __x) { return __detail::__cyl_bessel_k<long double>(__nu, __x); } # 629 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpnu, typename _Tp> inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_bessel_k(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_bessel_k<__type>(__nu, __x); } # 645 "/usr/include/c++/13/bits/specfun.h" 3 inline float cyl_neumannf(float __nu, float __x) { return __detail::__cyl_neumann_n<float>(__nu, __x); } inline long double cyl_neumannl(long double __nu, long double __x) { return __detail::__cyl_neumann_n<long double>(__nu, __x); } # 677 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpnu, typename _Tp> inline typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type cyl_neumann(_Tpnu __nu, _Tp __x) { typedef typename __gnu_cxx::__promote_2<_Tpnu, _Tp>::__type __type; return __detail::__cyl_neumann_n<__type>(__nu, __x); } # 693 "/usr/include/c++/13/bits/specfun.h" 3 inline float ellint_1f(float __k, float __phi) { return __detail::__ellint_1<float>(__k, __phi); } inline long double ellint_1l(long double __k, long double __phi) { return __detail::__ellint_1<long double>(__k, __phi); } # 725 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp, typename _Tpp> inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type ellint_1(_Tp __k, _Tpp __phi) { typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; return __detail::__ellint_1<__type>(__k, __phi); } # 741 "/usr/include/c++/13/bits/specfun.h" 3 inline float ellint_2f(float __k, float __phi) { return __detail::__ellint_2<float>(__k, __phi); } inline long double ellint_2l(long double __k, long double __phi) { return __detail::__ellint_2<long double>(__k, __phi); } # 773 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp, typename _Tpp> inline typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type ellint_2(_Tp __k, _Tpp __phi) { typedef typename __gnu_cxx::__promote_2<_Tp, _Tpp>::__type __type; return __detail::__ellint_2<__type>(__k, __phi); } # 789 "/usr/include/c++/13/bits/specfun.h" 3 inline float ellint_3f(float __k, float __nu, float __phi) { return __detail::__ellint_3<float>(__k, __nu, __phi); } inline long double ellint_3l(long double __k, long double __nu, long double __phi) { return __detail::__ellint_3<long double>(__k, __nu, __phi); } # 826 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp, typename _Tpn, typename _Tpp> inline typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type ellint_3(_Tp __k, _Tpn __nu, _Tpp __phi) { typedef typename __gnu_cxx::__promote_3<_Tp, _Tpn, _Tpp>::__type __type; return __detail::__ellint_3<__type>(__k, __nu, __phi); } # 841 "/usr/include/c++/13/bits/specfun.h" 3 inline float expintf(float __x) { return __detail::__expint<float>(__x); } inline long double expintl(long double __x) { return __detail::__expint<long double>(__x); } # 866 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type expint(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__expint<__type>(__x); } # 882 "/usr/include/c++/13/bits/specfun.h" 3 inline float hermitef(unsigned int __n, float __x) { return __detail::__poly_hermite<float>(__n, __x); } inline long double hermitel(unsigned int __n, long double __x) { return __detail::__poly_hermite<long double>(__n, __x); } # 914 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type hermite(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__poly_hermite<__type>(__n, __x); } # 930 "/usr/include/c++/13/bits/specfun.h" 3 inline float laguerref(unsigned int __n, float __x) { return __detail::__laguerre<float>(__n, __x); } inline long double laguerrel(unsigned int __n, long double __x) { return __detail::__laguerre<long double>(__n, __x); } # 958 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type laguerre(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__laguerre<__type>(__n, __x); } # 974 "/usr/include/c++/13/bits/specfun.h" 3 inline float legendref(unsigned int __l, float __x) { return __detail::__poly_legendre_p<float>(__l, __x); } inline long double legendrel(unsigned int __l, long double __x) { return __detail::__poly_legendre_p<long double>(__l, __x); } # 1003 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type legendre(unsigned int __l, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__poly_legendre_p<__type>(__l, __x); } # 1019 "/usr/include/c++/13/bits/specfun.h" 3 inline float riemann_zetaf(float __s) { return __detail::__riemann_zeta<float>(__s); } inline long double riemann_zetal(long double __s) { return __detail::__riemann_zeta<long double>(__s); } # 1054 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type riemann_zeta(_Tp __s) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__riemann_zeta<__type>(__s); } # 1070 "/usr/include/c++/13/bits/specfun.h" 3 inline float sph_besself(unsigned int __n, float __x) { return __detail::__sph_bessel<float>(__n, __x); } inline long double sph_bessell(unsigned int __n, long double __x) { return __detail::__sph_bessel<long double>(__n, __x); } # 1098 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type sph_bessel(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__sph_bessel<__type>(__n, __x); } # 1114 "/usr/include/c++/13/bits/specfun.h" 3 inline float sph_legendref(unsigned int __l, unsigned int __m, float __theta) { return __detail::__sph_legendre<float>(__l, __m, __theta); } # 1125 "/usr/include/c++/13/bits/specfun.h" 3 inline long double sph_legendrel(unsigned int __l, unsigned int __m, long double __theta) { return __detail::__sph_legendre<long double>(__l, __m, __theta); } # 1145 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type sph_legendre(unsigned int __l, unsigned int __m, _Tp __theta) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__sph_legendre<__type>(__l, __m, __theta); } # 1161 "/usr/include/c++/13/bits/specfun.h" 3 inline float sph_neumannf(unsigned int __n, float __x) { return __detail::__sph_neumann<float>(__n, __x); } inline long double sph_neumannl(unsigned int __n, long double __x) { return __detail::__sph_neumann<long double>(__n, __x); } # 1189 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type sph_neumann(unsigned int __n, _Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __detail::__sph_neumann<__type>(__n, __x); } } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { # 1216 "/usr/include/c++/13/bits/specfun.h" 3 inline float airy_aif(float __x) { float __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<float>(__x, __Ai, __Bi, __Aip, __Bip); return __Ai; } inline long double airy_ail(long double __x) { long double __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<long double>(__x, __Ai, __Bi, __Aip, __Bip); return __Ai; } template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type airy_ai(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; __type __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); return __Ai; } inline float airy_bif(float __x) { float __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<float>(__x, __Ai, __Bi, __Aip, __Bip); return __Bi; } inline long double airy_bil(long double __x) { long double __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<long double>(__x, __Ai, __Bi, __Aip, __Bip); return __Bi; } template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type airy_bi(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; __type __Ai, __Bi, __Aip, __Bip; std::__detail::__airy<__type>(__x, __Ai, __Bi, __Aip, __Bip); return __Bi; } # 1292 "/usr/include/c++/13/bits/specfun.h" 3 inline float conf_hypergf(float __a, float __c, float __x) { return std::__detail::__conf_hyperg<float>(__a, __c, __x); } # 1303 "/usr/include/c++/13/bits/specfun.h" 3 inline long double conf_hypergl(long double __a, long double __c, long double __x) { return std::__detail::__conf_hyperg<long double>(__a, __c, __x); } # 1323 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpa, typename _Tpc, typename _Tp> inline typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type conf_hyperg(_Tpa __a, _Tpc __c, _Tp __x) { typedef typename __gnu_cxx::__promote_3<_Tpa, _Tpc, _Tp>::__type __type; return std::__detail::__conf_hyperg<__type>(__a, __c, __x); } # 1340 "/usr/include/c++/13/bits/specfun.h" 3 inline float hypergf(float __a, float __b, float __c, float __x) { return std::__detail::__hyperg<float>(__a, __b, __c, __x); } # 1351 "/usr/include/c++/13/bits/specfun.h" 3 inline long double hypergl(long double __a, long double __b, long double __c, long double __x) { return std::__detail::__hyperg<long double>(__a, __b, __c, __x); } # 1372 "/usr/include/c++/13/bits/specfun.h" 3 template<typename _Tpa, typename _Tpb, typename _Tpc, typename _Tp> inline typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp>::__type hyperg(_Tpa __a, _Tpb __b, _Tpc __c, _Tp __x) { typedef typename __gnu_cxx::__promote_4<_Tpa, _Tpb, _Tpc, _Tp> ::__type __type; return std::__detail::__hyperg<__type>(__a, __b, __c, __x); } } # 3700 "/usr/include/c++/13/cmath" 2 3 } # 680 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Macros.h" 2 3 4 # 1002 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Macros.h" 3 4 namespace Eigen { namespace internal { inline bool copy_bool(bool b) { return b; } } } # 1071 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Macros.h" 3 4 namespace Eigen { namespace internal { template<typename T> inline void ignore_unused_variable(const T&) {} } } # 1432 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Macros.h" 3 4 namespace Eigen { namespace internal { inline bool all(){ return true; } template<typename T, typename ...Ts> bool all(T t, Ts ... ts){ return t && all(ts...); } } } # 20 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 1 3 4 # 339 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 3 4 extern "C" { # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mmintrin.h" 1 3 4 # 44 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mmintrin.h" 3 4 typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__)); typedef int __m32 __attribute__ ((__vector_size__ (4), __may_alias__)); typedef short __m16 __attribute__ ((__vector_size__ (2), __may_alias__)); typedef int __m64_u __attribute__ ((__vector_size__ (8), __may_alias__, __aligned__ (1))); typedef int __m32_u __attribute__ ((__vector_size__ (4), __may_alias__, __aligned__ (1))); typedef short __m16_u __attribute__ ((__vector_size__ (2), __may_alias__, __aligned__ (1))); typedef int __v2si __attribute__ ((__vector_size__ (8))); typedef short __v4hi __attribute__ ((__vector_size__ (8))); typedef char __v8qi __attribute__ ((__vector_size__ (8))); typedef long long __v1di __attribute__ ((__vector_size__ (8))); typedef float __v2sf __attribute__ ((__vector_size__ (8))); extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_empty (void) { __builtin_ia32_emms (); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_empty (void) { _mm_empty (); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi32_si64 (int __i) { return (__m64) __builtin_ia32_vec_init_v2si (__i, 0); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_from_int (int __i) { return _mm_cvtsi32_si64 (__i); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_from_int64 (long long __i) { return (__m64) __i; } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64_m64 (long long __i) { return (__m64) __i; } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64x_si64 (long long __i) { return (__m64) __i; } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_pi64x (long long __i) { return (__m64) __i; } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64_si32 (__m64 __i) { return __builtin_ia32_vec_ext_v2si ((__v2si)__i, 0); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_to_int (__m64 __i) { return _mm_cvtsi64_si32 (__i); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_to_int64 (__m64 __i) { return (long long)__i; } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtm64_si64 (__m64 __i) { return (long long)__i; } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64_si64x (__m64 __i) { return (long long)__i; } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_packs_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_packsswb ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_packsswb (__m64 __m1, __m64 __m2) { return _mm_packs_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_packs_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_packssdw ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_packssdw (__m64 __m1, __m64 __m2) { return _mm_packs_pi32 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_packs_pu16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_packuswb ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_packuswb (__m64 __m1, __m64 __m2) { return _mm_packs_pu16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_punpckhbw ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_punpckhbw (__m64 __m1, __m64 __m2) { return _mm_unpackhi_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_punpckhwd ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_punpckhwd (__m64 __m1, __m64 __m2) { return _mm_unpackhi_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_punpckhdq ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_punpckhdq (__m64 __m1, __m64 __m2) { return _mm_unpackhi_pi32 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_punpcklbw ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_punpcklbw (__m64 __m1, __m64 __m2) { return _mm_unpacklo_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_punpcklwd ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_punpcklwd (__m64 __m1, __m64 __m2) { return _mm_unpacklo_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_punpckldq ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_punpckldq (__m64 __m1, __m64 __m2) { return _mm_unpacklo_pi32 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddb (__m64 __m1, __m64 __m2) { return _mm_add_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddw (__m64 __m1, __m64 __m2) { return _mm_add_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddd ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddd (__m64 __m1, __m64 __m2) { return _mm_add_pi32 (__m1, __m2); } # 334 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mmintrin.h" 3 4 extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_si64 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddq ((__v1di)__m1, (__v1di)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddsb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddsb (__m64 __m1, __m64 __m2) { return _mm_adds_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddsw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddsw (__m64 __m1, __m64 __m2) { return _mm_adds_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_pu8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddusb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddusb (__m64 __m1, __m64 __m2) { return _mm_adds_pu8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_pu16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_paddusw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_paddusw (__m64 __m1, __m64 __m2) { return _mm_adds_pu16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubb (__m64 __m1, __m64 __m2) { return _mm_sub_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubw (__m64 __m1, __m64 __m2) { return _mm_sub_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubd ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubd (__m64 __m1, __m64 __m2) { return _mm_sub_pi32 (__m1, __m2); } # 450 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mmintrin.h" 3 4 extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_si64 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubq ((__v1di)__m1, (__v1di)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubsb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubsb (__m64 __m1, __m64 __m2) { return _mm_subs_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubsw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubsw (__m64 __m1, __m64 __m2) { return _mm_subs_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_pu8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubusb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubusb (__m64 __m1, __m64 __m2) { return _mm_subs_pu8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_pu16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_psubusw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psubusw (__m64 __m1, __m64 __m2) { return _mm_subs_pu16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_madd_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pmaddwd ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmaddwd (__m64 __m1, __m64 __m2) { return _mm_madd_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mulhi_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pmulhw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmulhw (__m64 __m1, __m64 __m2) { return _mm_mulhi_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mullo_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pmullw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmullw (__m64 __m1, __m64 __m2) { return _mm_mullo_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sll_pi16 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psllw ((__v4hi)__m, (__v4hi)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psllw (__m64 __m, __m64 __count) { return _mm_sll_pi16 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_slli_pi16 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psllwi ((__v4hi)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psllwi (__m64 __m, int __count) { return _mm_slli_pi16 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sll_pi32 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_pslld ((__v2si)__m, (__v2si)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pslld (__m64 __m, __m64 __count) { return _mm_sll_pi32 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_slli_pi32 (__m64 __m, int __count) { return (__m64) __builtin_ia32_pslldi ((__v2si)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pslldi (__m64 __m, int __count) { return _mm_slli_pi32 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sll_si64 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psllq ((__v1di)__m, (__v1di)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psllq (__m64 __m, __m64 __count) { return _mm_sll_si64 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_slli_si64 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psllqi ((__v1di)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psllqi (__m64 __m, int __count) { return _mm_slli_si64 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sra_pi16 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psraw ((__v4hi)__m, (__v4hi)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psraw (__m64 __m, __m64 __count) { return _mm_sra_pi16 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srai_pi16 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psrawi ((__v4hi)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrawi (__m64 __m, int __count) { return _mm_srai_pi16 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sra_pi32 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psrad ((__v2si)__m, (__v2si)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrad (__m64 __m, __m64 __count) { return _mm_sra_pi32 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srai_pi32 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psradi ((__v2si)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psradi (__m64 __m, int __count) { return _mm_srai_pi32 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srl_pi16 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psrlw ((__v4hi)__m, (__v4hi)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrlw (__m64 __m, __m64 __count) { return _mm_srl_pi16 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srli_pi16 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psrlwi ((__v4hi)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrlwi (__m64 __m, int __count) { return _mm_srli_pi16 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srl_pi32 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psrld ((__v2si)__m, (__v2si)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrld (__m64 __m, __m64 __count) { return _mm_srl_pi32 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srli_pi32 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psrldi ((__v2si)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrldi (__m64 __m, int __count) { return _mm_srli_pi32 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srl_si64 (__m64 __m, __m64 __count) { return (__m64) __builtin_ia32_psrlq ((__v1di)__m, (__v1di)__count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrlq (__m64 __m, __m64 __count) { return _mm_srl_si64 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srli_si64 (__m64 __m, int __count) { return (__m64) __builtin_ia32_psrlqi ((__v1di)__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psrlqi (__m64 __m, int __count) { return _mm_srli_si64 (__m, __count); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_and_si64 (__m64 __m1, __m64 __m2) { return __builtin_ia32_pand (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pand (__m64 __m1, __m64 __m2) { return _mm_and_si64 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_andnot_si64 (__m64 __m1, __m64 __m2) { return __builtin_ia32_pandn (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pandn (__m64 __m1, __m64 __m2) { return _mm_andnot_si64 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_or_si64 (__m64 __m1, __m64 __m2) { return __builtin_ia32_por (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_por (__m64 __m1, __m64 __m2) { return _mm_or_si64 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_xor_si64 (__m64 __m1, __m64 __m2) { return __builtin_ia32_pxor (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pxor (__m64 __m1, __m64 __m2) { return _mm_xor_si64 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pcmpeqb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pcmpeqb (__m64 __m1, __m64 __m2) { return _mm_cmpeq_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_pi8 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pcmpgtb ((__v8qi)__m1, (__v8qi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pcmpgtb (__m64 __m1, __m64 __m2) { return _mm_cmpgt_pi8 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pcmpeqw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pcmpeqw (__m64 __m1, __m64 __m2) { return _mm_cmpeq_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_pi16 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pcmpgtw ((__v4hi)__m1, (__v4hi)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pcmpgtw (__m64 __m1, __m64 __m2) { return _mm_cmpgt_pi16 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pcmpeqd ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pcmpeqd (__m64 __m1, __m64 __m2) { return _mm_cmpeq_pi32 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_pi32 (__m64 __m1, __m64 __m2) { return (__m64) __builtin_ia32_pcmpgtd ((__v2si)__m1, (__v2si)__m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pcmpgtd (__m64 __m1, __m64 __m2) { return _mm_cmpgt_pi32 (__m1, __m2); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setzero_si64 (void) { return (__m64)0LL; } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_pi32 (int __i1, int __i0) { return (__m64) __builtin_ia32_vec_init_v2si (__i0, __i1); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_pi16 (short __w3, short __w2, short __w1, short __w0) { return (__m64) __builtin_ia32_vec_init_v4hi (__w0, __w1, __w2, __w3); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_pi8 (char __b7, char __b6, char __b5, char __b4, char __b3, char __b2, char __b1, char __b0) { return (__m64) __builtin_ia32_vec_init_v8qi (__b0, __b1, __b2, __b3, __b4, __b5, __b6, __b7); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_pi32 (int __i0, int __i1) { return _mm_set_pi32 (__i1, __i0); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_pi16 (short __w0, short __w1, short __w2, short __w3) { return _mm_set_pi16 (__w3, __w2, __w1, __w0); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_pi8 (char __b0, char __b1, char __b2, char __b3, char __b4, char __b5, char __b6, char __b7) { return _mm_set_pi8 (__b7, __b6, __b5, __b4, __b3, __b2, __b1, __b0); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_pi32 (int __i) { return _mm_set_pi32 (__i, __i); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_pi16 (short __w) { return _mm_set_pi16 (__w, __w, __w, __w); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_pi8 (char __b) { return _mm_set_pi8 (__b, __b, __b, __b, __b, __b, __b, __b); } # 346 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 1 3 4 # 31 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 1 3 4 # 34 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mm_malloc.h" 1 3 4 # 27 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mm_malloc.h" 3 4 # 1 "/usr/include/c++/13/stdlib.h" 1 3 4 # 36 "/usr/include/c++/13/stdlib.h" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 37 "/usr/include/c++/13/stdlib.h" 2 3 4 using std::abort; using std::atexit; using std::exit; using std::at_quick_exit; using std::quick_exit; using std::_Exit; using std::div_t; using std::ldiv_t; using std::abs; using std::atof; using std::atoi; using std::atol; using std::bsearch; using std::calloc; using std::div; using std::free; using std::getenv; using std::labs; using std::ldiv; using std::malloc; using std::mblen; using std::mbstowcs; using std::mbtowc; using std::qsort; using std::rand; using std::realloc; using std::srand; using std::strtod; using std::strtol; using std::strtoul; using std::system; using std::wcstombs; using std::wctomb; # 28 "/usr/lib/gcc/x86_64-linux-gnu/13/include/mm_malloc.h" 2 3 4 extern "C" int posix_memalign (void **, size_t, size_t) throw (); static __inline void * _mm_malloc (size_t __size, size_t __alignment) { void *__ptr; if (__alignment == 1) return malloc (__size); if (__alignment == 2 || (sizeof (void *) == 8 && __alignment == 4)) __alignment = sizeof (void *); if (posix_memalign (&__ptr, __alignment, __size) == 0) return __ptr; else return __null; } static __inline void _mm_free (void *__ptr) { free (__ptr); } # 35 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 2 3 4 enum _mm_hint { _MM_HINT_IT0 = 19, _MM_HINT_IT1 = 18, _MM_HINT_ET0 = 7, _MM_HINT_ET1 = 6, _MM_HINT_T0 = 3, _MM_HINT_T1 = 2, _MM_HINT_T2 = 1, _MM_HINT_NTA = 0 }; # 72 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); typedef float __m128_u __attribute__ ((__vector_size__ (16), __may_alias__, __aligned__ (1))); typedef float __v4sf __attribute__ ((__vector_size__ (16))); # 112 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_undefined_ps (void) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Winit-self" __m128 __Y = __Y; #pragma GCC diagnostic pop return __Y; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setzero_ps (void) { return __extension__ (__m128){ 0.0f, 0.0f, 0.0f, 0.0f }; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_addss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_subss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mul_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_mulss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_div_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_divss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sqrt_ss (__m128 __A) { return (__m128) __builtin_ia32_sqrtss ((__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_rcp_ss (__m128 __A) { return (__m128) __builtin_ia32_rcpss ((__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_rsqrt_ss (__m128 __A) { return (__m128) __builtin_ia32_rsqrtss ((__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_minss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_maxss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_ps (__m128 __A, __m128 __B) { return (__m128) ((__v4sf)__A + (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_ps (__m128 __A, __m128 __B) { return (__m128) ((__v4sf)__A - (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mul_ps (__m128 __A, __m128 __B) { return (__m128) ((__v4sf)__A * (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_div_ps (__m128 __A, __m128 __B) { return (__m128) ((__v4sf)__A / (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sqrt_ps (__m128 __A) { return (__m128) __builtin_ia32_sqrtps ((__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_rcp_ps (__m128 __A) { return (__m128) __builtin_ia32_rcpps ((__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_rsqrt_ps (__m128 __A) { return (__m128) __builtin_ia32_rsqrtps ((__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_minps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_maxps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_and_ps (__m128 __A, __m128 __B) { return __builtin_ia32_andps (__A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_andnot_ps (__m128 __A, __m128 __B) { return __builtin_ia32_andnps (__A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_or_ps (__m128 __A, __m128 __B) { return __builtin_ia32_orps (__A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_xor_ps (__m128 __A, __m128 __B) { return __builtin_ia32_xorps (__A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpeqss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpltss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmple_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpless ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_movss ((__v4sf) __A, (__v4sf) __builtin_ia32_cmpltss ((__v4sf) __B, (__v4sf) __A)); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpge_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_movss ((__v4sf) __A, (__v4sf) __builtin_ia32_cmpless ((__v4sf) __B, (__v4sf) __A)); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpneq_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpneqss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnlt_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpnltss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnle_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpnless ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpngt_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_movss ((__v4sf) __A, (__v4sf) __builtin_ia32_cmpnltss ((__v4sf) __B, (__v4sf) __A)); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnge_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_movss ((__v4sf) __A, (__v4sf) __builtin_ia32_cmpnless ((__v4sf) __B, (__v4sf) __A)); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpord_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpordss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpunord_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpunordss ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpeqps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpltps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmple_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpleps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpgtps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpge_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpgeps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpneq_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpneqps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnlt_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpnltps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnle_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpnleps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpngt_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpngtps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnge_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpngeps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpord_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpordps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpunord_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_cmpunordps ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comieq_ss (__m128 __A, __m128 __B) { return __builtin_ia32_comieq ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comilt_ss (__m128 __A, __m128 __B) { return __builtin_ia32_comilt ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comile_ss (__m128 __A, __m128 __B) { return __builtin_ia32_comile ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comigt_ss (__m128 __A, __m128 __B) { return __builtin_ia32_comigt ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comige_ss (__m128 __A, __m128 __B) { return __builtin_ia32_comige ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comineq_ss (__m128 __A, __m128 __B) { return __builtin_ia32_comineq ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomieq_ss (__m128 __A, __m128 __B) { return __builtin_ia32_ucomieq ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomilt_ss (__m128 __A, __m128 __B) { return __builtin_ia32_ucomilt ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomile_ss (__m128 __A, __m128 __B) { return __builtin_ia32_ucomile ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomigt_ss (__m128 __A, __m128 __B) { return __builtin_ia32_ucomigt ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomige_ss (__m128 __A, __m128 __B) { return __builtin_ia32_ucomige ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomineq_ss (__m128 __A, __m128 __B) { return __builtin_ia32_ucomineq ((__v4sf)__A, (__v4sf)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtss_si32 (__m128 __A) { return __builtin_ia32_cvtss2si ((__v4sf) __A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvt_ss2si (__m128 __A) { return _mm_cvtss_si32 (__A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtss_si64 (__m128 __A) { return __builtin_ia32_cvtss2si64 ((__v4sf) __A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtss_si64x (__m128 __A) { return __builtin_ia32_cvtss2si64 ((__v4sf) __A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtps_pi32 (__m128 __A) { return (__m64) __builtin_ia32_cvtps2pi ((__v4sf) __A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvt_ps2pi (__m128 __A) { return _mm_cvtps_pi32 (__A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttss_si32 (__m128 __A) { return __builtin_ia32_cvttss2si ((__v4sf) __A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtt_ss2si (__m128 __A) { return _mm_cvttss_si32 (__A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttss_si64 (__m128 __A) { return __builtin_ia32_cvttss2si64 ((__v4sf) __A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttss_si64x (__m128 __A) { return __builtin_ia32_cvttss2si64 ((__v4sf) __A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttps_pi32 (__m128 __A) { return (__m64) __builtin_ia32_cvttps2pi ((__v4sf) __A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtt_ps2pi (__m128 __A) { return _mm_cvttps_pi32 (__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi32_ss (__m128 __A, int __B) { return (__m128) __builtin_ia32_cvtsi2ss ((__v4sf) __A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvt_si2ss (__m128 __A, int __B) { return _mm_cvtsi32_ss (__A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64_ss (__m128 __A, long long __B) { return (__m128) __builtin_ia32_cvtsi642ss ((__v4sf) __A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64x_ss (__m128 __A, long long __B) { return (__m128) __builtin_ia32_cvtsi642ss ((__v4sf) __A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpi32_ps (__m128 __A, __m64 __B) { return (__m128) __builtin_ia32_cvtpi2ps ((__v4sf) __A, (__v2si)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvt_pi2ps (__m128 __A, __m64 __B) { return _mm_cvtpi32_ps (__A, __B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpi16_ps (__m64 __A) { __v4hi __sign; __v2si __hisi, __losi; __v4sf __zero, __ra, __rb; __sign = __builtin_ia32_pcmpgtw ((__v4hi)0LL, (__v4hi)__A); __losi = (__v2si) __builtin_ia32_punpcklwd ((__v4hi)__A, __sign); __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, __sign); __zero = (__v4sf) _mm_setzero_ps (); __ra = __builtin_ia32_cvtpi2ps (__zero, __losi); __rb = __builtin_ia32_cvtpi2ps (__ra, __hisi); return (__m128) __builtin_ia32_movlhps (__ra, __rb); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpu16_ps (__m64 __A) { __v2si __hisi, __losi; __v4sf __zero, __ra, __rb; __losi = (__v2si) __builtin_ia32_punpcklwd ((__v4hi)__A, (__v4hi)0LL); __hisi = (__v2si) __builtin_ia32_punpckhwd ((__v4hi)__A, (__v4hi)0LL); __zero = (__v4sf) _mm_setzero_ps (); __ra = __builtin_ia32_cvtpi2ps (__zero, __losi); __rb = __builtin_ia32_cvtpi2ps (__ra, __hisi); return (__m128) __builtin_ia32_movlhps (__ra, __rb); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpi8_ps (__m64 __A) { __v8qi __sign; __sign = __builtin_ia32_pcmpgtb ((__v8qi)0LL, (__v8qi)__A); __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, __sign); return _mm_cvtpi16_ps(__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpu8_ps(__m64 __A) { __A = (__m64) __builtin_ia32_punpcklbw ((__v8qi)__A, (__v8qi)0LL); return _mm_cvtpu16_ps(__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpi32x2_ps(__m64 __A, __m64 __B) { __v4sf __zero = (__v4sf) _mm_setzero_ps (); __v4sf __sfa = __builtin_ia32_cvtpi2ps (__zero, (__v2si)__A); __v4sf __sfb = __builtin_ia32_cvtpi2ps (__sfa, (__v2si)__B); return (__m128) __builtin_ia32_movlhps (__sfa, __sfb); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtps_pi16(__m128 __A) { __v4sf __hisf = (__v4sf)__A; __v4sf __losf = __builtin_ia32_movhlps (__hisf, __hisf); __v2si __hisi = __builtin_ia32_cvtps2pi (__hisf); __v2si __losi = __builtin_ia32_cvtps2pi (__losf); return (__m64) __builtin_ia32_packssdw (__hisi, __losi); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtps_pi8(__m128 __A) { __v4hi __tmp = (__v4hi) _mm_cvtps_pi16 (__A); return (__m64) __builtin_ia32_packsswb (__tmp, (__v4hi)0LL); } # 761 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_unpckhps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_unpcklps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadh_pi (__m128 __A, __m64 const *__P) { return (__m128) __builtin_ia32_loadhps ((__v4sf)__A, (const __v2sf *)__P); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeh_pi (__m64 *__P, __m128 __A) { __builtin_ia32_storehps ((__v2sf *)__P, (__v4sf)__A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movehl_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_movhlps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movelh_ps (__m128 __A, __m128 __B) { return (__m128) __builtin_ia32_movlhps ((__v4sf)__A, (__v4sf)__B); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadl_pi (__m128 __A, __m64 const *__P) { return (__m128) __builtin_ia32_loadlps ((__v4sf)__A, (const __v2sf *)__P); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storel_pi (__m64 *__P, __m128 __A) { __builtin_ia32_storelps ((__v2sf *)__P, (__v4sf)__A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movemask_ps (__m128 __A) { return __builtin_ia32_movmskps ((__v4sf)__A); } extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_getcsr (void) { return __builtin_ia32_stmxcsr (); } extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_GET_EXCEPTION_STATE (void) { return _mm_getcsr() & 0x003f; } extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_GET_EXCEPTION_MASK (void) { return _mm_getcsr() & 0x1f80; } extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_GET_ROUNDING_MODE (void) { return _mm_getcsr() & 0x6000; } extern __inline unsigned int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_GET_FLUSH_ZERO_MODE (void) { return _mm_getcsr() & 0x8000; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setcsr (unsigned int __I) { __builtin_ia32_ldmxcsr (__I); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_SET_EXCEPTION_STATE(unsigned int __mask) { _mm_setcsr((_mm_getcsr() & ~0x003f) | __mask); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_SET_EXCEPTION_MASK (unsigned int __mask) { _mm_setcsr((_mm_getcsr() & ~0x1f80) | __mask); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_SET_ROUNDING_MODE (unsigned int __mode) { _mm_setcsr((_mm_getcsr() & ~0x6000) | __mode); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _MM_SET_FLUSH_ZERO_MODE (unsigned int __mode) { _mm_setcsr((_mm_getcsr() & ~0x8000) | __mode); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_ss (float __F) { return __extension__ (__m128)(__v4sf){ __F, 0.0f, 0.0f, 0.0f }; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_ps (float __F) { return __extension__ (__m128)(__v4sf){ __F, __F, __F, __F }; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_ps1 (float __F) { return _mm_set1_ps (__F); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_ss (float const *__P) { return _mm_set_ss (*__P); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load1_ps (float const *__P) { return _mm_set1_ps (*__P); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_ps1 (float const *__P) { return _mm_load1_ps (__P); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_ps (float const *__P) { return *(__m128 *)__P; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadu_ps (float const *__P) { return *(__m128_u *)__P; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadr_ps (float const *__P) { __v4sf __tmp = *(__v4sf *)__P; return (__m128) __builtin_ia32_shufps (__tmp, __tmp, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_ps (const float __Z, const float __Y, const float __X, const float __W) { return __extension__ (__m128)(__v4sf){ __W, __X, __Y, __Z }; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_ps (float __Z, float __Y, float __X, float __W) { return __extension__ (__m128)(__v4sf){ __Z, __Y, __X, __W }; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_ss (float *__P, __m128 __A) { *__P = ((__v4sf)__A)[0]; } extern __inline float __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtss_f32 (__m128 __A) { return ((__v4sf)__A)[0]; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_ps (float *__P, __m128 __A) { *(__m128 *)__P = __A; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeu_ps (float *__P, __m128 __A) { *(__m128_u *)__P = __A; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store1_ps (float *__P, __m128 __A) { __v4sf __va = (__v4sf)__A; __v4sf __tmp = __builtin_ia32_shufps (__va, __va, (((0) << 6) | ((0) << 4) | ((0) << 2) | (0))); _mm_storeu_ps (__P, __tmp); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_ps1 (float *__P, __m128 __A) { _mm_store1_ps (__P, __A); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storer_ps (float *__P, __m128 __A) { __v4sf __va = (__v4sf)__A; __v4sf __tmp = __builtin_ia32_shufps (__va, __va, (((0) << 6) | ((1) << 4) | ((2) << 2) | (3))); _mm_store_ps (__P, __tmp); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_move_ss (__m128 __A, __m128 __B) { return (__m128) __builtin_shuffle ((__v4sf)__A, (__v4sf)__B, __extension__ (__attribute__((__vector_size__ (16))) int) {4,1,2,3}); } # 1069 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_pi16 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pmaxsw ((__v4hi)__A, (__v4hi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmaxsw (__m64 __A, __m64 __B) { return _mm_max_pi16 (__A, __B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_pu8 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pmaxub ((__v8qi)__A, (__v8qi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmaxub (__m64 __A, __m64 __B) { return _mm_max_pu8 (__A, __B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_pi16 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pminsw ((__v4hi)__A, (__v4hi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pminsw (__m64 __A, __m64 __B) { return _mm_min_pi16 (__A, __B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_pu8 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pminub ((__v8qi)__A, (__v8qi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pminub (__m64 __A, __m64 __B) { return _mm_min_pu8 (__A, __B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movemask_pi8 (__m64 __A) { return __builtin_ia32_pmovmskb ((__v8qi)__A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmovmskb (__m64 __A) { return _mm_movemask_pi8 (__A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mulhi_pu16 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pmulhuw ((__v4hi)__A, (__v4hi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pmulhuw (__m64 __A, __m64 __B) { return _mm_mulhi_pu16 (__A, __B); } # 1171 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_maskmove_si64 (__m64 __A, __m64 __N, char *__P) { typedef long long __v2di __attribute__ ((__vector_size__ (16))); typedef char __v16qi __attribute__ ((__vector_size__ (16))); __v2di __A128 = __extension__ (__v2di) { ((__v1di) __A)[0], 0 }; __v2di __N128 = __extension__ (__v2di) { ((__v1di) __N)[0], 0 }; long unsigned int offset = ((long unsigned int) __P) & 0xf; if (offset) { if (offset > 8) offset = 8; __P = (char *) (((long unsigned int) __P) - offset); switch (offset) { case 1: __A128 = __builtin_ia32_pslldqi128 (__A128, 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 8); break; case 2: __A128 = __builtin_ia32_pslldqi128 (__A128, 2 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 2 * 8); break; case 3: __A128 = __builtin_ia32_pslldqi128 (__A128, 3 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 3 * 8); break; case 4: __A128 = __builtin_ia32_pslldqi128 (__A128, 4 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 4 * 8); break; case 5: __A128 = __builtin_ia32_pslldqi128 (__A128, 5 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 5 * 8); break; case 6: __A128 = __builtin_ia32_pslldqi128 (__A128, 6 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 6 * 8); break; case 7: __A128 = __builtin_ia32_pslldqi128 (__A128, 7 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 7 * 8); break; case 8: __A128 = __builtin_ia32_pslldqi128 (__A128, 8 * 8); __N128 = __builtin_ia32_pslldqi128 (__N128, 8 * 8); break; default: break; } } __builtin_ia32_maskmovdqu ((__v16qi)__A128, (__v16qi)__N128, __P); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_maskmovq (__m64 __A, __m64 __N, char *__P) { _mm_maskmove_si64 (__A, __N, __P); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_avg_pu8 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pavgb ((__v8qi)__A, (__v8qi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pavgb (__m64 __A, __m64 __B) { return _mm_avg_pu8 (__A, __B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_avg_pu16 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_pavgw ((__v4hi)__A, (__v4hi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_pavgw (__m64 __A, __m64 __B) { return _mm_avg_pu16 (__A, __B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sad_pu8 (__m64 __A, __m64 __B) { return (__m64) __builtin_ia32_psadbw ((__v8qi)__A, (__v8qi)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _m_psadbw (__m64 __A, __m64 __B) { return _mm_sad_pu8 (__A, __B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_stream_pi (__m64 *__P, __m64 __A) { __builtin_ia32_movntq ((unsigned long long *)__P, (unsigned long long)__A); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_stream_ps (float *__P, __m128 __A) { __builtin_ia32_movntps (__P, (__v4sf)__A); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sfence (void) { __builtin_ia32_sfence (); } # 1322 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 1 3 4 # 1323 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 2 3 4 # 1334 "/usr/lib/gcc/x86_64-linux-gnu/13/include/xmmintrin.h" 3 4 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_pause (void) { __builtin_ia32_pause (); } # 32 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 2 3 4 # 40 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 3 4 typedef double __v2df __attribute__ ((__vector_size__ (16))); typedef long long __v2di __attribute__ ((__vector_size__ (16))); typedef unsigned long long __v2du __attribute__ ((__vector_size__ (16))); typedef int __v4si __attribute__ ((__vector_size__ (16))); typedef unsigned int __v4su __attribute__ ((__vector_size__ (16))); typedef short __v8hi __attribute__ ((__vector_size__ (16))); typedef unsigned short __v8hu __attribute__ ((__vector_size__ (16))); typedef char __v16qi __attribute__ ((__vector_size__ (16))); typedef signed char __v16qs __attribute__ ((__vector_size__ (16))); typedef unsigned char __v16qu __attribute__ ((__vector_size__ (16))); typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__)); typedef double __m128d __attribute__ ((__vector_size__ (16), __may_alias__)); typedef long long __m128i_u __attribute__ ((__vector_size__ (16), __may_alias__, __aligned__ (1))); typedef double __m128d_u __attribute__ ((__vector_size__ (16), __may_alias__, __aligned__ (1))); extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_sd (double __F) { return __extension__ (__m128d){ __F, 0.0 }; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_pd (double __F) { return __extension__ (__m128d){ __F, __F }; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_pd1 (double __F) { return _mm_set1_pd (__F); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_pd (double __W, double __X) { return __extension__ (__m128d){ __X, __W }; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_pd (double __W, double __X) { return __extension__ (__m128d){ __W, __X }; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_undefined_pd (void) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Winit-self" __m128d __Y = __Y; #pragma GCC diagnostic pop return __Y; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setzero_pd (void) { return __extension__ (__m128d){ 0.0, 0.0 }; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_move_sd (__m128d __A, __m128d __B) { return __extension__ (__m128d) __builtin_shuffle ((__v2df)__A, (__v2df)__B, (__v2di){2, 1}); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_pd (double const *__P) { return *(__m128d *)__P; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadu_pd (double const *__P) { return *(__m128d_u *)__P; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load1_pd (double const *__P) { return _mm_set1_pd (*__P); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_sd (double const *__P) { return _mm_set_sd (*__P); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_pd1 (double const *__P) { return _mm_load1_pd (__P); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadr_pd (double const *__P) { __m128d __tmp = _mm_load_pd (__P); return __builtin_ia32_shufpd (__tmp, __tmp, (((0) << 1) | (1))); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_pd (double *__P, __m128d __A) { *(__m128d *)__P = __A; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeu_pd (double *__P, __m128d __A) { *(__m128d_u *)__P = __A; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_sd (double *__P, __m128d __A) { *__P = ((__v2df)__A)[0]; } extern __inline double __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsd_f64 (__m128d __A) { return ((__v2df)__A)[0]; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storel_pd (double *__P, __m128d __A) { _mm_store_sd (__P, __A); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeh_pd (double *__P, __m128d __A) { *__P = ((__v2df)__A)[1]; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store1_pd (double *__P, __m128d __A) { _mm_store_pd (__P, __builtin_ia32_shufpd (__A, __A, (((0) << 1) | (0)))); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_pd1 (double *__P, __m128d __A) { _mm_store1_pd (__P, __A); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storer_pd (double *__P, __m128d __A) { _mm_store_pd (__P, __builtin_ia32_shufpd (__A, __A, (((0) << 1) | (1)))); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi128_si32 (__m128i __A) { return __builtin_ia32_vec_ext_v4si ((__v4si)__A, 0); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi128_si64 (__m128i __A) { return ((__v2di)__A)[0]; } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi128_si64x (__m128i __A) { return ((__v2di)__A)[0]; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_pd (__m128d __A, __m128d __B) { return (__m128d) ((__v2df)__A + (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_addsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_pd (__m128d __A, __m128d __B) { return (__m128d) ((__v2df)__A - (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_subsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mul_pd (__m128d __A, __m128d __B) { return (__m128d) ((__v2df)__A * (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mul_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_mulsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_div_pd (__m128d __A, __m128d __B) { return (__m128d) ((__v2df)__A / (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_div_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_divsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sqrt_pd (__m128d __A) { return (__m128d)__builtin_ia32_sqrtpd ((__v2df)__A); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sqrt_sd (__m128d __A, __m128d __B) { __v2df __tmp = __builtin_ia32_movsd ((__v2df)__A, (__v2df)__B); return (__m128d)__builtin_ia32_sqrtsd ((__v2df)__tmp); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_minpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_minsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_maxpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_maxsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_and_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_andpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_andnot_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_andnpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_or_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_orpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_xor_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_xorpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpeqpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpltpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmple_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmplepd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpgtpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpge_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpgepd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpneq_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpneqpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnlt_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpnltpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnle_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpnlepd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpngt_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpngtpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnge_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpngepd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpord_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpordpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpunord_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpunordpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpeqsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpltsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmple_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmplesd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_sd (__m128d __A, __m128d __B) { return (__m128d) __builtin_ia32_movsd ((__v2df) __A, (__v2df) __builtin_ia32_cmpltsd ((__v2df) __B, (__v2df) __A)); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpge_sd (__m128d __A, __m128d __B) { return (__m128d) __builtin_ia32_movsd ((__v2df) __A, (__v2df) __builtin_ia32_cmplesd ((__v2df) __B, (__v2df) __A)); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpneq_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpneqsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnlt_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpnltsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnle_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpnlesd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpngt_sd (__m128d __A, __m128d __B) { return (__m128d) __builtin_ia32_movsd ((__v2df) __A, (__v2df) __builtin_ia32_cmpnltsd ((__v2df) __B, (__v2df) __A)); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpnge_sd (__m128d __A, __m128d __B) { return (__m128d) __builtin_ia32_movsd ((__v2df) __A, (__v2df) __builtin_ia32_cmpnlesd ((__v2df) __B, (__v2df) __A)); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpord_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpordsd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpunord_sd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_cmpunordsd ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comieq_sd (__m128d __A, __m128d __B) { return __builtin_ia32_comisdeq ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comilt_sd (__m128d __A, __m128d __B) { return __builtin_ia32_comisdlt ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comile_sd (__m128d __A, __m128d __B) { return __builtin_ia32_comisdle ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comigt_sd (__m128d __A, __m128d __B) { return __builtin_ia32_comisdgt ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comige_sd (__m128d __A, __m128d __B) { return __builtin_ia32_comisdge ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_comineq_sd (__m128d __A, __m128d __B) { return __builtin_ia32_comisdneq ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomieq_sd (__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdeq ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomilt_sd (__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdlt ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomile_sd (__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdle ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomigt_sd (__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdgt ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomige_sd (__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdge ((__v2df)__A, (__v2df)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_ucomineq_sd (__m128d __A, __m128d __B) { return __builtin_ia32_ucomisdneq ((__v2df)__A, (__v2df)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_epi64x (long long __q1, long long __q0) { return __extension__ (__m128i)(__v2di){ __q0, __q1 }; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_epi64 (__m64 __q1, __m64 __q0) { return _mm_set_epi64x ((long long)__q1, (long long)__q0); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_epi32 (int __q3, int __q2, int __q1, int __q0) { return __extension__ (__m128i)(__v4si){ __q0, __q1, __q2, __q3 }; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_epi16 (short __q7, short __q6, short __q5, short __q4, short __q3, short __q2, short __q1, short __q0) { return __extension__ (__m128i)(__v8hi){ __q0, __q1, __q2, __q3, __q4, __q5, __q6, __q7 }; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set_epi8 (char __q15, char __q14, char __q13, char __q12, char __q11, char __q10, char __q09, char __q08, char __q07, char __q06, char __q05, char __q04, char __q03, char __q02, char __q01, char __q00) { return __extension__ (__m128i)(__v16qi){ __q00, __q01, __q02, __q03, __q04, __q05, __q06, __q07, __q08, __q09, __q10, __q11, __q12, __q13, __q14, __q15 }; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_epi64x (long long __A) { return _mm_set_epi64x (__A, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_epi64 (__m64 __A) { return _mm_set_epi64 (__A, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_epi32 (int __A) { return _mm_set_epi32 (__A, __A, __A, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_epi16 (short __A) { return _mm_set_epi16 (__A, __A, __A, __A, __A, __A, __A, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_set1_epi8 (char __A) { return _mm_set_epi8 (__A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_epi64 (__m64 __q0, __m64 __q1) { return _mm_set_epi64 (__q1, __q0); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_epi32 (int __q0, int __q1, int __q2, int __q3) { return _mm_set_epi32 (__q3, __q2, __q1, __q0); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_epi16 (short __q0, short __q1, short __q2, short __q3, short __q4, short __q5, short __q6, short __q7) { return _mm_set_epi16 (__q7, __q6, __q5, __q4, __q3, __q2, __q1, __q0); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setr_epi8 (char __q00, char __q01, char __q02, char __q03, char __q04, char __q05, char __q06, char __q07, char __q08, char __q09, char __q10, char __q11, char __q12, char __q13, char __q14, char __q15) { return _mm_set_epi8 (__q15, __q14, __q13, __q12, __q11, __q10, __q09, __q08, __q07, __q06, __q05, __q04, __q03, __q02, __q01, __q00); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_load_si128 (__m128i const *__P) { return *__P; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadu_si128 (__m128i_u const *__P) { return *__P; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadl_epi64 (__m128i_u const *__P) { return _mm_set_epi64 ((__m64)0LL, *(__m64_u *)__P); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadu_si64 (void const *__P) { return _mm_loadl_epi64 ((__m128i_u *)__P); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadu_si32 (void const *__P) { return _mm_set_epi32 (0, 0, 0, (*(__m32_u *)__P)[0]); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadu_si16 (void const *__P) { return _mm_set_epi16 (0, 0, 0, 0, 0, 0, 0, (*(__m16_u *)__P)[0]); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_store_si128 (__m128i *__P, __m128i __B) { *__P = __B; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeu_si128 (__m128i_u *__P, __m128i __B) { *__P = __B; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storel_epi64 (__m128i_u *__P, __m128i __B) { *(__m64_u *)__P = (__m64) ((__v2di)__B)[0]; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeu_si64 (void *__P, __m128i __B) { _mm_storel_epi64 ((__m128i_u *)__P, __B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeu_si32 (void *__P, __m128i __B) { *(__m32_u *)__P = (__m32) ((__v4si)__B)[0]; } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_storeu_si16 (void *__P, __m128i __B) { *(__m16_u *)__P = (__m16) ((__v8hi)__B)[0]; } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movepi64_pi64 (__m128i __B) { return (__m64) ((__v2di)__B)[0]; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movpi64_epi64 (__m64 __A) { return _mm_set_epi64 ((__m64)0LL, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_move_epi64 (__m128i __A) { return (__m128i)__builtin_ia32_movq128 ((__v2di) __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_undefined_si128 (void) { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Winit-self" __m128i __Y = __Y; #pragma GCC diagnostic pop return __Y; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_setzero_si128 (void) { return __extension__ (__m128i)(__v4si){ 0, 0, 0, 0 }; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtepi32_pd (__m128i __A) { return (__m128d)__builtin_ia32_cvtdq2pd ((__v4si) __A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtepi32_ps (__m128i __A) { return (__m128)__builtin_ia32_cvtdq2ps ((__v4si) __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpd_epi32 (__m128d __A) { return (__m128i)__builtin_ia32_cvtpd2dq ((__v2df) __A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpd_pi32 (__m128d __A) { return (__m64)__builtin_ia32_cvtpd2pi ((__v2df) __A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpd_ps (__m128d __A) { return (__m128)__builtin_ia32_cvtpd2ps ((__v2df) __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttpd_epi32 (__m128d __A) { return (__m128i)__builtin_ia32_cvttpd2dq ((__v2df) __A); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttpd_pi32 (__m128d __A) { return (__m64)__builtin_ia32_cvttpd2pi ((__v2df) __A); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtpi32_pd (__m64 __A) { return (__m128d)__builtin_ia32_cvtpi2pd ((__v2si) __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtps_epi32 (__m128 __A) { return (__m128i)__builtin_ia32_cvtps2dq ((__v4sf) __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttps_epi32 (__m128 __A) { return (__m128i)__builtin_ia32_cvttps2dq ((__v4sf) __A); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtps_pd (__m128 __A) { return (__m128d)__builtin_ia32_cvtps2pd ((__v4sf) __A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsd_si32 (__m128d __A) { return __builtin_ia32_cvtsd2si ((__v2df) __A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsd_si64 (__m128d __A) { return __builtin_ia32_cvtsd2si64 ((__v2df) __A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsd_si64x (__m128d __A) { return __builtin_ia32_cvtsd2si64 ((__v2df) __A); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttsd_si32 (__m128d __A) { return __builtin_ia32_cvttsd2si ((__v2df) __A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttsd_si64 (__m128d __A) { return __builtin_ia32_cvttsd2si64 ((__v2df) __A); } extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvttsd_si64x (__m128d __A) { return __builtin_ia32_cvttsd2si64 ((__v2df) __A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsd_ss (__m128 __A, __m128d __B) { return (__m128)__builtin_ia32_cvtsd2ss ((__v4sf) __A, (__v2df) __B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi32_sd (__m128d __A, int __B) { return (__m128d)__builtin_ia32_cvtsi2sd ((__v2df) __A, __B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64_sd (__m128d __A, long long __B) { return (__m128d)__builtin_ia32_cvtsi642sd ((__v2df) __A, __B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64x_sd (__m128d __A, long long __B) { return (__m128d)__builtin_ia32_cvtsi642sd ((__v2df) __A, __B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtss_sd (__m128d __A, __m128 __B) { return (__m128d)__builtin_ia32_cvtss2sd ((__v2df) __A, (__v4sf)__B); } # 961 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 3 4 extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_unpckhpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_pd (__m128d __A, __m128d __B) { return (__m128d)__builtin_ia32_unpcklpd ((__v2df)__A, (__v2df)__B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadh_pd (__m128d __A, double const *__B) { return (__m128d)__builtin_ia32_loadhpd ((__v2df)__A, __B); } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_loadl_pd (__m128d __A, double const *__B) { return (__m128d)__builtin_ia32_loadlpd ((__v2df)__A, __B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movemask_pd (__m128d __A) { return __builtin_ia32_movmskpd ((__v2df)__A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_packs_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_packsswb128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_packs_epi32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_packssdw128 ((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_packus_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_packuswb128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_epi8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpckhbw128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpckhwd128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_epi32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpckhdq128 ((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpackhi_epi64 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpckhqdq128 ((__v2di)__A, (__v2di)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_epi8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpcklbw128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpcklwd128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_epi32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpckldq128 ((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_unpacklo_epi64 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_punpcklqdq128 ((__v2di)__A, (__v2di)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_epi8 (__m128i __A, __m128i __B) { return (__m128i) ((__v16qu)__A + (__v16qu)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_epi16 (__m128i __A, __m128i __B) { return (__m128i) ((__v8hu)__A + (__v8hu)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_epi32 (__m128i __A, __m128i __B) { return (__m128i) ((__v4su)__A + (__v4su)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_add_epi64 (__m128i __A, __m128i __B) { return (__m128i) ((__v2du)__A + (__v2du)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_epi8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_paddsb128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_paddsw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_epu8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_paddusb128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_adds_epu16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_paddusw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_epi8 (__m128i __A, __m128i __B) { return (__m128i) ((__v16qu)__A - (__v16qu)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_epi16 (__m128i __A, __m128i __B) { return (__m128i) ((__v8hu)__A - (__v8hu)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_epi32 (__m128i __A, __m128i __B) { return (__m128i) ((__v4su)__A - (__v4su)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sub_epi64 (__m128i __A, __m128i __B) { return (__m128i) ((__v2du)__A - (__v2du)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_epi8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psubsb128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psubsw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_epu8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psubusb128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_subs_epu16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psubusw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_madd_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pmaddwd128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mulhi_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pmulhw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mullo_epi16 (__m128i __A, __m128i __B) { return (__m128i) ((__v8hu)__A * (__v8hu)__B); } extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mul_su32 (__m64 __A, __m64 __B) { return (__m64)__builtin_ia32_pmuludq ((__v2si)__A, (__v2si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mul_epu32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pmuludq128 ((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_slli_epi16 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psllwi128 ((__v8hi)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_slli_epi32 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_pslldi128 ((__v4si)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_slli_epi64 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psllqi128 ((__v2di)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srai_epi16 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psrawi128 ((__v8hi)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srai_epi32 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psradi128 ((__v4si)__A, __B); } # 1248 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 3 4 extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srli_epi16 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psrlwi128 ((__v8hi)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srli_epi32 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psrldi128 ((__v4si)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srli_epi64 (__m128i __A, int __B) { return (__m128i)__builtin_ia32_psrlqi128 ((__v2di)__A, __B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sll_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psllw128((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sll_epi32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pslld128((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sll_epi64 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psllq128((__v2di)__A, (__v2di)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sra_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psraw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sra_epi32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psrad128 ((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srl_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psrlw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srl_epi32 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psrld128 ((__v4si)__A, (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_srl_epi64 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psrlq128 ((__v2di)__A, (__v2di)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_and_si128 (__m128i __A, __m128i __B) { return (__m128i) ((__v2du)__A & (__v2du)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_andnot_si128 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pandn128 ((__v2di)__A, (__v2di)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_or_si128 (__m128i __A, __m128i __B) { return (__m128i) ((__v2du)__A | (__v2du)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_xor_si128 (__m128i __A, __m128i __B) { return (__m128i) ((__v2du)__A ^ (__v2du)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_epi8 (__m128i __A, __m128i __B) { return (__m128i) ((__v16qi)__A == (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_epi16 (__m128i __A, __m128i __B) { return (__m128i) ((__v8hi)__A == (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpeq_epi32 (__m128i __A, __m128i __B) { return (__m128i) ((__v4si)__A == (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_epi8 (__m128i __A, __m128i __B) { return (__m128i) ((__v16qs)__A < (__v16qs)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_epi16 (__m128i __A, __m128i __B) { return (__m128i) ((__v8hi)__A < (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmplt_epi32 (__m128i __A, __m128i __B) { return (__m128i) ((__v4si)__A < (__v4si)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_epi8 (__m128i __A, __m128i __B) { return (__m128i) ((__v16qs)__A > (__v16qs)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_epi16 (__m128i __A, __m128i __B) { return (__m128i) ((__v8hi)__A > (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cmpgt_epi32 (__m128i __A, __m128i __B) { return (__m128i) ((__v4si)__A > (__v4si)__B); } # 1412 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 3 4 extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pmaxsw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_max_epu8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pmaxub128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_epi16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pminsw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_min_epu8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pminub128 ((__v16qi)__A, (__v16qi)__B); } extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_movemask_epi8 (__m128i __A) { return __builtin_ia32_pmovmskb128 ((__v16qi)__A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mulhi_epu16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pmulhuw128 ((__v8hi)__A, (__v8hi)__B); } # 1475 "/usr/lib/gcc/x86_64-linux-gnu/13/include/emmintrin.h" 3 4 extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_maskmoveu_si128 (__m128i __A, __m128i __B, char *__C) { __builtin_ia32_maskmovdqu ((__v16qi)__A, (__v16qi)__B, __C); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_avg_epu8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pavgb128 ((__v16qi)__A, (__v16qi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_avg_epu16 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_pavgw128 ((__v8hi)__A, (__v8hi)__B); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_sad_epu8 (__m128i __A, __m128i __B) { return (__m128i)__builtin_ia32_psadbw128 ((__v16qi)__A, (__v16qi)__B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_stream_si32 (int *__A, int __B) { __builtin_ia32_movnti (__A, __B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_stream_si64 (long long int *__A, long long int __B) { __builtin_ia32_movnti64 (__A, __B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_stream_si128 (__m128i *__A, __m128i __B) { __builtin_ia32_movntdq ((__v2di *)__A, (__v2di)__B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_stream_pd (double *__A, __m128d __B) { __builtin_ia32_movntpd (__A, (__v2df)__B); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_clflush (void const *__A) { __builtin_ia32_clflush (__A); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_lfence (void) { __builtin_ia32_lfence (); } extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_mfence (void) { __builtin_ia32_mfence (); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi32_si128 (int __A) { return _mm_set_epi32 (0, 0, 0, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64_si128 (long long __A) { return _mm_set_epi64x (0, __A); } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_cvtsi64x_si128 (long long __A) { return _mm_set_epi64x (0, __A); } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_castpd_ps(__m128d __A) { return (__m128) __A; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_castpd_si128(__m128d __A) { return (__m128i) __A; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_castps_pd(__m128 __A) { return (__m128d) __A; } extern __inline __m128i __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_castps_si128(__m128 __A) { return (__m128i) __A; } extern __inline __m128 __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_castsi128_ps(__m128i __A) { return (__m128) __A; } extern __inline __m128d __attribute__((__gnu_inline__, __always_inline__, __artificial__)) _mm_castsi128_pd(__m128i __A) { return (__m128d) __A; } # 347 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 2 3 4 # 364 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 3 4 } # 475 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 3 4 namespace Eigen { inline static const char *SimdInstructionSetsInUse(void) { # 491 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 3 4 return "SSE, SSE2"; # 507 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ConfigureVectorization.h" 3 4 } } # 23 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 50 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 3 4 # 1 "/usr/include/c++/13/complex" 1 3 4 # 39 "/usr/include/c++/13/complex" 3 4 # 40 "/usr/include/c++/13/complex" 3 # 1 "/usr/include/c++/13/cmath" 1 3 # 39 "/usr/include/c++/13/cmath" 3 # 40 "/usr/include/c++/13/cmath" 3 # 45 "/usr/include/c++/13/complex" 2 3 # 54 "/usr/include/c++/13/complex" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 67 "/usr/include/c++/13/complex" 3 template<typename _Tp> class complex; template<> class complex<float>; template<> class complex<double>; template<> class complex<long double>; template<typename _Tp> _Tp abs(const complex<_Tp>&); template<typename _Tp> _Tp arg(const complex<_Tp>&); template<typename _Tp> _Tp constexpr norm(const complex<_Tp>&); template<typename _Tp> constexpr complex<_Tp> conj(const complex<_Tp>&); template<typename _Tp> complex<_Tp> polar(const _Tp&, const _Tp& = 0); template<typename _Tp> complex<_Tp> cos(const complex<_Tp>&); template<typename _Tp> complex<_Tp> cosh(const complex<_Tp>&); template<typename _Tp> complex<_Tp> exp(const complex<_Tp>&); template<typename _Tp> complex<_Tp> log(const complex<_Tp>&); template<typename _Tp> complex<_Tp> log10(const complex<_Tp>&); template<typename _Tp> complex<_Tp> pow(const complex<_Tp>&, int); template<typename _Tp> complex<_Tp> pow(const complex<_Tp>&, const _Tp&); template<typename _Tp> complex<_Tp> pow(const complex<_Tp>&, const complex<_Tp>&); template<typename _Tp> complex<_Tp> pow(const _Tp&, const complex<_Tp>&); template<typename _Tp> complex<_Tp> sin(const complex<_Tp>&); template<typename _Tp> complex<_Tp> sinh(const complex<_Tp>&); template<typename _Tp> complex<_Tp> sqrt(const complex<_Tp>&); template<typename _Tp> complex<_Tp> tan(const complex<_Tp>&); template<typename _Tp> complex<_Tp> tanh(const complex<_Tp>&); # 126 "/usr/include/c++/13/complex" 3 template<typename _Tp> class complex { public: typedef _Tp value_type; constexpr complex(const _Tp& __r = _Tp(), const _Tp& __i = _Tp()) : _M_real(__r), _M_imag(__i) { } constexpr complex(const complex&) = default; template<typename _Up> constexpr complex(const complex<_Up>& __z) : _M_real(_Tp(__z.real())), _M_imag(_Tp(__z.imag())) { } __attribute ((__abi_tag__ ("cxx11"))) constexpr _Tp real() const { return _M_real; } __attribute ((__abi_tag__ ("cxx11"))) constexpr _Tp imag() const { return _M_imag; } # 181 "/usr/include/c++/13/complex" 3 constexpr void real(_Tp __val) { _M_real = __val; } constexpr void imag(_Tp __val) { _M_imag = __val; } constexpr complex<_Tp>& operator=(const _Tp&); constexpr complex<_Tp>& operator+=(const _Tp& __t) { _M_real += __t; return *this; } constexpr complex<_Tp>& operator-=(const _Tp& __t) { _M_real -= __t; return *this; } constexpr complex<_Tp>& operator*=(const _Tp&); constexpr complex<_Tp>& operator/=(const _Tp&); constexpr complex& operator=(const complex&) = default; template<typename _Up> constexpr complex<_Tp>& operator=(const complex<_Up>&); template<typename _Up> constexpr complex<_Tp>& operator+=(const complex<_Up>&); template<typename _Up> constexpr complex<_Tp>& operator-=(const complex<_Up>&); template<typename _Up> constexpr complex<_Tp>& operator*=(const complex<_Up>&); template<typename _Up> constexpr complex<_Tp>& operator/=(const complex<_Up>&); constexpr complex __rep() const { return *this; } private: _Tp _M_real; _Tp _M_imag; }; template<typename _Tp> constexpr complex<_Tp>& complex<_Tp>::operator=(const _Tp& __t) { _M_real = __t; _M_imag = _Tp(); return *this; } template<typename _Tp> constexpr complex<_Tp>& complex<_Tp>::operator*=(const _Tp& __t) { _M_real *= __t; _M_imag *= __t; return *this; } template<typename _Tp> constexpr complex<_Tp>& complex<_Tp>::operator/=(const _Tp& __t) { _M_real /= __t; _M_imag /= __t; return *this; } template<typename _Tp> template<typename _Up> constexpr complex<_Tp>& complex<_Tp>::operator=(const complex<_Up>& __z) { _M_real = __z.real(); _M_imag = __z.imag(); return *this; } template<typename _Tp> template<typename _Up> constexpr complex<_Tp>& complex<_Tp>::operator+=(const complex<_Up>& __z) { _M_real += __z.real(); _M_imag += __z.imag(); return *this; } template<typename _Tp> template<typename _Up> constexpr complex<_Tp>& complex<_Tp>::operator-=(const complex<_Up>& __z) { _M_real -= __z.real(); _M_imag -= __z.imag(); return *this; } template<typename _Tp> template<typename _Up> constexpr complex<_Tp>& complex<_Tp>::operator*=(const complex<_Up>& __z) { const _Tp __r = _M_real * __z.real() - _M_imag * __z.imag(); _M_imag = _M_real * __z.imag() + _M_imag * __z.real(); _M_real = __r; return *this; } template<typename _Tp> template<typename _Up> constexpr complex<_Tp>& complex<_Tp>::operator/=(const complex<_Up>& __z) { const _Tp __r = _M_real * __z.real() + _M_imag * __z.imag(); const _Tp __n = std::norm(__z); _M_imag = (_M_imag * __z.real() - _M_real * __z.imag()) / __n; _M_real = __r / __n; return *this; } template<typename _Tp> inline constexpr complex<_Tp> operator+(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r += __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator+(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r += __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator+(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __y; __r += __x; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator-(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r -= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator-(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r -= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator-(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = -__y; __r += __x; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator*(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r *= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator*(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r *= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator*(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __y; __r *= __x; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator/(const complex<_Tp>& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r /= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator/(const complex<_Tp>& __x, const _Tp& __y) { complex<_Tp> __r = __x; __r /= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator/(const _Tp& __x, const complex<_Tp>& __y) { complex<_Tp> __r = __x; __r /= __y; return __r; } template<typename _Tp> inline constexpr complex<_Tp> operator+(const complex<_Tp>& __x) { return __x; } template<typename _Tp> inline constexpr complex<_Tp> operator-(const complex<_Tp>& __x) { return complex<_Tp>(-__x.real(), -__x.imag()); } template<typename _Tp> inline constexpr bool operator==(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __x.real() == __y.real() && __x.imag() == __y.imag(); } template<typename _Tp> inline constexpr bool operator==(const complex<_Tp>& __x, const _Tp& __y) { return __x.real() == __y && __x.imag() == _Tp(); } # 502 "/usr/include/c++/13/complex" 3 template<typename _Tp, typename _CharT, class _Traits> basic_istream<_CharT, _Traits>& operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x) { bool __fail = true; _CharT __ch; if (__is >> __ch) { if (_Traits::eq(__ch, __is.widen('('))) { _Tp __u; if (__is >> __u >> __ch) { const _CharT __rparen = __is.widen(')'); if (_Traits::eq(__ch, __rparen)) { __x = __u; __fail = false; } else if (_Traits::eq(__ch, __is.widen(','))) { _Tp __v; if (__is >> __v >> __ch) { if (_Traits::eq(__ch, __rparen)) { __x = complex<_Tp>(__u, __v); __fail = false; } else __is.putback(__ch); } } else __is.putback(__ch); } } else { __is.putback(__ch); _Tp __u; if (__is >> __u) { __x = __u; __fail = false; } } } if (__fail) __is.setstate(ios_base::failbit); return __is; } template<typename _Tp, typename _CharT, class _Traits> basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __os, const complex<_Tp>& __x) { basic_ostringstream<_CharT, _Traits> __s; __s.flags(__os.flags()); __s.imbue(__os.getloc()); __s.precision(__os.precision()); __s << '(' << __x.real() << ',' << __x.imag() << ')'; return __os << __s.str(); } template<typename _Tp> constexpr _Tp real(const complex<_Tp>& __z) { return __z.real(); } template<typename _Tp> constexpr _Tp imag(const complex<_Tp>& __z) { return __z.imag(); } # 860 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline _Tp __complex_abs(const complex<_Tp>& __z) { _Tp __x = __z.real(); _Tp __y = __z.imag(); const _Tp __s = std::max(abs(__x), abs(__y)); if (__s == _Tp()) return __s; __x /= __s; __y /= __s; return __s * sqrt(__x * __x + __y * __y); } inline float __complex_abs(__complex__ float __z) { return __builtin_cabsf(__z); } inline double __complex_abs(__complex__ double __z) { return __builtin_cabs(__z); } inline long double __complex_abs(const __complex__ long double& __z) { return __builtin_cabsl(__z); } template<typename _Tp> inline _Tp abs(const complex<_Tp>& __z) { return __complex_abs(__z.__rep()); } # 896 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline _Tp __complex_arg(const complex<_Tp>& __z) { return atan2(__z.imag(), __z.real()); } inline float __complex_arg(__complex__ float __z) { return __builtin_cargf(__z); } inline double __complex_arg(__complex__ double __z) { return __builtin_carg(__z); } inline long double __complex_arg(const __complex__ long double& __z) { return __builtin_cargl(__z); } template<typename _Tp> inline _Tp arg(const complex<_Tp>& __z) { return __complex_arg(__z.__rep()); } # 926 "/usr/include/c++/13/complex" 3 template<bool> struct _Norm_helper { template<typename _Tp> static inline constexpr _Tp _S_do_it(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return __x * __x + __y * __y; } }; template<> struct _Norm_helper<true> { template<typename _Tp> static inline constexpr _Tp _S_do_it(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return __x * __x + __y * __y; } }; template<typename _Tp> inline constexpr _Tp norm(const complex<_Tp>& __z) { return _Norm_helper<__is_floating<_Tp>::__value && !0>::_S_do_it(__z); } template<typename _Tp> inline complex<_Tp> polar(const _Tp& __rho, const _Tp& __theta) { do { if (std::__is_constant_evaluated() && !bool(__rho >= 0)) __builtin_unreachable(); } while (false); return complex<_Tp>(__rho * cos(__theta), __rho * sin(__theta)); } template<typename _Tp> inline constexpr complex<_Tp> conj(const complex<_Tp>& __z) { return complex<_Tp>(__z.real(), -__z.imag()); } template<typename _Tp> inline complex<_Tp> __complex_cos(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(cos(__x) * cosh(__y), -sin(__x) * sinh(__y)); } inline __complex__ float __complex_cos(__complex__ float __z) { return __builtin_ccosf(__z); } inline __complex__ double __complex_cos(__complex__ double __z) { return __builtin_ccos(__z); } inline __complex__ long double __complex_cos(const __complex__ long double& __z) { return __builtin_ccosl(__z); } template<typename _Tp> inline complex<_Tp> cos(const complex<_Tp>& __z) { return __complex_cos(__z.__rep()); } template<typename _Tp> inline complex<_Tp> __complex_cosh(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(cosh(__x) * cos(__y), sinh(__x) * sin(__y)); } inline __complex__ float __complex_cosh(__complex__ float __z) { return __builtin_ccoshf(__z); } inline __complex__ double __complex_cosh(__complex__ double __z) { return __builtin_ccosh(__z); } inline __complex__ long double __complex_cosh(const __complex__ long double& __z) { return __builtin_ccoshl(__z); } template<typename _Tp> inline complex<_Tp> cosh(const complex<_Tp>& __z) { return __complex_cosh(__z.__rep()); } template<typename _Tp> inline complex<_Tp> __complex_exp(const complex<_Tp>& __z) { return std::polar<_Tp>(exp(__z.real()), __z.imag()); } inline __complex__ float __complex_exp(__complex__ float __z) { return __builtin_cexpf(__z); } inline __complex__ double __complex_exp(__complex__ double __z) { return __builtin_cexp(__z); } inline __complex__ long double __complex_exp(const __complex__ long double& __z) { return __builtin_cexpl(__z); } template<typename _Tp> inline complex<_Tp> exp(const complex<_Tp>& __z) { return __complex_exp(__z.__rep()); } # 1063 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline complex<_Tp> __complex_log(const complex<_Tp>& __z) { return complex<_Tp>(log(std::abs(__z)), std::arg(__z)); } inline __complex__ float __complex_log(__complex__ float __z) { return __builtin_clogf(__z); } inline __complex__ double __complex_log(__complex__ double __z) { return __builtin_clog(__z); } inline __complex__ long double __complex_log(const __complex__ long double& __z) { return __builtin_clogl(__z); } template<typename _Tp> inline complex<_Tp> log(const complex<_Tp>& __z) { return __complex_log(__z.__rep()); } template<typename _Tp> inline complex<_Tp> log10(const complex<_Tp>& __z) { return std::log(__z) / log(_Tp(10.0)); } template<typename _Tp> inline complex<_Tp> __complex_sin(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(sin(__x) * cosh(__y), cos(__x) * sinh(__y)); } inline __complex__ float __complex_sin(__complex__ float __z) { return __builtin_csinf(__z); } inline __complex__ double __complex_sin(__complex__ double __z) { return __builtin_csin(__z); } inline __complex__ long double __complex_sin(const __complex__ long double& __z) { return __builtin_csinl(__z); } template<typename _Tp> inline complex<_Tp> sin(const complex<_Tp>& __z) { return __complex_sin(__z.__rep()); } template<typename _Tp> inline complex<_Tp> __complex_sinh(const complex<_Tp>& __z) { const _Tp __x = __z.real(); const _Tp __y = __z.imag(); return complex<_Tp>(sinh(__x) * cos(__y), cosh(__x) * sin(__y)); } inline __complex__ float __complex_sinh(__complex__ float __z) { return __builtin_csinhf(__z); } inline __complex__ double __complex_sinh(__complex__ double __z) { return __builtin_csinh(__z); } inline __complex__ long double __complex_sinh(const __complex__ long double& __z) { return __builtin_csinhl(__z); } template<typename _Tp> inline complex<_Tp> sinh(const complex<_Tp>& __z) { return __complex_sinh(__z.__rep()); } # 1155 "/usr/include/c++/13/complex" 3 template<typename _Tp> complex<_Tp> __complex_sqrt(const complex<_Tp>& __z) { _Tp __x = __z.real(); _Tp __y = __z.imag(); if (__x == _Tp()) { _Tp __t = sqrt(abs(__y) / 2); return complex<_Tp>(__t, __y < _Tp() ? -__t : __t); } else { _Tp __t = sqrt(2 * (std::abs(__z) + abs(__x))); _Tp __u = __t / 2; return __x > _Tp() ? complex<_Tp>(__u, __y / __t) : complex<_Tp>(abs(__y) / __t, __y < _Tp() ? -__u : __u); } } inline __complex__ float __complex_sqrt(__complex__ float __z) { return __builtin_csqrtf(__z); } inline __complex__ double __complex_sqrt(__complex__ double __z) { return __builtin_csqrt(__z); } inline __complex__ long double __complex_sqrt(const __complex__ long double& __z) { return __builtin_csqrtl(__z); } template<typename _Tp> inline complex<_Tp> sqrt(const complex<_Tp>& __z) { return __complex_sqrt(__z.__rep()); } # 1199 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline complex<_Tp> __complex_tan(const complex<_Tp>& __z) { return std::sin(__z) / std::cos(__z); } inline __complex__ float __complex_tan(__complex__ float __z) { return __builtin_ctanf(__z); } inline __complex__ double __complex_tan(__complex__ double __z) { return __builtin_ctan(__z); } inline __complex__ long double __complex_tan(const __complex__ long double& __z) { return __builtin_ctanl(__z); } template<typename _Tp> inline complex<_Tp> tan(const complex<_Tp>& __z) { return __complex_tan(__z.__rep()); } # 1227 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline complex<_Tp> __complex_tanh(const complex<_Tp>& __z) { return std::sinh(__z) / std::cosh(__z); } inline __complex__ float __complex_tanh(__complex__ float __z) { return __builtin_ctanhf(__z); } inline __complex__ double __complex_tanh(__complex__ double __z) { return __builtin_ctanh(__z); } inline __complex__ long double __complex_tanh(const __complex__ long double& __z) { return __builtin_ctanhl(__z); } template<typename _Tp> inline complex<_Tp> tanh(const complex<_Tp>& __z) { return __complex_tanh(__z.__rep()); } # 1256 "/usr/include/c++/13/complex" 3 template<typename _Tp> complex<_Tp> __complex_pow_unsigned(complex<_Tp> __x, unsigned __n) { complex<_Tp> __y = __n % 2 ? __x : complex<_Tp>(1); while (__n >>= 1) { __x *= __x; if (__n % 2) __y *= __x; } return __y; } template<typename _Tp> inline complex<_Tp> pow(const complex<_Tp>& __z, int __n) { return __n < 0 ? complex<_Tp>(1) / std::__complex_pow_unsigned(__z, -(unsigned)__n) : std::__complex_pow_unsigned(__z, __n); } template<typename _Tp> complex<_Tp> pow(const complex<_Tp>& __x, const _Tp& __y) { if (__x.imag() == _Tp() && __x.real() > _Tp()) return pow(__x.real(), __y); complex<_Tp> __t = std::log(__x); return std::polar<_Tp>(exp(__y * __t.real()), __y * __t.imag()); } template<typename _Tp> inline complex<_Tp> __complex_pow(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __x == _Tp() ? _Tp() : std::exp(__y * std::log(__x)); } inline __complex__ float __complex_pow(__complex__ float __x, __complex__ float __y) { return __builtin_cpowf(__x, __y); } inline __complex__ double __complex_pow(__complex__ double __x, __complex__ double __y) { return __builtin_cpow(__x, __y); } inline __complex__ long double __complex_pow(const __complex__ long double& __x, const __complex__ long double& __y) { return __builtin_cpowl(__x, __y); } template<typename _Tp> inline complex<_Tp> pow(const complex<_Tp>& __x, const complex<_Tp>& __y) { return __complex_pow(__x.__rep(), __y.__rep()); } template<typename _Tp> inline complex<_Tp> pow(const _Tp& __x, const complex<_Tp>& __y) { return __x > _Tp() ? std::polar<_Tp>(pow(__x, __y.real()), __y.imag() * log(__x)) : std::pow(complex<_Tp>(__x), __y); } template<> class complex<float> { public: typedef float value_type; typedef __complex__ float _ComplexT; constexpr complex(_ComplexT __z) : _M_value(__z) { } constexpr complex(float __r = 0.0f, float __i = 0.0f) : _M_value{ __r, __i } { } # 1368 "/usr/include/c++/13/complex" 3 explicit constexpr complex(const complex<double>&); explicit constexpr complex(const complex<long double>&); __attribute ((__abi_tag__ ("cxx11"))) constexpr float real() const { return __real__ _M_value; } __attribute ((__abi_tag__ ("cxx11"))) constexpr float imag() const { return __imag__ _M_value; } # 1398 "/usr/include/c++/13/complex" 3 constexpr void real(float __val) { __real__ _M_value = __val; } constexpr void imag(float __val) { __imag__ _M_value = __val; } constexpr complex& operator=(float __f) { _M_value = __f; return *this; } constexpr complex& operator+=(float __f) { _M_value += __f; return *this; } constexpr complex& operator-=(float __f) { _M_value -= __f; return *this; } constexpr complex& operator*=(float __f) { _M_value *= __f; return *this; } constexpr complex& operator/=(float __f) { _M_value /= __f; return *this; } constexpr complex& operator=(const complex&) = default; template<typename _Tp> constexpr complex& operator=(const complex<_Tp>& __z) { __real__ _M_value = __z.real(); __imag__ _M_value = __z.imag(); return *this; } template<typename _Tp> constexpr complex& operator+=(const complex<_Tp>& __z) { _M_value += __z.__rep(); return *this; } template<class _Tp> constexpr complex& operator-=(const complex<_Tp>& __z) { _M_value -= __z.__rep(); return *this; } template<class _Tp> constexpr complex& operator*=(const complex<_Tp>& __z) { const _ComplexT __t = __z.__rep(); _M_value *= __t; return *this; } template<class _Tp> constexpr complex& operator/=(const complex<_Tp>& __z) { const _ComplexT __t = __z.__rep(); _M_value /= __t; return *this; } constexpr _ComplexT __rep() const { return _M_value; } private: _ComplexT _M_value; }; template<> class complex<double> { public: typedef double value_type; typedef __complex__ double _ComplexT; constexpr complex(_ComplexT __z) : _M_value(__z) { } constexpr complex(double __r = 0.0, double __i = 0.0) : _M_value{ __r, __i } { } # 1521 "/usr/include/c++/13/complex" 3 constexpr complex(const complex<float>& __z) : _M_value(__z.__rep()) { } explicit constexpr complex(const complex<long double>&); __attribute ((__abi_tag__ ("cxx11"))) constexpr double real() const { return __real__ _M_value; } __attribute ((__abi_tag__ ("cxx11"))) constexpr double imag() const { return __imag__ _M_value; } # 1553 "/usr/include/c++/13/complex" 3 constexpr void real(double __val) { __real__ _M_value = __val; } constexpr void imag(double __val) { __imag__ _M_value = __val; } constexpr complex& operator=(double __d) { _M_value = __d; return *this; } constexpr complex& operator+=(double __d) { _M_value += __d; return *this; } constexpr complex& operator-=(double __d) { _M_value -= __d; return *this; } constexpr complex& operator*=(double __d) { _M_value *= __d; return *this; } constexpr complex& operator/=(double __d) { _M_value /= __d; return *this; } constexpr complex& operator=(const complex&) = default; template<typename _Tp> constexpr complex& operator=(const complex<_Tp>& __z) { _M_value = __z.__rep(); return *this; } template<typename _Tp> constexpr complex& operator+=(const complex<_Tp>& __z) { _M_value += __z.__rep(); return *this; } template<typename _Tp> constexpr complex& operator-=(const complex<_Tp>& __z) { _M_value -= __z.__rep(); return *this; } template<typename _Tp> constexpr complex& operator*=(const complex<_Tp>& __z) { const _ComplexT __t = __z.__rep(); _M_value *= __t; return *this; } template<typename _Tp> constexpr complex& operator/=(const complex<_Tp>& __z) { const _ComplexT __t = __z.__rep(); _M_value /= __t; return *this; } constexpr _ComplexT __rep() const { return _M_value; } private: _ComplexT _M_value; }; template<> class complex<long double> { public: typedef long double value_type; typedef __complex__ long double _ComplexT; constexpr complex(_ComplexT __z) : _M_value(__z) { } constexpr complex(long double __r = 0.0L, long double __i = 0.0L) : _M_value{ __r, __i } { } # 1675 "/usr/include/c++/13/complex" 3 constexpr complex(const complex<float>& __z) : _M_value(__z.__rep()) { } constexpr complex(const complex<double>& __z) : _M_value(__z.__rep()) { } __attribute ((__abi_tag__ ("cxx11"))) constexpr long double real() const { return __real__ _M_value; } __attribute ((__abi_tag__ ("cxx11"))) constexpr long double imag() const { return __imag__ _M_value; } # 1708 "/usr/include/c++/13/complex" 3 constexpr void real(long double __val) { __real__ _M_value = __val; } constexpr void imag(long double __val) { __imag__ _M_value = __val; } constexpr complex& operator=(long double __r) { _M_value = __r; return *this; } constexpr complex& operator+=(long double __r) { _M_value += __r; return *this; } constexpr complex& operator-=(long double __r) { _M_value -= __r; return *this; } constexpr complex& operator*=(long double __r) { _M_value *= __r; return *this; } constexpr complex& operator/=(long double __r) { _M_value /= __r; return *this; } constexpr complex& operator=(const complex&) = default; template<typename _Tp> constexpr complex& operator=(const complex<_Tp>& __z) { _M_value = __z.__rep(); return *this; } template<typename _Tp> constexpr complex& operator+=(const complex<_Tp>& __z) { _M_value += __z.__rep(); return *this; } template<typename _Tp> constexpr complex& operator-=(const complex<_Tp>& __z) { _M_value -= __z.__rep(); return *this; } template<typename _Tp> constexpr complex& operator*=(const complex<_Tp>& __z) { const _ComplexT __t = __z.__rep(); _M_value *= __t; return *this; } template<typename _Tp> constexpr complex& operator/=(const complex<_Tp>& __z) { const _ComplexT __t = __z.__rep(); _M_value /= __t; return *this; } constexpr _ComplexT __rep() const { return _M_value; } private: _ComplexT _M_value; }; # 1959 "/usr/include/c++/13/complex" 3 inline constexpr complex<float>::complex(const complex<double>& __z) : _M_value(__z.__rep()) { } inline constexpr complex<float>::complex(const complex<long double>& __z) : _M_value(__z.__rep()) { } inline constexpr complex<double>::complex(const complex<long double>& __z) : _M_value(__z.__rep()) { } extern template istream& operator>>(istream&, complex<float>&); extern template ostream& operator<<(ostream&, const complex<float>&); extern template istream& operator>>(istream&, complex<double>&); extern template ostream& operator<<(ostream&, const complex<double>&); extern template istream& operator>>(istream&, complex<long double>&); extern template ostream& operator<<(ostream&, const complex<long double>&); extern template wistream& operator>>(wistream&, complex<float>&); extern template wostream& operator<<(wostream&, const complex<float>&); extern template wistream& operator>>(wistream&, complex<double>&); extern template wostream& operator<<(wostream&, const complex<double>&); extern template wistream& operator>>(wistream&, complex<long double>&); extern template wostream& operator<<(wostream&, const complex<long double>&); } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> std::complex<_Tp> acos(const std::complex<_Tp>&); template<typename _Tp> std::complex<_Tp> asin(const std::complex<_Tp>&); template<typename _Tp> std::complex<_Tp> atan(const std::complex<_Tp>&); template<typename _Tp> std::complex<_Tp> acosh(const std::complex<_Tp>&); template<typename _Tp> std::complex<_Tp> asinh(const std::complex<_Tp>&); template<typename _Tp> std::complex<_Tp> atanh(const std::complex<_Tp>&); template<typename _Tp> _Tp fabs(const std::complex<_Tp>&); template<typename _Tp> inline std::complex<_Tp> __complex_acos(const std::complex<_Tp>& __z) { const std::complex<_Tp> __t = std::asin(__z); const _Tp __pi_2 = 1.5707963267948966192313216916397514L; return std::complex<_Tp>(__pi_2 - __t.real(), -__t.imag()); } # 2181 "/usr/include/c++/13/complex" 3 inline __complex__ float __complex_acos(__complex__ float __z) { return __builtin_cacosf(__z); } inline __complex__ double __complex_acos(__complex__ double __z) { return __builtin_cacos(__z); } inline __complex__ long double __complex_acos(const __complex__ long double& __z) { return __builtin_cacosl(__z); } template<typename _Tp> inline std::complex<_Tp> acos(const std::complex<_Tp>& __z) { return __complex_acos(__z.__rep()); } # 2207 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline std::complex<_Tp> __complex_asin(const std::complex<_Tp>& __z) { std::complex<_Tp> __t(-__z.imag(), __z.real()); __t = std::asinh(__t); return std::complex<_Tp>(__t.imag(), -__t.real()); } inline __complex__ float __complex_asin(__complex__ float __z) { return __builtin_casinf(__z); } inline __complex__ double __complex_asin(__complex__ double __z) { return __builtin_casin(__z); } inline __complex__ long double __complex_asin(const __complex__ long double& __z) { return __builtin_casinl(__z); } template<typename _Tp> inline std::complex<_Tp> asin(const std::complex<_Tp>& __z) { return __complex_asin(__z.__rep()); } # 2243 "/usr/include/c++/13/complex" 3 template<typename _Tp> std::complex<_Tp> __complex_atan(const std::complex<_Tp>& __z) { const _Tp __r2 = __z.real() * __z.real(); const _Tp __x = _Tp(1.0) - __r2 - __z.imag() * __z.imag(); _Tp __num = __z.imag() + _Tp(1.0); _Tp __den = __z.imag() - _Tp(1.0); __num = __r2 + __num * __num; __den = __r2 + __den * __den; return std::complex<_Tp>(_Tp(0.5) * atan2(_Tp(2.0) * __z.real(), __x), _Tp(0.25) * log(__num / __den)); } inline __complex__ float __complex_atan(__complex__ float __z) { return __builtin_catanf(__z); } inline __complex__ double __complex_atan(__complex__ double __z) { return __builtin_catan(__z); } inline __complex__ long double __complex_atan(const __complex__ long double& __z) { return __builtin_catanl(__z); } template<typename _Tp> inline std::complex<_Tp> atan(const std::complex<_Tp>& __z) { return __complex_atan(__z.__rep()); } # 2287 "/usr/include/c++/13/complex" 3 template<typename _Tp> std::complex<_Tp> __complex_acosh(const std::complex<_Tp>& __z) { return _Tp(2.0) * std::log(std::sqrt(_Tp(0.5) * (__z + _Tp(1.0))) + std::sqrt(_Tp(0.5) * (__z - _Tp(1.0)))); } inline __complex__ float __complex_acosh(__complex__ float __z) { return __builtin_cacoshf(__z); } inline __complex__ double __complex_acosh(__complex__ double __z) { return __builtin_cacosh(__z); } inline __complex__ long double __complex_acosh(const __complex__ long double& __z) { return __builtin_cacoshl(__z); } template<typename _Tp> inline std::complex<_Tp> acosh(const std::complex<_Tp>& __z) { return __complex_acosh(__z.__rep()); } # 2323 "/usr/include/c++/13/complex" 3 template<typename _Tp> std::complex<_Tp> __complex_asinh(const std::complex<_Tp>& __z) { std::complex<_Tp> __t((__z.real() - __z.imag()) * (__z.real() + __z.imag()) + _Tp(1.0), _Tp(2.0) * __z.real() * __z.imag()); __t = std::sqrt(__t); return std::log(__t + __z); } inline __complex__ float __complex_asinh(__complex__ float __z) { return __builtin_casinhf(__z); } inline __complex__ double __complex_asinh(__complex__ double __z) { return __builtin_casinh(__z); } inline __complex__ long double __complex_asinh(const __complex__ long double& __z) { return __builtin_casinhl(__z); } template<typename _Tp> inline std::complex<_Tp> asinh(const std::complex<_Tp>& __z) { return __complex_asinh(__z.__rep()); } # 2362 "/usr/include/c++/13/complex" 3 template<typename _Tp> std::complex<_Tp> __complex_atanh(const std::complex<_Tp>& __z) { const _Tp __i2 = __z.imag() * __z.imag(); const _Tp __x = _Tp(1.0) - __i2 - __z.real() * __z.real(); _Tp __num = _Tp(1.0) + __z.real(); _Tp __den = _Tp(1.0) - __z.real(); __num = __i2 + __num * __num; __den = __i2 + __den * __den; return std::complex<_Tp>(_Tp(0.25) * (log(__num) - log(__den)), _Tp(0.5) * atan2(_Tp(2.0) * __z.imag(), __x)); } inline __complex__ float __complex_atanh(__complex__ float __z) { return __builtin_catanhf(__z); } inline __complex__ double __complex_atanh(__complex__ double __z) { return __builtin_catanh(__z); } inline __complex__ long double __complex_atanh(const __complex__ long double& __z) { return __builtin_catanhl(__z); } template<typename _Tp> inline std::complex<_Tp> atanh(const std::complex<_Tp>& __z) { return __complex_atanh(__z.__rep()); } # 2406 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline _Tp fabs(const std::complex<_Tp>& __z) { return std::abs(__z); } template<typename _Tp> inline typename __gnu_cxx::__promote<_Tp>::__type arg(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return std::signbit(__x) ? __type(3.1415926535897932384626433832795029L) : __type(); } template<typename _Tp> constexpr inline typename __gnu_cxx::__promote<_Tp>::__type imag(_Tp) { return _Tp(); } template<typename _Tp> constexpr inline typename __gnu_cxx::__promote<_Tp>::__type norm(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return __type(__x) * __type(__x); } template<typename _Tp> constexpr inline typename __gnu_cxx::__promote<_Tp>::__type real(_Tp __x) { return __x; } template<typename _Tp, typename _Up> inline std::complex<typename __gnu_cxx::__promote_2<_Tp, _Up>::__type> pow(const std::complex<_Tp>& __x, const _Up& __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return std::pow(std::complex<__type>(__x), __type(__y)); } template<typename _Tp, typename _Up> inline std::complex<typename __gnu_cxx::__promote_2<_Tp, _Up>::__type> pow(const _Tp& __x, const std::complex<_Up>& __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return std::pow(__type(__x), std::complex<__type>(__y)); } template<typename _Tp, typename _Up> inline std::complex<typename __gnu_cxx::__promote_2<_Tp, _Up>::__type> pow(const std::complex<_Tp>& __x, const std::complex<_Up>& __y) { typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type; return std::pow(std::complex<__type>(__x), std::complex<__type>(__y)); } template<typename _Tp> std::complex<_Tp> proj(const std::complex<_Tp>&); template<typename _Tp> inline std::complex<_Tp> __complex_proj(const std::complex<_Tp>& __z) { return __z; } inline complex<float> __complex_proj(const complex<float>& __z) { return __builtin_cprojf(__z.__rep()); } inline complex<double> __complex_proj(const complex<double>& __z) { return __builtin_cproj(__z.__rep()); } inline complex<long double> __complex_proj(const complex<long double>& __z) { return __builtin_cprojl(__z.__rep()); } # 2566 "/usr/include/c++/13/complex" 3 template<typename _Tp> inline std::complex<_Tp> proj(const std::complex<_Tp>& __z) { return __complex_proj(__z); } template<typename _Tp> inline std::complex<typename __gnu_cxx::__promote<_Tp>::__type> proj(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return std::proj(std::complex<__type>(__x)); } template<typename _Tp> inline constexpr std::complex<typename __gnu_cxx::__promote<_Tp>::__type> conj(_Tp __x) { typedef typename __gnu_cxx::__promote<_Tp>::__type __type; return std::complex<__type>(__x, -__type()); } inline namespace literals { inline namespace complex_literals { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wliteral-suffix" constexpr std::complex<float> operator""if(long double __num) { return std::complex<float>{0.0F, static_cast<float>(__num)}; } constexpr std::complex<float> operator""if(unsigned long long __num) { return std::complex<float>{0.0F, static_cast<float>(__num)}; } constexpr std::complex<double> operator""i(long double __num) { return std::complex<double>{0.0, static_cast<double>(__num)}; } constexpr std::complex<double> operator""i(unsigned long long __num) { return std::complex<double>{0.0, static_cast<double>(__num)}; } constexpr std::complex<long double> operator""il(long double __num) { return std::complex<long double>{0.0L, __num}; } constexpr std::complex<long double> operator""il(unsigned long long __num) { return std::complex<long double>{0.0L, static_cast<long double>(__num)}; } #pragma GCC diagnostic pop } } } # 51 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/MKL_support.h" 1 3 4 # 123 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/MKL_support.h" 3 4 namespace Eigen { typedef std::complex<double> dcomplex; typedef std::complex<float> scomplex; typedef int BlasIndex; } # 55 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 79 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 3 4 # 1 "/usr/include/c++/13/cerrno" 1 3 4 # 39 "/usr/include/c++/13/cerrno" 3 4 # 40 "/usr/include/c++/13/cerrno" 3 # 80 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 83 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/usr/include/c++/13/cmath" 1 3 4 # 39 "/usr/include/c++/13/cmath" 3 4 # 40 "/usr/include/c++/13/cmath" 3 # 84 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 85 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 91 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/usr/include/c++/13/climits" 1 3 4 # 39 "/usr/include/c++/13/climits" 3 4 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 94 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 1 "/usr/include/c++/13/algorithm" 1 3 4 # 58 "/usr/include/c++/13/algorithm" 3 4 # 59 "/usr/include/c++/13/algorithm" 3 # 1 "/usr/include/c++/13/bits/ranges_algo.h" 1 3 # 43 "/usr/include/c++/13/bits/ranges_algo.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace ranges { namespace __detail { template<typename _Comp, typename _Proj> constexpr auto __make_comp_proj(_Comp& __comp, _Proj& __proj) { return [&] (auto&& __lhs, auto&& __rhs) -> bool { using _TL = decltype(__lhs); using _TR = decltype(__rhs); return std::__invoke(__comp, std::__invoke(__proj, std::forward<_TL>(__lhs)), std::__invoke(__proj, std::forward<_TR>(__rhs))); }; } template<typename _Pred, typename _Proj> constexpr auto __make_pred_proj(_Pred& __pred, _Proj& __proj) { return [&] <typename _Tp> (_Tp&& __arg) -> bool { return std::__invoke(__pred, std::__invoke(__proj, std::forward<_Tp>(__arg))); }; } } struct __all_of_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr bool operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (!(bool)std::__invoke(__pred, std::__invoke(__proj, *__first))) return false; return true; } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr bool operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __all_of_fn all_of{}; struct __any_of_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr bool operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) return true; return false; } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr bool operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __any_of_fn any_of{}; struct __none_of_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr bool operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) return false; return true; } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr bool operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __none_of_fn none_of{}; template<typename _Iter, typename _Fp> struct in_fun_result { [[no_unique_address]] _Iter in; [[no_unique_address]] _Fp fun; template<typename _Iter2, typename _F2p> requires convertible_to<const _Iter&, _Iter2> && convertible_to<const _Fp&, _F2p> constexpr operator in_fun_result<_Iter2, _F2p>() const & { return {in, fun}; } template<typename _Iter2, typename _F2p> requires convertible_to<_Iter, _Iter2> && convertible_to<_Fp, _F2p> constexpr operator in_fun_result<_Iter2, _F2p>() && { return {std::move(in), std::move(fun)}; } }; template<typename _Iter, typename _Fp> using for_each_result = in_fun_result<_Iter, _Fp>; struct __for_each_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirectly_unary_invocable<projected<_Iter, _Proj>> _Fun> constexpr for_each_result<_Iter, _Fun> operator()(_Iter __first, _Sent __last, _Fun __f, _Proj __proj = {}) const { for (; __first != __last; ++__first) std::__invoke(__f, std::__invoke(__proj, *__first)); return { std::move(__first), std::move(__f) }; } template<input_range _Range, typename _Proj = identity, indirectly_unary_invocable<projected<iterator_t<_Range>, _Proj>> _Fun> constexpr for_each_result<borrowed_iterator_t<_Range>, _Fun> operator()(_Range&& __r, _Fun __f, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__f), std::move(__proj)); } }; inline constexpr __for_each_fn for_each{}; template<typename _Iter, typename _Fp> using for_each_n_result = in_fun_result<_Iter, _Fp>; struct __for_each_n_fn { template<input_iterator _Iter, typename _Proj = identity, indirectly_unary_invocable<projected<_Iter, _Proj>> _Fun> constexpr for_each_n_result<_Iter, _Fun> operator()(_Iter __first, iter_difference_t<_Iter> __n, _Fun __f, _Proj __proj = {}) const { if constexpr (random_access_iterator<_Iter>) { if (__n <= 0) return {std::move(__first), std::move(__f)}; auto __last = __first + __n; return ranges::for_each(std::move(__first), std::move(__last), std::move(__f), std::move(__proj)); } else { while (__n-- > 0) { std::__invoke(__f, std::__invoke(__proj, *__first)); ++__first; } return {std::move(__first), std::move(__f)}; } } }; inline constexpr __for_each_n_fn for_each_n{}; struct __find_first_of_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, forward_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr _Iter1 operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { for (; __first1 != __last1; ++__first1) for (auto __iter = __first2; __iter != __last2; ++__iter) if (std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__iter))) return __first1; return __first1; } template<input_range _Range1, forward_range _Range2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<iterator_t<_Range1>, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr borrowed_iterator_t<_Range1> operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __find_first_of_fn find_first_of{}; struct __count_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity> requires indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp*> constexpr iter_difference_t<_Iter> operator()(_Iter __first, _Sent __last, const _Tp& __value, _Proj __proj = {}) const { iter_difference_t<_Iter> __n = 0; for (; __first != __last; ++__first) if (std::__invoke(__proj, *__first) == __value) ++__n; return __n; } template<input_range _Range, typename _Tp, typename _Proj = identity> requires indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp*> constexpr range_difference_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__proj)); } }; inline constexpr __count_fn count{}; struct __count_if_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr iter_difference_t<_Iter> operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { iter_difference_t<_Iter> __n = 0; for (; __first != __last; ++__first) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) ++__n; return __n; } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr range_difference_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __count_if_fn count_if{}; struct __search_n_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Pred = ranges::equal_to, typename _Proj = identity> requires indirectly_comparable<_Iter, const _Tp*, _Pred, _Proj> constexpr subrange<_Iter> operator()(_Iter __first, _Sent __last, iter_difference_t<_Iter> __count, const _Tp& __value, _Pred __pred = {}, _Proj __proj = {}) const { if (__count <= 0) return {__first, __first}; auto __value_comp = [&] <typename _Rp> (_Rp&& __arg) -> bool { return std::__invoke(__pred, std::forward<_Rp>(__arg), __value); }; if (__count == 1) { __first = ranges::find_if(std::move(__first), __last, std::move(__value_comp), std::move(__proj)); if (__first == __last) return {__first, __first}; else { auto __end = __first; return {__first, ++__end}; } } if constexpr (sized_sentinel_for<_Sent, _Iter> && random_access_iterator<_Iter>) { auto __tail_size = __last - __first; auto __remainder = __count; while (__remainder <= __tail_size) { __first += __remainder; __tail_size -= __remainder; auto __backtrack = __first; while (__value_comp(std::__invoke(__proj, *--__backtrack))) { if (--__remainder == 0) return {__first - __count, __first}; } __remainder = __count + 1 - (__first - __backtrack); } auto __i = __first + __tail_size; return {__i, __i}; } else { __first = ranges::find_if(__first, __last, __value_comp, __proj); while (__first != __last) { auto __n = __count; auto __i = __first; ++__i; while (__i != __last && __n != 1 && __value_comp(std::__invoke(__proj, *__i))) { ++__i; --__n; } if (__n == 1) return {__first, __i}; if (__i == __last) return {__i, __i}; __first = ranges::find_if(++__i, __last, __value_comp, __proj); } return {__first, __first}; } } template<forward_range _Range, typename _Tp, typename _Pred = ranges::equal_to, typename _Proj = identity> requires indirectly_comparable<iterator_t<_Range>, const _Tp*, _Pred, _Proj> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, range_difference_t<_Range> __count, const _Tp& __value, _Pred __pred = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__count), __value, std::move(__pred), std::move(__proj)); } }; inline constexpr __search_n_fn search_n{}; struct __find_end_fn { template<forward_iterator _Iter1, sentinel_for<_Iter1> _Sent1, forward_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<_Iter1, _Iter2, _Pred, _Proj1, _Proj2> constexpr subrange<_Iter1> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if constexpr (bidirectional_iterator<_Iter1> && bidirectional_iterator<_Iter2>) { auto __i1 = ranges::next(__first1, __last1); auto __i2 = ranges::next(__first2, __last2); auto __rresult = ranges::search(reverse_iterator<_Iter1>{__i1}, reverse_iterator<_Iter1>{__first1}, reverse_iterator<_Iter2>{__i2}, reverse_iterator<_Iter2>{__first2}, std::move(__pred), std::move(__proj1), std::move(__proj2)); auto __result_first = ranges::end(__rresult).base(); auto __result_last = ranges::begin(__rresult).base(); if (__result_last == __first1) return {__i1, __i1}; else return {__result_first, __result_last}; } else { auto __i = ranges::next(__first1, __last1); if (__first2 == __last2) return {__i, __i}; auto __result_begin = __i; auto __result_end = __i; for (;;) { auto __new_range = ranges::search(__first1, __last1, __first2, __last2, __pred, __proj1, __proj2); auto __new_result_begin = ranges::begin(__new_range); auto __new_result_end = ranges::end(__new_range); if (__new_result_begin == __last1) return {__result_begin, __result_end}; else { __result_begin = __new_result_begin; __result_end = __new_result_end; __first1 = __result_begin; ++__first1; } } } } template<forward_range _Range1, forward_range _Range2, typename _Pred = ranges::equal_to, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_comparable<iterator_t<_Range1>, iterator_t<_Range2>, _Pred, _Proj1, _Proj2> constexpr borrowed_subrange_t<_Range1> operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __find_end_fn find_end{}; struct __is_permutation_fn { template<forward_iterator _Iter1, sentinel_for<_Iter1> _Sent1, forward_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Proj1 = identity, typename _Proj2 = identity, indirect_equivalence_relation<projected<_Iter1, _Proj1>, projected<_Iter2, _Proj2>> _Pred = ranges::equal_to> constexpr bool operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { constexpr bool __sized_iters = (sized_sentinel_for<_Sent1, _Iter1> && sized_sentinel_for<_Sent2, _Iter2>); if constexpr (__sized_iters) { auto __d1 = ranges::distance(__first1, __last1); auto __d2 = ranges::distance(__first2, __last2); if (__d1 != __d2) return false; } for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) if (!(bool)std::__invoke(__pred, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) break; if constexpr (__sized_iters) { if (__first1 == __last1) return true; } else { auto __d1 = ranges::distance(__first1, __last1); auto __d2 = ranges::distance(__first2, __last2); if (__d1 == 0 && __d2 == 0) return true; if (__d1 != __d2) return false; } for (auto __scan = __first1; __scan != __last1; ++__scan) { auto&& __proj_scan = std::__invoke(__proj1, *__scan); auto __comp_scan = [&] <typename _Tp> (_Tp&& __arg) -> bool { return std::__invoke(__pred, __proj_scan, std::forward<_Tp>(__arg)); }; if (__scan != ranges::find_if(__first1, __scan, __comp_scan, __proj1)) continue; auto __matches = ranges::count_if(__first2, __last2, __comp_scan, __proj2); if (__matches == 0 || ranges::count_if(__scan, __last1, __comp_scan, __proj1) != __matches) return false; } return true; } template<forward_range _Range1, forward_range _Range2, typename _Proj1 = identity, typename _Proj2 = identity, indirect_equivalence_relation< projected<iterator_t<_Range1>, _Proj1>, projected<iterator_t<_Range2>, _Proj2>> _Pred = ranges::equal_to> constexpr bool operator()(_Range1&& __r1, _Range2&& __r2, _Pred __pred = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__pred), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __is_permutation_fn is_permutation{}; template<typename _Iter, typename _Out> using copy_if_result = in_out_result<_Iter, _Out>; struct __copy_if_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> requires indirectly_copyable<_Iter, _Out> constexpr copy_if_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result, _Pred __pred, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) { *__result = *__first; ++__result; } return {std::move(__first), std::move(__result)}; } template<input_range _Range, weakly_incrementable _Out, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires indirectly_copyable<iterator_t<_Range>, _Out> constexpr copy_if_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), std::move(__pred), std::move(__proj)); } }; inline constexpr __copy_if_fn copy_if{}; template<typename _Iter1, typename _Iter2> using swap_ranges_result = in_in_result<_Iter1, _Iter2>; struct __swap_ranges_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2> requires indirectly_swappable<_Iter1, _Iter2> constexpr swap_ranges_result<_Iter1, _Iter2> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2) const { for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2) ranges::iter_swap(__first1, __first2); return {std::move(__first1), std::move(__first2)}; } template<input_range _Range1, input_range _Range2> requires indirectly_swappable<iterator_t<_Range1>, iterator_t<_Range2>> constexpr swap_ranges_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>> operator()(_Range1&& __r1, _Range2&& __r2) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2)); } }; inline constexpr __swap_ranges_fn swap_ranges{}; template<typename _Iter, typename _Out> using unary_transform_result = in_out_result<_Iter, _Out>; template<typename _Iter1, typename _Iter2, typename _Out> struct in_in_out_result { [[no_unique_address]] _Iter1 in1; [[no_unique_address]] _Iter2 in2; [[no_unique_address]] _Out out; template<typename _IIter1, typename _IIter2, typename _OOut> requires convertible_to<const _Iter1&, _IIter1> && convertible_to<const _Iter2&, _IIter2> && convertible_to<const _Out&, _OOut> constexpr operator in_in_out_result<_IIter1, _IIter2, _OOut>() const & { return {in1, in2, out}; } template<typename _IIter1, typename _IIter2, typename _OOut> requires convertible_to<_Iter1, _IIter1> && convertible_to<_Iter2, _IIter2> && convertible_to<_Out, _OOut> constexpr operator in_in_out_result<_IIter1, _IIter2, _OOut>() && { return {std::move(in1), std::move(in2), std::move(out)}; } }; template<typename _Iter1, typename _Iter2, typename _Out> using binary_transform_result = in_in_out_result<_Iter1, _Iter2, _Out>; struct __transform_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out, copy_constructible _Fp, typename _Proj = identity> requires indirectly_writable<_Out, indirect_result_t<_Fp&, projected<_Iter, _Proj>>> constexpr unary_transform_result<_Iter, _Out> operator()(_Iter __first1, _Sent __last1, _Out __result, _Fp __op, _Proj __proj = {}) const { for (; __first1 != __last1; ++__first1, (void)++__result) *__result = std::__invoke(__op, std::__invoke(__proj, *__first1)); return {std::move(__first1), std::move(__result)}; } template<input_range _Range, weakly_incrementable _Out, copy_constructible _Fp, typename _Proj = identity> requires indirectly_writable<_Out, indirect_result_t<_Fp&, projected<iterator_t<_Range>, _Proj>>> constexpr unary_transform_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, _Fp __op, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), std::move(__op), std::move(__proj)); } template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, weakly_incrementable _Out, copy_constructible _Fp, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_writable<_Out, indirect_result_t<_Fp&, projected<_Iter1, _Proj1>, projected<_Iter2, _Proj2>>> constexpr binary_transform_result<_Iter1, _Iter2, _Out> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Out __result, _Fp __binary_op, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void)++__first2, ++__result) *__result = std::__invoke(__binary_op, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2)); return {std::move(__first1), std::move(__first2), std::move(__result)}; } template<input_range _Range1, input_range _Range2, weakly_incrementable _Out, copy_constructible _Fp, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_writable<_Out, indirect_result_t<_Fp&, projected<iterator_t<_Range1>, _Proj1>, projected<iterator_t<_Range2>, _Proj2>>> constexpr binary_transform_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>, _Out> operator()(_Range1&& __r1, _Range2&& __r2, _Out __result, _Fp __binary_op, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__result), std::move(__binary_op), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __transform_fn transform{}; struct __replace_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp1, typename _Tp2, typename _Proj = identity> requires indirectly_writable<_Iter, const _Tp2&> && indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp1*> constexpr _Iter operator()(_Iter __first, _Sent __last, const _Tp1& __old_value, const _Tp2& __new_value, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (std::__invoke(__proj, *__first) == __old_value) *__first = __new_value; return __first; } template<input_range _Range, typename _Tp1, typename _Tp2, typename _Proj = identity> requires indirectly_writable<iterator_t<_Range>, const _Tp2&> && indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp1*> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp1& __old_value, const _Tp2& __new_value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __old_value, __new_value, std::move(__proj)); } }; inline constexpr __replace_fn replace{}; struct __replace_if_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> requires indirectly_writable<_Iter, const _Tp&> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred, const _Tp& __new_value, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) *__first = __new_value; return std::move(__first); } template<input_range _Range, typename _Tp, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires indirectly_writable<iterator_t<_Range>, const _Tp&> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred, const _Tp& __new_value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), __new_value, std::move(__proj)); } }; inline constexpr __replace_if_fn replace_if{}; template<typename _Iter, typename _Out> using replace_copy_result = in_out_result<_Iter, _Out>; struct __replace_copy_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp1, typename _Tp2, output_iterator<const _Tp2&> _Out, typename _Proj = identity> requires indirectly_copyable<_Iter, _Out> && indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp1*> constexpr replace_copy_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result, const _Tp1& __old_value, const _Tp2& __new_value, _Proj __proj = {}) const { for (; __first != __last; ++__first, (void)++__result) if (std::__invoke(__proj, *__first) == __old_value) *__result = __new_value; else *__result = *__first; return {std::move(__first), std::move(__result)}; } template<input_range _Range, typename _Tp1, typename _Tp2, output_iterator<const _Tp2&> _Out, typename _Proj = identity> requires indirectly_copyable<iterator_t<_Range>, _Out> && indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp1*> constexpr replace_copy_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, const _Tp1& __old_value, const _Tp2& __new_value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), __old_value, __new_value, std::move(__proj)); } }; inline constexpr __replace_copy_fn replace_copy{}; template<typename _Iter, typename _Out> using replace_copy_if_result = in_out_result<_Iter, _Out>; struct __replace_copy_if_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, output_iterator<const _Tp&> _Out, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> requires indirectly_copyable<_Iter, _Out> constexpr replace_copy_if_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result, _Pred __pred, const _Tp& __new_value, _Proj __proj = {}) const { for (; __first != __last; ++__first, (void)++__result) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) *__result = __new_value; else *__result = *__first; return {std::move(__first), std::move(__result)}; } template<input_range _Range, typename _Tp, output_iterator<const _Tp&> _Out, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires indirectly_copyable<iterator_t<_Range>, _Out> constexpr replace_copy_if_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, _Pred __pred, const _Tp& __new_value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), std::move(__pred), __new_value, std::move(__proj)); } }; inline constexpr __replace_copy_if_fn replace_copy_if{}; struct __generate_n_fn { template<input_or_output_iterator _Out, copy_constructible _Fp> requires invocable<_Fp&> && indirectly_writable<_Out, invoke_result_t<_Fp&>> constexpr _Out operator()(_Out __first, iter_difference_t<_Out> __n, _Fp __gen) const { for (; __n > 0; --__n, (void)++__first) *__first = std::__invoke(__gen); return __first; } }; inline constexpr __generate_n_fn generate_n{}; struct __generate_fn { template<input_or_output_iterator _Out, sentinel_for<_Out> _Sent, copy_constructible _Fp> requires invocable<_Fp&> && indirectly_writable<_Out, invoke_result_t<_Fp&>> constexpr _Out operator()(_Out __first, _Sent __last, _Fp __gen) const { for (; __first != __last; ++__first) *__first = std::__invoke(__gen); return __first; } template<typename _Range, copy_constructible _Fp> requires invocable<_Fp&> && output_range<_Range, invoke_result_t<_Fp&>> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Fp __gen) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__gen)); } }; inline constexpr __generate_fn generate{}; struct __remove_if_fn { template<permutable _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr subrange<_Iter> operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { __first = ranges::find_if(__first, __last, __pred, __proj); if (__first == __last) return {__first, __first}; auto __result = __first; ++__first; for (; __first != __last; ++__first) if (!std::__invoke(__pred, std::__invoke(__proj, *__first))) { *__result = std::move(*__first); ++__result; } return {__result, __first}; } template<forward_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires permutable<iterator_t<_Range>> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __remove_if_fn remove_if{}; struct __remove_fn { template<permutable _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity> requires indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp*> constexpr subrange<_Iter> operator()(_Iter __first, _Sent __last, const _Tp& __value, _Proj __proj = {}) const { auto __pred = [&] (auto&& __arg) -> bool { return std::forward<decltype(__arg)>(__arg) == __value; }; return ranges::remove_if(__first, __last, std::move(__pred), std::move(__proj)); } template<forward_range _Range, typename _Tp, typename _Proj = identity> requires permutable<iterator_t<_Range>> && indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp*> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__proj)); } }; inline constexpr __remove_fn remove{}; template<typename _Iter, typename _Out> using remove_copy_if_result = in_out_result<_Iter, _Out>; struct __remove_copy_if_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> requires indirectly_copyable<_Iter, _Out> constexpr remove_copy_if_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result, _Pred __pred, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (!std::__invoke(__pred, std::__invoke(__proj, *__first))) { *__result = *__first; ++__result; } return {std::move(__first), std::move(__result)}; } template<input_range _Range, weakly_incrementable _Out, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires indirectly_copyable<iterator_t<_Range>, _Out> constexpr remove_copy_if_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), std::move(__pred), std::move(__proj)); } }; inline constexpr __remove_copy_if_fn remove_copy_if{}; template<typename _Iter, typename _Out> using remove_copy_result = in_out_result<_Iter, _Out>; struct __remove_copy_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out, typename _Tp, typename _Proj = identity> requires indirectly_copyable<_Iter, _Out> && indirect_binary_predicate<ranges::equal_to, projected<_Iter, _Proj>, const _Tp*> constexpr remove_copy_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result, const _Tp& __value, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (!(std::__invoke(__proj, *__first) == __value)) { *__result = *__first; ++__result; } return {std::move(__first), std::move(__result)}; } template<input_range _Range, weakly_incrementable _Out, typename _Tp, typename _Proj = identity> requires indirectly_copyable<iterator_t<_Range>, _Out> && indirect_binary_predicate<ranges::equal_to, projected<iterator_t<_Range>, _Proj>, const _Tp*> constexpr remove_copy_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, const _Tp& __value, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), __value, std::move(__proj)); } }; inline constexpr __remove_copy_fn remove_copy{}; struct __unique_fn { template<permutable _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_equivalence_relation< projected<_Iter, _Proj>> _Comp = ranges::equal_to> constexpr subrange<_Iter> operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { __first = ranges::adjacent_find(__first, __last, __comp, __proj); if (__first == __last) return {__first, __first}; auto __dest = __first; ++__first; while (++__first != __last) if (!std::__invoke(__comp, std::__invoke(__proj, *__dest), std::__invoke(__proj, *__first))) *++__dest = std::move(*__first); return {++__dest, __first}; } template<forward_range _Range, typename _Proj = identity, indirect_equivalence_relation< projected<iterator_t<_Range>, _Proj>> _Comp = ranges::equal_to> requires permutable<iterator_t<_Range>> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __unique_fn unique{}; namespace __detail { template<typename _Out, typename _Tp> concept __can_reread_output = input_iterator<_Out> && same_as<_Tp, iter_value_t<_Out>>; } template<typename _Iter, typename _Out> using unique_copy_result = in_out_result<_Iter, _Out>; struct __unique_copy_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out, typename _Proj = identity, indirect_equivalence_relation< projected<_Iter, _Proj>> _Comp = ranges::equal_to> requires indirectly_copyable<_Iter, _Out> && (forward_iterator<_Iter> || __detail::__can_reread_output<_Out, iter_value_t<_Iter>> || indirectly_copyable_storable<_Iter, _Out>) constexpr unique_copy_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return {std::move(__first), std::move(__result)}; if constexpr (forward_iterator<_Iter>) { auto __next = __first; *__result = *__next; while (++__next != __last) if (!std::__invoke(__comp, std::__invoke(__proj, *__first), std::__invoke(__proj, *__next))) { __first = __next; *++__result = *__first; } return {__next, std::move(++__result)}; } else if constexpr (__detail::__can_reread_output<_Out, iter_value_t<_Iter>>) { *__result = *__first; while (++__first != __last) if (!std::__invoke(__comp, std::__invoke(__proj, *__result), std::__invoke(__proj, *__first))) *++__result = *__first; return {std::move(__first), std::move(++__result)}; } else { auto __value = *__first; *__result = __value; while (++__first != __last) { if (!(bool)std::__invoke(__comp, std::__invoke(__proj, *__first), std::__invoke(__proj, __value))) { __value = *__first; *++__result = __value; } } return {std::move(__first), std::move(++__result)}; } } template<input_range _Range, weakly_incrementable _Out, typename _Proj = identity, indirect_equivalence_relation< projected<iterator_t<_Range>, _Proj>> _Comp = ranges::equal_to> requires indirectly_copyable<iterator_t<_Range>, _Out> && (forward_iterator<iterator_t<_Range>> || __detail::__can_reread_output<_Out, range_value_t<_Range>> || indirectly_copyable_storable<iterator_t<_Range>, _Out>) constexpr unique_copy_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result), std::move(__comp), std::move(__proj)); } }; inline constexpr __unique_copy_fn unique_copy{}; struct __reverse_fn { template<bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent> requires permutable<_Iter> constexpr _Iter operator()(_Iter __first, _Sent __last) const { auto __i = ranges::next(__first, __last); auto __tail = __i; if constexpr (random_access_iterator<_Iter>) { if (__first != __last) { --__tail; while (__first < __tail) { ranges::iter_swap(__first, __tail); ++__first; --__tail; } } return __i; } else { for (;;) if (__first == __tail || __first == --__tail) break; else { ranges::iter_swap(__first, __tail); ++__first; } return __i; } } template<bidirectional_range _Range> requires permutable<iterator_t<_Range>> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r) const { return (*this)(ranges::begin(__r), ranges::end(__r)); } }; inline constexpr __reverse_fn reverse{}; template<typename _Iter, typename _Out> using reverse_copy_result = in_out_result<_Iter, _Out>; struct __reverse_copy_fn { template<bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out> requires indirectly_copyable<_Iter, _Out> constexpr reverse_copy_result<_Iter, _Out> operator()(_Iter __first, _Sent __last, _Out __result) const { auto __i = ranges::next(__first, __last); auto __tail = __i; while (__first != __tail) { --__tail; *__result = *__tail; ++__result; } return {__i, std::move(__result)}; } template<bidirectional_range _Range, weakly_incrementable _Out> requires indirectly_copyable<iterator_t<_Range>, _Out> constexpr reverse_copy_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, _Out __result) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__result)); } }; inline constexpr __reverse_copy_fn reverse_copy{}; struct __rotate_fn { template<permutable _Iter, sentinel_for<_Iter> _Sent> constexpr subrange<_Iter> operator()(_Iter __first, _Iter __middle, _Sent __last) const { auto __lasti = ranges::next(__first, __last); if (__first == __middle) return {__lasti, __lasti}; if (__last == __middle) return {std::move(__first), std::move(__lasti)}; if constexpr (random_access_iterator<_Iter>) { auto __n = __lasti - __first; auto __k = __middle - __first; if (__k == __n - __k) { ranges::swap_ranges(__first, __middle, __middle, __middle + __k); return {std::move(__middle), std::move(__lasti)}; } auto __p = __first; auto __ret = __first + (__lasti - __middle); for (;;) { if (__k < __n - __k) { if constexpr (__is_pod(iter_value_t<_Iter>)) if (__k == 1) { auto __t = std::move(*__p); ranges::move(__p + 1, __p + __n, __p); *(__p + __n - 1) = std::move(__t); return {std::move(__ret), std::move(__lasti)}; } auto __q = __p + __k; for (decltype(__n) __i = 0; __i < __n - __k; ++ __i) { ranges::iter_swap(__p, __q); ++__p; ++__q; } __n %= __k; if (__n == 0) return {std::move(__ret), std::move(__lasti)}; ranges::swap(__n, __k); __k = __n - __k; } else { __k = __n - __k; if constexpr (__is_pod(iter_value_t<_Iter>)) if (__k == 1) { auto __t = std::move(*(__p + __n - 1)); ranges::move_backward(__p, __p + __n - 1, __p + __n); *__p = std::move(__t); return {std::move(__ret), std::move(__lasti)}; } auto __q = __p + __n; __p = __q - __k; for (decltype(__n) __i = 0; __i < __n - __k; ++ __i) { --__p; --__q; ranges::iter_swap(__p, __q); } __n %= __k; if (__n == 0) return {std::move(__ret), std::move(__lasti)}; std::swap(__n, __k); } } } else if constexpr (bidirectional_iterator<_Iter>) { auto __tail = __lasti; ranges::reverse(__first, __middle); ranges::reverse(__middle, __tail); while (__first != __middle && __middle != __tail) { ranges::iter_swap(__first, --__tail); ++__first; } if (__first == __middle) { ranges::reverse(__middle, __tail); return {std::move(__tail), std::move(__lasti)}; } else { ranges::reverse(__first, __middle); return {std::move(__first), std::move(__lasti)}; } } else { auto __first2 = __middle; do { ranges::iter_swap(__first, __first2); ++__first; ++__first2; if (__first == __middle) __middle = __first2; } while (__first2 != __last); auto __ret = __first; __first2 = __middle; while (__first2 != __last) { ranges::iter_swap(__first, __first2); ++__first; ++__first2; if (__first == __middle) __middle = __first2; else if (__first2 == __last) __first2 = __middle; } return {std::move(__ret), std::move(__lasti)}; } } template<forward_range _Range> requires permutable<iterator_t<_Range>> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, iterator_t<_Range> __middle) const { return (*this)(ranges::begin(__r), std::move(__middle), ranges::end(__r)); } }; inline constexpr __rotate_fn rotate{}; template<typename _Iter, typename _Out> using rotate_copy_result = in_out_result<_Iter, _Out>; struct __rotate_copy_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out> requires indirectly_copyable<_Iter, _Out> constexpr rotate_copy_result<_Iter, _Out> operator()(_Iter __first, _Iter __middle, _Sent __last, _Out __result) const { auto __copy1 = ranges::copy(__middle, std::move(__last), std::move(__result)); auto __copy2 = ranges::copy(std::move(__first), std::move(__middle), std::move(__copy1.out)); return { std::move(__copy1.in), std::move(__copy2.out) }; } template<forward_range _Range, weakly_incrementable _Out> requires indirectly_copyable<iterator_t<_Range>, _Out> constexpr rotate_copy_result<borrowed_iterator_t<_Range>, _Out> operator()(_Range&& __r, iterator_t<_Range> __middle, _Out __result) const { return (*this)(ranges::begin(__r), std::move(__middle), ranges::end(__r), std::move(__result)); } }; inline constexpr __rotate_copy_fn rotate_copy{}; struct __sample_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out, typename _Gen> requires (forward_iterator<_Iter> || random_access_iterator<_Out>) && indirectly_copyable<_Iter, _Out> && uniform_random_bit_generator<remove_reference_t<_Gen>> _Out operator()(_Iter __first, _Sent __last, _Out __out, iter_difference_t<_Iter> __n, _Gen&& __g) const { if constexpr (forward_iterator<_Iter>) { auto __lasti = ranges::next(__first, __last); return std:: sample(std::move(__first), std::move(__lasti), std::move(__out), __n, std::forward<_Gen>(__g)); } else { using __distrib_type = uniform_int_distribution<iter_difference_t<_Iter>>; using __param_type = typename __distrib_type::param_type; __distrib_type __d{}; iter_difference_t<_Iter> __sample_sz = 0; while (__first != __last && __sample_sz != __n) { __out[__sample_sz++] = *__first; ++__first; } for (auto __pop_sz = __sample_sz; __first != __last; ++__first, (void) ++__pop_sz) { const auto __k = __d(__g, __param_type{0, __pop_sz}); if (__k < __n) __out[__k] = *__first; } return __out + __sample_sz; } } template<input_range _Range, weakly_incrementable _Out, typename _Gen> requires (forward_range<_Range> || random_access_iterator<_Out>) && indirectly_copyable<iterator_t<_Range>, _Out> && uniform_random_bit_generator<remove_reference_t<_Gen>> _Out operator()(_Range&& __r, _Out __out, range_difference_t<_Range> __n, _Gen&& __g) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__out), __n, std::forward<_Gen>(__g)); } }; inline constexpr __sample_fn sample{}; struct __shuffle_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Gen> requires permutable<_Iter> && uniform_random_bit_generator<remove_reference_t<_Gen>> _Iter operator()(_Iter __first, _Sent __last, _Gen&& __g) const { auto __lasti = ranges::next(__first, __last); std::shuffle(std::move(__first), __lasti, std::forward<_Gen>(__g)); return __lasti; } template<random_access_range _Range, typename _Gen> requires permutable<iterator_t<_Range>> && uniform_random_bit_generator<remove_reference_t<_Gen>> borrowed_iterator_t<_Range> operator()(_Range&& __r, _Gen&& __g) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::forward<_Gen>(__g)); } }; inline constexpr __shuffle_fn shuffle{}; struct __push_heap_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::push_heap(__first, __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __push_heap_fn push_heap{}; struct __pop_heap_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::pop_heap(__first, __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __pop_heap_fn pop_heap{}; struct __make_heap_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::make_heap(__first, __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __make_heap_fn make_heap{}; struct __sort_heap_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::sort_heap(__first, __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __sort_heap_fn sort_heap{}; struct __is_heap_until_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { iter_difference_t<_Iter> __n = ranges::distance(__first, __last); iter_difference_t<_Iter> __parent = 0, __child = 1; for (; __child < __n; ++__child) if (std::__invoke(__comp, std::__invoke(__proj, *(__first + __parent)), std::__invoke(__proj, *(__first + __child)))) return __first + __child; else if ((__child & 1) == 0) ++__parent; return __first + __n; } template<random_access_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __is_heap_until_fn is_heap_until{}; struct __is_heap_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr bool operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { return (__last == ranges::is_heap_until(__first, __last, std::move(__comp), std::move(__proj))); } template<random_access_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr bool operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __is_heap_fn is_heap{}; struct __sort_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::sort(std::move(__first), __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __sort_fn sort{}; struct __stable_sort_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::stable_sort(std::move(__first), __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __stable_sort_fn stable_sort{}; struct __partial_sort_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Iter __middle, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __middle) return ranges::next(__first, __last); ranges::make_heap(__first, __middle, __comp, __proj); auto __i = __middle; for (; __i != __last; ++__i) if (std::__invoke(__comp, std::__invoke(__proj, *__i), std::__invoke(__proj, *__first))) { ranges::pop_heap(__first, __middle, __comp, __proj); ranges::iter_swap(__middle-1, __i); ranges::push_heap(__first, __middle, __comp, __proj); } ranges::sort_heap(__first, __middle, __comp, __proj); return __i; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, iterator_t<_Range> __middle, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), std::move(__middle), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __partial_sort_fn partial_sort{}; template<typename _Iter, typename _Out> using partial_sort_copy_result = in_out_result<_Iter, _Out>; struct __partial_sort_copy_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, random_access_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_copyable<_Iter1, _Iter2> && sortable<_Iter2, _Comp, _Proj2> && indirect_strict_weak_order<_Comp, projected<_Iter1, _Proj1>, projected<_Iter2, _Proj2>> constexpr partial_sort_copy_result<_Iter1, _Iter2> operator()(_Iter1 __first, _Sent1 __last, _Iter2 __result_first, _Sent2 __result_last, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if (__result_first == __result_last) { auto __lasti = ranges::next(std::move(__first), std::move(__last)); return {std::move(__lasti), std::move(__result_first)}; } auto __result_real_last = __result_first; while (__first != __last && __result_real_last != __result_last) { *__result_real_last = *__first; ++__result_real_last; ++__first; } ranges::make_heap(__result_first, __result_real_last, __comp, __proj2); for (; __first != __last; ++__first) if (std::__invoke(__comp, std::__invoke(__proj1, *__first), std::__invoke(__proj2, *__result_first))) { ranges::pop_heap(__result_first, __result_real_last, __comp, __proj2); *(__result_real_last-1) = *__first; ranges::push_heap(__result_first, __result_real_last, __comp, __proj2); } ranges::sort_heap(__result_first, __result_real_last, __comp, __proj2); return {std::move(__first), std::move(__result_real_last)}; } template<input_range _Range1, random_access_range _Range2, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires indirectly_copyable<iterator_t<_Range1>, iterator_t<_Range2>> && sortable<iterator_t<_Range2>, _Comp, _Proj2> && indirect_strict_weak_order<_Comp, projected<iterator_t<_Range1>, _Proj1>, projected<iterator_t<_Range2>, _Proj2>> constexpr partial_sort_copy_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>> operator()(_Range1&& __r, _Range2&& __out, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), ranges::begin(__out), ranges::end(__out), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __partial_sort_copy_fn partial_sort_copy{}; struct __is_sorted_until_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return __first; auto __next = __first; for (++__next; __next != __last; __first = __next, (void)++__next) if (std::__invoke(__comp, std::__invoke(__proj, *__next), std::__invoke(__proj, *__first))) return __next; return __next; } template<forward_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __is_sorted_until_fn is_sorted_until{}; struct __is_sorted_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr bool operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return true; auto __next = __first; for (++__next; __next != __last; __first = __next, (void)++__next) if (std::__invoke(__comp, std::__invoke(__proj, *__next), std::__invoke(__proj, *__first))) return false; return true; } template<forward_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr bool operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __is_sorted_fn is_sorted{}; struct __nth_element_fn { template<random_access_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr _Iter operator()(_Iter __first, _Iter __nth, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::nth_element(std::move(__first), std::move(__nth), __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<random_access_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, iterator_t<_Range> __nth, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), std::move(__nth), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __nth_element_fn nth_element{}; struct __lower_bound_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<_Iter, _Proj>> _Comp = ranges::less> constexpr _Iter operator()(_Iter __first, _Sent __last, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { auto __len = ranges::distance(__first, __last); while (__len > 0) { auto __half = __len / 2; auto __middle = __first; ranges::advance(__middle, __half); if (std::__invoke(__comp, std::__invoke(__proj, *__middle), __value)) { __first = __middle; ++__first; __len = __len - __half - 1; } else __len = __half; } return __first; } template<forward_range _Range, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__comp), std::move(__proj)); } }; inline constexpr __lower_bound_fn lower_bound{}; struct __upper_bound_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<_Iter, _Proj>> _Comp = ranges::less> constexpr _Iter operator()(_Iter __first, _Sent __last, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { auto __len = ranges::distance(__first, __last); while (__len > 0) { auto __half = __len / 2; auto __middle = __first; ranges::advance(__middle, __half); if (std::__invoke(__comp, __value, std::__invoke(__proj, *__middle))) __len = __half; else { __first = __middle; ++__first; __len = __len - __half - 1; } } return __first; } template<forward_range _Range, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__comp), std::move(__proj)); } }; inline constexpr __upper_bound_fn upper_bound{}; struct __equal_range_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<_Iter, _Proj>> _Comp = ranges::less> constexpr subrange<_Iter> operator()(_Iter __first, _Sent __last, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { auto __len = ranges::distance(__first, __last); while (__len > 0) { auto __half = __len / 2; auto __middle = __first; ranges::advance(__middle, __half); if (std::__invoke(__comp, std::__invoke(__proj, *__middle), __value)) { __first = __middle; ++__first; __len = __len - __half - 1; } else if (std::__invoke(__comp, __value, std::__invoke(__proj, *__middle))) __len = __half; else { auto __left = ranges::lower_bound(__first, __middle, __value, __comp, __proj); ranges::advance(__first, __len); auto __right = ranges::upper_bound(++__middle, __first, __value, __comp, __proj); return {__left, __right}; } } return {__first, __first}; } template<forward_range _Range, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__comp), std::move(__proj)); } }; inline constexpr __equal_range_fn equal_range{}; struct __binary_search_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<_Iter, _Proj>> _Comp = ranges::less> constexpr bool operator()(_Iter __first, _Sent __last, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { auto __i = ranges::lower_bound(__first, __last, __value, __comp, __proj); if (__i == __last) return false; return !(bool)std::__invoke(__comp, __value, std::__invoke(__proj, *__i)); } template<forward_range _Range, typename _Tp, typename _Proj = identity, indirect_strict_weak_order<const _Tp*, projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr bool operator()(_Range&& __r, const _Tp& __value, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), __value, std::move(__comp), std::move(__proj)); } }; inline constexpr __binary_search_fn binary_search{}; struct __is_partitioned_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr bool operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { __first = ranges::find_if_not(std::move(__first), __last, __pred, __proj); if (__first == __last) return true; ++__first; return ranges::none_of(std::move(__first), std::move(__last), std::move(__pred), std::move(__proj)); } template<input_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr bool operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __is_partitioned_fn is_partitioned{}; struct __partition_fn { template<permutable _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr subrange<_Iter> operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { if constexpr (bidirectional_iterator<_Iter>) { auto __lasti = ranges::next(__first, __last); auto __tail = __lasti; for (;;) { for (;;) if (__first == __tail) return {std::move(__first), std::move(__lasti)}; else if (std::__invoke(__pred, std::__invoke(__proj, *__first))) ++__first; else break; --__tail; for (;;) if (__first == __tail) return {std::move(__first), std::move(__lasti)}; else if (!(bool)std::__invoke(__pred, std::__invoke(__proj, *__tail))) --__tail; else break; ranges::iter_swap(__first, __tail); ++__first; } } else { if (__first == __last) return {__first, __first}; while (std::__invoke(__pred, std::__invoke(__proj, *__first))) if (++__first == __last) return {__first, __first}; auto __next = __first; while (++__next != __last) if (std::__invoke(__pred, std::__invoke(__proj, *__next))) { ranges::iter_swap(__first, __next); ++__first; } return {std::move(__first), std::move(__next)}; } } template<forward_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires permutable<iterator_t<_Range>> constexpr borrowed_subrange_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __partition_fn partition{}; struct __stable_partition_fn { template<bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> requires permutable<_Iter> subrange<_Iter> operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); auto __middle = std::stable_partition(std::move(__first), __lasti, __detail::__make_pred_proj(__pred, __proj)); return {std::move(__middle), std::move(__lasti)}; } template<bidirectional_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires permutable<iterator_t<_Range>> borrowed_subrange_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __stable_partition_fn stable_partition{}; template<typename _Iter, typename _Out1, typename _Out2> struct in_out_out_result { [[no_unique_address]] _Iter in; [[no_unique_address]] _Out1 out1; [[no_unique_address]] _Out2 out2; template<typename _IIter, typename _OOut1, typename _OOut2> requires convertible_to<const _Iter&, _IIter> && convertible_to<const _Out1&, _OOut1> && convertible_to<const _Out2&, _OOut2> constexpr operator in_out_out_result<_IIter, _OOut1, _OOut2>() const & { return {in, out1, out2}; } template<typename _IIter, typename _OOut1, typename _OOut2> requires convertible_to<_Iter, _IIter> && convertible_to<_Out1, _OOut1> && convertible_to<_Out2, _OOut2> constexpr operator in_out_out_result<_IIter, _OOut1, _OOut2>() && { return {std::move(in), std::move(out1), std::move(out2)}; } }; template<typename _Iter, typename _Out1, typename _Out2> using partition_copy_result = in_out_out_result<_Iter, _Out1, _Out2>; struct __partition_copy_fn { template<input_iterator _Iter, sentinel_for<_Iter> _Sent, weakly_incrementable _Out1, weakly_incrementable _Out2, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> requires indirectly_copyable<_Iter, _Out1> && indirectly_copyable<_Iter, _Out2> constexpr partition_copy_result<_Iter, _Out1, _Out2> operator()(_Iter __first, _Sent __last, _Out1 __out_true, _Out2 __out_false, _Pred __pred, _Proj __proj = {}) const { for (; __first != __last; ++__first) if (std::__invoke(__pred, std::__invoke(__proj, *__first))) { *__out_true = *__first; ++__out_true; } else { *__out_false = *__first; ++__out_false; } return {std::move(__first), std::move(__out_true), std::move(__out_false)}; } template<input_range _Range, weakly_incrementable _Out1, weakly_incrementable _Out2, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> requires indirectly_copyable<iterator_t<_Range>, _Out1> && indirectly_copyable<iterator_t<_Range>, _Out2> constexpr partition_copy_result<borrowed_iterator_t<_Range>, _Out1, _Out2> operator()(_Range&& __r, _Out1 __out_true, _Out2 __out_false, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__out_true), std::move(__out_false), std::move(__pred), std::move(__proj)); } }; inline constexpr __partition_copy_fn partition_copy{}; struct __partition_point_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_unary_predicate<projected<_Iter, _Proj>> _Pred> constexpr _Iter operator()(_Iter __first, _Sent __last, _Pred __pred, _Proj __proj = {}) const { auto __len = ranges::distance(__first, __last); while (__len > 0) { auto __half = __len / 2; auto __middle = __first; ranges::advance(__middle, __half); if (std::__invoke(__pred, std::__invoke(__proj, *__middle))) { __first = __middle; ++__first; __len = __len - __half - 1; } else __len = __half; } return __first; } template<forward_range _Range, typename _Proj = identity, indirect_unary_predicate<projected<iterator_t<_Range>, _Proj>> _Pred> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Pred __pred, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__pred), std::move(__proj)); } }; inline constexpr __partition_point_fn partition_point{}; template<typename _Iter1, typename _Iter2, typename _Out> using merge_result = in_in_out_result<_Iter1, _Iter2, _Out>; struct __merge_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<_Iter1, _Iter2, _Out, _Comp, _Proj1, _Proj2> constexpr merge_result<_Iter1, _Iter2, _Out> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2) { if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) { *__result = *__first2; ++__first2; } else { *__result = *__first1; ++__first1; } ++__result; } auto __copy1 = ranges::copy(std::move(__first1), std::move(__last1), std::move(__result)); auto __copy2 = ranges::copy(std::move(__first2), std::move(__last2), std::move(__copy1.out)); return { std::move(__copy1.in), std::move(__copy2.in), std::move(__copy2.out) }; } template<input_range _Range1, input_range _Range2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<iterator_t<_Range1>, iterator_t<_Range2>, _Out, _Comp, _Proj1, _Proj2> constexpr merge_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>, _Out> operator()(_Range1&& __r1, _Range2&& __r2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__result), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __merge_fn merge{}; struct __inplace_merge_fn { template<bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> _Iter operator()(_Iter __first, _Iter __middle, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __lasti = ranges::next(__first, __last); std::inplace_merge(std::move(__first), std::move(__middle), __lasti, __detail::__make_comp_proj(__comp, __proj)); return __lasti; } template<bidirectional_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> borrowed_iterator_t<_Range> operator()(_Range&& __r, iterator_t<_Range> __middle, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), std::move(__middle), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __inplace_merge_fn inplace_merge{}; struct __includes_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Proj1 = identity, typename _Proj2 = identity, indirect_strict_weak_order<projected<_Iter1, _Proj1>, projected<_Iter2, _Proj2>> _Comp = ranges::less> constexpr bool operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2) if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) return false; else if (std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) ++__first1; else { ++__first1; ++__first2; } return __first2 == __last2; } template<input_range _Range1, input_range _Range2, typename _Proj1 = identity, typename _Proj2 = identity, indirect_strict_weak_order<projected<iterator_t<_Range1>, _Proj1>, projected<iterator_t<_Range2>, _Proj2>> _Comp = ranges::less> constexpr bool operator()(_Range1&& __r1, _Range2&& __r2, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __includes_fn includes{}; template<typename _Iter1, typename _Iter2, typename _Out> using set_union_result = in_in_out_result<_Iter1, _Iter2, _Out>; struct __set_union_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<_Iter1, _Iter2, _Out, _Comp, _Proj1, _Proj2> constexpr set_union_result<_Iter1, _Iter2, _Out> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2) { if (std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) { *__result = *__first1; ++__first1; } else if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) { *__result = *__first2; ++__first2; } else { *__result = *__first1; ++__first1; ++__first2; } ++__result; } auto __copy1 = ranges::copy(std::move(__first1), std::move(__last1), std::move(__result)); auto __copy2 = ranges::copy(std::move(__first2), std::move(__last2), std::move(__copy1.out)); return {std::move(__copy1.in), std::move(__copy2.in), std::move(__copy2.out)}; } template<input_range _Range1, input_range _Range2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<iterator_t<_Range1>, iterator_t<_Range2>, _Out, _Comp, _Proj1, _Proj2> constexpr set_union_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>, _Out> operator()(_Range1&& __r1, _Range2&& __r2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__result), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __set_union_fn set_union{}; template<typename _Iter1, typename _Iter2, typename _Out> using set_intersection_result = in_in_out_result<_Iter1, _Iter2, _Out>; struct __set_intersection_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<_Iter1, _Iter2, _Out, _Comp, _Proj1, _Proj2> constexpr set_intersection_result<_Iter1, _Iter2, _Out> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2) if (std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) ++__first1; else if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) ++__first2; else { *__result = *__first1; ++__first1; ++__first2; ++__result; } auto __last1i = ranges::next(std::move(__first1), std::move(__last1)); auto __last2i = ranges::next(std::move(__first2), std::move(__last2)); return {std::move(__last1i), std::move(__last2i), std::move(__result)}; } template<input_range _Range1, input_range _Range2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<iterator_t<_Range1>, iterator_t<_Range2>, _Out, _Comp, _Proj1, _Proj2> constexpr set_intersection_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>, _Out> operator()(_Range1&& __r1, _Range2&& __r2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__result), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __set_intersection_fn set_intersection{}; template<typename _Iter, typename _Out> using set_difference_result = in_out_result<_Iter, _Out>; struct __set_difference_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<_Iter1, _Iter2, _Out, _Comp, _Proj1, _Proj2> constexpr set_difference_result<_Iter1, _Out> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2) if (std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) { *__result = *__first1; ++__first1; ++__result; } else if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) ++__first2; else { ++__first1; ++__first2; } return ranges::copy(std::move(__first1), std::move(__last1), std::move(__result)); } template<input_range _Range1, input_range _Range2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<iterator_t<_Range1>, iterator_t<_Range2>, _Out, _Comp, _Proj1, _Proj2> constexpr set_difference_result<borrowed_iterator_t<_Range1>, _Out> operator()(_Range1&& __r1, _Range2&& __r2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__result), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __set_difference_fn set_difference{}; template<typename _Iter1, typename _Iter2, typename _Out> using set_symmetric_difference_result = in_in_out_result<_Iter1, _Iter2, _Out>; struct __set_symmetric_difference_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<_Iter1, _Iter2, _Out, _Comp, _Proj1, _Proj2> constexpr set_symmetric_difference_result<_Iter1, _Iter2, _Out> operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { while (__first1 != __last1 && __first2 != __last2) if (std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) { *__result = *__first1; ++__first1; ++__result; } else if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) { *__result = *__first2; ++__first2; ++__result; } else { ++__first1; ++__first2; } auto __copy1 = ranges::copy(std::move(__first1), std::move(__last1), std::move(__result)); auto __copy2 = ranges::copy(std::move(__first2), std::move(__last2), std::move(__copy1.out)); return {std::move(__copy1.in), std::move(__copy2.in), std::move(__copy2.out)}; } template<input_range _Range1, input_range _Range2, weakly_incrementable _Out, typename _Comp = ranges::less, typename _Proj1 = identity, typename _Proj2 = identity> requires mergeable<iterator_t<_Range1>, iterator_t<_Range2>, _Out, _Comp, _Proj1, _Proj2> constexpr set_symmetric_difference_result<borrowed_iterator_t<_Range1>, borrowed_iterator_t<_Range2>, _Out> operator()(_Range1&& __r1, _Range2&& __r2, _Out __result, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__result), std::move(__comp), std::move(__proj1), std::move(__proj2)); } }; inline constexpr __set_symmetric_difference_fn set_symmetric_difference{}; struct __max_fn { template<typename _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr const _Tp& operator()(const _Tp& __a, const _Tp& __b, _Comp __comp = {}, _Proj __proj = {}) const { if (std::__invoke(__comp, std::__invoke(__proj, __a), std::__invoke(__proj, __b))) return __b; else return __a; } template<input_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> requires indirectly_copyable_storable<iterator_t<_Range>, range_value_t<_Range>*> constexpr range_value_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { auto __first = ranges::begin(__r); auto __last = ranges::end(__r); do { if (std::__is_constant_evaluated() && !bool(__first != __last)) __builtin_unreachable(); } while (false); auto __result = *__first; while (++__first != __last) { auto __tmp = *__first; if (std::__invoke(__comp, std::__invoke(__proj, __result), std::__invoke(__proj, __tmp))) __result = std::move(__tmp); } return __result; } template<copyable _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr _Tp operator()(initializer_list<_Tp> __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::subrange(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __max_fn max{}; struct __clamp_fn { template<typename _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr const _Tp& operator()(const _Tp& __val, const _Tp& __lo, const _Tp& __hi, _Comp __comp = {}, _Proj __proj = {}) const { do { if (std::__is_constant_evaluated() && !bool(!(std::__invoke(__comp, std::__invoke(__proj, __hi), std::__invoke(__proj, __lo))))) __builtin_unreachable(); } while (false) ; auto&& __proj_val = std::__invoke(__proj, __val); if (std::__invoke(__comp, __proj_val, std::__invoke(__proj, __lo))) return __lo; else if (std::__invoke(__comp, std::__invoke(__proj, __hi), __proj_val)) return __hi; else return __val; } }; inline constexpr __clamp_fn clamp{}; template<typename _Tp> struct min_max_result { [[no_unique_address]] _Tp min; [[no_unique_address]] _Tp max; template<typename _Tp2> requires convertible_to<const _Tp&, _Tp2> constexpr operator min_max_result<_Tp2>() const & { return {min, max}; } template<typename _Tp2> requires convertible_to<_Tp, _Tp2> constexpr operator min_max_result<_Tp2>() && { return {std::move(min), std::move(max)}; } }; template<typename _Tp> using minmax_result = min_max_result<_Tp>; struct __minmax_fn { template<typename _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr minmax_result<const _Tp&> operator()(const _Tp& __a, const _Tp& __b, _Comp __comp = {}, _Proj __proj = {}) const { if (std::__invoke(__comp, std::__invoke(__proj, __b), std::__invoke(__proj, __a))) return {__b, __a}; else return {__a, __b}; } template<input_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> requires indirectly_copyable_storable<iterator_t<_Range>, range_value_t<_Range>*> constexpr minmax_result<range_value_t<_Range>> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { auto __first = ranges::begin(__r); auto __last = ranges::end(__r); do { if (std::__is_constant_evaluated() && !bool(__first != __last)) __builtin_unreachable(); } while (false); auto __comp_proj = __detail::__make_comp_proj(__comp, __proj); minmax_result<range_value_t<_Range>> __result = {*__first, __result.min}; if (++__first == __last) return __result; else { auto&& __val = *__first; if (__comp_proj(__val, __result.min)) __result.min = std::forward<decltype(__val)>(__val); else __result.max = std::forward<decltype(__val)>(__val); } while (++__first != __last) { range_value_t<_Range> __val1 = *__first; if (++__first == __last) { if (__comp_proj(__val1, __result.min)) __result.min = std::move(__val1); else if (!__comp_proj(__val1, __result.max)) __result.max = std::move(__val1); break; } auto&& __val2 = *__first; if (!__comp_proj(__val2, __val1)) { if (__comp_proj(__val1, __result.min)) __result.min = std::move(__val1); if (!__comp_proj(__val2, __result.max)) __result.max = std::forward<decltype(__val2)>(__val2); } else { if (__comp_proj(__val2, __result.min)) __result.min = std::forward<decltype(__val2)>(__val2); if (!__comp_proj(__val1, __result.max)) __result.max = std::move(__val1); } } return __result; } template<copyable _Tp, typename _Proj = identity, indirect_strict_weak_order<projected<const _Tp*, _Proj>> _Comp = ranges::less> constexpr minmax_result<_Tp> operator()(initializer_list<_Tp> __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::subrange(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __minmax_fn minmax{}; struct __min_element_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return __first; auto __i = __first; while (++__i != __last) { if (std::__invoke(__comp, std::__invoke(__proj, *__i), std::__invoke(__proj, *__first))) __first = __i; } return __first; } template<forward_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __min_element_fn min_element{}; struct __max_element_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr _Iter operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return __first; auto __i = __first; while (++__i != __last) { if (std::__invoke(__comp, std::__invoke(__proj, *__first), std::__invoke(__proj, *__i))) __first = __i; } return __first; } template<forward_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr borrowed_iterator_t<_Range> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __max_element_fn max_element{}; template<typename _Iter> using minmax_element_result = min_max_result<_Iter>; struct __minmax_element_fn { template<forward_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Proj = identity, indirect_strict_weak_order<projected<_Iter, _Proj>> _Comp = ranges::less> constexpr minmax_element_result<_Iter> operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { auto __comp_proj = __detail::__make_comp_proj(__comp, __proj); minmax_element_result<_Iter> __result = {__first, __first}; if (__first == __last || ++__first == __last) return __result; else { if (__comp_proj(*__first, *__result.min)) __result.min = __first; else __result.max = __first; } while (++__first != __last) { auto __prev = __first; if (++__first == __last) { if (__comp_proj(*__prev, *__result.min)) __result.min = __prev; else if (!__comp_proj(*__prev, *__result.max)) __result.max = __prev; break; } if (!__comp_proj(*__first, *__prev)) { if (__comp_proj(*__prev, *__result.min)) __result.min = __prev; if (!__comp_proj(*__first, *__result.max)) __result.max = __first; } else { if (__comp_proj(*__first, *__result.min)) __result.min = __first; if (!__comp_proj(*__prev, *__result.max)) __result.max = __prev; } } return __result; } template<forward_range _Range, typename _Proj = identity, indirect_strict_weak_order<projected<iterator_t<_Range>, _Proj>> _Comp = ranges::less> constexpr minmax_element_result<borrowed_iterator_t<_Range>> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __minmax_element_fn minmax_element{}; struct __lexicographical_compare_fn { template<input_iterator _Iter1, sentinel_for<_Iter1> _Sent1, input_iterator _Iter2, sentinel_for<_Iter2> _Sent2, typename _Proj1 = identity, typename _Proj2 = identity, indirect_strict_weak_order<projected<_Iter1, _Proj1>, projected<_Iter2, _Proj2>> _Comp = ranges::less> constexpr bool operator()(_Iter1 __first1, _Sent1 __last1, _Iter2 __first2, _Sent2 __last2, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { if constexpr (__detail::__is_normal_iterator<_Iter1> && same_as<_Iter1, _Sent1>) return (*this)(__first1.base(), __last1.base(), std::move(__first2), std::move(__last2), std::move(__comp), std::move(__proj1), std::move(__proj2)); else if constexpr (__detail::__is_normal_iterator<_Iter2> && same_as<_Iter2, _Sent2>) return (*this)(std::move(__first1), std::move(__last1), __first2.base(), __last2.base(), std::move(__comp), std::move(__proj1), std::move(__proj2)); else { constexpr bool __sized_iters = (sized_sentinel_for<_Sent1, _Iter1> && sized_sentinel_for<_Sent2, _Iter2>); if constexpr (__sized_iters) { using _ValueType1 = iter_value_t<_Iter1>; using _ValueType2 = iter_value_t<_Iter2>; constexpr bool __use_memcmp = (__is_memcmp_ordered_with<_ValueType1, _ValueType2>::__value && __ptr_to_nonvolatile<_Iter1> && __ptr_to_nonvolatile<_Iter2> && (is_same_v<_Comp, ranges::less> || is_same_v<_Comp, ranges::greater>) && is_same_v<_Proj1, identity> && is_same_v<_Proj2, identity>); if constexpr (__use_memcmp) { const auto __d1 = __last1 - __first1; const auto __d2 = __last2 - __first2; if (const auto __len = std::min(__d1, __d2)) { const auto __c = std::__memcmp(__first1, __first2, __len); if constexpr (is_same_v<_Comp, ranges::less>) { if (__c < 0) return true; if (__c > 0) return false; } else if constexpr (is_same_v<_Comp, ranges::greater>) { if (__c > 0) return true; if (__c < 0) return false; } } return __d1 < __d2; } } for (; __first1 != __last1 && __first2 != __last2; ++__first1, (void) ++__first2) { if (std::__invoke(__comp, std::__invoke(__proj1, *__first1), std::__invoke(__proj2, *__first2))) return true; if (std::__invoke(__comp, std::__invoke(__proj2, *__first2), std::__invoke(__proj1, *__first1))) return false; } return __first1 == __last1 && __first2 != __last2; } } template<input_range _Range1, input_range _Range2, typename _Proj1 = identity, typename _Proj2 = identity, indirect_strict_weak_order<projected<iterator_t<_Range1>, _Proj1>, projected<iterator_t<_Range2>, _Proj2>> _Comp = ranges::less> constexpr bool operator()(_Range1&& __r1, _Range2&& __r2, _Comp __comp = {}, _Proj1 __proj1 = {}, _Proj2 __proj2 = {}) const { return (*this)(ranges::begin(__r1), ranges::end(__r1), ranges::begin(__r2), ranges::end(__r2), std::move(__comp), std::move(__proj1), std::move(__proj2)); } private: template<typename _Iter, typename _Ref = iter_reference_t<_Iter>> static constexpr bool __ptr_to_nonvolatile = is_pointer_v<_Iter> && !is_volatile_v<remove_reference_t<_Ref>>; }; inline constexpr __lexicographical_compare_fn lexicographical_compare; template<typename _Iter> struct in_found_result { [[no_unique_address]] _Iter in; bool found; template<typename _Iter2> requires convertible_to<const _Iter&, _Iter2> constexpr operator in_found_result<_Iter2>() const & { return {in, found}; } template<typename _Iter2> requires convertible_to<_Iter, _Iter2> constexpr operator in_found_result<_Iter2>() && { return {std::move(in), found}; } }; template<typename _Iter> using next_permutation_result = in_found_result<_Iter>; struct __next_permutation_fn { template<bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr next_permutation_result<_Iter> operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return {std::move(__first), false}; auto __i = __first; ++__i; if (__i == __last) return {std::move(__i), false}; auto __lasti = ranges::next(__first, __last); __i = __lasti; --__i; for (;;) { auto __ii = __i; --__i; if (std::__invoke(__comp, std::__invoke(__proj, *__i), std::__invoke(__proj, *__ii))) { auto __j = __lasti; while (!(bool)std::__invoke(__comp, std::__invoke(__proj, *__i), std::__invoke(__proj, *--__j))) ; ranges::iter_swap(__i, __j); ranges::reverse(__ii, __last); return {std::move(__lasti), true}; } if (__i == __first) { ranges::reverse(__first, __last); return {std::move(__lasti), false}; } } } template<bidirectional_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr next_permutation_result<borrowed_iterator_t<_Range>> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __next_permutation_fn next_permutation{}; template<typename _Iter> using prev_permutation_result = in_found_result<_Iter>; struct __prev_permutation_fn { template<bidirectional_iterator _Iter, sentinel_for<_Iter> _Sent, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<_Iter, _Comp, _Proj> constexpr prev_permutation_result<_Iter> operator()(_Iter __first, _Sent __last, _Comp __comp = {}, _Proj __proj = {}) const { if (__first == __last) return {std::move(__first), false}; auto __i = __first; ++__i; if (__i == __last) return {std::move(__i), false}; auto __lasti = ranges::next(__first, __last); __i = __lasti; --__i; for (;;) { auto __ii = __i; --__i; if (std::__invoke(__comp, std::__invoke(__proj, *__ii), std::__invoke(__proj, *__i))) { auto __j = __lasti; while (!(bool)std::__invoke(__comp, std::__invoke(__proj, *--__j), std::__invoke(__proj, *__i))) ; ranges::iter_swap(__i, __j); ranges::reverse(__ii, __last); return {std::move(__lasti), true}; } if (__i == __first) { ranges::reverse(__first, __last); return {std::move(__lasti), false}; } } } template<bidirectional_range _Range, typename _Comp = ranges::less, typename _Proj = identity> requires sortable<iterator_t<_Range>, _Comp, _Proj> constexpr prev_permutation_result<borrowed_iterator_t<_Range>> operator()(_Range&& __r, _Comp __comp = {}, _Proj __proj = {}) const { return (*this)(ranges::begin(__r), ranges::end(__r), std::move(__comp), std::move(__proj)); } }; inline constexpr __prev_permutation_fn prev_permutation{}; # 3953 "/usr/include/c++/13/bits/ranges_algo.h" 3 } template<typename _ForwardIterator> constexpr _ForwardIterator shift_left(_ForwardIterator __first, _ForwardIterator __last, typename iterator_traits<_ForwardIterator>::difference_type __n) { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); if (__n == 0) return __last; auto __mid = ranges::next(__first, __n, __last); if (__mid == __last) return __first; return std::move(std::move(__mid), std::move(__last), std::move(__first)); } template<typename _ForwardIterator> constexpr _ForwardIterator shift_right(_ForwardIterator __first, _ForwardIterator __last, typename iterator_traits<_ForwardIterator>::difference_type __n) { do { if (std::__is_constant_evaluated() && !bool(__n >= 0)) __builtin_unreachable(); } while (false); if (__n == 0) return __first; using _Cat = typename iterator_traits<_ForwardIterator>::iterator_category; if constexpr (derived_from<_Cat, bidirectional_iterator_tag>) { auto __mid = ranges::next(__last, -__n, __first); if (__mid == __first) return __last; return std::move_backward(std::move(__first), std::move(__mid), std::move(__last)); } else { auto __result = ranges::next(__first, __n, __last); if (__result == __last) return __last; auto __dest_head = __first, __dest_tail = __result; while (__dest_head != __result) { if (__dest_tail == __last) { std::move(std::move(__first), std::move(__dest_head), __result); return __result; } ++__dest_head; ++__dest_tail; } for (;;) { # 4024 "/usr/include/c++/13/bits/ranges_algo.h" 3 auto __cursor = __first; while (__cursor != __result) { if (__dest_tail == __last) { __dest_head = std::move(__cursor, __result, std::move(__dest_head)); std::move(std::move(__first), std::move(__cursor), std::move(__dest_head)); return __result; } std::iter_swap(__cursor, __dest_head); ++__dest_head; ++__dest_tail; ++__cursor; } } } } } # 64 "/usr/include/c++/13/algorithm" 2 3 # 73 "/usr/include/c++/13/algorithm" 3 # 1 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 1 3 # 17 "/usr/include/c++/13/pstl/glue_algorithm_defs.h" 3 namespace std { template <class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> any_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> all_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> none_of(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Function> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> for_each(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Function __f); template <class _ExecutionPolicy, class _ForwardIterator, class _Size, class _Function> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> for_each_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __n, _Function __f); template <class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> find_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> find_if_not(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> find_end(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> find_first_of(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> adjacent_find(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename iterator_traits<_ForwardIterator>::difference_type> count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, typename iterator_traits<_ForwardIterator>::difference_type> count_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, _ForwardIterator2 __s_last, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator1> search(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __s_first, _ForwardIterator2 __s_last); template <class _ExecutionPolicy, class _ForwardIterator, class _Size, class _Tp, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, const _Tp& __value, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Size, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> search_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Size __count, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); template <class _ExecutionPolicy, class _ForwardIterator1, class _Size, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> copy_n(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _Size __n, _ForwardIterator2 __result); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 result, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> swap_ranges(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, _UnaryOperation __op); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _BinaryOperation> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> transform(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator __result, _BinaryOperation __op); template <class _ExecutionPolicy, class _ForwardIterator, class _UnaryPredicate, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred, const _Tp& __new_value); template <class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> replace(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __old_value, const _Tp& __new_value); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _UnaryPredicate, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> replace_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, _UnaryPredicate __pred, const _Tp& __new_value); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> replace_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, const _Tp& __old_value, const _Tp& __new_value); template <class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> fill(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator, class _Size, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> fill_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size __count, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator, class _Generator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> generate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Generator __g); template <class _ExecutionPolicy, class _ForwardIterator, class _Size, class _Generator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> generate_n(_ExecutionPolicy&& __exec, _ForwardIterator __first, _Size count, _Generator __g); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Predicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> remove_copy_if(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, _Predicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> remove_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator, class _UnaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> remove_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _Tp> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> remove(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value); template <class _ExecutionPolicy, class _ForwardIterator, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> unique(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> unique_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __result); template <class _ExecutionPolicy, class _BidirectionalIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> reverse(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last); template <class _ExecutionPolicy, class _BidirectionalIterator, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> reverse_copy(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, _ForwardIterator __d_first); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> rotate(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __middle, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> rotate_copy(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __middle, _ForwardIterator1 __last, _ForwardIterator2 __result); template <class _ExecutionPolicy, class _ForwardIterator, class _UnaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> is_partitioned(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _UnaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> partition(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPredicate __pred); template <class _ExecutionPolicy, class _BidirectionalIterator, class _UnaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _BidirectionalIterator> stable_partition(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __last, _UnaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator, class _ForwardIterator1, class _ForwardIterator2, class _UnaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> partition_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _ForwardIterator1 __out_true, _ForwardIterator2 __out_false, _UnaryPredicate __pred); template <class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); template <class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> stable_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _BinaryPredicate __pred); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator1, _ForwardIterator2>> mismatch(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _BinaryPredicate __p); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _BinaryPredicate __p); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> equal(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator2> move(_ExecutionPolicy&& __exec, _ForwardIterator1 __first, _ForwardIterator1 __last, _ForwardIterator2 __d_first); template <class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _RandomAccessIterator __d_first, _RandomAccessIterator __d_last, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> partial_sort_copy(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _RandomAccessIterator __d_first, _RandomAccessIterator __d_last); template <class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> is_sorted_until(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> is_sorted(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> nth_element(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __nth, _RandomAccessIterator __last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __d_first, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> merge(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __d_first); template <class _ExecutionPolicy, class _BidirectionalIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _BidirectionalIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> inplace_merge(_ExecutionPolicy&& __exec, _BidirectionalIterator __first, _BidirectionalIterator __middle, _BidirectionalIterator __last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> includes(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_union(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_intersection(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator result, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> set_symmetric_difference(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _ForwardIterator __result); template <class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _RandomAccessIterator> is_heap_until(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); template <class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> is_heap(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> min_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, _ForwardIterator> max_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, std::pair<_ForwardIterator, _ForwardIterator>> minmax_element(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2, _Compare __comp); template <class _ExecutionPolicy, class _ForwardIterator1, class _ForwardIterator2> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, bool> lexicographical_compare(_ExecutionPolicy&& __exec, _ForwardIterator1 __first1, _ForwardIterator1 __last1, _ForwardIterator2 __first2, _ForwardIterator2 __last2); } # 74 "/usr/include/c++/13/algorithm" 2 3 # 96 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 2 3 4 # 141 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 3 4 namespace Eigen { using std::size_t; using std::ptrdiff_t; } # 161 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core" 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Constants.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/Constants.h" 3 4 # 1 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h" 1 3 4 # 16 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/util/ReenableStupidWarnings.h" 3 4 #pragma GCC diagnostic pop # 58 "/home/lpresearch/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Geometry" 2 3 4 # 14 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/EigenTypes.h" 2 # 22 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/EigenTypes.h" # 1 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 3 4 # 1 "/usr/include/c++/13/fstream" 1 3 4 # 36 "/usr/include/c++/13/fstream" 3 4 # 37 "/usr/include/c++/13/fstream" 3 # 1 "/usr/include/c++/13/cstdio" 1 3 # 39 "/usr/include/c++/13/cstdio" 3 # 40 "/usr/include/c++/13/cstdio" 3 # 44 "/usr/include/c++/13/fstream" 2 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/basic_file.h" 1 3 # 37 "/usr/include/x86_64-linux-gnu/c++/13/bits/basic_file.h" 3 # 38 "/usr/include/x86_64-linux-gnu/c++/13/bits/basic_file.h" 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++io.h" 1 3 # 35 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++io.h" 3 # 1 "/usr/include/c++/13/cstdio" 1 3 # 39 "/usr/include/c++/13/cstdio" 3 # 40 "/usr/include/c++/13/cstdio" 3 # 36 "/usr/include/x86_64-linux-gnu/c++/13/bits/c++io.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { typedef __gthread_mutex_t __c_lock; typedef FILE __c_file; } # 41 "/usr/include/x86_64-linux-gnu/c++/13/bits/basic_file.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT> class __basic_file; template<> class __basic_file<char> { __c_file* _M_cfile; bool _M_cfile_created; public: __basic_file(__c_lock* __lock = 0) throw (); __basic_file(__basic_file&& __rv, __c_lock* = 0) noexcept : _M_cfile(__rv._M_cfile), _M_cfile_created(__rv._M_cfile_created) { __rv._M_cfile = nullptr; __rv._M_cfile_created = false; } __basic_file& operator=(const __basic_file&) = delete; __basic_file& operator=(__basic_file&&) = delete; void swap(__basic_file& __f) noexcept { std::swap(_M_cfile, __f._M_cfile); std::swap(_M_cfile_created, __f._M_cfile_created); } __basic_file* open(const char* __name, ios_base::openmode __mode, int __prot = 0664); __basic_file* sys_open(__c_file* __file, ios_base::openmode); __basic_file* sys_open(int __fd, ios_base::openmode __mode) throw (); __basic_file* close(); __attribute__ ((__pure__)) bool is_open() const throw (); __attribute__ ((__pure__)) int fd() throw (); __attribute__ ((__pure__)) __c_file* file() throw (); ~__basic_file(); streamsize xsputn(const char* __s, streamsize __n); streamsize xsputn_2(const char* __s1, streamsize __n1, const char* __s2, streamsize __n2); streamsize xsgetn(char* __s, streamsize __n); streamoff seekoff(streamoff __off, ios_base::seekdir __way) throw (); int sync(); streamsize showmanyc(); }; } # 45 "/usr/include/c++/13/fstream" 2 3 # 54 "/usr/include/c++/13/fstream" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Path, typename _Result = _Path, typename _Path2 = decltype(std::declval<_Path&>().make_preferred().filename())> using _If_fs_path = enable_if_t<is_same_v<_Path, _Path2>, _Result>; # 86 "/usr/include/c++/13/fstream" 3 template<typename _CharT, typename _Traits> class basic_filebuf : public basic_streambuf<_CharT, _Traits> { template<typename _Tp> using __chk_state = __and_<is_copy_assignable<_Tp>, is_copy_constructible<_Tp>, is_default_constructible<_Tp>>; static_assert(__chk_state<typename _Traits::state_type>::value, "state_type must be CopyAssignable, CopyConstructible" " and DefaultConstructible"); static_assert(is_same<typename _Traits::pos_type, fpos<typename _Traits::state_type>>::value, "pos_type must be fpos<state_type>"); public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_streambuf<char_type, traits_type> __streambuf_type; typedef basic_filebuf<char_type, traits_type> __filebuf_type; typedef __basic_file<char> __file_type; typedef typename traits_type::state_type __state_type; typedef codecvt<char_type, char, __state_type> __codecvt_type; friend class ios_base; protected: __c_lock _M_lock; __file_type _M_file; ios_base::openmode _M_mode; __state_type _M_state_beg; __state_type _M_state_cur; __state_type _M_state_last; char_type* _M_buf; size_t _M_buf_size; bool _M_buf_allocated; # 162 "/usr/include/c++/13/fstream" 3 bool _M_reading; bool _M_writing; char_type _M_pback; char_type* _M_pback_cur_save; char_type* _M_pback_end_save; bool _M_pback_init; const __codecvt_type* _M_codecvt; char* _M_ext_buf; streamsize _M_ext_buf_size; const char* _M_ext_next; char* _M_ext_end; void _M_create_pback() { if (!_M_pback_init) { _M_pback_cur_save = this->gptr(); _M_pback_end_save = this->egptr(); this->setg(&_M_pback, &_M_pback, &_M_pback + 1); _M_pback_init = true; } } void _M_destroy_pback() throw() { if (_M_pback_init) { _M_pback_cur_save += this->gptr() != this->eback(); this->setg(_M_buf, _M_pback_cur_save, _M_pback_end_save); _M_pback_init = false; } } public: basic_filebuf(); basic_filebuf(const basic_filebuf&) = delete; basic_filebuf(basic_filebuf&&); virtual ~basic_filebuf() { try { this->close(); } catch(...) { } } basic_filebuf& operator=(const basic_filebuf&) = delete; basic_filebuf& operator=(basic_filebuf&&); void swap(basic_filebuf&); bool is_open() const throw() { return _M_file.is_open(); } # 316 "/usr/include/c++/13/fstream" 3 __filebuf_type* open(const char* __s, ios_base::openmode __mode); # 337 "/usr/include/c++/13/fstream" 3 __filebuf_type* open(const std::string& __s, ios_base::openmode __mode) { return open(__s.c_str(), __mode); } # 348 "/usr/include/c++/13/fstream" 3 template<typename _Path> _If_fs_path<_Path, __filebuf_type*> open(const _Path& __s, ios_base::openmode __mode) { return open(__s.c_str(), __mode); } # 367 "/usr/include/c++/13/fstream" 3 __filebuf_type* close(); protected: void _M_allocate_internal_buffer(); void _M_destroy_internal_buffer() throw(); virtual streamsize showmanyc(); virtual int_type underflow(); virtual int_type pbackfail(int_type __c = _Traits::eof()); # 399 "/usr/include/c++/13/fstream" 3 virtual int_type overflow(int_type __c = _Traits::eof()); bool _M_convert_to_external(char_type*, streamsize); # 419 "/usr/include/c++/13/fstream" 3 virtual __streambuf_type* setbuf(char_type* __s, streamsize __n); virtual pos_type seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode __mode = ios_base::in | ios_base::out); virtual pos_type seekpos(pos_type __pos, ios_base::openmode __mode = ios_base::in | ios_base::out); pos_type _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state); int _M_get_ext_pos(__state_type &__state); virtual int sync(); virtual void imbue(const locale& __loc); virtual streamsize xsgetn(char_type* __s, streamsize __n); virtual streamsize xsputn(const char_type* __s, streamsize __n); bool _M_terminate_output(); # 465 "/usr/include/c++/13/fstream" 3 void _M_set_buffer(streamsize __off) { const bool __testin = _M_mode & ios_base::in; const bool __testout = (_M_mode & ios_base::out || _M_mode & ios_base::app); if (__testin && __off > 0) this->setg(_M_buf, _M_buf, _M_buf + __off); else this->setg(_M_buf, _M_buf, _M_buf); if (__testout && __off == 0 && _M_buf_size > 1 ) this->setp(_M_buf, _M_buf + _M_buf_size - 1); else this->setp(0, 0); } }; # 498 "/usr/include/c++/13/fstream" 3 template<typename _CharT, typename _Traits> class basic_ifstream : public basic_istream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_filebuf<char_type, traits_type> __filebuf_type; typedef basic_istream<char_type, traits_type> __istream_type; private: __filebuf_type _M_filebuf; public: # 525 "/usr/include/c++/13/fstream" 3 basic_ifstream() : __istream_type(), _M_filebuf() { this->init(&_M_filebuf); } # 535 "/usr/include/c++/13/fstream" 3 explicit basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 568 "/usr/include/c++/13/fstream" 3 explicit basic_ifstream(const std::string& __s, ios_base::openmode __mode = ios_base::in) : __istream_type(), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 585 "/usr/include/c++/13/fstream" 3 template<typename _Path, typename _Require = _If_fs_path<_Path>> basic_ifstream(const _Path& __s, ios_base::openmode __mode = ios_base::in) : basic_ifstream(__s.c_str(), __mode) { } basic_ifstream(const basic_ifstream&) = delete; basic_ifstream(basic_ifstream&& __rhs) : __istream_type(std::move(__rhs)), _M_filebuf(std::move(__rhs._M_filebuf)) { __istream_type::set_rdbuf(&_M_filebuf); } # 606 "/usr/include/c++/13/fstream" 3 ~basic_ifstream() { } basic_ifstream& operator=(const basic_ifstream&) = delete; basic_ifstream& operator=(basic_ifstream&& __rhs) { __istream_type::operator=(std::move(__rhs)); _M_filebuf = std::move(__rhs._M_filebuf); return *this; } void swap(basic_ifstream& __rhs) { __istream_type::swap(__rhs); _M_filebuf.swap(__rhs._M_filebuf); } # 638 "/usr/include/c++/13/fstream" 3 __filebuf_type* rdbuf() const { return const_cast<__filebuf_type*>(&_M_filebuf); } bool is_open() { return _M_filebuf.is_open(); } bool is_open() const { return _M_filebuf.is_open(); } # 664 "/usr/include/c++/13/fstream" 3 void open(const char* __s, ios_base::openmode __mode = ios_base::in) { if (!_M_filebuf.open(__s, __mode | ios_base::in)) this->setstate(ios_base::failbit); else this->clear(); } # 703 "/usr/include/c++/13/fstream" 3 void open(const std::string& __s, ios_base::openmode __mode = ios_base::in) { if (!_M_filebuf.open(__s, __mode | ios_base::in)) this->setstate(ios_base::failbit); else this->clear(); } # 723 "/usr/include/c++/13/fstream" 3 template<typename _Path> _If_fs_path<_Path, void> open(const _Path& __s, ios_base::openmode __mode = ios_base::in) { open(__s.c_str(), __mode); } # 736 "/usr/include/c++/13/fstream" 3 void close() { if (!_M_filebuf.close()) this->setstate(ios_base::failbit); } }; # 759 "/usr/include/c++/13/fstream" 3 template<typename _CharT, typename _Traits> class basic_ofstream : public basic_ostream<_CharT,_Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_filebuf<char_type, traits_type> __filebuf_type; typedef basic_ostream<char_type, traits_type> __ostream_type; private: __filebuf_type _M_filebuf; public: # 786 "/usr/include/c++/13/fstream" 3 basic_ofstream(): __ostream_type(), _M_filebuf() { this->init(&_M_filebuf); } # 796 "/usr/include/c++/13/fstream" 3 explicit basic_ofstream(const char* __s, ios_base::openmode __mode = ios_base::out) : __ostream_type(), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 831 "/usr/include/c++/13/fstream" 3 explicit basic_ofstream(const std::string& __s, ios_base::openmode __mode = ios_base::out) : __ostream_type(), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 848 "/usr/include/c++/13/fstream" 3 template<typename _Path, typename _Require = _If_fs_path<_Path>> basic_ofstream(const _Path& __s, ios_base::openmode __mode = ios_base::out) : basic_ofstream(__s.c_str(), __mode) { } basic_ofstream(const basic_ofstream&) = delete; basic_ofstream(basic_ofstream&& __rhs) : __ostream_type(std::move(__rhs)), _M_filebuf(std::move(__rhs._M_filebuf)) { __ostream_type::set_rdbuf(&_M_filebuf); } # 869 "/usr/include/c++/13/fstream" 3 ~basic_ofstream() { } basic_ofstream& operator=(const basic_ofstream&) = delete; basic_ofstream& operator=(basic_ofstream&& __rhs) { __ostream_type::operator=(std::move(__rhs)); _M_filebuf = std::move(__rhs._M_filebuf); return *this; } void swap(basic_ofstream& __rhs) { __ostream_type::swap(__rhs); _M_filebuf.swap(__rhs._M_filebuf); } # 901 "/usr/include/c++/13/fstream" 3 __filebuf_type* rdbuf() const { return const_cast<__filebuf_type*>(&_M_filebuf); } bool is_open() { return _M_filebuf.is_open(); } bool is_open() const { return _M_filebuf.is_open(); } # 927 "/usr/include/c++/13/fstream" 3 void open(const char* __s, ios_base::openmode __mode = ios_base::out) { if (!_M_filebuf.open(__s, __mode | ios_base::out)) this->setstate(ios_base::failbit); else this->clear(); } # 966 "/usr/include/c++/13/fstream" 3 void open(const std::string& __s, ios_base::openmode __mode = ios_base::out) { if (!_M_filebuf.open(__s, __mode | ios_base::out)) this->setstate(ios_base::failbit); else this->clear(); } # 986 "/usr/include/c++/13/fstream" 3 template<typename _Path> _If_fs_path<_Path, void> open(const _Path& __s, ios_base::openmode __mode = ios_base::out) { open(__s.c_str(), __mode); } # 999 "/usr/include/c++/13/fstream" 3 void close() { if (!_M_filebuf.close()) this->setstate(ios_base::failbit); } }; # 1022 "/usr/include/c++/13/fstream" 3 template<typename _CharT, typename _Traits> class basic_fstream : public basic_iostream<_CharT, _Traits> { public: typedef _CharT char_type; typedef _Traits traits_type; typedef typename traits_type::int_type int_type; typedef typename traits_type::pos_type pos_type; typedef typename traits_type::off_type off_type; typedef basic_filebuf<char_type, traits_type> __filebuf_type; typedef basic_ios<char_type, traits_type> __ios_type; typedef basic_iostream<char_type, traits_type> __iostream_type; private: __filebuf_type _M_filebuf; public: # 1050 "/usr/include/c++/13/fstream" 3 basic_fstream() : __iostream_type(), _M_filebuf() { this->init(&_M_filebuf); } explicit basic_fstream(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out) : __iostream_type(0), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } # 1089 "/usr/include/c++/13/fstream" 3 explicit basic_fstream(const std::string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out) : __iostream_type(0), _M_filebuf() { this->init(&_M_filebuf); this->open(__s, __mode); } template<typename _Path, typename _Require = _If_fs_path<_Path>> basic_fstream(const _Path& __s, ios_base::openmode __mode = ios_base::in | ios_base::out) : basic_fstream(__s.c_str(), __mode) { } basic_fstream(const basic_fstream&) = delete; basic_fstream(basic_fstream&& __rhs) : __iostream_type(std::move(__rhs)), _M_filebuf(std::move(__rhs._M_filebuf)) { __iostream_type::set_rdbuf(&_M_filebuf); } # 1125 "/usr/include/c++/13/fstream" 3 ~basic_fstream() { } basic_fstream& operator=(const basic_fstream&) = delete; basic_fstream& operator=(basic_fstream&& __rhs) { __iostream_type::operator=(std::move(__rhs)); _M_filebuf = std::move(__rhs._M_filebuf); return *this; } void swap(basic_fstream& __rhs) { __iostream_type::swap(__rhs); _M_filebuf.swap(__rhs._M_filebuf); } # 1157 "/usr/include/c++/13/fstream" 3 __filebuf_type* rdbuf() const { return const_cast<__filebuf_type*>(&_M_filebuf); } bool is_open() { return _M_filebuf.is_open(); } bool is_open() const { return _M_filebuf.is_open(); } # 1183 "/usr/include/c++/13/fstream" 3 void open(const char* __s, ios_base::openmode __mode = ios_base::in | ios_base::out) { if (!_M_filebuf.open(__s, __mode)) this->setstate(ios_base::failbit); else this->clear(); } # 1224 "/usr/include/c++/13/fstream" 3 void open(const std::string& __s, ios_base::openmode __mode = ios_base::in | ios_base::out) { if (!_M_filebuf.open(__s, __mode)) this->setstate(ios_base::failbit); else this->clear(); } # 1245 "/usr/include/c++/13/fstream" 3 template<typename _Path> _If_fs_path<_Path, void> open(const _Path& __s, ios_base::openmode __mode = ios_base::in | ios_base::out) { open(__s.c_str(), __mode); } # 1259 "/usr/include/c++/13/fstream" 3 void close() { if (!_M_filebuf.close()) this->setstate(ios_base::failbit); } }; template <class _CharT, class _Traits> inline void swap(basic_filebuf<_CharT, _Traits>& __x, basic_filebuf<_CharT, _Traits>& __y) { __x.swap(__y); } template <class _CharT, class _Traits> inline void swap(basic_ifstream<_CharT, _Traits>& __x, basic_ifstream<_CharT, _Traits>& __y) { __x.swap(__y); } template <class _CharT, class _Traits> inline void swap(basic_ofstream<_CharT, _Traits>& __x, basic_ofstream<_CharT, _Traits>& __y) { __x.swap(__y); } template <class _CharT, class _Traits> inline void swap(basic_fstream<_CharT, _Traits>& __x, basic_fstream<_CharT, _Traits>& __y) { __x.swap(__y); } } # 1 "/usr/include/c++/13/bits/fstream.tcc" 1 3 # 37 "/usr/include/c++/13/bits/fstream.tcc" 3 # 38 "/usr/include/c++/13/bits/fstream.tcc" 3 # 1 "/usr/include/c++/13/cerrno" 1 3 # 39 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/cerrno" 3 # 42 "/usr/include/c++/13/bits/fstream.tcc" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _CharT, typename _Traits> void basic_filebuf<_CharT, _Traits>:: _M_allocate_internal_buffer() { if (!_M_buf_allocated && !_M_buf) { _M_buf = new char_type[_M_buf_size]; _M_buf_allocated = true; } } template<typename _CharT, typename _Traits> void basic_filebuf<_CharT, _Traits>:: _M_destroy_internal_buffer() throw() { if (_M_buf_allocated) { delete [] _M_buf; _M_buf = 0; _M_buf_allocated = false; } delete [] _M_ext_buf; _M_ext_buf = 0; _M_ext_buf_size = 0; _M_ext_next = 0; _M_ext_end = 0; } template<typename _CharT, typename _Traits> basic_filebuf<_CharT, _Traits>:: basic_filebuf() : __streambuf_type(), _M_lock(), _M_file(&_M_lock), _M_mode(ios_base::openmode(0)), _M_state_beg(), _M_state_cur(), _M_state_last(), _M_buf(0), _M_buf_size(8192), _M_buf_allocated(false), _M_reading(false), _M_writing(false), _M_pback(), _M_pback_cur_save(0), _M_pback_end_save(0), _M_pback_init(false), _M_codecvt(0), _M_ext_buf(0), _M_ext_buf_size(0), _M_ext_next(0), _M_ext_end(0) { _M_codecvt = std::__try_use_facet<__codecvt_type>(this->_M_buf_locale); } template<typename _CharT, typename _Traits> basic_filebuf<_CharT, _Traits>:: basic_filebuf(basic_filebuf&& __rhs) : __streambuf_type(__rhs), _M_lock(), _M_file(std::move(__rhs._M_file), &_M_lock), _M_mode(std::__exchange(__rhs._M_mode, ios_base::openmode(0))), _M_state_beg(std::move(__rhs._M_state_beg)), _M_state_cur(std::move(__rhs._M_state_cur)), _M_state_last(std::move(__rhs._M_state_last)), _M_buf(std::__exchange(__rhs._M_buf, nullptr)), _M_buf_size(std::__exchange(__rhs._M_buf_size, 1)), _M_buf_allocated(std::__exchange(__rhs._M_buf_allocated, false)), _M_reading(std::__exchange(__rhs._M_reading, false)), _M_writing(std::__exchange(__rhs._M_writing, false)), _M_pback(__rhs._M_pback), _M_pback_cur_save(std::__exchange(__rhs._M_pback_cur_save, nullptr)), _M_pback_end_save(std::__exchange(__rhs._M_pback_end_save, nullptr)), _M_pback_init(std::__exchange(__rhs._M_pback_init, false)), _M_codecvt(__rhs._M_codecvt), _M_ext_buf(std::__exchange(__rhs._M_ext_buf, nullptr)), _M_ext_buf_size(std::__exchange(__rhs._M_ext_buf_size, 0)), _M_ext_next(std::__exchange(__rhs._M_ext_next, nullptr)), _M_ext_end(std::__exchange(__rhs._M_ext_end, nullptr)) { __rhs._M_set_buffer(-1); __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; } template<typename _CharT, typename _Traits> basic_filebuf<_CharT, _Traits>& basic_filebuf<_CharT, _Traits>:: operator=(basic_filebuf&& __rhs) { this->close(); __streambuf_type::operator=(__rhs); _M_file.swap(__rhs._M_file); _M_mode = std::__exchange(__rhs._M_mode, ios_base::openmode(0)); _M_state_beg = std::move(__rhs._M_state_beg); _M_state_cur = std::move(__rhs._M_state_cur); _M_state_last = std::move(__rhs._M_state_last); _M_buf = std::__exchange(__rhs._M_buf, nullptr); _M_buf_size = std::__exchange(__rhs._M_buf_size, 1); _M_buf_allocated = std::__exchange(__rhs._M_buf_allocated, false); _M_ext_buf = std::__exchange(__rhs._M_ext_buf, nullptr); _M_ext_buf_size = std::__exchange(__rhs._M_ext_buf_size, 0); _M_ext_next = std::__exchange(__rhs._M_ext_next, nullptr); _M_ext_end = std::__exchange(__rhs._M_ext_end, nullptr); _M_reading = std::__exchange(__rhs._M_reading, false); _M_writing = std::__exchange(__rhs._M_writing, false); _M_pback_cur_save = std::__exchange(__rhs._M_pback_cur_save, nullptr); _M_pback_end_save = std::__exchange(__rhs._M_pback_end_save, nullptr); _M_pback_init = std::__exchange(__rhs._M_pback_init, false); __rhs._M_set_buffer(-1); __rhs._M_state_last = __rhs._M_state_cur = __rhs._M_state_beg; return *this; } template<typename _CharT, typename _Traits> void basic_filebuf<_CharT, _Traits>:: swap(basic_filebuf& __rhs) { __streambuf_type::swap(__rhs); _M_file.swap(__rhs._M_file); std::swap(_M_mode, __rhs._M_mode); std::swap(_M_state_beg, __rhs._M_state_beg); std::swap(_M_state_cur, __rhs._M_state_cur); std::swap(_M_state_last, __rhs._M_state_last); std::swap(_M_buf, __rhs._M_buf); std::swap(_M_buf_size, __rhs._M_buf_size); std::swap(_M_buf_allocated, __rhs._M_buf_allocated); std::swap(_M_ext_buf, __rhs._M_ext_buf); std::swap(_M_ext_buf_size, __rhs._M_ext_buf_size); std::swap(_M_ext_next, __rhs._M_ext_next); std::swap(_M_ext_end, __rhs._M_ext_end); std::swap(_M_reading, __rhs._M_reading); std::swap(_M_writing, __rhs._M_writing); std::swap(_M_pback_cur_save, __rhs._M_pback_cur_save); std::swap(_M_pback_end_save, __rhs._M_pback_end_save); std::swap(_M_pback_init, __rhs._M_pback_init); } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::__filebuf_type* basic_filebuf<_CharT, _Traits>:: open(const char* __s, ios_base::openmode __mode) { __filebuf_type *__ret = 0; if (!this->is_open()) { _M_file.open(__s, __mode); if (this->is_open()) { _M_allocate_internal_buffer(); _M_mode = __mode; _M_reading = false; _M_writing = false; _M_set_buffer(-1); _M_state_last = _M_state_cur = _M_state_beg; if ((__mode & ios_base::ate) && this->seekoff(0, ios_base::end, __mode) == pos_type(off_type(-1))) this->close(); else __ret = this; } } return __ret; } # 246 "/usr/include/c++/13/bits/fstream.tcc" 3 template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::__filebuf_type* basic_filebuf<_CharT, _Traits>:: close() { if (!this->is_open()) return 0; bool __testfail = false; { struct __close_sentry { basic_filebuf *__fb; __close_sentry (basic_filebuf *__fbi): __fb(__fbi) { } ~__close_sentry () { __fb->_M_mode = ios_base::openmode(0); __fb->_M_pback_init = false; __fb->_M_destroy_internal_buffer(); __fb->_M_reading = false; __fb->_M_writing = false; __fb->_M_set_buffer(-1); __fb->_M_state_last = __fb->_M_state_cur = __fb->_M_state_beg; } } __cs (this); try { if (!_M_terminate_output()) __testfail = true; } catch(...) { _M_file.close(); throw; } } if (!_M_file.close()) __testfail = true; if (__testfail) return 0; else return this; } template<typename _CharT, typename _Traits> streamsize basic_filebuf<_CharT, _Traits>:: showmanyc() { streamsize __ret = -1; const bool __testin = _M_mode & ios_base::in; if (__testin && this->is_open()) { __ret = this->egptr() - this->gptr(); if (__check_facet(_M_codecvt).encoding() >= 0) __ret += _M_file.showmanyc() / _M_codecvt->max_length(); } return __ret; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>:: underflow() { int_type __ret = traits_type::eof(); const bool __testin = _M_mode & ios_base::in; if (__testin) { if (_M_writing) { if (overflow() == traits_type::eof()) return __ret; _M_set_buffer(-1); _M_writing = false; } _M_destroy_pback(); if (this->gptr() < this->egptr()) return traits_type::to_int_type(*this->gptr()); const size_t __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; bool __got_eof = false; streamsize __ilen = 0; codecvt_base::result __r = codecvt_base::ok; if (__check_facet(_M_codecvt).always_noconv()) { __ilen = _M_file.xsgetn(reinterpret_cast<char*>(this->eback()), __buflen); if (__ilen == 0) __got_eof = true; } else { const int __enc = _M_codecvt->encoding(); streamsize __blen; streamsize __rlen; if (__enc > 0) __blen = __rlen = __buflen * __enc; else { __blen = __buflen + _M_codecvt->max_length() - 1; __rlen = __buflen; } const streamsize __remainder = _M_ext_end - _M_ext_next; __rlen = __rlen > __remainder ? __rlen - __remainder : 0; if (_M_reading && this->egptr() == this->eback() && __remainder) __rlen = 0; if (_M_ext_buf_size < __blen) { char* __buf = new char[__blen]; if (__remainder) __builtin_memcpy(__buf, _M_ext_next, __remainder); delete [] _M_ext_buf; _M_ext_buf = __buf; _M_ext_buf_size = __blen; } else if (__remainder) __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); _M_ext_next = _M_ext_buf; _M_ext_end = _M_ext_buf + __remainder; _M_state_last = _M_state_cur; do { if (__rlen > 0) { if (_M_ext_end - _M_ext_buf + __rlen > _M_ext_buf_size) { __throw_ios_failure(("basic_filebuf::underflow " "codecvt::max_length() " "is not valid") ); } streamsize __elen = _M_file.xsgetn(_M_ext_end, __rlen); if (__elen == 0) __got_eof = true; else if (__elen == -1) break; _M_ext_end += __elen; } char_type* __iend = this->eback(); if (_M_ext_next < _M_ext_end) __r = _M_codecvt->in(_M_state_cur, _M_ext_next, _M_ext_end, _M_ext_next, this->eback(), this->eback() + __buflen, __iend); if (__r == codecvt_base::noconv) { size_t __avail = _M_ext_end - _M_ext_buf; __ilen = std::min(__avail, __buflen); traits_type::copy(this->eback(), reinterpret_cast<char_type*> (_M_ext_buf), __ilen); _M_ext_next = _M_ext_buf + __ilen; } else __ilen = __iend - this->eback(); if (__r == codecvt_base::error) break; __rlen = 1; } while (__ilen == 0 && !__got_eof); } if (__ilen > 0) { _M_set_buffer(__ilen); _M_reading = true; __ret = traits_type::to_int_type(*this->gptr()); } else if (__got_eof) { _M_set_buffer(-1); _M_reading = false; if (__r == codecvt_base::partial) __throw_ios_failure(("basic_filebuf::underflow " "incomplete character in file") ); } else if (__r == codecvt_base::error) __throw_ios_failure(("basic_filebuf::underflow " "invalid byte sequence in file") ); else __throw_ios_failure(("basic_filebuf::underflow " "error reading the file") , (*__errno_location ())); } return __ret; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>:: pbackfail(int_type __i) { int_type __ret = traits_type::eof(); const bool __testin = _M_mode & ios_base::in; if (__testin) { if (_M_writing) { if (overflow() == traits_type::eof()) return __ret; _M_set_buffer(-1); _M_writing = false; } const bool __testpb = _M_pback_init; const bool __testeof = traits_type::eq_int_type(__i, __ret); int_type __tmp; if (this->eback() < this->gptr()) { this->gbump(-1); __tmp = traits_type::to_int_type(*this->gptr()); } else if (this->seekoff(-1, ios_base::cur) != pos_type(off_type(-1))) { __tmp = this->underflow(); if (traits_type::eq_int_type(__tmp, __ret)) return __ret; } else { return __ret; } if (!__testeof && traits_type::eq_int_type(__i, __tmp)) __ret = __i; else if (__testeof) __ret = traits_type::not_eof(__i); else if (!__testpb) { _M_create_pback(); _M_reading = true; *this->gptr() = traits_type::to_char_type(__i); __ret = __i; } } return __ret; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::int_type basic_filebuf<_CharT, _Traits>:: overflow(int_type __c) { int_type __ret = traits_type::eof(); const bool __testeof = traits_type::eq_int_type(__c, __ret); const bool __testout = (_M_mode & ios_base::out || _M_mode & ios_base::app); if (__testout) { if (_M_reading) { _M_destroy_pback(); const int __gptr_off = _M_get_ext_pos(_M_state_last); if (_M_seek(__gptr_off, ios_base::cur, _M_state_last) == pos_type(off_type(-1))) return __ret; } if (this->pbase() < this->pptr()) { if (!__testeof) { *this->pptr() = traits_type::to_char_type(__c); this->pbump(1); } if (_M_convert_to_external(this->pbase(), this->pptr() - this->pbase())) { _M_set_buffer(0); __ret = traits_type::not_eof(__c); } } else if (_M_buf_size > 1) { _M_set_buffer(0); _M_writing = true; if (!__testeof) { *this->pptr() = traits_type::to_char_type(__c); this->pbump(1); } __ret = traits_type::not_eof(__c); } else { char_type __conv = traits_type::to_char_type(__c); if (__testeof || _M_convert_to_external(&__conv, 1)) { _M_writing = true; __ret = traits_type::not_eof(__c); } } } return __ret; } template<typename _CharT, typename _Traits> bool basic_filebuf<_CharT, _Traits>:: _M_convert_to_external(_CharT* __ibuf, streamsize __ilen) { streamsize __elen; streamsize __plen; if (__check_facet(_M_codecvt).always_noconv()) { __elen = _M_file.xsputn(reinterpret_cast<char*>(__ibuf), __ilen); __plen = __ilen; } else { streamsize __blen = __ilen * _M_codecvt->max_length(); char* __buf = static_cast<char*>(__builtin_alloca(__blen)); char* __bend; const char_type* __iend; codecvt_base::result __r; __r = _M_codecvt->out(_M_state_cur, __ibuf, __ibuf + __ilen, __iend, __buf, __buf + __blen, __bend); if (__r == codecvt_base::ok || __r == codecvt_base::partial) __blen = __bend - __buf; else if (__r == codecvt_base::noconv) { __buf = reinterpret_cast<char*>(__ibuf); __blen = __ilen; } else __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") ); __elen = _M_file.xsputn(__buf, __blen); __plen = __blen; if (__r == codecvt_base::partial && __elen == __plen) { const char_type* __iresume = __iend; streamsize __rlen = this->pptr() - __iend; __r = _M_codecvt->out(_M_state_cur, __iresume, __iresume + __rlen, __iend, __buf, __buf + __blen, __bend); if (__r != codecvt_base::error) { __rlen = __bend - __buf; __elen = _M_file.xsputn(__buf, __rlen); __plen = __rlen; } else __throw_ios_failure(("basic_filebuf::_M_convert_to_external " "conversion error") ); } } return __elen == __plen; } template<typename _CharT, typename _Traits> streamsize basic_filebuf<_CharT, _Traits>:: xsgetn(_CharT* __s, streamsize __n) { streamsize __ret = 0; if (_M_pback_init) { if (__n > 0 && this->gptr() == this->eback()) { *__s++ = *this->gptr(); this->gbump(1); __ret = 1; --__n; } _M_destroy_pback(); } else if (_M_writing) { if (overflow() == traits_type::eof()) return __ret; _M_set_buffer(-1); _M_writing = false; } const bool __testin = _M_mode & ios_base::in; const streamsize __buflen = _M_buf_size > 1 ? _M_buf_size - 1 : 1; if (__n > __buflen && __check_facet(_M_codecvt).always_noconv() && __testin) { const streamsize __avail = this->egptr() - this->gptr(); if (__avail != 0) { traits_type::copy(__s, this->gptr(), __avail); __s += __avail; this->setg(this->eback(), this->gptr() + __avail, this->egptr()); __ret += __avail; __n -= __avail; } streamsize __len; for (;;) { __len = _M_file.xsgetn(reinterpret_cast<char*>(__s), __n); if (__len == -1) __throw_ios_failure(("basic_filebuf::xsgetn " "error reading the file") , (*__errno_location ())); if (__len == 0) break; __n -= __len; __ret += __len; if (__n == 0) break; __s += __len; } if (__n == 0) { _M_reading = true; } else if (__len == 0) { _M_set_buffer(-1); _M_reading = false; } } else __ret += __streambuf_type::xsgetn(__s, __n); return __ret; } template<typename _CharT, typename _Traits> streamsize basic_filebuf<_CharT, _Traits>:: xsputn(const _CharT* __s, streamsize __n) { streamsize __ret = 0; const bool __testout = (_M_mode & ios_base::out || _M_mode & ios_base::app); if (__check_facet(_M_codecvt).always_noconv() && __testout && !_M_reading) { streamsize __bufavail = this->epptr() - this->pptr(); if (!_M_writing && _M_buf_size > 1) __bufavail = _M_buf_size - 1; if (__n >= __bufavail) { const streamsize __buffill = this->pptr() - this->pbase(); const char* __buf = reinterpret_cast<const char*>(this->pbase()); __ret = _M_file.xsputn_2(__buf, __buffill, reinterpret_cast<const char*>(__s), __n); if (__ret == __buffill + __n) { _M_set_buffer(0); _M_writing = true; } if (__ret > __buffill) __ret -= __buffill; else __ret = 0; } else __ret = __streambuf_type::xsputn(__s, __n); } else __ret = __streambuf_type::xsputn(__s, __n); return __ret; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::__streambuf_type* basic_filebuf<_CharT, _Traits>:: setbuf(char_type* __s, streamsize __n) { if (!this->is_open()) { if (__s == 0 && __n == 0) _M_buf_size = 1; else if (__s && __n > 0) { # 816 "/usr/include/c++/13/bits/fstream.tcc" 3 _M_buf = __s; _M_buf_size = __n; } } return this; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>:: seekoff(off_type __off, ios_base::seekdir __way, ios_base::openmode) { int __width = 0; if (_M_codecvt) __width = _M_codecvt->encoding(); if (__width < 0) __width = 0; pos_type __ret = pos_type(off_type(-1)); const bool __testfail = __off != 0 && __width <= 0; if (this->is_open() && !__testfail) { bool __no_movement = __way == ios_base::cur && __off == 0 && (!_M_writing || _M_codecvt->always_noconv()); if (!__no_movement) _M_destroy_pback(); __state_type __state = _M_state_beg; off_type __computed_off = __off * __width; if (_M_reading && __way == ios_base::cur) { __state = _M_state_last; __computed_off += _M_get_ext_pos(__state); } if (!__no_movement) __ret = _M_seek(__computed_off, __way, __state); else { if (_M_writing) __computed_off = this->pptr() - this->pbase(); off_type __file_off = _M_file.seekoff(0, ios_base::cur); if (__file_off != off_type(-1)) { __ret = __file_off + __computed_off; __ret.state(__state); } } } return __ret; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>:: seekpos(pos_type __pos, ios_base::openmode) { pos_type __ret = pos_type(off_type(-1)); if (this->is_open()) { _M_destroy_pback(); __ret = _M_seek(off_type(__pos), ios_base::beg, __pos.state()); } return __ret; } template<typename _CharT, typename _Traits> typename basic_filebuf<_CharT, _Traits>::pos_type basic_filebuf<_CharT, _Traits>:: _M_seek(off_type __off, ios_base::seekdir __way, __state_type __state) { pos_type __ret = pos_type(off_type(-1)); if (_M_terminate_output()) { off_type __file_off = _M_file.seekoff(__off, __way); if (__file_off != off_type(-1)) { _M_reading = false; _M_writing = false; _M_ext_next = _M_ext_end = _M_ext_buf; _M_set_buffer(-1); _M_state_cur = __state; __ret = __file_off; __ret.state(_M_state_cur); } } return __ret; } template<typename _CharT, typename _Traits> int basic_filebuf<_CharT, _Traits>:: _M_get_ext_pos(__state_type& __state) { if (_M_codecvt->always_noconv()) return this->gptr() - this->egptr(); else { const int __gptr_off = _M_codecvt->length(__state, _M_ext_buf, _M_ext_next, this->gptr() - this->eback()); return _M_ext_buf + __gptr_off - _M_ext_end; } } template<typename _CharT, typename _Traits> bool basic_filebuf<_CharT, _Traits>:: _M_terminate_output() { bool __testvalid = true; if (this->pbase() < this->pptr()) { const int_type __tmp = this->overflow(); if (traits_type::eq_int_type(__tmp, traits_type::eof())) __testvalid = false; } if (_M_writing && !__check_facet(_M_codecvt).always_noconv() && __testvalid) { const size_t __blen = 128; char __buf[__blen]; codecvt_base::result __r; streamsize __ilen = 0; do { char* __next; __r = _M_codecvt->unshift(_M_state_cur, __buf, __buf + __blen, __next); if (__r == codecvt_base::error) __testvalid = false; else if (__r == codecvt_base::ok || __r == codecvt_base::partial) { __ilen = __next - __buf; if (__ilen > 0) { const streamsize __elen = _M_file.xsputn(__buf, __ilen); if (__elen != __ilen) __testvalid = false; } } } while (__r == codecvt_base::partial && __ilen > 0 && __testvalid); if (__testvalid) { const int_type __tmp = this->overflow(); if (traits_type::eq_int_type(__tmp, traits_type::eof())) __testvalid = false; } } return __testvalid; } template<typename _CharT, typename _Traits> int basic_filebuf<_CharT, _Traits>:: sync() { int __ret = 0; if (this->pbase() < this->pptr()) { const int_type __tmp = this->overflow(); if (traits_type::eq_int_type(__tmp, traits_type::eof())) __ret = -1; } return __ret; } template<typename _CharT, typename _Traits> void basic_filebuf<_CharT, _Traits>:: imbue(const locale& __loc) { bool __testvalid = true; const __codecvt_type* const _M_codecvt_tmp = __try_use_facet<__codecvt_type>(__loc); if (this->is_open()) { if ((_M_reading || _M_writing) && __check_facet(_M_codecvt).encoding() == -1) __testvalid = false; else { if (_M_reading) { if (__check_facet(_M_codecvt).always_noconv()) { if (_M_codecvt_tmp && !__check_facet(_M_codecvt_tmp).always_noconv()) __testvalid = this->seekoff(0, ios_base::cur, _M_mode) != pos_type(off_type(-1)); } else { _M_ext_next = _M_ext_buf + _M_codecvt->length(_M_state_last, _M_ext_buf, _M_ext_next, this->gptr() - this->eback()); const streamsize __remainder = _M_ext_end - _M_ext_next; if (__remainder) __builtin_memmove(_M_ext_buf, _M_ext_next, __remainder); _M_ext_next = _M_ext_buf; _M_ext_end = _M_ext_buf + __remainder; _M_set_buffer(-1); _M_state_last = _M_state_cur = _M_state_beg; } } else if (_M_writing && (__testvalid = _M_terminate_output())) _M_set_buffer(-1); } } if (__testvalid) _M_codecvt = _M_codecvt_tmp; else _M_codecvt = 0; } extern template class basic_filebuf<char>; extern template class basic_ifstream<char>; extern template class basic_ofstream<char>; extern template class basic_fstream<char>; extern template class basic_filebuf<wchar_t>; extern template class basic_ifstream<wchar_t>; extern template class basic_ofstream<wchar_t>; extern template class basic_fstream<wchar_t>; } # 1301 "/usr/include/c++/13/fstream" 2 3 # 12 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 2 3 4 # 20 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 3 4 # 1 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 1 3 4 # 36 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 # 1 "/usr/include/c++/13/cmath" 1 3 4 # 39 "/usr/include/c++/13/cmath" 3 4 # 40 "/usr/include/c++/13/cmath" 3 # 37 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 2 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 39 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 # 1 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 13 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 2 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 14 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 2 3 4 # 246 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 # 246 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 #pragma GCC push_options # 246 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 # 249 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 #pragma GCC optimize("Og") # 249 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 namespace fmt { inline namespace v10 { template <bool B, typename T = void> using enable_if_t = typename std::enable_if<B, T>::type; template <bool B, typename T, typename F> using conditional_t = typename std::conditional<B, T, F>::type; template <bool B> using bool_constant = std::integral_constant<bool, B>; template <typename T> using remove_reference_t = typename std::remove_reference<T>::type; template <typename T> using remove_const_t = typename std::remove_const<T>::type; template <typename T> using remove_cvref_t = typename std::remove_cv<remove_reference_t<T>>::type; template <typename T> struct type_identity { using type = T; }; template <typename T> using type_identity_t = typename type_identity<T>::type; template <typename T> using underlying_t = typename std::underlying_type<T>::type; template <typename T> struct is_contiguous : std::false_type {}; template <typename Char> struct is_contiguous<std::basic_string<Char>> : std::true_type {}; struct monostate { constexpr monostate() {} }; # 292 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename T, fmt::enable_if_t<(std::is_same<T, std::byte>::value), int> = 0> inline auto format_as(T b) -> unsigned char { return static_cast<unsigned char>(b); } namespace detail { template <typename... T> constexpr void ignore_unused(const T&...) {} constexpr inline __attribute__((always_inline)) auto is_constant_evaluated( bool default_value = false) noexcept -> bool { # 315 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 ignore_unused(default_value); return std::is_constant_evaluated(); } template <typename T> constexpr inline __attribute__((always_inline)) auto const_check(T value) -> T { return value; } [[noreturn]] void assert_fail(const char* file, int line, const char* message); # 344 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Char> using std_string_view = std::basic_string_view<Char>; # 357 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 using int128_opt = __int128_t; using uint128_opt = __uint128_t; template <typename T> inline auto convert_for_visit(T value) -> T { return value; } # 373 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Int> constexpr auto to_unsigned(Int value) -> typename std::make_unsigned<Int>::type { ((std::is_unsigned<Int>::value || value >= 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h", 376, ("negative value"))); return static_cast<typename std::make_unsigned<Int>::type>(value); } constexpr inline auto is_utf8() -> bool { constexpr unsigned char section[] = "\u00A7"; using uchar = unsigned char; return !0 || (sizeof(section) == 3 && uchar(section[0]) == 0xC2 && uchar(section[1]) == 0xA7); } } # 397 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Char> class basic_string_view { private: const Char* data_; size_t size_; public: using value_type = Char; using iterator = const Char*; constexpr basic_string_view() noexcept : data_(nullptr), size_(0) {} constexpr basic_string_view(const Char* s, size_t count) noexcept : data_(s), size_(count) {} constexpr inline __attribute__((always_inline)) basic_string_view(const Char* s) : data_(s), size_(detail::const_check(std::is_same<Char, char>::value && !detail::is_constant_evaluated(true)) ? std::strlen(reinterpret_cast<const char*>(s)) : std::char_traits<Char>::length(s)) {} template <typename Traits, typename Alloc> constexpr basic_string_view( const std::basic_string<Char, Traits, Alloc>& s) noexcept : data_(s.data()), size_(s.size()) {} template <typename S, fmt::enable_if_t<(std::is_same< S, detail::std_string_view<Char>>::value), int> = 0 > constexpr basic_string_view(S s) noexcept : data_(s.data()), size_(s.size()) {} constexpr auto data() const noexcept -> const Char* { return data_; } constexpr auto size() const noexcept -> size_t { return size_; } constexpr auto begin() const noexcept -> iterator { return data_; } constexpr auto end() const noexcept -> iterator { return data_ + size_; } constexpr auto operator[](size_t pos) const noexcept -> const Char& { return data_[pos]; } constexpr void remove_prefix(size_t n) noexcept { data_ += n; size_ -= n; } constexpr bool starts_with( basic_string_view<Char> sv) const noexcept { return size_ >= sv.size_ && std::char_traits<Char>::compare(data_, sv.data_, sv.size_) == 0; } constexpr bool starts_with(Char c) const noexcept { return size_ >= 1 && std::char_traits<Char>::eq(*data_, c); } constexpr bool starts_with(const Char* s) const { return starts_with(basic_string_view<Char>(s)); } constexpr auto compare(basic_string_view other) const -> int { size_t str_size = size_ < other.size_ ? size_ : other.size_; int result = std::char_traits<Char>::compare(data_, other.data_, str_size); if (result == 0) result = size_ == other.size_ ? 0 : (size_ < other.size_ ? -1 : 1); return result; } constexpr friend auto operator==(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) == 0; } friend auto operator!=(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) != 0; } friend auto operator<(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) < 0; } friend auto operator<=(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) <= 0; } friend auto operator>(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) > 0; } friend auto operator>=(basic_string_view lhs, basic_string_view rhs) -> bool { return lhs.compare(rhs) >= 0; } }; using string_view = basic_string_view<char>; template <typename T> struct is_char : std::false_type {}; template <> struct is_char<char> : std::true_type {}; namespace detail { struct compile_string {}; template <typename S> struct is_compile_string : std::is_base_of<compile_string, S> {}; template <typename Char, fmt::enable_if_t<(is_char<Char>::value), int> = 0> inline __attribute__((always_inline)) auto to_string_view(const Char* s) -> basic_string_view<Char> { return s; } template <typename Char, typename Traits, typename Alloc> inline auto to_string_view(const std::basic_string<Char, Traits, Alloc>& s) -> basic_string_view<Char> { return s; } template <typename Char> constexpr auto to_string_view(basic_string_view<Char> s) -> basic_string_view<Char> { return s; } template <typename Char, fmt::enable_if_t<(!std::is_empty<std_string_view<Char>>::value), int> = 0> inline auto to_string_view(std_string_view<Char> s) -> basic_string_view<Char> { return s; } template <typename S, fmt::enable_if_t<(is_compile_string<S>::value), int> = 0> constexpr auto to_string_view(const S& s) -> basic_string_view<typename S::char_type> { return basic_string_view<typename S::char_type>(s); } void to_string_view(...); template <typename S> struct is_string : std::is_class<decltype(detail::to_string_view(std::declval<S>()))> {}; template <typename S, typename = void> struct char_t_impl {}; template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> { using result = decltype(to_string_view(std::declval<S>())); using type = typename result::value_type; }; enum class type { none_type, int_type, uint_type, long_long_type, ulong_long_type, int128_type, uint128_type, bool_type, char_type, last_integer_type = char_type, float_type, double_type, long_double_type, last_numeric_type = long_double_type, cstring_type, string_type, pointer_type, custom_type }; template <typename T, typename Char> struct type_constant : std::integral_constant<type, type::custom_type> {}; template <typename Char> struct type_constant<int, Char> : std::integral_constant<type, type::int_type> {}; template <typename Char> struct type_constant<unsigned, Char> : std::integral_constant<type, type::uint_type> {}; template <typename Char> struct type_constant<long long, Char> : std::integral_constant<type, type::long_long_type> {}; template <typename Char> struct type_constant<unsigned long long, Char> : std::integral_constant<type, type::ulong_long_type> {}; template <typename Char> struct type_constant<int128_opt, Char> : std::integral_constant<type, type::int128_type> {}; template <typename Char> struct type_constant<uint128_opt, Char> : std::integral_constant<type, type::uint128_type> {}; template <typename Char> struct type_constant<bool, Char> : std::integral_constant<type, type::bool_type> {}; template <typename Char> struct type_constant<Char, Char> : std::integral_constant<type, type::char_type> {}; template <typename Char> struct type_constant<float, Char> : std::integral_constant<type, type::float_type> {}; template <typename Char> struct type_constant<double, Char> : std::integral_constant<type, type::double_type> {}; template <typename Char> struct type_constant<long double, Char> : std::integral_constant<type, type::long_double_type> {}; template <typename Char> struct type_constant<const Char*, Char> : std::integral_constant<type, type::cstring_type> {}; template <typename Char> struct type_constant<basic_string_view<Char>, Char> : std::integral_constant<type, type::string_type> {}; template <typename Char> struct type_constant<const void*, Char> : std::integral_constant<type, type::pointer_type> {}; constexpr bool is_integral_type(type t) { return t > type::none_type && t <= type::last_integer_type; } constexpr bool is_arithmetic_type(type t) { return t > type::none_type && t <= type::last_numeric_type; } constexpr auto set(type rhs) -> int { return 1 << static_cast<int>(rhs); } constexpr auto in(type t, int set) -> bool { return ((set >> static_cast<int>(t)) & 1) != 0; } enum { sint_set = set(type::int_type) | set(type::long_long_type) | set(type::int128_type), uint_set = set(type::uint_type) | set(type::ulong_long_type) | set(type::uint128_type), bool_set = set(type::bool_type), char_set = set(type::char_type), float_set = set(type::float_type) | set(type::double_type) | set(type::long_double_type), string_set = set(type::string_type), cstring_set = set(type::cstring_type), pointer_set = set(type::pointer_type) }; [[noreturn]] void throw_format_error(const char* message); struct error_handler { constexpr error_handler() = default; [[noreturn]] void on_error(const char* message) { throw_format_error(message); } }; } using detail::throw_format_error; template <typename S> using char_t = typename detail::char_t_impl<S>::type; # 655 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Char> class basic_format_parse_context { private: basic_string_view<Char> format_str_; int next_arg_id_; constexpr void do_check_arg_id(int id); public: using char_type = Char; using iterator = const Char*; explicit constexpr basic_format_parse_context( basic_string_view<Char> format_str, int next_arg_id = 0) : format_str_(format_str), next_arg_id_(next_arg_id) {} constexpr auto begin() const noexcept -> iterator { return format_str_.begin(); } constexpr auto end() const noexcept -> iterator { return format_str_.end(); } constexpr void advance_to(iterator it) { format_str_.remove_prefix(detail::to_unsigned(it - begin())); } constexpr auto next_arg_id() -> int { if (next_arg_id_ < 0) { detail::throw_format_error( "cannot switch from manual to automatic argument indexing"); return 0; } int id = next_arg_id_++; do_check_arg_id(id); return id; } constexpr void check_arg_id(int id) { if (next_arg_id_ > 0) { detail::throw_format_error( "cannot switch from automatic to manual argument indexing"); return; } next_arg_id_ = -1; do_check_arg_id(id); } constexpr void check_arg_id(basic_string_view<Char>) {} constexpr void check_dynamic_spec(int arg_id); }; using format_parse_context = basic_format_parse_context<char>; namespace detail { template <typename Char> class compile_parse_context : public basic_format_parse_context<Char> { private: int num_args_; const type* types_; using base = basic_format_parse_context<Char>; public: explicit constexpr compile_parse_context( basic_string_view<Char> format_str, int num_args, const type* types, int next_arg_id = 0) : base(format_str, next_arg_id), num_args_(num_args), types_(types) {} constexpr auto num_args() const -> int { return num_args_; } constexpr auto arg_type(int id) const -> type { return types_[id]; } constexpr auto next_arg_id() -> int { int id = base::next_arg_id(); if (id >= num_args_) throw_format_error("argument not found"); return id; } constexpr void check_arg_id(int id) { base::check_arg_id(id); if (id >= num_args_) throw_format_error("argument not found"); } using base::check_arg_id; constexpr void check_dynamic_spec(int arg_id) { detail::ignore_unused(arg_id); if (arg_id < num_args_ && types_ && !is_integral_type(types_[arg_id])) throw_format_error("width/precision is not integer"); } }; template <typename Container> inline auto get_container(std::back_insert_iterator<Container> it) -> Container& { using base = std::back_insert_iterator<Container>; struct accessor : base { accessor(base b) : base(b) {} using base::container; }; return *accessor(it).container; } template <typename Char, typename InputIt, typename OutputIt> constexpr auto copy_str(InputIt begin, InputIt end, OutputIt out) -> OutputIt { while (begin != end) *out++ = static_cast<Char>(*begin++); return out; } template <typename Char, typename T, typename U, fmt::enable_if_t<(std::is_same<remove_const_t<T>, U>::value&& is_char<U>::value), int> = 0 > constexpr auto copy_str(T* begin, T* end, U* out) -> U* { if (is_constant_evaluated()) return copy_str<Char, T*, U*>(begin, end, out); auto size = to_unsigned(end - begin); if (size > 0) memcpy(out, begin, size * sizeof(U)); return out + size; } template <typename T> class buffer { private: T* ptr_; size_t size_; size_t capacity_; protected: buffer(size_t sz) noexcept : size_(sz), capacity_(sz) {} constexpr buffer(T* p = nullptr, size_t sz = 0, size_t cap = 0) noexcept : ptr_(p), size_(sz), capacity_(cap) {} constexpr ~buffer() = default; buffer(buffer&&) = default; constexpr void set(T* buf_data, size_t buf_capacity) noexcept { ptr_ = buf_data; capacity_ = buf_capacity; } virtual constexpr void grow(size_t capacity) = 0; public: using value_type = T; using const_reference = const T&; buffer(const buffer&) = delete; void operator=(const buffer&) = delete; inline __attribute__((always_inline)) auto begin() noexcept -> T* { return ptr_; } inline __attribute__((always_inline)) auto end() noexcept -> T* { return ptr_ + size_; } inline __attribute__((always_inline)) auto begin() const noexcept -> const T* { return ptr_; } inline __attribute__((always_inline)) auto end() const noexcept -> const T* { return ptr_ + size_; } constexpr auto size() const noexcept -> size_t { return size_; } constexpr auto capacity() const noexcept -> size_t { return capacity_; } constexpr auto data() noexcept -> T* { return ptr_; } constexpr auto data() const noexcept -> const T* { return ptr_; } void clear() { size_ = 0; } constexpr void try_resize(size_t count) { try_reserve(count); size_ = count <= capacity_ ? count : capacity_; } constexpr void try_reserve(size_t new_capacity) { if (new_capacity > capacity_) grow(new_capacity); } constexpr void push_back(const T& value) { try_reserve(size_ + 1); ptr_[size_++] = value; } template <typename U> void append(const U* begin, const U* end); template <typename Idx> constexpr auto operator[](Idx index) -> T& { return ptr_[index]; } template <typename Idx> constexpr auto operator[](Idx index) const -> const T& { return ptr_[index]; } }; struct buffer_traits { explicit buffer_traits(size_t) {} auto count() const -> size_t { return 0; } auto limit(size_t size) -> size_t { return size; } }; class fixed_buffer_traits { private: size_t count_ = 0; size_t limit_; public: explicit fixed_buffer_traits(size_t limit) : limit_(limit) {} auto count() const -> size_t { return count_; } auto limit(size_t size) -> size_t { size_t n = limit_ > count_ ? limit_ - count_ : 0; count_ += size; return size < n ? size : n; } }; template <typename OutputIt, typename T, typename Traits = buffer_traits> class iterator_buffer final : public Traits, public buffer<T> { private: OutputIt out_; enum { buffer_size = 256 }; T data_[buffer_size]; protected: constexpr void grow(size_t) override { if (this->size() == buffer_size) flush(); } void flush() { auto size = this->size(); this->clear(); out_ = copy_str<T>(data_, data_ + this->limit(size), out_); } public: explicit iterator_buffer(OutputIt out, size_t n = buffer_size) : Traits(n), buffer<T>(data_, 0, buffer_size), out_(out) {} iterator_buffer(iterator_buffer&& other) : Traits(other), buffer<T>(data_, 0, buffer_size), out_(other.out_) {} ~iterator_buffer() { flush(); } auto out() -> OutputIt { flush(); return out_; } auto count() const -> size_t { return Traits::count() + this->size(); } }; template <typename T> class iterator_buffer<T*, T, fixed_buffer_traits> final : public fixed_buffer_traits, public buffer<T> { private: T* out_; enum { buffer_size = 256 }; T data_[buffer_size]; protected: constexpr void grow(size_t) override { if (this->size() == this->capacity()) flush(); } void flush() { size_t n = this->limit(this->size()); if (this->data() == out_) { out_ += n; this->set(data_, buffer_size); } this->clear(); } public: explicit iterator_buffer(T* out, size_t n = buffer_size) : fixed_buffer_traits(n), buffer<T>(out, 0, n), out_(out) {} iterator_buffer(iterator_buffer&& other) : fixed_buffer_traits(other), buffer<T>(std::move(other)), out_(other.out_) { if (this->data() != out_) { this->set(data_, buffer_size); this->clear(); } } ~iterator_buffer() { flush(); } auto out() -> T* { flush(); return out_; } auto count() const -> size_t { return fixed_buffer_traits::count() + this->size(); } }; template <typename T> class iterator_buffer<T*, T> final : public buffer<T> { protected: constexpr void grow(size_t) override {} public: explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {} auto out() -> T* { return &*this->end(); } }; template <typename Container> class iterator_buffer<std::back_insert_iterator<Container>, enable_if_t<is_contiguous<Container>::value, typename Container::value_type>> final : public buffer<typename Container::value_type> { private: Container& container_; protected: constexpr void grow(size_t capacity) override { container_.resize(capacity); this->set(&container_[0], capacity); } public: explicit iterator_buffer(Container& c) : buffer<typename Container::value_type>(c.size()), container_(c) {} explicit iterator_buffer(std::back_insert_iterator<Container> out, size_t = 0) : iterator_buffer(get_container(out)) {} auto out() -> std::back_insert_iterator<Container> { return std::back_inserter(container_); } }; template <typename T = char> class counting_buffer final : public buffer<T> { private: enum { buffer_size = 256 }; T data_[buffer_size]; size_t count_ = 0; protected: constexpr void grow(size_t) override { if (this->size() != buffer_size) return; count_ += this->size(); this->clear(); } public: counting_buffer() : buffer<T>(data_, 0, buffer_size) {} auto count() -> size_t { return count_ + this->size(); } }; } template <typename Char> constexpr void basic_format_parse_context<Char>::do_check_arg_id(int id) { if (detail::is_constant_evaluated() && (!(13 * 100 + 1) || (13 * 100 + 1) >= 1200)) { using context = detail::compile_parse_context<Char>; if (id >= static_cast<context*>(this)->num_args()) detail::throw_format_error("argument not found"); } } template <typename Char> constexpr void basic_format_parse_context<Char>::check_dynamic_spec( int arg_id) { if (detail::is_constant_evaluated() && (!(13 * 100 + 1) || (13 * 100 + 1) >= 1200)) { using context = detail::compile_parse_context<Char>; static_cast<context*>(this)->check_dynamic_spec(arg_id); } } template <typename Context> class basic_format_arg; template <typename Context> class basic_format_args; template <typename Context> class dynamic_format_arg_store; template <typename T, typename Char = char, typename Enable = void> struct formatter { formatter() = delete; }; template <typename T, typename Context> using has_formatter = std::is_constructible<typename Context::template formatter_type<T>>; class appender : public std::back_insert_iterator<detail::buffer<char>> { using base = std::back_insert_iterator<detail::buffer<char>>; public: using std::back_insert_iterator<detail::buffer<char>>::back_insert_iterator; appender(base it) noexcept : base(it) {} using unchecked_type = appender; auto operator++() noexcept -> appender& { return *this; } auto operator++(int) noexcept -> appender { return *this; } }; namespace detail { template <typename Context, typename T> constexpr auto has_const_formatter_impl(T*) -> decltype(typename Context::template formatter_type<T>().format( std::declval<const T&>(), std::declval<Context&>()), true) { return true; } template <typename Context> constexpr auto has_const_formatter_impl(...) -> bool { return false; } template <typename T, typename Context> constexpr auto has_const_formatter() -> bool { return has_const_formatter_impl<Context>(static_cast<T*>(nullptr)); } template <typename T> using buffer_appender = conditional_t<std::is_same<T, char>::value, appender, std::back_insert_iterator<buffer<T>>>; template <typename T, typename OutputIt> auto get_buffer(OutputIt out) -> iterator_buffer<OutputIt, T> { return iterator_buffer<OutputIt, T>(out); } template <typename T, typename Buf, fmt::enable_if_t<(std::is_base_of<buffer<char>, Buf>::value), int> = 0> auto get_buffer(std::back_insert_iterator<Buf> out) -> buffer<char>& { return get_container(out); } template <typename Buf, typename OutputIt> inline __attribute__((always_inline)) auto get_iterator(Buf& buf, OutputIt) -> decltype(buf.out()) { return buf.out(); } template <typename T, typename OutputIt> auto get_iterator(buffer<T>&, OutputIt out) -> OutputIt { return out; } struct view {}; template <typename Char, typename T> struct named_arg : view { const Char* name; const T& value; named_arg(const Char* n, const T& v) : name(n), value(v) {} }; template <typename Char> struct named_arg_info { const Char* name; int id; }; template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS> struct arg_data { T args_[1 + (NUM_ARGS != 0 ? NUM_ARGS : +1)]; named_arg_info<Char> named_args_[NUM_NAMED_ARGS]; template <typename... U> arg_data(const U&... init) : args_{T(named_args_, NUM_NAMED_ARGS), init...} {} arg_data(const arg_data& other) = delete; auto args() const -> const T* { return args_ + 1; } auto named_args() -> named_arg_info<Char>* { return named_args_; } }; template <typename T, typename Char, size_t NUM_ARGS> struct arg_data<T, Char, NUM_ARGS, 0> { T args_[NUM_ARGS != 0 ? NUM_ARGS : +1]; template <typename... U> constexpr inline __attribute__((always_inline)) arg_data(const U&... init) : args_{init...} {} constexpr inline __attribute__((always_inline)) auto args() const -> const T* { return args_; } constexpr inline __attribute__((always_inline)) auto named_args() -> std::nullptr_t { return nullptr; } }; template <typename Char> inline void init_named_args(named_arg_info<Char>*, int, int) {} template <typename T> struct is_named_arg : std::false_type {}; template <typename T> struct is_statically_named_arg : std::false_type {}; template <typename T, typename Char> struct is_named_arg<named_arg<Char, T>> : std::true_type {}; template <typename Char, typename T, typename... Tail, fmt::enable_if_t<(!is_named_arg<T>::value), int> = 0> void init_named_args(named_arg_info<Char>* named_args, int arg_count, int named_arg_count, const T&, const Tail&... args) { init_named_args(named_args, arg_count + 1, named_arg_count, args...); } template <typename Char, typename T, typename... Tail, fmt::enable_if_t<(is_named_arg<T>::value), int> = 0> void init_named_args(named_arg_info<Char>* named_args, int arg_count, int named_arg_count, const T& arg, const Tail&... args) { named_args[named_arg_count++] = {arg.name, arg_count}; init_named_args(named_args, arg_count + 1, named_arg_count, args...); } template <typename... Args> constexpr inline __attribute__((always_inline)) void init_named_args(std::nullptr_t, int, int, const Args&...) {} template <bool B = false> constexpr auto count() -> size_t { return B ? 1 : 0; } template <bool B1, bool B2, bool... Tail> constexpr auto count() -> size_t { return (B1 ? 1 : 0) + count<B2, Tail...>(); } template <typename... Args> constexpr auto count_named_args() -> size_t { return count<is_named_arg<Args>::value...>(); } template <typename... Args> constexpr auto count_statically_named_args() -> size_t { return count<is_statically_named_arg<Args>::value...>(); } struct unformattable {}; struct unformattable_char : unformattable {}; struct unformattable_pointer : unformattable {}; template <typename Char> struct string_value { const Char* data; size_t size; }; template <typename Char> struct named_arg_value { const named_arg_info<Char>* data; size_t size; }; template <typename Context> struct custom_value { using parse_context = typename Context::parse_context_type; void* value; void (*format)(void* arg, parse_context& parse_ctx, Context& ctx); }; template <typename Context> class value { public: using char_type = typename Context::char_type; union { monostate no_value; int int_value; unsigned uint_value; long long long_long_value; unsigned long long ulong_long_value; int128_opt int128_value; uint128_opt uint128_value; bool bool_value; char_type char_value; float float_value; double double_value; long double long_double_value; const void* pointer; string_value<char_type> string; custom_value<Context> custom; named_arg_value<char_type> named_args; }; constexpr inline __attribute__((always_inline)) value() : no_value() {} constexpr inline __attribute__((always_inline)) value(int val) : int_value(val) {} constexpr inline __attribute__((always_inline)) value(unsigned val) : uint_value(val) {} constexpr inline __attribute__((always_inline)) value(long long val) : long_long_value(val) {} constexpr inline __attribute__((always_inline)) value(unsigned long long val) : ulong_long_value(val) {} inline __attribute__((always_inline)) value(int128_opt val) : int128_value(val) {} inline __attribute__((always_inline)) value(uint128_opt val) : uint128_value(val) {} constexpr inline __attribute__((always_inline)) value(float val) : float_value(val) {} constexpr inline __attribute__((always_inline)) value(double val) : double_value(val) {} inline __attribute__((always_inline)) value(long double val) : long_double_value(val) {} constexpr inline __attribute__((always_inline)) value(bool val) : bool_value(val) {} constexpr inline __attribute__((always_inline)) value(char_type val) : char_value(val) {} constexpr inline __attribute__((always_inline)) value(const char_type* val) { string.data = val; if (is_constant_evaluated()) string.size = {}; } constexpr inline __attribute__((always_inline)) value(basic_string_view<char_type> val) { string.data = val.data(); string.size = val.size(); } inline __attribute__((always_inline)) value(const void* val) : pointer(val) {} inline __attribute__((always_inline)) value(const named_arg_info<char_type>* args, size_t size) : named_args{args, size} {} template <typename T> constexpr inline __attribute__((always_inline)) value(T& val) { using value_type = remove_const_t<T>; custom.value = const_cast<value_type*>(std::addressof(val)); custom.format = format_custom_arg< value_type, typename Context::template formatter_type<value_type>>; } value(unformattable); value(unformattable_char); value(unformattable_pointer); private: template <typename T, typename Formatter> static void format_custom_arg(void* arg, typename Context::parse_context_type& parse_ctx, Context& ctx) { auto f = Formatter(); parse_ctx.advance_to(f.parse(parse_ctx)); using qualified_type = conditional_t<has_const_formatter<T, Context>(), const T, T>; ctx.advance_to(f.format(*static_cast<qualified_type*>(arg), ctx)); } }; enum { long_short = sizeof(long) == sizeof(int) }; using long_type = conditional_t<long_short, int, long long>; using ulong_type = conditional_t<long_short, unsigned, unsigned long long>; template <typename T> struct format_as_result { template <typename U, fmt::enable_if_t<(std::is_enum<U>::value || std::is_class<U>::value), int> = 0> static auto map(U*) -> decltype(format_as(std::declval<U>())); static auto map(...) -> void; using type = decltype(map(static_cast<T*>(nullptr))); }; template <typename T> using format_as_t = typename format_as_result<T>::type; template <typename T> struct has_format_as : bool_constant<!std::is_same<format_as_t<T>, void>::value> {}; template <typename Context> struct arg_mapper { using char_type = typename Context::char_type; constexpr inline __attribute__((always_inline)) auto map(signed char val) -> int { return val; } constexpr inline __attribute__((always_inline)) auto map(unsigned char val) -> unsigned { return val; } constexpr inline __attribute__((always_inline)) auto map(short val) -> int { return val; } constexpr inline __attribute__((always_inline)) auto map(unsigned short val) -> unsigned { return val; } constexpr inline __attribute__((always_inline)) auto map(int val) -> int { return val; } constexpr inline __attribute__((always_inline)) auto map(unsigned val) -> unsigned { return val; } constexpr inline __attribute__((always_inline)) auto map(long val) -> long_type { return val; } constexpr inline __attribute__((always_inline)) auto map(unsigned long val) -> ulong_type { return val; } constexpr inline __attribute__((always_inline)) auto map(long long val) -> long long { return val; } constexpr inline __attribute__((always_inline)) auto map(unsigned long long val) -> unsigned long long { return val; } constexpr inline __attribute__((always_inline)) auto map(int128_opt val) -> int128_opt { return val; } constexpr inline __attribute__((always_inline)) auto map(uint128_opt val) -> uint128_opt { return val; } constexpr inline __attribute__((always_inline)) auto map(bool val) -> bool { return val; } template <typename T, fmt::enable_if_t<(std::is_same<T, char>::value || std::is_same<T, char_type>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto map(T val) -> char_type { return val; } template <typename T, enable_if_t<(std::is_same<T, wchar_t>::value || std::is_same<T, char8_t>::value || std::is_same<T, char16_t>::value || std::is_same<T, char32_t>::value) && !std::is_same<T, char_type>::value, int> = 0> constexpr inline __attribute__((always_inline)) auto map(T) -> unformattable_char { return {}; } constexpr inline __attribute__((always_inline)) auto map(float val) -> float { return val; } constexpr inline __attribute__((always_inline)) auto map(double val) -> double { return val; } constexpr inline __attribute__((always_inline)) auto map(long double val) -> long double { return val; } constexpr inline __attribute__((always_inline)) auto map(char_type* val) -> const char_type* { return val; } constexpr inline __attribute__((always_inline)) auto map(const char_type* val) -> const char_type* { return val; } template <typename T, fmt::enable_if_t<(is_string<T>::value && !std::is_pointer<T>::value && std::is_same<char_type, char_t<T>>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto map(const T& val) -> basic_string_view<char_type> { return to_string_view(val); } template <typename T, fmt::enable_if_t<(is_string<T>::value && !std::is_pointer<T>::value && !std::is_same<char_type, char_t<T>>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto map(const T&) -> unformattable_char { return {}; } constexpr inline __attribute__((always_inline)) auto map(void* val) -> const void* { return val; } constexpr inline __attribute__((always_inline)) auto map(const void* val) -> const void* { return val; } constexpr inline __attribute__((always_inline)) auto map(std::nullptr_t val) -> const void* { return val; } template < typename T, fmt::enable_if_t<(std::is_pointer<T>::value || std::is_member_pointer<T>::value || std::is_function<typename std::remove_pointer<T>::type>::value || (std::is_array<T>::value && !std::is_convertible<T, const char_type*>::value)), int> = 0 > constexpr auto map(const T&) -> unformattable_pointer { return {}; } template <typename T, std::size_t N, fmt::enable_if_t<(!std::is_same<T, wchar_t>::value), int> = 0> constexpr inline __attribute__((always_inline)) auto map(const T (&values)[N]) -> const T (&)[N] { return values; } template <typename T, typename U = format_as_t<T>, fmt::enable_if_t<(std::is_arithmetic<U>::value), int> = 0> constexpr inline __attribute__((always_inline)) auto map(const T& val) -> decltype(this->map(U())) { return map(format_as(val)); } template <typename T, typename U = remove_const_t<T>> struct formattable : bool_constant<has_const_formatter<U, Context>() || (has_formatter<U, Context>::value && !std::is_const<T>::value)> {}; template <typename T, fmt::enable_if_t<(formattable<T>::value), int> = 0> constexpr inline __attribute__((always_inline)) auto do_map(T& val) -> T& { return val; } template <typename T, fmt::enable_if_t<(!formattable<T>::value), int> = 0> constexpr inline __attribute__((always_inline)) auto do_map(T&) -> unformattable { return {}; } template <typename T, typename U = remove_const_t<T>, fmt::enable_if_t<((std::is_class<U>::value || std::is_enum<U>::value || std::is_union<U>::value) && !is_string<U>::value && !is_char<U>::value && !is_named_arg<U>::value && !std::is_arithmetic<format_as_t<U>>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto map(T& val) -> decltype(this->do_map(val)) { return do_map(val); } template <typename T, fmt::enable_if_t<(is_named_arg<T>::value), int> = 0> constexpr inline __attribute__((always_inline)) auto map(const T& named_arg) -> decltype(this->map(named_arg.value)) { return map(named_arg.value); } auto map(...) -> unformattable { return {}; } }; template <typename T, typename Context> using mapped_type_constant = type_constant<decltype(arg_mapper<Context>().map(std::declval<const T&>())), typename Context::char_type>; enum { packed_arg_bits = 4 }; enum { max_packed_args = 62 / packed_arg_bits }; enum : unsigned long long { is_unpacked_bit = 1ULL << 63 }; enum : unsigned long long { has_named_args_bit = 1ULL << 62 }; template <typename Char, typename InputIt> auto copy_str(InputIt begin, InputIt end, appender out) -> appender { get_container(out).append(begin, end); return out; } template <typename Char, typename InputIt> auto copy_str(InputIt begin, InputIt end, std::back_insert_iterator<std::string> out) -> std::back_insert_iterator<std::string> { get_container(out).append(begin, end); return out; } template <typename Char, typename R, typename OutputIt> constexpr auto copy_str(R&& rng, OutputIt out) -> OutputIt { return detail::copy_str<Char>(rng.begin(), rng.end(), out); } template <typename...> using void_t = void; template <typename It, typename T, typename Enable = void> struct is_output_iterator : std::false_type {}; template <typename It, typename T> struct is_output_iterator< It, T, void_t<typename std::iterator_traits<It>::iterator_category, decltype(*std::declval<It>() = std::declval<T>())>> : std::true_type {}; template <typename It> struct is_back_insert_iterator : std::false_type {}; template <typename Container> struct is_back_insert_iterator<std::back_insert_iterator<Container>> : std::true_type {}; class locale_ref { private: const void* locale_; public: constexpr inline __attribute__((always_inline)) locale_ref() : locale_(nullptr) {} template <typename Locale> explicit locale_ref(const Locale& loc); explicit operator bool() const noexcept { return locale_ != nullptr; } template <typename Locale> auto get() const -> Locale; }; template <typename> constexpr auto encode_types() -> unsigned long long { return 0; } template <typename Context, typename Arg, typename... Args> constexpr auto encode_types() -> unsigned long long { return static_cast<unsigned>(mapped_type_constant<Arg, Context>::value) | (encode_types<Context, Args...>() << packed_arg_bits); } template <typename T, typename Char> struct type_is_unformattable_for; template <bool PACKED, typename Context, typename T, fmt::enable_if_t<(PACKED), int> = 0> constexpr inline __attribute__((always_inline)) auto make_arg(T& val) -> value<Context> { using arg_type = remove_cvref_t<decltype(arg_mapper<Context>().map(val))>; constexpr bool formattable_char = !std::is_same<arg_type, unformattable_char>::value; static_assert(formattable_char, "Mixing character types is disallowed."); constexpr bool formattable_pointer = !std::is_same<arg_type, unformattable_pointer>::value; static_assert(formattable_pointer, "Formatting of non-void pointers is disallowed."); constexpr bool formattable = !std::is_same<arg_type, unformattable>::value; if constexpr (!formattable) { type_is_unformattable_for<T, typename Context::char_type> _; } static_assert( formattable, "Cannot format an argument. To make type T formattable provide a " "formatter<T> specialization: https://fmt.dev/latest/api.html#udt"); return {arg_mapper<Context>().map(val)}; } template <typename Context, typename T> constexpr auto make_arg(T& val) -> basic_format_arg<Context> { auto arg = basic_format_arg<Context>(); arg.type_ = mapped_type_constant<T, Context>::value; arg.value_ = make_arg<true, Context>(val); return arg; } template <bool PACKED, typename Context, typename T, fmt::enable_if_t<(!PACKED), int> = 0> constexpr inline auto make_arg(T& val) -> basic_format_arg<Context> { return make_arg<Context>(val); } } template <typename Context> class basic_format_arg { private: detail::value<Context> value_; detail::type type_; template <typename ContextType, typename T> friend constexpr auto detail::make_arg(T& value) -> basic_format_arg<ContextType>; template <typename Visitor, typename Ctx> friend constexpr auto visit_format_arg(Visitor&& vis, const basic_format_arg<Ctx>& arg) -> decltype(vis(0)); friend class basic_format_args<Context>; friend class dynamic_format_arg_store<Context>; using char_type = typename Context::char_type; template <typename T, typename Char, size_t NUM_ARGS, size_t NUM_NAMED_ARGS> friend struct detail::arg_data; basic_format_arg(const detail::named_arg_info<char_type>* args, size_t size) : value_(args, size) {} public: class handle { public: explicit handle(detail::custom_value<Context> custom) : custom_(custom) {} void format(typename Context::parse_context_type& parse_ctx, Context& ctx) const { custom_.format(custom_.value, parse_ctx, ctx); } private: detail::custom_value<Context> custom_; }; constexpr basic_format_arg() : type_(detail::type::none_type) {} constexpr explicit operator bool() const noexcept { return type_ != detail::type::none_type; } auto type() const -> detail::type { return type_; } auto is_integral() const -> bool { return detail::is_integral_type(type_); } auto is_arithmetic() const -> bool { return detail::is_arithmetic_type(type_); } }; # 1664 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Visitor, typename Context> constexpr inline __attribute__((always_inline)) auto visit_format_arg( Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) { switch (arg.type_) { case detail::type::none_type: break; case detail::type::int_type: return vis(arg.value_.int_value); case detail::type::uint_type: return vis(arg.value_.uint_value); case detail::type::long_long_type: return vis(arg.value_.long_long_value); case detail::type::ulong_long_type: return vis(arg.value_.ulong_long_value); case detail::type::int128_type: return vis(detail::convert_for_visit(arg.value_.int128_value)); case detail::type::uint128_type: return vis(detail::convert_for_visit(arg.value_.uint128_value)); case detail::type::bool_type: return vis(arg.value_.bool_value); case detail::type::char_type: return vis(arg.value_.char_value); case detail::type::float_type: return vis(arg.value_.float_value); case detail::type::double_type: return vis(arg.value_.double_value); case detail::type::long_double_type: return vis(arg.value_.long_double_value); case detail::type::cstring_type: return vis(arg.value_.string.data); case detail::type::string_type: using sv = basic_string_view<typename Context::char_type>; return vis(sv(arg.value_.string.data, arg.value_.string.size)); case detail::type::pointer_type: return vis(arg.value_.pointer); case detail::type::custom_type: return vis(typename basic_format_arg<Context>::handle(arg.value_.custom)); } return vis(monostate()); } template <typename OutputIt, typename Char> class basic_format_context { private: OutputIt out_; basic_format_args<basic_format_context> args_; detail::locale_ref loc_; public: using iterator = OutputIt; using format_arg = basic_format_arg<basic_format_context>; using format_args = basic_format_args<basic_format_context>; using parse_context_type = basic_format_parse_context<Char>; template <typename T> using formatter_type = formatter<T, Char>; using char_type = Char; basic_format_context(basic_format_context&&) = default; basic_format_context(const basic_format_context&) = delete; void operator=(const basic_format_context&) = delete; constexpr basic_format_context(OutputIt out, format_args ctx_args, detail::locale_ref loc = {}) : out_(out), args_(ctx_args), loc_(loc) {} constexpr auto arg(int id) const -> format_arg { return args_.get(id); } constexpr auto arg(basic_string_view<Char> name) -> format_arg { return args_.get(name); } constexpr auto arg_id(basic_string_view<Char> name) -> int { return args_.get_id(name); } auto args() const -> const format_args& { return args_; } constexpr auto error_handler() -> detail::error_handler { return {}; } void on_error(const char* message) { error_handler().on_error(message); } constexpr auto out() -> iterator { return out_; } void advance_to(iterator it) { if (!detail::is_back_insert_iterator<iterator>()) out_ = it; } constexpr auto locale() -> detail::locale_ref { return loc_; } }; template <typename Char> using buffer_context = basic_format_context<detail::buffer_appender<Char>, Char>; using format_context = buffer_context<char>; template <typename T, typename Char = char> using is_formattable = bool_constant<!std::is_base_of< detail::unformattable, decltype(detail::arg_mapper<buffer_context<Char>>() .map(std::declval<T&>()))>::value>; # 1773 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Context, typename... Args> class format_arg_store { private: static const size_t num_args = sizeof...(Args); static constexpr size_t num_named_args = detail::count_named_args<Args...>(); static const bool is_packed = num_args <= detail::max_packed_args; using value_type = conditional_t<is_packed, detail::value<Context>, basic_format_arg<Context>>; detail::arg_data<value_type, typename Context::char_type, num_args, num_named_args> data_; friend class basic_format_args<Context>; static constexpr unsigned long long desc = (is_packed ? detail::encode_types<Context, Args...>() : detail::is_unpacked_bit | num_args) | (num_named_args != 0 ? static_cast<unsigned long long>(detail::has_named_args_bit) : 0); public: template <typename... T> constexpr inline __attribute__((always_inline)) format_arg_store(T&... args) : data_{detail::make_arg<is_packed, Context>(args)...} { if (detail::const_check(num_named_args != 0)) detail::init_named_args(data_.named_args(), 0, 0, args...); } }; # 1823 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Context = format_context, typename... T> constexpr auto make_format_args(T&... args) -> format_arg_store<Context, remove_cvref_t<T>...> { return {args...}; } # 1840 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Char, typename T> inline auto arg(const Char* name, const T& arg) -> detail::named_arg<Char, T> { static_assert(!detail::is_named_arg<T>(), "nested named arguments"); return {name, arg}; } # 1857 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename Context> class basic_format_args { public: using size_type = int; using format_arg = basic_format_arg<Context>; private: unsigned long long desc_; union { const detail::value<Context>* values_; const format_arg* args_; }; constexpr auto is_packed() const -> bool { return (desc_ & detail::is_unpacked_bit) == 0; } auto has_named_args() const -> bool { return (desc_ & detail::has_named_args_bit) != 0; } constexpr auto type(int index) const -> detail::type { int shift = index * detail::packed_arg_bits; unsigned int mask = (1 << detail::packed_arg_bits) - 1; return static_cast<detail::type>((desc_ >> shift) & mask); } constexpr inline __attribute__((always_inline)) basic_format_args(unsigned long long desc, const detail::value<Context>* values) : desc_(desc), values_(values) {} constexpr basic_format_args(unsigned long long desc, const format_arg* args) : desc_(desc), args_(args) {} public: constexpr basic_format_args() : desc_(0), args_(nullptr) {} template <typename... Args> constexpr inline __attribute__((always_inline)) basic_format_args( const format_arg_store<Context, Args...>& store) : basic_format_args(format_arg_store<Context, Args...>::desc, store.data_.args()) {} constexpr inline __attribute__((always_inline)) basic_format_args( const dynamic_format_arg_store<Context>& store) : basic_format_args(store.get_types(), store.data()) {} constexpr basic_format_args(const format_arg* args, int count) : basic_format_args(detail::is_unpacked_bit | detail::to_unsigned(count), args) {} constexpr auto get(int id) const -> format_arg { format_arg arg; if (!is_packed()) { if (id < max_size()) arg = args_[id]; return arg; } if (id >= detail::max_packed_args) return arg; arg.type_ = type(id); if (arg.type_ == detail::type::none_type) return arg; arg.value_ = values_[id]; return arg; } template <typename Char> auto get(basic_string_view<Char> name) const -> format_arg { int id = get_id(name); return id >= 0 ? get(id) : format_arg(); } template <typename Char> auto get_id(basic_string_view<Char> name) const -> int { if (!has_named_args()) return -1; const auto& named_args = (is_packed() ? values_[-1] : args_[-1].value_).named_args; for (size_t i = 0; i < named_args.size; ++i) { if (named_args.data[i].name == name) return named_args.data[i].id; } return -1; } auto max_size() const -> int { unsigned long long max_packed = detail::max_packed_args; return static_cast<int>(is_packed() ? max_packed : desc_ & ~detail::is_unpacked_bit); } }; using format_args = basic_format_args<format_context>; # 1982 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 namespace align { enum type : unsigned char{none, left, right, center, numeric}; } using align_t = align::type; namespace sign { enum type : unsigned char{none, minus, plus, space}; } using sign_t = sign::type; namespace detail { template <typename Char> struct fill_t { private: enum { max_size = 4 }; Char data_[max_size] = {Char(' '), Char(0), Char(0), Char(0)}; unsigned char size_ = 1; public: constexpr void operator=(basic_string_view<Char> s) { auto size = s.size(); ((size <= max_size) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h", 2004, ("invalid fill"))); for (size_t i = 0; i < size; ++i) data_[i] = s[i]; size_ = static_cast<unsigned char>(size); } constexpr auto size() const -> size_t { return size_; } constexpr auto data() const -> const Char* { return data_; } constexpr auto operator[](size_t index) -> Char& { return data_[index]; } constexpr auto operator[](size_t index) const -> const Char& { return data_[index]; } }; } enum class presentation_type : unsigned char { none, dec, oct, hex_lower, hex_upper, bin_lower, bin_upper, hexfloat_lower, hexfloat_upper, exp_lower, exp_upper, fixed_lower, fixed_upper, general_lower, general_upper, chr, string, pointer, debug }; template <typename Char = char> struct format_specs { int width; int precision; presentation_type type; align_t align : 4; sign_t sign : 3; bool alt : 1; bool localized : 1; detail::fill_t<Char> fill; constexpr format_specs() : width(0), precision(-1), type(presentation_type::none), align(align::none), sign(sign::none), alt(false), localized(false) {} }; namespace detail { enum class arg_id_kind { none, index, name }; template <typename Char> struct arg_ref { constexpr arg_ref() : kind(arg_id_kind::none), val() {} constexpr explicit arg_ref(int index) : kind(arg_id_kind::index), val(index) {} constexpr explicit arg_ref(basic_string_view<Char> name) : kind(arg_id_kind::name), val(name) {} constexpr auto operator=(int idx) -> arg_ref& { kind = arg_id_kind::index; val.index = idx; return *this; } arg_id_kind kind; union value { constexpr value(int idx = 0) : index(idx) {} constexpr value(basic_string_view<Char> n) : name(n) {} int index; basic_string_view<Char> name; } val; }; template <typename Char = char> struct dynamic_format_specs : format_specs<Char> { arg_ref<Char> width_ref; arg_ref<Char> precision_ref; }; template <typename Char, fmt::enable_if_t<(std::is_integral<Char>::value), int> = 0> constexpr auto to_ascii(Char c) -> char { return c <= 0xff ? static_cast<char>(c) : '\0'; } template <typename Char, fmt::enable_if_t<(std::is_enum<Char>::value), int> = 0> constexpr auto to_ascii(Char c) -> char { return c <= 0xff ? static_cast<char>(c) : '\0'; } template <typename Char> constexpr auto code_point_length(const Char* begin) -> int { if (const_check(sizeof(Char) != 1)) return 1; auto c = static_cast<unsigned char>(*begin); return static_cast<int>((0x3a55000000000000ull >> (2 * (c >> 3))) & 0x3) + 1; } template <bool IS_CONSTEXPR, typename T, typename Ptr = const T*> constexpr auto find(Ptr first, Ptr last, T value, Ptr& out) -> bool { for (out = first; out != last; ++out) { if (*out == value) return true; } return false; } template <> inline auto find<false, char>(const char* first, const char* last, char value, const char*& out) -> bool { out = static_cast<const char*>( std::memchr(first, value, to_unsigned(last - first))); return out != nullptr; } template <typename Char> constexpr auto parse_nonnegative_int(const Char*& begin, const Char* end, int error_value) noexcept -> int { ((begin != end && '0' <= *begin && *begin <= '9') ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h", 2140, (""))); unsigned value = 0, prev = 0; auto p = begin; do { prev = value; value = value * 10 + unsigned(*p - '0'); ++p; } while (p != end && '0' <= *p && *p <= '9'); auto num_digits = p - begin; begin = p; if (num_digits <= std::numeric_limits<int>::digits10) return static_cast<int>(value); const unsigned max = to_unsigned((std::numeric_limits<int>::max)()); return num_digits == std::numeric_limits<int>::digits10 + 1 && prev * 10ull + unsigned(p[-1] - '0') <= max ? static_cast<int>(value) : error_value; } constexpr inline auto parse_align(char c) -> align_t { switch (c) { case '<': return align::left; case '>': return align::right; case '^': return align::center; } return align::none; } template <typename Char> constexpr auto is_name_start(Char c) -> bool { return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '_'; } template <typename Char, typename Handler> constexpr auto do_parse_arg_id(const Char* begin, const Char* end, Handler&& handler) -> const Char* { Char c = *begin; if (c >= '0' && c <= '9') { int index = 0; constexpr int max = (std::numeric_limits<int>::max)(); if (c != '0') index = parse_nonnegative_int(begin, end, max); else ++begin; if (begin == end || (*begin != '}' && *begin != ':')) throw_format_error("invalid format string"); else handler.on_index(index); return begin; } if (!is_name_start(c)) { throw_format_error("invalid format string"); return begin; } auto it = begin; do { ++it; } while (it != end && (is_name_start(*it) || ('0' <= *it && *it <= '9'))); handler.on_name({begin, to_unsigned(it - begin)}); return it; } template <typename Char, typename Handler> constexpr inline __attribute__((always_inline)) auto parse_arg_id(const Char* begin, const Char* end, Handler&& handler) -> const Char* { ((begin != end) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h", 2208, (""))); Char c = *begin; if (c != '}' && c != ':') return do_parse_arg_id(begin, end, handler); handler.on_auto(); return begin; } template <typename Char> struct dynamic_spec_id_handler { basic_format_parse_context<Char>& ctx; arg_ref<Char>& ref; constexpr void on_auto() { int id = ctx.next_arg_id(); ref = arg_ref<Char>(id); ctx.check_dynamic_spec(id); } constexpr void on_index(int id) { ref = arg_ref<Char>(id); ctx.check_arg_id(id); ctx.check_dynamic_spec(id); } constexpr void on_name(basic_string_view<Char> id) { ref = arg_ref<Char>(id); ctx.check_arg_id(id); } }; template <typename Char> constexpr auto parse_dynamic_spec(const Char* begin, const Char* end, int& value, arg_ref<Char>& ref, basic_format_parse_context<Char>& ctx) -> const Char* { ((begin != end) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h", 2241, (""))); if ('0' <= *begin && *begin <= '9') { int val = parse_nonnegative_int(begin, end, -1); if (val != -1) value = val; else throw_format_error("number is too big"); } else if (*begin == '{') { ++begin; auto handler = dynamic_spec_id_handler<Char>{ctx, ref}; if (begin != end) begin = parse_arg_id(begin, end, handler); if (begin != end && *begin == '}') return ++begin; throw_format_error("invalid format string"); } return begin; } template <typename Char> constexpr auto parse_precision(const Char* begin, const Char* end, int& value, arg_ref<Char>& ref, basic_format_parse_context<Char>& ctx) -> const Char* { ++begin; if (begin == end || *begin == '}') { throw_format_error("invalid precision"); return begin; } return parse_dynamic_spec(begin, end, value, ref, ctx); } enum class state { start, align, sign, hash, zero, width, precision, locale }; template <typename Char> constexpr inline __attribute__((always_inline)) auto parse_format_specs( const Char* begin, const Char* end, dynamic_format_specs<Char>& specs, basic_format_parse_context<Char>& ctx, type arg_type) -> const Char* { auto c = '\0'; if (end - begin > 1) { auto next = to_ascii(begin[1]); c = parse_align(next) == align::none ? to_ascii(*begin) : '\0'; } else { if (begin == end) return begin; c = to_ascii(*begin); } struct { state current_state = state::start; constexpr void operator()(state s, bool valid = true) { if (current_state >= s || !valid) throw_format_error("invalid format specifier"); current_state = s; } } enter_state; using pres = presentation_type; constexpr auto integral_set = sint_set | uint_set | bool_set | char_set; struct { const Char*& begin; dynamic_format_specs<Char>& specs; type arg_type; constexpr auto operator()(pres type, int set) -> const Char* { if (!in(arg_type, set)) throw_format_error("invalid format specifier"); specs.type = type; return begin + 1; } } parse_presentation_type{begin, specs, arg_type}; for (;;) { switch (c) { case '<': case '>': case '^': enter_state(state::align); specs.align = parse_align(c); ++begin; break; case '+': case '-': case ' ': enter_state(state::sign, in(arg_type, sint_set | float_set)); switch (c) { case '+': specs.sign = sign::plus; break; case '-': specs.sign = sign::minus; break; case ' ': specs.sign = sign::space; break; } ++begin; break; case '#': enter_state(state::hash, is_arithmetic_type(arg_type)); specs.alt = true; ++begin; break; case '0': enter_state(state::zero); if (!is_arithmetic_type(arg_type)) throw_format_error("format specifier requires numeric argument"); if (specs.align == align::none) { specs.align = align::numeric; specs.fill[0] = Char('0'); } ++begin; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '{': enter_state(state::width); begin = parse_dynamic_spec(begin, end, specs.width, specs.width_ref, ctx); break; case '.': enter_state(state::precision, in(arg_type, float_set | string_set | cstring_set)); begin = parse_precision(begin, end, specs.precision, specs.precision_ref, ctx); break; case 'L': enter_state(state::locale, is_arithmetic_type(arg_type)); specs.localized = true; ++begin; break; case 'd': return parse_presentation_type(pres::dec, integral_set); case 'o': return parse_presentation_type(pres::oct, integral_set); case 'x': return parse_presentation_type(pres::hex_lower, integral_set); case 'X': return parse_presentation_type(pres::hex_upper, integral_set); case 'b': return parse_presentation_type(pres::bin_lower, integral_set); case 'B': return parse_presentation_type(pres::bin_upper, integral_set); case 'a': return parse_presentation_type(pres::hexfloat_lower, float_set); case 'A': return parse_presentation_type(pres::hexfloat_upper, float_set); case 'e': return parse_presentation_type(pres::exp_lower, float_set); case 'E': return parse_presentation_type(pres::exp_upper, float_set); case 'f': return parse_presentation_type(pres::fixed_lower, float_set); case 'F': return parse_presentation_type(pres::fixed_upper, float_set); case 'g': return parse_presentation_type(pres::general_lower, float_set); case 'G': return parse_presentation_type(pres::general_upper, float_set); case 'c': return parse_presentation_type(pres::chr, integral_set); case 's': return parse_presentation_type(pres::string, bool_set | string_set | cstring_set); case 'p': return parse_presentation_type(pres::pointer, pointer_set | cstring_set); case '?': return parse_presentation_type(pres::debug, char_set | string_set | cstring_set); case '}': return begin; default: { if (*begin == '}') return begin; auto fill_end = begin + code_point_length(begin); if (end - fill_end <= 0) { throw_format_error("invalid format specifier"); return begin; } if (*begin == '{') { throw_format_error("invalid fill character '{'"); return begin; } auto align = parse_align(to_ascii(*fill_end)); enter_state(state::align, align != align::none); specs.fill = {begin, to_unsigned(fill_end - begin)}; specs.align = align; begin = fill_end + 1; } } if (begin == end) return begin; c = to_ascii(*begin); } } template <typename Char, typename Handler> constexpr auto parse_replacement_field(const Char* begin, const Char* end, Handler&& handler) -> const Char* { struct id_adapter { Handler& handler; int arg_id; constexpr void on_auto() { arg_id = handler.on_arg_id(); } constexpr void on_index(int id) { arg_id = handler.on_arg_id(id); } constexpr void on_name(basic_string_view<Char> id) { arg_id = handler.on_arg_id(id); } }; ++begin; if (begin == end) return handler.on_error("invalid format string"), end; if (*begin == '}') { handler.on_replacement_field(handler.on_arg_id(), begin); } else if (*begin == '{') { handler.on_text(begin, begin + 1); } else { auto adapter = id_adapter{handler, 0}; begin = parse_arg_id(begin, end, adapter); Char c = begin != end ? *begin : Char(); if (c == '}') { handler.on_replacement_field(adapter.arg_id, begin); } else if (c == ':') { begin = handler.on_format_specs(adapter.arg_id, begin + 1, end); if (begin == end || *begin != '}') return handler.on_error("unknown format specifier"), end; } else { return handler.on_error("missing '}' in format string"), end; } } return begin + 1; } template <bool IS_CONSTEXPR, typename Char, typename Handler> constexpr inline __attribute__((always_inline)) void parse_format_string( basic_string_view<Char> format_str, Handler&& handler) { auto begin = format_str.data(); auto end = begin + format_str.size(); if (end - begin < 32) { const Char* p = begin; while (p != end) { auto c = *p++; if (c == '{') { handler.on_text(begin, p - 1); begin = p = parse_replacement_field(p - 1, end, handler); } else if (c == '}') { if (p == end || *p != '}') return handler.on_error("unmatched '}' in format string"); handler.on_text(begin, p); begin = ++p; } } handler.on_text(begin, end); return; } struct writer { constexpr void operator()(const Char* from, const Char* to) { if (from == to) return; for (;;) { const Char* p = nullptr; if (!find<IS_CONSTEXPR>(from, to, Char('}'), p)) return handler_.on_text(from, to); ++p; if (p == to || *p != '}') return handler_.on_error("unmatched '}' in format string"); handler_.on_text(from, p); from = p + 1; } } Handler& handler_; } write = {handler}; while (begin != end) { const Char* p = begin; if (*begin != '{' && !find<IS_CONSTEXPR>(begin + 1, end, Char('{'), p)) return write(begin, end); write(begin, p); begin = parse_replacement_field(p, end, handler); } } template <typename T, bool = is_named_arg<T>::value> struct strip_named_arg { using type = T; }; template <typename T> struct strip_named_arg<T, true> { using type = remove_cvref_t<decltype(T::value)>; }; template <typename T, typename ParseContext> constexpr auto parse_format_specs(ParseContext& ctx) -> decltype(ctx.begin()) { using char_type = typename ParseContext::char_type; using context = buffer_context<char_type>; using mapped_type = conditional_t< mapped_type_constant<T, context>::value != type::custom_type, decltype(arg_mapper<context>().map(std::declval<const T&>())), typename strip_named_arg<T>::type>; if constexpr (std::is_default_constructible_v< formatter<mapped_type, char_type>>) { return formatter<mapped_type, char_type>().parse(ctx); } else { type_is_unformattable_for<T, char_type> _; return ctx.begin(); } } template <typename Char> constexpr auto check_char_specs(const format_specs<Char>& specs) -> bool { if (specs.type != presentation_type::none && specs.type != presentation_type::chr && specs.type != presentation_type::debug) { return false; } if (specs.align == align::numeric || specs.sign != sign::none || specs.alt) throw_format_error("invalid format specifier for char"); return true; } template <int N, typename T, typename... Args, typename Char> constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if constexpr (is_statically_named_arg<T>()) { if (name == T::name) return N; } if constexpr (sizeof...(Args) > 0) return get_arg_index_by_name<N + 1, Args...>(name); (void)name; return -1; } template <typename... Args, typename Char> constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if constexpr (sizeof...(Args) > 0) return get_arg_index_by_name<0, Args...>(name); (void)name; return -1; } template <typename Char, typename... Args> class format_string_checker { private: using parse_context_type = compile_parse_context<Char>; static constexpr int num_args = sizeof...(Args); using parse_func = const Char* (*)(parse_context_type&); type types_[num_args > 0 ? static_cast<size_t>(num_args) : 1]; parse_context_type context_; parse_func parse_funcs_[num_args > 0 ? static_cast<size_t>(num_args) : 1]; public: explicit constexpr format_string_checker(basic_string_view<Char> fmt) : types_{mapped_type_constant<Args, buffer_context<Char>>::value...}, context_(fmt, num_args, types_), parse_funcs_{&parse_format_specs<Args, parse_context_type>...} {} constexpr void on_text(const Char*, const Char*) {} constexpr auto on_arg_id() -> int { return context_.next_arg_id(); } constexpr auto on_arg_id(int id) -> int { return context_.check_arg_id(id), id; } constexpr auto on_arg_id(basic_string_view<Char> id) -> int { auto index = get_arg_index_by_name<Args...>(id); if (index < 0) on_error("named argument is not found"); return index; } constexpr void on_replacement_field(int id, const Char* begin) { on_format_specs(id, begin, begin); } constexpr auto on_format_specs(int id, const Char* begin, const Char*) -> const Char* { context_.advance_to(begin); return id >= 0 && id < num_args ? parse_funcs_[id](context_) : begin; } constexpr void on_error(const char* message) { throw_format_error(message); } }; template <typename..., typename S, fmt::enable_if_t<(!is_compile_string<S>::value), int> = 0> inline __attribute__((always_inline)) void check_format_string(const S&) { } template <typename... Args, typename S, fmt::enable_if_t<(is_compile_string<S>::value), int> = 0> void check_format_string(S format_str) { using char_t = typename S::char_type; constexpr auto s = basic_string_view<char_t>(format_str); using checker = format_string_checker<char_t, remove_cvref_t<Args>...>; constexpr bool error = (parse_format_string<true>(s, checker(s)), true); ignore_unused(error); } template <typename Char = char> struct vformat_args { using type = basic_format_args< basic_format_context<std::back_insert_iterator<buffer<Char>>, Char>>; }; template <> struct vformat_args<char> { using type = format_args; }; template <typename Char> void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt, typename vformat_args<Char>::type args, locale_ref loc = {}); void vprint_mojibake(std::FILE*, string_view, format_args); inline void vprint_mojibake(std::FILE*, string_view, format_args) {} } template <typename T, typename Char> struct formatter<T, Char, enable_if_t<detail::type_constant<T, Char>::value != detail::type::custom_type>> { private: detail::dynamic_format_specs<Char> specs_; public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) -> const Char* { auto type = detail::type_constant<T, Char>::value; auto end = detail::parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, type); if (type == detail::type::char_type) detail::check_char_specs(specs_); return end; } template <detail::type U = detail::type_constant<T, Char>::value, fmt::enable_if_t<(U == detail::type::string_type || U == detail::type::cstring_type || U == detail::type::char_type), int> = 0 > constexpr void set_debug_format(bool set = true) { specs_.type = set ? presentation_type::debug : presentation_type::none; } template <typename FormatContext> constexpr auto format(const T& val, FormatContext& ctx) const -> decltype(ctx.out()); }; template <typename Char = char> struct runtime_format_string { basic_string_view<Char> str; }; template <typename Char, typename... Args> class basic_format_string { private: basic_string_view<Char> str_; public: template <typename S, fmt::enable_if_t<(std::is_convertible<const S&, basic_string_view<Char>>::value), int> = 0 > consteval inline __attribute__((always_inline)) basic_format_string(const S& s) : str_(s) { static_assert( detail::count< (std::is_base_of<detail::view, remove_reference_t<Args>>::value && std::is_reference<Args>::value)...>() == 0, "passing views as lvalues is disallowed"); if constexpr (detail::count_named_args<Args...>() == detail::count_statically_named_args<Args...>()) { using checker = detail::format_string_checker<Char, remove_cvref_t<Args>...>; detail::parse_format_string<true>(str_, checker(s)); } } basic_format_string(runtime_format_string<Char> fmt) : str_(fmt.str) {} inline __attribute__((always_inline)) operator basic_string_view<Char>() const { return str_; } inline __attribute__((always_inline)) auto get() const -> basic_string_view<Char> { return str_; } }; template <typename... Args> using format_string = basic_format_string<char, type_identity_t<Args>...>; # 2769 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 inline auto runtime(string_view s) -> runtime_format_string<> { return {{s}}; } auto vformat(string_view fmt, format_args args) -> std::string; # 2785 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename... T> [[nodiscard]] inline __attribute__((always_inline)) auto format(format_string<T...> fmt, T&&... args) -> std::string { return vformat(fmt, fmt::make_format_args(args...)); } template <typename OutputIt, fmt::enable_if_t<(detail::is_output_iterator<OutputIt, char>::value), int> = 0> auto vformat_to(OutputIt out, string_view fmt, format_args args) -> OutputIt { auto&& buf = detail::get_buffer<char>(out); detail::vformat_to(buf, fmt, args, {}); return detail::get_iterator(buf, out); } # 2812 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename OutputIt, typename... T, fmt::enable_if_t<(detail::is_output_iterator<OutputIt, char>::value), int> = 0> inline __attribute__((always_inline)) auto format_to(OutputIt out, format_string<T...> fmt, T&&... args) -> OutputIt { return vformat_to(out, fmt, fmt::make_format_args(args...)); } template <typename OutputIt> struct format_to_n_result { OutputIt out; size_t size; }; template <typename OutputIt, typename... T, fmt::enable_if_t<(detail::is_output_iterator<OutputIt, char>::value), int> = 0> auto vformat_to_n(OutputIt out, size_t n, string_view fmt, format_args args) -> format_to_n_result<OutputIt> { using traits = detail::fixed_buffer_traits; auto buf = detail::iterator_buffer<OutputIt, char, traits>(out, n); detail::vformat_to(buf, fmt, args, {}); return {buf.out(), buf.count()}; } # 2844 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename OutputIt, typename... T, fmt::enable_if_t<(detail::is_output_iterator<OutputIt, char>::value), int> = 0> inline __attribute__((always_inline)) auto format_to_n(OutputIt out, size_t n, format_string<T...> fmt, T&&... args) -> format_to_n_result<OutputIt> { return vformat_to_n(out, n, fmt, fmt::make_format_args(args...)); } template <typename... T> [[nodiscard]] inline __attribute__((always_inline)) auto formatted_size(format_string<T...> fmt, T&&... args) -> size_t { auto buf = detail::counting_buffer<>(); detail::vformat_to<char>(buf, fmt, fmt::make_format_args(args...), {}); return buf.count(); } void vprint(string_view fmt, format_args args); void vprint(std::FILE* f, string_view fmt, format_args args); # 2873 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename... T> inline __attribute__((always_inline)) void print(format_string<T...> fmt, T&&... args) { const auto& vargs = fmt::make_format_args(args...); return detail::is_utf8() ? vprint(fmt, vargs) : detail::vprint_mojibake(stdout, fmt, vargs); } # 2890 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 template <typename... T> inline __attribute__((always_inline)) void print(std::FILE* f, format_string<T...> fmt, T&&... args) { const auto& vargs = fmt::make_format_args(args...); return detail::is_utf8() ? vprint(f, fmt, vargs) : detail::vprint_mojibake(f, fmt, vargs); } template <typename... T> inline __attribute__((always_inline)) void println(std::FILE* f, format_string<T...> fmt, T&&... args) { return fmt::print(f, "{}\n", fmt::format(fmt, std::forward<T>(args)...)); } template <typename... T> inline __attribute__((always_inline)) void println(format_string<T...> fmt, T&&... args) { return fmt::println(stdout, fmt, std::forward<T>(args)...); } # 2916 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 #pragma GCC pop_options # 2916 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/core.h" 3 4 } } # 50 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 2 3 4 # 275 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 namespace fmt { inline namespace v10 { template <typename...> struct disjunction : std::false_type {}; template <typename P> struct disjunction<P> : P {}; template <typename P1, typename... Pn> struct disjunction<P1, Pn...> : conditional_t<bool(P1::value), P1, disjunction<Pn...>> {}; template <typename...> struct conjunction : std::true_type {}; template <typename P> struct conjunction<P> : P {}; template <typename P1, typename... Pn> struct conjunction<P1, Pn...> : conditional_t<bool(P1::value), conjunction<Pn...>, P1> {}; namespace detail { constexpr inline void abort_fuzzing_if(bool condition) { ignore_unused(condition); } template <typename CharT, CharT... C> struct string_literal { static constexpr CharT value[sizeof...(C)] = {C...}; constexpr operator basic_string_view<CharT>() const { return {value, sizeof...(C)}; } }; template <typename Streambuf> class formatbuf : public Streambuf { private: using char_type = typename Streambuf::char_type; using streamsize = decltype(std::declval<Streambuf>().sputn(nullptr, 0)); using int_type = typename Streambuf::int_type; using traits_type = typename Streambuf::traits_type; buffer<char_type>& buffer_; public: explicit formatbuf(buffer<char_type>& buf) : buffer_(buf) {} protected: auto overflow(int_type ch) -> int_type override { if (!traits_type::eq_int_type(ch, traits_type::eof())) buffer_.push_back(static_cast<char_type>(ch)); return ch; } auto xsputn(const char_type* s, streamsize count) -> streamsize override { buffer_.append(s, s + count); return count; } }; template <typename To, typename From, fmt::enable_if_t<(sizeof(To) == sizeof(From)), int> = 0> constexpr auto bit_cast(const From& from) -> To { if (is_constant_evaluated()) return std::bit_cast<To>(from); auto to = To(); std::memcpy(static_cast<void*>(&to), &from, sizeof(to)); return to; } inline auto is_big_endian() -> bool { return 1234 == 4321; } class uint128_fallback { private: uint64_t lo_, hi_; public: constexpr uint128_fallback(uint64_t hi, uint64_t lo) : lo_(lo), hi_(hi) {} constexpr uint128_fallback(uint64_t value = 0) : lo_(value), hi_(0) {} constexpr uint64_t high() const noexcept { return hi_; } constexpr uint64_t low() const noexcept { return lo_; } template <typename T, fmt::enable_if_t<(std::is_integral<T>::value), int> = 0> constexpr explicit operator T() const { return static_cast<T>(lo_); } friend constexpr auto operator==(const uint128_fallback& lhs, const uint128_fallback& rhs) -> bool { return lhs.hi_ == rhs.hi_ && lhs.lo_ == rhs.lo_; } friend constexpr auto operator!=(const uint128_fallback& lhs, const uint128_fallback& rhs) -> bool { return !(lhs == rhs); } friend constexpr auto operator>(const uint128_fallback& lhs, const uint128_fallback& rhs) -> bool { return lhs.hi_ != rhs.hi_ ? lhs.hi_ > rhs.hi_ : lhs.lo_ > rhs.lo_; } friend constexpr auto operator|(const uint128_fallback& lhs, const uint128_fallback& rhs) -> uint128_fallback { return {lhs.hi_ | rhs.hi_, lhs.lo_ | rhs.lo_}; } friend constexpr auto operator&(const uint128_fallback& lhs, const uint128_fallback& rhs) -> uint128_fallback { return {lhs.hi_ & rhs.hi_, lhs.lo_ & rhs.lo_}; } friend constexpr auto operator~(const uint128_fallback& n) -> uint128_fallback { return {~n.hi_, ~n.lo_}; } friend auto operator+(const uint128_fallback& lhs, const uint128_fallback& rhs) -> uint128_fallback { auto result = uint128_fallback(lhs); result += rhs; return result; } friend auto operator*(const uint128_fallback& lhs, uint32_t rhs) -> uint128_fallback { ((lhs.hi_ == 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 418, (""))); uint64_t hi = (lhs.lo_ >> 32) * rhs; uint64_t lo = (lhs.lo_ & ~uint32_t()) * rhs; uint64_t new_lo = (hi << 32) + lo; return {(hi >> 32) + (new_lo < lo ? 1 : 0), new_lo}; } friend auto operator-(const uint128_fallback& lhs, uint64_t rhs) -> uint128_fallback { return {lhs.hi_ - (lhs.lo_ < rhs ? 1 : 0), lhs.lo_ - rhs}; } constexpr auto operator>>(int shift) const -> uint128_fallback { if (shift == 64) return {0, hi_}; if (shift > 64) return uint128_fallback(0, hi_) >> (shift - 64); return {hi_ >> shift, (hi_ << (64 - shift)) | (lo_ >> shift)}; } constexpr auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; } constexpr auto operator>>=(int shift) -> uint128_fallback& { return *this = *this >> shift; } constexpr void operator+=(uint128_fallback n) { uint64_t new_lo = lo_ + n.lo_; uint64_t new_hi = hi_ + n.hi_ + (new_lo < lo_ ? 1 : 0); ((new_hi >= hi_) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 444, (""))); lo_ = new_lo; hi_ = new_hi; } constexpr void operator&=(uint128_fallback n) { lo_ &= n.lo_; hi_ &= n.hi_; } constexpr uint128_fallback& operator+=(uint64_t n) noexcept { if (is_constant_evaluated()) { lo_ += n; hi_ += (lo_ < n ? 1 : 0); return *this; } unsigned long long result; auto carry = __builtin_ia32_addcarryx_u64(0, lo_, n, &result); lo_ = result; hi_ += carry; return *this; } }; using uint128_t = conditional_t<1, uint128_opt, uint128_fallback>; using uintptr_t = ::uintptr_t; template <typename T> constexpr auto max_value() -> T { return (std::numeric_limits<T>::max)(); } template <typename T> constexpr auto num_bits() -> int { return std::numeric_limits<T>::digits; } template <> constexpr auto num_bits<int128_opt>() -> int { return 128; } template <> constexpr auto num_bits<uint128_t>() -> int { return 128; } template <typename To, typename From, fmt::enable_if_t<(sizeof(To) > sizeof(From)), int> = 0> inline auto bit_cast(const From& from) -> To { constexpr auto size = static_cast<int>(sizeof(From) / sizeof(unsigned)); struct data_t { unsigned value[static_cast<unsigned>(size)]; } data = bit_cast<data_t>(from); auto result = To(); if (const_check(is_big_endian())) { for (int i = 0; i < size; ++i) result = (result << num_bits<unsigned>()) | data.value[i]; } else { for (int i = size - 1; i >= 0; --i) result = (result << num_bits<unsigned>()) | data.value[i]; } return result; } template <typename UInt> constexpr inline auto countl_zero_fallback(UInt n) -> int { int lz = 0; constexpr UInt msb_mask = static_cast<UInt>(1) << (num_bits<UInt>() - 1); for (; (n & msb_mask) == 0; n <<= 1) lz++; return lz; } constexpr inline auto countl_zero(uint32_t n) -> int { if (!is_constant_evaluated()) return __builtin_clz(n); return countl_zero_fallback(n); } constexpr inline auto countl_zero(uint64_t n) -> int { if (!is_constant_evaluated()) return __builtin_clzll(n); return countl_zero_fallback(n); } inline __attribute__((always_inline)) void assume(bool condition) { (void)condition; if (!condition) __builtin_unreachable(); } template <typename T> using iterator_t = decltype(std::begin(std::declval<T&>())); template <typename T> using sentinel_t = decltype(std::end(std::declval<T&>())); template <typename Char> inline auto get_data(std::basic_string<Char>& s) -> Char* { return &s[0]; } template <typename Container> inline auto get_data(Container& c) -> typename Container::value_type* { return c.data(); } template <typename Container, fmt::enable_if_t<(is_contiguous<Container>::value), int> = 0> inline auto reserve(std::back_insert_iterator<Container> it, size_t n) -> typename Container::value_type* { Container& c = get_container(it); size_t size = c.size(); c.resize(size + n); return get_data(c) + size; } template <typename T> inline auto reserve(buffer_appender<T> it, size_t n) -> buffer_appender<T> { buffer<T>& buf = get_container(it); buf.try_reserve(buf.size() + n); return it; } template <typename Iterator> constexpr auto reserve(Iterator& it, size_t) -> Iterator& { return it; } template <typename OutputIt> using reserve_iterator = remove_reference_t<decltype(reserve(std::declval<OutputIt&>(), 0))>; template <typename T, typename OutputIt> constexpr auto to_pointer(OutputIt, size_t) -> T* { return nullptr; } template <typename T> auto to_pointer(buffer_appender<T> it, size_t n) -> T* { buffer<T>& buf = get_container(it); auto size = buf.size(); if (buf.capacity() < size + n) return nullptr; buf.try_resize(size + n); return buf.data() + size; } template <typename Container, fmt::enable_if_t<(is_contiguous<Container>::value), int> = 0> inline auto base_iterator(std::back_insert_iterator<Container> it, typename Container::value_type*) -> std::back_insert_iterator<Container> { return it; } template <typename Iterator> constexpr auto base_iterator(Iterator, Iterator it) -> Iterator { return it; } template <typename OutputIt, typename Size, typename T> constexpr auto fill_n(OutputIt out, Size count, const T& value) -> OutputIt { for (Size i = 0; i < count; ++i) *out++ = value; return out; } template <typename T, typename Size> constexpr auto fill_n(T* out, Size count, char value) -> T* { if (is_constant_evaluated()) { return fill_n<T*, Size, T>(out, count, value); } std::memset(out, value, to_unsigned(count)); return out + count; } using char8_type = char8_t; template <typename OutChar, typename InputIt, typename OutputIt> constexpr __attribute__((noinline)) auto copy_str_noinline(InputIt begin, InputIt end, OutputIt out) -> OutputIt { return copy_str<OutChar>(begin, end, out); } # 665 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 constexpr inline auto utf8_decode(const char* s, uint32_t* c, int* e) -> const char* { constexpr const int masks[] = {0x00, 0x7f, 0x1f, 0x0f, 0x07}; constexpr const uint32_t mins[] = {4194304, 0, 128, 2048, 65536}; constexpr const int shiftc[] = {0, 18, 12, 6, 0}; constexpr const int shifte[] = {0, 6, 4, 2, 0}; int len = "\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\1\0\0\0\0\0\0\0\0\2\2\2\2\3\3\4" [static_cast<unsigned char>(*s) >> 3]; const char* next = s + len + !len; using uchar = unsigned char; *c = uint32_t(uchar(s[0]) & masks[len]) << 18; *c |= uint32_t(uchar(s[1]) & 0x3f) << 12; *c |= uint32_t(uchar(s[2]) & 0x3f) << 6; *c |= uint32_t(uchar(s[3]) & 0x3f) << 0; *c >>= shiftc[len]; *e = (*c < mins[len]) << 6; *e |= ((*c >> 11) == 0x1b) << 7; *e |= (*c > 0x10FFFF) << 8; *e |= (uchar(s[1]) & 0xc0) >> 2; *e |= (uchar(s[2]) & 0xc0) >> 4; *e |= uchar(s[3]) >> 6; *e ^= 0x2a; *e >>= shifte[len]; return next; } constexpr inline uint32_t invalid_code_point = ~uint32_t(); template <typename F> constexpr void for_each_codepoint(string_view s, F f) { auto decode = [f](const char* buf_ptr, const char* ptr) { auto cp = uint32_t(); auto error = 0; auto end = utf8_decode(buf_ptr, &cp, &error); bool result = f(error ? invalid_code_point : cp, string_view(ptr, error ? 1 : to_unsigned(end - buf_ptr))); return result ? (error ? buf_ptr + 1 : end) : nullptr; }; auto p = s.data(); const size_t block_size = 4; if (s.size() >= block_size) { for (auto end = p + s.size() - block_size + 1; p < end;) { p = decode(p, p); if (!p) return; } } if (auto num_chars_left = s.data() + s.size() - p) { char buf[2 * block_size - 1] = {}; copy_str<char>(p, p + num_chars_left, buf); const char* buf_ptr = buf; do { auto end = decode(buf_ptr, p); if (!end) return; p += end - buf_ptr; buf_ptr = end; } while (buf_ptr - buf < num_chars_left); } } template <typename Char> inline auto compute_width(basic_string_view<Char> s) -> size_t { return s.size(); } constexpr inline size_t compute_width(string_view s) { size_t num_code_points = 0; struct count_code_points { size_t* count; constexpr auto operator()(uint32_t cp, string_view) const -> bool { *count += detail::to_unsigned( 1 + (cp >= 0x1100 && (cp <= 0x115f || cp == 0x2329 || cp == 0x232a || (cp >= 0x2e80 && cp <= 0xa4cf && cp != 0x303f) || (cp >= 0xac00 && cp <= 0xd7a3) || (cp >= 0xf900 && cp <= 0xfaff) || (cp >= 0xfe10 && cp <= 0xfe19) || (cp >= 0xfe30 && cp <= 0xfe6f) || (cp >= 0xff00 && cp <= 0xff60) || (cp >= 0xffe0 && cp <= 0xffe6) || (cp >= 0x20000 && cp <= 0x2fffd) || (cp >= 0x30000 && cp <= 0x3fffd) || (cp >= 0x1f300 && cp <= 0x1f64f) || (cp >= 0x1f900 && cp <= 0x1f9ff)))); return true; } }; for_each_codepoint(s, count_code_points{&num_code_points}); return num_code_points; } inline auto compute_width(basic_string_view<char8_type> s) -> size_t { return compute_width( string_view(reinterpret_cast<const char*>(s.data()), s.size())); } template <typename Char> inline auto code_point_index(basic_string_view<Char> s, size_t n) -> size_t { size_t size = s.size(); return n < size ? n : size; } inline auto code_point_index(string_view s, size_t n) -> size_t { const char* data = s.data(); size_t num_code_points = 0; for (size_t i = 0, size = s.size(); i != size; ++i) { if ((data[i] & 0xc0) != 0x80 && ++num_code_points > n) return i; } return s.size(); } inline auto code_point_index(basic_string_view<char8_type> s, size_t n) -> size_t { return code_point_index( string_view(reinterpret_cast<const char*>(s.data()), s.size()), n); } template <typename T> struct is_integral : std::is_integral<T> {}; template <> struct is_integral<int128_opt> : std::true_type {}; template <> struct is_integral<uint128_t> : std::true_type {}; template <typename T> using is_signed = std::integral_constant<bool, std::numeric_limits<T>::is_signed || std::is_same<T, int128_opt>::value>; template <typename T> using is_integer = bool_constant<is_integral<T>::value && !std::is_same<T, bool>::value && !std::is_same<T, char>::value && !std::is_same<T, wchar_t>::value>; # 847 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 using float128 = __float128; template <typename T> using is_float128 = std::is_same<T, float128>; template <typename T> using is_floating_point = bool_constant<std::is_floating_point<T>::value || is_float128<T>::value>; template <typename T, bool = std::is_floating_point<T>::value> struct is_fast_float : bool_constant<std::numeric_limits<T>::is_iec559 && sizeof(T) <= sizeof(double)> {}; template <typename T> struct is_fast_float<T, false> : std::false_type {}; template <typename T> using is_double_double = bool_constant<std::numeric_limits<T>::digits == 106>; template <typename T> template <typename U> void buffer<T>::append(const U* begin, const U* end) { while (begin != end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; std::uninitialized_copy_n(begin, count, ptr_ + size_); size_ += count; begin += count; } } template <typename T, typename Enable = void> struct is_locale : std::false_type {}; template <typename T> struct is_locale<T, void_t<decltype(T::classic())>> : std::true_type {}; } enum { inline_buffer_size = 500 }; # 916 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename T, size_t SIZE = inline_buffer_size, typename Allocator = std::allocator<T>> class basic_memory_buffer final : public detail::buffer<T> { private: T store_[SIZE]; [[no_unique_address]] Allocator alloc_; constexpr void deallocate() { T* data = this->data(); if (data != store_) alloc_.deallocate(data, this->capacity()); } protected: constexpr void grow(size_t size) override { detail::abort_fuzzing_if(size > 5000); const size_t max_size = std::allocator_traits<Allocator>::max_size(alloc_); size_t old_capacity = this->capacity(); size_t new_capacity = old_capacity + old_capacity / 2; if (size > new_capacity) new_capacity = size; else if (new_capacity > max_size) new_capacity = size > max_size ? size : max_size; T* old_data = this->data(); T* new_data = std::allocator_traits<Allocator>::allocate(alloc_, new_capacity); detail::assume(this->size() <= new_capacity); std::uninitialized_copy_n(old_data, this->size(), new_data); this->set(new_data, new_capacity); if (old_data != store_) alloc_.deallocate(old_data, old_capacity); } public: using value_type = T; using const_reference = const T&; constexpr explicit basic_memory_buffer( const Allocator& alloc = Allocator()) : alloc_(alloc) { this->set(store_, SIZE); if (detail::is_constant_evaluated()) detail::fill_n(store_, SIZE, T()); } constexpr ~basic_memory_buffer() { deallocate(); } private: constexpr void move(basic_memory_buffer& other) { alloc_ = std::move(other.alloc_); T* data = other.data(); size_t size = other.size(), capacity = other.capacity(); if (data == other.store_) { this->set(store_, capacity); detail::copy_str<T>(other.store_, other.store_ + size, store_); } else { this->set(data, capacity); other.set(other.store_, 0); other.clear(); } this->resize(size); } public: constexpr basic_memory_buffer(basic_memory_buffer&& other) noexcept { move(other); } auto operator=(basic_memory_buffer&& other) noexcept -> basic_memory_buffer& { ((this != &other) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 1003, (""))); deallocate(); move(other); return *this; } auto get_allocator() const -> Allocator { return alloc_; } constexpr void resize(size_t count) { this->try_resize(count); } void reserve(size_t new_capacity) { this->try_reserve(new_capacity); } using detail::buffer<T>::append; template <typename ContiguousRange> void append(const ContiguousRange& range) { append(range.data(), range.data() + range.size()); } }; using memory_buffer = basic_memory_buffer<char>; template <typename T, size_t SIZE, typename Allocator> struct is_contiguous<basic_memory_buffer<T, SIZE, Allocator>> : std::true_type { }; namespace detail { bool write_console(std::FILE* f, string_view text); void print(std::FILE*, string_view); } class __attribute__((visibility("default"))) format_error : public std::runtime_error { public: using std::runtime_error::runtime_error; }; namespace detail_exported { template <typename Char, size_t N> struct fixed_string { constexpr fixed_string(const Char (&str)[N]) { detail::copy_str<Char, const Char*, Char*>(static_cast<const Char*>(str), str + N, data); } Char data[N] = {}; }; template <typename Char, size_t N> constexpr auto compile_string_to_view(const Char (&s)[N]) -> basic_string_view<Char> { return {s, N - (std::char_traits<Char>::to_int_type(s[N - 1]) == 0 ? 1 : 0)}; } template <typename Char> constexpr auto compile_string_to_view(detail::std_string_view<Char> s) -> basic_string_view<Char> { return {s.data(), s.size()}; } } class loc_value { private: basic_format_arg<format_context> value_; public: template <typename T, fmt::enable_if_t<(!detail::is_float128<T>::value), int> = 0> loc_value(T value) : value_(detail::make_arg<format_context>(value)) {} template <typename T, fmt::enable_if_t<(detail::is_float128<T>::value), int> = 0> loc_value(T) {} template <typename Visitor> auto visit(Visitor&& vis) -> decltype(vis(0)) { return visit_format_arg(vis, value_); } }; template <typename Locale> class format_facet : public Locale::facet { private: std::string separator_; std::string grouping_; std::string decimal_point_; protected: virtual auto do_put(appender out, loc_value val, const format_specs<>& specs) const -> bool; public: static typename Locale::id id; explicit format_facet(Locale& loc); explicit format_facet(string_view sep = "", std::initializer_list<unsigned char> g = {3}, std::string decimal_point = ".") : separator_(sep.data(), sep.size()), grouping_(g.begin(), g.end()), decimal_point_(decimal_point) {} auto put(appender out, loc_value val, const format_specs<>& specs) const -> bool { return do_put(out, val, specs); } }; namespace detail { template <typename T, fmt::enable_if_t<(is_signed<T>::value), int> = 0> constexpr auto is_negative(T value) -> bool { return value < 0; } template <typename T, fmt::enable_if_t<(!is_signed<T>::value), int> = 0> constexpr auto is_negative(T) -> bool { return false; } template <typename T> constexpr auto is_supported_floating_point(T) -> bool { if (std::is_same<T, float>()) return 1; if (std::is_same<T, double>()) return 1; if (std::is_same<T, long double>()) return 1; return true; } template <typename T> using uint32_or_64_or_128_t = conditional_t<num_bits<T>() <= 32 && !0, uint32_t, conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>>; template <typename T> using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>; constexpr const char* digits2(size_t value) { return &"0001020304050607080910111213141516171819" "2021222324252627282930313233343536373839" "4041424344454647484950515253545556575859" "6061626364656667686970717273747576777879" "8081828384858687888990919293949596979899"[value * 2]; } template <typename Char, typename Sign> constexpr Char sign(Sign s) { static_assert(std::is_same<Sign, sign_t>::value, ""); return static_cast<Char>("\0-+ "[s]); } template <typename T> constexpr auto count_digits_fallback(T n) -> int { int count = 1; for (;;) { if (n < 10) return count; if (n < 100) return count + 1; if (n < 1000) return count + 2; if (n < 10000) return count + 3; n /= 10000u; count += 4; } } constexpr inline auto count_digits(uint128_opt n) -> int { return count_digits_fallback(n); } inline auto do_count_digits(uint64_t n) -> int { static constexpr uint8_t bsr2log10[] = { 1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 12, 12, 12, 13, 13, 13, 13, 14, 14, 14, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 18, 18, 18, 19, 19, 19, 19, 20}; auto t = bsr2log10[__builtin_clzll(n | 1) ^ 63]; static constexpr const uint64_t zero_or_powers_of_10[] = { 0, 0, 1U * 10, (1U)*100, (1U)*1000, (1U)*10000, (1U)*100000, (1U)*1000000, (1U)*10000000, (1U)*100000000, (1U)*1000000000, 1000000000ULL * 10, (1000000000ULL)*100, (1000000000ULL)*1000, (1000000000ULL)*10000, (1000000000ULL)*100000, (1000000000ULL)*1000000, (1000000000ULL)*10000000, (1000000000ULL)*100000000, (1000000000ULL)*1000000000, 10000000000000000000ULL}; return t - (n < zero_or_powers_of_10[t]); } constexpr inline auto count_digits(uint64_t n) -> int { if (!is_constant_evaluated()) { return do_count_digits(n); } return count_digits_fallback(n); } template <int BITS, typename UInt> constexpr auto count_digits(UInt n) -> int { if (!is_constant_evaluated() && num_bits<UInt>() == 32) return (__builtin_clz(static_cast<uint32_t>(n) | 1) ^ 31) / BITS + 1; return [](UInt m) { int num_digits = 0; do { ++num_digits; } while ((m >>= BITS) != 0); return num_digits; }(n); } inline __attribute__((always_inline)) auto do_count_digits(uint32_t n) -> int { static constexpr uint64_t table[] = { (((sizeof("0") - 1ull) << 32) - 0), (((sizeof("0") - 1ull) << 32) - 0), (((sizeof("0") - 1ull) << 32) - 0), (((sizeof("10") - 1ull) << 32) - 10), (((sizeof("10") - 1ull) << 32) - 10), (((sizeof("10") - 1ull) << 32) - 10), (((sizeof("100") - 1ull) << 32) - 100), (((sizeof("100") - 1ull) << 32) - 100), (((sizeof("100") - 1ull) << 32) - 100), (((sizeof("1000") - 1ull) << 32) - 1000), (((sizeof("1000") - 1ull) << 32) - 1000), (((sizeof("1000") - 1ull) << 32) - 1000), (((sizeof("10000") - 1ull) << 32) - 10000), (((sizeof("10000") - 1ull) << 32) - 10000), (((sizeof("10000") - 1ull) << 32) - 10000), (((sizeof("100000") - 1ull) << 32) - 100000), (((sizeof("100000") - 1ull) << 32) - 100000), (((sizeof("100000") - 1ull) << 32) - 100000), (((sizeof("1000000") - 1ull) << 32) - 1000000), (((sizeof("1000000") - 1ull) << 32) - 1000000), (((sizeof("1000000") - 1ull) << 32) - 1000000), (((sizeof("10000000") - 1ull) << 32) - 10000000), (((sizeof("10000000") - 1ull) << 32) - 10000000), (((sizeof("10000000") - 1ull) << 32) - 10000000), (((sizeof("100000000") - 1ull) << 32) - 100000000), (((sizeof("100000000") - 1ull) << 32) - 100000000), (((sizeof("100000000") - 1ull) << 32) - 100000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000), (((sizeof("1000000000") - 1ull) << 32) - 1000000000) }; auto inc = table[__builtin_clz(n | 1) ^ 31]; return static_cast<int>((n + inc) >> 32); } constexpr inline auto count_digits(uint32_t n) -> int { if (!is_constant_evaluated()) { return do_count_digits(n); } return count_digits_fallback(n); } template <typename Int> constexpr auto digits10() noexcept -> int { return std::numeric_limits<Int>::digits10; } template <> constexpr auto digits10<int128_opt>() noexcept -> int { return 38; } template <> constexpr auto digits10<uint128_t>() noexcept -> int { return 38; } template <typename Char> struct thousands_sep_result { std::string grouping; Char thousands_sep; }; template <typename Char> auto thousands_sep_impl(locale_ref loc) -> thousands_sep_result<Char>; template <typename Char> inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<Char> { auto result = thousands_sep_impl<char>(loc); return {result.grouping, Char(result.thousands_sep)}; } template <> inline auto thousands_sep(locale_ref loc) -> thousands_sep_result<wchar_t> { return thousands_sep_impl<wchar_t>(loc); } template <typename Char> auto decimal_point_impl(locale_ref loc) -> Char; template <typename Char> inline auto decimal_point(locale_ref loc) -> Char { return Char(decimal_point_impl<char>(loc)); } template <> inline auto decimal_point(locale_ref loc) -> wchar_t { return decimal_point_impl<wchar_t>(loc); } template <typename Char> auto equal2(const Char* lhs, const char* rhs) -> bool { return lhs[0] == Char(rhs[0]) && lhs[1] == Char(rhs[1]); } inline auto equal2(const char* lhs, const char* rhs) -> bool { return memcmp(lhs, rhs, 2) == 0; } template <typename Char> constexpr inline __attribute__((always_inline)) void copy2(Char* dst, const char* src) { if (!is_constant_evaluated() && sizeof(Char) == sizeof(char)) { memcpy(dst, src, 2); return; } *dst++ = static_cast<Char>(*src++); *dst = static_cast<Char>(*src); } template <typename Iterator> struct format_decimal_result { Iterator begin; Iterator end; }; template <typename Char, typename UInt> constexpr auto format_decimal(Char* out, UInt value, int size) -> format_decimal_result<Char*> { ((size >= count_digits(value)) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 1345, ("invalid digit count"))); out += size; Char* end = out; while (value >= 100) { out -= 2; copy2(out, digits2(static_cast<size_t>(value % 100))); value /= 100; } if (value < 10) { *--out = static_cast<Char>('0' + value); return {out, end}; } out -= 2; copy2(out, digits2(static_cast<size_t>(value))); return {out, end}; } template <typename Char, typename UInt, typename Iterator, fmt::enable_if_t<(!std::is_pointer<remove_cvref_t<Iterator>>::value), int> = 0> constexpr inline auto format_decimal(Iterator out, UInt value, int size) -> format_decimal_result<Iterator> { Char buffer[digits10<UInt>() + 1] = {}; auto end = format_decimal(buffer, value, size).end; return {out, detail::copy_str_noinline<Char>(buffer, end, out)}; } template <unsigned BASE_BITS, typename Char, typename UInt> constexpr auto format_uint(Char* buffer, UInt value, int num_digits, bool upper = false) -> Char* { buffer += num_digits; Char* end = buffer; do { const char* digits = upper ? "0123456789ABCDEF" : "0123456789abcdef"; unsigned digit = static_cast<unsigned>(value & ((1 << BASE_BITS) - 1)); *--buffer = static_cast<Char>(BASE_BITS < 4 ? static_cast<char>('0' + digit) : digits[digit]); } while ((value >>= BASE_BITS) != 0); return end; } template <unsigned BASE_BITS, typename Char, typename It, typename UInt> constexpr inline auto format_uint(It out, UInt value, int num_digits, bool upper = false) -> It { if (auto ptr = to_pointer<Char>(out, to_unsigned(num_digits))) { format_uint<BASE_BITS>(ptr, value, num_digits, upper); return out; } char buffer[num_bits<UInt>() / BASE_BITS + 1]; format_uint<BASE_BITS>(buffer, value, num_digits, upper); return detail::copy_str_noinline<Char>(buffer, buffer + num_digits, out); } class utf8_to_utf16 { private: basic_memory_buffer<wchar_t> buffer_; public: explicit utf8_to_utf16(string_view s); operator basic_string_view<wchar_t>() const { return {&buffer_[0], size()}; } auto size() const -> size_t { return buffer_.size() - 1; } auto c_str() const -> const wchar_t* { return &buffer_[0]; } auto str() const -> std::wstring { return {&buffer_[0], size()}; } }; enum class to_utf8_error_policy { abort, replace }; template <typename WChar, typename Buffer = memory_buffer> class to_utf8 { private: Buffer buffer_; public: to_utf8() {} explicit to_utf8(basic_string_view<WChar> s, to_utf8_error_policy policy = to_utf8_error_policy::abort) { static_assert(sizeof(WChar) == 2 || sizeof(WChar) == 4, "Expect utf16 or utf32"); if (!convert(s, policy)) throw std::runtime_error(sizeof(WChar) == 2 ? "invalid utf16" : "invalid utf32") ; } operator string_view() const { return string_view(&buffer_[0], size()); } size_t size() const { return buffer_.size() - 1; } const char* c_str() const { return &buffer_[0]; } std::string str() const { return std::string(&buffer_[0], size()); } bool convert(basic_string_view<WChar> s, to_utf8_error_policy policy = to_utf8_error_policy::abort) { if (!convert(buffer_, s, policy)) return false; buffer_.push_back(0); return true; } static bool convert( Buffer& buf, basic_string_view<WChar> s, to_utf8_error_policy policy = to_utf8_error_policy::abort) { for (auto p = s.begin(); p != s.end(); ++p) { uint32_t c = static_cast<uint32_t>(*p); if (sizeof(WChar) == 2 && c >= 0xd800 && c <= 0xdfff) { ++p; if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) { if (policy == to_utf8_error_policy::abort) return false; buf.append(string_view("\xEF\xBF\xBD")); --p; } else { c = (c << 10) + static_cast<uint32_t>(*p) - 0x35fdc00; } } else if (c < 0x80) { buf.push_back(static_cast<char>(c)); } else if (c < 0x800) { buf.push_back(static_cast<char>(0xc0 | (c >> 6))); buf.push_back(static_cast<char>(0x80 | (c & 0x3f))); } else if ((c >= 0x800 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xffff)) { buf.push_back(static_cast<char>(0xe0 | (c >> 12))); buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6))); buf.push_back(static_cast<char>(0x80 | (c & 0x3f))); } else if (c >= 0x10000 && c <= 0x10ffff) { buf.push_back(static_cast<char>(0xf0 | (c >> 18))); buf.push_back(static_cast<char>(0x80 | ((c & 0x3ffff) >> 12))); buf.push_back(static_cast<char>(0x80 | ((c & 0xfff) >> 6))); buf.push_back(static_cast<char>(0x80 | (c & 0x3f))); } else { return false; } } return true; } }; inline uint128_fallback umul128(uint64_t x, uint64_t y) noexcept { auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y); return {static_cast<uint64_t>(p >> 64), static_cast<uint64_t>(p)}; # 1510 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 } namespace dragonbox { inline int floor_log10_pow2(int e) noexcept { ((e <= 2620 && e >= -2620) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 1516, ("too large exponent"))); static_assert((-1 >> 1) == -1, "right shift is not arithmetic"); return (e * 315653) >> 20; } inline int floor_log2_pow10(int e) noexcept { ((e <= 1233 && e >= -1233) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 1522, ("too large exponent"))); return (e * 1741647) >> 19; } inline uint64_t umul128_upper64(uint64_t x, uint64_t y) noexcept { auto p = static_cast<uint128_opt>(x) * static_cast<uint128_opt>(y); return static_cast<uint64_t>(p >> 64); } inline uint128_fallback umul192_upper128(uint64_t x, uint128_fallback y) noexcept { uint128_fallback r = umul128(x, y.high()); r += umul128_upper64(x, y.low()); return r; } uint128_fallback get_cached_power(int k) noexcept; template <typename T, typename Enable = void> struct float_info; template <> struct float_info<float> { using carrier_uint = uint32_t; static const int exponent_bits = 8; static const int kappa = 1; static const int big_divisor = 100; static const int small_divisor = 10; static const int min_k = -31; static const int max_k = 46; static const int shorter_interval_tie_lower_threshold = -35; static const int shorter_interval_tie_upper_threshold = -35; }; template <> struct float_info<double> { using carrier_uint = uint64_t; static const int exponent_bits = 11; static const int kappa = 2; static const int big_divisor = 1000; static const int small_divisor = 100; static const int min_k = -292; static const int max_k = 341; static const int shorter_interval_tie_lower_threshold = -77; static const int shorter_interval_tie_upper_threshold = -77; }; template <typename T> struct float_info<T, enable_if_t<std::numeric_limits<T>::digits == 64 || std::numeric_limits<T>::digits == 113 || is_float128<T>::value>> { using carrier_uint = detail::uint128_t; static const int exponent_bits = 15; }; template <typename T> struct float_info<T, enable_if_t<is_double_double<T>::value>> { using carrier_uint = detail::uint128_t; }; template <typename T> struct decimal_fp { using significand_type = typename float_info<T>::carrier_uint; significand_type significand; int exponent; }; template <typename T> auto to_decimal(T x) noexcept -> decimal_fp<T>; } template <typename Float> constexpr bool has_implicit_bit() { return std::numeric_limits<Float>::digits != 64; } template <typename Float> constexpr int num_significand_bits() { return is_float128<Float>() ? 112 : (std::numeric_limits<Float>::digits - (has_implicit_bit<Float>() ? 1 : 0)); } template <typename Float> constexpr auto exponent_mask() -> typename dragonbox::float_info<Float>::carrier_uint { using float_uint = typename dragonbox::float_info<Float>::carrier_uint; return ((float_uint(1) << dragonbox::float_info<Float>::exponent_bits) - 1) << num_significand_bits<Float>(); } template <typename Float> constexpr auto exponent_bias() -> int { return is_float128<Float>() ? 16383 : std::numeric_limits<Float>::max_exponent - 1; } template <typename Char, typename It> constexpr auto write_exponent(int exp, It it) -> It { ((-10000 < exp && exp < 10000) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 1631, ("exponent out of range"))); if (exp < 0) { *it++ = static_cast<Char>('-'); exp = -exp; } else { *it++ = static_cast<Char>('+'); } if (exp >= 100) { const char* top = digits2(to_unsigned(exp / 100)); if (exp >= 1000) *it++ = static_cast<Char>(top[0]); *it++ = static_cast<Char>(top[1]); exp %= 100; } const char* d = digits2(to_unsigned(exp)); *it++ = static_cast<Char>(d[0]); *it++ = static_cast<Char>(d[1]); return it; } template <typename F> struct basic_fp { F f; int e; static constexpr const int num_significand_bits = static_cast<int>(sizeof(F) * num_bits<unsigned char>()); constexpr basic_fp() : f(0), e(0) {} constexpr basic_fp(uint64_t f_val, int e_val) : f(f_val), e(e_val) {} template <typename Float> constexpr basic_fp(Float n) { assign(n); } template <typename Float, fmt::enable_if_t<(!is_double_double<Float>::value), int> = 0> constexpr auto assign(Float n) -> bool { static_assert(std::numeric_limits<Float>::digits <= 113, "unsupported FP"); using carrier_uint = typename dragonbox::float_info<Float>::carrier_uint; const auto num_float_significand_bits = detail::num_significand_bits<Float>(); const auto implicit_bit = carrier_uint(1) << num_float_significand_bits; const auto significand_mask = implicit_bit - 1; auto u = bit_cast<carrier_uint>(n); f = static_cast<F>(u & significand_mask); auto biased_e = static_cast<int>((u & exponent_mask<Float>()) >> num_float_significand_bits); auto is_predecessor_closer = f == 0 && biased_e > 1; if (biased_e == 0) biased_e = 1; else if (has_implicit_bit<Float>()) f += static_cast<F>(implicit_bit); e = biased_e - exponent_bias<Float>() - num_float_significand_bits; if (!has_implicit_bit<Float>()) ++e; return is_predecessor_closer; } template <typename Float, fmt::enable_if_t<(is_double_double<Float>::value), int> = 0> constexpr auto assign(Float n) -> bool { static_assert(std::numeric_limits<double>::is_iec559, "unsupported FP"); return assign(static_cast<double>(n)); } }; using fp = basic_fp<unsigned long long>; template <int SHIFT = 0, typename F> constexpr basic_fp<F> normalize(basic_fp<F> value) { const auto implicit_bit = F(1) << num_significand_bits<double>(); const auto shifted_implicit_bit = implicit_bit << SHIFT; while ((value.f & shifted_implicit_bit) == 0) { value.f <<= 1; --value.e; } const auto offset = basic_fp<F>::num_significand_bits - num_significand_bits<double>() - SHIFT - 1; value.f <<= offset; value.e -= offset; return value; } constexpr inline uint64_t multiply(uint64_t lhs, uint64_t rhs) { auto product = static_cast<__uint128_t>(lhs) * rhs; auto f = static_cast<uint64_t>(product >> 64); return (static_cast<uint64_t>(product) & (1ULL << 63)) != 0 ? f + 1 : f; # 1733 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 } constexpr inline fp operator*(fp x, fp y) { return {multiply(x.f, y.f), x.e + y.e + 64}; } template <typename T = void> struct basic_data { static constexpr uint32_t fractional_part_rounding_thresholds[8] = { 2576980378U, 2190433321U, 2151778616U, 2147913145U, 2147526598U, 2147487943U, 2147484078U, 2147483691U }; }; struct data : basic_data<> {}; template <typename T, bool doublish = num_bits<T>() == num_bits<double>()> using convert_float_result = conditional_t<std::is_same<T, float>::value || doublish, double, T>; template <typename T> constexpr auto convert_float(T value) -> convert_float_result<T> { return static_cast<convert_float_result<T>>(value); } template <typename OutputIt, typename Char> __attribute__((noinline)) constexpr auto fill(OutputIt it, size_t n, const fill_t<Char>& fill) -> OutputIt { auto fill_size = fill.size(); if (fill_size == 1) return detail::fill_n(it, n, fill[0]); auto data = fill.data(); for (size_t i = 0; i < n; ++i) it = copy_str<Char>(data, data + fill_size, it); return it; } template <align::type align = align::left, typename OutputIt, typename Char, typename F> constexpr auto write_padded(OutputIt out, const format_specs<Char>& specs, size_t size, size_t width, F&& f) -> OutputIt { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = spec_width > width ? spec_width - width : 0; auto* shifts = align == align::left ? "\x1f\x1f\x00\x01" : "\x00\x1f\x00\x01"; size_t left_padding = padding >> shifts[specs.align]; size_t right_padding = padding - left_padding; auto it = reserve(out, size + padding * specs.fill.size()); if (left_padding != 0) it = fill(it, left_padding, specs.fill); it = f(it); if (right_padding != 0) it = fill(it, right_padding, specs.fill); return base_iterator(out, it); } template <align::type align = align::left, typename OutputIt, typename Char, typename F> constexpr auto write_padded(OutputIt out, const format_specs<Char>& specs, size_t size, F&& f) -> OutputIt { return write_padded<align>(out, specs, size, size, f); } template <align::type align = align::left, typename Char, typename OutputIt> constexpr auto write_bytes(OutputIt out, string_view bytes, const format_specs<Char>& specs) -> OutputIt { return write_padded<align>( out, specs, bytes.size(), [bytes](reserve_iterator<OutputIt> it) { const char* data = bytes.data(); return copy_str<Char>(data, data + bytes.size(), it); }); } template <typename Char, typename OutputIt, typename UIntPtr> auto write_ptr(OutputIt out, UIntPtr value, const format_specs<Char>* specs) -> OutputIt { int num_digits = count_digits<4>(value); auto size = to_unsigned(num_digits) + size_t(2); auto write = [=](reserve_iterator<OutputIt> it) { *it++ = static_cast<Char>('0'); *it++ = static_cast<Char>('x'); return format_uint<4, Char>(it, value, num_digits); }; return specs ? write_padded<align::right>(out, *specs, size, write) : base_iterator(out, write(reserve(out, size))); } auto is_printable(uint32_t cp) -> bool; inline auto needs_escape(uint32_t cp) -> bool { return cp < 0x20 || cp == 0x7f || cp == '"' || cp == '\\' || !is_printable(cp); } template <typename Char> struct find_escape_result { const Char* begin; const Char* end; uint32_t cp; }; template <typename Char> using make_unsigned_char = typename conditional_t<std::is_integral<Char>::value, std::make_unsigned<Char>, type_identity<uint32_t>>::type; template <typename Char> auto find_escape(const Char* begin, const Char* end) -> find_escape_result<Char> { for (; begin != end; ++begin) { uint32_t cp = static_cast<make_unsigned_char<Char>>(*begin); if (const_check(sizeof(Char) == 1) && cp >= 0x80) continue; if (needs_escape(cp)) return {begin, begin + 1, cp}; } return {begin, nullptr, 0}; } inline auto find_escape(const char* begin, const char* end) -> find_escape_result<char> { if (!is_utf8()) return find_escape<char>(begin, end); auto result = find_escape_result<char>{end, nullptr, 0}; for_each_codepoint(string_view(begin, to_unsigned(end - begin)), [&](uint32_t cp, string_view sv) { if (needs_escape(cp)) { result = {sv.begin(), sv.end(), cp}; return false; } return true; }); return result; } # 1907 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <size_t width, typename Char, typename OutputIt> auto write_codepoint(OutputIt out, char prefix, uint32_t cp) -> OutputIt { *out++ = static_cast<Char>('\\'); *out++ = static_cast<Char>(prefix); Char buf[width]; fill_n(buf, width, static_cast<Char>('0')); format_uint<4>(buf, cp, width); return copy_str<Char>(buf, buf + width, out); } template <typename OutputIt, typename Char> auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) -> OutputIt { auto c = static_cast<Char>(escape.cp); switch (escape.cp) { case '\n': *out++ = static_cast<Char>('\\'); c = static_cast<Char>('n'); break; case '\r': *out++ = static_cast<Char>('\\'); c = static_cast<Char>('r'); break; case '\t': *out++ = static_cast<Char>('\\'); c = static_cast<Char>('t'); break; case '"': [[fallthrough]]; case '\'': [[fallthrough]]; case '\\': *out++ = static_cast<Char>('\\'); break; default: if (escape.cp < 0x100) { return write_codepoint<2, Char>(out, 'x', escape.cp); } if (escape.cp < 0x10000) { return write_codepoint<4, Char>(out, 'u', escape.cp); } if (escape.cp < 0x110000) { return write_codepoint<8, Char>(out, 'U', escape.cp); } for (Char escape_char : basic_string_view<Char>( escape.begin, to_unsigned(escape.end - escape.begin))) { out = write_codepoint<2, Char>(out, 'x', static_cast<uint32_t>(escape_char) & 0xFF); } return out; } *out++ = c; return out; } template <typename Char, typename OutputIt> auto write_escaped_string(OutputIt out, basic_string_view<Char> str) -> OutputIt { *out++ = static_cast<Char>('"'); auto begin = str.begin(), end = str.end(); do { auto escape = find_escape(begin, end); out = copy_str<Char>(begin, escape.begin, out); begin = escape.end; if (!begin) break; out = write_escaped_cp<OutputIt, Char>(out, escape); } while (begin != end); *out++ = static_cast<Char>('"'); return out; } template <typename Char, typename OutputIt> auto write_escaped_char(OutputIt out, Char v) -> OutputIt { *out++ = static_cast<Char>('\''); if ((needs_escape(static_cast<uint32_t>(v)) && v != static_cast<Char>('"')) || v == static_cast<Char>('\'')) { out = write_escaped_cp( out, find_escape_result<Char>{&v, &v + 1, static_cast<uint32_t>(v)}); } else { *out++ = v; } *out++ = static_cast<Char>('\''); return out; } template <typename Char, typename OutputIt> constexpr auto write_char(OutputIt out, Char value, const format_specs<Char>& specs) -> OutputIt { bool is_debug = specs.type == presentation_type::debug; return write_padded(out, specs, 1, [=](reserve_iterator<OutputIt> it) { if (is_debug) return write_escaped_char(it, value); *it++ = value; return it; }); } template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, Char value, const format_specs<Char>& specs, locale_ref loc = {}) -> OutputIt { using unsigned_type = conditional_t<std::is_same<Char, char>::value, unsigned char, unsigned>; return check_char_specs(specs) ? write_char(out, value, specs) : write(out, static_cast<unsigned_type>(value), specs, loc); } template <typename Char> struct write_int_data { size_t size; size_t padding; constexpr write_int_data(int num_digits, unsigned prefix, const format_specs<Char>& specs) : size((prefix >> 24) + to_unsigned(num_digits)), padding(0) { if (specs.align == align::numeric) { auto width = to_unsigned(specs.width); if (width > size) { padding = width - size; size = width; } } else if (specs.precision > num_digits) { size = (prefix >> 24) + to_unsigned(specs.precision); padding = to_unsigned(specs.precision - num_digits); } } }; template <typename OutputIt, typename Char, typename W> constexpr inline __attribute__((always_inline)) auto write_int(OutputIt out, int num_digits, unsigned prefix, const format_specs<Char>& specs, W write_digits) -> OutputIt { if ((specs.width | (specs.precision + 1)) == 0) { auto it = reserve(out, to_unsigned(num_digits) + (prefix >> 24)); if (prefix != 0) { for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast<Char>(p & 0xff); } return base_iterator(out, write_digits(it)); } auto data = write_int_data<Char>(num_digits, prefix, specs); return write_padded<align::right>( out, specs, data.size, [=](reserve_iterator<OutputIt> it) { for (unsigned p = prefix & 0xffffff; p != 0; p >>= 8) *it++ = static_cast<Char>(p & 0xff); it = detail::fill_n(it, data.padding, static_cast<Char>('0')); return write_digits(it); }); } template <typename Char> class digit_grouping { private: std::string grouping_; std::basic_string<Char> thousands_sep_; struct next_state { std::string::const_iterator group; int pos; }; next_state initial_state() const { return {grouping_.begin(), 0}; } int next(next_state& state) const { if (thousands_sep_.empty()) return max_value<int>(); if (state.group == grouping_.end()) return state.pos += grouping_.back(); if (*state.group <= 0 || *state.group == max_value<char>()) return max_value<int>(); state.pos += *state.group++; return state.pos; } public: explicit digit_grouping(locale_ref loc, bool localized = true) { if (!localized) return; auto sep = thousands_sep<Char>(loc); grouping_ = sep.grouping; if (sep.thousands_sep) thousands_sep_.assign(1, sep.thousands_sep); } digit_grouping(std::string grouping, std::basic_string<Char> sep) : grouping_(std::move(grouping)), thousands_sep_(std::move(sep)) {} bool has_separator() const { return !thousands_sep_.empty(); } int count_separators(int num_digits) const { int count = 0; auto state = initial_state(); while (num_digits > next(state)) ++count; return count; } template <typename Out, typename C> Out apply(Out out, basic_string_view<C> digits) const { auto num_digits = static_cast<int>(digits.size()); auto separators = basic_memory_buffer<int>(); separators.push_back(0); auto state = initial_state(); while (int i = next(state)) { if (i >= num_digits) break; separators.push_back(i); } for (int i = 0, sep_index = static_cast<int>(separators.size() - 1); i < num_digits; ++i) { if (num_digits - i == separators[sep_index]) { out = copy_str<Char>(thousands_sep_.data(), thousands_sep_.data() + thousands_sep_.size(), out); --sep_index; } *out++ = static_cast<Char>(digits[to_unsigned(i)]); } return out; } }; template <typename OutputIt, typename UInt, typename Char> auto write_int(OutputIt out, UInt value, unsigned prefix, const format_specs<Char>& specs, const digit_grouping<Char>& grouping) -> OutputIt { static_assert(std::is_same<uint64_or_128_t<UInt>, UInt>::value, ""); int num_digits = count_digits(value); char digits[40]; format_decimal(digits, value, num_digits); unsigned size = to_unsigned((prefix != 0 ? 1 : 0) + num_digits + grouping.count_separators(num_digits)); return write_padded<align::right>( out, specs, size, size, [&](reserve_iterator<OutputIt> it) { if (prefix != 0) { char sign = static_cast<char>(prefix); *it++ = static_cast<Char>(sign); } return grouping.apply(it, string_view(digits, to_unsigned(num_digits))); }); } auto write_loc(appender out, loc_value value, const format_specs<>& specs, locale_ref loc) -> bool; template <typename OutputIt, typename Char> inline auto write_loc(OutputIt, loc_value, const format_specs<Char>&, locale_ref) -> bool { return false; } constexpr inline void prefix_append(unsigned& prefix, unsigned value) { prefix |= prefix != 0 ? value << 8 : value; prefix += (1u + (value > 0xff ? 1 : 0)) << 24; } template <typename UInt> struct write_int_arg { UInt abs_value; unsigned prefix; }; template <typename T> constexpr auto make_write_int_arg(T value, sign_t sign) -> write_int_arg<uint32_or_64_or_128_t<T>> { auto prefix = 0u; auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value); if (is_negative(value)) { prefix = 0x01000000 | '-'; abs_value = 0 - abs_value; } else { constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+', 0x1000000u | ' '}; prefix = prefixes[sign]; } return {abs_value, prefix}; } template <typename Char = char> struct loc_writer { buffer_appender<Char> out; const format_specs<Char>& specs; std::basic_string<Char> sep; std::string grouping; std::basic_string<Char> decimal_point; template <typename T, fmt::enable_if_t<(is_integer<T>::value), int> = 0> auto operator()(T value) -> bool { auto arg = make_write_int_arg(value, specs.sign); write_int(out, static_cast<uint64_or_128_t<T>>(arg.abs_value), arg.prefix, specs, digit_grouping<Char>(grouping, sep)); return true; } template <typename T, fmt::enable_if_t<(!is_integer<T>::value), int> = 0> auto operator()(T) -> bool { return false; } }; template <typename Char, typename OutputIt, typename T> constexpr inline __attribute__((always_inline)) auto write_int(OutputIt out, write_int_arg<T> arg, const format_specs<Char>& specs, locale_ref) -> OutputIt { static_assert(std::is_same<T, uint32_or_64_or_128_t<T>>::value, ""); auto abs_value = arg.abs_value; auto prefix = arg.prefix; switch (specs.type) { case presentation_type::none: case presentation_type::dec: { auto num_digits = count_digits(abs_value); return write_int( out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) { return format_decimal<Char>(it, abs_value, num_digits).end; }); } case presentation_type::hex_lower: case presentation_type::hex_upper: { bool upper = specs.type == presentation_type::hex_upper; if (specs.alt) prefix_append(prefix, unsigned(upper ? 'X' : 'x') << 8 | '0'); int num_digits = count_digits<4>(abs_value); return write_int( out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) { return format_uint<4, Char>(it, abs_value, num_digits, upper); }); } case presentation_type::bin_lower: case presentation_type::bin_upper: { bool upper = specs.type == presentation_type::bin_upper; if (specs.alt) prefix_append(prefix, unsigned(upper ? 'B' : 'b') << 8 | '0'); int num_digits = count_digits<1>(abs_value); return write_int(out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) { return format_uint<1, Char>(it, abs_value, num_digits); }); } case presentation_type::oct: { int num_digits = count_digits<3>(abs_value); if (specs.alt && specs.precision <= num_digits && abs_value != 0) prefix_append(prefix, '0'); return write_int(out, num_digits, prefix, specs, [=](reserve_iterator<OutputIt> it) { return format_uint<3, Char>(it, abs_value, num_digits); }); } case presentation_type::chr: return write_char(out, static_cast<Char>(abs_value), specs); default: throw_format_error("invalid format specifier"); } return out; } template <typename Char, typename OutputIt, typename T> constexpr __attribute__((noinline)) auto write_int_noinline( OutputIt out, write_int_arg<T> arg, const format_specs<Char>& specs, locale_ref loc) -> OutputIt { return write_int(out, arg, specs, loc); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_integral<T>::value && !std::is_same<T, bool>::value && std::is_same<OutputIt, buffer_appender<Char>>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto write(OutputIt out, T value, const format_specs<Char>& specs, locale_ref loc) -> OutputIt { if (specs.localized && write_loc(out, value, specs, loc)) return out; return write_int_noinline(out, make_write_int_arg(value, specs.sign), specs, loc); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_integral<T>::value && !std::is_same<T, bool>::value && !std::is_same<OutputIt, buffer_appender<Char>>::value), int> = 0 > constexpr inline __attribute__((always_inline)) auto write(OutputIt out, T value, const format_specs<Char>& specs, locale_ref loc) -> OutputIt { if (specs.localized && write_loc(out, value, specs, loc)) return out; return write_int(out, make_write_int_arg(value, specs.sign), specs, loc); } class counting_iterator { private: size_t count_; public: using iterator_category = std::output_iterator_tag; using difference_type = std::ptrdiff_t; using pointer = void; using reference = void; using unchecked_type = counting_iterator; struct value_type { template <typename T> constexpr void operator=(const T&) {} }; constexpr counting_iterator() : count_(0) {} constexpr size_t count() const { return count_; } constexpr counting_iterator& operator++() { ++count_; return *this; } constexpr counting_iterator operator++(int) { auto it = *this; ++*this; return it; } constexpr friend counting_iterator operator+(counting_iterator it, difference_type n) { it.count_ += static_cast<size_t>(n); return it; } constexpr value_type operator*() const { return {}; } }; template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, basic_string_view<Char> s, const format_specs<Char>& specs) -> OutputIt { auto data = s.data(); auto size = s.size(); if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = code_point_index(s, to_unsigned(specs.precision)); bool is_debug = specs.type == presentation_type::debug; size_t width = 0; if (specs.width != 0) { if (is_debug) width = write_escaped_string(counting_iterator{}, s).count(); else width = compute_width(basic_string_view<Char>(data, size)); } return write_padded(out, specs, size, width, [=](reserve_iterator<OutputIt> it) { if (is_debug) return write_escaped_string(it, s); return copy_str<Char>(data, data + size, it); }); } template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, basic_string_view<type_identity_t<Char>> s, const format_specs<Char>& specs, locale_ref) -> OutputIt { return write(out, s, specs); } template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, const Char* s, const format_specs<Char>& specs, locale_ref) -> OutputIt { return specs.type != presentation_type::pointer ? write(out, basic_string_view<Char>(s), specs, {}) : write_ptr<Char>(out, bit_cast<uintptr_t>(s), &specs); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_integral<T>::value && !std::is_same<T, bool>::value && !std::is_same<T, Char>::value), int> = 0 > constexpr auto write(OutputIt out, T value) -> OutputIt { auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value); bool negative = is_negative(value); if (negative) abs_value = ~abs_value + 1; int num_digits = count_digits(abs_value); auto size = (negative ? 1 : 0) + static_cast<size_t>(num_digits); auto it = reserve(out, size); if (auto ptr = to_pointer<Char>(it, size)) { if (negative) *ptr++ = static_cast<Char>('-'); format_decimal<Char>(ptr, abs_value, num_digits); return out; } if (negative) *it++ = static_cast<Char>('-'); it = format_decimal<Char>(it, abs_value, num_digits).end; return base_iterator(out, it); } template <typename Char> constexpr auto parse_align(const Char* begin, const Char* end, format_specs<Char>& specs) -> const Char* { ((begin != end) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2394, (""))); auto align = align::none; auto p = begin + code_point_length(begin); if (end - p <= 0) p = begin; for (;;) { switch (to_ascii(*p)) { case '<': align = align::left; break; case '>': align = align::right; break; case '^': align = align::center; break; } if (align != align::none) { if (p != begin) { auto c = *begin; if (c == '}') return begin; if (c == '{') { throw_format_error("invalid fill character '{'"); return begin; } specs.fill = {begin, to_unsigned(p - begin)}; begin = p + 1; } else { ++begin; } break; } else if (p == begin) { break; } p = begin; } specs.align = align; return begin; } enum class float_format : unsigned char { general, exp, fixed, hex }; struct float_specs { int precision; float_format format : 8; sign_t sign : 8; bool upper : 1; bool locale : 1; bool binary32 : 1; bool showpoint : 1; }; template <typename ErrorHandler = error_handler, typename Char> constexpr auto parse_float_type_spec(const format_specs<Char>& specs, ErrorHandler&& eh = {}) -> float_specs { auto result = float_specs(); result.showpoint = specs.alt; result.locale = specs.localized; switch (specs.type) { case presentation_type::none: result.format = float_format::general; break; case presentation_type::general_upper: result.upper = true; [[fallthrough]]; case presentation_type::general_lower: result.format = float_format::general; break; case presentation_type::exp_upper: result.upper = true; [[fallthrough]]; case presentation_type::exp_lower: result.format = float_format::exp; result.showpoint |= specs.precision != 0; break; case presentation_type::fixed_upper: result.upper = true; [[fallthrough]]; case presentation_type::fixed_lower: result.format = float_format::fixed; result.showpoint |= specs.precision != 0; break; case presentation_type::hexfloat_upper: result.upper = true; [[fallthrough]]; case presentation_type::hexfloat_lower: result.format = float_format::hex; break; default: eh.on_error("invalid format specifier"); break; } return result; } template <typename Char, typename OutputIt> constexpr auto write_nonfinite(OutputIt out, bool isnan, format_specs<Char> specs, const float_specs& fspecs) -> OutputIt { auto str = isnan ? (fspecs.upper ? "NAN" : "nan") : (fspecs.upper ? "INF" : "inf"); constexpr size_t str_size = 3; auto sign = fspecs.sign; auto size = str_size + (sign ? 1 : 0); const bool is_zero_fill = specs.fill.size() == 1 && *specs.fill.data() == static_cast<Char>('0'); if (is_zero_fill) specs.fill[0] = static_cast<Char>(' '); return write_padded(out, specs, size, [=](reserve_iterator<OutputIt> it) { if (sign) *it++ = detail::sign<Char>(sign); return copy_str<Char>(str, str + str_size, it); }); } struct big_decimal_fp { const char* significand; int significand_size; int exponent; }; constexpr auto get_significand_size(const big_decimal_fp& f) -> int { return f.significand_size; } template <typename T> inline auto get_significand_size(const dragonbox::decimal_fp<T>& f) -> int { return count_digits(f.significand); } template <typename Char, typename OutputIt> constexpr auto write_significand(OutputIt out, const char* significand, int significand_size) -> OutputIt { return copy_str<Char>(significand, significand + significand_size, out); } template <typename Char, typename OutputIt, typename UInt> inline auto write_significand(OutputIt out, UInt significand, int significand_size) -> OutputIt { return format_decimal<Char>(out, significand, significand_size).end; } template <typename Char, typename OutputIt, typename T, typename Grouping> constexpr auto write_significand(OutputIt out, T significand, int significand_size, int exponent, const Grouping& grouping) -> OutputIt { if (!grouping.has_separator()) { out = write_significand<Char>(out, significand, significand_size); return detail::fill_n(out, exponent, static_cast<Char>('0')); } auto buffer = memory_buffer(); write_significand<char>(appender(buffer), significand, significand_size); detail::fill_n(appender(buffer), exponent, '0'); return grouping.apply(out, string_view(buffer.data(), buffer.size())); } template <typename Char, typename UInt, fmt::enable_if_t<(std::is_integral<UInt>::value), int> = 0> inline auto write_significand(Char* out, UInt significand, int significand_size, int integral_size, Char decimal_point) -> Char* { if (!decimal_point) return format_decimal(out, significand, significand_size).end; out += significand_size + 1; Char* end = out; int floating_size = significand_size - integral_size; for (int i = floating_size / 2; i > 0; --i) { out -= 2; copy2(out, digits2(static_cast<std::size_t>(significand % 100))); significand /= 100; } if (floating_size % 2 != 0) { *--out = static_cast<Char>('0' + significand % 10); significand /= 10; } *--out = decimal_point; format_decimal(out - integral_size, significand, integral_size); return end; } template <typename OutputIt, typename UInt, typename Char, fmt::enable_if_t<(!std::is_pointer<remove_cvref_t<OutputIt>>::value), int> = 0> inline auto write_significand(OutputIt out, UInt significand, int significand_size, int integral_size, Char decimal_point) -> OutputIt { Char buffer[digits10<UInt>() + 2]; auto end = write_significand(buffer, significand, significand_size, integral_size, decimal_point); return detail::copy_str_noinline<Char>(buffer, end, out); } template <typename OutputIt, typename Char> constexpr auto write_significand(OutputIt out, const char* significand, int significand_size, int integral_size, Char decimal_point) -> OutputIt { out = detail::copy_str_noinline<Char>(significand, significand + integral_size, out); if (!decimal_point) return out; *out++ = decimal_point; return detail::copy_str_noinline<Char>(significand + integral_size, significand + significand_size, out); } template <typename OutputIt, typename Char, typename T, typename Grouping> constexpr auto write_significand(OutputIt out, T significand, int significand_size, int integral_size, Char decimal_point, const Grouping& grouping) -> OutputIt { if (!grouping.has_separator()) { return write_significand(out, significand, significand_size, integral_size, decimal_point); } auto buffer = basic_memory_buffer<Char>(); write_significand(buffer_appender<Char>(buffer), significand, significand_size, integral_size, decimal_point); grouping.apply( out, basic_string_view<Char>(buffer.data(), to_unsigned(integral_size))); return detail::copy_str_noinline<Char>(buffer.data() + integral_size, buffer.end(), out); } template <typename OutputIt, typename DecimalFP, typename Char, typename Grouping = digit_grouping<Char>> constexpr auto do_write_float(OutputIt out, const DecimalFP& f, const format_specs<Char>& specs, float_specs fspecs, locale_ref loc) -> OutputIt { auto significand = f.significand; int significand_size = get_significand_size(f); const Char zero = static_cast<Char>('0'); auto sign = fspecs.sign; size_t size = to_unsigned(significand_size) + (sign ? 1 : 0); using iterator = reserve_iterator<OutputIt>; Char decimal_point = fspecs.locale ? detail::decimal_point<Char>(loc) : static_cast<Char>('.'); int output_exp = f.exponent + significand_size - 1; auto use_exp_format = [=]() { if (fspecs.format == float_format::exp) return true; if (fspecs.format != float_format::general) return false; const int exp_lower = -4, exp_upper = 16; return output_exp < exp_lower || output_exp >= (fspecs.precision > 0 ? fspecs.precision : exp_upper); }; if (use_exp_format()) { int num_zeros = 0; if (fspecs.showpoint) { num_zeros = fspecs.precision - significand_size; if (num_zeros < 0) num_zeros = 0; size += to_unsigned(num_zeros); } else if (significand_size == 1) { decimal_point = Char(); } auto abs_output_exp = output_exp >= 0 ? output_exp : -output_exp; int exp_digits = 2; if (abs_output_exp >= 100) exp_digits = abs_output_exp >= 1000 ? 4 : 3; size += to_unsigned((decimal_point ? 1 : 0) + 2 + exp_digits); char exp_char = fspecs.upper ? 'E' : 'e'; auto write = [=](iterator it) { if (sign) *it++ = detail::sign<Char>(sign); it = write_significand(it, significand, significand_size, 1, decimal_point); if (num_zeros > 0) it = detail::fill_n(it, num_zeros, zero); *it++ = static_cast<Char>(exp_char); return write_exponent<Char>(output_exp, it); }; return specs.width > 0 ? write_padded<align::right>(out, specs, size, write) : base_iterator(out, write(reserve(out, size))); } int exp = f.exponent + significand_size; if (f.exponent >= 0) { size += to_unsigned(f.exponent); int num_zeros = fspecs.precision - exp; abort_fuzzing_if(num_zeros > 5000); if (fspecs.showpoint) { ++size; if (num_zeros <= 0 && fspecs.format != float_format::fixed) num_zeros = 0; if (num_zeros > 0) size += to_unsigned(num_zeros); } auto grouping = Grouping(loc, fspecs.locale); size += to_unsigned(grouping.count_separators(exp)); return write_padded<align::right>(out, specs, size, [&](iterator it) { if (sign) *it++ = detail::sign<Char>(sign); it = write_significand<Char>(it, significand, significand_size, f.exponent, grouping); if (!fspecs.showpoint) return it; *it++ = decimal_point; return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it; }); } else if (exp > 0) { int num_zeros = fspecs.showpoint ? fspecs.precision - significand_size : 0; size += 1 + to_unsigned(num_zeros > 0 ? num_zeros : 0); auto grouping = Grouping(loc, fspecs.locale); size += to_unsigned(grouping.count_separators(exp)); return write_padded<align::right>(out, specs, size, [&](iterator it) { if (sign) *it++ = detail::sign<Char>(sign); it = write_significand(it, significand, significand_size, exp, decimal_point, grouping); return num_zeros > 0 ? detail::fill_n(it, num_zeros, zero) : it; }); } int num_zeros = -exp; if (significand_size == 0 && fspecs.precision >= 0 && fspecs.precision < num_zeros) { num_zeros = fspecs.precision; } bool pointy = num_zeros != 0 || significand_size != 0 || fspecs.showpoint; size += 1 + (pointy ? 1 : 0) + to_unsigned(num_zeros); return write_padded<align::right>(out, specs, size, [&](iterator it) { if (sign) *it++ = detail::sign<Char>(sign); *it++ = zero; if (!pointy) return it; *it++ = decimal_point; it = detail::fill_n(it, num_zeros, zero); return write_significand<Char>(it, significand, significand_size); }); } template <typename Char> class fallback_digit_grouping { public: constexpr fallback_digit_grouping(locale_ref, bool) {} constexpr bool has_separator() const { return false; } constexpr int count_separators(int) const { return 0; } template <typename Out, typename C> constexpr Out apply(Out out, basic_string_view<C>) const { return out; } }; template <typename OutputIt, typename DecimalFP, typename Char> constexpr auto write_float(OutputIt out, const DecimalFP& f, const format_specs<Char>& specs, float_specs fspecs, locale_ref loc) -> OutputIt { if (is_constant_evaluated()) { return do_write_float<OutputIt, DecimalFP, Char, fallback_digit_grouping<Char>>(out, f, specs, fspecs, loc); } else { return do_write_float(out, f, specs, fspecs, loc); } } template <typename T> constexpr bool isnan(T value) { return !(value >= value); } template <typename T, typename Enable = void> struct has_isfinite : std::false_type {}; template <typename T> struct has_isfinite<T, enable_if_t<sizeof(std::isfinite(T())) != 0>> : std::true_type {}; template <typename T, fmt::enable_if_t<(std::is_floating_point<T>::value&& has_isfinite<T>::value), int> = 0 > constexpr bool isfinite(T value) { constexpr T inf = T(std::numeric_limits<double>::infinity()); if (is_constant_evaluated()) return !detail::isnan(value) && value < inf && value > -inf; return std::isfinite(value); } template <typename T, fmt::enable_if_t<(!has_isfinite<T>::value), int> = 0> constexpr bool isfinite(T value) { T inf = T(std::numeric_limits<double>::infinity()); return !detail::isnan(value) && value < inf && value > -inf; } template <typename T, fmt::enable_if_t<(is_floating_point<T>::value), int> = 0> inline __attribute__((always_inline)) constexpr bool signbit(T value) { if (is_constant_evaluated()) { if constexpr (std::numeric_limits<double>::is_iec559) { auto bits = detail::bit_cast<uint64_t>(static_cast<double>(value)); return (bits >> (num_bits<uint64_t>() - 1)) != 0; } } return std::signbit(static_cast<double>(value)); } inline constexpr void adjust_precision(int& precision, int exp10) { if (exp10 > 0 && precision > max_value<int>() - exp10) throw format_error("number is too big"); precision += exp10; } class bigint { private: using bigit = uint32_t; using double_bigit = uint64_t; enum { bigits_capacity = 32 }; basic_memory_buffer<bigit, bigits_capacity> bigits_; int exp_; constexpr bigit operator[](int index) const { return bigits_[to_unsigned(index)]; } constexpr bigit& operator[](int index) { return bigits_[to_unsigned(index)]; } static constexpr const int bigit_bits = num_bits<bigit>(); friend struct formatter<bigint>; constexpr void subtract_bigits(int index, bigit other, bigit& borrow) { auto result = static_cast<double_bigit>((*this)[index]) - other - borrow; (*this)[index] = static_cast<bigit>(result); borrow = static_cast<bigit>(result >> (bigit_bits * 2 - 1)); } constexpr void remove_leading_zeros() { int num_bigits = static_cast<int>(bigits_.size()) - 1; while (num_bigits > 0 && (*this)[num_bigits] == 0) --num_bigits; bigits_.resize(to_unsigned(num_bigits + 1)); } constexpr void subtract_aligned(const bigint& other) { ((other.exp_ >= exp_) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2834, ("unaligned bigints"))); ((compare(*this, other) >= 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2835, (""))); bigit borrow = 0; int i = other.exp_ - exp_; for (size_t j = 0, n = other.bigits_.size(); j != n; ++i, ++j) subtract_bigits(i, other.bigits_[j], borrow); while (borrow > 0) subtract_bigits(i, 0, borrow); remove_leading_zeros(); } constexpr void multiply(uint32_t value) { const double_bigit wide_value = value; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { double_bigit result = bigits_[i] * wide_value + carry; bigits_[i] = static_cast<bigit>(result); carry = static_cast<bigit>(result >> bigit_bits); } if (carry != 0) bigits_.push_back(carry); } template <typename UInt, fmt::enable_if_t<(std::is_same<UInt, uint64_t>::value || std::is_same<UInt, uint128_t>::value), int> = 0 > constexpr void multiply(UInt value) { using half_uint = conditional_t<std::is_same<UInt, uint128_t>::value, uint64_t, uint32_t>; const int shift = num_bits<half_uint>() - bigit_bits; const UInt lower = static_cast<half_uint>(value); const UInt upper = value >> num_bits<half_uint>(); UInt carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { UInt result = lower * bigits_[i] + static_cast<bigit>(carry); carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) + (carry >> bigit_bits); bigits_[i] = static_cast<bigit>(result); } while (carry != 0) { bigits_.push_back(static_cast<bigit>(carry)); carry >>= bigit_bits; } } template <typename UInt, fmt::enable_if_t<(std::is_same<UInt, uint64_t>::value || std::is_same<UInt, uint128_t>::value), int> = 0 > constexpr void assign(UInt n) { size_t num_bigits = 0; do { bigits_[num_bigits++] = static_cast<bigit>(n); n >>= bigit_bits; } while (n != 0); bigits_.resize(num_bigits); exp_ = 0; } public: constexpr bigint() : exp_(0) {} explicit bigint(uint64_t n) { assign(n); } bigint(const bigint&) = delete; void operator=(const bigint&) = delete; constexpr void assign(const bigint& other) { auto size = other.bigits_.size(); bigits_.resize(size); auto data = other.bigits_.data(); copy_str<bigit>(data, data + size, bigits_.data()); exp_ = other.exp_; } template <typename Int> constexpr void operator=(Int n) { ((n > 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2904, (""))); assign(uint64_or_128_t<Int>(n)); } constexpr int num_bigits() const { return static_cast<int>(bigits_.size()) + exp_; } __attribute__((noinline)) constexpr bigint& operator<<=(int shift) { ((shift >= 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2913, (""))); exp_ += shift / bigit_bits; shift %= bigit_bits; if (shift == 0) return *this; bigit carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { bigit c = bigits_[i] >> (bigit_bits - shift); bigits_[i] = (bigits_[i] << shift) + carry; carry = c; } if (carry != 0) bigits_.push_back(carry); return *this; } template <typename Int> constexpr bigint& operator*=(Int value) { ((value > 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2928, (""))); multiply(uint32_or_64_or_128_t<Int>(value)); return *this; } friend constexpr int compare(const bigint& lhs, const bigint& rhs) { int num_lhs_bigits = lhs.num_bigits(), num_rhs_bigits = rhs.num_bigits(); if (num_lhs_bigits != num_rhs_bigits) return num_lhs_bigits > num_rhs_bigits ? 1 : -1; int i = static_cast<int>(lhs.bigits_.size()) - 1; int j = static_cast<int>(rhs.bigits_.size()) - 1; int end = i - j; if (end < 0) end = 0; for (; i >= end; --i, --j) { bigit lhs_bigit = lhs[i], rhs_bigit = rhs[j]; if (lhs_bigit != rhs_bigit) return lhs_bigit > rhs_bigit ? 1 : -1; } if (i != j) return i > j ? 1 : -1; return 0; } friend constexpr int add_compare(const bigint& lhs1, const bigint& lhs2, const bigint& rhs) { auto minimum = [](int a, int b) { return a < b ? a : b; }; auto maximum = [](int a, int b) { return a > b ? a : b; }; int max_lhs_bigits = maximum(lhs1.num_bigits(), lhs2.num_bigits()); int num_rhs_bigits = rhs.num_bigits(); if (max_lhs_bigits + 1 < num_rhs_bigits) return -1; if (max_lhs_bigits > num_rhs_bigits) return 1; auto get_bigit = [](const bigint& n, int i) -> bigit { return i >= n.exp_ && i < n.num_bigits() ? n[i - n.exp_] : 0; }; double_bigit borrow = 0; int min_exp = minimum(minimum(lhs1.exp_, lhs2.exp_), rhs.exp_); for (int i = num_rhs_bigits - 1; i >= min_exp; --i) { double_bigit sum = static_cast<double_bigit>(get_bigit(lhs1, i)) + get_bigit(lhs2, i); bigit rhs_bigit = get_bigit(rhs, i); if (sum > rhs_bigit + borrow) return 1; borrow = rhs_bigit + borrow - sum; if (borrow > 1) return -1; borrow <<= bigit_bits; } return borrow != 0 ? -1 : 0; } constexpr void assign_pow10(int exp) { ((exp >= 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 2977, (""))); if (exp == 0) return *this = 1; int bitmask = 1; while (exp >= bitmask) bitmask <<= 1; bitmask >>= 1; *this = 5; bitmask >>= 1; while (bitmask != 0) { square(); if ((exp & bitmask) != 0) *this *= 5; bitmask >>= 1; } *this <<= exp; } constexpr void square() { int num_bigits = static_cast<int>(bigits_.size()); int num_result_bigits = 2 * num_bigits; basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_)); bigits_.resize(to_unsigned(num_result_bigits)); auto sum = uint128_t(); for (int bigit_index = 0; bigit_index < num_bigits; ++bigit_index) { for (int i = 0, j = bigit_index; j >= 0; ++i, --j) { sum += static_cast<double_bigit>(n[i]) * n[j]; } (*this)[bigit_index] = static_cast<bigit>(sum); sum >>= num_bits<bigit>(); } for (int bigit_index = num_bigits; bigit_index < num_result_bigits; ++bigit_index) { for (int j = num_bigits - 1, i = bigit_index - j; i < num_bigits;) sum += static_cast<double_bigit>(n[i++]) * n[j--]; (*this)[bigit_index] = static_cast<bigit>(sum); sum >>= num_bits<bigit>(); } remove_leading_zeros(); exp_ *= 2; } constexpr void align(const bigint& other) { int exp_difference = exp_ - other.exp_; if (exp_difference <= 0) return; int num_bigits = static_cast<int>(bigits_.size()); bigits_.resize(to_unsigned(num_bigits + exp_difference)); for (int i = num_bigits - 1, j = i + exp_difference; i >= 0; --i, --j) bigits_[j] = bigits_[i]; std::uninitialized_fill_n(bigits_.data(), exp_difference, 0); exp_ -= exp_difference; } constexpr int divmod_assign(const bigint& divisor) { ((this != &divisor) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 3039, (""))); if (compare(*this, divisor) < 0) return 0; ((divisor.bigits_[divisor.bigits_.size() - 1u] != 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 3041, (""))); align(divisor); int quotient = 0; do { subtract_aligned(divisor); ++quotient; } while (compare(*this, divisor) >= 0); return quotient; } }; enum dragon { predecessor_closer = 1, fixup = 2, fixed = 4, }; constexpr inline void format_dragon(basic_fp<uint128_t> value, unsigned flags, int num_digits, buffer<char>& buf, int& exp10) { bigint numerator; bigint denominator; bigint lower; bigint upper_store; bigint* upper = nullptr; bool is_predecessor_closer = (flags & dragon::predecessor_closer) != 0; int shift = is_predecessor_closer ? 2 : 1; if (value.e >= 0) { numerator = value.f; numerator <<= value.e + shift; lower = 1; lower <<= value.e; if (is_predecessor_closer) { upper_store = 1; upper_store <<= value.e + 1; upper = &upper_store; } denominator.assign_pow10(exp10); denominator <<= shift; } else if (exp10 < 0) { numerator.assign_pow10(-exp10); lower.assign(numerator); if (is_predecessor_closer) { upper_store.assign(numerator); upper_store <<= 1; upper = &upper_store; } numerator *= value.f; numerator <<= shift; denominator = 1; denominator <<= shift - value.e; } else { numerator = value.f; numerator <<= shift; denominator.assign_pow10(exp10); denominator <<= shift - value.e; lower = 1; if (is_predecessor_closer) { upper_store = 1ULL << 1; upper = &upper_store; } } int even = static_cast<int>((value.f & 1) == 0); if (!upper) upper = &lower; bool shortest = num_digits < 0; if ((flags & dragon::fixup) != 0) { if (add_compare(numerator, *upper, denominator) + even <= 0) { --exp10; numerator *= 10; if (num_digits < 0) { lower *= 10; if (upper != &lower) *upper *= 10; } } if ((flags & dragon::fixed) != 0) adjust_precision(num_digits, exp10 + 1); } if (shortest) { num_digits = 0; char* data = buf.data(); for (;;) { int digit = numerator.divmod_assign(denominator); bool low = compare(numerator, lower) - even < 0; bool high = add_compare(numerator, *upper, denominator) + even > 0; data[num_digits++] = static_cast<char>('0' + digit); if (low || high) { if (!low) { ++data[num_digits - 1]; } else if (high) { int result = add_compare(numerator, numerator, denominator); if (result > 0 || (result == 0 && (digit % 2) != 0)) ++data[num_digits - 1]; } buf.try_resize(to_unsigned(num_digits)); exp10 -= num_digits - 1; return; } numerator *= 10; lower *= 10; if (upper != &lower) *upper *= 10; } } exp10 -= num_digits - 1; if (num_digits <= 0) { denominator *= 10; auto digit = add_compare(numerator, numerator, denominator) > 0 ? '1' : '0'; buf.push_back(digit); return; } buf.try_resize(to_unsigned(num_digits)); for (int i = 0; i < num_digits - 1; ++i) { int digit = numerator.divmod_assign(denominator); buf[i] = static_cast<char>('0' + digit); numerator *= 10; } int digit = numerator.divmod_assign(denominator); auto result = add_compare(numerator, numerator, denominator); if (result > 0 || (result == 0 && (digit % 2) != 0)) { if (digit == 9) { const auto overflow = '0' + 10; buf[num_digits - 1] = overflow; for (int i = num_digits - 1; i > 0 && buf[i] == overflow; --i) { buf[i] = '0'; ++buf[i - 1]; } if (buf[0] == overflow) { buf[0] = '1'; if ((flags & dragon::fixed) != 0) buf.push_back('0'); else ++exp10; } return; } ++digit; } buf[num_digits - 1] = static_cast<char>('0' + digit); } template <typename Float, fmt::enable_if_t<(!is_double_double<Float>::value), int> = 0> constexpr void format_hexfloat(Float value, int precision, float_specs specs, buffer<char>& buf) { static_assert(!std::is_same<Float, float>::value, ""); using info = dragonbox::float_info<Float>; using carrier_uint = typename info::carrier_uint; constexpr auto num_float_significand_bits = detail::num_significand_bits<Float>(); basic_fp<carrier_uint> f(value); f.e += num_float_significand_bits; if (!has_implicit_bit<Float>()) --f.e; constexpr auto num_fraction_bits = num_float_significand_bits + (has_implicit_bit<Float>() ? 1 : 0); constexpr auto num_xdigits = (num_fraction_bits + 3) / 4; constexpr auto leading_shift = ((num_xdigits - 1) * 4); const auto leading_mask = carrier_uint(0xF) << leading_shift; const auto leading_xdigit = static_cast<uint32_t>((f.f & leading_mask) >> leading_shift); if (leading_xdigit > 1) f.e -= (32 - countl_zero(leading_xdigit) - 1); int print_xdigits = num_xdigits - 1; if (precision >= 0 && print_xdigits > precision) { const int shift = ((print_xdigits - precision - 1) * 4); const auto mask = carrier_uint(0xF) << shift; const auto v = static_cast<uint32_t>((f.f & mask) >> shift); if (v >= 8) { const auto inc = carrier_uint(1) << (shift + 4); f.f += inc; f.f &= ~(inc - 1); } if (!has_implicit_bit<Float>()) { const auto implicit_bit = carrier_uint(1) << num_float_significand_bits; if ((f.f & implicit_bit) == implicit_bit) { f.f >>= 4; f.e += 4; } } print_xdigits = precision; } char xdigits[num_bits<carrier_uint>() / 4]; detail::fill_n(xdigits, sizeof(xdigits), '0'); format_uint<4>(xdigits, f.f, num_xdigits, specs.upper); while (print_xdigits > 0 && xdigits[print_xdigits] == '0') --print_xdigits; buf.push_back('0'); buf.push_back(specs.upper ? 'X' : 'x'); buf.push_back(xdigits[0]); if (specs.showpoint || print_xdigits > 0 || print_xdigits < precision) buf.push_back('.'); buf.append(xdigits + 1, xdigits + 1 + print_xdigits); for (; print_xdigits < precision; ++print_xdigits) buf.push_back('0'); buf.push_back(specs.upper ? 'P' : 'p'); uint32_t abs_e; if (f.e < 0) { buf.push_back('-'); abs_e = static_cast<uint32_t>(-f.e); } else { buf.push_back('+'); abs_e = static_cast<uint32_t>(f.e); } format_decimal<char>(appender(buf), abs_e, detail::count_digits(abs_e)); } template <typename Float, fmt::enable_if_t<(is_double_double<Float>::value), int> = 0> constexpr void format_hexfloat(Float value, int precision, float_specs specs, buffer<char>& buf) { format_hexfloat(static_cast<double>(value), precision, specs, buf); } template <typename Float> constexpr auto format_float(Float value, int precision, float_specs specs, buffer<char>& buf) -> int { static_assert(!std::is_same<Float, float>::value, ""); ((value >= 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 3284, ("value is negative"))); auto converted_value = convert_float(value); const bool fixed = specs.format == float_format::fixed; if (value <= 0) { if (precision <= 0 || !fixed) { buf.push_back('0'); return 0; } buf.try_resize(to_unsigned(precision)); fill_n(buf.data(), precision, '0'); return -precision; } int exp = 0; bool use_dragon = true; unsigned dragon_flags = 0; if (!is_fast_float<Float>() || is_constant_evaluated()) { const auto inv_log2_10 = 0.3010299956639812; using info = dragonbox::float_info<decltype(converted_value)>; const auto f = basic_fp<typename info::carrier_uint>(converted_value); auto e = (f.e + count_digits<1>(f.f) - 1) * inv_log2_10 - 1e-10; exp = static_cast<int>(e); if (e > exp) ++exp; dragon_flags = dragon::fixup; } else if (precision < 0) { if (specs.binary32) { auto dec = dragonbox::to_decimal(static_cast<float>(value)); write<char>(buffer_appender<char>(buf), dec.significand); return dec.exponent; } auto dec = dragonbox::to_decimal(static_cast<double>(value)); write<char>(buffer_appender<char>(buf), dec.significand); return dec.exponent; } else { using info = dragonbox::float_info<double>; auto br = bit_cast<uint64_t>(static_cast<double>(value)); const uint64_t significand_mask = (static_cast<uint64_t>(1) << num_significand_bits<double>()) - 1; uint64_t significand = (br & significand_mask); int exponent = static_cast<int>((br & exponent_mask<double>()) >> num_significand_bits<double>()); if (exponent != 0) { exponent -= exponent_bias<double>() + num_significand_bits<double>(); significand |= (static_cast<uint64_t>(1) << num_significand_bits<double>()); significand <<= 1; } else { ((significand != 0) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 3341, ("zeros should not appear here"))); int shift = countl_zero(significand); ((shift >= num_bits<uint64_t>() - num_significand_bits<double>()) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 3343, (""))) ; shift -= (num_bits<uint64_t>() - num_significand_bits<double>() - 2); exponent = (std::numeric_limits<double>::min_exponent - num_significand_bits<double>()) - shift; significand <<= shift; } const int k = info::kappa - dragonbox::floor_log10_pow2(exponent); exp = -k; const int beta = exponent + dragonbox::floor_log2_pow10(k); uint64_t first_segment; bool has_more_segments; int digits_in_the_first_segment; { const auto r = dragonbox::umul192_upper128( significand << beta, dragonbox::get_cached_power(k)); first_segment = r.high(); has_more_segments = r.low() != 0; if (first_segment >= 1000000000000000000ULL) { digits_in_the_first_segment = 19; } else { digits_in_the_first_segment = 18; first_segment *= 10; } } if (fixed) adjust_precision(precision, exp + digits_in_the_first_segment); if (digits_in_the_first_segment > precision) { use_dragon = false; if (precision <= 0) { exp += digits_in_the_first_segment; if (precision < 0) { buf.try_resize(0); } else { buf.try_resize(1); if ((first_segment | static_cast<uint64_t>(has_more_segments)) > 5000000000000000000ULL) { buf[0] = '1'; } else { buf[0] = '0'; } } } else { exp += digits_in_the_first_segment - precision; # 3412 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 const uint32_t first_subsegment = static_cast<uint32_t>( dragonbox::umul128_upper64(first_segment, 7922816251426433760ULL) >> 32); const uint64_t second_third_subsegments = first_segment - first_subsegment * 10000000000ULL; uint64_t prod; uint32_t digits; bool should_round_up; int number_of_digits_to_print = precision > 9 ? 9 : precision; auto print_subsegment = [&](uint32_t subsegment, char* buffer) { int number_of_digits_printed = 0; if ((number_of_digits_to_print & 1) != 0) { prod = ((subsegment * static_cast<uint64_t>(720575941)) >> 24) + 1; digits = static_cast<uint32_t>(prod >> 32); *buffer = static_cast<char>('0' + digits); number_of_digits_printed++; } else { prod = ((subsegment * static_cast<uint64_t>(450359963)) >> 20) + 1; digits = static_cast<uint32_t>(prod >> 32); copy2(buffer, digits2(digits)); number_of_digits_printed += 2; } while (number_of_digits_printed < number_of_digits_to_print) { prod = static_cast<uint32_t>(prod) * static_cast<uint64_t>(100); digits = static_cast<uint32_t>(prod >> 32); copy2(buffer + number_of_digits_printed, digits2(digits)); number_of_digits_printed += 2; } }; print_subsegment(first_subsegment, buf.data()); if (precision <= 9) { # 3481 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 if (precision < 9) { uint32_t fractional_part = static_cast<uint32_t>(prod); should_round_up = fractional_part >= data::fractional_part_rounding_thresholds [8 - number_of_digits_to_print] || ((fractional_part >> 31) & ((digits & 1) | (second_third_subsegments != 0) | has_more_segments)) != 0; } else { should_round_up = second_third_subsegments > 5000000000ULL || (second_third_subsegments == 5000000000ULL && ((digits & 1) != 0 || has_more_segments)); } } else { const uint32_t second_subsegment = static_cast<uint32_t>(dragonbox::umul128_upper64( second_third_subsegments, 1844674407370955162ULL)); const uint32_t third_subsegment = static_cast<uint32_t>(second_third_subsegments) - second_subsegment * 10; number_of_digits_to_print = precision - 9; print_subsegment(second_subsegment, buf.data() + 9); if (precision < 18) { uint32_t fractional_part = static_cast<uint32_t>(prod); should_round_up = fractional_part >= data::fractional_part_rounding_thresholds [8 - number_of_digits_to_print] || ((fractional_part >> 31) & ((digits & 1) | (third_subsegment != 0) | has_more_segments)) != 0; } else { should_round_up = third_subsegment > 5 || (third_subsegment == 5 && ((digits & 1) != 0 || has_more_segments)); } } if (should_round_up) { ++buf[precision - 1]; for (int i = precision - 1; i > 0 && buf[i] > '9'; --i) { buf[i] = '0'; ++buf[i - 1]; } if (buf[0] > '9') { buf[0] = '1'; if (fixed) buf[precision++] = '0'; else ++exp; } } buf.try_resize(to_unsigned(precision)); } } else { exp += digits_in_the_first_segment - 1; } } if (use_dragon) { auto f = basic_fp<uint128_t>(); bool is_predecessor_closer = specs.binary32 ? f.assign(static_cast<float>(value)) : f.assign(converted_value); if (is_predecessor_closer) dragon_flags |= dragon::predecessor_closer; if (fixed) dragon_flags |= dragon::fixed; const int max_double_digits = 767; if (precision > max_double_digits) precision = max_double_digits; format_dragon(f, dragon_flags, precision, buf, exp); } if (!fixed && !specs.showpoint) { auto num_digits = buf.size(); while (num_digits > 0 && buf[num_digits - 1] == '0') { --num_digits; ++exp; } buf.try_resize(num_digits); } return exp; } template <typename Char, typename OutputIt, typename T> constexpr auto write_float(OutputIt out, T value, format_specs<Char> specs, locale_ref loc) -> OutputIt { float_specs fspecs = parse_float_type_spec(specs); fspecs.sign = specs.sign; if (detail::signbit(value)) { fspecs.sign = sign::minus; value = -value; } else if (fspecs.sign == sign::minus) { fspecs.sign = sign::none; } if (!detail::isfinite(value)) return write_nonfinite(out, detail::isnan(value), specs, fspecs); if (specs.align == align::numeric && fspecs.sign) { auto it = reserve(out, 1); *it++ = detail::sign<Char>(fspecs.sign); out = base_iterator(out, it); fspecs.sign = sign::none; if (specs.width != 0) --specs.width; } memory_buffer buffer; if (fspecs.format == float_format::hex) { if (fspecs.sign) buffer.push_back(detail::sign<char>(fspecs.sign)); format_hexfloat(convert_float(value), specs.precision, fspecs, buffer); return write_bytes<align::right>(out, {buffer.data(), buffer.size()}, specs); } int precision = specs.precision >= 0 || specs.type == presentation_type::none ? specs.precision : 6; if (fspecs.format == float_format::exp) { if (precision == max_value<int>()) throw_format_error("number is too big"); else ++precision; } else if (fspecs.format != float_format::fixed && precision == 0) { precision = 1; } if (const_check(std::is_same<T, float>())) fspecs.binary32 = true; int exp = format_float(convert_float(value), precision, fspecs, buffer); fspecs.precision = precision; auto f = big_decimal_fp{buffer.data(), static_cast<int>(buffer.size()), exp}; return write_float(out, f, specs, fspecs, loc); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_floating_point<T>::value), int> = 0> constexpr auto write(OutputIt out, T value, format_specs<Char> specs, locale_ref loc = {}) -> OutputIt { if (const_check(!is_supported_floating_point(value))) return out; return specs.localized && write_loc(out, value, specs, loc) ? out : write_float(out, value, specs, loc); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_fast_float<T>::value), int> = 0> constexpr auto write(OutputIt out, T value) -> OutputIt { if (is_constant_evaluated()) return write(out, value, format_specs<Char>()); if (const_check(!is_supported_floating_point(value))) return out; auto fspecs = float_specs(); if (detail::signbit(value)) { fspecs.sign = sign::minus; value = -value; } constexpr auto specs = format_specs<Char>(); using floaty = conditional_t<std::is_same<T, long double>::value, double, T>; using floaty_uint = typename dragonbox::float_info<floaty>::carrier_uint; floaty_uint mask = exponent_mask<floaty>(); if ((bit_cast<floaty_uint>(value) & mask) == mask) return write_nonfinite(out, std::isnan(value), specs, fspecs); auto dec = dragonbox::to_decimal(static_cast<floaty>(value)); return write_float(out, dec, specs, fspecs, {}); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_floating_point<T>::value && !is_fast_float<T>::value), int> = 0 > inline auto write(OutputIt out, T value) -> OutputIt { return write(out, value, format_specs<Char>()); } template <typename Char, typename OutputIt> auto write(OutputIt out, monostate, format_specs<Char> = {}, locale_ref = {}) -> OutputIt { ((false) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h", 3680, (""))); return out; } template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, basic_string_view<Char> value) -> OutputIt { auto it = reserve(out, value.size()); it = copy_str_noinline<Char>(value.begin(), value.end(), it); return base_iterator(out, it); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(is_string<T>::value), int> = 0> constexpr auto write(OutputIt out, const T& value) -> OutputIt { return write<Char>(out, to_string_view(value)); } template < typename Char, typename OutputIt, typename T, bool check = std::is_enum<T>::value && !std::is_same<T, Char>::value && mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value != type::custom_type, fmt::enable_if_t<(check), int> = 0> constexpr auto write(OutputIt out, T value) -> OutputIt { return write<Char>(out, static_cast<underlying_t<T>>(value)); } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(std::is_same<T, bool>::value), int> = 0> constexpr auto write(OutputIt out, T value, const format_specs<Char>& specs = {}, locale_ref = {}) -> OutputIt { return specs.type != presentation_type::none && specs.type != presentation_type::string ? write(out, value ? 1 : 0, specs, {}) : write_bytes(out, value ? "true" : "false", specs); } template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, Char value) -> OutputIt { auto it = reserve(out, 1); *it++ = value; return base_iterator(out, it); } template <typename Char, typename OutputIt> constexpr auto write(OutputIt out, const Char* value) -> OutputIt { if (value) return write(out, basic_string_view<Char>(value)); throw_format_error("string pointer is null"); return out; } template <typename Char, typename OutputIt, typename T, fmt::enable_if_t<(std::is_same<T, void>::value), int> = 0> auto write(OutputIt out, const T* value, const format_specs<Char>& specs = {}, locale_ref = {}) -> OutputIt { return write_ptr<Char>(out, bit_cast<uintptr_t>(value), &specs); } template <typename Char, typename OutputIt, typename T, typename Context = basic_format_context<OutputIt, Char>> constexpr auto write(OutputIt out, const T& value) -> enable_if_t< std::is_class<T>::value && !is_string<T>::value && !is_floating_point<T>::value && !std::is_same<T, Char>::value && !std::is_same<T, remove_cvref_t<decltype(arg_mapper<Context>().map( value))>>::value, OutputIt> { return write<Char>(out, arg_mapper<Context>().map(value)); } template <typename Char, typename OutputIt, typename T, typename Context = basic_format_context<OutputIt, Char>> constexpr auto write(OutputIt out, const T& value) -> enable_if_t<mapped_type_constant<T, Context>::value == type::custom_type, OutputIt> { auto ctx = Context(out, {}, {}); return typename Context::template formatter_type<T>().format(value, ctx); } template <typename Char> struct default_arg_formatter { using iterator = buffer_appender<Char>; using context = buffer_context<Char>; iterator out; basic_format_args<context> args; locale_ref loc; template <typename T> auto operator()(T value) -> iterator { return write<Char>(out, value); } auto operator()(typename basic_format_arg<context>::handle h) -> iterator { basic_format_parse_context<Char> parse_ctx({}); context format_ctx(out, args, loc); h.format(parse_ctx, format_ctx); return format_ctx.out(); } }; template <typename Char> struct arg_formatter { using iterator = buffer_appender<Char>; using context = buffer_context<Char>; iterator out; const format_specs<Char>& specs; locale_ref locale; template <typename T> constexpr inline __attribute__((always_inline)) auto operator()(T value) -> iterator { return detail::write(out, value, specs, locale); } auto operator()(typename basic_format_arg<context>::handle) -> iterator { return out; } }; template <typename Char> struct custom_formatter { basic_format_parse_context<Char>& parse_ctx; buffer_context<Char>& ctx; void operator()( typename basic_format_arg<buffer_context<Char>>::handle h) const { h.format(parse_ctx, ctx); } template <typename T> void operator()(T) const {} }; template <typename ErrorHandler> class width_checker { public: explicit constexpr width_checker(ErrorHandler& eh) : handler_(eh) {} template <typename T, fmt::enable_if_t<(is_integer<T>::value), int> = 0> constexpr auto operator()(T value) -> unsigned long long { if (is_negative(value)) handler_.on_error("negative width"); return static_cast<unsigned long long>(value); } template <typename T, fmt::enable_if_t<(!is_integer<T>::value), int> = 0> constexpr auto operator()(T) -> unsigned long long { handler_.on_error("width is not integer"); return 0; } private: ErrorHandler& handler_; }; template <typename ErrorHandler> class precision_checker { public: explicit constexpr precision_checker(ErrorHandler& eh) : handler_(eh) {} template <typename T, fmt::enable_if_t<(is_integer<T>::value), int> = 0> constexpr auto operator()(T value) -> unsigned long long { if (is_negative(value)) handler_.on_error("negative precision"); return static_cast<unsigned long long>(value); } template <typename T, fmt::enable_if_t<(!is_integer<T>::value), int> = 0> constexpr auto operator()(T) -> unsigned long long { handler_.on_error("precision is not integer"); return 0; } private: ErrorHandler& handler_; }; template <template <typename> class Handler, typename FormatArg, typename ErrorHandler> constexpr auto get_dynamic_spec(FormatArg arg, ErrorHandler eh) -> int { unsigned long long value = visit_format_arg(Handler<ErrorHandler>(eh), arg); if (value > to_unsigned(max_value<int>())) eh.on_error("number is too big"); return static_cast<int>(value); } template <typename Context, typename ID> constexpr auto get_arg(Context& ctx, ID id) -> decltype(ctx.arg(id)) { auto arg = ctx.arg(id); if (!arg) ctx.on_error("argument not found"); return arg; } template <template <typename> class Handler, typename Context> constexpr void handle_dynamic_spec(int& value, arg_ref<typename Context::char_type> ref, Context& ctx) { switch (ref.kind) { case arg_id_kind::none: break; case arg_id_kind::index: value = detail::get_dynamic_spec<Handler>(get_arg(ctx, ref.val.index), ctx.error_handler()); break; case arg_id_kind::name: value = detail::get_dynamic_spec<Handler>(get_arg(ctx, ref.val.name), ctx.error_handler()); break; } } template <typename T, typename Char, size_t N, fmt::detail_exported::fixed_string<Char, N> Str> struct statically_named_arg : view { static constexpr auto name = Str.data; const T& value; statically_named_arg(const T& v) : value(v) {} }; template <typename T, typename Char, size_t N, fmt::detail_exported::fixed_string<Char, N> Str> struct is_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {}; template <typename T, typename Char, size_t N, fmt::detail_exported::fixed_string<Char, N> Str> struct is_statically_named_arg<statically_named_arg<T, Char, N, Str>> : std::true_type {}; template <typename Char, size_t N, fmt::detail_exported::fixed_string<Char, N> Str> struct udl_arg { template <typename T> auto operator=(T&& value) const { return statically_named_arg<T, Char, N, Str>(std::forward<T>(value)); } }; # 3926 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename Locale, typename Char> auto vformat(const Locale& loc, basic_string_view<Char> fmt, basic_format_args<buffer_context<type_identity_t<Char>>> args) -> std::basic_string<Char> { auto buf = basic_memory_buffer<Char>(); detail::vformat_to(buf, fmt, args, detail::locale_ref(loc)); return {buf.data(), buf.size()}; } using format_func = void (*)(detail::buffer<char>&, int, const char*); void format_error_code(buffer<char>& out, int error_code, string_view message) noexcept; void report_error(format_func func, int error_code, const char* message) noexcept; } auto vsystem_error(int error_code, string_view format_str, format_args args) -> std::system_error; # 3964 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename... T> auto system_error(int error_code, format_string<T...> fmt, T&&... args) -> std::system_error { return vsystem_error(error_code, fmt, fmt::make_format_args(args...)); } # 3986 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 void format_system_error(detail::buffer<char>& out, int error_code, const char* message) noexcept; void report_system_error(int error_code, const char* message) noexcept; class format_int { private: enum { buffer_size = std::numeric_limits<unsigned long long>::digits10 + 3 }; mutable char buffer_[buffer_size]; char* str_; template <typename UInt> auto format_unsigned(UInt value) -> char* { auto n = static_cast<detail::uint32_or_64_or_128_t<UInt>>(value); return detail::format_decimal(buffer_, n, buffer_size - 1).begin; } template <typename Int> auto format_signed(Int value) -> char* { auto abs_value = static_cast<detail::uint32_or_64_or_128_t<Int>>(value); bool negative = value < 0; if (negative) abs_value = 0 - abs_value; auto begin = format_unsigned(abs_value); if (negative) *--begin = '-'; return begin; } public: explicit format_int(int value) : str_(format_signed(value)) {} explicit format_int(long value) : str_(format_signed(value)) {} explicit format_int(long long value) : str_(format_signed(value)) {} explicit format_int(unsigned value) : str_(format_unsigned(value)) {} explicit format_int(unsigned long value) : str_(format_unsigned(value)) {} explicit format_int(unsigned long long value) : str_(format_unsigned(value)) {} auto size() const -> size_t { return detail::to_unsigned(buffer_ - str_ + buffer_size - 1); } auto data() const -> const char* { return str_; } auto c_str() const -> const char* { buffer_[buffer_size - 1] = '\0'; return str_; } auto str() const -> std::string { return std::string(str_, size()); } }; template <typename T, typename Char> struct formatter<T, Char, enable_if_t<detail::has_format_as<T>::value>> : private formatter<detail::format_as_t<T>, Char> { using base = formatter<detail::format_as_t<T>, Char>; using base::parse; template <typename FormatContext> auto format(const T& value, FormatContext& ctx) const -> decltype(ctx.out()) { return base::format(format_as(value), ctx); } }; template <typename Char> struct formatter<signed char, Char> : formatter<int, Char> {}; template <typename Char> struct formatter<unsigned char, Char> : formatter<unsigned, Char> {}; template <typename Char> struct formatter<short, Char> : formatter<int, Char> {}; template <typename Char> struct formatter<unsigned short, Char> : formatter<unsigned, Char> {}; template <typename Char> struct formatter<long, Char> : formatter<detail::long_type, Char> {}; template <typename Char> struct formatter<unsigned long, Char> : formatter<detail::ulong_type, Char> {}; template <typename Char> struct formatter<Char*, Char> : formatter<const Char*, Char> {}; template <typename Char> struct formatter<std::basic_string<Char>, Char> : formatter<basic_string_view<Char>, Char> {}; template <typename Char> struct formatter<std::nullptr_t, Char> : formatter<const void*, Char> {}; template <typename Char> struct formatter<detail::std_string_view<Char>, Char> : formatter<basic_string_view<Char>, Char> {}; template <typename Char> struct formatter<void*, Char> : formatter<const void*, Char> {}; template <typename Char, size_t N> struct formatter<Char[N], Char> : formatter<basic_string_view<Char>, Char> {}; # 4093 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename T> auto ptr(T p) -> const void* { static_assert(std::is_pointer<T>::value, ""); return detail::bit_cast<const void*>(p); } template <typename T, typename Deleter> auto ptr(const std::unique_ptr<T, Deleter>& p) -> const void* { return p.get(); } template <typename T> auto ptr(const std::shared_ptr<T>& p) -> const void* { return p.get(); } # 4115 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename Enum> constexpr auto underlying(Enum e) noexcept -> underlying_t<Enum> { return static_cast<underlying_t<Enum>>(e); } namespace enums { template <typename Enum, fmt::enable_if_t<(std::is_enum<Enum>::value), int> = 0> constexpr auto format_as(Enum e) noexcept -> underlying_t<Enum> { return static_cast<underlying_t<Enum>>(e); } } class bytes { private: string_view data_; friend struct formatter<bytes>; public: explicit bytes(string_view data) : data_(data) {} }; template <> struct formatter<bytes> { private: detail::dynamic_format_specs<> specs_; public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) -> const char* { return parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, detail::type::string_type); } template <typename FormatContext> auto format(bytes b, FormatContext& ctx) -> decltype(ctx.out()) { detail::handle_dynamic_spec<detail::width_checker>(specs_.width, specs_.width_ref, ctx); detail::handle_dynamic_spec<detail::precision_checker>( specs_.precision, specs_.precision_ref, ctx); return detail::write_bytes(ctx.out(), b.data_, specs_); } }; template <typename T> struct group_digits_view { T value; }; # 4173 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename T> auto group_digits(T value) -> group_digits_view<T> { return {value}; } template <typename T> struct formatter<group_digits_view<T>> : formatter<T> { private: detail::dynamic_format_specs<> specs_; public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) -> const char* { return parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, detail::type::int_type); } template <typename FormatContext> auto format(group_digits_view<T> t, FormatContext& ctx) -> decltype(ctx.out()) { detail::handle_dynamic_spec<detail::width_checker>(specs_.width, specs_.width_ref, ctx); detail::handle_dynamic_spec<detail::precision_checker>( specs_.precision, specs_.precision_ref, ctx); return detail::write_int( ctx.out(), static_cast<detail::uint64_or_128_t<T>>(t.value), 0, specs_, detail::digit_grouping<char>("\3", ",")); } }; template <typename It, typename Sentinel, typename Char = char> struct join_view : detail::view { It begin; Sentinel end; basic_string_view<Char> sep; join_view(It b, Sentinel e, basic_string_view<Char> s) : begin(b), end(e), sep(s) {} }; template <typename It, typename Sentinel, typename Char> struct formatter<join_view<It, Sentinel, Char>, Char> { private: using value_type = std::iter_value_t<It>; formatter<remove_cvref_t<value_type>, Char> value_formatter_; public: template <typename ParseContext> constexpr auto parse(ParseContext& ctx) -> const Char* { return value_formatter_.parse(ctx); } template <typename FormatContext> auto format(const join_view<It, Sentinel, Char>& value, FormatContext& ctx) const -> decltype(ctx.out()) { auto it = value.begin; auto out = ctx.out(); if (it != value.end) { out = value_formatter_.format(*it, ctx); ++it; while (it != value.end) { out = detail::copy_str<Char>(value.sep.begin(), value.sep.end(), out); ctx.advance_to(out); out = value_formatter_.format(*it, ctx); ++it; } } return out; } }; template <typename It, typename Sentinel> auto join(It begin, Sentinel end, string_view sep) -> join_view<It, Sentinel> { return {begin, end, sep}; } # 4273 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename Range> auto join(Range&& range, string_view sep) -> join_view<detail::iterator_t<Range>, detail::sentinel_t<Range>> { return join(std::begin(range), std::end(range), sep); } # 4290 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <typename T, fmt::enable_if_t<(!std::is_integral<T>::value && !detail::has_format_as<T>::value), int> = 0 > inline auto to_string(const T& value) -> std::string { auto buffer = memory_buffer(); detail::write<char>(appender(buffer), value); return {buffer.data(), buffer.size()}; } template <typename T, fmt::enable_if_t<(std::is_integral<T>::value), int> = 0> [[nodiscard]] inline auto to_string(T value) -> std::string { constexpr int max_size = detail::digits10<T>() + 2; char buffer[max_size > 5 ? static_cast<unsigned>(max_size) : 5]; char* begin = buffer; return std::string(begin, detail::write<char>(begin, value)); } template <typename Char, size_t SIZE> [[nodiscard]] auto to_string(const basic_memory_buffer<Char, SIZE>& buf) -> std::basic_string<Char> { auto size = buf.size(); detail::assume(size < std::basic_string<Char>().max_size()); return std::basic_string<Char>(buf.data(), size); } template <typename T, fmt::enable_if_t<(!std::is_integral<T>::value && detail::has_format_as<T>::value), int> = 0 > inline auto to_string(const T& value) -> std::string { return to_string(format_as(value)); } namespace detail { template <typename Char> void vformat_to(buffer<Char>& buf, basic_string_view<Char> fmt, typename vformat_args<Char>::type args, locale_ref loc) { auto out = buffer_appender<Char>(buf); if (fmt.size() == 2 && equal2(fmt.data(), "{}")) { auto arg = args.get(0); if (!arg) error_handler().on_error("argument not found"); visit_format_arg(default_arg_formatter<Char>{out, args, loc}, arg); return; } struct format_handler : error_handler { basic_format_parse_context<Char> parse_context; buffer_context<Char> context; format_handler(buffer_appender<Char> p_out, basic_string_view<Char> str, basic_format_args<buffer_context<Char>> p_args, locale_ref p_loc) : parse_context(str), context(p_out, p_args, p_loc) {} void on_text(const Char* begin, const Char* end) { auto text = basic_string_view<Char>(begin, to_unsigned(end - begin)); context.advance_to(write<Char>(context.out(), text)); } constexpr auto on_arg_id() -> int { return parse_context.next_arg_id(); } constexpr auto on_arg_id(int id) -> int { return parse_context.check_arg_id(id), id; } constexpr auto on_arg_id(basic_string_view<Char> id) -> int { int arg_id = context.arg_id(id); if (arg_id < 0) on_error("argument not found"); return arg_id; } inline __attribute__((always_inline)) void on_replacement_field(int id, const Char*) { auto arg = get_arg(context, id); context.advance_to(visit_format_arg( default_arg_formatter<Char>{context.out(), context.args(), context.locale()}, arg)); } auto on_format_specs(int id, const Char* begin, const Char* end) -> const Char* { auto arg = get_arg(context, id); if (arg.type() == type::custom_type) { parse_context.advance_to(begin); visit_format_arg(custom_formatter<Char>{parse_context, context}, arg); return parse_context.begin(); } auto specs = detail::dynamic_format_specs<Char>(); begin = parse_format_specs(begin, end, specs, parse_context, arg.type()); detail::handle_dynamic_spec<detail::width_checker>( specs.width, specs.width_ref, context); detail::handle_dynamic_spec<detail::precision_checker>( specs.precision, specs.precision_ref, context); if (begin == end || *begin != '}') on_error("missing '}' in format string"); auto f = arg_formatter<Char>{context.out(), specs, context.locale()}; context.advance_to(visit_format_arg(f, arg)); return begin; } }; detail::parse_format_string<false>(fmt, format_handler(out, fmt, args, loc)); } extern template void vformat_to(buffer<char>&, string_view, typename vformat_args<>::type, locale_ref); extern template auto thousands_sep_impl<char>(locale_ref) -> thousands_sep_result<char>; extern template auto thousands_sep_impl<wchar_t>(locale_ref) -> thousands_sep_result<wchar_t>; extern template auto decimal_point_impl(locale_ref) -> char; extern template auto decimal_point_impl(locale_ref) -> wchar_t; } inline namespace literals { # 4424 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/format.h" 3 4 template <detail_exported::fixed_string Str> constexpr auto operator""_a() { using char_t = remove_cvref_t<decltype(Str.data[0])>; return detail::udl_arg<char_t, sizeof(Str.data) / sizeof(char_t), Str>(); } } template <typename Locale, fmt::enable_if_t<(detail::is_locale<Locale>::value), int> = 0> inline auto vformat(const Locale& loc, string_view fmt, format_args args) -> std::string { return detail::vformat(loc, fmt, args); } template <typename Locale, typename... T, fmt::enable_if_t<(detail::is_locale<Locale>::value), int> = 0> inline auto format(const Locale& loc, format_string<T...> fmt, T&&... args) -> std::string { return fmt::vformat(loc, string_view(fmt), fmt::make_format_args(args...)); } template <typename OutputIt, typename Locale, fmt::enable_if_t<(detail::is_output_iterator<OutputIt, char>::value&& detail::is_locale<Locale>::value), int> = 0 > auto vformat_to(OutputIt out, const Locale& loc, string_view fmt, format_args args) -> OutputIt { using detail::get_buffer; auto&& buf = get_buffer<char>(out); detail::vformat_to(buf, fmt, args, detail::locale_ref(loc)); return detail::get_iterator(buf, out); } template <typename OutputIt, typename Locale, typename... T, fmt::enable_if_t<(detail::is_output_iterator<OutputIt, char>::value&& detail::is_locale<Locale>::value), int> = 0 > inline __attribute__((always_inline)) auto format_to(OutputIt out, const Locale& loc, format_string<T...> fmt, T&&... args) -> OutputIt { return vformat_to(out, loc, fmt, fmt::make_format_args(args...)); } template <typename Locale, typename... T, fmt::enable_if_t<(detail::is_locale<Locale>::value), int> = 0> [[nodiscard]] inline __attribute__((always_inline)) auto formatted_size(const Locale& loc, format_string<T...> fmt, T&&... args) -> size_t { auto buf = detail::counting_buffer<>(); detail::vformat_to<char>(buf, fmt, fmt::make_format_args(args...), detail::locale_ref(loc)); return buf.count(); } template <typename T, typename Char> template <typename FormatContext> constexpr inline __attribute__((always_inline)) auto formatter<T, Char, enable_if_t<detail::type_constant<T, Char>::value != detail::type::custom_type>>::format(const T& val, FormatContext& ctx) const -> decltype(ctx.out()) { if (specs_.width_ref.kind != detail::arg_id_kind::none || specs_.precision_ref.kind != detail::arg_id_kind::none) { auto specs = specs_; detail::handle_dynamic_spec<detail::width_checker>(specs.width, specs.width_ref, ctx); detail::handle_dynamic_spec<detail::precision_checker>( specs.precision, specs.precision_ref, ctx); return detail::write<Char>(ctx.out(), val, specs, ctx.locale()); } return detail::write<Char>(ctx.out(), val, specs_, ctx.locale()); } } } # 21 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 2 3 4 namespace fmt { inline namespace v10 { namespace detail { namespace { struct file_access_tag {}; } template <typename Tag, typename BufType, FILE* BufType::*FileMemberPtr> class file_access { friend auto get_file(BufType& obj) -> FILE* { return obj.*FileMemberPtr; } }; # 46 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 3 4 inline bool write_ostream_unicode(std::ostream& os, fmt::string_view data) { # 64 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 3 4 ignore_unused(os, data); return false; } inline bool write_ostream_unicode(std::wostream&, fmt::basic_string_view<wchar_t>) { return false; } template <typename Char> void write_buffer(std::basic_ostream<Char>& os, buffer<Char>& buf) { const Char* buf_data = buf.data(); using unsigned_streamsize = std::make_unsigned<std::streamsize>::type; unsigned_streamsize size = buf.size(); unsigned_streamsize max_size = to_unsigned(max_value<std::streamsize>()); do { unsigned_streamsize n = size <= max_size ? size : max_size; os.write(buf_data, static_cast<std::streamsize>(n)); buf_data += n; size -= n; } while (size != 0); } template <typename Char, typename T> void format_value(buffer<Char>& buf, const T& value, locale_ref loc = locale_ref()) { auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf); auto&& output = std::basic_ostream<Char>(&format_buf); if (loc) output.imbue(loc.get<std::locale>()); output << value; output.exceptions(std::ios_base::failbit | std::ios_base::badbit); } template <typename T> struct streamed_view { const T& value; }; } template <typename Char> struct basic_ostream_formatter : formatter<basic_string_view<Char>, Char> { void set_debug_format() = delete; template <typename T, typename OutputIt> auto format(const T& value, basic_format_context<OutputIt, Char>& ctx) const -> OutputIt { auto buffer = basic_memory_buffer<Char>(); detail::format_value(buffer, value, ctx.locale()); return formatter<basic_string_view<Char>, Char>::format( {buffer.data(), buffer.size()}, ctx); } }; using ostream_formatter = basic_ostream_formatter<char>; template <typename T, typename Char> struct formatter<detail::streamed_view<T>, Char> : basic_ostream_formatter<Char> { template <typename OutputIt> auto format(detail::streamed_view<T> view, basic_format_context<OutputIt, Char>& ctx) const -> OutputIt { return basic_ostream_formatter<Char>::format(view.value, ctx); } }; # 142 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 3 4 template <typename T> auto streamed(const T& value) -> detail::streamed_view<T> { return {value}; } namespace detail { inline void vprint_directly(std::ostream& os, string_view format_str, format_args args) { auto buffer = memory_buffer(); detail::vformat_to(buffer, format_str, args); detail::write_buffer(os, buffer); } } template <typename Char> void vprint(std::basic_ostream<Char>& os, basic_string_view<type_identity_t<Char>> format_str, basic_format_args<buffer_context<type_identity_t<Char>>> args) { auto buffer = basic_memory_buffer<Char>(); detail::vformat_to(buffer, format_str, args); if (detail::write_ostream_unicode(os, {buffer.data(), buffer.size()})) return; detail::write_buffer(os, buffer); } # 177 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/ostream.h" 3 4 template <typename... T> void print(std::ostream& os, format_string<T...> fmt, T&&... args) { const auto& vargs = fmt::make_format_args(args...); if (detail::is_utf8()) vprint(os, fmt, vargs); else detail::vprint_directly(os, fmt, vargs); } template <typename... Args> void print(std::wostream& os, basic_format_string<wchar_t, type_identity_t<Args>...> fmt, Args&&... args) { vprint(os, fmt, fmt::make_format_args<buffer_context<wchar_t>>(args...)); } template <typename... T> void println(std::ostream& os, format_string<T...> fmt, T&&... args) { fmt::print(os, "{}\n", fmt::format(fmt, std::forward<T>(args)...)); } template <typename... Args> void println(std::wostream& os, basic_format_string<wchar_t, type_identity_t<Args>...> fmt, Args&&... args) { print(os, L"{}\n", fmt::format(fmt, std::forward<Args>(args)...)); } } } # 23 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/EigenTypes.h" 2 # 24 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/EigenTypes.h" # 13 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.h" 2 namespace LP { struct DTrackBody_ { }; DTrackBody_ ReadFromFile(std::ifstream& input); std::string AsBodyFile(const DTrackBody_& body); struct ArtController { enum class Access { Unknown = -1, None = 0, Full = 1 } access; boost::asio::ip::udp::endpoint endpoint; }; auto DetectArtControllers() -> std::vector<ArtController>; bool CheckArtControllerForAccess(const ArtController& controller); std::vector<DTrackBody_> DTrackGetBodies(const ArtController& dtrack); void DTrackUpdateBody(const ArtController& dtrack, DTrackBody_ body); struct DTrackBufferParser : public DTrackParser { DTrackBufferParser(std::string_view s); }; class DTrackDebugDataListener { public: boost::asio::awaitable<std::optional<const DTrackBufferParser>> listen(); static boost::asio::awaitable<std::shared_ptr<DTrackDebugDataListener>> start( const ArtController& controller); ~DTrackDebugDataListener(); private: class Impl; DTrackDebugDataListener(std::unique_ptr<Impl> impl); std::unique_ptr<Impl> impl; }; } # 12 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 # 1 "/usr/include/c++/13/cmath" 1 3 4 # 39 "/usr/include/c++/13/cmath" 3 4 # 40 "/usr/include/c++/13/cmath" 3 # 14 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 2 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 15 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 2 3 4 # 1 "/usr/include/c++/13/ctime" 1 3 4 # 39 "/usr/include/c++/13/ctime" 3 4 # 40 "/usr/include/c++/13/ctime" 3 # 16 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 2 3 4 # 23 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 namespace fmt { inline namespace v10 { # 69 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 namespace safe_duration_cast { template <typename To, typename From, fmt::enable_if_t<(!std::is_same<From, To>::value && std::numeric_limits<From>::is_signed == std::numeric_limits<To>::is_signed), int> = 0 > constexpr To lossless_integral_conversion(const From from, int& ec) { ec = 0; using F = std::numeric_limits<From>; using T = std::numeric_limits<To>; static_assert(F::is_integer, "From must be integral"); static_assert(T::is_integer, "To must be integral"); if (detail::const_check(F::digits <= T::digits)) { } else { if (from < (T::min)() || from > (T::max)()) { ec = 1; return {}; } } return static_cast<To>(from); } template <typename To, typename From, fmt::enable_if_t<(!std::is_same<From, To>::value && std::numeric_limits<From>::is_signed != std::numeric_limits<To>::is_signed), int> = 0 > constexpr To lossless_integral_conversion(const From from, int& ec) { ec = 0; using F = std::numeric_limits<From>; using T = std::numeric_limits<To>; static_assert(F::is_integer, "From must be integral"); static_assert(T::is_integer, "To must be integral"); if (detail::const_check(F::is_signed && !T::is_signed)) { if (fmt::detail::is_negative(from)) { ec = 1; return {}; } if (detail::const_check(F::digits > T::digits) && from > static_cast<From>(detail::max_value<To>())) { ec = 1; return {}; } } if (detail::const_check(!F::is_signed && T::is_signed && F::digits >= T::digits) && from > static_cast<From>(detail::max_value<To>())) { ec = 1; return {}; } return static_cast<To>(from); } template <typename To, typename From, fmt::enable_if_t<(std::is_same<From, To>::value), int> = 0> constexpr To lossless_integral_conversion(const From from, int& ec) { ec = 0; return from; } # 155 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 template <typename To, typename From, fmt::enable_if_t<(!std::is_same<From, To>::value), int> = 0> constexpr To safe_float_conversion(const From from, int& ec) { ec = 0; using T = std::numeric_limits<To>; static_assert(std::is_floating_point<From>::value, "From must be floating"); static_assert(std::is_floating_point<To>::value, "To must be floating"); if (std::isfinite(from)) { if (from >= T::lowest() && from <= (T::max)()) { return static_cast<To>(from); } ec = 1; return {}; } return static_cast<To>(from); } template <typename To, typename From, fmt::enable_if_t<(std::is_same<From, To>::value), int> = 0> constexpr To safe_float_conversion(const From from, int& ec) { ec = 0; static_assert(std::is_floating_point<From>::value, "From must be floating"); return from; } template <typename To, typename FromRep, typename FromPeriod, fmt::enable_if_t<(std::is_integral<FromRep>::value), int> = 0, fmt::enable_if_t<(std::is_integral<typename To::rep>::value), int> = 0> To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, int& ec) { using From = std::chrono::duration<FromRep, FromPeriod>; ec = 0; struct Factor : std::ratio_divide<typename From::period, typename To::period> {}; static_assert(Factor::num > 0, "num must be positive"); static_assert(Factor::den > 0, "den must be positive"); using IntermediateRep = typename std::common_type<typename From::rep, typename To::rep, decltype(Factor::num)>::type; IntermediateRep count = lossless_integral_conversion<IntermediateRep>(from.count(), ec); if (ec) return {}; if (detail::const_check(Factor::num != 1)) { const auto max1 = detail::max_value<IntermediateRep>() / Factor::num; if (count > max1) { ec = 1; return {}; } const auto min1 = (std::numeric_limits<IntermediateRep>::min)() / Factor::num; if (detail::const_check(!std::is_unsigned<IntermediateRep>::value) && count < min1) { ec = 1; return {}; } count *= Factor::num; } if (detail::const_check(Factor::den != 1)) count /= Factor::den; auto tocount = lossless_integral_conversion<typename To::rep>(count, ec); return ec ? To() : To(tocount); } template <typename To, typename FromRep, typename FromPeriod, fmt::enable_if_t<(std::is_floating_point<FromRep>::value), int> = 0, fmt::enable_if_t<(std::is_floating_point<typename To::rep>::value), int> = 0> To safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from, int& ec) { using From = std::chrono::duration<FromRep, FromPeriod>; ec = 0; if (std::isnan(from.count())) { return To{std::numeric_limits<typename To::rep>::quiet_NaN()}; } if (std::isinf(from.count())) { return To{from.count()}; } struct Factor : std::ratio_divide<typename From::period, typename To::period> {}; static_assert(Factor::num > 0, "num must be positive"); static_assert(Factor::den > 0, "den must be positive"); using IntermediateRep = typename std::common_type<typename From::rep, typename To::rep, decltype(Factor::num)>::type; IntermediateRep count = safe_float_conversion<IntermediateRep>(from.count(), ec); if (ec) { return {}; } if (detail::const_check(Factor::num != 1)) { constexpr auto max1 = detail::max_value<IntermediateRep>() / static_cast<IntermediateRep>(Factor::num); if (count > max1) { ec = 1; return {}; } constexpr auto min1 = std::numeric_limits<IntermediateRep>::lowest() / static_cast<IntermediateRep>(Factor::num); if (count < min1) { ec = 1; return {}; } count *= static_cast<IntermediateRep>(Factor::num); } if (detail::const_check(Factor::den != 1)) { using common_t = typename std::common_type<IntermediateRep, intmax_t>::type; count /= static_cast<common_t>(Factor::den); } using ToRep = typename To::rep; const ToRep tocount = safe_float_conversion<ToRep>(count, ec); if (ec) { return {}; } return To{tocount}; } } namespace detail { template <typename T = void> struct null {}; inline null<> localtime_r (...) { return null<>(); } inline null<> localtime_s(...) { return null<>(); } inline null<> gmtime_r(...) { return null<>(); } inline null<> gmtime_s(...) { return null<>(); } inline const std::locale& get_classic_locale() { static const auto& locale = std::locale::classic(); return locale; } template <typename CodeUnit> struct codecvt_result { static constexpr const size_t max_size = 32; CodeUnit buf[max_size]; CodeUnit* end; }; template <typename CodeUnit> constexpr const size_t codecvt_result<CodeUnit>::max_size; template <typename CodeUnit> void write_codecvt(codecvt_result<CodeUnit>& out, string_view in_buf, const std::locale& loc) { auto& f = std::use_facet<std::codecvt<CodeUnit, char, std::mbstate_t>>(loc); auto mb = std::mbstate_t(); const char* from_next = nullptr; auto result = f.in(mb, in_buf.begin(), in_buf.end(), from_next, std::begin(out.buf), std::end(out.buf), out.end); if (result != std::codecvt_base::ok) throw format_error("failed to format time"); } template <typename OutputIt> auto write_encoded_tm_str(OutputIt out, string_view in, const std::locale& loc) -> OutputIt { if (detail::is_utf8() && loc != get_classic_locale()) { # 373 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 using code_unit = char32_t; using unit_t = codecvt_result<code_unit>; unit_t unit; write_codecvt(unit, in, loc); auto u = to_utf8<code_unit, basic_memory_buffer<char, unit_t::max_size * 4>>(); if (!u.convert({unit.buf, to_unsigned(unit.end - unit.buf)})) throw format_error("failed to format time"); return copy_str<char>(u.c_str(), u.c_str() + u.size(), out); } return copy_str<char>(in.data(), in.data() + in.size(), out); } template <typename Char, typename OutputIt, fmt::enable_if_t<(!std::is_same<Char, char>::value), int> = 0> auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc) -> OutputIt { codecvt_result<Char> unit; write_codecvt(unit, sv, loc); return copy_str<Char>(unit.buf, unit.end, out); } template <typename Char, typename OutputIt, fmt::enable_if_t<(std::is_same<Char, char>::value), int> = 0> auto write_tm_str(OutputIt out, string_view sv, const std::locale& loc) -> OutputIt { return write_encoded_tm_str(out, sv, loc); } template <typename Char> inline void do_write(buffer<Char>& buf, const std::tm& time, const std::locale& loc, char format, char modifier) { auto&& format_buf = formatbuf<std::basic_streambuf<Char>>(buf); auto&& os = std::basic_ostream<Char>(&format_buf); os.imbue(loc); using iterator = std::ostreambuf_iterator<Char>; const auto& facet = std::use_facet<std::time_put<Char, iterator>>(loc); auto end = facet.put(os, os, Char(' '), &time, format, modifier); if (end.failed()) throw format_error("failed to format time"); } template <typename Char, typename OutputIt, fmt::enable_if_t<(!std::is_same<Char, char>::value), int> = 0> auto write(OutputIt out, const std::tm& time, const std::locale& loc, char format, char modifier = 0) -> OutputIt { auto&& buf = get_buffer<Char>(out); do_write<Char>(buf, time, loc, format, modifier); return get_iterator(buf, out); } template <typename Char, typename OutputIt, fmt::enable_if_t<(std::is_same<Char, char>::value), int> = 0> auto write(OutputIt out, const std::tm& time, const std::locale& loc, char format, char modifier = 0) -> OutputIt { auto&& buf = basic_memory_buffer<Char>(); do_write<char>(buf, time, loc, format, modifier); return write_encoded_tm_str(out, string_view(buf.data(), buf.size()), loc); } } inline std::tm localtime(std::time_t time) { struct dispatcher { std::time_t time_; std::tm tm_; dispatcher(std::time_t t) : time_(t) {} bool run() { using namespace fmt::detail; return handle(localtime_r(&time_, &tm_)); } bool handle(std::tm* tm) { return tm != nullptr; } bool handle(detail::null<>) { using namespace fmt::detail; return fallback(localtime_s(&tm_, &time_)); } bool fallback(int res) { return res == 0; } bool fallback(detail::null<>) { using namespace fmt::detail; std::tm* tm = std::localtime(&time_); if (tm) tm_ = *tm; return tm != nullptr; } }; dispatcher lt(time); if (!lt.run()) throw format_error("time_t value out of range"); return lt.tm_; } # 493 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 inline std::tm gmtime(std::time_t time) { struct dispatcher { std::time_t time_; std::tm tm_; dispatcher(std::time_t t) : time_(t) {} bool run() { using namespace fmt::detail; return handle(gmtime_r(&time_, &tm_)); } bool handle(std::tm* tm) { return tm != nullptr; } bool handle(detail::null<>) { using namespace fmt::detail; return fallback(gmtime_s(&tm_, &time_)); } bool fallback(int res) { return res == 0; } bool fallback(detail::null<>) { std::tm* tm = std::gmtime(&time_); if (tm) tm_ = *tm; return tm != nullptr; } }; auto gt = dispatcher(time); if (!gt.run()) throw format_error("time_t value out of range"); return gt.tm_; } inline std::tm gmtime( std::chrono::time_point<std::chrono::system_clock> time_point) { return gmtime(std::chrono::system_clock::to_time_t(time_point)); } namespace detail { inline void write_digit2_separated(char* buf, unsigned a, unsigned b, unsigned c, char sep) { unsigned long long digits = a | (b << 24) | (static_cast<unsigned long long>(c) << 48); # 551 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 digits += (((digits * 205) >> 11) & 0x000f00000f00000f) * 6; digits = ((digits & 0x00f00000f00000f0) >> 4) | ((digits & 0x000f00000f00000f) << 8); auto usep = static_cast<unsigned long long>(sep); digits |= 0x3030003030003030 | (usep << 16) | (usep << 40); constexpr const size_t len = 8; if (const_check(is_big_endian())) { char tmp[len]; std::memcpy(tmp, &digits, len); std::reverse_copy(tmp, tmp + len, buf); } else { std::memcpy(buf, &digits, len); } } template <typename Period> constexpr inline const char* get_units() { if (std::is_same<Period, std::atto>::value) return "as"; if (std::is_same<Period, std::femto>::value) return "fs"; if (std::is_same<Period, std::pico>::value) return "ps"; if (std::is_same<Period, std::nano>::value) return "ns"; if (std::is_same<Period, std::micro>::value) return "µs"; if (std::is_same<Period, std::milli>::value) return "ms"; if (std::is_same<Period, std::centi>::value) return "cs"; if (std::is_same<Period, std::deci>::value) return "ds"; if (std::is_same<Period, std::ratio<1>>::value) return "s"; if (std::is_same<Period, std::deca>::value) return "das"; if (std::is_same<Period, std::hecto>::value) return "hs"; if (std::is_same<Period, std::kilo>::value) return "ks"; if (std::is_same<Period, std::mega>::value) return "Ms"; if (std::is_same<Period, std::giga>::value) return "Gs"; if (std::is_same<Period, std::tera>::value) return "Ts"; if (std::is_same<Period, std::peta>::value) return "Ps"; if (std::is_same<Period, std::exa>::value) return "Es"; if (std::is_same<Period, std::ratio<60>>::value) return "m"; if (std::is_same<Period, std::ratio<3600>>::value) return "h"; return nullptr; } enum class numeric_system { standard, alternative }; enum class pad_type { unspecified, none, zero, space, }; template <typename OutputIt> auto write_padding(OutputIt out, pad_type pad, int width) -> OutputIt { if (pad == pad_type::none) return out; return std::fill_n(out, width, pad == pad_type::space ? ' ' : '0'); } template <typename OutputIt> auto write_padding(OutputIt out, pad_type pad) -> OutputIt { if (pad != pad_type::none) *out++ = pad == pad_type::space ? ' ' : '0'; return out; } template <typename Char, typename Handler> constexpr const Char* parse_chrono_format(const Char* begin, const Char* end, Handler&& handler) { if (begin == end || *begin == '}') return begin; if (*begin != '%') throw format_error("invalid format"); auto ptr = begin; pad_type pad = pad_type::unspecified; while (ptr != end) { auto c = *ptr; if (c == '}') break; if (c != '%') { ++ptr; continue; } if (begin != ptr) handler.on_text(begin, ptr); ++ptr; if (ptr == end) throw format_error("invalid format"); c = *ptr; switch (c) { case '_': pad = pad_type::space; ++ptr; break; case '-': pad = pad_type::none; ++ptr; break; case '0': pad = pad_type::zero; ++ptr; break; } if (ptr == end) throw format_error("invalid format"); c = *ptr++; switch (c) { case '%': handler.on_text(ptr - 1, ptr); break; case 'n': { const Char newline[] = {'\n'}; handler.on_text(newline, newline + 1); break; } case 't': { const Char tab[] = {'\t'}; handler.on_text(tab, tab + 1); break; } case 'Y': handler.on_year(numeric_system::standard); break; case 'y': handler.on_short_year(numeric_system::standard); break; case 'C': handler.on_century(numeric_system::standard); break; case 'G': handler.on_iso_week_based_year(); break; case 'g': handler.on_iso_week_based_short_year(); break; case 'a': handler.on_abbr_weekday(); break; case 'A': handler.on_full_weekday(); break; case 'w': handler.on_dec0_weekday(numeric_system::standard); break; case 'u': handler.on_dec1_weekday(numeric_system::standard); break; case 'b': case 'h': handler.on_abbr_month(); break; case 'B': handler.on_full_month(); break; case 'm': handler.on_dec_month(numeric_system::standard); break; case 'U': handler.on_dec0_week_of_year(numeric_system::standard); break; case 'W': handler.on_dec1_week_of_year(numeric_system::standard); break; case 'V': handler.on_iso_week_of_year(numeric_system::standard); break; case 'j': handler.on_day_of_year(); break; case 'd': handler.on_day_of_month(numeric_system::standard); break; case 'e': handler.on_day_of_month_space(numeric_system::standard); break; case 'H': handler.on_24_hour(numeric_system::standard, pad); break; case 'I': handler.on_12_hour(numeric_system::standard, pad); break; case 'M': handler.on_minute(numeric_system::standard, pad); break; case 'S': handler.on_second(numeric_system::standard, pad); break; case 'c': handler.on_datetime(numeric_system::standard); break; case 'x': handler.on_loc_date(numeric_system::standard); break; case 'X': handler.on_loc_time(numeric_system::standard); break; case 'D': handler.on_us_date(); break; case 'F': handler.on_iso_date(); break; case 'r': handler.on_12_hour_time(); break; case 'R': handler.on_24_hour_time(); break; case 'T': handler.on_iso_time(); break; case 'p': handler.on_am_pm(); break; case 'Q': handler.on_duration_value(); break; case 'q': handler.on_duration_unit(); break; case 'z': handler.on_utc_offset(numeric_system::standard); break; case 'Z': handler.on_tz_name(); break; case 'E': { if (ptr == end) throw format_error("invalid format"); c = *ptr++; switch (c) { case 'Y': handler.on_year(numeric_system::alternative); break; case 'y': handler.on_offset_year(); break; case 'C': handler.on_century(numeric_system::alternative); break; case 'c': handler.on_datetime(numeric_system::alternative); break; case 'x': handler.on_loc_date(numeric_system::alternative); break; case 'X': handler.on_loc_time(numeric_system::alternative); break; case 'z': handler.on_utc_offset(numeric_system::alternative); break; default: throw format_error("invalid format"); } break; } case 'O': if (ptr == end) throw format_error("invalid format"); c = *ptr++; switch (c) { case 'y': handler.on_short_year(numeric_system::alternative); break; case 'm': handler.on_dec_month(numeric_system::alternative); break; case 'U': handler.on_dec0_week_of_year(numeric_system::alternative); break; case 'W': handler.on_dec1_week_of_year(numeric_system::alternative); break; case 'V': handler.on_iso_week_of_year(numeric_system::alternative); break; case 'd': handler.on_day_of_month(numeric_system::alternative); break; case 'e': handler.on_day_of_month_space(numeric_system::alternative); break; case 'w': handler.on_dec0_weekday(numeric_system::alternative); break; case 'u': handler.on_dec1_weekday(numeric_system::alternative); break; case 'H': handler.on_24_hour(numeric_system::alternative, pad); break; case 'I': handler.on_12_hour(numeric_system::alternative, pad); break; case 'M': handler.on_minute(numeric_system::alternative, pad); break; case 'S': handler.on_second(numeric_system::alternative, pad); break; case 'z': handler.on_utc_offset(numeric_system::alternative); break; default: throw format_error("invalid format"); } break; default: throw format_error("invalid format"); } begin = ptr; } if (begin != ptr) handler.on_text(begin, ptr); return ptr; } template <typename Derived> struct null_chrono_spec_handler { constexpr void unsupported() { static_cast<Derived*>(this)->unsupported(); } constexpr void on_year(numeric_system) { unsupported(); } constexpr void on_short_year(numeric_system) { unsupported(); } constexpr void on_offset_year() { unsupported(); } constexpr void on_century(numeric_system) { unsupported(); } constexpr void on_iso_week_based_year() { unsupported(); } constexpr void on_iso_week_based_short_year() { unsupported(); } constexpr void on_abbr_weekday() { unsupported(); } constexpr void on_full_weekday() { unsupported(); } constexpr void on_dec0_weekday(numeric_system) { unsupported(); } constexpr void on_dec1_weekday(numeric_system) { unsupported(); } constexpr void on_abbr_month() { unsupported(); } constexpr void on_full_month() { unsupported(); } constexpr void on_dec_month(numeric_system) { unsupported(); } constexpr void on_dec0_week_of_year(numeric_system) { unsupported(); } constexpr void on_dec1_week_of_year(numeric_system) { unsupported(); } constexpr void on_iso_week_of_year(numeric_system) { unsupported(); } constexpr void on_day_of_year() { unsupported(); } constexpr void on_day_of_month(numeric_system) { unsupported(); } constexpr void on_day_of_month_space(numeric_system) { unsupported(); } constexpr void on_24_hour(numeric_system) { unsupported(); } constexpr void on_12_hour(numeric_system) { unsupported(); } constexpr void on_minute(numeric_system) { unsupported(); } constexpr void on_second(numeric_system) { unsupported(); } constexpr void on_datetime(numeric_system) { unsupported(); } constexpr void on_loc_date(numeric_system) { unsupported(); } constexpr void on_loc_time(numeric_system) { unsupported(); } constexpr void on_us_date() { unsupported(); } constexpr void on_iso_date() { unsupported(); } constexpr void on_12_hour_time() { unsupported(); } constexpr void on_24_hour_time() { unsupported(); } constexpr void on_iso_time() { unsupported(); } constexpr void on_am_pm() { unsupported(); } constexpr void on_duration_value() { unsupported(); } constexpr void on_duration_unit() { unsupported(); } constexpr void on_utc_offset(numeric_system) { unsupported(); } constexpr void on_tz_name() { unsupported(); } }; struct tm_format_checker : null_chrono_spec_handler<tm_format_checker> { [[noreturn]] void unsupported() { throw format_error("no format"); } template <typename Char> constexpr void on_text(const Char*, const Char*) {} constexpr void on_year(numeric_system) {} constexpr void on_short_year(numeric_system) {} constexpr void on_offset_year() {} constexpr void on_century(numeric_system) {} constexpr void on_iso_week_based_year() {} constexpr void on_iso_week_based_short_year() {} constexpr void on_abbr_weekday() {} constexpr void on_full_weekday() {} constexpr void on_dec0_weekday(numeric_system) {} constexpr void on_dec1_weekday(numeric_system) {} constexpr void on_abbr_month() {} constexpr void on_full_month() {} constexpr void on_dec_month(numeric_system) {} constexpr void on_dec0_week_of_year(numeric_system) {} constexpr void on_dec1_week_of_year(numeric_system) {} constexpr void on_iso_week_of_year(numeric_system) {} constexpr void on_day_of_year() {} constexpr void on_day_of_month(numeric_system) {} constexpr void on_day_of_month_space(numeric_system) {} constexpr void on_24_hour(numeric_system, pad_type) {} constexpr void on_12_hour(numeric_system, pad_type) {} constexpr void on_minute(numeric_system, pad_type) {} constexpr void on_second(numeric_system, pad_type) {} constexpr void on_datetime(numeric_system) {} constexpr void on_loc_date(numeric_system) {} constexpr void on_loc_time(numeric_system) {} constexpr void on_us_date() {} constexpr void on_iso_date() {} constexpr void on_12_hour_time() {} constexpr void on_24_hour_time() {} constexpr void on_iso_time() {} constexpr void on_am_pm() {} constexpr void on_utc_offset(numeric_system) {} constexpr void on_tz_name() {} }; inline const char* tm_wday_full_name(int wday) { static constexpr const char* full_name_list[] = { "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; return wday >= 0 && wday <= 6 ? full_name_list[wday] : "?"; } inline const char* tm_wday_short_name(int wday) { static constexpr const char* short_name_list[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; return wday >= 0 && wday <= 6 ? short_name_list[wday] : "???"; } inline const char* tm_mon_full_name(int mon) { static constexpr const char* full_name_list[] = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; return mon >= 0 && mon <= 11 ? full_name_list[mon] : "?"; } inline const char* tm_mon_short_name(int mon) { static constexpr const char* short_name_list[] = { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", }; return mon >= 0 && mon <= 11 ? short_name_list[mon] : "???"; } template <typename T, typename = void> struct has_member_data_tm_gmtoff : std::false_type {}; template <typename T> struct has_member_data_tm_gmtoff<T, void_t<decltype(T::tm_gmtoff)>> : std::true_type {}; template <typename T, typename = void> struct has_member_data_tm_zone : std::false_type {}; template <typename T> struct has_member_data_tm_zone<T, void_t<decltype(T::tm_zone)>> : std::true_type {}; # 1006 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 template <typename T, typename Int, fmt::enable_if_t<(std::is_integral<T>::value), int> = 0> inline Int to_nonnegative_int(T value, Int upper) { ((std::is_unsigned<Int>::value || (value >= 0 && to_unsigned(value) <= to_unsigned(upper))) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1008, ("invalid value"))) ; (void)upper; return static_cast<Int>(value); } template <typename T, typename Int, fmt::enable_if_t<(!std::is_integral<T>::value), int> = 0> inline Int to_nonnegative_int(T value, Int upper) { if (value < 0 || value > static_cast<T>(upper)) throw format_error("invalid value"); return static_cast<Int>(value); } constexpr long long pow10(std::uint32_t n) { return n == 0 ? 1 : 10 * pow10(n - 1); } template <long long Num, long long Den, int N = 0, bool Enabled = (N < 19) && (Num <= max_value<long long>() / 10)> struct count_fractional_digits { static constexpr int value = Num % Den == 0 ? N : count_fractional_digits<Num * 10, Den, N + 1>::value; }; template <long long Num, long long Den, int N> struct count_fractional_digits<Num, Den, N, false> { static constexpr int value = (Num % Den == 0) ? N : 6; }; template <typename Char, typename OutputIt, typename Duration> void write_fractional_seconds(OutputIt& out, Duration d, int precision = -1) { constexpr auto num_fractional_digits = count_fractional_digits<Duration::period::num, Duration::period::den>::value; using subsecond_precision = std::chrono::duration< typename std::common_type<typename Duration::rep, std::chrono::seconds::rep>::type, std::ratio<1, detail::pow10(num_fractional_digits)>>; const auto fractional = d - std::chrono::duration_cast<std::chrono::seconds>(d); const auto subseconds = std::chrono::treat_as_floating_point< typename subsecond_precision::rep>::value ? fractional.count() : std::chrono::duration_cast<subsecond_precision>(fractional).count(); auto n = static_cast<uint32_or_64_or_128_t<long long>>(subseconds); const int num_digits = detail::count_digits(n); int leading_zeroes = (std::max)(0, num_fractional_digits - num_digits); if (precision < 0) { ((!std::is_floating_point<typename Duration::rep>::value) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1067, (""))); if (std::ratio_less<typename subsecond_precision::period, std::chrono::seconds::period>::value) { *out++ = '.'; out = std::fill_n(out, leading_zeroes, '0'); out = format_decimal<Char>(out, n, num_digits).end; } } else { *out++ = '.'; leading_zeroes = (std::min)(leading_zeroes, precision); out = std::fill_n(out, leading_zeroes, '0'); int remaining = precision - leading_zeroes; if (remaining != 0 && remaining < num_digits) { n /= to_unsigned(detail::pow10(to_unsigned(num_digits - remaining))); out = format_decimal<Char>(out, n, remaining).end; return; } out = format_decimal<Char>(out, n, num_digits).end; remaining -= num_digits; out = std::fill_n(out, remaining, '0'); } } template <typename Duration> void write_floating_seconds(memory_buffer& buf, Duration duration, int num_fractional_digits = -1) { using rep = typename Duration::rep; ((std::is_floating_point<rep>::value) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1097, (""))); auto val = duration.count(); if (num_fractional_digits < 0) { using namespace std; num_fractional_digits = count_fractional_digits<Duration::period::num, Duration::period::den>::value; if (num_fractional_digits < 6 && static_cast<rep>(round(val)) != val) num_fractional_digits = 6; } format_to(std::back_inserter(buf), [] { struct __attribute__((visibility("hidden"))) FMT_COMPILE_STRING : fmt::detail::compile_string { using char_type [[maybe_unused]] = fmt::remove_cvref_t<decltype("{:.{}f}"[0])>; [[maybe_unused]] constexpr operator fmt::basic_string_view<char_type>() const { return fmt::detail_exported::compile_string_to_view<char_type>("{:.{}f}"); } }; return FMT_COMPILE_STRING(); }(), std::fmod(val * static_cast<rep>(Duration::period::num) / static_cast<rep>(Duration::period::den), static_cast<rep>(60)), num_fractional_digits); } template <typename OutputIt, typename Char, typename Duration = std::chrono::seconds> class tm_writer { private: static constexpr int days_per_week = 7; const std::locale& loc_; const bool is_classic_; OutputIt out_; const Duration* subsecs_; const std::tm& tm_; auto tm_sec() const noexcept -> int { ((tm_.tm_sec >= 0 && tm_.tm_sec <= 61) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1132, (""))); return tm_.tm_sec; } auto tm_min() const noexcept -> int { ((tm_.tm_min >= 0 && tm_.tm_min <= 59) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1136, (""))); return tm_.tm_min; } auto tm_hour() const noexcept -> int { ((tm_.tm_hour >= 0 && tm_.tm_hour <= 23) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1140, (""))); return tm_.tm_hour; } auto tm_mday() const noexcept -> int { ((tm_.tm_mday >= 1 && tm_.tm_mday <= 31) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1144, (""))); return tm_.tm_mday; } auto tm_mon() const noexcept -> int { ((tm_.tm_mon >= 0 && tm_.tm_mon <= 11) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1148, (""))); return tm_.tm_mon; } auto tm_year() const noexcept -> long long { return 1900ll + tm_.tm_year; } auto tm_wday() const noexcept -> int { ((tm_.tm_wday >= 0 && tm_.tm_wday <= 6) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1153, (""))); return tm_.tm_wday; } auto tm_yday() const noexcept -> int { ((tm_.tm_yday >= 0 && tm_.tm_yday <= 365) ? (void)0 : fmt::detail::assert_fail("/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h", 1157, (""))); return tm_.tm_yday; } auto tm_hour12() const noexcept -> int { const auto h = tm_hour(); const auto z = h < 12 ? h : h - 12; return z == 0 ? 12 : z; } auto split_year_lower(long long year) const noexcept -> int { auto l = year % 100; if (l < 0) l = -l; return static_cast<int>(l); } auto iso_year_weeks(long long curr_year) const noexcept -> int { const auto prev_year = curr_year - 1; const auto curr_p = (curr_year + curr_year / 4 - curr_year / 100 + curr_year / 400) % days_per_week; const auto prev_p = (prev_year + prev_year / 4 - prev_year / 100 + prev_year / 400) % days_per_week; return 52 + ((curr_p == 4 || prev_p == 3) ? 1 : 0); } auto iso_week_num(int tm_yday, int tm_wday) const noexcept -> int { return (tm_yday + 11 - (tm_wday == 0 ? days_per_week : tm_wday)) / days_per_week; } auto tm_iso_week_year() const noexcept -> long long { const auto year = tm_year(); const auto w = iso_week_num(tm_yday(), tm_wday()); if (w < 1) return year - 1; if (w > iso_year_weeks(year)) return year + 1; return year; } auto tm_iso_week_of_year() const noexcept -> int { const auto year = tm_year(); const auto w = iso_week_num(tm_yday(), tm_wday()); if (w < 1) return iso_year_weeks(year - 1); if (w > iso_year_weeks(year)) return 1; return w; } void write1(int value) { *out_++ = static_cast<char>('0' + to_unsigned(value) % 10); } void write2(int value) { const char* d = digits2(to_unsigned(value) % 100); *out_++ = *d++; *out_++ = *d; } void write2(int value, pad_type pad) { unsigned int v = to_unsigned(value) % 100; if (v >= 10) { const char* d = digits2(v); *out_++ = *d++; *out_++ = *d; } else { out_ = detail::write_padding(out_, pad); *out_++ = static_cast<char>('0' + v); } } void write_year_extended(long long year) { int width = 4; if (year < 0) { *out_++ = '-'; year = 0 - year; --width; } uint32_or_64_or_128_t<long long> n = to_unsigned(year); const int num_digits = count_digits(n); if (width > num_digits) out_ = std::fill_n(out_, width - num_digits, '0'); out_ = format_decimal<Char>(out_, n, num_digits).end; } void write_year(long long year) { if (year >= 0 && year < 10000) { write2(static_cast<int>(year / 100)); write2(static_cast<int>(year % 100)); } else { write_year_extended(year); } } void write_utc_offset(long offset, numeric_system ns) { if (offset < 0) { *out_++ = '-'; offset = -offset; } else { *out_++ = '+'; } offset /= 60; write2(static_cast<int>(offset / 60)); if (ns != numeric_system::standard) *out_++ = ':'; write2(static_cast<int>(offset % 60)); } template <typename T, fmt::enable_if_t<(has_member_data_tm_gmtoff<T>::value), int> = 0> void format_utc_offset_impl(const T& tm, numeric_system ns) { write_utc_offset(tm.tm_gmtoff, ns); } template <typename T, fmt::enable_if_t<(!has_member_data_tm_gmtoff<T>::value), int> = 0> void format_utc_offset_impl(const T& tm, numeric_system ns) { # 1281 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 if (ns == numeric_system::standard) return format_localized('z'); std::tm gtm = tm; std::time_t gt = std::mktime(>m); std::tm ltm = gmtime(gt); std::time_t lt = std::mktime(<m); long offset = gt - lt; write_utc_offset(offset, ns); } template <typename T, fmt::enable_if_t<(has_member_data_tm_zone<T>::value), int> = 0> void format_tz_name_impl(const T& tm) { if (is_classic_) out_ = write_tm_str<Char>(out_, tm.tm_zone, loc_); else format_localized('Z'); } template <typename T, fmt::enable_if_t<(!has_member_data_tm_zone<T>::value), int> = 0> void format_tz_name_impl(const T&) { format_localized('Z'); } void format_localized(char format, char modifier = 0) { out_ = write<Char>(out_, tm_, loc_, format, modifier); } public: tm_writer(const std::locale& loc, OutputIt out, const std::tm& tm, const Duration* subsecs = nullptr) : loc_(loc), is_classic_(loc_ == get_classic_locale()), out_(out), subsecs_(subsecs), tm_(tm) {} OutputIt out() const { return out_; } constexpr void on_text(const Char* begin, const Char* end) { out_ = copy_str<Char>(begin, end, out_); } void on_abbr_weekday() { if (is_classic_) out_ = write(out_, tm_wday_short_name(tm_wday())); else format_localized('a'); } void on_full_weekday() { if (is_classic_) out_ = write(out_, tm_wday_full_name(tm_wday())); else format_localized('A'); } void on_dec0_weekday(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write1(tm_wday()); format_localized('w', 'O'); } void on_dec1_weekday(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) { auto wday = tm_wday(); write1(wday == 0 ? days_per_week : wday); } else { format_localized('u', 'O'); } } void on_abbr_month() { if (is_classic_) out_ = write(out_, tm_mon_short_name(tm_mon())); else format_localized('b'); } void on_full_month() { if (is_classic_) out_ = write(out_, tm_mon_full_name(tm_mon())); else format_localized('B'); } void on_datetime(numeric_system ns) { if (is_classic_) { on_abbr_weekday(); *out_++ = ' '; on_abbr_month(); *out_++ = ' '; on_day_of_month_space(numeric_system::standard); *out_++ = ' '; on_iso_time(); *out_++ = ' '; on_year(numeric_system::standard); } else { format_localized('c', ns == numeric_system::standard ? '\0' : 'E'); } } void on_loc_date(numeric_system ns) { if (is_classic_) on_us_date(); else format_localized('x', ns == numeric_system::standard ? '\0' : 'E'); } void on_loc_time(numeric_system ns) { if (is_classic_) on_iso_time(); else format_localized('X', ns == numeric_system::standard ? '\0' : 'E'); } void on_us_date() { char buf[8]; write_digit2_separated(buf, to_unsigned(tm_mon() + 1), to_unsigned(tm_mday()), to_unsigned(split_year_lower(tm_year())), '/'); out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_); } void on_iso_date() { auto year = tm_year(); char buf[10]; size_t offset = 0; if (year >= 0 && year < 10000) { copy2(buf, digits2(static_cast<size_t>(year / 100))); } else { offset = 4; write_year_extended(year); year = 0; } write_digit2_separated(buf + 2, static_cast<unsigned>(year % 100), to_unsigned(tm_mon() + 1), to_unsigned(tm_mday()), '-'); out_ = copy_str<Char>(std::begin(buf) + offset, std::end(buf), out_); } void on_utc_offset(numeric_system ns) { format_utc_offset_impl(tm_, ns); } void on_tz_name() { format_tz_name_impl(tm_); } void on_year(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write_year(tm_year()); format_localized('Y', 'E'); } void on_short_year(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write2(split_year_lower(tm_year())); format_localized('y', 'O'); } void on_offset_year() { if (is_classic_) return write2(split_year_lower(tm_year())); format_localized('y', 'E'); } void on_century(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) { auto year = tm_year(); auto upper = year / 100; if (year >= -99 && year < 0) { *out_++ = '-'; *out_++ = '0'; } else if (upper >= 0 && upper < 100) { write2(static_cast<int>(upper)); } else { out_ = write<Char>(out_, upper); } } else { format_localized('C', 'E'); } } void on_dec_month(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write2(tm_mon() + 1); format_localized('m', 'O'); } void on_dec0_week_of_year(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write2((tm_yday() + days_per_week - tm_wday()) / days_per_week); format_localized('U', 'O'); } void on_dec1_week_of_year(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) { auto wday = tm_wday(); write2((tm_yday() + days_per_week - (wday == 0 ? (days_per_week - 1) : (wday - 1))) / days_per_week); } else { format_localized('W', 'O'); } } void on_iso_week_of_year(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write2(tm_iso_week_of_year()); format_localized('V', 'O'); } void on_iso_week_based_year() { write_year(tm_iso_week_year()); } void on_iso_week_based_short_year() { write2(split_year_lower(tm_iso_week_year())); } void on_day_of_year() { auto yday = tm_yday() + 1; write1(yday / 100); write2(yday % 100); } void on_day_of_month(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) return write2(tm_mday()); format_localized('d', 'O'); } void on_day_of_month_space(numeric_system ns) { if (is_classic_ || ns == numeric_system::standard) { auto mday = to_unsigned(tm_mday()) % 100; const char* d2 = digits2(mday); *out_++ = mday < 10 ? ' ' : d2[0]; *out_++ = d2[1]; } else { format_localized('e', 'O'); } } void on_24_hour(numeric_system ns, pad_type pad) { if (is_classic_ || ns == numeric_system::standard) return write2(tm_hour(), pad); format_localized('H', 'O'); } void on_12_hour(numeric_system ns, pad_type pad) { if (is_classic_ || ns == numeric_system::standard) return write2(tm_hour12(), pad); format_localized('I', 'O'); } void on_minute(numeric_system ns, pad_type pad) { if (is_classic_ || ns == numeric_system::standard) return write2(tm_min(), pad); format_localized('M', 'O'); } void on_second(numeric_system ns, pad_type pad) { if (is_classic_ || ns == numeric_system::standard) { write2(tm_sec(), pad); if (subsecs_) { if (std::is_floating_point<typename Duration::rep>::value) { auto buf = memory_buffer(); write_floating_seconds(buf, *subsecs_); if (buf.size() > 1) { out_ = std::copy(buf.begin() + 1, buf.end(), out_); } } else { write_fractional_seconds<Char>(out_, *subsecs_); } } } else { format_localized('S', 'O'); } } void on_12_hour_time() { if (is_classic_) { char buf[8]; write_digit2_separated(buf, to_unsigned(tm_hour12()), to_unsigned(tm_min()), to_unsigned(tm_sec()), ':'); out_ = copy_str<Char>(std::begin(buf), std::end(buf), out_); *out_++ = ' '; on_am_pm(); } else { format_localized('r'); } } void on_24_hour_time() { write2(tm_hour()); *out_++ = ':'; write2(tm_min()); } void on_iso_time() { on_24_hour_time(); *out_++ = ':'; on_second(numeric_system::standard, pad_type::unspecified); } void on_am_pm() { if (is_classic_) { *out_++ = tm_hour() < 12 ? 'A' : 'P'; *out_++ = 'M'; } else { format_localized('p'); } } void on_duration_value() {} void on_duration_unit() {} }; struct chrono_format_checker : null_chrono_spec_handler<chrono_format_checker> { bool has_precision_integral = false; [[noreturn]] void unsupported() { throw format_error("no date"); } template <typename Char> constexpr void on_text(const Char*, const Char*) {} constexpr void on_24_hour(numeric_system, pad_type) {} constexpr void on_12_hour(numeric_system, pad_type) {} constexpr void on_minute(numeric_system, pad_type) {} constexpr void on_second(numeric_system, pad_type) {} constexpr void on_12_hour_time() {} constexpr void on_24_hour_time() {} constexpr void on_iso_time() {} constexpr void on_am_pm() {} constexpr void on_duration_value() const { if (has_precision_integral) { throw format_error("precision not allowed for this argument type"); } } constexpr void on_duration_unit() {} }; template <typename T, fmt::enable_if_t<(std::is_integral<T>::value&& has_isfinite<T>::value), int> = 0> inline bool isfinite(T) { return true; } template <typename T, fmt::enable_if_t<(std::is_integral<T>::value), int> = 0> inline T mod(T x, int y) { return x % static_cast<T>(y); } template <typename T, fmt::enable_if_t<(std::is_floating_point<T>::value), int> = 0> inline T mod(T x, int y) { return std::fmod(x, static_cast<T>(y)); } template <typename T, bool INTEGRAL = std::is_integral<T>::value> struct make_unsigned_or_unchanged { using type = T; }; template <typename T> struct make_unsigned_or_unchanged<T, true> { using type = typename std::make_unsigned<T>::type; }; template <typename To, typename FromRep, typename FromPeriod> To fmt_safe_duration_cast(std::chrono::duration<FromRep, FromPeriod> from) { int ec; To to = safe_duration_cast::safe_duration_cast<To>(from, ec); if (ec) throw format_error("cannot format duration"); return to; } template <typename Rep, typename Period, fmt::enable_if_t<(std::is_integral<Rep>::value), int> = 0> inline std::chrono::duration<Rep, std::milli> get_milliseconds( std::chrono::duration<Rep, Period> d) { using CommonSecondsType = typename std::common_type<decltype(d), std::chrono::seconds>::type; const auto d_as_common = fmt_safe_duration_cast<CommonSecondsType>(d); const auto d_as_whole_seconds = fmt_safe_duration_cast<std::chrono::seconds>(d_as_common); const auto diff = d_as_common - d_as_whole_seconds; const auto ms = fmt_safe_duration_cast<std::chrono::duration<Rep, std::milli>>(diff); return ms; } template <typename Char, typename Rep, typename OutputIt, fmt::enable_if_t<(std::is_integral<Rep>::value), int> = 0> OutputIt format_duration_value(OutputIt out, Rep val, int) { return write<Char>(out, val); } template <typename Char, typename Rep, typename OutputIt, fmt::enable_if_t<(std::is_floating_point<Rep>::value), int> = 0> OutputIt format_duration_value(OutputIt out, Rep val, int precision) { auto specs = format_specs<Char>(); specs.precision = precision; specs.type = precision >= 0 ? presentation_type::fixed_lower : presentation_type::general_lower; return write<Char>(out, val, specs); } template <typename Char, typename OutputIt> OutputIt copy_unit(string_view unit, OutputIt out, Char) { return std::copy(unit.begin(), unit.end(), out); } template <typename OutputIt> OutputIt copy_unit(string_view unit, OutputIt out, wchar_t) { utf8_to_utf16 u(unit); return std::copy(u.c_str(), u.c_str() + u.size(), out); } template <typename Char, typename Period, typename OutputIt> OutputIt format_duration_unit(OutputIt out) { if (const char* unit = get_units<Period>()) return copy_unit(string_view(unit), out, Char()); *out++ = '['; out = write<Char>(out, Period::num); if (const_check(Period::den != 1)) { *out++ = '/'; out = write<Char>(out, Period::den); } *out++ = ']'; *out++ = 's'; return out; } class get_locale { private: union { std::locale locale_; }; bool has_locale_ = false; public: get_locale(bool localized, locale_ref loc) : has_locale_(localized) { if (localized) ::new (&locale_) std::locale(loc.template get<std::locale>()); } ~get_locale() { if (has_locale_) locale_.~locale(); } operator const std::locale&() const { return has_locale_ ? locale_ : get_classic_locale(); } }; template <typename FormatContext, typename OutputIt, typename Rep, typename Period> struct chrono_formatter { FormatContext& context; OutputIt out; int precision; bool localized = false; using rep = conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int), unsigned, typename make_unsigned_or_unchanged<Rep>::type>; rep val; using seconds = std::chrono::duration<rep>; seconds s; using milliseconds = std::chrono::duration<rep, std::milli>; bool negative; using char_type = typename FormatContext::char_type; using tm_writer_type = tm_writer<OutputIt, char_type>; chrono_formatter(FormatContext& ctx, OutputIt o, std::chrono::duration<Rep, Period> d) : context(ctx), out(o), val(static_cast<rep>(d.count())), negative(false) { if (d.count() < 0) { val = 0 - val; negative = true; } auto tmpval = std::chrono::duration<rep, Period>(val); s = fmt_safe_duration_cast<seconds>(tmpval); } bool handle_nan_inf() { if (isfinite(val)) { return false; } if (isnan(val)) { write_nan(); return true; } if (val > 0) { write_pinf(); } else { write_ninf(); } return true; } Rep hour() const { return static_cast<Rep>(mod((s.count() / 3600), 24)); } Rep hour12() const { Rep hour = static_cast<Rep>(mod((s.count() / 3600), 12)); return hour <= 0 ? 12 : hour; } Rep minute() const { return static_cast<Rep>(mod((s.count() / 60), 60)); } Rep second() const { return static_cast<Rep>(mod(s.count(), 60)); } std::tm time() const { auto time = std::tm(); time.tm_hour = to_nonnegative_int(hour(), 24); time.tm_min = to_nonnegative_int(minute(), 60); time.tm_sec = to_nonnegative_int(second(), 60); return time; } void write_sign() { if (negative) { *out++ = '-'; negative = false; } } void write(Rep value, int width, pad_type pad = pad_type::unspecified) { write_sign(); if (isnan(value)) return write_nan(); uint32_or_64_or_128_t<int> n = to_unsigned(to_nonnegative_int(value, max_value<int>())); int num_digits = detail::count_digits(n); if (width > num_digits) { out = detail::write_padding(out, pad, width - num_digits); } out = format_decimal<char_type>(out, n, num_digits).end; } void write_nan() { std::copy_n("nan", 3, out); } void write_pinf() { std::copy_n("inf", 3, out); } void write_ninf() { std::copy_n("-inf", 4, out); } template <typename Callback, typename... Args> void format_tm(const tm& time, Callback cb, Args... args) { if (isnan(val)) return write_nan(); get_locale loc(localized, context.locale()); auto w = tm_writer_type(loc, out, time); (w.*cb)(args...); out = w.out(); } void on_text(const char_type* begin, const char_type* end) { std::copy(begin, end, out); } void on_abbr_weekday() {} void on_full_weekday() {} void on_dec0_weekday(numeric_system) {} void on_dec1_weekday(numeric_system) {} void on_abbr_month() {} void on_full_month() {} void on_datetime(numeric_system) {} void on_loc_date(numeric_system) {} void on_loc_time(numeric_system) {} void on_us_date() {} void on_iso_date() {} void on_utc_offset(numeric_system) {} void on_tz_name() {} void on_year(numeric_system) {} void on_short_year(numeric_system) {} void on_offset_year() {} void on_century(numeric_system) {} void on_iso_week_based_year() {} void on_iso_week_based_short_year() {} void on_dec_month(numeric_system) {} void on_dec0_week_of_year(numeric_system) {} void on_dec1_week_of_year(numeric_system) {} void on_iso_week_of_year(numeric_system) {} void on_day_of_year() {} void on_day_of_month(numeric_system) {} void on_day_of_month_space(numeric_system) {} void on_24_hour(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; if (ns == numeric_system::standard) return write(hour(), 2, pad); auto time = tm(); time.tm_hour = to_nonnegative_int(hour(), 24); format_tm(time, &tm_writer_type::on_24_hour, ns, pad); } void on_12_hour(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; if (ns == numeric_system::standard) return write(hour12(), 2, pad); auto time = tm(); time.tm_hour = to_nonnegative_int(hour12(), 12); format_tm(time, &tm_writer_type::on_12_hour, ns, pad); } void on_minute(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; if (ns == numeric_system::standard) return write(minute(), 2, pad); auto time = tm(); time.tm_min = to_nonnegative_int(minute(), 60); format_tm(time, &tm_writer_type::on_minute, ns, pad); } void on_second(numeric_system ns, pad_type pad) { if (handle_nan_inf()) return; if (ns == numeric_system::standard) { if (std::is_floating_point<rep>::value) { auto buf = memory_buffer(); write_floating_seconds(buf, std::chrono::duration<rep, Period>(val), precision); if (negative) *out++ = '-'; if (buf.size() < 2 || buf[1] == '.') { out = detail::write_padding(out, pad); } out = std::copy(buf.begin(), buf.end(), out); } else { write(second(), 2, pad); write_fractional_seconds<char_type>( out, std::chrono::duration<rep, Period>(val), precision); } return; } auto time = tm(); time.tm_sec = to_nonnegative_int(second(), 60); format_tm(time, &tm_writer_type::on_second, ns, pad); } void on_12_hour_time() { if (handle_nan_inf()) return; format_tm(time(), &tm_writer_type::on_12_hour_time); } void on_24_hour_time() { if (handle_nan_inf()) { *out++ = ':'; handle_nan_inf(); return; } write(hour(), 2); *out++ = ':'; write(minute(), 2); } void on_iso_time() { on_24_hour_time(); *out++ = ':'; if (handle_nan_inf()) return; on_second(numeric_system::standard, pad_type::unspecified); } void on_am_pm() { if (handle_nan_inf()) return; format_tm(time(), &tm_writer_type::on_am_pm); } void on_duration_value() { if (handle_nan_inf()) return; write_sign(); out = format_duration_value<char_type>(out, val, precision); } void on_duration_unit() { out = format_duration_unit<char_type, Period>(out); } }; } class weekday { private: unsigned char value; public: weekday() = default; explicit constexpr weekday(unsigned wd) noexcept : value(static_cast<unsigned char>(wd != 7 ? wd : 0)) {} constexpr unsigned c_encoding() const noexcept { return value; } }; class year_month_day {}; template <typename Char> struct formatter<weekday, Char> { private: bool localized = false; public: constexpr auto parse(basic_format_parse_context<Char>& ctx) -> decltype(ctx.begin()) { auto begin = ctx.begin(), end = ctx.end(); if (begin != end && *begin == 'L') { ++begin; localized = true; } return begin; } template <typename FormatContext> auto format(weekday wd, FormatContext& ctx) const -> decltype(ctx.out()) { auto time = std::tm(); time.tm_wday = static_cast<int>(wd.c_encoding()); detail::get_locale loc(localized, ctx.locale()); auto w = detail::tm_writer<decltype(ctx.out()), Char>(loc, ctx.out(), time); w.on_abbr_weekday(); return w.out(); } }; template <typename Rep, typename Period, typename Char> struct formatter<std::chrono::duration<Rep, Period>, Char> { private: format_specs<Char> specs_; detail::arg_ref<Char> width_ref_; detail::arg_ref<Char> precision_ref_; bool localized_ = false; basic_string_view<Char> format_str_; public: constexpr auto parse(basic_format_parse_context<Char>& ctx) -> decltype(ctx.begin()) { auto it = ctx.begin(), end = ctx.end(); if (it == end || *it == '}') return it; it = detail::parse_align(it, end, specs_); if (it == end) return it; it = detail::parse_dynamic_spec(it, end, specs_.width, width_ref_, ctx); if (it == end) return it; auto checker = detail::chrono_format_checker(); if (*it == '.') { checker.has_precision_integral = !std::is_floating_point<Rep>::value; it = detail::parse_precision(it, end, specs_.precision, precision_ref_, ctx); } if (it != end && *it == 'L') { localized_ = true; ++it; } end = detail::parse_chrono_format(it, end, checker); format_str_ = {it, detail::to_unsigned(end - it)}; return end; } template <typename FormatContext> auto format(std::chrono::duration<Rep, Period> d, FormatContext& ctx) const -> decltype(ctx.out()) { auto specs = specs_; auto precision = specs.precision; specs.precision = -1; auto begin = format_str_.begin(), end = format_str_.end(); auto buf = basic_memory_buffer<Char>(); auto out = std::back_inserter(buf); detail::handle_dynamic_spec<detail::width_checker>(specs.width, width_ref_, ctx); detail::handle_dynamic_spec<detail::precision_checker>(precision, precision_ref_, ctx); if (begin == end || *begin == '}') { out = detail::format_duration_value<Char>(out, d.count(), precision); detail::format_duration_unit<Char, Period>(out); } else { using chrono_formatter = detail::chrono_formatter<FormatContext, decltype(out), Rep, Period>; auto f = chrono_formatter(ctx, out, d); f.precision = precision; f.localized = localized_; detail::parse_chrono_format(begin, end, f); } return detail::write( ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs); } }; template <typename Char, typename Duration> struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>, Char> : formatter<std::tm, Char> { constexpr formatter() { this->format_str_ = detail::string_literal<Char, '%', 'F', ' ', '%', 'T'>{}; } template <typename FormatContext> auto format(std::chrono::time_point<std::chrono::system_clock, Duration> val, FormatContext& ctx) const -> decltype(ctx.out()) { using period = typename Duration::period; if (detail::const_check( period::num != 1 || period::den != 1 || std::is_floating_point<typename Duration::rep>::value)) { const auto epoch = val.time_since_epoch(); auto subsecs = std::chrono::duration_cast<Duration>( epoch - std::chrono::duration_cast<std::chrono::seconds>(epoch)); if (subsecs.count() < 0) { auto second = std::chrono::duration_cast<Duration>(std::chrono::seconds(1)); if (epoch.count() < ((Duration::min)() + second).count()) throw format_error("duration is too small"); subsecs += second; val -= second; } return formatter<std::tm, Char>::do_format( gmtime(std::chrono::time_point_cast<std::chrono::seconds>(val)), ctx, &subsecs); } return formatter<std::tm, Char>::format( gmtime(std::chrono::time_point_cast<std::chrono::seconds>(val)), ctx); } }; # 2154 "/home/lpresearch/.conan/data/fmt/10.1.1/_/_/package/20da98908a15523bbe9f086a5c57a4bde424a9c0/include/fmt/chrono.h" 3 4 template <typename Char> struct formatter<std::tm, Char> { private: format_specs<Char> specs_; detail::arg_ref<Char> width_ref_; protected: basic_string_view<Char> format_str_; template <typename FormatContext, typename Duration> auto do_format(const std::tm& tm, FormatContext& ctx, const Duration* subsecs) const -> decltype(ctx.out()) { auto specs = specs_; auto buf = basic_memory_buffer<Char>(); auto out = std::back_inserter(buf); detail::handle_dynamic_spec<detail::width_checker>(specs.width, width_ref_, ctx); auto loc_ref = ctx.locale(); detail::get_locale loc(static_cast<bool>(loc_ref), loc_ref); auto w = detail::tm_writer<decltype(out), Char, Duration>(loc, out, tm, subsecs); detail::parse_chrono_format(format_str_.begin(), format_str_.end(), w); return detail::write( ctx.out(), basic_string_view<Char>(buf.data(), buf.size()), specs); } public: constexpr auto parse(basic_format_parse_context<Char>& ctx) -> decltype(ctx.begin()) { auto it = ctx.begin(), end = ctx.end(); if (it == end || *it == '}') return it; it = detail::parse_align(it, end, specs_); if (it == end) return it; it = detail::parse_dynamic_spec(it, end, specs_.width, width_ref_, ctx); if (it == end) return it; end = detail::parse_chrono_format(it, end, detail::tm_format_checker()); if (end != it) format_str_ = {it, detail::to_unsigned(end - it)}; return end; } template <typename FormatContext> auto format(const std::tm& tm, FormatContext& ctx) const -> decltype(ctx.out()) { return do_format<FormatContext, std::chrono::seconds>(tm, ctx, nullptr); } }; } } # 18 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/usr/include/c++/13/condition_variable" 1 3 4 # 32 "/usr/include/c++/13/condition_variable" 3 4 # 33 "/usr/include/c++/13/condition_variable" 3 # 49 "/usr/include/c++/13/condition_variable" 3 # 1 "/usr/include/c++/13/stop_token" 1 3 # 37 "/usr/include/c++/13/stop_token" 3 # 1 "/usr/include/c++/13/bits/std_thread.h" 1 3 # 33 "/usr/include/c++/13/bits/std_thread.h" 3 # 34 "/usr/include/c++/13/bits/std_thread.h" 3 # 52 "/usr/include/c++/13/bits/std_thread.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 78 "/usr/include/c++/13/bits/std_thread.h" 3 class thread { public: using native_handle_type = __gthread_t; # 92 "/usr/include/c++/13/bits/std_thread.h" 3 class id { native_handle_type _M_thread; public: id() noexcept : _M_thread() { } explicit id(native_handle_type __id) : _M_thread(__id) { } private: friend class thread; friend struct hash<id>; friend bool operator==(id __x, id __y) noexcept; friend strong_ordering operator<=>(id __x, id __y) noexcept; template<class _CharT, class _Traits> friend basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, id __id); }; private: id _M_id; template<typename _Tp> using __not_same = __not_<is_same<__remove_cvref_t<_Tp>, thread>>; public: thread() noexcept = default; private: static void _M_thread_deps_never_run() { } public: template<typename _Callable, typename... _Args, typename = _Require<__not_same<_Callable>>> explicit thread(_Callable&& __f, _Args&&... __args) { static_assert( __is_invocable<typename decay<_Callable>::type, typename decay<_Args>::type...>::value, "std::thread arguments must be invocable after conversion to rvalues" ); using _Wrapper = _Call_wrapper<_Callable, _Args...>; _M_start_thread(_State_ptr(new _State_impl<_Wrapper>( std::forward<_Callable>(__f), std::forward<_Args>(__args)...)), _M_thread_deps_never_run); } ~thread() { if (joinable()) std::__terminate(); } thread(const thread&) = delete; thread(thread&& __t) noexcept { swap(__t); } thread& operator=(const thread&) = delete; thread& operator=(thread&& __t) noexcept { if (joinable()) std::__terminate(); swap(__t); return *this; } void swap(thread& __t) noexcept { std::swap(_M_id, __t._M_id); } bool joinable() const noexcept { return !(_M_id == id()); } void join(); void detach(); id get_id() const noexcept { return _M_id; } native_handle_type native_handle() { return _M_id._M_thread; } static unsigned int hardware_concurrency() noexcept; private: struct _State { virtual ~_State(); virtual void _M_run() = 0; }; using _State_ptr = unique_ptr<_State>; private: template<typename _Callable> struct _State_impl : public _State { _Callable _M_func; template<typename... _Args> _State_impl(_Args&&... __args) : _M_func(std::forward<_Args>(__args)...) { } void _M_run() { _M_func(); } }; void _M_start_thread(_State_ptr, void (*)()); # 269 "/usr/include/c++/13/bits/std_thread.h" 3 private: template<typename _Tuple> struct _Invoker { template<typename... _Args> explicit _Invoker(_Args&&... __args) : _M_t(std::forward<_Args>(__args)...) { } _Tuple _M_t; template<typename> struct __result; template<typename _Fn, typename... _Args> struct __result<tuple<_Fn, _Args...>> : __invoke_result<_Fn, _Args...> { }; template<size_t... _Ind> typename __result<_Tuple>::type _M_invoke(_Index_tuple<_Ind...>) { return std::__invoke(std::get<_Ind>(std::move(_M_t))...); } typename __result<_Tuple>::type operator()() { using _Indices = typename _Build_index_tuple<tuple_size<_Tuple>::value>::__type; return _M_invoke(_Indices()); } }; public: template<typename... _Tp> using _Call_wrapper = _Invoker<tuple<typename decay<_Tp>::type...>>; }; # 318 "/usr/include/c++/13/bits/std_thread.h" 3 inline void swap(thread& __x, thread& __y) noexcept { __x.swap(__y); } inline bool operator==(thread::id __x, thread::id __y) noexcept { return __x._M_thread == __y._M_thread; } template<> struct hash<thread::id> : public __hash_base<size_t, thread::id> { size_t operator()(const thread::id& __id) const noexcept { return std::_Hash_impl::hash(__id._M_thread); } }; namespace this_thread { inline thread::id get_id() noexcept { return thread::id(pthread_self()); } inline void yield() noexcept { __gthread_yield(); } } } # 38 "/usr/include/c++/13/stop_token" 2 3 # 1 "/usr/include/c++/13/semaphore" 1 3 # 32 "/usr/include/c++/13/semaphore" 3 # 33 "/usr/include/c++/13/semaphore" 3 # 1 "/usr/include/c++/13/bits/semaphore_base.h" 1 3 # 33 "/usr/include/c++/13/bits/semaphore_base.h" 3 # 34 "/usr/include/c++/13/bits/semaphore_base.h" 3 # 1 "/usr/include/c++/13/bits/atomic_timed_wait.h" 1 3 # 33 "/usr/include/c++/13/bits/atomic_timed_wait.h" 3 # 34 "/usr/include/c++/13/bits/atomic_timed_wait.h" 3 # 1 "/usr/include/c++/13/bits/this_thread_sleep.h" 1 3 # 33 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 # 34 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 # 1 "/usr/include/c++/13/cerrno" 1 3 # 39 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/bits/this_thread_sleep.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 56 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 namespace this_thread { # 66 "/usr/include/c++/13/bits/this_thread_sleep.h" 3 template<typename _Rep, typename _Period> inline void sleep_for(const chrono::duration<_Rep, _Period>& __rtime) { if (__rtime <= __rtime.zero()) return; auto __s = chrono::duration_cast<chrono::seconds>(__rtime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__rtime - __s); struct ::timespec __ts = { static_cast<std::time_t>(__s.count()), static_cast<long>(__ns.count()) }; while (::nanosleep(&__ts, &__ts) == -1 && (*__errno_location ()) == 4) { } } template<typename _Clock, typename _Duration> inline void sleep_until(const chrono::time_point<_Clock, _Duration>& __atime) { static_assert(chrono::is_clock_v<_Clock>); auto __now = _Clock::now(); if (_Clock::is_steady) { if (__now < __atime) sleep_for(__atime - __now); return; } while (__now < __atime) { sleep_for(__atime - __now); __now = _Clock::now(); } } } } # 40 "/usr/include/c++/13/bits/atomic_timed_wait.h" 2 3 # 1 "/usr/include/x86_64-linux-gnu/sys/time.h" 1 3 4 # 34 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 extern "C" { # 52 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 struct timezone { int tz_minuteswest; int tz_dsttime; }; # 67 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 extern int gettimeofday (struct timeval *__restrict __tv, void *__restrict __tz) noexcept (true) __attribute__ ((__nonnull__ (1))); # 86 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 extern int settimeofday (const struct timeval *__tv, const struct timezone *__tz) noexcept (true); extern int adjtime (const struct timeval *__delta, struct timeval *__olddelta) noexcept (true); # 114 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 enum __itimer_which { ITIMER_REAL = 0, ITIMER_VIRTUAL = 1, ITIMER_PROF = 2 }; struct itimerval { struct timeval it_interval; struct timeval it_value; }; typedef int __itimer_which_t; extern int getitimer (__itimer_which_t __which, struct itimerval *__value) noexcept (true); extern int setitimer (__itimer_which_t __which, const struct itimerval *__restrict __new, struct itimerval *__restrict __old) noexcept (true); extern int utimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __attribute__ ((__nonnull__ (1))); # 189 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 extern int lutimes (const char *__file, const struct timeval __tvp[2]) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int futimes (int __fd, const struct timeval __tvp[2]) noexcept (true); # 214 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 extern int futimesat (int __fd, const char *__file, const struct timeval __tvp[2]) noexcept (true); # 258 "/usr/include/x86_64-linux-gnu/sys/time.h" 3 4 } # 44 "/usr/include/c++/13/bits/atomic_timed_wait.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace __detail { using __wait_clock_t = chrono::steady_clock; template<typename _Clock, typename _Dur> __wait_clock_t::time_point __to_wait_clock(const chrono::time_point<_Clock, _Dur>& __atime) noexcept { const typename _Clock::time_point __c_entry = _Clock::now(); const __wait_clock_t::time_point __w_entry = __wait_clock_t::now(); const auto __delta = __atime - __c_entry; using __w_dur = typename __wait_clock_t::duration; return __w_entry + chrono::ceil<__w_dur>(__delta); } template<typename _Dur> __wait_clock_t::time_point __to_wait_clock(const chrono::time_point<__wait_clock_t, _Dur>& __atime) noexcept { using __w_dur = typename __wait_clock_t::duration; return chrono::ceil<__w_dur>(__atime); } template<typename _Dur> bool __platform_wait_until_impl(const __platform_wait_t* __addr, __platform_wait_t __old, const chrono::time_point<__wait_clock_t, _Dur>& __atime) noexcept { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); struct timespec __rt = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; auto __e = syscall (202, __addr, static_cast<int>(__futex_wait_flags:: __wait_bitset_private), __old, &__rt, nullptr, static_cast<int>(__futex_wait_flags:: __bitset_match_any)); if (__e) { if ((*__errno_location ()) == 110) return false; if ((*__errno_location ()) != 4 && (*__errno_location ()) != 11) __throw_system_error((*__errno_location ())); } return true; } template<typename _Clock, typename _Dur> bool __platform_wait_until(const __platform_wait_t* __addr, __platform_wait_t __old, const chrono::time_point<_Clock, _Dur>& __atime) { if constexpr (is_same_v<__wait_clock_t, _Clock>) { return __platform_wait_until_impl(__addr, __old, __atime); } else { if (!__platform_wait_until_impl(__addr, __old, __to_wait_clock(__atime))) { if (_Clock::now() < __atime) return true; } return false; } } # 143 "/usr/include/c++/13/bits/atomic_timed_wait.h" 3 template<typename _Clock, typename _Dur> bool __cond_wait_until_impl(__condvar& __cv, mutex& __mx, const chrono::time_point<_Clock, _Dur>& __atime) { static_assert(std::__is_one_of<_Clock, chrono::steady_clock, chrono::system_clock>::value); auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); __gthread_time_t __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; if constexpr (is_same_v<chrono::steady_clock, _Clock>) __cv.wait_until(__mx, 1, __ts); else __cv.wait_until(__mx, __ts); return _Clock::now() < __atime; } template<typename _Clock, typename _Dur> bool __cond_wait_until(__condvar& __cv, mutex& __mx, const chrono::time_point<_Clock, _Dur>& __atime) { if constexpr (is_same_v<_Clock, chrono::steady_clock>) return __detail::__cond_wait_until_impl(__cv, __mx, __atime); else if constexpr (is_same_v<_Clock, chrono::system_clock>) return __detail::__cond_wait_until_impl(__cv, __mx, __atime); else { if (__cond_wait_until_impl(__cv, __mx, __to_wait_clock(__atime))) { if (_Clock::now() < __atime) return true; } return false; } } struct __timed_waiter_pool : __waiter_pool_base { template<typename _Clock, typename _Dur> bool _M_do_wait_until(__platform_wait_t* __addr, __platform_wait_t __old, const chrono::time_point<_Clock, _Dur>& __atime) { return __platform_wait_until(__addr, __old, __atime); # 219 "/usr/include/c++/13/bits/atomic_timed_wait.h" 3 } }; struct __timed_backoff_spin_policy { __wait_clock_t::time_point _M_deadline; __wait_clock_t::time_point _M_t0; template<typename _Clock, typename _Dur> __timed_backoff_spin_policy(chrono::time_point<_Clock, _Dur> __deadline = _Clock::time_point::max(), chrono::time_point<_Clock, _Dur> __t0 = _Clock::now()) noexcept : _M_deadline(__to_wait_clock(__deadline)) , _M_t0(__to_wait_clock(__t0)) { } bool operator()() const noexcept { using namespace literals::chrono_literals; auto __now = __wait_clock_t::now(); if (_M_deadline <= __now) return false; auto __elapsed = __now - _M_t0; if (__elapsed > 128ms) { this_thread::sleep_for(64ms); } else if (__elapsed > 64us) { this_thread::sleep_for(__elapsed / 2); } else if (__elapsed > 4us) { __thread_yield(); } else return false; return true; } }; template<typename _EntersWait> struct __timed_waiter : __waiter_base<__timed_waiter_pool> { using __base_type = __waiter_base<__timed_waiter_pool>; template<typename _Tp> __timed_waiter(const _Tp* __addr) noexcept : __base_type(__addr) { if constexpr (_EntersWait::value) _M_w._M_enter_wait(); } ~__timed_waiter() { if constexpr (_EntersWait::value) _M_w._M_leave_wait(); } template<typename _Tp, typename _ValFn, typename _Clock, typename _Dur> bool _M_do_wait_until_v(_Tp __old, _ValFn __vfn, const chrono::time_point<_Clock, _Dur>& __atime) noexcept { __platform_wait_t __val; if (_M_do_spin(__old, std::move(__vfn), __val, __timed_backoff_spin_policy(__atime))) return true; return __base_type::_M_w._M_do_wait_until(__base_type::_M_addr, __val, __atime); } template<typename _Pred, typename _Clock, typename _Dur> bool _M_do_wait_until(_Pred __pred, __platform_wait_t __val, const chrono::time_point<_Clock, _Dur>& __atime) noexcept { for (auto __now = _Clock::now(); __now < __atime; __now = _Clock::now()) { if (__base_type::_M_w._M_do_wait_until( __base_type::_M_addr, __val, __atime) && __pred()) return true; if (__base_type::_M_do_spin(__pred, __val, __timed_backoff_spin_policy(__atime, __now))) return true; } return false; } template<typename _Pred, typename _Clock, typename _Dur> bool _M_do_wait_until(_Pred __pred, const chrono::time_point<_Clock, _Dur>& __atime) noexcept { __platform_wait_t __val; if (__base_type::_M_do_spin(__pred, __val, __timed_backoff_spin_policy(__atime))) return true; return _M_do_wait_until(__pred, __val, __atime); } template<typename _Tp, typename _ValFn, typename _Rep, typename _Period> bool _M_do_wait_for_v(_Tp __old, _ValFn __vfn, const chrono::duration<_Rep, _Period>& __rtime) noexcept { __platform_wait_t __val; if (_M_do_spin_v(__old, std::move(__vfn), __val)) return true; if (!__rtime.count()) return false; auto __reltime = chrono::ceil<__wait_clock_t::duration>(__rtime); return __base_type::_M_w._M_do_wait_until( __base_type::_M_addr, __val, chrono::steady_clock::now() + __reltime); } template<typename _Pred, typename _Rep, typename _Period> bool _M_do_wait_for(_Pred __pred, const chrono::duration<_Rep, _Period>& __rtime) noexcept { __platform_wait_t __val; if (__base_type::_M_do_spin(__pred, __val)) return true; if (!__rtime.count()) return false; auto __reltime = chrono::ceil<__wait_clock_t::duration>(__rtime); return _M_do_wait_until(__pred, __val, chrono::steady_clock::now() + __reltime); } }; using __enters_timed_wait = __timed_waiter<std::true_type>; using __bare_timed_wait = __timed_waiter<std::false_type>; } template<typename _Tp, typename _ValFn, typename _Clock, typename _Dur> bool __atomic_wait_address_until_v(const _Tp* __addr, _Tp&& __old, _ValFn&& __vfn, const chrono::time_point<_Clock, _Dur>& __atime) noexcept { __detail::__enters_timed_wait __w{__addr}; return __w._M_do_wait_until_v(__old, __vfn, __atime); } template<typename _Tp, typename _Pred, typename _Clock, typename _Dur> bool __atomic_wait_address_until(const _Tp* __addr, _Pred __pred, const chrono::time_point<_Clock, _Dur>& __atime) noexcept { __detail::__enters_timed_wait __w{__addr}; return __w._M_do_wait_until(__pred, __atime); } template<typename _Pred, typename _Clock, typename _Dur> bool __atomic_wait_address_until_bare(const __detail::__platform_wait_t* __addr, _Pred __pred, const chrono::time_point<_Clock, _Dur>& __atime) noexcept { __detail::__bare_timed_wait __w{__addr}; return __w._M_do_wait_until(__pred, __atime); } template<typename _Tp, typename _ValFn, typename _Rep, typename _Period> bool __atomic_wait_address_for_v(const _Tp* __addr, _Tp&& __old, _ValFn&& __vfn, const chrono::duration<_Rep, _Period>& __rtime) noexcept { __detail::__enters_timed_wait __w{__addr}; return __w._M_do_wait_for_v(__old, __vfn, __rtime); } template<typename _Tp, typename _Pred, typename _Rep, typename _Period> bool __atomic_wait_address_for(const _Tp* __addr, _Pred __pred, const chrono::duration<_Rep, _Period>& __rtime) noexcept { __detail::__enters_timed_wait __w{__addr}; return __w._M_do_wait_for(__pred, __rtime); } template<typename _Pred, typename _Rep, typename _Period> bool __atomic_wait_address_for_bare(const __detail::__platform_wait_t* __addr, _Pred __pred, const chrono::duration<_Rep, _Period>& __rtime) noexcept { __detail::__bare_timed_wait __w{__addr}; return __w._M_do_wait_for(__pred, __rtime); } } # 39 "/usr/include/c++/13/bits/semaphore_base.h" 2 3 # 1 "/usr/include/c++/13/cerrno" 1 3 # 39 "/usr/include/c++/13/cerrno" 3 # 40 "/usr/include/c++/13/cerrno" 3 # 44 "/usr/include/c++/13/bits/semaphore_base.h" 2 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 45 "/usr/include/c++/13/bits/semaphore_base.h" 2 3 # 1 "/usr/include/semaphore.h" 1 3 4 # 28 "/usr/include/semaphore.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/semaphore.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/semaphore.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/wordsize.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/semaphore.h" 2 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/semaphore.h" 3 4 typedef union { char __size[32]; long int __align; } sem_t; # 29 "/usr/include/semaphore.h" 2 3 4 extern "C" { extern int sem_init (sem_t *__sem, int __pshared, unsigned int __value) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sem_destroy (sem_t *__sem) noexcept (true) __attribute__ ((__nonnull__ (1))); extern sem_t *sem_open (const char *__name, int __oflag, ...) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sem_close (sem_t *__sem) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sem_unlink (const char *__name) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sem_wait (sem_t *__sem) __attribute__ ((__nonnull__ (1))); extern int sem_timedwait (sem_t *__restrict __sem, const struct timespec *__restrict __abstime) __attribute__ ((__nonnull__ (1, 2))); # 81 "/usr/include/semaphore.h" 3 4 extern int sem_clockwait (sem_t *__restrict __sem, clockid_t clock, const struct timespec *__restrict __abstime) __attribute__ ((__nonnull__ (1, 3))); # 100 "/usr/include/semaphore.h" 3 4 extern int sem_trywait (sem_t *__sem) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sem_post (sem_t *__sem) noexcept (true) __attribute__ ((__nonnull__ (1))); extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval) noexcept (true) __attribute__ ((__nonnull__ (1, 2))); } # 46 "/usr/include/c++/13/bits/semaphore_base.h" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __platform_semaphore { using __clock_t = chrono::system_clock; static constexpr ptrdiff_t _S_max = (2147483647); explicit __platform_semaphore(ptrdiff_t __count) noexcept { sem_init(&_M_semaphore, 0, __count); } __platform_semaphore(const __platform_semaphore&) = delete; __platform_semaphore& operator=(const __platform_semaphore&) = delete; ~__platform_semaphore() { sem_destroy(&_M_semaphore); } inline __attribute__((__always_inline__)) void _M_acquire() noexcept { for (;;) { auto __err = sem_wait(&_M_semaphore); if (__err && ((*__errno_location ()) == 4)) continue; else if (__err) std::__terminate(); else break; } } inline __attribute__((__always_inline__)) bool _M_try_acquire() noexcept { for (;;) { auto __err = sem_trywait(&_M_semaphore); if (__err && ((*__errno_location ()) == 4)) continue; else if (__err && ((*__errno_location ()) == 11)) return false; else if (__err) std::__terminate(); else break; } return true; } inline __attribute__((__always_inline__)) void _M_release(std::ptrdiff_t __update) noexcept { for(; __update != 0; --__update) { auto __err = sem_post(&_M_semaphore); if (__err) std::__terminate(); } } bool _M_try_acquire_until_impl(const chrono::time_point<__clock_t>& __atime) noexcept { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); struct timespec __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; for (;;) { if (auto __err = sem_timedwait(&_M_semaphore, &__ts)) { if ((*__errno_location ()) == 4) continue; else if ((*__errno_location ()) == 110 || (*__errno_location ()) == 22) return false; else std::__terminate(); } else break; } return true; } template<typename _Clock, typename _Duration> bool _M_try_acquire_until(const chrono::time_point<_Clock, _Duration>& __atime) noexcept { if constexpr (std::is_same_v<__clock_t, _Clock>) { return _M_try_acquire_until_impl(__atime); } else { const typename _Clock::time_point __c_entry = _Clock::now(); const auto __s_entry = __clock_t::now(); const auto __delta = __atime - __c_entry; const auto __s_atime = __s_entry + __delta; if (_M_try_acquire_until_impl(__s_atime)) return true; return (_Clock::now() < __atime); } } template<typename _Rep, typename _Period> inline __attribute__((__always_inline__)) bool _M_try_acquire_for(const chrono::duration<_Rep, _Period>& __rtime) noexcept { return _M_try_acquire_until(__clock_t::now() + __rtime); } private: sem_t _M_semaphore; }; struct __atomic_semaphore { static constexpr ptrdiff_t _S_max = __gnu_cxx::__int_traits<int>::__max; explicit __atomic_semaphore(__detail::__platform_wait_t __count) noexcept : _M_counter(__count) { do { if (std::__is_constant_evaluated() && !bool(__count >= 0 && __count <= _S_max)) __builtin_unreachable(); } while (false); } __atomic_semaphore(const __atomic_semaphore&) = delete; __atomic_semaphore& operator=(const __atomic_semaphore&) = delete; static inline __attribute__((__always_inline__)) bool _S_do_try_acquire(__detail::__platform_wait_t* __counter) noexcept { auto __old = __atomic_impl::load(__counter, memory_order::acquire); if (__old == 0) return false; return __atomic_impl::compare_exchange_strong(__counter, __old, __old - 1, memory_order::acquire, memory_order::relaxed); } inline __attribute__((__always_inline__)) void _M_acquire() noexcept { auto const __pred = [this] { return _S_do_try_acquire(&this->_M_counter); }; std::__atomic_wait_address_bare(&_M_counter, __pred); } bool _M_try_acquire() noexcept { auto const __pred = [this] { return _S_do_try_acquire(&this->_M_counter); }; return std::__detail::__atomic_spin(__pred); } template<typename _Clock, typename _Duration> inline __attribute__((__always_inline__)) bool _M_try_acquire_until(const chrono::time_point<_Clock, _Duration>& __atime) noexcept { auto const __pred = [this] { return _S_do_try_acquire(&this->_M_counter); }; return __atomic_wait_address_until_bare(&_M_counter, __pred, __atime); } template<typename _Rep, typename _Period> inline __attribute__((__always_inline__)) bool _M_try_acquire_for(const chrono::duration<_Rep, _Period>& __rtime) noexcept { auto const __pred = [this] { return _S_do_try_acquire(&this->_M_counter); }; return __atomic_wait_address_for_bare(&_M_counter, __pred, __rtime); } inline __attribute__((__always_inline__)) void _M_release(ptrdiff_t __update) noexcept { if (0 < __atomic_impl::fetch_add(&_M_counter, __update, memory_order_release)) return; if (__update > 1) __atomic_notify_address_bare(&_M_counter, true); else __atomic_notify_address_bare(&_M_counter, true); } private: alignas(__detail::__platform_wait_alignment) __detail::__platform_wait_t _M_counter; }; using __semaphore_impl = __atomic_semaphore; } # 38 "/usr/include/c++/13/semaphore" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { template<ptrdiff_t __least_max_value = __semaphore_impl::_S_max> class counting_semaphore { static_assert(__least_max_value >= 0); static_assert(__least_max_value <= __semaphore_impl::_S_max); __semaphore_impl _M_sem; public: explicit counting_semaphore(ptrdiff_t __desired) noexcept : _M_sem(__desired) { } ~counting_semaphore() = default; counting_semaphore(const counting_semaphore&) = delete; counting_semaphore& operator=(const counting_semaphore&) = delete; static constexpr ptrdiff_t max() noexcept { return __least_max_value; } void release(ptrdiff_t __update = 1) noexcept(noexcept(_M_sem._M_release(1))) { _M_sem._M_release(__update); } void acquire() noexcept(noexcept(_M_sem._M_acquire())) { _M_sem._M_acquire(); } bool try_acquire() noexcept(noexcept(_M_sem._M_try_acquire())) { return _M_sem._M_try_acquire(); } template<typename _Rep, typename _Period> bool try_acquire_for(const std::chrono::duration<_Rep, _Period>& __rtime) { return _M_sem._M_try_acquire_for(__rtime); } template<typename _Clock, typename _Dur> bool try_acquire_until(const std::chrono::time_point<_Clock, _Dur>& __atime) { return _M_sem._M_try_acquire_until(__atime); } }; using binary_semaphore = std::counting_semaphore<1>; } # 40 "/usr/include/c++/13/stop_token" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct nostopstate_t { explicit nostopstate_t() = default; }; inline constexpr nostopstate_t nostopstate{}; class stop_source; class stop_token { public: stop_token() noexcept = default; stop_token(const stop_token&) noexcept = default; stop_token(stop_token&&) noexcept = default; ~stop_token() = default; stop_token& operator=(const stop_token&) noexcept = default; stop_token& operator=(stop_token&&) noexcept = default; [[nodiscard]] bool stop_possible() const noexcept { return static_cast<bool>(_M_state) && _M_state->_M_stop_possible(); } [[nodiscard]] bool stop_requested() const noexcept { return static_cast<bool>(_M_state) && _M_state->_M_stop_requested(); } void swap(stop_token& __rhs) noexcept { _M_state.swap(__rhs._M_state); } [[nodiscard]] friend bool operator==(const stop_token& __a, const stop_token& __b) { return __a._M_state == __b._M_state; } friend void swap(stop_token& __lhs, stop_token& __rhs) noexcept { __lhs.swap(__rhs); } private: friend class stop_source; template<typename _Callback> friend class stop_callback; static void _S_yield() noexcept { __builtin_ia32_pause(); this_thread::yield(); } # 134 "/usr/include/c++/13/stop_token" 3 struct _Stop_cb { using __cb_type = void(_Stop_cb*) noexcept; __cb_type* _M_callback; _Stop_cb* _M_prev = nullptr; _Stop_cb* _M_next = nullptr; bool* _M_destroyed = nullptr; binary_semaphore _M_done{0}; [[__gnu__::__nonnull__]] explicit _Stop_cb(__cb_type* __cb) : _M_callback(__cb) { } void _M_run() noexcept { _M_callback(this); } }; struct _Stop_state_t { using value_type = uint32_t; static constexpr value_type _S_stop_requested_bit = 1; static constexpr value_type _S_locked_bit = 2; static constexpr value_type _S_ssrc_counter_inc = 4; std::atomic<value_type> _M_owners{1}; std::atomic<value_type> _M_value{_S_ssrc_counter_inc}; _Stop_cb* _M_head = nullptr; std::thread::id _M_requester; _Stop_state_t() = default; bool _M_stop_possible() noexcept { return _M_value.load(memory_order::acquire) & ~_S_locked_bit; } bool _M_stop_requested() noexcept { return _M_value.load(memory_order::acquire) & _S_stop_requested_bit; } void _M_add_owner() noexcept { _M_owners.fetch_add(1, memory_order::relaxed); } void _M_release_ownership() noexcept { if (_M_owners.fetch_sub(1, memory_order::acq_rel) == 1) delete this; } void _M_add_ssrc() noexcept { _M_value.fetch_add(_S_ssrc_counter_inc, memory_order::relaxed); } void _M_sub_ssrc() noexcept { _M_value.fetch_sub(_S_ssrc_counter_inc, memory_order::release); } void _M_lock() noexcept { auto __old = _M_value.load(memory_order::relaxed); while (!_M_try_lock(__old, memory_order::relaxed)) { } } void _M_unlock() noexcept { _M_value.fetch_sub(_S_locked_bit, memory_order::release); } bool _M_request_stop() noexcept { auto __old = _M_value.load(memory_order::acquire); do { if (__old & _S_stop_requested_bit) return false; } while (!_M_try_lock_and_stop(__old)); _M_requester = this_thread::get_id(); while (_M_head) { bool __last_cb; _Stop_cb* __cb = _M_head; _M_head = _M_head->_M_next; if (_M_head) { _M_head->_M_prev = nullptr; __last_cb = false; } else __last_cb = true; _M_unlock(); bool __destroyed = false; __cb->_M_destroyed = &__destroyed; __cb->_M_run(); if (!__destroyed) { __cb->_M_destroyed = nullptr; if (!__gnu_cxx::__is_single_threaded()) __cb->_M_done.release(); } if (__last_cb) return true; _M_lock(); } _M_unlock(); return true; } [[__gnu__::__nonnull__]] bool _M_register_callback(_Stop_cb* __cb) noexcept { auto __old = _M_value.load(memory_order::acquire); do { if (__old & _S_stop_requested_bit) { __cb->_M_run(); return false; } if (__old < _S_ssrc_counter_inc) return false; } while (!_M_try_lock(__old)); __cb->_M_next = _M_head; if (_M_head) { _M_head->_M_prev = __cb; } _M_head = __cb; _M_unlock(); return true; } [[__gnu__::__nonnull__]] void _M_remove_callback(_Stop_cb* __cb) { _M_lock(); if (__cb == _M_head) { _M_head = _M_head->_M_next; if (_M_head) _M_head->_M_prev = nullptr; _M_unlock(); return; } else if (__cb->_M_prev) { __cb->_M_prev->_M_next = __cb->_M_next; if (__cb->_M_next) __cb->_M_next->_M_prev = __cb->_M_prev; _M_unlock(); return; } _M_unlock(); if (!(_M_requester == this_thread::get_id())) { __cb->_M_done.acquire(); return; } if (__cb->_M_destroyed) *__cb->_M_destroyed = true; } bool _M_try_lock(value_type& __curval, memory_order __failure = memory_order::acquire) noexcept { return _M_do_try_lock(__curval, 0, memory_order::acquire, __failure); } bool _M_try_lock_and_stop(value_type& __curval) noexcept { return _M_do_try_lock(__curval, _S_stop_requested_bit, memory_order::acq_rel, memory_order::acquire); } bool _M_do_try_lock(value_type& __curval, value_type __newbits, memory_order __success, memory_order __failure) noexcept { if (__curval & _S_locked_bit) { _S_yield(); __curval = _M_value.load(__failure); return false; } __newbits |= _S_locked_bit; return _M_value.compare_exchange_weak(__curval, __curval | __newbits, __success, __failure); } }; struct _Stop_state_ref { _Stop_state_ref() = default; [[__gnu__::__access__(__none__, 2)]] explicit _Stop_state_ref(const stop_source&) : _M_ptr(new _Stop_state_t()) { } _Stop_state_ref(const _Stop_state_ref& __other) noexcept : _M_ptr(__other._M_ptr) { if (_M_ptr) _M_ptr->_M_add_owner(); } _Stop_state_ref(_Stop_state_ref&& __other) noexcept : _M_ptr(__other._M_ptr) { __other._M_ptr = nullptr; } _Stop_state_ref& operator=(const _Stop_state_ref& __other) noexcept { if (auto __ptr = __other._M_ptr; __ptr != _M_ptr) { if (__ptr) __ptr->_M_add_owner(); if (_M_ptr) _M_ptr->_M_release_ownership(); _M_ptr = __ptr; } return *this; } _Stop_state_ref& operator=(_Stop_state_ref&& __other) noexcept { _Stop_state_ref(std::move(__other)).swap(*this); return *this; } ~_Stop_state_ref() { if (_M_ptr) _M_ptr->_M_release_ownership(); } void swap(_Stop_state_ref& __other) noexcept { std::swap(_M_ptr, __other._M_ptr); } explicit operator bool() const noexcept { return _M_ptr != nullptr; } _Stop_state_t* operator->() const noexcept { return _M_ptr; } friend bool operator==(const _Stop_state_ref&, const _Stop_state_ref&) = default; # 467 "/usr/include/c++/13/stop_token" 3 private: _Stop_state_t* _M_ptr = nullptr; }; _Stop_state_ref _M_state; explicit stop_token(const _Stop_state_ref& __state) noexcept : _M_state{__state} { } }; class stop_source { public: stop_source() : _M_state(*this) { } explicit stop_source(std::nostopstate_t) noexcept { } stop_source(const stop_source& __other) noexcept : _M_state(__other._M_state) { if (_M_state) _M_state->_M_add_ssrc(); } stop_source(stop_source&&) noexcept = default; stop_source& operator=(const stop_source& __other) noexcept { if (_M_state != __other._M_state) { stop_source __sink(std::move(*this)); _M_state = __other._M_state; if (_M_state) _M_state->_M_add_ssrc(); } return *this; } stop_source& operator=(stop_source&&) noexcept = default; ~stop_source() { if (_M_state) _M_state->_M_sub_ssrc(); } [[nodiscard]] bool stop_possible() const noexcept { return static_cast<bool>(_M_state); } [[nodiscard]] bool stop_requested() const noexcept { return static_cast<bool>(_M_state) && _M_state->_M_stop_requested(); } bool request_stop() const noexcept { if (stop_possible()) return _M_state->_M_request_stop(); return false; } [[nodiscard]] stop_token get_token() const noexcept { return stop_token{_M_state}; } void swap(stop_source& __other) noexcept { _M_state.swap(__other._M_state); } [[nodiscard]] friend bool operator==(const stop_source& __a, const stop_source& __b) noexcept { return __a._M_state == __b._M_state; } friend void swap(stop_source& __lhs, stop_source& __rhs) noexcept { __lhs.swap(__rhs); } private: stop_token::_Stop_state_ref _M_state; }; template<typename _Callback> class [[nodiscard]] stop_callback { static_assert(is_nothrow_destructible_v<_Callback>); static_assert(is_invocable_v<_Callback>); public: using callback_type = _Callback; template<typename _Cb, enable_if_t<is_constructible_v<_Callback, _Cb>, int> = 0> explicit stop_callback(const stop_token& __token, _Cb&& __cb) noexcept(is_nothrow_constructible_v<_Callback, _Cb>) : _M_cb(std::forward<_Cb>(__cb)) { if (auto __state = __token._M_state) { if (__state->_M_register_callback(&_M_cb)) _M_state.swap(__state); } } template<typename _Cb, enable_if_t<is_constructible_v<_Callback, _Cb>, int> = 0> explicit stop_callback(stop_token&& __token, _Cb&& __cb) noexcept(is_nothrow_constructible_v<_Callback, _Cb>) : _M_cb(std::forward<_Cb>(__cb)) { if (auto& __state = __token._M_state) { if (__state->_M_register_callback(&_M_cb)) _M_state.swap(__state); } } ~stop_callback() { if (_M_state) { _M_state->_M_remove_callback(&_M_cb); } } stop_callback(const stop_callback&) = delete; stop_callback& operator=(const stop_callback&) = delete; stop_callback(stop_callback&&) = delete; stop_callback& operator=(stop_callback&&) = delete; private: struct _Cb_impl : stop_token::_Stop_cb { template<typename _Cb> explicit _Cb_impl(_Cb&& __cb) : _Stop_cb(&_S_execute), _M_cb(std::forward<_Cb>(__cb)) { } _Callback _M_cb; [[__gnu__::__nonnull__]] static void _S_execute(_Stop_cb* __that) noexcept { _Callback& __cb = static_cast<_Cb_impl*>(__that)->_M_cb; std::forward<_Callback>(__cb)(); } }; _Cb_impl _M_cb; stop_token::_Stop_state_ref _M_state; }; template<typename _Callback> stop_callback(stop_token, _Callback) -> stop_callback<_Callback>; } # 50 "/usr/include/c++/13/condition_variable" 2 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 67 "/usr/include/c++/13/condition_variable" 3 enum class cv_status { no_timeout, timeout }; class condition_variable { using steady_clock = chrono::steady_clock; using system_clock = chrono::system_clock; using __clock_t = steady_clock; __condvar _M_cond; public: typedef __gthread_cond_t* native_handle_type; condition_variable() noexcept; ~condition_variable() noexcept; condition_variable(const condition_variable&) = delete; condition_variable& operator=(const condition_variable&) = delete; void notify_one() noexcept; void notify_all() noexcept; void wait(unique_lock<mutex>& __lock); template<typename _Predicate> void wait(unique_lock<mutex>& __lock, _Predicate __p) { while (!__p()) wait(__lock); } template<typename _Duration> cv_status wait_until(unique_lock<mutex>& __lock, const chrono::time_point<steady_clock, _Duration>& __atime) { return __wait_until_impl(__lock, __atime); } template<typename _Duration> cv_status wait_until(unique_lock<mutex>& __lock, const chrono::time_point<system_clock, _Duration>& __atime) { return __wait_until_impl(__lock, __atime); } template<typename _Clock, typename _Duration> cv_status wait_until(unique_lock<mutex>& __lock, const chrono::time_point<_Clock, _Duration>& __atime) { static_assert(chrono::is_clock_v<_Clock>); using __s_dur = typename __clock_t::duration; const typename _Clock::time_point __c_entry = _Clock::now(); const __clock_t::time_point __s_entry = __clock_t::now(); const auto __delta = __atime - __c_entry; const auto __s_atime = __s_entry + chrono::__detail::ceil<__s_dur>(__delta); if (__wait_until_impl(__lock, __s_atime) == cv_status::no_timeout) return cv_status::no_timeout; if (_Clock::now() < __atime) return cv_status::no_timeout; return cv_status::timeout; } template<typename _Clock, typename _Duration, typename _Predicate> bool wait_until(unique_lock<mutex>& __lock, const chrono::time_point<_Clock, _Duration>& __atime, _Predicate __p) { while (!__p()) if (wait_until(__lock, __atime) == cv_status::timeout) return __p(); return true; } template<typename _Rep, typename _Period> cv_status wait_for(unique_lock<mutex>& __lock, const chrono::duration<_Rep, _Period>& __rtime) { using __dur = typename steady_clock::duration; return wait_until(__lock, steady_clock::now() + chrono::__detail::ceil<__dur>(__rtime)); } template<typename _Rep, typename _Period, typename _Predicate> bool wait_for(unique_lock<mutex>& __lock, const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) { using __dur = typename steady_clock::duration; return wait_until(__lock, steady_clock::now() + chrono::__detail::ceil<__dur>(__rtime), std::move(__p)); } native_handle_type native_handle() { return _M_cond.native_handle(); } private: template<typename _Dur> cv_status __wait_until_impl(unique_lock<mutex>& __lock, const chrono::time_point<steady_clock, _Dur>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); __gthread_time_t __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; _M_cond.wait_until(*__lock.mutex(), 1, __ts); return (steady_clock::now() < __atime ? cv_status::no_timeout : cv_status::timeout); } template<typename _Dur> cv_status __wait_until_impl(unique_lock<mutex>& __lock, const chrono::time_point<system_clock, _Dur>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); __gthread_time_t __ts = { static_cast<std::time_t>(__s.time_since_epoch().count()), static_cast<long>(__ns.count()) }; _M_cond.wait_until(*__lock.mutex(), __ts); return (system_clock::now() < __atime ? cv_status::no_timeout : cv_status::timeout); } }; void notify_all_at_thread_exit(condition_variable&, unique_lock<mutex>); struct __at_thread_exit_elt { __at_thread_exit_elt* _M_next; void (*_M_cb)(void*); }; inline namespace _V2 { class condition_variable_any { using __clock_t = chrono::steady_clock; condition_variable _M_cond; shared_ptr<mutex> _M_mutex; template<typename _Lock> struct _Unlock { explicit _Unlock(_Lock& __lk) : _M_lock(__lk) { __lk.unlock(); } #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" ~_Unlock() noexcept(false) { if (uncaught_exception()) { try { _M_lock.lock(); } catch(const __cxxabiv1::__forced_unwind&) { throw; } catch(...) { } } else _M_lock.lock(); } #pragma GCC diagnostic pop _Unlock(const _Unlock&) = delete; _Unlock& operator=(const _Unlock&) = delete; _Lock& _M_lock; }; public: condition_variable_any() : _M_mutex(std::make_shared<mutex>()) { } ~condition_variable_any() = default; condition_variable_any(const condition_variable_any&) = delete; condition_variable_any& operator=(const condition_variable_any&) = delete; void notify_one() noexcept { lock_guard<mutex> __lock(*_M_mutex); _M_cond.notify_one(); } void notify_all() noexcept { lock_guard<mutex> __lock(*_M_mutex); _M_cond.notify_all(); } template<typename _Lock> void wait(_Lock& __lock) { shared_ptr<mutex> __mutex = _M_mutex; unique_lock<mutex> __my_lock(*__mutex); _Unlock<_Lock> __unlock(__lock); unique_lock<mutex> __my_lock2(std::move(__my_lock)); _M_cond.wait(__my_lock2); } template<typename _Lock, typename _Predicate> void wait(_Lock& __lock, _Predicate __p) { while (!__p()) wait(__lock); } template<typename _Lock, typename _Clock, typename _Duration> cv_status wait_until(_Lock& __lock, const chrono::time_point<_Clock, _Duration>& __atime) { shared_ptr<mutex> __mutex = _M_mutex; unique_lock<mutex> __my_lock(*__mutex); _Unlock<_Lock> __unlock(__lock); unique_lock<mutex> __my_lock2(std::move(__my_lock)); return _M_cond.wait_until(__my_lock2, __atime); } template<typename _Lock, typename _Clock, typename _Duration, typename _Predicate> bool wait_until(_Lock& __lock, const chrono::time_point<_Clock, _Duration>& __atime, _Predicate __p) { while (!__p()) if (wait_until(__lock, __atime) == cv_status::timeout) return __p(); return true; } template<typename _Lock, typename _Rep, typename _Period> cv_status wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime) { return wait_until(__lock, __clock_t::now() + __rtime); } template<typename _Lock, typename _Rep, typename _Period, typename _Predicate> bool wait_for(_Lock& __lock, const chrono::duration<_Rep, _Period>& __rtime, _Predicate __p) { return wait_until(__lock, __clock_t::now() + __rtime, std::move(__p)); } template <class _Lock, class _Predicate> bool wait(_Lock& __lock, stop_token __stoken, _Predicate __p) { if (__stoken.stop_requested()) { return __p(); } std::stop_callback __cb(__stoken, [this] { notify_all(); }); shared_ptr<mutex> __mutex = _M_mutex; while (!__p()) { unique_lock<mutex> __my_lock(*__mutex); if (__stoken.stop_requested()) { return false; } _Unlock<_Lock> __unlock(__lock); unique_lock<mutex> __my_lock2(std::move(__my_lock)); _M_cond.wait(__my_lock2); } return true; } template <class _Lock, class _Clock, class _Duration, class _Predicate> bool wait_until(_Lock& __lock, stop_token __stoken, const chrono::time_point<_Clock, _Duration>& __abs_time, _Predicate __p) { if (__stoken.stop_requested()) { return __p(); } std::stop_callback __cb(__stoken, [this] { notify_all(); }); shared_ptr<mutex> __mutex = _M_mutex; while (!__p()) { bool __stop; { unique_lock<mutex> __my_lock(*__mutex); if (__stoken.stop_requested()) { return false; } _Unlock<_Lock> __u(__lock); unique_lock<mutex> __my_lock2(std::move(__my_lock)); const auto __status = _M_cond.wait_until(__my_lock2, __abs_time); __stop = (__status == std::cv_status::timeout) || __stoken.stop_requested(); } if (__stop) { return __p(); } } return true; } template <class _Lock, class _Rep, class _Period, class _Predicate> bool wait_for(_Lock& __lock, stop_token __stoken, const chrono::duration<_Rep, _Period>& __rel_time, _Predicate __p) { auto __abst = std::chrono::steady_clock::now() + __rel_time; return wait_until(__lock, std::move(__stoken), __abst, std::move(__p)); } }; } } # 1 "/usr/include/c++/13/thread" 1 3 4 # 32 "/usr/include/c++/13/thread" 3 4 # 33 "/usr/include/c++/13/thread" 3 # 48 "/usr/include/c++/13/thread" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 66 "/usr/include/c++/13/thread" 3 inline strong_ordering operator<=>(thread::id __x, thread::id __y) noexcept { return __x._M_thread <=> __y._M_thread; } # 95 "/usr/include/c++/13/thread" 3 template<class _CharT, class _Traits> inline basic_ostream<_CharT, _Traits>& operator<<(basic_ostream<_CharT, _Traits>& __out, thread::id __id) { if (__id == thread::id()) return __out << "thread::id of a non-executing thread"; else return __out << __id._M_thread; } template<typename _Callable, typename... _Args> constexpr bool __pmf_expects_stop_token = false; template<typename _Callable, typename _Obj, typename... _Args> constexpr bool __pmf_expects_stop_token<_Callable, _Obj, _Args...> = __and_<is_member_function_pointer<remove_reference_t<_Callable>>, is_invocable<_Callable, _Obj, stop_token, _Args...>>::value; # 134 "/usr/include/c++/13/thread" 3 class jthread { public: using id = thread::id; using native_handle_type = thread::native_handle_type; jthread() noexcept : _M_stop_source{nostopstate} { } template<typename _Callable, typename... _Args, typename = enable_if_t<!is_same_v<remove_cvref_t<_Callable>, jthread>>> explicit jthread(_Callable&& __f, _Args&&... __args) : _M_thread{_S_create(_M_stop_source, std::forward<_Callable>(__f), std::forward<_Args>(__args)...)} { } jthread(const jthread&) = delete; jthread(jthread&&) noexcept = default; ~jthread() { if (joinable()) { request_stop(); join(); } } jthread& operator=(const jthread&) = delete; jthread& operator=(jthread&& __other) noexcept { std::jthread(std::move(__other)).swap(*this); return *this; } void swap(jthread& __other) noexcept { std::swap(_M_stop_source, __other._M_stop_source); std::swap(_M_thread, __other._M_thread); } [[nodiscard]] bool joinable() const noexcept { return _M_thread.joinable(); } void join() { _M_thread.join(); } void detach() { _M_thread.detach(); } [[nodiscard]] id get_id() const noexcept { return _M_thread.get_id(); } [[nodiscard]] native_handle_type native_handle() { return _M_thread.native_handle(); } [[nodiscard]] static unsigned hardware_concurrency() noexcept { return thread::hardware_concurrency(); } [[nodiscard]] stop_source get_stop_source() noexcept { return _M_stop_source; } [[nodiscard]] stop_token get_stop_token() const noexcept { return _M_stop_source.get_token(); } bool request_stop() noexcept { return _M_stop_source.request_stop(); } friend void swap(jthread& __lhs, jthread& __rhs) noexcept { __lhs.swap(__rhs); } private: template<typename _Callable, typename... _Args> static thread _S_create(stop_source& __ssrc, _Callable&& __f, _Args&&... __args) { if constexpr (__pmf_expects_stop_token<_Callable, _Args...>) return _S_create_pmf(__ssrc, __f, std::forward<_Args>(__args)...); else if constexpr(is_invocable_v<decay_t<_Callable>, stop_token, decay_t<_Args>...>) return thread{std::forward<_Callable>(__f), __ssrc.get_token(), std::forward<_Args>(__args)...}; else { static_assert(is_invocable_v<decay_t<_Callable>, decay_t<_Args>...>, "std::jthread arguments must be invocable after" " conversion to rvalues"); return thread{std::forward<_Callable>(__f), std::forward<_Args>(__args)...}; } } template<typename _Callable, typename _Obj, typename... _Args> static thread _S_create_pmf(stop_source& __ssrc, _Callable __f, _Obj&& __obj, _Args&&... __args) { return thread{__f, std::forward<_Obj>(__obj), __ssrc.get_token(), std::forward<_Args>(__args)...}; } stop_source _M_stop_source; thread _M_thread; }; } # 19 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/finally.h" 1 # 19 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/finally.h" # 19 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_tools/LP/finally.h" namespace LP { namespace finally_guard_implementation { template<typename Functor> struct finally_guard { finally_guard(Functor f) : functor(std::move(f)) , active(true) {} finally_guard(finally_guard&& other) : functor(std::move(other.functor)) , active(other.active) { other.active = false; } finally_guard& operator=(finally_guard&&) = delete; ~finally_guard() { if (active) functor(); } void release() { active = false; } void runNow() { if (active) functor(); active = false; } Functor functor; bool active; }; } template<typename F> finally_guard_implementation::finally_guard<typename std::decay<F>::type> finally(F&& f) { return { std::forward<F>(f) }; } } # 22 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 namespace LP { std::vector<DTrackBody_> DTrackGetBodies(const ArtController& controller); DTrackBody_ ReadFromFile(std::ifstream& input); std::string AsBodyFile(const DTrackBody_& body); void DTrackUpdateBody(const ArtController& controller, DTrackBody_ body); } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 2 3 4 namespace boost { namespace asio { # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 class any_completion_executor : public execution::any_executor< execution::prefer_only<execution::outstanding_work_t::tracked_t>, execution::prefer_only<execution::outstanding_work_t::untracked_t>, execution::prefer_only<execution::relationship_t::fork_t>, execution::prefer_only<execution::relationship_t::continuation_t> > { public: typedef execution::any_executor< execution::prefer_only<execution::outstanding_work_t::tracked_t>, execution::prefer_only<execution::outstanding_work_t::untracked_t>, execution::prefer_only<execution::relationship_t::fork_t>, execution::prefer_only<execution::relationship_t::continuation_t> > base_type; typedef void supportable_properties_type( execution::prefer_only<execution::outstanding_work_t::tracked_t>, execution::prefer_only<execution::outstanding_work_t::untracked_t>, execution::prefer_only<execution::relationship_t::fork_t>, execution::prefer_only<execution::relationship_t::continuation_t> ); inline any_completion_executor() noexcept; inline any_completion_executor(nullptr_t) noexcept; inline any_completion_executor( const any_completion_executor& e) noexcept; inline any_completion_executor( any_completion_executor&& e) noexcept; # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 template <typename OtherAnyExecutor> any_completion_executor(OtherAnyExecutor e, typename constraint< conditional< !is_same<OtherAnyExecutor, any_completion_executor>::value && is_base_of<execution::detail::any_executor_base, OtherAnyExecutor>::value, typename execution::detail::supportable_properties< 0, supportable_properties_type>::template is_valid_target<OtherAnyExecutor>, false_type >::type::value >::type = 0) : base_type(static_cast<OtherAnyExecutor&&>(e)) { } # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 template <typename OtherAnyExecutor> any_completion_executor(std::nothrow_t, OtherAnyExecutor e, typename constraint< conditional< !is_same<OtherAnyExecutor, any_completion_executor>::value && is_base_of<execution::detail::any_executor_base, OtherAnyExecutor>::value, typename execution::detail::supportable_properties< 0, supportable_properties_type>::template is_valid_target<OtherAnyExecutor>, false_type >::type::value >::type = 0) noexcept : base_type(std::nothrow, static_cast<OtherAnyExecutor&&>(e)) { } inline any_completion_executor(std::nothrow_t, const any_completion_executor& e) noexcept; inline any_completion_executor(std::nothrow_t, any_completion_executor&& e) noexcept; template < ::boost::asio::execution::executor Executor> any_completion_executor(Executor e, typename constraint< conditional< !is_same<Executor, any_completion_executor>::value && !is_base_of<execution::detail::any_executor_base, Executor>::value, execution::detail::is_valid_target_executor< Executor, supportable_properties_type>, false_type >::type::value >::type = 0) : base_type(static_cast<Executor&&>(e)) { } template < ::boost::asio::execution::executor Executor> any_completion_executor(std::nothrow_t, Executor e, typename constraint< conditional< !is_same<Executor, any_completion_executor>::value && !is_base_of<execution::detail::any_executor_base, Executor>::value, execution::detail::is_valid_target_executor< Executor, supportable_properties_type>, false_type >::type::value >::type = 0) noexcept : base_type(std::nothrow, static_cast<Executor&&>(e)) { } inline any_completion_executor& operator=( const any_completion_executor& e) noexcept; inline any_completion_executor& operator=( any_completion_executor&& e) noexcept; inline any_completion_executor& operator=(nullptr_t); inline ~any_completion_executor(); inline void swap(any_completion_executor& other) noexcept; # 224 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 template <typename Property> any_completion_executor require(const Property& p, typename constraint< traits::require_member<const base_type&, const Property&>::is_valid >::type = 0) const { return static_cast<const base_type&>(*this).require(p); } # 242 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 template <typename Property> any_completion_executor prefer(const Property& p, typename constraint< traits::prefer_member<const base_type&, const Property&>::is_valid >::type = 0) const { return static_cast<const base_type&>(*this).prefer(p); } }; template <> inline any_completion_executor any_completion_executor::prefer( const execution::outstanding_work_t::tracked_t&, int) const; template <> inline any_completion_executor any_completion_executor::prefer( const execution::outstanding_work_t::untracked_t&, int) const; template <> inline any_completion_executor any_completion_executor::prefer( const execution::relationship_t::fork_t&, int) const; template <> inline any_completion_executor any_completion_executor::prefer( const execution::relationship_t::continuation_t&, int) const; namespace traits { # 327 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 337 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_completion_executor.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_completion_executor.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_completion_executor.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_completion_executor.ipp" 2 3 4 namespace boost { namespace asio { any_completion_executor::any_completion_executor() noexcept : base_type() { } any_completion_executor::any_completion_executor(nullptr_t) noexcept : base_type(nullptr_t()) { } any_completion_executor::any_completion_executor( const any_completion_executor& e) noexcept : base_type(static_cast<const base_type&>(e)) { } any_completion_executor::any_completion_executor(std::nothrow_t, const any_completion_executor& e) noexcept : base_type(static_cast<const base_type&>(e)) { } any_completion_executor::any_completion_executor( any_completion_executor&& e) noexcept : base_type(static_cast<base_type&&>(e)) { } any_completion_executor::any_completion_executor(std::nothrow_t, any_completion_executor&& e) noexcept : base_type(static_cast<base_type&&>(e)) { } any_completion_executor& any_completion_executor::operator=( const any_completion_executor& e) noexcept { base_type::operator=(static_cast<const base_type&>(e)); return *this; } any_completion_executor& any_completion_executor::operator=( any_completion_executor&& e) noexcept { base_type::operator=(static_cast<base_type&&>(e)); return *this; } any_completion_executor& any_completion_executor::operator=(nullptr_t) { base_type::operator=(nullptr_t()); return *this; } any_completion_executor::~any_completion_executor() { } void any_completion_executor::swap( any_completion_executor& other) noexcept { static_cast<base_type&>(*this).swap(static_cast<base_type&>(other)); } template <> any_completion_executor any_completion_executor::prefer( const execution::outstanding_work_t::tracked_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_completion_executor any_completion_executor::prefer( const execution::outstanding_work_t::untracked_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_completion_executor any_completion_executor::prefer( const execution::relationship_t::fork_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } template <> any_completion_executor any_completion_executor::prefer( const execution::relationship_t::continuation_t& p, int) const { return static_cast<const base_type&>(*this).prefer(p); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/any_completion_executor.ipp" 2 3 4 # 341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_executor.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/recycling_allocator.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/recycling_allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/recycling_allocator.hpp" 2 3 4 namespace boost { namespace asio { template <typename T> class recycling_allocator { public: typedef T value_type; template <typename U> struct rebind { typedef recycling_allocator<U> other; }; constexpr recycling_allocator() noexcept { } template <typename U> constexpr recycling_allocator( const recycling_allocator<U>&) noexcept { } constexpr bool operator==( const recycling_allocator&) const noexcept { return true; } constexpr bool operator!=( const recycling_allocator&) const noexcept { return false; } T* allocate(std::size_t n) { return detail::recycling_allocator<T>().allocate(n); } void deallocate(T* p, std::size_t n) { detail::recycling_allocator<T>().deallocate(p, n); } }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/recycling_allocator.hpp" 3 4 template <> class recycling_allocator<void> { public: typedef void value_type; template <typename U> struct rebind { typedef recycling_allocator<U> other; }; constexpr recycling_allocator() noexcept { } template <typename U> constexpr recycling_allocator( const recycling_allocator<U>&) noexcept { } constexpr bool operator==( const recycling_allocator&) const noexcept { return true; } constexpr bool operator!=( const recycling_allocator&) const noexcept { return false; } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/recycling_allocator.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class any_completion_handler_impl_base { public: template <typename S> explicit any_completion_handler_impl_base(S&& slot) : cancel_state_(static_cast<S&&>(slot), enable_total_cancellation()) { } cancellation_slot get_cancellation_slot() const noexcept { return cancel_state_.slot(); } private: cancellation_state cancel_state_; }; template <typename Handler> class any_completion_handler_impl : public any_completion_handler_impl_base { public: template <typename S, typename H> any_completion_handler_impl(S&& slot, H&& h) : any_completion_handler_impl_base(static_cast<S&&>(slot)), handler_(static_cast<H&&>(h)) { } struct uninit_deleter { typename std::allocator_traits< associated_allocator_t<Handler, boost::asio::recycling_allocator<void>>>::template rebind_alloc<any_completion_handler_impl> alloc; void operator()(any_completion_handler_impl* ptr) { std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1); } }; struct deleter { typename std::allocator_traits< associated_allocator_t<Handler, boost::asio::recycling_allocator<void>>>::template rebind_alloc<any_completion_handler_impl> alloc; void operator()(any_completion_handler_impl* ptr) { std::allocator_traits<decltype(alloc)>::destroy(alloc, ptr); std::allocator_traits<decltype(alloc)>::deallocate(alloc, ptr, 1); } }; template <typename S, typename H> static any_completion_handler_impl* create(S&& slot, H&& h) { uninit_deleter d{ (get_associated_allocator)(h, boost::asio::recycling_allocator<void>())}; std::unique_ptr<any_completion_handler_impl, uninit_deleter> uninit_ptr( std::allocator_traits<decltype(d.alloc)>::allocate(d.alloc, 1), d); any_completion_handler_impl* ptr = new (uninit_ptr.get()) any_completion_handler_impl( static_cast<S&&>(slot), static_cast<H&&>(h)); uninit_ptr.release(); return ptr; } void destroy() { deleter d{ (get_associated_allocator)(handler_, boost::asio::recycling_allocator<void>())}; d(this); } any_completion_executor executor( const any_completion_executor& candidate) const noexcept { return any_completion_executor(std::nothrow, (get_associated_executor)(handler_, candidate)); } any_completion_executor immediate_executor( const any_io_executor& candidate) const noexcept { return any_completion_executor(std::nothrow, (get_associated_immediate_executor)(handler_, candidate)); } void* allocate(std::size_t size, std::size_t align) const { typename std::allocator_traits< associated_allocator_t<Handler, boost::asio::recycling_allocator<void>>>::template rebind_alloc<unsigned char> alloc( (get_associated_allocator)(handler_, boost::asio::recycling_allocator<void>())); std::size_t space = size + align - 1; unsigned char* base = std::allocator_traits<decltype(alloc)>::allocate( alloc, space + sizeof(std::ptrdiff_t)); void* p = base; if (detail::align(align, size, p, space)) { std::ptrdiff_t off = static_cast<unsigned char*>(p) - base; std::memcpy(static_cast<unsigned char*>(p) + size, &off, sizeof(off)); return p; } std::bad_alloc ex; boost::asio::detail::throw_exception(ex); return nullptr; } void deallocate(void* p, std::size_t size, std::size_t align) const { if (p) { typename std::allocator_traits< associated_allocator_t<Handler, boost::asio::recycling_allocator<void>>>::template rebind_alloc<unsigned char> alloc( (get_associated_allocator)(handler_, boost::asio::recycling_allocator<void>())); std::ptrdiff_t off; std::memcpy(&off, static_cast<unsigned char*>(p) + size, sizeof(off)); unsigned char* base = static_cast<unsigned char*>(p) - off; std::allocator_traits<decltype(alloc)>::deallocate( alloc, base, size + align -1 + sizeof(std::ptrdiff_t)); } } template <typename... Args> void call(Args&&... args) { deleter d{ (get_associated_allocator)(handler_, boost::asio::recycling_allocator<void>())}; std::unique_ptr<any_completion_handler_impl, deleter> ptr(this, d); Handler handler(static_cast<Handler&&>(handler_)); ptr.reset(); static_cast<Handler&&>(handler)( static_cast<Args&&>(args)...); } private: Handler handler_; }; template <typename Signature> class any_completion_handler_call_fn; template <typename R, typename... Args> class any_completion_handler_call_fn<R(Args...)> { public: using type = void(*)(any_completion_handler_impl_base*, Args...); constexpr any_completion_handler_call_fn(type fn) : call_fn_(fn) { } void call(any_completion_handler_impl_base* impl, Args... args) const { call_fn_(impl, static_cast<Args&&>(args)...); } template <typename Handler> static void impl(any_completion_handler_impl_base* impl, Args... args) { static_cast<any_completion_handler_impl<Handler>*>(impl)->call( static_cast<Args&&>(args)...); } private: type call_fn_; }; template <typename... Signatures> class any_completion_handler_call_fns; template <typename Signature> class any_completion_handler_call_fns<Signature> : public any_completion_handler_call_fn<Signature> { public: using any_completion_handler_call_fn< Signature>::any_completion_handler_call_fn; using any_completion_handler_call_fn<Signature>::call; }; template <typename Signature, typename... Signatures> class any_completion_handler_call_fns<Signature, Signatures...> : public any_completion_handler_call_fn<Signature>, public any_completion_handler_call_fns<Signatures...> { public: template <typename CallFn, typename... CallFns> constexpr any_completion_handler_call_fns(CallFn fn, CallFns... fns) : any_completion_handler_call_fn<Signature>(fn), any_completion_handler_call_fns<Signatures...>(fns...) { } using any_completion_handler_call_fn<Signature>::call; using any_completion_handler_call_fns<Signatures...>::call; }; class any_completion_handler_destroy_fn { public: using type = void(*)(any_completion_handler_impl_base*); constexpr any_completion_handler_destroy_fn(type fn) : destroy_fn_(fn) { } void destroy(any_completion_handler_impl_base* impl) const { destroy_fn_(impl); } template <typename Handler> static void impl(any_completion_handler_impl_base* impl) { static_cast<any_completion_handler_impl<Handler>*>(impl)->destroy(); } private: type destroy_fn_; }; class any_completion_handler_executor_fn { public: using type = any_completion_executor(*)( any_completion_handler_impl_base*, const any_completion_executor&); constexpr any_completion_handler_executor_fn(type fn) : executor_fn_(fn) { } any_completion_executor executor(any_completion_handler_impl_base* impl, const any_completion_executor& candidate) const { return executor_fn_(impl, candidate); } template <typename Handler> static any_completion_executor impl(any_completion_handler_impl_base* impl, const any_completion_executor& candidate) { return static_cast<any_completion_handler_impl<Handler>*>(impl)->executor( candidate); } private: type executor_fn_; }; class any_completion_handler_immediate_executor_fn { public: using type = any_completion_executor(*)( any_completion_handler_impl_base*, const any_io_executor&); constexpr any_completion_handler_immediate_executor_fn(type fn) : immediate_executor_fn_(fn) { } any_completion_executor immediate_executor( any_completion_handler_impl_base* impl, const any_io_executor& candidate) const { return immediate_executor_fn_(impl, candidate); } template <typename Handler> static any_completion_executor impl(any_completion_handler_impl_base* impl, const any_io_executor& candidate) { return static_cast<any_completion_handler_impl<Handler>*>( impl)->immediate_executor(candidate); } private: type immediate_executor_fn_; }; class any_completion_handler_allocate_fn { public: using type = void*(*)(any_completion_handler_impl_base*, std::size_t, std::size_t); constexpr any_completion_handler_allocate_fn(type fn) : allocate_fn_(fn) { } void* allocate(any_completion_handler_impl_base* impl, std::size_t size, std::size_t align) const { return allocate_fn_(impl, size, align); } template <typename Handler> static void* impl(any_completion_handler_impl_base* impl, std::size_t size, std::size_t align) { return static_cast<any_completion_handler_impl<Handler>*>(impl)->allocate( size, align); } private: type allocate_fn_; }; class any_completion_handler_deallocate_fn { public: using type = void(*)(any_completion_handler_impl_base*, void*, std::size_t, std::size_t); constexpr any_completion_handler_deallocate_fn(type fn) : deallocate_fn_(fn) { } void deallocate(any_completion_handler_impl_base* impl, void* p, std::size_t size, std::size_t align) const { deallocate_fn_(impl, p, size, align); } template <typename Handler> static void impl(any_completion_handler_impl_base* impl, void* p, std::size_t size, std::size_t align) { static_cast<any_completion_handler_impl<Handler>*>(impl)->deallocate( p, size, align); } private: type deallocate_fn_; }; template <typename... Signatures> class any_completion_handler_fn_table : private any_completion_handler_destroy_fn, private any_completion_handler_executor_fn, private any_completion_handler_immediate_executor_fn, private any_completion_handler_allocate_fn, private any_completion_handler_deallocate_fn, private any_completion_handler_call_fns<Signatures...> { public: template <typename... CallFns> constexpr any_completion_handler_fn_table( any_completion_handler_destroy_fn::type destroy_fn, any_completion_handler_executor_fn::type executor_fn, any_completion_handler_immediate_executor_fn::type immediate_executor_fn, any_completion_handler_allocate_fn::type allocate_fn, any_completion_handler_deallocate_fn::type deallocate_fn, CallFns... call_fns) : any_completion_handler_destroy_fn(destroy_fn), any_completion_handler_executor_fn(executor_fn), any_completion_handler_immediate_executor_fn(immediate_executor_fn), any_completion_handler_allocate_fn(allocate_fn), any_completion_handler_deallocate_fn(deallocate_fn), any_completion_handler_call_fns<Signatures...>(call_fns...) { } using any_completion_handler_destroy_fn::destroy; using any_completion_handler_executor_fn::executor; using any_completion_handler_immediate_executor_fn::immediate_executor; using any_completion_handler_allocate_fn::allocate; using any_completion_handler_deallocate_fn::deallocate; using any_completion_handler_call_fns<Signatures...>::call; }; template <typename Handler, typename... Signatures> struct any_completion_handler_fn_table_instance { static constexpr any_completion_handler_fn_table<Signatures...> value = any_completion_handler_fn_table<Signatures...>( &any_completion_handler_destroy_fn::impl<Handler>, &any_completion_handler_executor_fn::impl<Handler>, &any_completion_handler_immediate_executor_fn::impl<Handler>, &any_completion_handler_allocate_fn::impl<Handler>, &any_completion_handler_deallocate_fn::impl<Handler>, &any_completion_handler_call_fn<Signatures>::template impl<Handler>...); }; template <typename Handler, typename... Signatures> constexpr any_completion_handler_fn_table<Signatures...> any_completion_handler_fn_table_instance<Handler, Signatures...>::value; } template <typename... Signatures> class any_completion_handler; template <typename T, typename... Signatures> class any_completion_handler_allocator { private: template <typename...> friend class any_completion_handler; template <typename, typename...> friend class any_completion_handler_allocator; const detail::any_completion_handler_fn_table<Signatures...>* fn_table_; detail::any_completion_handler_impl_base* impl_; constexpr any_completion_handler_allocator(int, const any_completion_handler<Signatures...>& h) noexcept : fn_table_(h.fn_table_), impl_(h.impl_) { } public: typedef T value_type; template <typename U> struct rebind { typedef any_completion_handler_allocator<U, Signatures...> other; }; template <typename U> constexpr any_completion_handler_allocator( const any_completion_handler_allocator<U, Signatures...>& a) noexcept : fn_table_(a.fn_table_), impl_(a.impl_) { } constexpr bool operator==( const any_completion_handler_allocator& other) const noexcept { return fn_table_ == other.fn_table_ && impl_ == other.impl_; } constexpr bool operator!=( const any_completion_handler_allocator& other) const noexcept { return fn_table_ != other.fn_table_ || impl_ != other.impl_; } T* allocate(std::size_t n) const { return static_cast<T*>( fn_table_->allocate( impl_, sizeof(T) * n, alignof(T))); } void deallocate(T* p, std::size_t n) const { fn_table_->deallocate(impl_, p, sizeof(T) * n, alignof(T)); } }; template <typename... Signatures> class any_completion_handler_allocator<void, Signatures...> { private: template <typename...> friend class any_completion_handler; template <typename, typename...> friend class any_completion_handler_allocator; const detail::any_completion_handler_fn_table<Signatures...>* fn_table_; detail::any_completion_handler_impl_base* impl_; constexpr any_completion_handler_allocator(int, const any_completion_handler<Signatures...>& h) noexcept : fn_table_(h.fn_table_), impl_(h.impl_) { } public: typedef void value_type; template <typename U> struct rebind { typedef any_completion_handler_allocator<U, Signatures...> other; }; template <typename U> constexpr any_completion_handler_allocator( const any_completion_handler_allocator<U, Signatures...>& a) noexcept : fn_table_(a.fn_table_), impl_(a.impl_) { } constexpr bool operator==( const any_completion_handler_allocator& other) const noexcept { return fn_table_ == other.fn_table_ && impl_ == other.impl_; } constexpr bool operator!=( const any_completion_handler_allocator& other) const noexcept { return fn_table_ != other.fn_table_ || impl_ != other.impl_; } }; # 613 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 3 4 template <typename... Signatures> class any_completion_handler { private: template <typename, typename...> friend class any_completion_handler_allocator; template <typename, typename> friend struct associated_executor; template <typename, typename> friend struct associated_immediate_executor; const detail::any_completion_handler_fn_table<Signatures...>* fn_table_; detail::any_completion_handler_impl_base* impl_; public: using allocator_type = any_completion_handler_allocator<void, Signatures...>; using cancellation_slot_type = cancellation_slot; constexpr any_completion_handler() : fn_table_(nullptr), impl_(nullptr) { } constexpr any_completion_handler(nullptr_t) : fn_table_(nullptr), impl_(nullptr) { } template <typename H, typename Handler = typename decay<H>::type> any_completion_handler(H&& h, typename constraint< !is_same<typename decay<H>::type, any_completion_handler>::value >::type = 0) : fn_table_( &detail::any_completion_handler_fn_table_instance< Handler, Signatures...>::value), impl_(detail::any_completion_handler_impl<Handler>::create( (get_associated_cancellation_slot)(h), static_cast<H&&>(h))) { } any_completion_handler(any_completion_handler&& other) noexcept : fn_table_(other.fn_table_), impl_(other.impl_) { other.fn_table_ = nullptr; other.impl_ = nullptr; } any_completion_handler& operator=( any_completion_handler&& other) noexcept { any_completion_handler( static_cast<any_completion_handler&&>(other)).swap(*this); return *this; } any_completion_handler& operator=(nullptr_t) noexcept { any_completion_handler().swap(*this); return *this; } ~any_completion_handler() { if (impl_) fn_table_->destroy(impl_); } constexpr explicit operator bool() const noexcept { return impl_ != nullptr; } constexpr bool operator!() const noexcept { return impl_ == nullptr; } void swap(any_completion_handler& other) noexcept { std::swap(fn_table_, other.fn_table_); std::swap(impl_, other.impl_); } allocator_type get_allocator() const noexcept { return allocator_type(0, *this); } cancellation_slot_type get_cancellation_slot() const noexcept { return impl_->get_cancellation_slot(); } # 746 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 3 4 template <typename... Args> auto operator()(Args&&... args) -> decltype(fn_table_->call(impl_, static_cast<Args&&>(args)...)) { if (detail::any_completion_handler_impl_base* impl = impl_) { impl_ = nullptr; return fn_table_->call(impl, static_cast<Args&&>(args)...); } std::bad_function_call ex; boost::asio::detail::throw_exception(ex); } friend constexpr bool operator==( const any_completion_handler& a, nullptr_t) noexcept { return a.impl_ == nullptr; } friend constexpr bool operator==( nullptr_t, const any_completion_handler& b) noexcept { return nullptr == b.impl_; } friend constexpr bool operator!=( const any_completion_handler& a, nullptr_t) noexcept { return a.impl_ != nullptr; } friend constexpr bool operator!=( nullptr_t, const any_completion_handler& b) noexcept { return nullptr != b.impl_; } }; template <typename... Signatures, typename Candidate> struct associated_executor<any_completion_handler<Signatures...>, Candidate> { using type = any_completion_executor; static type get(const any_completion_handler<Signatures...>& handler, const Candidate& candidate = Candidate()) noexcept { return handler.fn_table_->executor(handler.impl_, any_completion_executor(std::nothrow, candidate)); } }; template <typename... Signatures, typename Candidate> struct associated_immediate_executor< any_completion_handler<Signatures...>, Candidate> { using type = any_completion_executor; static type get(const any_completion_handler<Signatures...>& handler, const Candidate& candidate = Candidate()) noexcept { return handler.fn_table_->immediate_executor(handler.impl_, any_io_executor(std::nothrow, candidate)); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 819 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/any_completion_handler.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/append.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/append.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/append.hpp" 2 3 4 namespace boost { namespace asio { template <typename CompletionToken, typename... Values> class append_t { public: template <typename T, typename... V> constexpr explicit append_t( T&& completion_token, V&&... values) : token_(static_cast<T&&>(completion_token)), values_(static_cast<V&&>(values)...) { } CompletionToken token_; std::tuple<Values...> values_; }; template <typename CompletionToken, typename... Values> [[nodiscard]] inline constexpr append_t< typename decay<CompletionToken>::type, typename decay<Values>::type...> append(CompletionToken&& completion_token, Values&&... values) { return append_t< typename decay<CompletionToken>::type, typename decay<Values>::type...>( static_cast<CompletionToken&&>(completion_token), static_cast<Values&&>(values)...); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/append.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/append.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/append.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/utility.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/utility.hpp" 3 4 namespace boost { namespace asio { namespace detail { using std::index_sequence; using std::index_sequence_for; using std::make_index_sequence; # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/utility.hpp" 3 4 } } } # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/append.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/append.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename... Values> class append_handler { public: typedef void result_type; template <typename H> append_handler(H&& handler, std::tuple<Values...> values) : handler_(static_cast<H&&>(handler)), values_(static_cast<std::tuple<Values...>&&>(values)) { } template <typename... Args> void operator()(Args&&... args) { this->invoke( index_sequence_for<Values...>{}, static_cast<Args&&>(args)...); } template <std::size_t... I, typename... Args> void invoke(index_sequence<I...>, Args&&... args) { static_cast<Handler&&>(handler_)( static_cast<Args&&>(args)..., static_cast<Values&&>(std::get<I>(values_))...); } Handler handler_; std::tuple<Values...> values_; }; template <typename Handler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, append_handler<Handler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, append_handler<Handler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler> inline bool asio_handler_is_continuation( append_handler<Handler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, append_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, append_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Signature, typename... Values> struct append_signature; template <typename R, typename... Args, typename... Values> struct append_signature<R(Args...), Values...> { typedef R type(typename decay<Args>::type..., Values...); }; } template <typename CompletionToken, typename... Values, typename Signature> struct async_result< append_t<CompletionToken, Values...>, Signature> : async_result<CompletionToken, typename detail::append_signature< Signature, Values...>::type> { typedef typename detail::append_signature< Signature, Values...>::type signature; template <typename Initiation> struct init_wrapper { init_wrapper(Initiation init) : initiation_(static_cast<Initiation&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, std::tuple<Values...> values, Args&&... args) { static_cast<Initiation&&>(initiation_)( detail::append_handler< typename decay<Handler>::type, Values...>( static_cast<Handler&&>(handler), static_cast<std::tuple<Values...>&&>(values)), static_cast<Args&&>(args)...); } Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<CompletionToken, signature>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<CompletionToken&>(), declval<std::tuple<Values...> >(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<CompletionToken, signature>( init_wrapper<typename decay<Initiation>::type>( static_cast<Initiation&&>(initiation)), token.token_, static_cast<std::tuple<Values...>&&>(token.values_), static_cast<Args&&>(args)...); } }; template <template <typename, typename> class Associator, typename Handler, typename... Values, typename DefaultCandidate> struct associator<Associator, detail::append_handler<Handler, Values...>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::append_handler<Handler, Values...>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::append_handler<Handler, Values...>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 226 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/append.hpp" 2 3 4 # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/append.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 2 3 4 namespace boost { namespace asio { # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 3 4 template <typename CompletionToken> class as_tuple_t { public: struct default_constructor_tag {}; # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 3 4 constexpr as_tuple_t( default_constructor_tag = default_constructor_tag(), CompletionToken token = CompletionToken()) : token_(static_cast<CompletionToken&&>(token)) { } template <typename T> constexpr explicit as_tuple_t( T&& completion_token) : token_(static_cast<T&&>(completion_token)) { } template <typename InnerExecutor> struct executor_with_default : InnerExecutor { typedef as_tuple_t default_completion_token_type; template <typename InnerExecutor1> executor_with_default(const InnerExecutor1& ex, typename constraint< conditional< !is_same<InnerExecutor1, executor_with_default>::value, is_convertible<InnerExecutor1, InnerExecutor>, false_type >::type::value >::type = 0) noexcept : InnerExecutor(ex) { } }; template <typename T> using as_default_on_t = typename T::template rebind_executor< executor_with_default<typename T::executor_type> >::other; template <typename T> static typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other as_default_on(T&& object) { return typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other(static_cast<T&&>(object)); } CompletionToken token_; }; template <typename CompletionToken> [[nodiscard]] inline constexpr as_tuple_t<typename decay<CompletionToken>::type> as_tuple(CompletionToken&& completion_token) { return as_tuple_t<typename decay<CompletionToken>::type>( static_cast<CompletionToken&&>(completion_token)); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 134 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/as_tuple.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/as_tuple.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/as_tuple.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler> class as_tuple_handler { public: typedef void result_type; template <typename CompletionToken> as_tuple_handler(as_tuple_t<CompletionToken> e) : handler_(static_cast<CompletionToken&&>(e.token_)) { } template <typename RedirectedHandler> as_tuple_handler(RedirectedHandler&& h) : handler_(static_cast<RedirectedHandler&&>(h)) { } template <typename... Args> void operator()(Args&&... args) { static_cast<Handler&&>(handler_)( std::make_tuple(static_cast<Args&&>(args)...)); } Handler handler_; }; template <typename Handler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, as_tuple_handler<Handler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, as_tuple_handler<Handler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler> inline bool asio_handler_is_continuation( as_tuple_handler<Handler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, as_tuple_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, as_tuple_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Signature> struct as_tuple_signature; template <typename R, typename... Args> struct as_tuple_signature<R(Args...)> { typedef R type(std::tuple<typename decay<Args>::type...>); }; template <typename R, typename... Args> struct as_tuple_signature<R(Args...) &> { typedef R type(std::tuple<typename decay<Args>::type...>) &; }; template <typename R, typename... Args> struct as_tuple_signature<R(Args...) &&> { typedef R type(std::tuple<typename decay<Args>::type...>) &&; }; template <typename R, typename... Args> struct as_tuple_signature<R(Args...) noexcept> { typedef R type(std::tuple<typename decay<Args>::type...>) noexcept; }; template <typename R, typename... Args> struct as_tuple_signature<R(Args...) & noexcept> { typedef R type(std::tuple<typename decay<Args>::type...>) & noexcept; }; template <typename R, typename... Args> struct as_tuple_signature<R(Args...) && noexcept> { typedef R type(std::tuple<typename decay<Args>::type...>) && noexcept; }; } template <typename CompletionToken, typename... Signatures> struct async_result<as_tuple_t<CompletionToken>, Signatures...> : async_result<CompletionToken, typename detail::as_tuple_signature<Signatures>::type...> { template <typename Initiation> struct init_wrapper { init_wrapper(Initiation init) : initiation_(static_cast<Initiation&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) { static_cast<Initiation&&>(initiation_)( detail::as_tuple_handler< typename decay<Handler>::type>( static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static auto initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) # 218 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/as_tuple.hpp" 3 4 { return async_initiate< typename conditional< is_const<typename remove_reference<RawCompletionToken>::type>::value, const CompletionToken, CompletionToken>::type, typename detail::as_tuple_signature<Signatures>::type...>( init_wrapper<typename decay<Initiation>::type>( static_cast<Initiation&&>(initiation)), token.token_, static_cast<Args&&>(args)...); } }; # 292 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/as_tuple.hpp" 3 4 template <template <typename, typename> class Associator, typename Handler, typename DefaultCandidate> struct associator<Associator, detail::as_tuple_handler<Handler>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::as_tuple_handler<Handler>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::as_tuple_handler<Handler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 321 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/as_tuple.hpp" 2 3 4 # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/as_tuple.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/date_time_fwd.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/date_time_fwd.hpp" 3 4 namespace boost { namespace date_time { template<class T, class TimeSystem> class base_time; } namespace posix_time { class ptime; } } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Time_Traits> class timer_queue : public timer_queue_base { public: typedef typename Time_Traits::time_type time_type; typedef typename Time_Traits::duration_type duration_type; class per_timer_data { public: per_timer_data() : heap_index_((std::numeric_limits<std::size_t>::max)()), next_(0), prev_(0) { } private: friend class timer_queue; op_queue<wait_op> op_queue_; std::size_t heap_index_; per_timer_data* next_; per_timer_data* prev_; }; timer_queue() : timers_(), heap_() { } bool enqueue_timer(const time_type& time, per_timer_data& timer, wait_op* op) { if (timer.prev_ == 0 && &timer != timers_) { if (this->is_positive_infinity(time)) { timer.heap_index_ = (std::numeric_limits<std::size_t>::max)(); } else { timer.heap_index_ = heap_.size(); heap_entry entry = { time, &timer }; heap_.push_back(entry); up_heap(heap_.size() - 1); } timer.next_ = timers_; timer.prev_ = 0; if (timers_) timers_->prev_ = &timer; timers_ = &timer; } timer.op_queue_.push(op); return timer.heap_index_ == 0 && timer.op_queue_.front() == op; } virtual bool empty() const { return timers_ == 0; } virtual long wait_duration_msec(long max_duration) const { if (heap_.empty()) return max_duration; return this->to_msec( Time_Traits::to_posix_duration( Time_Traits::subtract(heap_[0].time_, Time_Traits::now())), max_duration); } virtual long wait_duration_usec(long max_duration) const { if (heap_.empty()) return max_duration; return this->to_usec( Time_Traits::to_posix_duration( Time_Traits::subtract(heap_[0].time_, Time_Traits::now())), max_duration); } virtual void get_ready_timers(op_queue<operation>& ops) { if (!heap_.empty()) { const time_type now = Time_Traits::now(); while (!heap_.empty() && !Time_Traits::less_than(now, heap_[0].time_)) { per_timer_data* timer = heap_[0].timer_; while (wait_op* op = timer->op_queue_.front()) { timer->op_queue_.pop(); op->ec_ = boost::system::error_code(); ops.push(op); } remove_timer(*timer); } } } virtual void get_all_timers(op_queue<operation>& ops) { while (timers_) { per_timer_data* timer = timers_; timers_ = timers_->next_; ops.push(timer->op_queue_); timer->next_ = 0; timer->prev_ = 0; } heap_.clear(); } std::size_t cancel_timer(per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled = (std::numeric_limits<std::size_t>::max)()) { std::size_t num_cancelled = 0; if (timer.prev_ != 0 || &timer == timers_) { while (wait_op* op = (num_cancelled != max_cancelled) ? timer.op_queue_.front() : 0) { op->ec_ = boost::asio::error::operation_aborted; timer.op_queue_.pop(); ops.push(op); ++num_cancelled; } if (timer.op_queue_.empty()) remove_timer(timer); } return num_cancelled; } void cancel_timer_by_key(per_timer_data* timer, op_queue<operation>& ops, void* cancellation_key) { if (timer->prev_ != 0 || timer == timers_) { op_queue<wait_op> other_ops; while (wait_op* op = timer->op_queue_.front()) { timer->op_queue_.pop(); if (op->cancellation_key_ == cancellation_key) { op->ec_ = boost::asio::error::operation_aborted; ops.push(op); } else other_ops.push(op); } timer->op_queue_.push(other_ops); if (timer->op_queue_.empty()) remove_timer(*timer); } } void move_timer(per_timer_data& target, per_timer_data& source) { target.op_queue_.push(source.op_queue_); target.heap_index_ = source.heap_index_; source.heap_index_ = (std::numeric_limits<std::size_t>::max)(); if (target.heap_index_ < heap_.size()) heap_[target.heap_index_].timer_ = ⌖ if (timers_ == &source) timers_ = ⌖ if (source.prev_) source.prev_->next_ = ⌖ if (source.next_) source.next_->prev_= ⌖ target.next_ = source.next_; target.prev_ = source.prev_; source.next_ = 0; source.prev_ = 0; } private: void up_heap(std::size_t index) { while (index > 0) { std::size_t parent = (index - 1) / 2; if (!Time_Traits::less_than(heap_[index].time_, heap_[parent].time_)) break; swap_heap(index, parent); index = parent; } } void down_heap(std::size_t index) { std::size_t child = index * 2 + 1; while (child < heap_.size()) { std::size_t min_child = (child + 1 == heap_.size() || Time_Traits::less_than( heap_[child].time_, heap_[child + 1].time_)) ? child : child + 1; if (Time_Traits::less_than(heap_[index].time_, heap_[min_child].time_)) break; swap_heap(index, min_child); index = min_child; child = index * 2 + 1; } } void swap_heap(std::size_t index1, std::size_t index2) { heap_entry tmp = heap_[index1]; heap_[index1] = heap_[index2]; heap_[index2] = tmp; heap_[index1].timer_->heap_index_ = index1; heap_[index2].timer_->heap_index_ = index2; } void remove_timer(per_timer_data& timer) { std::size_t index = timer.heap_index_; if (!heap_.empty() && index < heap_.size()) { if (index == heap_.size() - 1) { timer.heap_index_ = (std::numeric_limits<std::size_t>::max)(); heap_.pop_back(); } else { swap_heap(index, heap_.size() - 1); timer.heap_index_ = (std::numeric_limits<std::size_t>::max)(); heap_.pop_back(); if (index > 0 && Time_Traits::less_than( heap_[index].time_, heap_[(index - 1) / 2].time_)) up_heap(index); else down_heap(index); } } if (timers_ == &timer) timers_ = timer.next_; if (timer.prev_) timer.prev_->next_ = timer.next_; if (timer.next_) timer.next_->prev_= timer.prev_; timer.next_ = 0; timer.prev_ = 0; } template <typename Time_Type> static bool is_positive_infinity(const Time_Type&) { return false; } template <typename T, typename TimeSystem> static bool is_positive_infinity( const boost::date_time::base_time<T, TimeSystem>& time) { return time.is_pos_infinity(); } template <typename Duration> long to_msec(const Duration& d, long max_duration) const { if (d.ticks() <= 0) return 0; int64_t msec = d.total_milliseconds(); if (msec == 0) return 1; if (msec > max_duration) return max_duration; return static_cast<long>(msec); } template <typename Duration> long to_usec(const Duration& d, long max_duration) const { if (d.ticks() <= 0) return 0; int64_t usec = d.total_microseconds(); if (usec == 0) return 1; if (usec > max_duration) return max_duration; return static_cast<long>(usec); } per_timer_data* timers_; struct heap_entry { time_type time_; per_timer_data* timer_; }; std::vector<heap_entry> heap_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 390 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/time_traits.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/time_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_clock.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_clock.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 3 4 # 1 "/usr/include/c++/13/ctime" 1 3 4 # 39 "/usr/include/c++/13/ctime" 3 4 # 40 "/usr/include/c++/13/ctime" 3 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/compiler_config.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/compiler_config.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/compiler_config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/locale_config.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/compiler_config.hpp" 2 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/compiler_config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/compiler_config.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 3 4 namespace boost { namespace date_time { # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 3 4 struct c_time { public: inline static std::tm* localtime(const std::time_t* t, std::tm* result) { # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 3 4 result = localtime_r(t, result); if (!result) boost::throw_exception(std::runtime_error("could not convert calendar time to local time")); return result; } inline static std::tm* gmtime(const std::time_t* t, std::tm* result) { # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 3 4 result = gmtime_r(t, result); if (!result) boost::throw_exception(std::runtime_error("could not convert calendar time to UTC time")); return result; } # 125 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/c_time.hpp" 3 4 }; }} # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_clock.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/shared_ptr.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/shared_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/requires_cxx11.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/bad_weak_ptr.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/bad_weak_ptr.hpp" 3 4 namespace boost { # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/bad_weak_ptr.hpp" 3 4 class bad_weak_ptr: public std::exception { public: char const * what() const noexcept override { return "tr1::bad_weak_ptr"; } }; # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/bad_weak_ptr.hpp" 3 4 } # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_has_gcc_intrinsics.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_has_sync_intrinsics.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base.hpp" 2 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_typeinfo_.hpp" 1 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_typeinfo_.hpp" 3 4 namespace boost { namespace detail { typedef std::type_info sp_typeinfo_; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base_gcc_atomic.hpp" 3 4 namespace boost { namespace detail { inline void atomic_increment( boost::uint_least32_t * pw ) { __atomic_fetch_add( pw, 1, 0 ); } inline boost::uint_least32_t atomic_decrement( boost::uint_least32_t * pw ) { return __atomic_fetch_sub( pw, 1, 4 ); } inline boost::uint_least32_t atomic_conditional_increment( boost::uint_least32_t * pw ) { boost::uint_least32_t r = __atomic_load_n( pw, 0 ); for( ;; ) { if( r == 0 ) { return r; } if( __atomic_compare_exchange_n( pw, &r, r + 1, true, 0, 0 ) ) { return r; } } } inline boost::uint_least32_t atomic_load( boost::uint_least32_t const * pw ) { return __atomic_load_n( pw, 2 ); } class __attribute__((__visibility__("default"))) sp_counted_base { private: sp_counted_base( sp_counted_base const & ); sp_counted_base & operator= ( sp_counted_base const & ); boost::uint_least32_t use_count_; boost::uint_least32_t weak_count_; public: sp_counted_base(): use_count_( 1 ), weak_count_( 1 ) { } virtual ~sp_counted_base() { } virtual void dispose() = 0; virtual void destroy() { delete this; } virtual void * get_deleter( sp_typeinfo_ const & ti ) = 0; virtual void * get_local_deleter( sp_typeinfo_ const & ti ) = 0; virtual void * get_untyped_deleter() = 0; void add_ref_copy() { atomic_increment( &use_count_ ); } bool add_ref_lock() { return atomic_conditional_increment( &use_count_ ) != 0; } void release() { if( atomic_decrement( &use_count_ ) == 1 ) { dispose(); weak_release(); } } void weak_add_ref() { atomic_increment( &weak_count_ ); } void weak_release() { if( atomic_decrement( &weak_count_ ) == 1 ) { destroy(); } } long use_count() const { return static_cast<long>( atomic_load( &use_count_ ) ); } }; } } # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_base.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_noexcept.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/checked_delete.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/checked_delete.hpp" 3 4 namespace boost { template<class T> inline void checked_delete(T * x) noexcept { static_assert( sizeof(T) != 0, "Type must be complete" ); # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/checked_delete.hpp" 3 4 delete x; } template<class T> inline void checked_array_delete(T * x) noexcept { static_assert( sizeof(T) != 0, "Type must be complete" ); # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/checked_delete.hpp" 3 4 delete [] x; } template<class T> struct checked_deleter { typedef void result_type; typedef T * argument_type; void operator()(T * x) const noexcept { boost::checked_delete(x); } }; template<class T> struct checked_array_deleter { typedef void result_type; typedef T * argument_type; void operator()(T * x) const noexcept { boost::checked_array_delete(x); } }; } # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/addressof.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/addressof.hpp" 3 4 namespace boost { template<class T> constexpr inline T* addressof(T& o) noexcept { return __builtin_addressof(o); } } # 266 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/addressof.hpp" 3 4 namespace boost { template<class T> const T* addressof(const T&&) = delete; } # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 namespace boost { # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 namespace detail { template<class D> class local_sp_deleter; template<class D> D * get_local_deleter( D * ) noexcept { return 0; } template<class D> D * get_local_deleter( local_sp_deleter<D> * p ) noexcept; template<class X> class __attribute__((__visibility__("default"))) sp_counted_impl_p: public sp_counted_base { private: X * px_; sp_counted_impl_p( sp_counted_impl_p const & ); sp_counted_impl_p & operator= ( sp_counted_impl_p const & ); typedef sp_counted_impl_p<X> this_type; public: explicit sp_counted_impl_p( X * px ): px_( px ) { } void dispose() noexcept override { boost::checked_delete( px_ ); } void * get_deleter( sp_typeinfo_ const & ) noexcept override { return 0; } void * get_local_deleter( sp_typeinfo_ const & ) noexcept override { return 0; } void * get_untyped_deleter() noexcept override { return 0; } # 134 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 }; # 143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 template<class P, class D> class __attribute__((__visibility__("default"))) sp_counted_impl_pd: public sp_counted_base { private: P ptr; D del; sp_counted_impl_pd( sp_counted_impl_pd const & ); sp_counted_impl_pd & operator= ( sp_counted_impl_pd const & ); typedef sp_counted_impl_pd<P, D> this_type; public: sp_counted_impl_pd( P p, D & d ): ptr( p ), del( static_cast< D&& >( d ) ) { } # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 sp_counted_impl_pd( P p ): ptr( p ), del() { } void dispose() noexcept override { del( ptr ); } void * get_deleter( sp_typeinfo_ const & ti ) noexcept override { return ti == typeid(D)? &reinterpret_cast<char&>( del ): 0; } void * get_local_deleter( sp_typeinfo_ const & ti ) noexcept override { return ti == typeid(D)? boost::detail::get_local_deleter( boost::addressof( del ) ): 0; } void * get_untyped_deleter() noexcept override { return &reinterpret_cast<char&>( del ); } # 224 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 }; template<class P, class D, class A> class __attribute__((__visibility__("default"))) sp_counted_impl_pda: public sp_counted_base { private: P p_; D d_; A a_; sp_counted_impl_pda( sp_counted_impl_pda const & ); sp_counted_impl_pda & operator= ( sp_counted_impl_pda const & ); typedef sp_counted_impl_pda<P, D, A> this_type; public: sp_counted_impl_pda( P p, D & d, A a ): p_( p ), d_( static_cast< D&& >( d ) ), a_( a ) { } # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_counted_impl.hpp" 3 4 sp_counted_impl_pda( P p, A a ): p_( p ), d_( a ), a_( a ) { } void dispose() noexcept override { d_( p_ ); } void destroy() noexcept override { typedef typename std::allocator_traits<A>::template rebind_alloc< this_type > A2; A2 a2( a_ ); this->~this_type(); a2.deallocate( this, 1 ); } void * get_deleter( sp_typeinfo_ const & ti ) noexcept override { return ti == typeid(D)? &reinterpret_cast<char&>( d_ ): 0; } void * get_local_deleter( sp_typeinfo_ const & ti ) noexcept override { return ti == typeid(D)? boost::detail::get_local_deleter( boost::addressof( d_ ) ): 0; } void * get_untyped_deleter() noexcept override { return &reinterpret_cast<char&>( d_ ); } }; } } # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_disable_deprecated.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 2 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace boost { namespace movelib { template< class T, class D > class unique_ptr; } namespace detail { # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 struct sp_nothrow_tag {}; template< class D > struct sp_inplace_tag { }; template< class T > class sp_reference_wrapper { public: explicit sp_reference_wrapper( T & t): t_( boost::addressof( t ) ) { } template< class Y > void operator()( Y * p ) const { (*t_)( p ); } private: T * t_; }; template< class D > struct sp_convert_reference { typedef D type; }; template< class D > struct sp_convert_reference< D& > { typedef sp_reference_wrapper< D > type; }; template<class T> std::size_t sp_hash_pointer( T* p ) noexcept { boost::uintptr_t v = reinterpret_cast<boost::uintptr_t>( p ); return static_cast<std::size_t>( v + ( v >> 3 ) ); } class weak_count; class shared_count { private: sp_counted_base * pi_; friend class weak_count; public: constexpr shared_count() noexcept: pi_(0) { } constexpr explicit shared_count( sp_counted_base * pi ) noexcept: pi_( pi ) { } template<class Y> explicit shared_count( Y * p ): pi_( 0 ) { try { pi_ = new sp_counted_impl_p<Y>( p ); } catch(...) { boost::checked_delete( p ); throw; } # 169 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template<class P, class D> shared_count( P p, D d ): pi_(0) { try { pi_ = new sp_counted_impl_pd<P, D>(p, d); } catch(...) { d(p); throw; } # 206 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template< class P, class D > shared_count( P p, sp_inplace_tag<D> ): pi_( 0 ) { try { pi_ = new sp_counted_impl_pd< P, D >( p ); } catch( ... ) { D::operator_fn( p ); throw; } # 238 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template<class P, class D, class A> shared_count( P p, D d, A a ): pi_( 0 ) { typedef sp_counted_impl_pda<P, D, A> impl_type; typedef typename std::allocator_traits<A>::template rebind_alloc< impl_type > A2; A2 a2( a ); try { pi_ = a2.allocate( 1 ); ::new( static_cast< void* >( pi_ ) ) impl_type( p, d, a ); } catch(...) { d( p ); if( pi_ != 0 ) { a2.deallocate( static_cast< impl_type* >( pi_ ), 1 ); } throw; } # 295 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template< class P, class D, class A > shared_count( P p, sp_inplace_tag< D >, A a ): pi_( 0 ) { typedef sp_counted_impl_pda< P, D, A > impl_type; typedef typename std::allocator_traits<A>::template rebind_alloc< impl_type > A2; A2 a2( a ); try { pi_ = a2.allocate( 1 ); ::new( static_cast< void* >( pi_ ) ) impl_type( p, a ); } catch(...) { D::operator_fn( p ); if( pi_ != 0 ) { a2.deallocate( static_cast< impl_type* >( pi_ ), 1 ); } throw; } # 352 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 } template<class Y> explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) ) { # 375 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 r.release(); } template<class Y, class D> explicit shared_count( std::unique_ptr<Y, D> & r ): pi_( 0 ) { typedef typename sp_convert_reference<D>::type D2; D2 d2( static_cast<D&&>( r.get_deleter() ) ); pi_ = new sp_counted_impl_pd< typename std::unique_ptr<Y, D>::pointer, D2 >( r.get(), d2 ); # 402 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 r.release(); } template<class Y, class D> explicit shared_count( boost::movelib::unique_ptr<Y, D> & r ): pi_( 0 ) { typedef typename sp_convert_reference<D>::type D2; D2 d2( r.get_deleter() ); pi_ = new sp_counted_impl_pd< typename boost::movelib::unique_ptr<Y, D>::pointer, D2 >( r.get(), d2 ); # 427 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/shared_count.hpp" 3 4 r.release(); } ~shared_count() { if( pi_ != 0 ) pi_->release(); } shared_count(shared_count const & r) noexcept: pi_(r.pi_) { if( pi_ != 0 ) pi_->add_ref_copy(); } shared_count(shared_count && r) noexcept: pi_(r.pi_) { r.pi_ = 0; } explicit shared_count(weak_count const & r); shared_count( weak_count const & r, sp_nothrow_tag ) noexcept; shared_count & operator= (shared_count const & r) noexcept { sp_counted_base * tmp = r.pi_; if( tmp != pi_ ) { if( tmp != 0 ) tmp->add_ref_copy(); if( pi_ != 0 ) pi_->release(); pi_ = tmp; } return *this; } void swap(shared_count & r) noexcept { sp_counted_base * tmp = r.pi_; r.pi_ = pi_; pi_ = tmp; } long use_count() const noexcept { return pi_ != 0? pi_->use_count(): 0; } bool unique() const noexcept { return use_count() == 1; } bool empty() const noexcept { return pi_ == 0; } bool operator==( shared_count const & r ) const noexcept { return pi_ == r.pi_; } bool operator==( weak_count const & r ) const noexcept; bool operator<( shared_count const & r ) const noexcept { return std::less<sp_counted_base *>()( pi_, r.pi_ ); } bool operator<( weak_count const & r ) const noexcept; void * get_deleter( sp_typeinfo_ const & ti ) const noexcept { return pi_? pi_->get_deleter( ti ): 0; } void * get_local_deleter( sp_typeinfo_ const & ti ) const noexcept { return pi_? pi_->get_local_deleter( ti ): 0; } void * get_untyped_deleter() const noexcept { return pi_? pi_->get_untyped_deleter(): 0; } std::size_t hash_value() const noexcept { return sp_hash_pointer( pi_ ); } }; class weak_count { private: sp_counted_base * pi_; friend class shared_count; public: constexpr weak_count() noexcept: pi_(0) { } weak_count(shared_count const & r) noexcept: pi_(r.pi_) { if(pi_ != 0) pi_->weak_add_ref(); } weak_count(weak_count const & r) noexcept: pi_(r.pi_) { if(pi_ != 0) pi_->weak_add_ref(); } weak_count(weak_count && r) noexcept: pi_(r.pi_) { r.pi_ = 0; } ~weak_count() { if(pi_ != 0) pi_->weak_release(); } weak_count & operator= (shared_count const & r) noexcept { sp_counted_base * tmp = r.pi_; if( tmp != pi_ ) { if(tmp != 0) tmp->weak_add_ref(); if(pi_ != 0) pi_->weak_release(); pi_ = tmp; } return *this; } weak_count & operator= (weak_count const & r) noexcept { sp_counted_base * tmp = r.pi_; if( tmp != pi_ ) { if(tmp != 0) tmp->weak_add_ref(); if(pi_ != 0) pi_->weak_release(); pi_ = tmp; } return *this; } void swap(weak_count & r) noexcept { sp_counted_base * tmp = r.pi_; r.pi_ = pi_; pi_ = tmp; } long use_count() const noexcept { return pi_ != 0? pi_->use_count(): 0; } bool empty() const noexcept { return pi_ == 0; } bool operator==( weak_count const & r ) const noexcept { return pi_ == r.pi_; } bool operator==( shared_count const & r ) const noexcept { return pi_ == r.pi_; } bool operator<( weak_count const & r ) const noexcept { return std::less<sp_counted_base *>()( pi_, r.pi_ ); } bool operator<( shared_count const & r ) const noexcept { return std::less<sp_counted_base *>()( pi_, r.pi_ ); } std::size_t hash_value() const noexcept { return sp_hash_pointer( pi_ ); } }; inline shared_count::shared_count( weak_count const & r ): pi_( r.pi_ ) { if( pi_ == 0 || !pi_->add_ref_lock() ) { boost::throw_exception( boost::bad_weak_ptr() ); } } inline shared_count::shared_count( weak_count const & r, sp_nothrow_tag ) noexcept: pi_( r.pi_ ) { if( pi_ != 0 && !pi_->add_ref_lock() ) { pi_ = 0; } } inline bool shared_count::operator==( weak_count const & r ) const noexcept { return pi_ == r.pi_; } inline bool shared_count::operator<( weak_count const & r ) const noexcept { return std::less<sp_counted_base *>()( pi_, r.pi_ ); } } } #pragma GCC diagnostic pop # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_convertible.hpp" 1 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_convertible.hpp" 3 4 namespace boost { namespace detail { template< class Y, class T > struct sp_convertible { typedef char (&yes) [1]; typedef char (&no) [2]; static yes f( T* ); static no f( ... ); enum _vt { value = sizeof( (f)( static_cast<Y*>(0) ) ) == sizeof(yes) }; }; template< class Y, class T > struct sp_convertible< Y, T[] > { enum _vt { value = false }; }; template< class Y, class T > struct sp_convertible< Y[], T[] > { enum _vt { value = sp_convertible< Y[1], T[1] >::value }; }; template< class Y, std::size_t N, class T > struct sp_convertible< Y[N], T[] > { enum _vt { value = sp_convertible< Y[1], T[1] >::value }; }; struct sp_empty { }; template< bool > struct sp_enable_if_convertible_impl; template<> struct sp_enable_if_convertible_impl<true> { typedef sp_empty type; }; template<> struct sp_enable_if_convertible_impl<false> { }; template< class Y, class T > struct sp_enable_if_convertible: public sp_enable_if_convertible_impl< sp_convertible< Y, T >::value > { }; } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_nullptr_t.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_nullptr_t.hpp" 3 4 namespace boost { namespace detail { typedef std::nullptr_t sp_nullptr_t; } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_pool.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_pool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock.hpp" 1 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/yield_k.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/yield_k.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/yield_primitives.hpp" 1 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/detail/sp_thread_pause.hpp" 1 3 4 # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/detail/sp_thread_pause.hpp" 3 4 namespace boost { namespace core { inline __attribute__ ((__always_inline__)) void sp_thread_pause() noexcept { __builtin_ia32_pause(); } } } # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/yield_primitives.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/detail/sp_thread_yield.hpp" 1 3 4 # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/detail/sp_thread_yield.hpp" 3 4 namespace boost { namespace core { inline void sp_thread_yield() noexcept { sched_yield(); } } } # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/yield_primitives.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/detail/sp_thread_sleep.hpp" 1 3 4 # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/detail/sp_thread_sleep.hpp" 3 4 namespace boost { namespace core { inline void sp_thread_sleep() noexcept { int oldst; pthread_setcancelstate( PTHREAD_CANCEL_DISABLE, &oldst ); struct timespec rqtp = { 0, 0 }; rqtp.tv_sec = 0; rqtp.tv_nsec = 1000; nanosleep( &rqtp, 0 ); pthread_setcancelstate( oldst, &oldst ); } } } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/yield_primitives.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/yield_k.hpp" 2 3 4 namespace boost { namespace detail { inline void yield( unsigned k ) { if( k & 1 ) { boost::core::sp_thread_sleep(); } else { boost::core::sp_thread_pause(); } } } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_gcc_atomic.hpp" 3 4 namespace boost { namespace detail { class spinlock { public: union { unsigned char v_; bool align_; }; public: bool try_lock() { return __atomic_test_and_set( &v_, 2 ) == 0; } void lock() { for( unsigned k = 0; !try_lock(); ++k ) { boost::detail::yield( k ); } } void unlock() { __atomic_clear( &v_, 3 ); } public: class scoped_lock { private: spinlock & sp_; scoped_lock( scoped_lock const & ); scoped_lock & operator=( scoped_lock const & ); public: explicit scoped_lock( spinlock & sp ): sp_( sp ) { sp.lock(); } ~scoped_lock() { sp_.unlock(); } }; }; } } # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/spinlock_pool.hpp" 2 3 4 namespace boost { namespace detail { template< int M > class spinlock_pool { private: static spinlock pool_[ 41 ]; public: static spinlock & spinlock_for( void const * pv ) { std::size_t i = reinterpret_cast< std::size_t >( pv ) % 41; return pool_[ i ]; } class scoped_lock { private: spinlock & sp_; scoped_lock( scoped_lock const & ); scoped_lock & operator=( scoped_lock const & ); public: explicit scoped_lock( void const * pv ): sp_( spinlock_for( pv ) ) { sp_.lock(); } ~scoped_lock() { sp_.unlock(); } }; }; template< int M > spinlock spinlock_pool< M >::pool_[ 41 ] = { {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}}, {{0}} }; } } # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" namespace boost { template<class T> class shared_ptr; template<class T> class weak_ptr; template<class T> class enable_shared_from_this; class enable_shared_from_raw; namespace movelib { template< class T, class D > class unique_ptr; } namespace detail { template< class T > struct sp_element { typedef T type; }; template< class T > struct sp_element< T[] > { typedef T type; }; template< class T, std::size_t N > struct sp_element< T[N] > { typedef T type; }; template< class T > struct sp_dereference { typedef T & type; }; template<> struct sp_dereference< void > { typedef void type; }; template<> struct sp_dereference< void const > { typedef void type; }; template<> struct sp_dereference< void volatile > { typedef void type; }; template<> struct sp_dereference< void const volatile > { typedef void type; }; template< class T > struct sp_dereference< T[] > { typedef void type; }; template< class T, std::size_t N > struct sp_dereference< T[N] > { typedef void type; }; template< class T > struct sp_member_access { typedef T * type; }; template< class T > struct sp_member_access< T[] > { typedef void type; }; template< class T, std::size_t N > struct sp_member_access< T[N] > { typedef void type; }; template< class T > struct sp_array_access { typedef void type; }; template< class T > struct sp_array_access< T[] > { typedef T & type; }; template< class T, std::size_t N > struct sp_array_access< T[N] > { typedef T & type; }; template< class T > struct sp_extent { enum _vt { value = 0 }; }; template< class T, std::size_t N > struct sp_extent< T[N] > { enum _vt { value = N }; }; template< class X, class Y, class T > inline void sp_enable_shared_from_this( boost::shared_ptr<X> const * ppx, Y const * py, boost::enable_shared_from_this< T > const * pe ) { if( pe != 0 ) { pe->_internal_accept_owner( ppx, const_cast< Y* >( py ) ); } } template< class X, class Y > inline void sp_enable_shared_from_this( boost::shared_ptr<X> * ppx, Y const * py, boost::enable_shared_from_raw const * pe ); # 237 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 inline void sp_enable_shared_from_this( ... ) { } template< class T, class R > struct sp_enable_if_auto_ptr { }; template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R > { typedef R type; }; template< class Y, class T > inline void sp_assert_convertible() noexcept { typedef char tmp[ sp_convertible< Y, T >::value? 1: -1 ]; (void)sizeof( tmp ); } template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T > * ppx, Y * p, boost::detail::shared_count & pn ) { boost::detail::shared_count( p ).swap( pn ); boost::detail::sp_enable_shared_from_this( ppx, p, p ); } template< class T, class Y > inline void sp_pointer_construct( boost::shared_ptr< T[] > * , Y * p, boost::detail::shared_count & pn ) { sp_assert_convertible< Y[], T[] >(); boost::detail::shared_count( p, boost::checked_array_deleter< T >() ).swap( pn ); } template< class T, std::size_t N, class Y > inline void sp_pointer_construct( boost::shared_ptr< T[N] > * , Y * p, boost::detail::shared_count & pn ) { sp_assert_convertible< Y[N], T[N] >(); boost::detail::shared_count( p, boost::checked_array_deleter< T >() ).swap( pn ); } template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr< T > * ppx, Y * p ) { boost::detail::sp_enable_shared_from_this( ppx, p, p ); } template< class T, class Y > inline void sp_deleter_construct( boost::shared_ptr< T[] > * , Y * ) { sp_assert_convertible< Y[], T[] >(); } template< class T, std::size_t N, class Y > inline void sp_deleter_construct( boost::shared_ptr< T[N] > * , Y * ) { sp_assert_convertible< Y[N], T[N] >(); } struct sp_internal_constructor_tag { }; } # 336 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class T> class shared_ptr { private: typedef shared_ptr<T> this_type; public: typedef typename boost::detail::sp_element< T >::type element_type; constexpr shared_ptr() noexcept : px( 0 ), pn() { } constexpr shared_ptr( boost::detail::sp_nullptr_t ) noexcept : px( 0 ), pn() { } constexpr shared_ptr( boost::detail::sp_internal_constructor_tag, element_type * px_, boost::detail::shared_count const & pn_ ) noexcept : px( px_ ), pn( pn_ ) { } constexpr shared_ptr( boost::detail::sp_internal_constructor_tag, element_type * px_, boost::detail::shared_count && pn_ ) noexcept : px( px_ ), pn( std::move( pn_ ) ) { } template<class Y> explicit shared_ptr( Y * p ): px( p ), pn() { boost::detail::sp_pointer_construct( this, p, pn ); } # 385 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class Y, class D> shared_ptr( Y * p, D d ): px( p ), pn( p, static_cast< D&& >( d ) ) { boost::detail::sp_deleter_construct( this, p ); } # 403 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class D> shared_ptr( boost::detail::sp_nullptr_t p, D d ): px( p ), pn( p, static_cast< D&& >( d ) ) { } # 421 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class Y, class D, class A> shared_ptr( Y * p, D d, A a ): px( p ), pn( p, static_cast< D&& >( d ), a ) { boost::detail::sp_deleter_construct( this, p ); } # 439 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class D, class A> shared_ptr( boost::detail::sp_nullptr_t p, D d, A a ): px( p ), pn( p, static_cast< D&& >( d ), a ) { } # 459 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 shared_ptr( shared_ptr const & r ) noexcept : px( r.px ), pn( r.pn ) { } template<class Y> explicit shared_ptr( weak_ptr<Y> const & r ): pn( r.pn ) { boost::detail::sp_assert_convertible< Y, T >(); px = r.px; } template<class Y> shared_ptr( weak_ptr<Y> const & r, boost::detail::sp_nothrow_tag ) noexcept : px( 0 ), pn( r.pn, boost::detail::sp_nothrow_tag() ) { if( !pn.empty() ) { px = r.px; } } template<class Y> shared_ptr( shared_ptr<Y> const & r, typename boost::detail::sp_enable_if_convertible<Y,T>::type = boost::detail::sp_empty() ) noexcept : px( r.px ), pn( r.pn ) { boost::detail::sp_assert_convertible< Y, T >(); } template< class Y > shared_ptr( shared_ptr<Y> const & r, element_type * p ) noexcept : px( p ), pn( r.pn ) { } template<class Y> explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn() { boost::detail::sp_assert_convertible< Y, T >(); Y * tmp = r.get(); pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( this, tmp ); } template<class Y> shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn() { boost::detail::sp_assert_convertible< Y, T >(); Y * tmp = r.get(); pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( this, tmp ); } # 552 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template< class Y, class D > shared_ptr( std::unique_ptr< Y, D > && r ): px( r.get() ), pn() { boost::detail::sp_assert_convertible< Y, T >(); typename std::unique_ptr< Y, D >::pointer tmp = r.get(); if( tmp != 0 ) { pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( this, tmp ); } } template< class Y, class D > shared_ptr( boost::movelib::unique_ptr< Y, D > r ): px( r.get() ), pn() { boost::detail::sp_assert_convertible< Y, T >(); typename boost::movelib::unique_ptr< Y, D >::pointer tmp = r.get(); if( tmp != 0 ) { pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( this, tmp ); } } shared_ptr & operator=( shared_ptr const & r ) noexcept { this_type(r).swap(*this); return *this; } template<class Y> shared_ptr & operator=(shared_ptr<Y> const & r) noexcept { this_type(r).swap(*this); return *this; } template<class Y> shared_ptr & operator=( std::auto_ptr<Y> & r ) { this_type( r ).swap( *this ); return *this; } template<class Y> shared_ptr & operator=( std::auto_ptr<Y> && r ) { this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this ); return *this; } # 634 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class Y, class D> shared_ptr & operator=( std::unique_ptr<Y, D> && r ) { this_type( static_cast< std::unique_ptr<Y, D> && >( r ) ).swap(*this); return *this; } template<class Y, class D> shared_ptr & operator=( boost::movelib::unique_ptr<Y, D> r ) { boost::detail::sp_assert_convertible< Y, T >(); typename boost::movelib::unique_ptr< Y, D >::pointer p = r.get(); shared_ptr tmp; if( p != 0 ) { tmp.px = p; tmp.pn = boost::detail::shared_count( r ); boost::detail::sp_deleter_construct( &tmp, p ); } tmp.swap( *this ); return *this; } shared_ptr( shared_ptr && r ) noexcept : px( r.px ), pn( static_cast< boost::detail::shared_count && >( r.pn ) ) { r.px = 0; } template<class Y> shared_ptr( shared_ptr<Y> && r, typename boost::detail::sp_enable_if_convertible<Y,T>::type = boost::detail::sp_empty() ) noexcept : px( r.px ), pn( static_cast< boost::detail::shared_count && >( r.pn ) ) { boost::detail::sp_assert_convertible< Y, T >(); r.px = 0; } shared_ptr & operator=( shared_ptr && r ) noexcept { this_type( static_cast< shared_ptr && >( r ) ).swap( *this ); return *this; } template<class Y> shared_ptr & operator=( shared_ptr<Y> && r ) noexcept { this_type( static_cast< shared_ptr<Y> && >( r ) ).swap( *this ); return *this; } template<class Y> shared_ptr( shared_ptr<Y> && r, element_type * p ) noexcept : px( p ), pn() { pn.swap( r.pn ); r.px = 0; } shared_ptr & operator=( boost::detail::sp_nullptr_t ) noexcept { this_type().swap(*this); return *this; } void reset() noexcept { this_type().swap(*this); } template<class Y> void reset( Y * p ) { (static_cast <bool> (p == 0 || p != px) ? void (0) : __assert_fail ("p == 0 || p != px", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp", 732, __extension__ __PRETTY_FUNCTION__)); this_type( p ).swap( *this ); } template<class Y, class D> void reset( Y * p, D d ) { this_type( p, static_cast< D&& >( d ) ).swap( *this ); } template<class Y, class D, class A> void reset( Y * p, D d, A a ) { this_type( p, static_cast< D&& >( d ), a ).swap( *this ); } # 762 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class Y> void reset( shared_ptr<Y> const & r, element_type * p ) noexcept { this_type( r, p ).swap( *this ); } template<class Y> void reset( shared_ptr<Y> && r, element_type * p ) noexcept { this_type( static_cast< shared_ptr<Y> && >( r ), p ).swap( *this ); } typename boost::detail::sp_dereference< T >::type operator* () const noexcept { (static_cast <bool> (px != 0) ? void (0) : __assert_fail ("px != 0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp", 778, __extension__ __PRETTY_FUNCTION__)); return *px; } typename boost::detail::sp_member_access< T >::type operator-> () const noexcept { (static_cast <bool> (px != 0) ? void (0) : __assert_fail ("px != 0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp", 784, __extension__ __PRETTY_FUNCTION__)); return px; } typename boost::detail::sp_array_access< T >::type operator[] ( std::ptrdiff_t i ) const noexcept { (static_cast <bool> (px != 0) ? void (0) : __assert_fail ("px != 0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp", 790, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (i >= 0 && ( i < boost::detail::sp_extent< T >::value || boost::detail::sp_extent< T >::value == 0 )) ? void (0) : __assert_fail ("i >= 0 && ( i < boost::detail::sp_extent< T >::value || boost::detail::sp_extent< T >::value == 0 )", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp", 791, __extension__ __PRETTY_FUNCTION__)); return static_cast< typename boost::detail::sp_array_access< T >::type >( px[ i ] ); } element_type * get() const noexcept { return px; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/operator_bool.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 explicit operator bool () const noexcept { return px != 0; } # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 bool operator! () const noexcept { return px == 0; } # 803 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 bool unique() const noexcept { return pn.unique(); } long use_count() const noexcept { return pn.use_count(); } void swap( shared_ptr & other ) noexcept { std::swap(px, other.px); pn.swap(other.pn); } template<class Y> bool owner_before( shared_ptr<Y> const & rhs ) const noexcept { return pn < rhs.pn; } template<class Y> bool owner_before( weak_ptr<Y> const & rhs ) const noexcept { return pn < rhs.pn; } template<class Y> bool owner_equals( shared_ptr<Y> const & rhs ) const noexcept { return pn == rhs.pn; } template<class Y> bool owner_equals( weak_ptr<Y> const & rhs ) const noexcept { return pn == rhs.pn; } std::size_t owner_hash_value() const noexcept { return pn.hash_value(); } void * _internal_get_deleter( boost::detail::sp_typeinfo_ const & ti ) const noexcept { return pn.get_deleter( ti ); } void * _internal_get_local_deleter( boost::detail::sp_typeinfo_ const & ti ) const noexcept { return pn.get_local_deleter( ti ); } void * _internal_get_untyped_deleter() const noexcept { return pn.get_untyped_deleter(); } bool _internal_equiv( shared_ptr const & r ) const noexcept { return px == r.px && pn == r.pn; } boost::detail::shared_count _internal_count() const noexcept { return pn; } private: template<class Y> friend class shared_ptr; template<class Y> friend class weak_ptr; element_type * px; boost::detail::shared_count pn; }; template<class T, class U> inline bool operator==(shared_ptr<T> const & a, shared_ptr<U> const & b) noexcept { return a.get() == b.get(); } template<class T, class U> inline bool operator!=(shared_ptr<T> const & a, shared_ptr<U> const & b) noexcept { return a.get() != b.get(); } # 911 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class T> inline bool operator==( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) noexcept { return p.get() == 0; } template<class T> inline bool operator==( boost::detail::sp_nullptr_t, shared_ptr<T> const & p ) noexcept { return p.get() == 0; } template<class T> inline bool operator!=( shared_ptr<T> const & p, boost::detail::sp_nullptr_t ) noexcept { return p.get() != 0; } template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, shared_ptr<T> const & p ) noexcept { return p.get() != 0; } template<class T, class U> inline bool operator<(shared_ptr<T> const & a, shared_ptr<U> const & b) noexcept { return a.owner_before( b ); } template<class T> inline void swap(shared_ptr<T> & a, shared_ptr<T> & b) noexcept { a.swap(b); } template<class T, class U> shared_ptr<T> static_pointer_cast( shared_ptr<U> const & r ) noexcept { (void) static_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = static_cast< E* >( r.get() ); return shared_ptr<T>( r, p ); } template<class T, class U> shared_ptr<T> const_pointer_cast( shared_ptr<U> const & r ) noexcept { (void) const_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = const_cast< E* >( r.get() ); return shared_ptr<T>( r, p ); } template<class T, class U> shared_ptr<T> dynamic_pointer_cast( shared_ptr<U> const & r ) noexcept { (void) dynamic_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = dynamic_cast< E* >( r.get() ); return p? shared_ptr<T>( r, p ): shared_ptr<T>(); } template<class T, class U> shared_ptr<T> reinterpret_pointer_cast( shared_ptr<U> const & r ) noexcept { (void) reinterpret_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = reinterpret_cast< E* >( r.get() ); return shared_ptr<T>( r, p ); } template<class T, class U> shared_ptr<T> static_pointer_cast( shared_ptr<U> && r ) noexcept { (void) static_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = static_cast< E* >( r.get() ); return shared_ptr<T>( std::move(r), p ); } template<class T, class U> shared_ptr<T> const_pointer_cast( shared_ptr<U> && r ) noexcept { (void) const_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = const_cast< E* >( r.get() ); return shared_ptr<T>( std::move(r), p ); } template<class T, class U> shared_ptr<T> dynamic_pointer_cast( shared_ptr<U> && r ) noexcept { (void) dynamic_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = dynamic_cast< E* >( r.get() ); return p? shared_ptr<T>( std::move(r), p ): shared_ptr<T>(); } template<class T, class U> shared_ptr<T> reinterpret_pointer_cast( shared_ptr<U> && r ) noexcept { (void) reinterpret_cast< T* >( static_cast< U* >( 0 ) ); typedef typename shared_ptr<T>::element_type E; E * p = reinterpret_cast< E* >( r.get() ); return shared_ptr<T>( std::move(r), p ); } template<class T> inline typename shared_ptr<T>::element_type * get_pointer(shared_ptr<T> const & p) noexcept { return p.get(); } # 1056 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, shared_ptr<Y> const & p) { os << p.get(); return os; } # 1071 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 3 4 namespace detail { template<class D, class T> D * basic_get_deleter( shared_ptr<T> const & p ) noexcept { return static_cast<D *>( p._internal_get_deleter(typeid(D)) ); } template<class D, class T> D * basic_get_local_deleter( D *, shared_ptr<T> const & p ) noexcept; template<class D, class T> D const * basic_get_local_deleter( D const *, shared_ptr<T> const & p ) noexcept; class esft2_deleter_wrapper { private: shared_ptr<void const volatile> deleter_; public: esft2_deleter_wrapper() noexcept { } template< class T > void set_deleter( shared_ptr<T> const & deleter ) noexcept { deleter_ = deleter; } template<typename D> D* get_deleter() const noexcept { return boost::detail::basic_get_deleter<D>( deleter_ ); } template< class T> void operator()( T* ) noexcept { (static_cast <bool> (deleter_.use_count() <= 1) ? void (0) : __assert_fail ("deleter_.use_count() <= 1", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp", 1106, __extension__ __PRETTY_FUNCTION__)); deleter_.reset(); } }; } template<class D, class T> D * get_deleter( shared_ptr<T> const & p ) noexcept { D * d = boost::detail::basic_get_deleter<D>( p ); if( d == 0 ) { d = boost::detail::basic_get_local_deleter( d, p ); } if( d == 0 ) { boost::detail::esft2_deleter_wrapper *del_wrapper = boost::detail::basic_get_deleter<boost::detail::esft2_deleter_wrapper>(p); if(del_wrapper) d = del_wrapper->::boost::detail::esft2_deleter_wrapper::get_deleter<D>(); } return d; } template<class T> inline bool atomic_is_lock_free( shared_ptr<T> const * ) noexcept { return false; } template<class T> shared_ptr<T> atomic_load( shared_ptr<T> const * p ) noexcept { boost::detail::spinlock_pool<2>::scoped_lock lock( p ); return *p; } template<class T, class M> inline shared_ptr<T> atomic_load_explicit( shared_ptr<T> const * p, M ) noexcept { return atomic_load( p ); } template<class T> void atomic_store( shared_ptr<T> * p, shared_ptr<T> r ) noexcept { boost::detail::spinlock_pool<2>::scoped_lock lock( p ); p->swap( r ); } template<class T, class M> inline void atomic_store_explicit( shared_ptr<T> * p, shared_ptr<T> r, M ) noexcept { atomic_store( p, r ); } template<class T> shared_ptr<T> atomic_exchange( shared_ptr<T> * p, shared_ptr<T> r ) noexcept { boost::detail::spinlock & sp = boost::detail::spinlock_pool<2>::spinlock_for( p ); sp.lock(); p->swap( r ); sp.unlock(); return r; } template<class T, class M> shared_ptr<T> inline atomic_exchange_explicit( shared_ptr<T> * p, shared_ptr<T> r, M ) noexcept { return atomic_exchange( p, r ); } template<class T> bool atomic_compare_exchange( shared_ptr<T> * p, shared_ptr<T> * v, shared_ptr<T> w ) noexcept { boost::detail::spinlock & sp = boost::detail::spinlock_pool<2>::spinlock_for( p ); sp.lock(); if( p->_internal_equiv( *v ) ) { p->swap( w ); sp.unlock(); return true; } else { shared_ptr<T> tmp( *p ); sp.unlock(); tmp.swap( *v ); return false; } } template<class T, class M> inline bool atomic_compare_exchange_explicit( shared_ptr<T> * p, shared_ptr<T> * v, shared_ptr<T> w, M, M ) noexcept { return atomic_compare_exchange( p, v, w ); } template< class T > struct hash; template< class T > std::size_t hash_value( boost::shared_ptr<T> const & p ) noexcept { return boost::hash< typename boost::shared_ptr<T>::element_type* >()( p.get() ); } } namespace std { template<class T> struct hash< ::boost::shared_ptr<T> > { std::size_t operator()( ::boost::shared_ptr<T> const & p ) const noexcept { return std::hash< typename ::boost::shared_ptr<T>::element_type* >()( p.get() ); } }; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/local_sp_deleter.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/local_sp_deleter.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/local_counted_base.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/local_counted_base.hpp" 3 4 namespace boost { namespace detail { class __attribute__((__visibility__("default"))) local_counted_base { private: local_counted_base & operator= ( local_counted_base const & ); private: enum count_type { min_ = 0, initial_ = 1, max_ = 2147483647 }; count_type local_use_count_; public: constexpr local_counted_base() noexcept: local_use_count_( initial_ ) { } constexpr local_counted_base( local_counted_base const & ) noexcept: local_use_count_( initial_ ) { } virtual ~local_counted_base() { } virtual void local_cb_destroy() noexcept = 0; virtual boost::detail::shared_count local_cb_get_shared_count() const noexcept = 0; void add_ref() noexcept { # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/local_counted_base.hpp" 3 4 local_use_count_ = static_cast<count_type>( local_use_count_ + 1 ); } void release() noexcept { local_use_count_ = static_cast<count_type>( local_use_count_ - 1 ); if( local_use_count_ == 0 ) { local_cb_destroy(); } } long local_use_count() const noexcept { return local_use_count_; } }; class __attribute__((__visibility__("default"))) local_counted_impl: public local_counted_base { private: local_counted_impl( local_counted_impl const & ); private: shared_count pn_; public: explicit local_counted_impl( shared_count const& pn ) noexcept: pn_( pn ) { } explicit local_counted_impl( shared_count && pn ) noexcept: pn_( std::move(pn) ) { } void local_cb_destroy() noexcept override { delete this; } boost::detail::shared_count local_cb_get_shared_count() const noexcept override { return pn_; } }; class __attribute__((__visibility__("default"))) local_counted_impl_em: public local_counted_base { public: shared_count pn_; void local_cb_destroy() noexcept override { shared_count().swap( pn_ ); } boost::detail::shared_count local_cb_get_shared_count() const noexcept override { return pn_; } }; } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/local_sp_deleter.hpp" 2 3 4 namespace boost { namespace detail { template<class D> class local_sp_deleter: public local_counted_impl_em { private: D d_; public: local_sp_deleter(): d_() { } explicit local_sp_deleter( D const& d ) noexcept: d_( d ) { } explicit local_sp_deleter( D&& d ) noexcept: d_( std::move(d) ) { } D& deleter() noexcept { return d_; } template<class Y> void operator()( Y* p ) noexcept { d_( p ); } void operator()( boost::detail::sp_nullptr_t p ) noexcept { d_( p ); } }; template<> class local_sp_deleter<void> { }; template<class D> D * get_local_deleter( local_sp_deleter<D> * p ) noexcept { return &p->deleter(); } inline void * get_local_deleter( local_sp_deleter<void> * ) noexcept { return 0; } } } # 1243 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/shared_ptr.hpp" 2 3 4 namespace boost { namespace detail { template<class D, class T> D * basic_get_local_deleter( D *, shared_ptr<T> const & p ) noexcept { return static_cast<D *>( p._internal_get_local_deleter( typeid(local_sp_deleter<D>) ) ); } template<class D, class T> D const * basic_get_local_deleter( D const *, shared_ptr<T> const & p ) noexcept { return static_cast<D *>( p._internal_get_local_deleter( typeid(local_sp_deleter<D>) ) ); } } template<class T> shared_ptr( weak_ptr<T> ) -> shared_ptr<T>; template<class T, class D> shared_ptr( std::unique_ptr<T, D> ) -> shared_ptr<T>; } #pragma GCC diagnostic pop # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/shared_ptr.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_clock.hpp" 2 3 4 namespace boost { namespace date_time { template<class time_type> class second_clock { public: typedef typename time_type::date_type date_type; typedef typename time_type::time_duration_type time_duration_type; static time_type local_time() { ::std::time_t t; ::std::time(&t); ::std::tm curr, *curr_ptr; curr_ptr = c_time::localtime(&t, &curr); return create_time(curr_ptr); } static time_type universal_time() { ::std::time_t t; ::std::time(&t); ::std::tm curr, *curr_ptr; curr_ptr = c_time::gmtime(&t, &curr); return create_time(curr_ptr); } template<class time_zone_type> static time_type local_time(boost::shared_ptr<time_zone_type> tz_ptr) { typedef typename time_type::utc_time_type utc_time_type; utc_time_type utc_time = second_clock<utc_time_type>::universal_time(); return time_type(utc_time, tz_ptr); } private: static time_type create_time(::std::tm* current) { date_type d(static_cast<unsigned short>(current->tm_year + 1900), static_cast<unsigned short>(current->tm_mon + 1), static_cast<unsigned short>(current->tm_mday)); time_duration_type td(current->tm_hour, current->tm_min, current->tm_sec); return time_type(d,td); } }; } } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 3 4 namespace boost { namespace date_time { # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 3 4 template<class time_type> class microsec_clock { private: typedef std::tm* (*time_converter)(const std::time_t*, std::tm*); public: typedef typename time_type::date_type date_type; typedef typename time_type::time_duration_type time_duration_type; typedef typename time_duration_type::rep_type resolution_traits_type; template<class time_zone_type> static time_type local_time(shared_ptr<time_zone_type> tz_ptr) { typedef typename time_type::utc_time_type utc_time_type; typedef second_clock<utc_time_type> second_clock; utc_time_type utc_time = second_clock::universal_time(); time_duration_type utc_offset = second_clock::local_time() - utc_time; utc_time = microsec_clock<utc_time_type>::local_time() - utc_offset; return time_type(utc_time, tz_ptr); } static time_type local_time() { return create_time(&c_time::localtime); } static time_type universal_time() { return create_time(&c_time::gmtime); } private: static time_type create_time(time_converter converter) { timeval tv; gettimeofday(&tv, 0); std::time_t t = tv.tv_sec; boost::uint32_t sub_sec = tv.tv_usec; # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 3 4 std::tm curr; std::tm* curr_ptr = converter(&t, &curr); date_type d(static_cast< typename date_type::year_type::value_type >(curr_ptr->tm_year + 1900), static_cast< typename date_type::month_type::value_type >(curr_ptr->tm_mon + 1), static_cast< typename date_type::day_type::value_type >(curr_ptr->tm_mday)); int adjust = static_cast< int >(resolution_traits_type::res_adjust() / 1000000); time_duration_type td(static_cast< typename time_duration_type::hour_type >(curr_ptr->tm_hour), static_cast< typename time_duration_type::min_type >(curr_ptr->tm_min), static_cast< typename time_duration_type::sec_type >(curr_ptr->tm_sec), sub_sec * adjust); return time_type(d,td); } # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/microsec_time_clock.hpp" 3 4 }; } } # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/ptime.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/ptime.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_system.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_system.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/no_tr1/cmath.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/no_tr1/cmath.hpp" 3 4 # 1 "/usr/include/c++/13/cmath" 1 3 4 # 39 "/usr/include/c++/13/cmath" 3 4 # 40 "/usr/include/c++/13/cmath" 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/no_tr1/cmath.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/enable_if.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/enable_if.hpp" 3 4 namespace boost { template<typename T, typename R=void> struct enable_if_has_type { typedef R type; }; template <bool B, class T = void> struct enable_if_c { typedef T type; }; template <class T> struct enable_if_c<false, T> {}; template <class Cond, class T = void> struct enable_if : public enable_if_c<Cond::value, T> {}; template <bool B, class T> struct lazy_enable_if_c { typedef typename T::type type; }; template <class T> struct lazy_enable_if_c<false, T> {}; template <class Cond, class T> struct lazy_enable_if : public lazy_enable_if_c<Cond::value, T> {}; template <bool B, class T = void> struct disable_if_c { typedef T type; }; template <class T> struct disable_if_c<true, T> {}; template <class Cond, class T = void> struct disable_if : public disable_if_c<Cond::value, T> {}; template <bool B, class T> struct lazy_disable_if_c { typedef typename T::type type; }; template <class T> struct lazy_disable_if_c<true, T> {}; template <class Cond, class T> struct lazy_disable_if : public lazy_disable_if_c<Cond::value, T> {}; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/special_defs.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/special_defs.hpp" 3 4 namespace boost { namespace date_time { enum special_values {not_a_date_time, neg_infin, pos_infin, min_date_time, max_date_time, not_special, NumSpecialValues}; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_defs.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_defs.hpp" 3 4 namespace boost { namespace date_time { enum time_resolutions { sec, tenth, hundreth, hundredth = hundreth, milli, ten_thousandth, micro, nano, NumResolutions }; enum dst_flags {not_dst, is_dst, calculate}; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 1 3 4 # 125 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 3 4 namespace boost { namespace operators_impl { namespace operators_detail { template <typename T> class empty_base {}; } template <class T, class U, class B = operators_detail::empty_base<T> > struct less_than_comparable2 : B { friend constexpr bool operator<=(const T& x, const U& y) { return !static_cast<bool>(x > y); } friend constexpr bool operator>=(const T& x, const U& y) { return !static_cast<bool>(x < y); } friend constexpr bool operator>(const U& x, const T& y) { return y < x; } friend constexpr bool operator<(const U& x, const T& y) { return y > x; } friend constexpr bool operator<=(const U& x, const T& y) { return !static_cast<bool>(y < x); } friend constexpr bool operator>=(const U& x, const T& y) { return !static_cast<bool>(y > x); } }; template <class T, class B = operators_detail::empty_base<T> > struct less_than_comparable1 : B { friend constexpr bool operator>(const T& x, const T& y) { return y < x; } friend constexpr bool operator<=(const T& x, const T& y) { return !static_cast<bool>(y < x); } friend constexpr bool operator>=(const T& x, const T& y) { return !static_cast<bool>(x < y); } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct equality_comparable2 : B { friend constexpr bool operator==(const U& y, const T& x) { return x == y; } friend constexpr bool operator!=(const U& y, const T& x) { return !static_cast<bool>(x == y); } friend constexpr bool operator!=(const T& y, const U& x) { return !static_cast<bool>(y == x); } }; template <class T, class B = operators_detail::empty_base<T> > struct equality_comparable1 : B { friend constexpr bool operator!=(const T& x, const T& y) { return !static_cast<bool>(x == y); } }; # 268 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 3 4 template <class T, class U, class B = operators_detail::empty_base<T> > struct multipliable2 : B { friend T operator *( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv *= rhs; return nrv; } friend T operator *( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv *= lhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct multipliable1 : B { friend T operator *( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv *= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct addable2 : B { friend T operator +( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv += rhs; return nrv; } friend T operator +( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv += lhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct addable1 : B { friend T operator +( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv += rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct subtractable2 : B { friend T operator -( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv -= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct subtractable2_left : B { friend T operator -( const U& lhs, const T& rhs ) { T nrv( lhs ); nrv -= rhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct subtractable1 : B { friend T operator -( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv -= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct dividable2 : B { friend T operator /( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv /= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct dividable2_left : B { friend T operator /( const U& lhs, const T& rhs ) { T nrv( lhs ); nrv /= rhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct dividable1 : B { friend T operator /( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv /= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct modable2 : B { friend T operator %( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv %= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct modable2_left : B { friend T operator %( const U& lhs, const T& rhs ) { T nrv( lhs ); nrv %= rhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct modable1 : B { friend T operator %( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv %= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct xorable2 : B { friend T operator ^( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv ^= rhs; return nrv; } friend T operator ^( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv ^= lhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct xorable1 : B { friend T operator ^( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv ^= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct andable2 : B { friend T operator &( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv &= rhs; return nrv; } friend T operator &( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv &= lhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct andable1 : B { friend T operator &( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv &= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct orable2 : B { friend T operator |( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv |= rhs; return nrv; } friend T operator |( const U& lhs, const T& rhs ) { T nrv( rhs ); nrv |= lhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct orable1 : B { friend T operator |( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv |= rhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct incrementable : B { friend T operator++(T& x, int) { incrementable_type nrv(x); ++x; return nrv; } private: typedef T incrementable_type; }; template <class T, class B = operators_detail::empty_base<T> > struct decrementable : B { friend T operator--(T& x, int) { decrementable_type nrv(x); --x; return nrv; } private: typedef T decrementable_type; }; template <class T, class P, class B = operators_detail::empty_base<T> > struct dereferenceable : B { P operator->() const { return ::boost::addressof(*static_cast<const T&>(*this)); } }; template <class T, class I, class R, class B = operators_detail::empty_base<T> > struct indexable : B { R operator[](I n) const { return *(static_cast<const T&>(*this) + n); } }; # 366 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 3 4 template <class T, class U, class B = operators_detail::empty_base<T> > struct left_shiftable2 : B { friend T operator <<( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv <<= rhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct left_shiftable1 : B { friend T operator <<( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv <<= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct right_shiftable2 : B { friend T operator >>( const T& lhs, const U& rhs ) { T nrv( lhs ); nrv >>= rhs; return nrv; } }; template <class T, class B = operators_detail::empty_base<T> > struct right_shiftable1 : B { friend T operator >>( const T& lhs, const T& rhs ) { T nrv( lhs ); nrv >>= rhs; return nrv; } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct equivalent2 : B { friend constexpr bool operator==(const T& x, const U& y) { return !static_cast<bool>(x < y) && !static_cast<bool>(x > y); } }; template <class T, class B = operators_detail::empty_base<T> > struct equivalent1 : B { friend constexpr bool operator==(const T&x, const T&y) { return !static_cast<bool>(x < y) && !static_cast<bool>(y < x); } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct partially_ordered2 : B { friend constexpr bool operator<=(const T& x, const U& y) { return static_cast<bool>(x < y) || static_cast<bool>(x == y); } friend constexpr bool operator>=(const T& x, const U& y) { return static_cast<bool>(x > y) || static_cast<bool>(x == y); } friend constexpr bool operator>(const U& x, const T& y) { return y < x; } friend constexpr bool operator<(const U& x, const T& y) { return y > x; } friend constexpr bool operator<=(const U& x, const T& y) { return static_cast<bool>(y > x) || static_cast<bool>(y == x); } friend constexpr bool operator>=(const U& x, const T& y) { return static_cast<bool>(y < x) || static_cast<bool>(y == x); } }; template <class T, class B = operators_detail::empty_base<T> > struct partially_ordered1 : B { friend constexpr bool operator>(const T& x, const T& y) { return y < x; } friend constexpr bool operator<=(const T& x, const T& y) { return static_cast<bool>(x < y) || static_cast<bool>(x == y); } friend constexpr bool operator>=(const T& x, const T& y) { return static_cast<bool>(y < x) || static_cast<bool>(x == y); } }; template <class T, class U, class B = operators_detail::empty_base<T> > struct totally_ordered2 : less_than_comparable2<T, U , equality_comparable2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct totally_ordered1 : less_than_comparable1<T , equality_comparable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct additive2 : addable2<T, U , subtractable2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct additive1 : addable1<T , subtractable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct multiplicative2 : multipliable2<T, U , dividable2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct multiplicative1 : multipliable1<T , dividable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct integer_multiplicative2 : multiplicative2<T, U , modable2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct integer_multiplicative1 : multiplicative1<T , modable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct arithmetic2 : additive2<T, U , multiplicative2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct arithmetic1 : additive1<T , multiplicative1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct integer_arithmetic2 : additive2<T, U , integer_multiplicative2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct integer_arithmetic1 : additive1<T , integer_multiplicative1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct bitwise2 : xorable2<T, U , andable2<T, U , orable2<T, U, B > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct bitwise1 : xorable1<T , andable1<T , orable1<T, B > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct unit_steppable : incrementable<T , decrementable<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct shiftable2 : left_shiftable2<T, U , right_shiftable2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct shiftable1 : left_shiftable1<T , right_shiftable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct ring_operators2 : additive2<T, U , subtractable2_left<T, U , multipliable2<T, U, B > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct ring_operators1 : additive1<T , multipliable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct ordered_ring_operators2 : ring_operators2<T, U , totally_ordered2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct ordered_ring_operators1 : ring_operators1<T , totally_ordered1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct field_operators2 : ring_operators2<T, U , dividable2<T, U , dividable2_left<T, U, B > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct field_operators1 : ring_operators1<T , dividable1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct ordered_field_operators2 : field_operators2<T, U , totally_ordered2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct ordered_field_operators1 : field_operators1<T , totally_ordered1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct euclidian_ring_operators2 : ring_operators2<T, U , dividable2<T, U , dividable2_left<T, U , modable2<T, U , modable2_left<T, U, B > > > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct euclidian_ring_operators1 : ring_operators1<T , dividable1<T , modable1<T, B > > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct ordered_euclidian_ring_operators2 : totally_ordered2<T, U , euclidian_ring_operators2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct ordered_euclidian_ring_operators1 : totally_ordered1<T , euclidian_ring_operators1<T, B > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct euclidean_ring_operators2 : ring_operators2<T, U , dividable2<T, U , dividable2_left<T, U , modable2<T, U , modable2_left<T, U, B > > > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct euclidean_ring_operators1 : ring_operators1<T , dividable1<T , modable1<T, B > > > {}; template <class T, class U, class B = operators_detail::empty_base<T> > struct ordered_euclidean_ring_operators2 : totally_ordered2<T, U , euclidean_ring_operators2<T, U, B > > {}; template <class T, class B = operators_detail::empty_base<T> > struct ordered_euclidean_ring_operators1 : totally_ordered1<T , euclidean_ring_operators1<T, B > > {}; template <class T, class P, class B = operators_detail::empty_base<T> > struct input_iteratable : equality_comparable1<T , incrementable<T , dereferenceable<T, P, B > > > {}; template <class T, class B = operators_detail::empty_base<T> > struct output_iteratable : incrementable<T, B > {}; template <class T, class P, class B = operators_detail::empty_base<T> > struct forward_iteratable : input_iteratable<T, P, B > {}; template <class T, class P, class B = operators_detail::empty_base<T> > struct bidirectional_iteratable : forward_iteratable<T, P , decrementable<T, B > > {}; template <class T, class P, class D, class R, class B = operators_detail::empty_base<T> > struct random_access_iteratable : bidirectional_iteratable<T, P , less_than_comparable1<T , additive2<T, D , indexable<T, D, R, B > > > > {}; # 671 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 3 4 namespace operators_detail { struct true_t {}; struct false_t {}; } # 688 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 3 4 template<class T> struct is_chained_base { typedef operators_detail::false_t value; }; # 766 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/operators.hpp" 3 4 template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct less_than_comparable; template<class T, class U, class B> struct less_than_comparable<T, U, B, operators_detail::false_t> : less_than_comparable2<T, U, B> {}; template<class T, class U> struct less_than_comparable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : less_than_comparable1<T, U> {}; template <class T, class B> struct less_than_comparable<T, T, B, operators_detail::false_t> : less_than_comparable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< less_than_comparable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< less_than_comparable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< less_than_comparable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct equality_comparable; template<class T, class U, class B> struct equality_comparable<T, U, B, operators_detail::false_t> : equality_comparable2<T, U, B> {}; template<class T, class U> struct equality_comparable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : equality_comparable1<T, U> {}; template <class T, class B> struct equality_comparable<T, T, B, operators_detail::false_t> : equality_comparable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< equality_comparable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< equality_comparable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< equality_comparable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct multipliable; template<class T, class U, class B> struct multipliable<T, U, B, operators_detail::false_t> : multipliable2<T, U, B> {}; template<class T, class U> struct multipliable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : multipliable1<T, U> {}; template <class T, class B> struct multipliable<T, T, B, operators_detail::false_t> : multipliable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< multipliable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< multipliable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< multipliable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct addable; template<class T, class U, class B> struct addable<T, U, B, operators_detail::false_t> : addable2<T, U, B> {}; template<class T, class U> struct addable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : addable1<T, U> {}; template <class T, class B> struct addable<T, T, B, operators_detail::false_t> : addable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< addable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< addable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< addable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct subtractable; template<class T, class U, class B> struct subtractable<T, U, B, operators_detail::false_t> : subtractable2<T, U, B> {}; template<class T, class U> struct subtractable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : subtractable1<T, U> {}; template <class T, class B> struct subtractable<T, T, B, operators_detail::false_t> : subtractable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< subtractable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< subtractable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< subtractable1<T, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< subtractable2_left<T, U, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct dividable; template<class T, class U, class B> struct dividable<T, U, B, operators_detail::false_t> : dividable2<T, U, B> {}; template<class T, class U> struct dividable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : dividable1<T, U> {}; template <class T, class B> struct dividable<T, T, B, operators_detail::false_t> : dividable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< dividable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< dividable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< dividable1<T, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< dividable2_left<T, U, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct modable; template<class T, class U, class B> struct modable<T, U, B, operators_detail::false_t> : modable2<T, U, B> {}; template<class T, class U> struct modable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : modable1<T, U> {}; template <class T, class B> struct modable<T, T, B, operators_detail::false_t> : modable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< modable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< modable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< modable1<T, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< modable2_left<T, U, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct xorable; template<class T, class U, class B> struct xorable<T, U, B, operators_detail::false_t> : xorable2<T, U, B> {}; template<class T, class U> struct xorable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : xorable1<T, U> {}; template <class T, class B> struct xorable<T, T, B, operators_detail::false_t> : xorable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< xorable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< xorable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< xorable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct andable; template<class T, class U, class B> struct andable<T, U, B, operators_detail::false_t> : andable2<T, U, B> {}; template<class T, class U> struct andable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : andable1<T, U> {}; template <class T, class B> struct andable<T, T, B, operators_detail::false_t> : andable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< andable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< andable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< andable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct orable; template<class T, class U, class B> struct orable<T, U, B, operators_detail::false_t> : orable2<T, U, B> {}; template<class T, class U> struct orable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : orable1<T, U> {}; template <class T, class B> struct orable<T, T, B, operators_detail::false_t> : orable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< orable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< orable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< orable1<T, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< incrementable<T, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< decrementable<T, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< dereferenceable<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class V, class B> struct is_chained_base< indexable<T, U, V, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct left_shiftable; template<class T, class U, class B> struct left_shiftable<T, U, B, operators_detail::false_t> : left_shiftable2<T, U, B> {}; template<class T, class U> struct left_shiftable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : left_shiftable1<T, U> {}; template <class T, class B> struct left_shiftable<T, T, B, operators_detail::false_t> : left_shiftable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< left_shiftable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< left_shiftable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< left_shiftable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct right_shiftable; template<class T, class U, class B> struct right_shiftable<T, U, B, operators_detail::false_t> : right_shiftable2<T, U, B> {}; template<class T, class U> struct right_shiftable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : right_shiftable1<T, U> {}; template <class T, class B> struct right_shiftable<T, T, B, operators_detail::false_t> : right_shiftable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< right_shiftable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< right_shiftable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< right_shiftable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct equivalent; template<class T, class U, class B> struct equivalent<T, U, B, operators_detail::false_t> : equivalent2<T, U, B> {}; template<class T, class U> struct equivalent<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : equivalent1<T, U> {}; template <class T, class B> struct equivalent<T, T, B, operators_detail::false_t> : equivalent1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< equivalent<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< equivalent2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< equivalent1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct partially_ordered; template<class T, class U, class B> struct partially_ordered<T, U, B, operators_detail::false_t> : partially_ordered2<T, U, B> {}; template<class T, class U> struct partially_ordered<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : partially_ordered1<T, U> {}; template <class T, class B> struct partially_ordered<T, T, B, operators_detail::false_t> : partially_ordered1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< partially_ordered<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< partially_ordered2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< partially_ordered1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct totally_ordered; template<class T, class U, class B> struct totally_ordered<T, U, B, operators_detail::false_t> : totally_ordered2<T, U, B> {}; template<class T, class U> struct totally_ordered<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : totally_ordered1<T, U> {}; template <class T, class B> struct totally_ordered<T, T, B, operators_detail::false_t> : totally_ordered1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< totally_ordered<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< totally_ordered2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< totally_ordered1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct additive; template<class T, class U, class B> struct additive<T, U, B, operators_detail::false_t> : additive2<T, U, B> {}; template<class T, class U> struct additive<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : additive1<T, U> {}; template <class T, class B> struct additive<T, T, B, operators_detail::false_t> : additive1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< additive<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< additive2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< additive1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct multiplicative; template<class T, class U, class B> struct multiplicative<T, U, B, operators_detail::false_t> : multiplicative2<T, U, B> {}; template<class T, class U> struct multiplicative<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : multiplicative1<T, U> {}; template <class T, class B> struct multiplicative<T, T, B, operators_detail::false_t> : multiplicative1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< multiplicative<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< multiplicative2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< multiplicative1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct integer_multiplicative; template<class T, class U, class B> struct integer_multiplicative<T, U, B, operators_detail::false_t> : integer_multiplicative2<T, U, B> {}; template<class T, class U> struct integer_multiplicative<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : integer_multiplicative1<T, U> {}; template <class T, class B> struct integer_multiplicative<T, T, B, operators_detail::false_t> : integer_multiplicative1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< integer_multiplicative<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< integer_multiplicative2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< integer_multiplicative1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct arithmetic; template<class T, class U, class B> struct arithmetic<T, U, B, operators_detail::false_t> : arithmetic2<T, U, B> {}; template<class T, class U> struct arithmetic<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : arithmetic1<T, U> {}; template <class T, class B> struct arithmetic<T, T, B, operators_detail::false_t> : arithmetic1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< arithmetic<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< arithmetic2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< arithmetic1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct integer_arithmetic; template<class T, class U, class B> struct integer_arithmetic<T, U, B, operators_detail::false_t> : integer_arithmetic2<T, U, B> {}; template<class T, class U> struct integer_arithmetic<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : integer_arithmetic1<T, U> {}; template <class T, class B> struct integer_arithmetic<T, T, B, operators_detail::false_t> : integer_arithmetic1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< integer_arithmetic<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< integer_arithmetic2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< integer_arithmetic1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct bitwise; template<class T, class U, class B> struct bitwise<T, U, B, operators_detail::false_t> : bitwise2<T, U, B> {}; template<class T, class U> struct bitwise<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : bitwise1<T, U> {}; template <class T, class B> struct bitwise<T, T, B, operators_detail::false_t> : bitwise1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< bitwise<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< bitwise2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< bitwise1<T, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< unit_steppable<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct shiftable; template<class T, class U, class B> struct shiftable<T, U, B, operators_detail::false_t> : shiftable2<T, U, B> {}; template<class T, class U> struct shiftable<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : shiftable1<T, U> {}; template <class T, class B> struct shiftable<T, T, B, operators_detail::false_t> : shiftable1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< shiftable<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< shiftable2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< shiftable1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct ring_operators; template<class T, class U, class B> struct ring_operators<T, U, B, operators_detail::false_t> : ring_operators2<T, U, B> {}; template<class T, class U> struct ring_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : ring_operators1<T, U> {}; template <class T, class B> struct ring_operators<T, T, B, operators_detail::false_t> : ring_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< ring_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< ring_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< ring_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct ordered_ring_operators; template<class T, class U, class B> struct ordered_ring_operators<T, U, B, operators_detail::false_t> : ordered_ring_operators2<T, U, B> {}; template<class T, class U> struct ordered_ring_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : ordered_ring_operators1<T, U> {}; template <class T, class B> struct ordered_ring_operators<T, T, B, operators_detail::false_t> : ordered_ring_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< ordered_ring_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< ordered_ring_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< ordered_ring_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct field_operators; template<class T, class U, class B> struct field_operators<T, U, B, operators_detail::false_t> : field_operators2<T, U, B> {}; template<class T, class U> struct field_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : field_operators1<T, U> {}; template <class T, class B> struct field_operators<T, T, B, operators_detail::false_t> : field_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< field_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< field_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< field_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct ordered_field_operators; template<class T, class U, class B> struct ordered_field_operators<T, U, B, operators_detail::false_t> : ordered_field_operators2<T, U, B> {}; template<class T, class U> struct ordered_field_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : ordered_field_operators1<T, U> {}; template <class T, class B> struct ordered_field_operators<T, T, B, operators_detail::false_t> : ordered_field_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< ordered_field_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< ordered_field_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< ordered_field_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct euclidian_ring_operators; template<class T, class U, class B> struct euclidian_ring_operators<T, U, B, operators_detail::false_t> : euclidian_ring_operators2<T, U, B> {}; template<class T, class U> struct euclidian_ring_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : euclidian_ring_operators1<T, U> {}; template <class T, class B> struct euclidian_ring_operators<T, T, B, operators_detail::false_t> : euclidian_ring_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< euclidian_ring_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< euclidian_ring_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< euclidian_ring_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct ordered_euclidian_ring_operators; template<class T, class U, class B> struct ordered_euclidian_ring_operators<T, U, B, operators_detail::false_t> : ordered_euclidian_ring_operators2<T, U, B> {}; template<class T, class U> struct ordered_euclidian_ring_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : ordered_euclidian_ring_operators1<T, U> {}; template <class T, class B> struct ordered_euclidian_ring_operators<T, T, B, operators_detail::false_t> : ordered_euclidian_ring_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< ordered_euclidian_ring_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< ordered_euclidian_ring_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< ordered_euclidian_ring_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct euclidean_ring_operators; template<class T, class U, class B> struct euclidean_ring_operators<T, U, B, operators_detail::false_t> : euclidean_ring_operators2<T, U, B> {}; template<class T, class U> struct euclidean_ring_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : euclidean_ring_operators1<T, U> {}; template <class T, class B> struct euclidean_ring_operators<T, T, B, operators_detail::false_t> : euclidean_ring_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< euclidean_ring_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< euclidean_ring_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< euclidean_ring_operators1<T, B> > { typedef operators_detail::true_t value; }; template <class T ,class U = T ,class B = operators_detail::empty_base<T> ,class O = typename is_chained_base<U>::value > struct ordered_euclidean_ring_operators; template<class T, class U, class B> struct ordered_euclidean_ring_operators<T, U, B, operators_detail::false_t> : ordered_euclidean_ring_operators2<T, U, B> {}; template<class T, class U> struct ordered_euclidean_ring_operators<T, U, operators_detail::empty_base<T>, operators_detail::true_t> : ordered_euclidean_ring_operators1<T, U> {}; template <class T, class B> struct ordered_euclidean_ring_operators<T, T, B, operators_detail::false_t> : ordered_euclidean_ring_operators1<T, B> {}; template<class T, class U, class B, class O> struct is_chained_base< ordered_euclidean_ring_operators<T, U, B, O> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< ordered_euclidean_ring_operators2<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< ordered_euclidean_ring_operators1<T, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< input_iteratable<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class B> struct is_chained_base< output_iteratable<T, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< forward_iteratable<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class B> struct is_chained_base< bidirectional_iteratable<T, U, B> > { typedef operators_detail::true_t value; }; template<class T, class U, class V, class W, class B> struct is_chained_base< random_access_iteratable<T, U, V, W, B> > { typedef operators_detail::true_t value; }; template <class T, class U> struct operators2 : totally_ordered2<T,U , integer_arithmetic2<T,U , bitwise2<T,U > > > {}; template <class T, class U = T> struct operators : operators2<T, U> {}; template <class T> struct operators<T, T> : totally_ordered<T , integer_arithmetic<T , bitwise<T , unit_steppable<T > > > > {}; template <class Category, class T, class Distance = std::ptrdiff_t, class Pointer = T*, class Reference = T&> struct iterator_helper { typedef Category iterator_category; typedef T value_type; typedef Distance difference_type; typedef Pointer pointer; typedef Reference reference; }; template <class T, class V, class D = std::ptrdiff_t, class P = V const *, class R = V const &> struct input_iterator_helper : input_iteratable<T, P , iterator_helper<std::input_iterator_tag, V, D, P, R > > {}; template<class T> struct output_iterator_helper : output_iteratable<T , iterator_helper<std::output_iterator_tag, void, void, void, void > > { T& operator*() { return static_cast<T&>(*this); } T& operator++() { return static_cast<T&>(*this); } }; template <class T, class V, class D = std::ptrdiff_t, class P = V*, class R = V&> struct forward_iterator_helper : forward_iteratable<T, P , iterator_helper<std::forward_iterator_tag, V, D, P, R > > {}; template <class T, class V, class D = std::ptrdiff_t, class P = V*, class R = V&> struct bidirectional_iterator_helper : bidirectional_iteratable<T, P , iterator_helper<std::bidirectional_iterator_tag, V, D, P, R > > {}; template <class T, class V, class D = std::ptrdiff_t, class P = V*, class R = V&> struct random_access_iterator_helper : random_access_iteratable<T, P, D, R , iterator_helper<std::random_access_iterator_tag, V, D, P, R > > { friend D requires_difference_operator(const T& x, const T& y) { return x - y; } }; } using namespace operators_impl; } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/static_assert.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_integral.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_integral.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/integral_constant.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/integral_constant.hpp" 3 4 namespace mpl_{ template <bool B> struct bool_; template <class I, I val> struct integral_c; struct integral_c_tag; } namespace boost { namespace mpl { using ::mpl_::bool_; using ::mpl_::integral_c; using ::mpl_::integral_c_tag; } } namespace boost{ template <class T, T val> struct integral_constant { typedef mpl::integral_c_tag tag; typedef T value_type; typedef integral_constant<T, val> type; static const T value = val; operator const mpl::integral_c<T, val>& ()const { static const char data[sizeof(long)] = { 0 }; static const void* pdata = data; return *(reinterpret_cast<const mpl::integral_c<T, val>*>(pdata)); } constexpr operator T()const { return val; } }; template <class T, T val> T const integral_constant<T, val>::value; template <bool val> struct integral_constant<bool, val> { typedef mpl::integral_c_tag tag; typedef bool value_type; typedef integral_constant<bool, val> type; static const bool value = val; operator const mpl::bool_<val>& ()const { static const char data[sizeof(long)] = { 0 }; static const void* pdata = data; return *(reinterpret_cast<const mpl::bool_<val>*>(pdata)); } constexpr operator bool()const { return val; } }; template <bool val> bool const integral_constant<bool, val>::value; typedef integral_constant<bool, true> true_type; typedef integral_constant<bool, false> false_type; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_integral.hpp" 2 3 4 namespace boost { template <class T> struct is_integral : public false_type {}; template <class T> struct is_integral<const T> : public is_integral<T> {}; template <class T> struct is_integral<volatile const T> : public is_integral<T>{}; template <class T> struct is_integral<volatile T> : public is_integral<T>{}; template<> struct is_integral<unsigned char> : public true_type {}; template<> struct is_integral<unsigned short> : public true_type{}; template<> struct is_integral<unsigned int> : public true_type{}; template<> struct is_integral<unsigned long> : public true_type{}; template<> struct is_integral<signed char> : public true_type{}; template<> struct is_integral<short> : public true_type{}; template<> struct is_integral<int> : public true_type{}; template<> struct is_integral<long> : public true_type{}; template<> struct is_integral<char> : public true_type{}; template<> struct is_integral<bool> : public true_type{}; template<> struct is_integral<wchar_t> : public true_type{}; # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_integral.hpp" 3 4 template<> struct is_integral< ::boost::ulong_long_type> : public true_type{}; template<> struct is_integral< ::boost::long_long_type> : public true_type{}; template<> struct is_integral<boost::int128_type> : public true_type{}; template<> struct is_integral<boost::uint128_type> : public true_type{}; template<> struct is_integral<char16_t> : public true_type{}; template<> struct is_integral<char32_t> : public true_type{}; template<> struct is_integral<char8_t> : public true_type{}; } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 2 3 4 namespace boost { namespace date_time { # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_duration.hpp" 3 4 template<class T, typename rep_type> class __attribute__((__visibility__("default"))) time_duration : private boost::less_than_comparable<T , boost::equality_comparable<T > > { public: typedef void _is_boost_date_time_duration; typedef T duration_type; typedef rep_type traits_type; typedef typename rep_type::day_type day_type; typedef typename rep_type::hour_type hour_type; typedef typename rep_type::min_type min_type; typedef typename rep_type::sec_type sec_type; typedef typename rep_type::fractional_seconds_type fractional_seconds_type; typedef typename rep_type::tick_type tick_type; typedef typename rep_type::impl_type impl_type; constexpr time_duration() : ticks_(0) {} constexpr time_duration(hour_type hours_in, min_type minutes_in, sec_type seconds_in=0, fractional_seconds_type frac_sec_in = 0) : ticks_(rep_type::to_tick_count(hours_in,minutes_in,seconds_in,frac_sec_in)) {} constexpr time_duration(special_values sv) : ticks_(impl_type::from_special(sv)) {} static constexpr duration_type unit() { return duration_type(0,0,0,1); } static constexpr tick_type ticks_per_second() { return rep_type::res_adjust(); } static constexpr time_resolutions resolution() { return rep_type::resolution(); } constexpr hour_type hours() const { return static_cast<hour_type>(ticks() / (3600*ticks_per_second())); } constexpr min_type minutes() const { return static_cast<min_type>((ticks() / (60*ticks_per_second())) % 60); } constexpr sec_type seconds() const { return static_cast<sec_type>((ticks()/ticks_per_second()) % 60); } constexpr sec_type total_seconds() const { return static_cast<sec_type>(ticks() / ticks_per_second()); } constexpr tick_type total_milliseconds() const { if (ticks_per_second() < 1000) { return ticks() * (static_cast<tick_type>(1000) / ticks_per_second()); } return ticks() / (ticks_per_second() / static_cast<tick_type>(1000)) ; } constexpr tick_type total_nanoseconds() const { if (ticks_per_second() < 1000000000) { return ticks() * (static_cast<tick_type>(1000000000) / ticks_per_second()); } return ticks() / (ticks_per_second() / static_cast<tick_type>(1000000000)) ; } constexpr tick_type total_microseconds() const { if (ticks_per_second() < 1000000) { return ticks() * (static_cast<tick_type>(1000000) / ticks_per_second()); } return ticks() / (ticks_per_second() / static_cast<tick_type>(1000000)) ; } constexpr fractional_seconds_type fractional_seconds() const { return (ticks() % ticks_per_second()); } static constexpr unsigned short num_fractional_digits() { return rep_type::num_fractional_digits(); } constexpr duration_type invert_sign() const { return duration_type(ticks_ * (-1)); } constexpr duration_type abs() const { if ( is_negative() ) { return invert_sign(); } return duration_type(ticks_); } constexpr bool is_negative() const { return ticks_ < 0; } constexpr bool is_zero() const { return ticks_ == 0; } constexpr bool is_positive() const { return ticks_ > 0; } constexpr bool operator<(const time_duration& rhs) const { return ticks_ < rhs.ticks_; } constexpr bool operator==(const time_duration& rhs) const { return ticks_ == rhs.ticks_; } constexpr duration_type operator-()const { return duration_type(ticks_ * (-1)); } constexpr duration_type operator-(const duration_type& d) const { return duration_type(ticks_ - d.ticks_); } constexpr duration_type operator+(const duration_type& d) const { return duration_type(ticks_ + d.ticks_); } constexpr duration_type operator/(int divisor) const { return duration_type(ticks_ / divisor); } constexpr duration_type operator-=(const duration_type& d) { ticks_ = ticks_ - d.ticks_; return duration_type(ticks_); } constexpr duration_type operator+=(const duration_type& d) { ticks_ = ticks_ + d.ticks_; return duration_type(ticks_); } constexpr duration_type operator/=(int divisor) { ticks_ = ticks_ / divisor; return duration_type(ticks_); } constexpr duration_type operator*(int rhs) const { return duration_type(ticks_ * rhs); } constexpr duration_type operator*=(int divisor) { ticks_ = ticks_ * divisor; return duration_type(ticks_); } constexpr tick_type ticks() const { return traits_type::as_number(ticks_); } constexpr bool is_special()const { if(traits_type::is_adapted()) { return ticks_.is_special(); } else{ return false; } } constexpr bool is_pos_infinity()const { if(traits_type::is_adapted()) { return ticks_.is_pos_infinity(); } else{ return false; } } constexpr bool is_neg_infinity()const { if(traits_type::is_adapted()) { return ticks_.is_neg_infinity(); } else{ return false; } } constexpr bool is_not_a_date_time()const { if(traits_type::is_adapted()) { return ticks_.is_nan(); } else{ return false; } } constexpr impl_type get_rep()const { return ticks_; } protected: constexpr explicit time_duration(impl_type in) : ticks_(in) {} impl_type ticks_; }; template<class base_duration, boost::int64_t frac_of_second> class __attribute__((__visibility__("default"))) subsecond_duration : public base_duration { public: typedef typename base_duration::impl_type impl_type; typedef typename base_duration::traits_type traits_type; private: static_assert((traits_type::ticks_per_second >= frac_of_second ? traits_type::ticks_per_second % frac_of_second : frac_of_second % traits_type::ticks_per_second) == 0, "The base duration resolution must be a multiple of the subsecond duration resolution") ; static const boost::int64_t adjustment_ratio = (traits_type::ticks_per_second >= frac_of_second ? traits_type::ticks_per_second / frac_of_second : frac_of_second / traits_type::ticks_per_second); public: template <typename T> constexpr explicit subsecond_duration(T const& ss, typename boost::enable_if<boost::is_integral<T>, void>::type* = nullptr) : base_duration(impl_type(traits_type::ticks_per_second >= frac_of_second ? ss * adjustment_ratio : ss / adjustment_ratio)) { } }; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_resolution_traits.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_resolution_traits.hpp" 3 4 # 1 "/usr/include/c++/13/ctime" 1 3 4 # 39 "/usr/include/c++/13/ctime" 3 4 # 40 "/usr/include/c++/13/ctime" 3 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_resolution_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_resolution_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/int_adapter.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/int_adapter.hpp" 3 4 namespace boost { namespace date_time { # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/int_adapter.hpp" 3 4 template<typename int_type_> class int_adapter { public: typedef int_type_ int_type; constexpr int_adapter(int_type v) : value_(v) {} static constexpr bool has_infinity() { return true; } static constexpr int_adapter pos_infinity() { return (::std::numeric_limits<int_type>::max)(); } static constexpr int_adapter neg_infinity() { return (::std::numeric_limits<int_type>::min)(); } static constexpr int_adapter not_a_number() { return (::std::numeric_limits<int_type>::max)()-1; } static constexpr int_adapter max () { return (::std::numeric_limits<int_type>::max)()-2; } static constexpr int_adapter min () { return (::std::numeric_limits<int_type>::min)()+1; } static constexpr int_adapter from_special(special_values sv) { switch (sv) { case not_a_date_time: return not_a_number(); case neg_infin: return neg_infinity(); case pos_infin: return pos_infinity(); case max_date_time: return (max)(); case min_date_time: return (min)(); default: return not_a_number(); } } static constexpr bool is_inf(int_type v) { return (v == neg_infinity().as_number() || v == pos_infinity().as_number()); } static constexpr bool is_neg_inf(int_type v) { return (v == neg_infinity().as_number()); } static constexpr bool is_pos_inf(int_type v) { return (v == pos_infinity().as_number()); } static constexpr bool is_not_a_number(int_type v) { return (v == not_a_number().as_number()); } static constexpr special_values to_special(int_type v) { if (is_not_a_number(v)) return not_a_date_time; if (is_neg_inf(v)) return neg_infin; if (is_pos_inf(v)) return pos_infin; return not_special; } static constexpr int_type maxcount() { return (::std::numeric_limits<int_type>::max)()-3; } constexpr bool is_infinity() const { return (value_ == neg_infinity().as_number() || value_ == pos_infinity().as_number()); } constexpr bool is_pos_infinity()const { return(value_ == pos_infinity().as_number()); } constexpr bool is_neg_infinity()const { return(value_ == neg_infinity().as_number()); } constexpr bool is_nan() const { return (value_ == not_a_number().as_number()); } constexpr bool is_special() const { return(is_infinity() || is_nan()); } constexpr bool operator==(const int_adapter& rhs) const { return (compare(rhs) == 0); } constexpr bool operator==(const int& rhs) const { if(!std::numeric_limits<int_type>::is_signed) { if(is_neg_inf(value_) && rhs == 0) { return false; } } return (compare(rhs) == 0); } constexpr bool operator!=(const int_adapter& rhs) const { return (compare(rhs) != 0); } constexpr bool operator!=(const int& rhs) const { if(!std::numeric_limits<int_type>::is_signed) { if(is_neg_inf(value_) && rhs == 0) { return true; } } return (compare(rhs) != 0); } constexpr bool operator<(const int_adapter& rhs) const { return (compare(rhs) == -1); } constexpr bool operator<(const int& rhs) const { if(!std::numeric_limits<int_type>::is_signed) { if(is_neg_inf(value_) && rhs == 0) { return true; } } return (compare(rhs) == -1); } constexpr bool operator>(const int_adapter& rhs) const { return (compare(rhs) == 1); } constexpr int_type as_number() const { return value_; } constexpr special_values as_special() const { return int_adapter::to_special(value_); } # 206 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/int_adapter.hpp" 3 4 template<class rhs_type> constexpr int_adapter operator+(const int_adapter<rhs_type>& rhs) const { if(is_special() || rhs.is_special()) { if (is_nan() || rhs.is_nan()) { return int_adapter::not_a_number(); } if((is_pos_inf(value_) && rhs.is_neg_inf(rhs.as_number())) || (is_neg_inf(value_) && rhs.is_pos_inf(rhs.as_number())) ) { return int_adapter::not_a_number(); } if (is_infinity()) { return *this; } if (rhs.is_pos_inf(rhs.as_number())) { return int_adapter::pos_infinity(); } if (rhs.is_neg_inf(rhs.as_number())) { return int_adapter::neg_infinity(); } } return int_adapter<int_type>(value_ + static_cast<int_type>(rhs.as_number())); } constexpr int_adapter operator+(const int_type rhs) const { if(is_special()) { if (is_nan()) { return int_adapter<int_type>(not_a_number()); } if (is_infinity()) { return *this; } } return int_adapter<int_type>(value_ + rhs); } template<class rhs_type> constexpr int_adapter operator-(const int_adapter<rhs_type>& rhs)const { if(is_special() || rhs.is_special()) { if (is_nan() || rhs.is_nan()) { return int_adapter::not_a_number(); } if((is_pos_inf(value_) && rhs.is_pos_inf(rhs.as_number())) || (is_neg_inf(value_) && rhs.is_neg_inf(rhs.as_number())) ) { return int_adapter::not_a_number(); } if (is_infinity()) { return *this; } if (rhs.is_pos_inf(rhs.as_number())) { return int_adapter::neg_infinity(); } if (rhs.is_neg_inf(rhs.as_number())) { return int_adapter::pos_infinity(); } } return int_adapter<int_type>(value_ - static_cast<int_type>(rhs.as_number())); } constexpr int_adapter operator-(const int_type rhs) const { if(is_special()) { if (is_nan()) { return int_adapter<int_type>(not_a_number()); } if (is_infinity()) { return *this; } } return int_adapter<int_type>(value_ - rhs); } constexpr int_adapter operator*(const int_adapter& rhs)const { if(this->is_special() || rhs.is_special()) { return mult_div_specials(rhs); } return int_adapter<int_type>(value_ * rhs.value_); } constexpr int_adapter operator*(const int rhs) const { if(is_special()) { return mult_div_specials(rhs); } return int_adapter<int_type>(value_ * rhs); } constexpr int_adapter operator/(const int_adapter& rhs)const { if(this->is_special() || rhs.is_special()) { if(is_infinity() && rhs.is_infinity()) { return int_adapter<int_type>(not_a_number()); } if(rhs != 0) { return mult_div_specials(rhs); } else { return int_adapter<int_type>(value_ / rhs.value_); } } return int_adapter<int_type>(value_ / rhs.value_); } constexpr int_adapter operator/(const int rhs) const { if(is_special() && rhs != 0) { return mult_div_specials(rhs); } return int_adapter<int_type>(value_ / rhs); } constexpr int_adapter operator%(const int_adapter& rhs)const { if(this->is_special() || rhs.is_special()) { if(is_infinity() && rhs.is_infinity()) { return int_adapter<int_type>(not_a_number()); } if(rhs != 0) { return mult_div_specials(rhs); } else { return int_adapter<int_type>(value_ % rhs.value_); } } return int_adapter<int_type>(value_ % rhs.value_); } constexpr int_adapter operator%(const int rhs) const { if(is_special() && rhs != 0) { return mult_div_specials(rhs); } return int_adapter<int_type>(value_ % rhs); } private: int_type value_; constexpr int compare( const int_adapter& rhs ) const { if(this->is_special() || rhs.is_special()) { if(this->is_nan() || rhs.is_nan()) { if(this->is_nan() && rhs.is_nan()) { return 0; } else { return 2; } } if((is_neg_inf(value_) && !is_neg_inf(rhs.value_)) || (is_pos_inf(rhs.value_) && !is_pos_inf(value_)) ) { return -1; } if((is_pos_inf(value_) && !is_pos_inf(rhs.value_)) || (is_neg_inf(rhs.value_) && !is_neg_inf(value_)) ) { return 1; } } if(value_ < rhs.value_) return -1; if(value_ > rhs.value_) return 1; return 0; } constexpr int_adapter mult_div_specials(const int_adapter& rhs) const { if(this->is_nan() || rhs.is_nan()) { return int_adapter<int_type>(not_a_number()); } constexpr int min_value = std::numeric_limits<int_type>::is_signed ? 0 : 1; if((*this > 0 && rhs > 0) || (*this < min_value && rhs < min_value)) { return int_adapter<int_type>(pos_infinity()); } if((*this > 0 && rhs < min_value) || (*this < min_value && rhs > 0)) { return int_adapter<int_type>(neg_infinity()); } return int_adapter<int_type>(not_a_number()); } constexpr int_adapter mult_div_specials(const int& rhs) const { if(this->is_nan()) { return int_adapter<int_type>(not_a_number()); } constexpr int min_value = std::numeric_limits<int_type>::is_signed ? 0 : 1; if((*this > 0 && rhs > 0) || (*this < min_value && rhs < 0)) { return int_adapter<int_type>(pos_infinity()); } if((*this > 0 && rhs < 0) || (*this < min_value && rhs > 0)) { return int_adapter<int_type>(neg_infinity()); } return int_adapter<int_type>(not_a_number()); } }; template<class charT, class traits, typename int_type> inline std::basic_ostream<charT, traits>& operator<<(std::basic_ostream<charT, traits>& os, const int_adapter<int_type>& ia) { if(ia.is_special()) { switch(ia.as_special()) { case not_a_date_time: os << "not-a-number"; break; case pos_infin: os << "+infinity"; break; case neg_infin: os << "-infinity"; break; default: os << ""; } } else { os << ia.as_number(); } return os; } } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_resolution_traits.hpp" 2 3 4 namespace boost { namespace date_time { template <typename T> inline constexpr T absolute_value(T x) { return x < 0 ? -x : x; } struct time_resolution_traits_bi32_impl { typedef boost::int32_t int_type; typedef boost::int32_t impl_type; static constexpr int_type as_number(impl_type i){ return i;} static constexpr bool is_adapted() { return false;} }; struct time_resolution_traits_adapted32_impl { typedef boost::int32_t int_type; typedef boost::date_time::int_adapter<boost::int32_t> impl_type; static constexpr int_type as_number(impl_type i){ return i.as_number();} static constexpr bool is_adapted() { return true;} }; struct time_resolution_traits_bi64_impl { typedef boost::int64_t int_type; typedef boost::int64_t impl_type; static constexpr int_type as_number(impl_type i){ return i;} static constexpr bool is_adapted() { return false;} }; struct time_resolution_traits_adapted64_impl { typedef boost::int64_t int_type; typedef boost::date_time::int_adapter<boost::int64_t> impl_type; static constexpr int_type as_number(impl_type i){ return i.as_number();} static constexpr bool is_adapted() { return true;} }; # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_resolution_traits.hpp" 3 4 template<typename frac_sec_type, time_resolutions res, typename frac_sec_type::int_type resolution_adjust, unsigned short frac_digits, typename var_type = boost::int64_t > class time_resolution_traits { public: typedef typename frac_sec_type::int_type fractional_seconds_type; typedef typename frac_sec_type::int_type tick_type; typedef typename frac_sec_type::impl_type impl_type; typedef var_type day_type; typedef var_type hour_type; typedef var_type min_type; typedef var_type sec_type; static constexpr fractional_seconds_type as_number(impl_type i) { return frac_sec_type::as_number(i); } static constexpr bool is_adapted() { return frac_sec_type::is_adapted(); } static const fractional_seconds_type ticks_per_second = resolution_adjust; static constexpr time_resolutions resolution() { return res; } static constexpr unsigned short num_fractional_digits() { return frac_digits; } static constexpr fractional_seconds_type res_adjust() { return resolution_adjust; } static constexpr tick_type to_tick_count(hour_type hours, min_type minutes, sec_type seconds, fractional_seconds_type fs) { if(hours < 0 || minutes < 0 || seconds < 0 || fs < 0) { hours = absolute_value(hours); minutes = absolute_value(minutes); seconds = absolute_value(seconds); fs = absolute_value(fs); return static_cast<tick_type>(((((fractional_seconds_type(hours)*3600) + (fractional_seconds_type(minutes)*60) + seconds)*res_adjust()) + fs) * -1); } return static_cast<tick_type>((((fractional_seconds_type(hours)*3600) + (fractional_seconds_type(minutes)*60) + seconds)*res_adjust()) + fs); } }; typedef time_resolution_traits<time_resolution_traits_adapted32_impl, milli, 1000, 3 > milli_res; typedef time_resolution_traits<time_resolution_traits_adapted64_impl, micro, 1000000, 6 > micro_res; typedef time_resolution_traits<time_resolution_traits_adapted64_impl, nano, 1000000000, 9 > nano_res; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/year_month_day.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/year_month_day.hpp" 3 4 namespace boost { namespace date_time { template<typename YearType, typename MonthType, typename DayType> struct __attribute__((__visibility__("default"))) year_month_day_base { constexpr year_month_day_base(YearType year, MonthType month, DayType day); YearType year; MonthType month; DayType day; typedef YearType year_type; typedef MonthType month_type; typedef DayType day_type; }; template<typename YearType, typename MonthType, typename DayType> inline constexpr year_month_day_base<YearType,MonthType,DayType>::year_month_day_base(YearType y, MonthType m, DayType d) : year(y), month(m), day(d) {} } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date.hpp" 2 3 4 namespace boost { namespace date_time { # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date.hpp" 3 4 template<class T, class calendar, class duration_type_> class __attribute__((__visibility__("default"))) date : private boost::less_than_comparable<T , boost::equality_comparable<T > > { public: typedef T date_type; typedef calendar calendar_type; typedef typename calendar::date_traits_type traits_type; typedef duration_type_ duration_type; typedef typename calendar::year_type year_type; typedef typename calendar::month_type month_type; typedef typename calendar::day_type day_type; typedef typename calendar::ymd_type ymd_type; typedef typename calendar::date_rep_type date_rep_type; typedef typename calendar::date_int_type date_int_type; typedef typename calendar::day_of_week_type day_of_week_type; constexpr date(year_type y, month_type m, day_type d) : days_(calendar::day_number(ymd_type(y, m, d))) {} constexpr date(const ymd_type& ymd) : days_(calendar::day_number(ymd)) {} constexpr year_type year() const { ymd_type ymd = calendar::from_day_number(days_); return ymd.year; } constexpr month_type month() const { ymd_type ymd = calendar::from_day_number(days_); return ymd.month; } constexpr day_type day() const { ymd_type ymd = calendar::from_day_number(days_); return ymd.day; } constexpr day_of_week_type day_of_week() const { ymd_type ymd = calendar::from_day_number(days_); return calendar::day_of_week(ymd); } constexpr ymd_type year_month_day() const { return calendar::from_day_number(days_); } constexpr bool operator<(const date_type& rhs) const { return days_ < rhs.days_; } constexpr bool operator==(const date_type& rhs) const { return days_ == rhs.days_; } constexpr bool is_special()const { return(is_not_a_date() || is_infinity()); } constexpr bool is_not_a_date() const { return traits_type::is_not_a_number(days_); } constexpr bool is_infinity() const { return traits_type::is_inf(days_); } constexpr bool is_pos_infinity() const { return traits_type::is_pos_inf(days_); } constexpr bool is_neg_infinity() const { return traits_type::is_neg_inf(days_); } constexpr special_values as_special() const { return traits_type::to_special(days_); } constexpr duration_type operator-(const date_type& d) const { if (!this->is_special() && !d.is_special()) { typedef typename duration_type::duration_rep_type duration_rep_type; return duration_type(static_cast< duration_rep_type >(days_) - static_cast< duration_rep_type >(d.days_)); } else { date_rep_type val = date_rep_type(days_) - date_rep_type(d.days_); return duration_type(val.as_special()); } } constexpr date_type operator-(const duration_type& dd) const { if(dd.is_special()) { return date_type(date_rep_type(days_) - dd.get_rep()); } return date_type(date_rep_type(days_) - static_cast<date_int_type>(dd.days())); } constexpr date_type operator-=(const duration_type& dd) { *this = *this - dd; return date_type(days_); } constexpr date_rep_type day_count() const { return days_; } constexpr date_type operator+(const duration_type& dd) const { if(dd.is_special()) { return date_type(date_rep_type(days_) + dd.get_rep()); } return date_type(date_rep_type(days_) + static_cast<date_int_type>(dd.days())); } constexpr date_type operator+=(const duration_type& dd) { *this = *this + dd; return date_type(days_); } protected: constexpr explicit date(date_int_type days) : days_(days) {} constexpr explicit date(date_rep_type days) : days_(days.as_number()) {} date_int_type days_; }; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 namespace boost { namespace date_time { # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> class __attribute__((__visibility__("default"))) period : private boost::less_than_comparable<period<point_rep, duration_rep> , boost::equality_comparable< period<point_rep, duration_rep> > > { public: typedef point_rep point_type; typedef duration_rep duration_type; constexpr period(point_rep first_point, point_rep end_point); constexpr period(point_rep first_point, duration_rep len); constexpr point_rep begin() const; constexpr point_rep end() const; constexpr point_rep last() const; constexpr duration_rep length() const; constexpr bool is_null() const; constexpr bool operator==(const period& rhs) const; constexpr bool operator<(const period& rhs) const; constexpr void shift(const duration_rep& d); constexpr void expand(const duration_rep& d); constexpr bool contains(const point_rep& point) const; constexpr bool contains(const period& other) const; constexpr bool intersects(const period& other) const; constexpr bool is_adjacent(const period& other) const; constexpr bool is_before(const point_rep& point) const; constexpr bool is_after(const point_rep& point) const; constexpr period intersection(const period& other) const; constexpr period merge(const period& other) const; constexpr period span(const period& other) const; private: point_rep begin_; point_rep last_; }; template<class point_rep, class duration_rep> inline constexpr period<point_rep,duration_rep>::period(point_rep first_point, point_rep end_point) : begin_(first_point), last_(end_point - duration_rep::unit()) {} template<class point_rep, class duration_rep> inline constexpr period<point_rep,duration_rep>::period(point_rep first_point, duration_rep len) : begin_(first_point), last_(first_point + len-duration_rep::unit()) { } template<class point_rep, class duration_rep> inline constexpr point_rep period<point_rep,duration_rep>::begin() const { return begin_; } template<class point_rep, class duration_rep> inline constexpr point_rep period<point_rep,duration_rep>::end() const { return last_ + duration_rep::unit(); } template<class point_rep, class duration_rep> inline constexpr point_rep period<point_rep,duration_rep>::last() const { return last_; } template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::is_null() const { return end() <= begin_; } template<class point_rep, class duration_rep> inline constexpr duration_rep period<point_rep,duration_rep>::length() const { if(last_ < begin_){ return last_+duration_rep::unit() - begin_; } else{ return end() - begin_; } } template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::operator==(const period& rhs) const { return ((begin_ == rhs.begin_) && (last_ == rhs.last_)); } template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::operator<(const period& rhs) const { return (last_ < rhs.begin_); } template<class point_rep, class duration_rep> inline constexpr void period<point_rep,duration_rep>::shift(const duration_rep& d) { begin_ = begin_ + d; last_ = last_ + d; } # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> inline constexpr void period<point_rep,duration_rep>::expand(const duration_rep& d) { begin_ = begin_ - d; last_ = last_ + d; } template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::contains(const point_rep& point) const { return ((point >= begin_) && (point <= last_)); } template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::contains(const period<point_rep,duration_rep>& other) const { return ((begin_ <= other.begin_) && (last_ >= other.last_)); } # 235 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::is_adjacent(const period<point_rep,duration_rep>& other) const { return (other.begin() == end() || begin_ == other.end()); } # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::is_after(const point_rep& t) const { if (is_null()) { return false; } return t < begin_; } # 274 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::is_before(const point_rep& t) const { if (is_null()) { return false; } return last_ < t; } # 298 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> inline constexpr bool period<point_rep,duration_rep>::intersects(const period<point_rep,duration_rep>& other) const { return ( contains(other.begin_) || other.contains(begin_) || ((other.begin_ < begin_) && (other.last_ >= begin_))); } template<class point_rep, class duration_rep> inline constexpr period<point_rep,duration_rep> period<point_rep,duration_rep>::intersection(const period<point_rep,duration_rep>& other) const { if (begin_ > other.begin_) { if (last_ <= other.last_) { return *this; } return period<point_rep,duration_rep>(begin_, other.end()); } else { if (last_ <= other.last_) { return period<point_rep,duration_rep>(other.begin_, this->end()); } return other; } } template<class point_rep, class duration_rep> inline constexpr period<point_rep,duration_rep> period<point_rep,duration_rep>::merge(const period<point_rep,duration_rep>& other) const { if (this->intersects(other)) { if (begin_ < other.begin_) { return period<point_rep,duration_rep>(begin_, last_ > other.last_ ? this->end() : other.end()); } return period<point_rep,duration_rep>(other.begin_, last_ > other.last_ ? this->end() : other.end()); } return period<point_rep,duration_rep>(begin_,begin_); } # 360 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/period.hpp" 3 4 template<class point_rep, class duration_rep> inline constexpr period<point_rep,duration_rep> period<point_rep,duration_rep>::span(const period<point_rep,duration_rep>& other) const { point_rep start((begin_ < other.begin_) ? begin() : other.begin()); point_rep newend((last_ < other.last_) ? other.end() : this->end()); return period<point_rep,duration_rep>(start, newend); } } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_weekday.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_weekday.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/constrained_value.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/constrained_value.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/conditional.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/conditional.hpp" 3 4 namespace boost { template <bool b, class T, class U> struct conditional { typedef T type; }; template <class T, class U> struct conditional<false, T, U> { typedef U type; }; template <bool b, class T, class U> using conditional_t = typename conditional<b, T, U>::type; } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/constrained_value.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_of.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_of.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/intrinsics.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/intrinsics.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/config.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/intrinsics.hpp" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_cv.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_cv.hpp" 3 4 namespace boost { template <class T> struct remove_cv{ typedef T type; }; template <class T> struct remove_cv<T const>{ typedef T type; }; template <class T> struct remove_cv<T volatile>{ typedef T type; }; template <class T> struct remove_cv<T const volatile>{ typedef T type; }; template <class T, std::size_t N> struct remove_cv<T const[N]>{ typedef T type[N]; }; template <class T, std::size_t N> struct remove_cv<T const volatile[N]>{ typedef T type[N]; }; template <class T, std::size_t N> struct remove_cv<T volatile[N]>{ typedef T type[N]; }; template <class T> struct remove_cv<T const[]>{ typedef T type[]; }; template <class T> struct remove_cv<T const volatile[]>{ typedef T type[]; }; template <class T> struct remove_cv<T volatile[]>{ typedef T type[]; }; template <class T> using remove_cv_t = typename remove_cv<T>::type; } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_same.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_same.hpp" 3 4 namespace boost { template <class T, class U> struct is_same : public false_type {}; template <class T> struct is_same<T,T> : public true_type {}; } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 2 3 4 namespace boost { namespace detail { # 220 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_and_derived.hpp" 3 4 template <typename B, typename D> struct is_base_and_derived_impl { typedef typename remove_cv<B>::type ncvB; typedef typename remove_cv<D>::type ncvD; static const bool value = ((__is_base_of(B,D) && !is_same<B,D>::value) && ! ::boost::is_same<ncvB,ncvD>::value); }; } template <class Base, class Derived> struct is_base_and_derived : public integral_constant<bool, (::boost::detail::is_base_and_derived_impl<Base, Derived>::value)> {}; template <class Base, class Derived> struct is_base_and_derived<Base&, Derived> : public false_type{}; template <class Base, class Derived> struct is_base_and_derived<Base, Derived&> : public false_type{}; template <class Base, class Derived> struct is_base_and_derived<Base&, Derived&> : public false_type{}; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_of.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_class.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_class.hpp" 3 4 namespace boost { namespace detail { # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_class.hpp" 3 4 template <typename T> struct is_class_impl { static const bool value = __is_class(T); }; } template <class T> struct is_class : public integral_constant<bool, ::boost::detail::is_class_impl<T>::value> {}; } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_base_of.hpp" 2 3 4 namespace boost { namespace detail{ template <class B, class D> struct is_base_of_imp { typedef typename remove_cv<B>::type ncvB; typedef typename remove_cv<D>::type ncvD; static const bool value = ( (::boost::detail::is_base_and_derived_impl<ncvB,ncvD>::value) || (::boost::is_same<ncvB,ncvD>::value && ::boost::is_class<ncvB>::value)) ; }; } template <class Base, class Derived> struct is_base_of : public integral_constant<bool, (::boost::detail::is_base_of_imp<Base, Derived>::value)> {}; template <class Base, class Derived> struct is_base_of<Base, Derived&> : false_type{}; template <class Base, class Derived> struct is_base_of<Base&, Derived&> : false_type{}; template <class Base, class Derived> struct is_base_of<Base&, Derived> : false_type{}; } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/constrained_value.hpp" 2 3 4 namespace boost { namespace CV { enum violation_enum {min_violation, max_violation}; # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/constrained_value.hpp" 3 4 template<class value_policies> class __attribute__((__visibility__("default"))) constrained_value { public: typedef typename value_policies::value_type value_type; constexpr constrained_value(value_type value) : value_((min)()) { assign(value); } constexpr constrained_value& operator=(value_type v) { assign(v); return *this; } static constexpr value_type max () {return (value_policies::max)();} static constexpr value_type min () {return (value_policies::min)();} constexpr operator value_type() const {return value_;} protected: value_type value_; private: constexpr void assign(value_type value) { if (value+1 < (min)()+1) { value_policies::on_error(value_, value, min_violation); return; } if (value > (max)()) { value_policies::on_error(value_, value, max_violation); return; } value_ = value; } }; template<typename rep_type, rep_type min_value, rep_type max_value, class exception_type> class __attribute__((__visibility__("default"))) simple_exception_policy { struct __attribute__((__visibility__("default"))) exception_wrapper : public exception_type { operator std::out_of_range () const { return std::out_of_range("constrained value boundary has been violated"); } }; typedef typename conditional< is_base_of< std::exception, exception_type >::value, exception_type, exception_wrapper >::type actual_exception_type; public: typedef rep_type value_type; static constexpr rep_type min () { return min_value; } static constexpr rep_type max () { return max_value; } static void on_error(rep_type, rep_type, violation_enum) { boost::throw_exception(actual_exception_type()); } }; } } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_weekday.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_defs.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_defs.hpp" 3 4 namespace boost { namespace date_time { enum weekdays {Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday}; enum months_of_year {Jan=1,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec,NotAMonth,NumMonths}; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_weekday.hpp" 2 3 4 namespace boost { namespace gregorian { using date_time::Sunday; using date_time::Monday; using date_time::Tuesday; using date_time::Wednesday; using date_time::Thursday; using date_time::Friday; using date_time::Saturday; struct __attribute__((__visibility__("default"))) bad_weekday : public std::out_of_range { bad_weekday() : std::out_of_range(std::string("Weekday is out of range 0..6")) {} }; typedef CV::simple_exception_policy<unsigned short, 0, 6, bad_weekday> greg_weekday_policies; typedef CV::constrained_value<greg_weekday_policies> greg_weekday_rep; class __attribute__((__visibility__("default"))) greg_weekday : public greg_weekday_rep { public: typedef boost::date_time::weekdays weekday_enum; constexpr greg_weekday(value_type day_of_week_num) : greg_weekday_rep(day_of_week_num) {} constexpr value_type as_number() const {return value_;} constexpr weekday_enum as_enum() const {return static_cast<weekday_enum>(value_);} const char* as_short_string() const { static const char* const short_weekday_names[] = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; return short_weekday_names[value_]; } const char* as_long_string() const { static const char* const long_weekday_names[] = {"Sunday","Monday","Tuesday","Wednesday", "Thursday", "Friday", "Saturday"}; return long_weekday_names[value_]; } const wchar_t* as_short_wstring() const { static const wchar_t* const w_short_weekday_names[]={L"Sun", L"Mon", L"Tue", L"Wed", L"Thu", L"Fri", L"Sat"}; return w_short_weekday_names[value_]; } const wchar_t* as_long_wstring() const { static const wchar_t* const w_long_weekday_names[]= {L"Sunday",L"Monday",L"Tuesday", L"Wednesday", L"Thursday", L"Friday", L"Saturday"}; return w_long_weekday_names[value_]; } }; } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_day_of_year.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_day_of_year.hpp" 3 4 namespace boost { namespace gregorian { struct __attribute__((__visibility__("default"))) bad_day_of_year : public std::out_of_range { bad_day_of_year() : std::out_of_range(std::string("Day of year value is out of range 1..366")) {} }; typedef CV::simple_exception_policy<unsigned short,1,366,bad_day_of_year> greg_day_of_year_policies; typedef CV::constrained_value<greg_day_of_year_policies> greg_day_of_year_rep; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian_calendar.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian_calendar.hpp" 3 4 namespace boost { namespace date_time { # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian_calendar.hpp" 3 4 template<typename ymd_type_, typename date_int_type_> class __attribute__((__visibility__("default"))) gregorian_calendar_base { public: typedef ymd_type_ ymd_type; typedef typename ymd_type::month_type month_type; typedef typename ymd_type::day_type day_type; typedef typename ymd_type::year_type year_type; typedef date_int_type_ date_int_type; static constexpr unsigned short day_of_week(const ymd_type& ymd); static constexpr int week_number(const ymd_type&ymd); static constexpr date_int_type day_number(const ymd_type& ymd); static constexpr date_int_type julian_day_number(const ymd_type& ymd); static constexpr date_int_type modjulian_day_number(const ymd_type& ymd); static constexpr ymd_type from_day_number(date_int_type); static constexpr ymd_type from_julian_day_number(date_int_type); static constexpr ymd_type from_modjulian_day_number(date_int_type); static constexpr bool is_leap_year(year_type); static constexpr unsigned short end_of_month_day(year_type y, month_type m); static constexpr ymd_type epoch(); static constexpr unsigned short days_in_week(); }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian_calendar.ipp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian_calendar.ipp" 3 4 namespace boost { namespace date_time { template<typename ymd_type_, typename date_int_type_> constexpr inline unsigned short gregorian_calendar_base<ymd_type_,date_int_type_>::day_of_week(const ymd_type& ymd) { unsigned short a = static_cast<unsigned short>((14-ymd.month)/12); unsigned short y = static_cast<unsigned short>(ymd.year - a); unsigned short m = static_cast<unsigned short>(ymd.month + 12*a - 2); unsigned short d = static_cast<unsigned short>((ymd.day + y + (y/4) - (y/100) + (y/400) + (31*m)/12) % 7); return d; } template<typename ymd_type_, typename date_int_type_> constexpr inline int gregorian_calendar_base<ymd_type_,date_int_type_>::week_number(const ymd_type& ymd) { unsigned long julianbegin = julian_day_number(ymd_type(ymd.year,1,1)); unsigned long juliantoday = julian_day_number(ymd); unsigned long day = (julianbegin + 3) % 7; unsigned long week = (juliantoday + day - julianbegin + 4)/7; if ((week >= 1) && (week <= 52)) { return static_cast<int>(week); } if (week == 53) { if((day==6) ||(day == 5 && is_leap_year(ymd.year))) { return static_cast<int>(week); } else { return 1; } } else if (week == 0) { julianbegin = julian_day_number(ymd_type(static_cast<unsigned short>(ymd.year-1),1,1)); juliantoday = julian_day_number(ymd); day = (julianbegin + 3) % 7; week = (juliantoday + day - julianbegin + 4)/7; return static_cast<int>(week); } return static_cast<int>(week); } template<typename ymd_type_, typename date_int_type_> constexpr inline date_int_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::day_number(const ymd_type& ymd) { unsigned short a = static_cast<unsigned short>((14-ymd.month)/12); unsigned short y = static_cast<unsigned short>(ymd.year + 4800 - a); unsigned short m = static_cast<unsigned short>(ymd.month + 12*a - 3); unsigned long d = static_cast<unsigned long>(ymd.day) + ((153*m + 2)/5) + 365*y + (y/4) - (y/100) + (y/400) - 32045; return static_cast<date_int_type>(d); } template<typename ymd_type_, typename date_int_type_> constexpr inline date_int_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::julian_day_number(const ymd_type& ymd) { return day_number(ymd); } template<typename ymd_type_, typename date_int_type_> constexpr inline date_int_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::modjulian_day_number(const ymd_type& ymd) { return julian_day_number(ymd)-2400001; } template<typename ymd_type_, typename date_int_type_> constexpr inline ymd_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::from_day_number(date_int_type dayNumber) { date_int_type a = dayNumber + 32044; date_int_type b = (4*a + 3)/146097; date_int_type c = a-((146097*b)/4); date_int_type d = (4*c + 3)/1461; date_int_type e = c - (1461*d)/4; date_int_type m = (5*e + 2)/153; unsigned short day = static_cast<unsigned short>(e - ((153*m + 2)/5) + 1); unsigned short month = static_cast<unsigned short>(m + 3 - 12 * (m/10)); year_type year = static_cast<unsigned short>(100*b + d - 4800 + (m/10)); return ymd_type(static_cast<unsigned short>(year),month,day); } template<typename ymd_type_, typename date_int_type_> constexpr inline ymd_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::from_julian_day_number(date_int_type dayNumber) { date_int_type a = dayNumber + 32044; date_int_type b = (4*a+3)/146097; date_int_type c = a - ((146097*b)/4); date_int_type d = (4*c + 3)/1461; date_int_type e = c - ((1461*d)/4); date_int_type m = (5*e + 2)/153; unsigned short day = static_cast<unsigned short>(e - ((153*m + 2)/5) + 1); unsigned short month = static_cast<unsigned short>(m + 3 - 12 * (m/10)); year_type year = static_cast<year_type>(100*b + d - 4800 + (m/10)); return ymd_type(year,month,day); } template<typename ymd_type_, typename date_int_type_> constexpr inline ymd_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::from_modjulian_day_number(date_int_type dayNumber) { date_int_type jd = dayNumber + 2400001; return from_julian_day_number(jd); } template<typename ymd_type_, typename date_int_type_> constexpr inline bool gregorian_calendar_base<ymd_type_,date_int_type_>::is_leap_year(year_type year) { return (!(year % 4)) && ((year % 100) || (!(year % 400))); } template<typename ymd_type_, typename date_int_type_> constexpr inline unsigned short gregorian_calendar_base<ymd_type_,date_int_type_>::end_of_month_day(year_type year, month_type month) { switch (month) { case 2: if (is_leap_year(year)) { return 29; } else { return 28; } case 4: case 6: case 9: case 11: return 30; default: return 31; } } template<typename ymd_type_, typename date_int_type_> constexpr inline ymd_type_ gregorian_calendar_base<ymd_type_,date_int_type_>::epoch() { return ymd_type(1400,1,1); } template<typename ymd_type_, typename date_int_type_> constexpr inline unsigned short gregorian_calendar_base<ymd_type_,date_int_type_>::days_in_week() { return 7; } } } # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian_calendar.hpp" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_ymd.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_ymd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_day.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_day.hpp" 3 4 namespace boost { namespace gregorian { struct __attribute__((__visibility__("default"))) bad_day_of_month : public std::out_of_range { bad_day_of_month() : std::out_of_range(std::string("Day of month value is out of range 1..31")) {} bad_day_of_month(const std::string& s) : std::out_of_range(s) {} }; typedef CV::simple_exception_policy<unsigned short, 1, 31, bad_day_of_month> greg_day_policies; typedef CV::constrained_value<greg_day_policies> greg_day_rep; class __attribute__((__visibility__("default"))) greg_day : public greg_day_rep { public: constexpr greg_day(value_type day_of_month) : greg_day_rep(day_of_month) {} constexpr value_type as_number() const {return value_;} constexpr operator value_type() const {return value_;} private: }; } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_ymd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_year.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_year.hpp" 3 4 namespace boost { namespace gregorian { struct __attribute__((__visibility__("default"))) bad_year : public std::out_of_range { bad_year() : std::out_of_range(std::string("Year is out of valid range: 1400..9999")) {} }; typedef CV::simple_exception_policy<unsigned short, 1400, 9999, bad_year> greg_year_policies; typedef CV::constrained_value<greg_year_policies> greg_year_rep; # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_year.hpp" 3 4 class __attribute__((__visibility__("default"))) greg_year : public greg_year_rep { public: constexpr greg_year(value_type year) : greg_year_rep(year) {} constexpr operator value_type() const {return value_;} }; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_ymd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_month.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_month.hpp" 3 4 namespace boost { namespace gregorian { typedef date_time::months_of_year months_of_year; using date_time::Jan; using date_time::Feb; using date_time::Mar; using date_time::Apr; using date_time::May; using date_time::Jun; using date_time::Jul; using date_time::Aug; using date_time::Sep; using date_time::Oct; using date_time::Nov; using date_time::Dec; using date_time::NotAMonth; using date_time::NumMonths; struct __attribute__((__visibility__("default"))) bad_month : public std::out_of_range { bad_month() : std::out_of_range(std::string("Month number is out of range 1..12")) {} }; typedef CV::simple_exception_policy<unsigned short, 1, 12, bad_month> greg_month_policies; typedef CV::constrained_value<greg_month_policies> greg_month_rep; class __attribute__((__visibility__("default"))) greg_month : public greg_month_rep { public: typedef date_time::months_of_year month_enum; constexpr greg_month(month_enum theMonth) : greg_month_rep(static_cast<greg_month_rep::value_type>(theMonth)) {} constexpr greg_month(value_type theMonth) : greg_month_rep(theMonth) {} constexpr operator value_type() const {return value_;} constexpr value_type as_number() const {return value_;} constexpr month_enum as_enum() const {return static_cast<month_enum>(value_);} const char* as_short_string() const { static const char* const short_month_names[NumMonths] = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec", "NAM"}; return short_month_names[value_-1]; } const char* as_long_string() const { static const char* const long_month_names[NumMonths] = {"January","February","March","April","May","June","July","August", "September","October","November","December","NotAMonth"}; return long_month_names[value_-1]; } const wchar_t* as_short_wstring() const { static const wchar_t* const w_short_month_names[NumMonths] = {L"Jan",L"Feb",L"Mar",L"Apr",L"May",L"Jun",L"Jul",L"Aug",L"Sep",L"Oct", L"Nov",L"Dec",L"NAM"}; return w_short_month_names[value_-1]; } const wchar_t* as_long_wstring() const { static const wchar_t* const w_long_month_names[NumMonths] = {L"January",L"February",L"March",L"April",L"May",L"June",L"July",L"August", L"September",L"October",L"November",L"December",L"NotAMonth"}; return w_long_month_names[value_-1]; } const char* as_short_string(char) const { return as_short_string(); } const char* as_long_string(char) const { return as_long_string(); } const wchar_t* as_short_string(wchar_t) const { return as_short_wstring(); } const wchar_t* as_long_string(wchar_t) const { return as_long_wstring(); } }; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_ymd.hpp" 2 3 4 namespace boost { namespace gregorian { typedef date_time::year_month_day_base<greg_year, greg_month, greg_day> greg_year_month_day; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_calendar.hpp" 2 3 4 namespace boost { namespace gregorian { typedef date_time::int_adapter<uint32_t> fancy_date_rep; class __attribute__((__visibility__("default"))) gregorian_calendar : public date_time::gregorian_calendar_base<greg_year_month_day, fancy_date_rep::int_type> { public: typedef greg_weekday day_of_week_type; typedef greg_day_of_year_rep day_of_year_type; typedef fancy_date_rep date_rep_type; typedef fancy_date_rep date_traits_type; private: }; } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_duration.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_duration.hpp" 3 4 namespace boost { namespace date_time { template<class duration_rep_traits> class __attribute__((__visibility__("default"))) date_duration : private boost::less_than_comparable1< date_duration< duration_rep_traits > , boost::equality_comparable1< date_duration< duration_rep_traits > , boost::addable1< date_duration< duration_rep_traits > , boost::subtractable1< date_duration< duration_rep_traits > , boost::dividable2< date_duration< duration_rep_traits >, int > > > > > { public: typedef typename duration_rep_traits::int_type duration_rep_type; typedef typename duration_rep_traits::impl_type duration_rep; constexpr explicit date_duration(duration_rep day_count) : days_(day_count) {} constexpr date_duration(special_values sv) : days_(duration_rep::from_special(sv)) {} constexpr duration_rep get_rep()const { return days_; } constexpr special_values as_special() const { return days_.as_special(); } constexpr bool is_special()const { return days_.is_special(); } constexpr duration_rep_type days() const { return duration_rep_traits::as_number(days_); } static constexpr date_duration unit() { return date_duration<duration_rep_traits>(1); } constexpr bool operator==(const date_duration& rhs) const { return days_ == rhs.days_; } constexpr bool operator<(const date_duration& rhs) const { return days_ < rhs.days_; } constexpr date_duration& operator-=(const date_duration& rhs) { days_ = days_ - rhs.days_; return *this; } constexpr date_duration& operator+=(const date_duration& rhs) { days_ = days_ + rhs.days_; return *this; } constexpr date_duration operator-() const { return date_duration<duration_rep_traits>(get_rep() * (-1)); } constexpr date_duration& operator/=(int divisor) { days_ = days_ / divisor; return *this; } constexpr bool is_negative() const { return days_ < 0; } private: duration_rep days_; }; struct __attribute__((__visibility__("default"))) duration_traits_long { typedef long int_type; typedef long impl_type; static constexpr int_type as_number(impl_type i) { return i; } }; struct __attribute__((__visibility__("default"))) duration_traits_adapted { typedef long int_type; typedef boost::date_time::int_adapter<long> impl_type; static constexpr int_type as_number(impl_type i) { return i.as_number(); } }; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration.hpp" 2 3 4 namespace boost { namespace gregorian { typedef boost::date_time::duration_traits_adapted date_duration_rep; class __attribute__((__visibility__("default"))) date_duration : public boost::date_time::date_duration< date_duration_rep > { typedef boost::date_time::date_duration< date_duration_rep > base_type; public: typedef base_type::duration_rep duration_rep; constexpr explicit date_duration(duration_rep day_count = 0) : base_type(day_count) {} constexpr date_duration(date_time::special_values sv) : base_type(sv) {} constexpr date_duration(const base_type& other) : base_type(other) {} constexpr bool operator== (const date_duration& rhs) const { return base_type::operator== (rhs); } constexpr bool operator!= (const date_duration& rhs) const { return !operator== (rhs); } constexpr bool operator< (const date_duration& rhs) const { return base_type::operator< (rhs); } constexpr bool operator> (const date_duration& rhs) const { return !(base_type::operator< (rhs) || base_type::operator== (rhs)); } constexpr bool operator<= (const date_duration& rhs) const { return (base_type::operator< (rhs) || base_type::operator== (rhs)); } constexpr bool operator>= (const date_duration& rhs) const { return !base_type::operator< (rhs); } constexpr date_duration& operator-= (const date_duration& rhs) { base_type::operator-= (rhs); return *this; } constexpr friend date_duration operator- (date_duration rhs, date_duration const& lhs); constexpr date_duration& operator+= (const date_duration& rhs) { base_type::operator+= (rhs); return *this; } constexpr friend date_duration operator+ (date_duration rhs, date_duration const& lhs); constexpr date_duration operator- ()const { return date_duration(get_rep() * (-1)); } constexpr date_duration& operator/= (int divisor) { base_type::operator/= (divisor); return *this; } constexpr friend date_duration operator/ (date_duration rhs, int lhs); static constexpr date_duration unit() { return date_duration(base_type::unit().get_rep()); } }; inline constexpr date_duration operator- (date_duration rhs, date_duration const& lhs) { rhs -= lhs; return rhs; } inline constexpr date_duration operator+ (date_duration rhs, date_duration const& lhs) { rhs += lhs; return rhs; } inline constexpr date_duration operator/ (date_duration rhs, int lhs) { rhs /= lhs; return rhs; } typedef date_duration days; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_duration_types.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_duration_types.hpp" 3 4 namespace boost { namespace date_time { template <class duration_config> class __attribute__((__visibility__("default"))) weeks_duration : public date_duration<duration_config> { public: constexpr weeks_duration(typename duration_config::impl_type w) : date_duration<duration_config>(w * 7) {} constexpr weeks_duration(special_values sv) : date_duration<duration_config>(sv) {} }; template<class t> class __attribute__((__visibility__("default"))) years_duration; template<class base_config> class __attribute__((__visibility__("default"))) months_duration { private: typedef typename base_config::int_rep int_rep; typedef typename int_rep::int_type int_type; typedef typename base_config::date_type date_type; typedef typename date_type::duration_type duration_type; typedef typename base_config::month_adjustor_type month_adjustor_type; typedef months_duration<base_config> months_type; typedef years_duration<base_config> years_type; public: constexpr months_duration(int_rep num) : _m(num) {} constexpr months_duration(special_values sv) : _m(sv) { _m = int_rep::from_special(sv); } int_rep number_of_months() const { return _m; } constexpr duration_type get_neg_offset(const date_type& d) const { month_adjustor_type m_adj(_m.as_number()); return duration_type(m_adj.get_neg_offset(d)); } constexpr duration_type get_offset(const date_type& d) const { month_adjustor_type m_adj(_m.as_number()); return duration_type(m_adj.get_offset(d)); } constexpr bool operator==(const months_type& rhs) const { return(_m == rhs._m); } constexpr bool operator!=(const months_type& rhs) const { return(_m != rhs._m); } constexpr months_type operator+(const months_type& rhs)const { return months_type(_m + rhs._m); } constexpr months_type& operator+=(const months_type& rhs) { _m = _m + rhs._m; return *this; } constexpr months_type operator-(const months_type& rhs)const { return months_type(_m - rhs._m); } constexpr months_type& operator-=(const months_type& rhs) { _m = _m - rhs._m; return *this; } constexpr months_type operator*(const int_type rhs)const { return months_type(_m * rhs); } constexpr months_type& operator*=(const int_type rhs) { _m = _m * rhs; return *this; } constexpr months_type operator/(const int_type rhs)const { return months_type(_m / rhs); } constexpr months_type& operator/=(const int_type rhs) { _m = _m / rhs; return *this; } constexpr months_type operator+(const years_type& y)const { return months_type(y.number_of_years() * 12 + _m); } constexpr months_type& operator+=(const years_type& y) { _m = y.number_of_years() * 12 + _m; return *this; } constexpr months_type operator-(const years_type& y) const { return months_type(_m - y.number_of_years() * 12); } constexpr months_type& operator-=(const years_type& y) { _m = _m - y.number_of_years() * 12; return *this; } constexpr friend date_type operator+(const date_type& d, const months_type& m) { return d + m.get_offset(d); } constexpr friend date_type operator+=(date_type& d, const months_type& m) { return d += m.get_offset(d); } constexpr friend date_type operator-(const date_type& d, const months_type& m) { return d + m.get_neg_offset(d); } constexpr friend date_type operator-=(date_type& d, const months_type& m) { return d += m.get_neg_offset(d); } private: int_rep _m; }; template<class base_config> class __attribute__((__visibility__("default"))) years_duration { private: typedef typename base_config::int_rep int_rep; typedef typename int_rep::int_type int_type; typedef typename base_config::date_type date_type; typedef typename date_type::duration_type duration_type; typedef typename base_config::month_adjustor_type month_adjustor_type; typedef years_duration<base_config> years_type; typedef months_duration<base_config> months_type; public: constexpr years_duration(int_rep num) : _y(num) {} constexpr years_duration(special_values sv) : _y(sv) { _y = int_rep::from_special(sv); } constexpr int_rep number_of_years() const { return _y; } constexpr duration_type get_neg_offset(const date_type& d) const { month_adjustor_type m_adj(_y.as_number() * 12); return duration_type(m_adj.get_neg_offset(d)); } constexpr duration_type get_offset(const date_type& d) const { month_adjustor_type m_adj(_y.as_number() * 12); return duration_type(m_adj.get_offset(d)); } constexpr bool operator==(const years_type& rhs) const { return(_y == rhs._y); } bool operator!=(const years_type& rhs) const { return(_y != rhs._y); } constexpr years_type operator+(const years_type& rhs)const { return years_type(_y + rhs._y); } constexpr years_type& operator+=(const years_type& rhs) { _y = _y + rhs._y; return *this; } constexpr years_type operator-(const years_type& rhs)const { return years_type(_y - rhs._y); } constexpr years_type& operator-=(const years_type& rhs) { _y = _y - rhs._y; return *this; } constexpr years_type operator*(const int_type rhs)const { return years_type(_y * rhs); } constexpr years_type& operator*=(const int_type rhs) { _y = _y * rhs; return *this; } constexpr years_type operator/(const int_type rhs)const { return years_type(_y / rhs); } constexpr years_type& operator/=(const int_type rhs) { _y = _y / rhs; return *this; } constexpr months_type operator+(const months_type& m) const { return(months_type(_y * 12 + m.number_of_months())); } constexpr months_type operator-(const months_type& m) const { return(months_type(_y * 12 - m.number_of_months())); } constexpr friend date_type operator+(const date_type& d, const years_type& y) { return d + y.get_offset(d); } constexpr friend date_type operator+=(date_type& d, const years_type& y) { return d += y.get_offset(d); } constexpr friend date_type operator-(const date_type& d, const years_type& y) { return d + y.get_neg_offset(d); } constexpr friend date_type operator-=(date_type& d, const years_type& y) { return d += y.get_neg_offset(d); } private: int_rep _y; }; }} # 145 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration_types.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration_types.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_date.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_date.hpp" 3 4 namespace boost { namespace gregorian { using date_time::special_values; using date_time::not_special; using date_time::neg_infin; using date_time::pos_infin; using date_time::not_a_date_time; using date_time::max_date_time; using date_time::min_date_time; # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_date.hpp" 3 4 class __attribute__((__visibility__("default"))) date : public date_time::date<date, gregorian_calendar, date_duration> { public: typedef gregorian_calendar::year_type year_type; typedef gregorian_calendar::month_type month_type; typedef gregorian_calendar::day_type day_type; typedef gregorian_calendar::day_of_year_type day_of_year_type; typedef gregorian_calendar::ymd_type ymd_type; typedef gregorian_calendar::date_rep_type date_rep_type; typedef gregorian_calendar::date_int_type date_int_type; typedef date_duration duration_type; constexpr date(): date_time::date<date, gregorian_calendar, date_duration>(date_rep_type::from_special(not_a_date_time)) {} constexpr date(year_type y, month_type m, day_type d) : date_time::date<date, gregorian_calendar, date_duration>(y, m, d) { if (gregorian_calendar::end_of_month_day(y, m) < d) { boost::throw_exception(bad_day_of_month(std::string("Day of month is not valid for year"))); } } constexpr explicit date(const ymd_type& ymd) : date_time::date<date, gregorian_calendar, date_duration>(ymd) {} constexpr explicit date(const date_int_type& rhs): date_time::date<date,gregorian_calendar, date_duration>(rhs) {} constexpr explicit date(date_rep_type rhs): date_time::date<date,gregorian_calendar, date_duration>(rhs) {} constexpr explicit date(special_values sv): date_time::date<date, gregorian_calendar, date_duration>(from_special_adjusted(sv)) {} constexpr date_int_type julian_day() const { ymd_type ymd = year_month_day(); return gregorian_calendar::julian_day_number(ymd); } constexpr day_of_year_type day_of_year() const { date start_of_year(year(), 1, 1); unsigned short doy = static_cast<unsigned short>((*this-start_of_year).days() + 1); return day_of_year_type(doy); } constexpr date_int_type modjulian_day() const { ymd_type ymd = year_month_day(); return gregorian_calendar::modjulian_day_number(ymd); } constexpr int week_number() const { ymd_type ymd = year_month_day(); return gregorian_calendar::week_number(ymd); } constexpr date_int_type day_number() const { return days_; } constexpr date end_of_month() const { ymd_type ymd = year_month_day(); unsigned short eom_day = gregorian_calendar::end_of_month_day(ymd.year, ymd.month); return date(ymd.year, ymd.month, eom_day); } friend constexpr bool operator==(const date& lhs, const date& rhs); private: constexpr date_rep_type from_special_adjusted(special_values sv) { switch (sv) { case min_date_time: return gregorian_calendar::day_number(ymd_type(1400, 1, 1)); case max_date_time: return gregorian_calendar::day_number(ymd_type(9999, 12, 31)); default: return date_rep_type::from_special(sv); } } }; inline constexpr bool operator==(const date& lhs, const date& rhs) { return lhs.days_ == rhs.days_; } } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/adjust_functors.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/adjust_functors.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/wrapping_int.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/wrapping_int.hpp" 3 4 namespace boost { namespace date_time { # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/wrapping_int.hpp" 3 4 template<typename int_type_, int_type_ wrap_val> class wrapping_int { public: typedef int_type_ int_type; static constexpr int_type wrap_value() {return wrap_val;} constexpr wrapping_int(int_type v) : value_(v) {} constexpr int_type as_int() const {return value_;} constexpr operator int_type() const {return value_;} template< typename IntT > constexpr IntT add(IntT v) { int_type remainder = static_cast<int_type>(v % (wrap_val)); IntT overflow = static_cast<IntT>(v / (wrap_val)); value_ = static_cast<int_type>(value_ + remainder); return calculate_wrap(overflow); } template< typename IntT > constexpr IntT subtract(IntT v) { int_type remainder = static_cast<int_type>(v % (wrap_val)); IntT underflow = static_cast<IntT>(-(v / (wrap_val))); value_ = static_cast<int_type>(value_ - remainder); return calculate_wrap(underflow) * -1; } private: int_type value_; template< typename IntT > constexpr IntT calculate_wrap(IntT wrap) { if ((value_) >= wrap_val) { ++wrap; value_ -= (wrap_val); } else if(value_ < 0) { --wrap; value_ += (wrap_val); } return wrap; } }; template<typename int_type_, int_type_ wrap_min, int_type_ wrap_max> class wrapping_int2 { public: typedef int_type_ int_type; static constexpr int_type wrap_value() {return wrap_max;} static constexpr int_type min_value() {return wrap_min;} constexpr wrapping_int2(int_type v) : value_(v) { if(value_ < wrap_min) { value_ = wrap_min; } if(value_ > wrap_max) { value_ = wrap_max; } } constexpr int_type as_int() const {return value_;} constexpr operator int_type() const {return value_;} template< typename IntT > constexpr IntT add(IntT v) { int_type remainder = static_cast<int_type>(v % (wrap_max - wrap_min + 1)); IntT overflow = static_cast<IntT>(v / (wrap_max - wrap_min + 1)); value_ = static_cast<int_type>(value_ + remainder); return calculate_wrap(overflow); } template< typename IntT > constexpr IntT subtract(IntT v) { int_type remainder = static_cast<int_type>(v % (wrap_max - wrap_min + 1)); IntT underflow = static_cast<IntT>(-(v / (wrap_max - wrap_min + 1))); value_ = static_cast<int_type>(value_ - remainder); return calculate_wrap(underflow); } private: int_type value_; template< typename IntT > constexpr IntT calculate_wrap(IntT wrap) { if ((value_) > wrap_max) { ++wrap; value_ -= (wrap_max - wrap_min + 1); } else if((value_) < wrap_min) { --wrap; value_ += (wrap_max - wrap_min + 1); } return wrap; } }; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/adjust_functors.hpp" 2 3 4 namespace boost { namespace date_time { template<class date_type> class day_functor { public: typedef typename date_type::duration_type duration_type; day_functor(int f) : f_(f) {} duration_type get_offset(const date_type&) const { return duration_type(f_); } duration_type get_neg_offset(const date_type&) const { return duration_type(-f_); } private: int f_; }; # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/adjust_functors.hpp" 3 4 template<class date_type> class month_functor { public: typedef typename date_type::duration_type duration_type; typedef typename date_type::calendar_type cal_type; typedef typename cal_type::ymd_type ymd_type; typedef typename cal_type::day_type day_type; month_functor(int f) : f_(f), origDayOfMonth_(0) {} duration_type get_offset(const date_type& d) const { ymd_type ymd(d.year_month_day()); if (origDayOfMonth_ == 0) { origDayOfMonth_ = ymd.day; day_type endOfMonthDay(cal_type::end_of_month_day(ymd.year,ymd.month)); if (endOfMonthDay == ymd.day) { origDayOfMonth_ = -1; } } typedef date_time::wrapping_int2<short,1,12> wrap_int2; wrap_int2 wi(ymd.month); const typename ymd_type::year_type year(static_cast<typename ymd_type::year_type::value_type>(ymd.year + wi.add(f_))); day_type resultingEndOfMonthDay(cal_type::end_of_month_day(year, wi.as_int())); if (origDayOfMonth_ == -1) { return date_type(year, wi.as_int(), resultingEndOfMonthDay) - d; } day_type dayOfMonth = origDayOfMonth_; if (dayOfMonth > resultingEndOfMonthDay) { dayOfMonth = resultingEndOfMonthDay; } return date_type(year, wi.as_int(), dayOfMonth) - d; } duration_type get_neg_offset(const date_type& d) const { ymd_type ymd(d.year_month_day()); if (origDayOfMonth_ == 0) { origDayOfMonth_ = ymd.day; day_type endOfMonthDay(cal_type::end_of_month_day(ymd.year,ymd.month)); if (endOfMonthDay == ymd.day) { origDayOfMonth_ = -1; } } typedef date_time::wrapping_int2<short,1,12> wrap_int2; wrap_int2 wi(ymd.month); const typename ymd_type::year_type year(static_cast<typename ymd_type::year_type::value_type>(ymd.year + wi.subtract(f_))); day_type resultingEndOfMonthDay(cal_type::end_of_month_day(year, wi.as_int())); if (origDayOfMonth_ == -1) { return date_type(year, wi.as_int(), resultingEndOfMonthDay) - d; } day_type dayOfMonth = origDayOfMonth_; if (dayOfMonth > resultingEndOfMonthDay) { dayOfMonth = resultingEndOfMonthDay; } return date_type(year, wi.as_int(), dayOfMonth) - d; } private: int f_; mutable short origDayOfMonth_; }; template<class date_type> class week_functor { public: typedef typename date_type::duration_type duration_type; typedef typename date_type::calendar_type calendar_type; week_functor(int f) : f_(f) {} duration_type get_offset(const date_type&) const { return duration_type(f_*static_cast<int>(calendar_type::days_in_week())); } duration_type get_neg_offset(const date_type&) const { return duration_type(-f_*static_cast<int>(calendar_type::days_in_week())); } private: int f_; }; template<class date_type> class year_functor { public: typedef typename date_type::duration_type duration_type; year_functor(int f) : _mf(f * 12) {} duration_type get_offset(const date_type& d) const { return _mf.get_offset(d); } duration_type get_neg_offset(const date_type& d) const { return _mf.get_neg_offset(d); } private: month_functor<date_type> _mf; }; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/greg_duration_types.hpp" 2 3 4 namespace boost { namespace gregorian { struct __attribute__((__visibility__("default"))) greg_durations_config { typedef date date_type; typedef date_time::int_adapter<int> int_rep; typedef date_time::month_functor<date_type> month_adjustor_type; }; typedef date_time::months_duration<greg_durations_config> months; typedef date_time::years_duration<greg_durations_config> years; class __attribute__((__visibility__("default"))) weeks_duration : public date_duration { public: constexpr weeks_duration(duration_rep w) : date_duration(w * 7) {} constexpr weeks_duration(date_time::special_values sv) : date_duration(sv) {} }; typedef weeks_duration weeks; }} # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 namespace boost { namespace date_time { template<class date_type> class year_based_generator { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::year_type year_type; year_based_generator() {} virtual ~year_based_generator() {} virtual date_type get_date(year_type y) const = 0; virtual std::string to_string() const = 0; }; # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 template<class date_type> class partial_date : public year_based_generator<date_type> { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::day_type day_type; typedef typename calendar_type::month_type month_type; typedef typename calendar_type::year_type year_type; typedef typename date_type::duration_type duration_type; typedef typename duration_type::duration_rep duration_rep; partial_date(day_type d, month_type m) : day_(d), month_(m) {} partial_date(duration_rep days) : day_(1), month_(1) { date_type d1(2000,1,1); if(days > 1) { if(days > 366) { days = 366; } days = days - 1; duration_type dd(days); d1 = d1 + dd; } day_ = d1.day(); month_ = d1.month(); } # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 date_type get_date(year_type y) const override { if((day_ == 29) && (month_ == 2) && !(calendar_type::is_leap_year(y))) { std::ostringstream ss; ss << "No Feb 29th in given year of " << y << "."; boost::throw_exception(std::invalid_argument(ss.str())); } return date_type(y, month_, day_); } date_type operator()(year_type y) const { return get_date(y); } bool operator==(const partial_date& rhs) const { return (month_ == rhs.month_) && (day_ == rhs.day_); } bool operator<(const partial_date& rhs) const { if (month_ < rhs.month_) return true; if (month_ > rhs.month_) return false; return (day_ < rhs.day_); } month_type month() const { return month_; } day_type day() const { return day_; } std::string to_string() const override { std::ostringstream ss; date_type d(2004, month_, day_); unsigned short c = d.day_of_year(); c--; ss << c; return ss.str(); } private: day_type day_; month_type month_; }; inline const char* nth_as_str(int ele) { static const char* const _nth_as_str[] = {"out of range", "first", "second", "third", "fourth", "fifth"}; if(ele >= 1 && ele <= 5) { return _nth_as_str[ele]; } else { return _nth_as_str[0]; } } # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 template<class date_type> class nth_kday_of_month : public year_based_generator<date_type> { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::day_of_week_type day_of_week_type; typedef typename calendar_type::month_type month_type; typedef typename calendar_type::year_type year_type; typedef typename date_type::duration_type duration_type; enum week_num {first=1, second, third, fourth, fifth}; nth_kday_of_month(week_num week_no, day_of_week_type dow, month_type m) : month_(m), wn_(week_no), dow_(dow) {} date_type get_date(year_type y) const override { date_type d(y, month_, 1); duration_type one_day(1); duration_type one_week(7); while (dow_ != d.day_of_week()) { d = d + one_day; } int week = 1; while (week < wn_) { d = d + one_week; week++; } if(d.month() != month_) { d = d - one_week; } return d; } month_type month() const { return month_; } week_num nth_week() const { return wn_; } day_of_week_type day_of_week() const { return dow_; } const char* nth_week_as_str() const { return nth_as_str(wn_); } std::string to_string() const override { std::ostringstream ss; ss << 'M' << static_cast<int>(month_) << '.' << static_cast<int>(wn_) << '.' << static_cast<int>(dow_); return ss.str(); } private: month_type month_; week_num wn_; day_of_week_type dow_; }; template<class date_type> class first_kday_of_month : public year_based_generator<date_type> { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::day_of_week_type day_of_week_type; typedef typename calendar_type::month_type month_type; typedef typename calendar_type::year_type year_type; typedef typename date_type::duration_type duration_type; first_kday_of_month(day_of_week_type dow, month_type m) : month_(m), dow_(dow) {} date_type get_date(year_type year) const override { date_type d(year, month_,1); duration_type one_day(1); while (dow_ != d.day_of_week()) { d = d + one_day; } return d; } month_type month() const { return month_; } day_of_week_type day_of_week() const { return dow_; } std::string to_string() const override { std::ostringstream ss; ss << 'M' << static_cast<int>(month_) << '.' << 1 << '.' << static_cast<int>(dow_); return ss.str(); } private: month_type month_; day_of_week_type dow_; }; # 322 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 template<class date_type> class last_kday_of_month : public year_based_generator<date_type> { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::day_of_week_type day_of_week_type; typedef typename calendar_type::month_type month_type; typedef typename calendar_type::year_type year_type; typedef typename date_type::duration_type duration_type; last_kday_of_month(day_of_week_type dow, month_type m) : month_(m), dow_(dow) {} date_type get_date(year_type year) const override { date_type d(year, month_, calendar_type::end_of_month_day(year,month_)); duration_type one_day(1); while (dow_ != d.day_of_week()) { d = d - one_day; } return d; } month_type month() const { return month_; } day_of_week_type day_of_week() const { return dow_; } std::string to_string() const override { std::ostringstream ss; ss << 'M' << static_cast<int>(month_) << '.' << 5 << '.' << static_cast<int>(dow_); return ss.str(); } private: month_type month_; day_of_week_type dow_; }; # 384 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 template<class date_type> class first_kday_after { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::day_of_week_type day_of_week_type; typedef typename date_type::duration_type duration_type; first_kday_after(day_of_week_type dow) : dow_(dow) {} date_type get_date(date_type start_day) const { duration_type one_day(1); date_type d = start_day + one_day; while (dow_ != d.day_of_week()) { d = d + one_day; } return d; } day_of_week_type day_of_week() const { return dow_; } private: day_of_week_type dow_; }; # 422 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_generators.hpp" 3 4 template<class date_type> class first_kday_before { public: typedef typename date_type::calendar_type calendar_type; typedef typename calendar_type::day_of_week_type day_of_week_type; typedef typename date_type::duration_type duration_type; first_kday_before(day_of_week_type dow) : dow_(dow) {} date_type get_date(date_type start_day) const { duration_type one_day(1); date_type d = start_day - one_day; while (dow_ != d.day_of_week()) { d = d - one_day; } return d; } day_of_week_type day_of_week() const { return dow_; } private: day_of_week_type dow_; }; template<typename date_type, class weekday_type> inline typename date_type::duration_type days_until_weekday(const date_type& d, const weekday_type& wd) { typedef typename date_type::duration_type duration_type; duration_type wks(0); duration_type dd(wd.as_number() - d.day_of_week().as_number()); if(dd.is_negative()){ wks = duration_type(7); } return dd + wks; } template<typename date_type, class weekday_type> inline typename date_type::duration_type days_before_weekday(const date_type& d, const weekday_type& wd) { typedef typename date_type::duration_type duration_type; duration_type wks(0); duration_type dd(wd.as_number() - d.day_of_week().as_number()); if(dd.days() > 0){ wks = duration_type(7); } return (-dd + wks); } template<class date_type, class weekday_type> inline date_type next_weekday(const date_type& d, const weekday_type& wd) { return d + days_until_weekday(d, wd); } template<class date_type, class weekday_type> inline date_type previous_weekday(const date_type& d, const weekday_type& wd) { return d - days_before_weekday(d, wd); } } } # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_clock_device.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_clock_device.hpp" 3 4 namespace boost { namespace date_time { template<class date_type> class day_clock { public: typedef typename date_type::ymd_type ymd_type; static date_type local_day() { return date_type(local_day_ymd()); } static typename date_type::ymd_type local_day_ymd() { ::std::tm result; ::std::tm* curr = get_local_time(result); return ymd_type(static_cast<unsigned short>(curr->tm_year + 1900), static_cast<unsigned short>(curr->tm_mon + 1), static_cast<unsigned short>(curr->tm_mday)); } static typename date_type::ymd_type universal_day_ymd() { ::std::tm result; ::std::tm* curr = get_universal_time(result); return ymd_type(static_cast<unsigned short>(curr->tm_year + 1900), static_cast<unsigned short>(curr->tm_mon + 1), static_cast<unsigned short>(curr->tm_mday)); } static date_type universal_day() { return date_type(universal_day_ymd()); } private: static ::std::tm* get_local_time(std::tm& result) { ::std::time_t t; ::std::time(&t); return c_time::localtime(&t, &result); } static ::std::tm* get_universal_time(std::tm& result) { ::std::time_t t; ::std::time(&t); return c_time::gmtime(&t, &result); } }; } } # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_iterator.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_iterator.hpp" 3 4 namespace boost { namespace date_time { enum date_resolutions {day, week, months, year, decade, century, NumDateResolutions}; # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_iterator.hpp" 3 4 template<class date_type> class date_itr_base { public: typedef typename date_type::duration_type duration_type; typedef date_type value_type; typedef std::input_iterator_tag iterator_category; date_itr_base(date_type d) : current_(d) {} virtual ~date_itr_base() {} date_itr_base& operator++() { current_ = current_ + get_offset(current_); return *this; } date_itr_base& operator--() { current_ = current_ + get_neg_offset(current_); return *this; } virtual duration_type get_offset(const date_type& current) const=0; virtual duration_type get_neg_offset(const date_type& current) const=0; const date_type& operator*() const {return current_;} const date_type* operator->() const {return ¤t_;} bool operator< (const date_type& d) const {return current_ < d;} bool operator<= (const date_type& d) const {return current_ <= d;} bool operator> (const date_type& d) const {return current_ > d;} bool operator>= (const date_type& d) const {return current_ >= d;} bool operator== (const date_type& d) const {return current_ == d;} bool operator!= (const date_type& d) const {return current_ != d;} private: date_type current_; }; # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/date_iterator.hpp" 3 4 template<class offset_functor, class date_type> class date_itr : public date_itr_base<date_type> { public: typedef typename date_type::duration_type duration_type; date_itr(date_type d, int factor=1) : date_itr_base<date_type>(d), of_(factor) {} private: virtual duration_type get_offset(const date_type& current) const { return of_.get_offset(current); } virtual duration_type get_neg_offset(const date_type& current) const { return of_.get_neg_offset(current); } offset_functor of_; }; } } # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/gregorian/gregorian_types.hpp" 2 3 4 namespace boost { namespace gregorian { typedef date_time::period<date, date_duration> date_period; typedef date_time::year_based_generator<date> year_based_generator; typedef date_time::partial_date<date> partial_date; typedef date_time::nth_kday_of_month<date> nth_kday_of_month; typedef nth_kday_of_month nth_day_of_the_week_in_month; typedef date_time::first_kday_of_month<date> first_kday_of_month; typedef first_kday_of_month first_day_of_the_week_in_month; typedef date_time::last_kday_of_month<date> last_kday_of_month; typedef last_kday_of_month last_day_of_the_week_in_month; typedef date_time::first_kday_after<date> first_kday_after; typedef first_kday_after first_day_of_the_week_after; typedef date_time::first_kday_before<date> first_kday_before; typedef first_kday_before first_day_of_the_week_before; typedef date_time::day_clock<date> day_clock; typedef date_time::date_itr_base<date> date_iterator; typedef date_time::date_itr<date_time::day_functor<date>, date> day_iterator; typedef date_time::date_itr<date_time::week_functor<date>, date> week_iterator; typedef date_time::date_itr<date_time::month_functor<date>, date> month_iterator; typedef date_time::date_itr<date_time::year_functor<date>, date> year_iterator; using date_time::days_until_weekday; using date_time::days_before_weekday; using date_time::next_weekday; using date_time::previous_weekday; } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 2 3 4 namespace boost { namespace posix_time { # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 3 4 typedef date_time::time_resolution_traits< boost::date_time::time_resolution_traits_adapted64_impl, boost::date_time::micro, 1000000, 6 > time_res_traits; class __attribute__((__visibility__("default"))) time_duration : public date_time::time_duration<time_duration, time_res_traits> { public: typedef time_res_traits rep_type; typedef time_res_traits::day_type day_type; typedef time_res_traits::hour_type hour_type; typedef time_res_traits::min_type min_type; typedef time_res_traits::sec_type sec_type; typedef time_res_traits::fractional_seconds_type fractional_seconds_type; typedef time_res_traits::tick_type tick_type; typedef time_res_traits::impl_type impl_type; constexpr time_duration(hour_type hour, min_type min, sec_type sec, fractional_seconds_type fs=0) : date_time::time_duration<time_duration, time_res_traits>(hour,min,sec,fs) {} constexpr time_duration() : date_time::time_duration<time_duration, time_res_traits>(0,0,0) {} constexpr time_duration(boost::date_time::special_values sv) : date_time::time_duration<time_duration, time_res_traits>(sv) {} friend class date_time::time_duration<time_duration, time_res_traits>; protected: constexpr explicit time_duration(impl_type tick_count) : date_time::time_duration<time_duration, time_res_traits>(tick_count) {} }; # 141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_config.hpp" 3 4 class millisec_posix_time_system_config { public: typedef boost::int64_t time_rep_type; typedef gregorian::date date_type; typedef gregorian::date_duration date_duration_type; typedef time_duration time_duration_type; typedef time_res_traits::tick_type int_type; typedef time_res_traits::impl_type impl_type; typedef time_res_traits resolution_traits; static const boost::int64_t tick_per_second = 1000000; }; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_system.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_system_split.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_system_split.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_system_split.hpp" 2 3 4 namespace boost { namespace date_time { template<typename config> class split_timedate_system { public: typedef typename config::time_rep_type time_rep_type; typedef typename config::date_type date_type; typedef typename config::time_duration_type time_duration_type; typedef typename config::date_duration_type date_duration_type; typedef typename config::int_type int_type; typedef typename config::resolution_traits resolution_traits; private: static const int_type ticks_per_day = 86400L * config::tick_per_second; public: typedef date_time::wrapping_int<int_type, ticks_per_day> wrap_int_type; static constexpr time_rep_type get_time_rep(special_values sv) { switch (sv) { case not_a_date_time: return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); case pos_infin: return time_rep_type(date_type(pos_infin), time_duration_type(pos_infin)); case neg_infin: return time_rep_type(date_type(neg_infin), time_duration_type(neg_infin)); case max_date_time: { time_duration_type td = time_duration_type(24,0,0,0) - time_duration_type(0,0,0,1); return time_rep_type(date_type(max_date_time), td); } case min_date_time: return time_rep_type(date_type(min_date_time), time_duration_type(0,0,0,0)); default: return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } } static constexpr time_rep_type get_time_rep(const date_type& day, const time_duration_type& tod, date_time::dst_flags = not_dst) { if(day.is_special() || tod.is_special()) { if(day.is_not_a_date() || tod.is_not_a_date_time()) { return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } else if(day.is_pos_infinity()) { if(tod.is_neg_infinity()) { return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } else { return time_rep_type(day, time_duration_type(pos_infin)); } } else if(day.is_neg_infinity()) { if(tod.is_pos_infinity()) { return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } else { return time_rep_type(day, time_duration_type(neg_infin)); } } else if(tod.is_pos_infinity()) { if(day.is_neg_infinity()) { return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } else { return time_rep_type(date_type(pos_infin), tod); } } else if(tod.is_neg_infinity()) { if(day.is_pos_infinity()) { return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } else { return time_rep_type(date_type(neg_infin), tod); } } } return time_rep_type(day, tod); } static constexpr date_type get_date(const time_rep_type& val) { return date_type(val.day); } static constexpr time_duration_type get_time_of_day(const time_rep_type& val) { return time_duration_type(val.time_of_day); } static std::string zone_name(const time_rep_type&) { return std::string(); } static constexpr bool is_equal(const time_rep_type& lhs, const time_rep_type& rhs) { return ((lhs.day == rhs.day) && (lhs.time_of_day == rhs.time_of_day)); } static constexpr bool is_less(const time_rep_type& lhs, const time_rep_type& rhs) { if (lhs.day < rhs.day) return true; if (lhs.day > rhs.day) return false; return (lhs.time_of_day < rhs.time_of_day); } static constexpr time_rep_type add_days(const time_rep_type& base, const date_duration_type& dd) { return time_rep_type(base.day+dd, base.time_of_day); } static constexpr time_rep_type subtract_days(const time_rep_type& base, const date_duration_type& dd) { return split_timedate_system::get_time_rep(base.day-dd, base.time_of_day); } static constexpr time_rep_type subtract_time_duration(const time_rep_type& base, const time_duration_type& td) { if(base.day.is_special() || td.is_special()) { return split_timedate_system::get_time_rep(base.day, -td); } if (td.is_negative()) { time_duration_type td1 = td.invert_sign(); return add_time_duration(base,td1); } wrap_int_type day_offset(base.time_of_day.ticks()); date_duration_type day_overflow(static_cast<typename date_duration_type::duration_rep_type>(day_offset.subtract(td.ticks()))); return time_rep_type(base.day-day_overflow, time_duration_type(0,0,0,day_offset.as_int())); } static constexpr time_rep_type add_time_duration(const time_rep_type& base, time_duration_type td) { if(base.day.is_special() || td.is_special()) { return split_timedate_system::get_time_rep(base.day, td); } if (td.is_negative()) { time_duration_type td1 = td.invert_sign(); return subtract_time_duration(base,td1); } wrap_int_type day_offset(base.time_of_day.ticks()); date_duration_type day_overflow(static_cast< typename date_duration_type::duration_rep_type >(day_offset.add(td.ticks()))); return time_rep_type(base.day+day_overflow, time_duration_type(0,0,0,day_offset.as_int())); } static constexpr time_duration_type subtract_times(const time_rep_type& lhs, const time_rep_type& rhs) { date_duration_type dd = lhs.day - rhs.day; if (__builtin_expect(!dd.is_special(), 1)) { time_duration_type td(dd.days()*24,0,0); time_duration_type td2 = lhs.time_of_day - rhs.time_of_day; return td+td2; } else { time_duration_type td(dd.as_special()); time_duration_type td2 = lhs.time_of_day - rhs.time_of_day; return td+td2; } } }; } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_system.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_system_counted.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_system_counted.hpp" 3 4 namespace boost { namespace date_time { template<class config> struct counted_time_rep { typedef typename config::int_type int_type; typedef typename config::date_type date_type; typedef typename config::impl_type impl_type; typedef typename date_type::duration_type date_duration_type; typedef typename date_type::calendar_type calendar_type; typedef typename date_type::ymd_type ymd_type; typedef typename config::time_duration_type time_duration_type; typedef typename config::resolution_traits resolution_traits; constexpr counted_time_rep(const date_type& d, const time_duration_type& time_of_day) : time_count_(1) { if(d.is_infinity() || d.is_not_a_date() || time_of_day.is_special()) { time_count_ = time_of_day.get_rep() + d.day_count(); } else { time_count_ = (d.day_number() * frac_sec_per_day()) + time_of_day.ticks(); } } constexpr explicit counted_time_rep(int_type count) : time_count_(count) {} constexpr explicit counted_time_rep(impl_type count) : time_count_(count) {} constexpr date_type date() const { if(time_count_.is_special()) { return date_type(time_count_.as_special()); } else { typename calendar_type::date_int_type dc = static_cast<typename calendar_type::date_int_type>(day_count()); ymd_type ymd = calendar_type::from_day_number(dc); return date_type(ymd); } } constexpr unsigned long day_count() const { # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_system_counted.hpp" 3 4 return static_cast<unsigned long>(resolution_traits::as_number(time_count_) / frac_sec_per_day()); } constexpr int_type time_count() const { return resolution_traits::as_number(time_count_); } constexpr int_type tod() const { return resolution_traits::as_number(time_count_) % frac_sec_per_day(); } static constexpr int_type frac_sec_per_day() { int_type seconds_per_day = 60*60*24; int_type fractional_sec_per_sec(resolution_traits::res_adjust()); return seconds_per_day*fractional_sec_per_sec; } constexpr bool is_pos_infinity()const { return impl_type::is_pos_inf(time_count_.as_number()); } constexpr bool is_neg_infinity()const { return impl_type::is_neg_inf(time_count_.as_number()); } constexpr bool is_not_a_date_time()const { return impl_type::is_not_a_number(time_count_.as_number()); } constexpr bool is_special()const { return time_count_.is_special(); } constexpr impl_type get_rep()const { return time_count_; } private: impl_type time_count_; }; template<class time_rep> class counted_time_system { public: typedef time_rep time_rep_type; typedef typename time_rep_type::impl_type impl_type; typedef typename time_rep_type::time_duration_type time_duration_type; typedef typename time_duration_type::fractional_seconds_type fractional_seconds_type; typedef typename time_rep_type::date_type date_type; typedef typename time_rep_type::date_duration_type date_duration_type; template<class T> static constexpr void unused_var(const T&) {} static constexpr time_rep_type get_time_rep(const date_type& day, const time_duration_type& tod, date_time::dst_flags dst=not_dst) { unused_var(dst); return time_rep_type(day, tod); } static constexpr time_rep_type get_time_rep(special_values sv) { switch (sv) { case not_a_date_time: return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); case pos_infin: return time_rep_type(date_type(pos_infin), time_duration_type(pos_infin)); case neg_infin: return time_rep_type(date_type(neg_infin), time_duration_type(neg_infin)); case max_date_time: { time_duration_type td = time_duration_type(24,0,0,0) - time_duration_type(0,0,0,1); return time_rep_type(date_type(max_date_time), td); } case min_date_time: return time_rep_type(date_type(min_date_time), time_duration_type(0,0,0,0)); default: return time_rep_type(date_type(not_a_date_time), time_duration_type(not_a_date_time)); } } static constexpr date_type get_date(const time_rep_type& val) { return val.date(); } static constexpr time_duration_type get_time_of_day(const time_rep_type& val) { if(val.is_special()) { return time_duration_type(val.get_rep().as_special()); } else{ return time_duration_type(0,0,0,val.tod()); } } static std::string zone_name(const time_rep_type&) { return ""; } static constexpr bool is_equal(const time_rep_type& lhs, const time_rep_type& rhs) { return (lhs.time_count() == rhs.time_count()); } static constexpr bool is_less(const time_rep_type& lhs, const time_rep_type& rhs) { return (lhs.time_count() < rhs.time_count()); } static constexpr time_rep_type add_days(const time_rep_type& base, const date_duration_type& dd) { if(base.is_special() || dd.is_special()) { return(time_rep_type(base.get_rep() + dd.get_rep())); } else { return time_rep_type(base.time_count() + (dd.days() * time_rep_type::frac_sec_per_day())); } } static constexpr time_rep_type subtract_days(const time_rep_type& base, const date_duration_type& dd) { if(base.is_special() || dd.is_special()) { return(time_rep_type(base.get_rep() - dd.get_rep())); } else{ return time_rep_type(base.time_count() - (dd.days() * time_rep_type::frac_sec_per_day())); } } static constexpr time_rep_type subtract_time_duration(const time_rep_type& base, const time_duration_type& td) { if(base.is_special() || td.is_special()) { return(time_rep_type(base.get_rep() - td.get_rep())); } else { return time_rep_type(base.time_count() - td.ticks()); } } static constexpr time_rep_type add_time_duration(const time_rep_type& base, time_duration_type td) { if(base.is_special() || td.is_special()) { return(time_rep_type(base.get_rep() + td.get_rep())); } else { return time_rep_type(base.time_count() + td.ticks()); } } static constexpr time_duration_type subtract_times(const time_rep_type& lhs, const time_rep_type& rhs) { if(lhs.is_special() || rhs.is_special()) { return(time_duration_type( impl_type::to_special((lhs.get_rep() - rhs.get_rep()).as_number()))); } else { fractional_seconds_type fs = lhs.time_count() - rhs.time_count(); return time_duration_type(0,0,0,fs); } } }; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_system.hpp" 2 3 4 namespace boost { namespace posix_time { # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_system.hpp" 3 4 typedef date_time::counted_time_rep<millisec_posix_time_system_config> int64_time_rep; typedef date_time::counted_time_system<int64_time_rep> posix_time_system; } } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/ptime.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time.hpp" 3 4 namespace boost { namespace date_time { # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time.hpp" 3 4 template <class T, class time_system> class base_time : private boost::less_than_comparable<T , boost::equality_comparable<T > > { public: typedef void _is_boost_date_time_time_point; typedef T time_type; typedef typename time_system::time_rep_type time_rep_type; typedef typename time_system::date_type date_type; typedef typename time_system::date_duration_type date_duration_type; typedef typename time_system::time_duration_type time_duration_type; constexpr base_time(const date_type& day, const time_duration_type& td, dst_flags dst=not_dst) : time_(time_system::get_time_rep(day, td, dst)) {} constexpr base_time(special_values sv) : time_(time_system::get_time_rep(sv)) {} constexpr base_time(const time_rep_type& rhs) : time_(rhs) {} constexpr date_type date() const { return time_system::get_date(time_); } constexpr time_duration_type time_of_day() const { return time_system::get_time_of_day(time_); } std::string zone_name(bool =false) const { return time_system::zone_name(time_); } std::string zone_abbrev(bool =false) const { return time_system::zone_name(time_); } std::string zone_as_posix_string() const { return std::string(); } constexpr bool is_not_a_date_time() const { return time_.is_not_a_date_time(); } constexpr bool is_infinity() const { return (is_pos_infinity() || is_neg_infinity()); } constexpr bool is_pos_infinity() const { return time_.is_pos_infinity(); } constexpr bool is_neg_infinity() const { return time_.is_neg_infinity(); } constexpr bool is_special() const { return(is_not_a_date_time() || is_infinity()); } constexpr bool operator==(const time_type& rhs) const { return time_system::is_equal(time_,rhs.time_); } constexpr bool operator<(const time_type& rhs) const { return time_system::is_less(time_,rhs.time_); } constexpr time_duration_type operator-(const time_type& rhs) const { return time_system::subtract_times(time_, rhs.time_); } constexpr time_type operator+(const date_duration_type& dd) const { return time_system::add_days(time_, dd); } constexpr time_type operator+=(const date_duration_type& dd) { time_ = (time_system::get_time_rep(date() + dd, time_of_day())); return time_type(time_); } constexpr time_type operator-(const date_duration_type& dd) const { return time_system::subtract_days(time_, dd); } constexpr time_type operator-=(const date_duration_type& dd) { time_ = (time_system::get_time_rep(date() - dd, time_of_day())); return time_type(time_); } constexpr time_type operator+(const time_duration_type& td) const { return time_type(time_system::add_time_duration(time_, td)); } constexpr time_type operator+=(const time_duration_type& td) { time_ = time_system::add_time_duration(time_,td); return time_type(time_); } constexpr time_type operator-(const time_duration_type& rhs) const { return time_system::subtract_time_duration(time_, rhs); } constexpr time_type operator-=(const time_duration_type& td) { time_ = time_system::subtract_time_duration(time_, td); return time_type(time_); } protected: time_rep_type time_; }; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/ptime.hpp" 2 3 4 namespace boost { namespace posix_time { using date_time::special_values; using date_time::not_special; using date_time::neg_infin; using date_time::pos_infin; using date_time::not_a_date_time; using date_time::max_date_time; using date_time::min_date_time; class __attribute__((__visibility__("default"))) ptime : public date_time::base_time<ptime, posix_time_system> { public: typedef posix_time_system time_system_type; typedef time_system_type::time_rep_type time_rep_type; typedef time_system_type::time_duration_type time_duration_type; typedef ptime time_type; constexpr ptime(gregorian::date d,time_duration_type td) : date_time::base_time<time_type,time_system_type>(d,td) {} constexpr explicit ptime(gregorian::date d) : date_time::base_time<time_type,time_system_type>(d,time_duration_type(0,0,0)) {} constexpr ptime(const time_rep_type& rhs): date_time::base_time<time_type,time_system_type>(rhs) {} constexpr ptime(const special_values sv) : date_time::base_time<time_type,time_system_type>(sv) {} constexpr ptime() : date_time::base_time<time_type,time_system_type>(gregorian::date(not_a_date_time), time_duration_type(not_a_date_time)) {} friend constexpr bool operator==(const ptime& lhs, const ptime& rhs); }; inline constexpr bool operator==(const ptime& lhs, const ptime& rhs) { return ptime::time_system_type::is_equal(lhs.time_,rhs.time_); } } } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/date_duration_operators.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/date_duration_operators.hpp" 3 4 namespace boost { namespace posix_time { # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/date_duration_operators.hpp" 3 4 inline constexpr ptime operator+(const ptime& t, const boost::gregorian::months& m) { return t + m.get_offset(t.date()); } inline constexpr ptime operator+=(ptime& t, const boost::gregorian::months& m) { return t += m.get_offset(t.date()); } inline constexpr ptime operator-(const ptime& t, const boost::gregorian::months& m) { return t + m.get_neg_offset(t.date()); } inline constexpr ptime operator-=(ptime& t, const boost::gregorian::months& m) { return t += m.get_neg_offset(t.date()); } inline constexpr ptime operator+(const ptime& t, const boost::gregorian::years& y) { return t + y.get_offset(t.date()); } inline constexpr ptime operator+=(ptime& t, const boost::gregorian::years& y) { return t += y.get_offset(t.date()); } inline constexpr ptime operator-(const ptime& t, const boost::gregorian::years& y) { return t + y.get_neg_offset(t.date()); } inline constexpr ptime operator-=(ptime& t, const boost::gregorian::years& y) { return t += y.get_neg_offset(t.date()); } }} # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_duration.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_duration.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/cast.hpp" 1 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/cast.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type.hpp" 3 4 namespace boost { template <class T> struct type {}; } # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/cast.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/conversion_traits.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/conversion_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_arithmetic.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_arithmetic.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_floating_point.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_floating_point.hpp" 3 4 namespace boost { template <class T> struct is_floating_point : public false_type{}; template <class T> struct is_floating_point<const T> : public is_floating_point<T>{}; template <class T> struct is_floating_point<volatile const T> : public is_floating_point<T>{}; template <class T> struct is_floating_point<volatile T> : public is_floating_point<T>{}; template<> struct is_floating_point<float> : public true_type{}; template<> struct is_floating_point<double> : public true_type{}; template<> struct is_floating_point<long double> : public true_type{}; template<> struct is_floating_point<__float128> : public true_type{}; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_arithmetic.hpp" 2 3 4 namespace boost { template <class T> struct is_arithmetic : public integral_constant<bool, is_integral<T>::value || is_floating_point<T>::value> {}; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/if.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/if.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/static_cast.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/static_cast.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/workaround.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/static_cast.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/integral.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/integral.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/msvc.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/integral.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/eti.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 2 3 4 # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct value_type_wknd { typedef typename T::value_type type; }; # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/value_wknd.hpp" 3 4 }}} # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/if.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/void_fwd.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/void_fwd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/adl_barrier.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/adl_barrier.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/adl.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/adl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/intel.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/adl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/gcc.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/adl.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/adl_barrier.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/adl_barrier.hpp" 3 4 namespace mpl_ { namespace aux {} } namespace boost { namespace mpl { using namespace mpl_; namespace aux { using namespace mpl_::aux; } }} # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/void_fwd.hpp" 2 3 4 namespace mpl_ { struct void_; } namespace boost { namespace mpl { using ::mpl_::void_; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/bool.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/bool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/bool_fwd.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/bool_fwd.hpp" 3 4 namespace mpl_ { template< bool C_ > struct bool_; typedef bool_<true> true_; typedef bool_<false> false_; } namespace boost { namespace mpl { using ::mpl_::bool_; } } namespace boost { namespace mpl { using ::mpl_::true_; } } namespace boost { namespace mpl { using ::mpl_::false_; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/bool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c_tag.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c_tag.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/static_constant.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c_tag.hpp" 2 3 4 namespace mpl_ { struct integral_c_tag { static const int value = 0; }; } namespace boost { namespace mpl { using ::mpl_::integral_c_tag; } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/bool.hpp" 2 3 4 namespace mpl_ { template< bool C_ > struct bool_ { static const bool value = C_; typedef integral_c_tag tag; typedef bool_ type; typedef bool value_type; constexpr operator bool() const { return this->value; } }; template< bool C_ > bool const bool_<C_>::value; } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_fwd.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_fwd.hpp" 3 4 namespace mpl_ { struct na { typedef na type; enum { value = 0 }; }; } namespace boost { namespace mpl { using ::mpl_::na; } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/ctps.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na.hpp" 2 3 4 namespace boost { namespace mpl { template< typename T > struct is_na : false_ { }; template<> struct is_na<na> : true_ { }; template< typename T > struct is_not_na : true_ { }; template<> struct is_not_na<na> : false_ { }; template< typename T, typename U > struct if_na { typedef T type; }; template< typename U > struct if_na<na,U> { typedef U type; }; # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na.hpp" 3 4 }} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/lambda.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/lambda.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/ttp.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/lambda.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int_fwd.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int_fwd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/nttp_decl.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/nttp_decl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/nttp.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/nttp_decl.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int_fwd.hpp" 2 3 4 namespace mpl_ { template< int N > struct int_; } namespace boost { namespace mpl { using ::mpl_::int_; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/cat.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/cat.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/config/config.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/cat.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 2 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 namespace mpl_ { template< int N > struct int_ { static const int value = N; typedef int_ type; typedef int value_type; typedef integral_c_tag tag; # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 typedef mpl_::int_< static_cast<int>((value + 1)) > next; typedef mpl_::int_< static_cast<int>((value - 1)) > prior; constexpr operator int() const { return static_cast<int>(this->value); } }; template< int N > int const mpl_::int_< N >::value; } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/int.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/lambda_arity_param.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/template_arity_fwd.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/template_arity_fwd.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename F > struct template_arity; }}} # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/lambda_fwd.hpp" 2 3 4 namespace boost { namespace mpl { template< typename T = na , typename Tag = void_ , typename Arity = int_< aux::template_arity<T>::value > > struct lambda; }} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arity.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arity.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/dtp.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arity.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/preprocessor.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comma_if.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comma_if.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/comma_if.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/comma_if.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/if.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/if.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/iif.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/if.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/bool.hpp" 1 3 4 # 293 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/bool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/config/limits.hpp" 1 3 4 # 294 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/bool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/limits/bool_256.hpp" 1 3 4 # 297 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/bool.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/if.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/comma_if.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/empty.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/comma_if.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/comma.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/comma_if.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comma_if.hpp" 2 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repeat.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repeat.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/debug/error.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 318 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/limits/auto_rec_256.hpp" 1 3 4 # 319 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/eat.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 833 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/limits/repeat_256.hpp" 1 3 4 # 834 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repeat.hpp" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/inc.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/inc.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/inc.hpp" 1 3 4 # 307 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/inc.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/limits/inc_256.hpp" 1 3 4 # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/inc.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/inc.hpp" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/params.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/enum.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/limits/arity.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/and.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/and.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/bitand.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/and.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/identity.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/identity.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/identity.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/identity.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/empty.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 1 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/dec.hpp" 1 3 4 # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/dec.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/limits/dec_256.hpp" 1 3 4 # 309 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/dec.hpp" 2 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 1 3 4 # 322 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 323 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 1 3 4 # 312 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 1 3 4 # 313 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 315 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 345 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_left.hpp" 1 3 4 # 286 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_left.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/expr_iif.hpp" 1 3 4 # 287 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_left.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/adt.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/adt.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/is_binary.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/is_binary.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/check.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/is_binary.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/adt.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/compl.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/adt.hpp" 2 3 4 # 289 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_left.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/limits/fold_left_256.hpp" 1 3 4 # 294 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_left.hpp" 2 3 4 # 346 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/limits/fold_left_256.hpp" 1 3 4 # 352 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_left.hpp" 2 3 4 # 324 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_right.hpp" 1 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_right.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_right.hpp" 2 3 4 # 79 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_right.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_right.hpp" 1 3 4 # 285 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_right.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/reverse.hpp" 1 3 4 # 286 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_right.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/limits/fold_right_256.hpp" 1 3 4 # 290 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/detail/fold_right.hpp" 2 3 4 # 80 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/list/fold_right.hpp" 2 3 4 # 325 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 2 3 4 # 361 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/detail/while.hpp" 1 3 4 # 549 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/detail/while.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/detail/limits/while_256.hpp" 1 3 4 # 550 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/detail/while.hpp" 2 3 4 # 362 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 2 3 4 # 375 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/limits/while_256.hpp" 1 3 4 # 376 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/while.hpp" 2 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/bitor.hpp" 1 3 4 # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/elem.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/elem.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/expand.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/overload.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/overload.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/size.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/size.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/check_empty.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/check_empty.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/has_opt.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/has_opt.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/detail/has_opt.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/has_opt.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/check_empty.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/is_empty_variadic.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/is_empty_variadic.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/is_begin_parens.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/is_begin_parens.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/detail/is_begin_parens.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/punctuation/is_begin_parens.hpp" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/is_empty_variadic.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/detail/is_empty.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/is_empty_variadic.hpp" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/check_empty.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/size.hpp" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/size.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/limits/size_64.hpp" 1 3 4 # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/size.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/facilities/overload.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/rem.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/rem.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/detail/is_single_return.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/rem.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/elem.hpp" 1 3 4 # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/elem.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/limits/elem_64.hpp" 1 3 4 # 103 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/variadic/elem.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/tuple/elem.hpp" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/equal.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/equal.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/not_equal.hpp" 1 3 4 # 843 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/not_equal.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/limits/not_equal_256.hpp" 1 3 4 # 844 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/not_equal.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/equal.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/maximum_number.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_maximum_number.hpp" 2 3 4 # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/logical/not.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_minimum_number.hpp" 2 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/add.hpp" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/sub.hpp" 1 3 4 # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/overload_resolution.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/na_spec.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/if.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/lambda_support.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/if.hpp" 2 3 4 namespace boost { namespace mpl { template< bool C , typename T1 , typename T2 > struct if_c { typedef T1 type; }; template< typename T1 , typename T2 > struct if_c<false,T1,T2> { typedef T2 type; }; template< typename T1 = na , typename T2 = na , typename T3 = na > struct if_ { private: typedef if_c< static_cast<bool>(T1::value) , T2 , T3 > almost_type_; public: typedef typename almost_type_::type type; }; # 131 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/if.hpp" 3 4 template<> struct if_< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : if_< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< if_< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef if_< na , na , na > result_; typedef if_< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< if_< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< if_< na , na , na > > : int_<-1> { }; } }} # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/eval_if.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/eval_if.hpp" 3 4 namespace boost { namespace mpl { template< typename C = na , typename F1 = na , typename F2 = na > struct eval_if { typedef typename if_<C,F1,F2>::type f_; typedef typename f_::type type; }; template< bool C , typename F1 , typename F2 > struct eval_if_c { typedef typename if_c<C,F1,F2>::type f_; typedef typename f_::type type; }; template<> struct eval_if< na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 =na , typename T5 =na > struct apply : eval_if< T1 , T2 , T3 > { }; }; template< typename Tag > struct lambda< eval_if< na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef eval_if< na , na , na > result_; typedef eval_if< na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 > struct template_arity< eval_if< T1 , T2 , T3 > > : int_<3> { }; template<> struct template_arity< eval_if< na , na , na > > : int_<-1> { }; } }} # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/equal_to.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/equal_to.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/numeric_cast.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/numeric_cast.hpp" 3 4 namespace boost { namespace mpl { template< typename SourceTag, typename TargetTag > struct numeric_cast { template< typename N > struct apply; }; }} # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/has_apply.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/has_apply.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/type_wrapper.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/type_wrapper.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct type_wrapper { typedef T type; }; template< typename T > struct wrapped_type; template< typename T > struct wrapped_type< type_wrapper<T> > { typedef T type; }; }}} # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/yes_no.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/yes_no.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/arrays.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/yes_no.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { typedef char (&no_tag)[1]; typedef char (&yes_tag)[2]; template< bool C_ > struct yes_no_tag { typedef no_tag type; }; template<> struct yes_no_tag<true> { typedef yes_tag type; }; template< std::size_t n > struct weighted_tag { typedef char (&type)[n]; }; # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/yes_no.hpp" 3 4 }}} # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/has_xxx.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/msvc_typename.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/array/elem.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/array/elem.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/array/data.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/array/elem.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/array/size.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/array/elem.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/enum_params.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/enum_trailing_params.hpp" 1 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/has_xxx.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/has_apply.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/has_apply.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/has_apply.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_<false> > struct has_apply { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper<U> const volatile* , boost::mpl::aux::type_wrapper<typename U::apply>* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper<T> t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast<t_*>(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_<value> type; }; }}} # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/msvc_never_true.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/use_preprocessed.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/compiler.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/stringize.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/apply_wrap.hpp" 3 4 namespace boost { namespace mpl { template< typename F , typename has_apply_ = typename aux::has_apply<F>::type > struct apply_wrap0 : F::template apply< > { }; template< typename F > struct apply_wrap0< F,true_ > : F::apply { }; template< typename F, typename T1 > struct apply_wrap1 : F::template apply<T1> { }; template< typename F, typename T1, typename T2 > struct apply_wrap2 : F::template apply< T1,T2 > { }; template< typename F, typename T1, typename T2, typename T3 > struct apply_wrap3 : F::template apply< T1,T2,T3 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 > struct apply_wrap4 : F::template apply< T1,T2,T3,T4 > { }; template< typename F, typename T1, typename T2, typename T3, typename T4 , typename T5 > struct apply_wrap5 : F::template apply< T1,T2,T3,T4,T5 > { }; }} # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/tag.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/tag.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/void.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/void.hpp" 3 4 namespace mpl_ { struct void_ { typedef void_ type; }; } namespace boost { namespace mpl { template< typename T > struct is_void_ : false_ { }; template<> struct is_void_<void_> : true_ { }; template< typename T > struct is_not_void_ : true_ { }; template<> struct is_not_void_<void_> : false_ { }; template<> struct is_void_< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : is_void_< T1 > { }; }; template< typename Tag > struct lambda< is_void_< na > , Tag , int_<-1> > { typedef false_ is_le; typedef is_void_< na > result_; typedef is_void_< na > type; }; namespace aux { template< typename T1 > struct template_arity< is_void_< T1 > > : int_<1> { }; template<> struct template_arity< is_void_< na > > : int_<-1> { }; } template<> struct is_not_void_< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : is_not_void_< T1 > { }; }; template< typename Tag > struct lambda< is_not_void_< na > , Tag , int_<-1> > { typedef false_ is_le; typedef is_not_void_< na > result_; typedef is_not_void_< na > type; }; namespace aux { template< typename T1 > struct template_arity< is_not_void_< T1 > > : int_<1> { }; template<> struct template_arity< is_not_void_< na > > : int_<-1> { }; } }} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/tag.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/has_tag.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/has_tag.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T, typename fallback_ = boost::mpl::bool_<false> > struct has_tag { struct gcc_3_2_wknd { template< typename U > static boost::mpl::aux::yes_tag test( boost::mpl::aux::type_wrapper<U> const volatile* , boost::mpl::aux::type_wrapper<typename U::tag>* = 0 ); static boost::mpl::aux::no_tag test(...); }; typedef boost::mpl::aux::type_wrapper<T> t_; static const bool value = sizeof(gcc_3_2_wknd::test(static_cast<t_*>(0))) == sizeof(boost::mpl::aux::yes_tag); typedef boost::mpl::bool_<value> type; }; }}} # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/tag.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct tag_impl { typedef typename T::tag type; }; } template< typename T, typename Default = void_ > struct tag : if_< aux::has_tag<T> , aux::tag_impl<T> , Default >::type { # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/tag.hpp" 3 4 }; }} # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_cast_utils.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_cast_utils.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_cast_utils.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/config/forwarding.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_cast_utils.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< typename F , typename Tag1 , typename Tag2 > struct cast1st_impl { template< typename N1, typename N2 > struct apply : apply_wrap2< F , typename apply_wrap1< numeric_cast<Tag1,Tag2>,N1 >::type , N2 > { # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_cast_utils.hpp" 3 4 }; }; template< typename F , typename Tag1 , typename Tag2 > struct cast2nd_impl { template< typename N1, typename N2 > struct apply : apply_wrap2< F , N1 , typename apply_wrap1< numeric_cast<Tag2,Tag1>,N2 >::type > { # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_cast_utils.hpp" 3 4 }; }; }}} # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/msvc_eti_base.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/msvc_eti_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/is_msvc_eti_arg.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/is_msvc_eti_arg.hpp" 3 4 namespace boost { namespace mpl { namespace aux { # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/is_msvc_eti_arg.hpp" 3 4 }}} # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/msvc_eti_base.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/msvc_eti_base.hpp" 3 4 template< typename T > struct msvc_eti_base : T { msvc_eti_base(); typedef T type; }; template<> struct msvc_eti_base<int> { typedef msvc_eti_base type; typedef msvc_eti_base first; typedef msvc_eti_base second; typedef msvc_eti_base tag; enum { value = 0 }; }; }}} # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/equal_to.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct equal_to_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< equal_to_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< equal_to_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct equal_to_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct equal_to_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct equal_to_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct equal_to_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct equal_to : equal_to_impl< typename equal_to_tag<N1>::type , typename equal_to_tag<N2>::type >::template apply< N1,N2 >::type { }; template<> struct equal_to< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : equal_to< T1 , T2 > { }; }; template< typename Tag > struct lambda< equal_to< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef equal_to< na , na > result_; typedef equal_to< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< equal_to< T1 , T2 > > : int_<2> { }; template<> struct template_arity< equal_to< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct equal_to_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N1::value == N2::value ) > { }; }; }} # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/equal_to.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/not.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/not.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/nested_type_wknd.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/nested_type_wknd.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct nested_type_wknd : T::type { }; }}} # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/not.hpp" 2 3 4 namespace boost { namespace mpl { namespace aux { template< long C_ > struct not_impl : bool_<!C_> { }; } template< typename T = na > struct not_ : aux::not_impl< ::boost::mpl::aux::nested_type_wknd<T>::value > { }; template<> struct not_< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : not_< T1 > { }; }; template< typename Tag > struct lambda< not_< na > , Tag , int_<-1> > { typedef false_ is_le; typedef not_< na > result_; typedef not_< na > type; }; namespace aux { template< typename T1 > struct template_arity< not_< T1 > > : int_<1> { }; template<> struct template_arity< not_< na > > : int_<-1> { }; } }} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/and.hpp" 1 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/and.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/and.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/and.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< bool C_, typename T1, typename T2, typename T3, typename T4 > struct and_impl : false_ { }; template< typename T1, typename T2, typename T3, typename T4 > struct and_impl< true,T1,T2,T3,T4 > : and_impl< ::boost::mpl::aux::nested_type_wknd<T1>::value , T2, T3, T4 , true_ > { }; template<> struct and_impl< true , true_, true_, true_, true_ > : true_ { }; } template< typename T1 = na , typename T2 = na , typename T3 = true_, typename T4 = true_, typename T5 = true_ > struct and_ : aux::and_impl< ::boost::mpl::aux::nested_type_wknd<T1>::value , T2, T3, T4, T5 > { }; template<> struct and_< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : and_< T1 , T2 > { }; }; template< typename Tag > struct lambda< and_< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef and_< na , na > result_; typedef and_< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< and_< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< and_< na , na > > : int_<-1> { }; } }} # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/and.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/identity.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/identity.hpp" 3 4 namespace boost { namespace mpl { template< typename T = na > struct identity { typedef T type; }; template< typename T = na > struct make_identity { typedef identity<T> type; }; template<> struct identity< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : identity< T1 > { }; }; template< typename Tag > struct lambda< identity< na > , Tag , int_<-1> > { typedef false_ is_le; typedef identity< na > result_; typedef identity< na > type; }; namespace aux { template< typename T1 > struct template_arity< identity< T1 > > : int_<1> { }; template<> struct template_arity< identity< na > > : int_<-1> { }; } template<> struct make_identity< na > { template< typename T1 , typename T2 =na , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : make_identity< T1 > { }; }; template< typename Tag > struct lambda< make_identity< na > , Tag , int_<-1> > { typedef false_ is_le; typedef make_identity< na > result_; typedef make_identity< na > type; }; namespace aux { template< typename T1 > struct template_arity< make_identity< T1 > > : int_<1> { }; template<> struct template_arity< make_identity< na > > : int_<-1> { }; } }} # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { template< class T1, class T2> struct equal_to { enum { x = ( T1::value == T2::value ) }; static const bool value = x; typedef mpl::bool_<value> type; # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 3 4 }; # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 3 4 template<class Value, class Case0Val, class Case1Val, class Case2Val, class Case0Type, class Case1Type, class Case2Type, class DefaultType > struct ct_switch4 { typedef mpl::identity<Case0Type> Case0TypeQ ; typedef mpl::identity<Case1Type> Case1TypeQ ; typedef equal_to<Value,Case0Val> is_case0 ; typedef equal_to<Value,Case1Val> is_case1 ; typedef equal_to<Value,Case2Val> is_case2 ; typedef mpl::if_<is_case2,Case2Type,DefaultType> choose_2_3Q ; typedef mpl::eval_if<is_case1,Case1TypeQ,choose_2_3Q> choose_1_2_3Q ; typedef typename mpl::eval_if<is_case0,Case0TypeQ,choose_1_2_3Q>::type type ; } ; # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/meta.hpp" 3 4 template<class expr0, class expr1, class TT, class TF, class FT, class FF> struct for_both { typedef mpl::identity<TF> TF_Q ; typedef mpl::identity<TT> TT_Q ; typedef typename mpl::not_<expr0>::type not_expr0 ; typedef typename mpl::not_<expr1>::type not_expr1 ; typedef typename mpl::and_<expr0,expr1>::type caseTT ; typedef typename mpl::and_<expr0,not_expr1>::type caseTF ; typedef typename mpl::and_<not_expr0,expr1>::type caseFT ; typedef mpl::if_<caseFT,FT,FF> choose_FT_FF_Q ; typedef mpl::eval_if<caseTF,TF_Q,choose_FT_FF_Q> choose_TF_FT_FF_Q ; typedef typename mpl::eval_if<caseTT,TT_Q,choose_TF_FT_FF_Q>::type type ; } ; } } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/int_float_mixture_enum.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/int_float_mixture_enum.hpp" 3 4 namespace boost { namespace numeric { enum int_float_mixture_enum { integral_to_integral ,integral_to_float ,float_to_integral ,float_to_float } ; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef boost::integral_constant<int_float_mixture_enum, integral_to_integral> int2int_c ; typedef boost::integral_constant<int_float_mixture_enum, integral_to_float> int2float_c ; typedef boost::integral_constant<int_float_mixture_enum, float_to_integral> float2int_c ; typedef boost::integral_constant<int_float_mixture_enum, float_to_float> float2float_c ; template<class T,class S> struct get_int_float_mixture { typedef mpl::bool_< ::std::numeric_limits<S>::is_integer > S_int ; typedef mpl::bool_< ::std::numeric_limits<T>::is_integer > T_int ; typedef typename for_both<S_int, T_int, int2int_c, int2float_c, float2int_c, float2float_c>::type type ; } ; # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/int_float_mixture.hpp" 3 4 template<class IntFloatMixture, class Int2Int, class Int2Float, class Float2Int, class Float2Float> struct for_int_float_mixture { typedef typename ct_switch4<IntFloatMixture ,int2int_c, int2float_c, float2int_c ,Int2Int , Int2Float , Float2Int , Float2Float >::type type ; } ; } } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/sign_mixture.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/sign_mixture.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/sign_mixture_enum.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/sign_mixture_enum.hpp" 3 4 namespace boost { namespace numeric { enum sign_mixture_enum { unsigned_to_unsigned ,signed_to_signed ,signed_to_unsigned ,unsigned_to_signed } ; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/sign_mixture.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef boost::integral_constant<sign_mixture_enum, unsigned_to_unsigned> unsig2unsig_c ; typedef boost::integral_constant<sign_mixture_enum, signed_to_signed> sig2sig_c ; typedef boost::integral_constant<sign_mixture_enum, signed_to_unsigned> sig2unsig_c ; typedef boost::integral_constant<sign_mixture_enum, unsigned_to_signed> unsig2sig_c ; template<class T,class S> struct get_sign_mixture { typedef mpl::bool_< ::std::numeric_limits<S>::is_signed > S_signed ; typedef mpl::bool_< ::std::numeric_limits<T>::is_signed > T_signed ; typedef typename for_both<S_signed, T_signed, sig2sig_c, sig2unsig_c, unsig2sig_c, unsig2unsig_c>::type type ; } ; # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/sign_mixture.hpp" 3 4 template<class SignMixture, class Sig2Sig, class Sig2Unsig, class Unsig2Sig, class Unsig2Unsig> struct for_sign_mixture { typedef typename ct_switch4<SignMixture , sig2sig_c, sig2unsig_c, unsig2sig_c , Sig2Sig , Sig2Unsig , Unsig2Sig , Unsig2Unsig >::type type ; } ; } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/udt_builtin_mixture_enum.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/udt_builtin_mixture_enum.hpp" 3 4 namespace boost { namespace numeric { enum udt_builtin_mixture_enum { builtin_to_builtin ,builtin_to_udt ,udt_to_builtin ,udt_to_udt } ; } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef boost::integral_constant<udt_builtin_mixture_enum, builtin_to_builtin> builtin2builtin_c ; typedef boost::integral_constant<udt_builtin_mixture_enum, builtin_to_udt> builtin2udt_c ; typedef boost::integral_constant<udt_builtin_mixture_enum, udt_to_builtin> udt2builtin_c ; typedef boost::integral_constant<udt_builtin_mixture_enum, udt_to_udt> udt2udt_c ; # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/udt_builtin_mixture.hpp" 3 4 template<class UdtMixture, class BuiltIn2BuiltIn, class BuiltIn2Udt, class Udt2BuiltIn, class Udt2Udt> struct for_udt_builtin_mixture { typedef typename ct_switch4<UdtMixture , builtin2builtin_c, builtin2udt_c, udt2builtin_c , BuiltIn2BuiltIn , BuiltIn2Udt , Udt2BuiltIn , Udt2Udt >::type type ; } ; template<class T,class S> struct get_udt_builtin_mixture { typedef is_arithmetic<S> S_builtin ; typedef is_arithmetic<T> T_builtin ; typedef typename for_both<S_builtin, T_builtin, builtin2builtin_c, builtin2udt_c, udt2builtin_c, udt2udt_c>::type type ; } ; } } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/is_subranged.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/is_subranged.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/multiplies.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/multiplies.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/times.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/times.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arithmetic_op.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arithmetic_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c_fwd.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c_fwd.hpp" 3 4 namespace mpl_ { template< typename T, T N > struct integral_c; } namespace boost { namespace mpl { using ::mpl_::integral_c; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 1 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 namespace mpl_ { template< typename T, T N > struct integral_c { static const T value = N; typedef integral_c type; typedef T value_type; typedef integral_c_tag tag; # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/integral_wrapper.hpp" 3 4 typedef integral_c< T, static_cast<T>((value + 1)) > next; typedef integral_c< T, static_cast<T>((value - 1)) > prior; constexpr operator T() const { return static_cast<T>(this->value); } }; template< typename T, T N > T const integral_c< T, N >::value; } # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/integral_c.hpp" 2 3 4 namespace mpl_ { template< bool C > struct integral_c<bool, C> { static const bool value = C; typedef integral_c_tag tag; typedef integral_c type; typedef bool value_type; operator bool() const { return this->value; } }; } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/largest_int.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/largest_int.hpp" 3 4 namespace boost { namespace mpl { namespace aux { template< typename T > struct integral_rank; template<> struct integral_rank<bool> : int_<1> {}; template<> struct integral_rank<signed char> : int_<2> {}; template<> struct integral_rank<char> : int_<3> {}; template<> struct integral_rank<unsigned char> : int_<4> {}; template<> struct integral_rank<wchar_t> : int_<5> {}; template<> struct integral_rank<short> : int_<6> {}; template<> struct integral_rank<unsigned short> : int_<7> {}; template<> struct integral_rank<int> : int_<8> {}; template<> struct integral_rank<unsigned int> : int_<9> {}; template<> struct integral_rank<long> : int_<10> {}; template<> struct integral_rank<unsigned long> : int_<11> {}; template<> struct integral_rank<long_long_type> : int_<12> {}; template<> struct integral_rank<ulong_long_type>: int_<13> {}; template< typename T1, typename T2 > struct largest_int : if_c< ( integral_rank<T1>::value >= integral_rank<T2>::value ) , T1 , T2 > { }; }}} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/times.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/times.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct times_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< times_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< times_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct times_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct times_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct times_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct times_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na , typename N3 = na, typename N4 = na, typename N5 = na > struct times : times< times< times< times< N1,N2 >, N3>, N4>, N5> { }; template< typename N1, typename N2, typename N3, typename N4 > struct times< N1,N2,N3,N4,na > : times< times< times< N1,N2 >, N3>, N4> { }; template< typename N1, typename N2, typename N3 > struct times< N1,N2,N3,na,na > : times< times< N1,N2 >, N3> { }; template< typename N1, typename N2 > struct times< N1,N2,na,na,na > : times_impl< typename times_tag<N1>::type , typename times_tag<N2>::type >::template apply< N1,N2 >::type { }; template<> struct times< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : times< T1 , T2 > { }; }; template< typename Tag > struct lambda< times< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef times< na , na > result_; typedef times< na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< times< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< times< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct times_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : integral_c< typename aux::largest_int< typename N1::value_type , typename N2::value_type >::type , ( N1::value * N2::value ) > { }; }; }} # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/arithmetic_op.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/times.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/multiplies.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessor/default_params.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/multiplies.hpp" 2 3 4 namespace boost { namespace mpl { template< typename N1 = na , typename N2 = na , typename N3 = na , typename N4 = na , typename N5 = na > struct multiplies : times< N1 , N2 , N3 , N4 , N5 > { }; template<> struct multiplies< na , na , na , na , na > { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct apply : multiplies< T1 , T2 , T3 , T4 , T5 > { }; }; template< typename Tag > struct lambda< multiplies< na , na , na , na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef multiplies< na , na , na , na , na > result_; typedef multiplies< na , na , na , na , na > type; }; namespace aux { template< typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > struct template_arity< multiplies< T1 , T2 , T3 , T4 , T5 > > : int_<5> { }; template<> struct template_arity< multiplies< na , na , na , na , na > > : int_<-1> { }; } }} # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/is_subranged.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/less.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/less.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/apply_wrap.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/numeric_op.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/less.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/preprocessed/gcc/less.hpp" 3 4 namespace boost { namespace mpl { template< typename Tag1 , typename Tag2 > struct less_impl : if_c< ( Tag1::value > Tag2::value ) , aux::cast2nd_impl< less_impl< Tag1,Tag1 >,Tag1, Tag2 > , aux::cast1st_impl< less_impl< Tag2,Tag2 >,Tag1, Tag2 > >::type { }; template<> struct less_impl< na,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct less_impl< na,Tag > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename Tag > struct less_impl< Tag,na > { template< typename U1, typename U2 > struct apply { typedef apply type; static const int value = 0; }; }; template< typename T > struct less_tag { typedef typename T::tag type; }; template< typename N1 = na , typename N2 = na > struct less : less_impl< typename less_tag<N1>::type , typename less_tag<N2>::type >::template apply< N1,N2 >::type { }; template<> struct less< na , na > { template< typename T1 , typename T2 , typename T3 =na , typename T4 =na , typename T5 =na > struct apply : less< T1 , T2 > { }; }; template< typename Tag > struct lambda< less< na , na > , Tag , int_<-1> > { typedef false_ is_le; typedef less< na , na > result_; typedef less< na , na > type; }; namespace aux { template< typename T1 , typename T2 > struct template_arity< less< T1 , T2 > > : int_<2> { }; template<> struct template_arity< less< na , na > > : int_<-1> { }; } }} namespace boost { namespace mpl { template<> struct less_impl< integral_c_tag,integral_c_tag > { template< typename N1, typename N2 > struct apply : bool_< ( N2::value > N1::value ) > { }; }; }} # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/include_preprocessed.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/aux_/comparison_op.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/mpl/less.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/is_subranged.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/is_subranged.hpp" 3 4 namespace boost { namespace numeric { namespace convdetail { template<class T,class S> struct subranged_Sig2Unsig { typedef mpl::true_ type ; } ; template<class T,class S> struct subranged_Unsig2Sig { # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/is_subranged.hpp" 3 4 typedef mpl::int_< ::std::numeric_limits<S>::digits > S_digits ; typedef mpl::int_< ::std::numeric_limits<T>::digits > T_digits ; typedef typename T_digits::next u_T_digits ; typedef mpl::int_<2> Two ; typedef typename mpl::multiplies<S_digits,Two>::type S_digits_times_2 ; typedef typename mpl::less<u_T_digits,S_digits_times_2>::type type ; } ; template<class T,class S> struct subranged_SameSign { typedef mpl::int_< ::std::numeric_limits<S>::digits > S_digits ; typedef mpl::int_< ::std::numeric_limits<T>::digits > T_digits ; typedef typename mpl::less<T_digits,S_digits>::type type ; } ; template<class T,class S> struct subranged_Int2Float { typedef mpl::false_ type ; } ; template<class T,class S> struct subranged_Float2Int { typedef mpl::true_ type ; } ; template<class T,class S> struct subranged_Float2Float { typedef mpl::int_< ::std::numeric_limits<S>::digits > S_mantisa ; typedef mpl::int_< ::std::numeric_limits<T>::digits > T_mantisa ; typedef mpl::int_< ::std::numeric_limits<S>::max_exponent > S_exponent ; typedef mpl::int_< ::std::numeric_limits<T>::max_exponent > T_exponent ; typedef typename mpl::less<T_exponent,S_exponent>::type T_smaller_exponent ; typedef typename mpl::equal_to<T_exponent,S_exponent>::type equal_exponents ; typedef mpl::less<T_mantisa,S_mantisa> T_smaller_mantisa ; typedef mpl::eval_if<equal_exponents,T_smaller_mantisa,mpl::false_> not_bigger_exponent_case ; typedef typename mpl::eval_if<T_smaller_exponent,mpl::true_,not_bigger_exponent_case>::type type ; } ; template<class T,class S> struct subranged_Udt2BuiltIn { typedef mpl::true_ type ; } ; template<class T,class S> struct subranged_BuiltIn2Udt { typedef mpl::false_ type ; } ; template<class T,class S> struct subranged_Udt2Udt { typedef mpl::false_ type ; } ; template<class T,class S> struct get_subranged_Int2Int { typedef subranged_SameSign<T,S> Sig2Sig ; typedef subranged_Sig2Unsig<T,S> Sig2Unsig ; typedef subranged_Unsig2Sig<T,S> Unsig2Sig ; typedef Sig2Sig Unsig2Unsig ; typedef typename get_sign_mixture<T,S>::type sign_mixture ; typedef typename for_sign_mixture<sign_mixture, Sig2Sig, Sig2Unsig, Unsig2Sig, Unsig2Unsig>::type type ; } ; template<class T,class S> struct get_subranged_BuiltIn2BuiltIn { typedef get_subranged_Int2Int<T,S> Int2IntQ ; typedef subranged_Int2Float <T,S> Int2Float ; typedef subranged_Float2Int <T,S> Float2Int ; typedef subranged_Float2Float<T,S> Float2Float ; typedef mpl::identity<Int2Float > Int2FloatQ ; typedef mpl::identity<Float2Int > Float2IntQ ; typedef mpl::identity<Float2Float> Float2FloatQ ; typedef typename get_int_float_mixture<T,S>::type int_float_mixture ; typedef for_int_float_mixture<int_float_mixture, Int2IntQ, Int2FloatQ, Float2IntQ, Float2FloatQ> for_ ; typedef typename for_::type selected ; typedef typename selected::type type ; } ; template<class T,class S> struct get_subranged { typedef get_subranged_BuiltIn2BuiltIn<T,S> BuiltIn2BuiltInQ ; typedef subranged_BuiltIn2Udt<T,S> BuiltIn2Udt ; typedef subranged_Udt2BuiltIn<T,S> Udt2BuiltIn ; typedef subranged_Udt2Udt<T,S> Udt2Udt ; typedef mpl::identity<BuiltIn2Udt> BuiltIn2UdtQ ; typedef mpl::identity<Udt2BuiltIn> Udt2BuiltInQ ; typedef mpl::identity<Udt2Udt > Udt2UdtQ ; typedef typename get_udt_builtin_mixture<T,S>::type udt_builtin_mixture ; typedef typename for_udt_builtin_mixture<udt_builtin_mixture, BuiltIn2BuiltInQ, BuiltIn2UdtQ, Udt2BuiltInQ, Udt2UdtQ>::type selected ; typedef typename selected::type selected2 ; typedef typename selected2::type type ; } ; template<class T, class S> struct get_is_subranged { typedef get_subranged<T,S> non_trivial_case ; typedef mpl::identity<mpl::false_> trivial_case ; typedef is_same<T,S> is_trivial ; typedef typename mpl::if_<is_trivial,trivial_case,non_trivial_case>::type selected ; typedef typename selected::type type ; } ; } } } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/conversion_traits.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { template<class T,class S> struct non_trivial_traits_impl { typedef typename get_int_float_mixture <T,S>::type int_float_mixture ; typedef typename get_sign_mixture <T,S>::type sign_mixture ; typedef typename get_udt_builtin_mixture <T,S>::type udt_builtin_mixture ; typedef typename get_is_subranged<T,S>::type subranged ; typedef mpl::false_ trivial ; typedef T target_type ; typedef S source_type ; typedef T result_type ; typedef typename mpl::if_< is_arithmetic<S>, S, S const&>::type argument_type ; typedef typename mpl::if_<subranged,S,T>::type supertype ; typedef typename mpl::if_<subranged,T,S>::type subtype ; } ; template<class N> struct trivial_traits_impl { typedef typename get_int_float_mixture <N,N>::type int_float_mixture ; typedef typename get_sign_mixture <N,N>::type sign_mixture ; typedef typename get_udt_builtin_mixture<N,N>::type udt_builtin_mixture ; typedef mpl::false_ subranged ; typedef mpl::true_ trivial ; typedef N target_type ; typedef N source_type ; typedef N const& result_type ; typedef N const& argument_type ; typedef N supertype ; typedef N subtype ; } ; template<class T, class S> struct get_conversion_traits { typedef typename remove_cv<T>::type target_type ; typedef typename remove_cv<S>::type source_type ; typedef typename is_same<target_type,source_type>::type is_trivial ; typedef trivial_traits_impl <target_type> trivial_imp ; typedef non_trivial_traits_impl<target_type,source_type> non_trivial_imp ; typedef typename mpl::if_<is_trivial,trivial_imp,non_trivial_imp>::type type ; } ; } } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/conversion_traits.hpp" 2 3 4 namespace boost { namespace numeric { template<class T, class S> struct conversion_traits : convdetail::get_conversion_traits<T,S>::type { } ; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter_policies.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter_policies.hpp" 3 4 namespace boost { namespace numeric { template<class S> struct Trunc { typedef S source_type ; typedef typename mpl::if_< is_arithmetic<S>,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::floor ; using std::ceil ; return s < static_cast<S>(0) ? ceil(s) : floor(s) ; } typedef mpl::integral_c< std::float_round_style, std::round_toward_zero> round_style ; } ; template<class S> struct Floor { typedef S source_type ; typedef typename mpl::if_< is_arithmetic<S>,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::floor ; return floor(s) ; } typedef mpl::integral_c< std::float_round_style, std::round_toward_neg_infinity> round_style ; } ; template<class S> struct Ceil { typedef S source_type ; typedef typename mpl::if_< is_arithmetic<S>,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::ceil ; return ceil(s) ; } typedef mpl::integral_c< std::float_round_style, std::round_toward_infinity> round_style ; } ; template<class S> struct RoundEven { typedef S source_type ; typedef typename mpl::if_< is_arithmetic<S>,S,S const&>::type argument_type ; static source_type nearbyint ( argument_type s ) { using std::floor ; using std::ceil ; S prev = floor(s); S next = ceil(s); S rt = (s - prev) - (next - s); S const zero(0.0); S const two(2.0); if ( rt < zero ) return prev; else if ( rt > zero ) return next; else { bool is_prev_even = two * floor(prev / two) == prev ; return ( is_prev_even ? prev : next ) ; } } typedef mpl::integral_c< std::float_round_style, std::round_to_nearest> round_style ; } ; enum range_check_result { cInRange = 0 , cNegOverflow = 1 , cPosOverflow = 2 } ; class bad_numeric_cast : public std::bad_cast { public: const char * what() const noexcept override { return "bad numeric conversion: overflow"; } }; class negative_overflow : public bad_numeric_cast { public: const char * what() const noexcept override { return "bad numeric conversion: negative overflow"; } }; class positive_overflow : public bad_numeric_cast { public: const char * what() const noexcept override { return "bad numeric conversion: positive overflow"; } }; struct def_overflow_handler { void operator() ( range_check_result r ) { if ( r == cNegOverflow ) throw negative_overflow() ; else if ( r == cPosOverflow ) throw positive_overflow() ; } } ; struct silent_overflow_handler { void operator() ( range_check_result ) {} } ; template<class Traits> struct raw_converter { typedef typename Traits::result_type result_type ; typedef typename Traits::argument_type argument_type ; static result_type low_level_convert ( argument_type s ) { return static_cast<result_type>(s) ; } } ; struct UseInternalRangeChecker {} ; } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/bounds.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/bounds.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/bounds.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/bounds.hpp" 3 4 namespace boost { namespace numeric { namespace boundsdetail { template<class N> class Integral { typedef std::numeric_limits<N> limits ; public : static N lowest () { return limits::min (); } static N highest () { return limits::max (); } static N smallest() { return static_cast<N>(1); } } ; template<class N> class Float { typedef std::numeric_limits<N> limits ; public : static N lowest () { return static_cast<N>(-limits::max ()) ; } static N highest () { return limits::max (); } static N smallest() { return limits::min (); } } ; template<class N> struct get_impl { typedef mpl::bool_< ::std::numeric_limits<N>::is_integer > is_int ; typedef Integral<N> impl_int ; typedef Float <N> impl_float ; typedef typename mpl::if_<is_int,impl_int,impl_float>::type type ; } ; } } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/bounds.hpp" 2 3 4 namespace boost { namespace numeric { template<class N> struct bounds : boundsdetail::get_impl<N>::type {} ; } } # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 2 3 4 namespace boost { namespace numeric { namespace convdetail { typedef mpl::integral_c<std::float_round_style, std::round_toward_zero> round2zero_c ; typedef mpl::integral_c<std::float_round_style, std::round_to_nearest> round2nearest_c ; typedef mpl::integral_c<std::float_round_style, std::round_toward_infinity> round2inf_c ; typedef mpl::integral_c<std::float_round_style, std::round_toward_neg_infinity> round2neg_inf_c ; # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class RoundStyle,class RoundToZero,class RoundToNearest,class RoundToInf,class RoundToNegInf> struct for_round_style { typedef ct_switch4<RoundStyle , round2zero_c, round2nearest_c, round2inf_c , RoundToZero , RoundToNearest , RoundToInf , RoundToNegInf > selector ; typedef typename selector::type type ; } ; # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 struct non_applicable { typedef mpl::false_ do_apply ; } ; struct applicable { typedef mpl::true_ do_apply ; } ; # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class Traits> struct LT_LoT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s < static_cast<S>(bounds<T>::lowest()) ? cNegOverflow : cInRange ; } } ; template<class Traits> struct LT_Zero : applicable { typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s < static_cast<S>(0) ? cNegOverflow : cInRange ; } } ; template<class Traits> struct LE_PrevLoT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s <= static_cast<S>(bounds<T>::lowest()) - static_cast<S>(1.0) ? cNegOverflow : cInRange ; } } ; template<class Traits> struct LT_HalfPrevLoT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s < static_cast<S>(bounds<T>::lowest()) - static_cast<S>(0.5) ? cNegOverflow : cInRange ; } } ; template<class Traits> struct GT_HiT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s > static_cast<S>(bounds<T>::highest()) ? cPosOverflow : cInRange ; } } ; template<class Traits> struct GE_SuccHiT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s >= static_cast<S>(bounds<T>::highest()) + static_cast<S>(1.0) ? cPosOverflow : cInRange ; } } ; template<class Traits> struct GT_HalfSuccHiT : applicable { typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename Traits::argument_type argument_type ; static range_check_result apply ( argument_type s ) { return s >= static_cast<S>(bounds<T>::highest()) + static_cast<S>(0.5) ? cPosOverflow : cInRange ; } } ; # 215 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class PredA, class PredB> struct applyBoth { typedef typename PredA::argument_type argument_type ; static range_check_result apply ( argument_type s ) { range_check_result r = PredA::apply(s) ; if ( r == cInRange ) r = PredB::apply(s); return r ; } } ; template<class PredA, class PredB> struct combine { typedef applyBoth<PredA,PredB> Both ; typedef void NNone ; typedef typename PredA::do_apply do_applyA ; typedef typename PredB::do_apply do_applyB ; typedef typename for_both<do_applyA, do_applyB, Both, PredA, PredB, NNone>::type type ; } ; # 262 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class Traits> struct dummy_range_checker { typedef typename Traits::argument_type argument_type ; static range_check_result out_of_range ( argument_type ) { return cInRange ; } static void validate_range ( argument_type ) {} } ; # 279 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class Traits, class IsNegOverflow, class IsPosOverflow, class OverflowHandler> struct generic_range_checker { typedef OverflowHandler overflow_handler ; typedef typename Traits::argument_type argument_type ; static range_check_result out_of_range ( argument_type s ) { typedef typename combine<IsNegOverflow,IsPosOverflow>::type Predicate ; return Predicate::apply(s); } static void validate_range ( argument_type s ) { OverflowHandler()( out_of_range(s) ) ; } } ; # 305 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class Traits,class OverflowHandler> struct GetRC_Sig2Sig_or_Unsig2Unsig { typedef dummy_range_checker<Traits> Dummy ; typedef LT_LoT<Traits> Pred1 ; typedef GT_HiT<Traits> Pred2 ; typedef generic_range_checker<Traits,Pred1,Pred2,OverflowHandler> Normal ; typedef typename Traits::subranged subranged ; typedef typename mpl::if_<subranged,Normal,Dummy>::type type ; } ; template<class Traits, class OverflowHandler> struct GetRC_Sig2Unsig { typedef LT_Zero<Traits> Pred1 ; typedef GT_HiT <Traits> Pred2 ; typedef generic_range_checker<Traits,Pred1,Pred2,OverflowHandler> ChoiceA ; typedef generic_range_checker<Traits,Pred1,non_applicable,OverflowHandler> ChoiceB ; typedef typename Traits::target_type T ; typedef typename Traits::source_type S ; typedef typename subranged_Unsig2Sig<S,T>::type oposite_subranged ; typedef typename mpl::not_<oposite_subranged>::type positively_subranged ; typedef typename mpl::if_<positively_subranged,ChoiceA,ChoiceB>::type type ; } ; template<class Traits, class OverflowHandler> struct GetRC_Unsig2Sig { typedef GT_HiT<Traits> Pred1 ; typedef generic_range_checker<Traits,non_applicable,Pred1,OverflowHandler> type ; } ; template<class Traits,class OverflowHandler> struct GetRC_Int2Int { typedef GetRC_Sig2Sig_or_Unsig2Unsig<Traits,OverflowHandler> Sig2SigQ ; typedef GetRC_Sig2Unsig <Traits,OverflowHandler> Sig2UnsigQ ; typedef GetRC_Unsig2Sig <Traits,OverflowHandler> Unsig2SigQ ; typedef Sig2SigQ Unsig2UnsigQ ; typedef typename Traits::sign_mixture sign_mixture ; typedef typename for_sign_mixture<sign_mixture,Sig2SigQ,Sig2UnsigQ,Unsig2SigQ,Unsig2UnsigQ>::type selector ; typedef typename selector::type type ; } ; template<class Traits> struct GetRC_Int2Float { typedef dummy_range_checker<Traits> type ; } ; template<class Traits, class OverflowHandler, class Float2IntRounder> struct GetRC_Float2Int { typedef LE_PrevLoT <Traits> Pred1 ; typedef GE_SuccHiT <Traits> Pred2 ; typedef LT_HalfPrevLoT<Traits> Pred3 ; typedef GT_HalfSuccHiT<Traits> Pred4 ; typedef GT_HiT <Traits> Pred5 ; typedef LT_LoT <Traits> Pred6 ; typedef generic_range_checker<Traits,Pred1,Pred2,OverflowHandler> ToZero ; typedef generic_range_checker<Traits,Pred3,Pred4,OverflowHandler> ToNearest ; typedef generic_range_checker<Traits,Pred1,Pred5,OverflowHandler> ToInf ; typedef generic_range_checker<Traits,Pred6,Pred2,OverflowHandler> ToNegInf ; typedef typename Float2IntRounder::round_style round_style ; typedef typename for_round_style<round_style,ToZero,ToNearest,ToInf,ToNegInf>::type type ; } ; template<class Traits, class OverflowHandler> struct GetRC_Float2Float { typedef dummy_range_checker<Traits> Dummy ; typedef LT_LoT<Traits> Pred1 ; typedef GT_HiT<Traits> Pred2 ; typedef generic_range_checker<Traits,Pred1,Pred2,OverflowHandler> Normal ; typedef typename Traits::subranged subranged ; typedef typename mpl::if_<subranged,Normal,Dummy>::type type ; } ; template<class Traits, class OverflowHandler, class Float2IntRounder> struct GetRC_BuiltIn2BuiltIn { typedef GetRC_Int2Int<Traits,OverflowHandler> Int2IntQ ; typedef GetRC_Int2Float<Traits> Int2FloatQ ; typedef GetRC_Float2Int<Traits,OverflowHandler,Float2IntRounder> Float2IntQ ; typedef GetRC_Float2Float<Traits,OverflowHandler> Float2FloatQ ; typedef typename Traits::int_float_mixture int_float_mixture ; typedef typename for_int_float_mixture<int_float_mixture, Int2IntQ, Int2FloatQ, Float2IntQ, Float2FloatQ>::type selector ; typedef typename selector::type type ; } ; template<class Traits, class OverflowHandler, class Float2IntRounder> struct GetRC { typedef GetRC_BuiltIn2BuiltIn<Traits,OverflowHandler,Float2IntRounder> BuiltIn2BuiltInQ ; typedef dummy_range_checker<Traits> Dummy ; typedef mpl::identity<Dummy> DummyQ ; typedef typename Traits::udt_builtin_mixture udt_builtin_mixture ; typedef typename for_udt_builtin_mixture<udt_builtin_mixture,BuiltIn2BuiltInQ,DummyQ,DummyQ,DummyQ>::type selector ; typedef typename selector::type type ; } ; # 452 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class Traits> struct trivial_converter_impl : public dummy_range_checker<Traits> { typedef Traits traits ; typedef typename Traits::source_type source_type ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; static result_type low_level_convert ( argument_type s ) { return s ; } static source_type nearbyint ( argument_type s ) { return s ; } static result_type convert ( argument_type s ) { return s ; } } ; template<class Traits,class RangeChecker,class RawConverter,class Float2IntRounder> struct rounding_converter : public RangeChecker ,public Float2IntRounder ,public RawConverter { typedef RangeChecker RangeCheckerBase ; typedef Float2IntRounder Float2IntRounderBase ; typedef RawConverter RawConverterBase ; typedef Traits traits ; typedef typename Traits::source_type source_type ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; static result_type convert ( argument_type s ) { RangeCheckerBase::validate_range(s); source_type s1 = Float2IntRounderBase::nearbyint(s); return RawConverterBase::low_level_convert(s1); } } ; template<class Traits,class RangeChecker,class RawConverter> struct non_rounding_converter : public RangeChecker ,public RawConverter { typedef RangeChecker RangeCheckerBase ; typedef RawConverter RawConverterBase ; typedef Traits traits ; typedef typename Traits::source_type source_type ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; static source_type nearbyint ( argument_type s ) { return s ; } static result_type convert ( argument_type s ) { RangeCheckerBase::validate_range(s); return RawConverterBase::low_level_convert(s); } } ; # 528 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 template<class Traits,class OverflowHandler,class Float2IntRounder,class RawConverter, class UserRangeChecker> struct get_non_trivial_converter { typedef GetRC<Traits,OverflowHandler,Float2IntRounder> InternalRangeCheckerQ ; typedef is_same<UserRangeChecker,UseInternalRangeChecker> use_internal_RC ; typedef mpl::identity<UserRangeChecker> UserRangeCheckerQ ; typedef typename mpl::eval_if<use_internal_RC,InternalRangeCheckerQ,UserRangeCheckerQ>::type RangeChecker ; typedef non_rounding_converter<Traits,RangeChecker,RawConverter> NonRounding ; typedef rounding_converter<Traits,RangeChecker,RawConverter,Float2IntRounder> Rounding ; typedef mpl::identity<NonRounding> NonRoundingQ ; typedef mpl::identity<Rounding> RoundingQ ; typedef typename Traits::int_float_mixture int_float_mixture ; typedef typename for_int_float_mixture<int_float_mixture, NonRoundingQ, NonRoundingQ, RoundingQ, NonRoundingQ>::type selector ; typedef typename selector::type type ; } ; template< class Traits ,class OverflowHandler ,class Float2IntRounder ,class RawConverter ,class UserRangeChecker > struct get_converter_impl { # 574 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/converter.hpp" 3 4 typedef trivial_converter_impl<Traits> Trivial ; typedef mpl::identity <Trivial> TrivialQ ; typedef get_non_trivial_converter< Traits ,OverflowHandler ,Float2IntRounder ,RawConverter ,UserRangeChecker > NonTrivialQ ; typedef typename Traits::trivial trivial ; typedef typename mpl::eval_if<trivial,TrivialQ,NonTrivialQ>::type type ; } ; } } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/converter.hpp" 2 3 4 namespace boost { namespace numeric { template<class T, class S, class Traits = conversion_traits<T,S>, class OverflowHandler = def_overflow_handler, class Float2IntRounder = Trunc< typename Traits::source_type> , class RawConverter = raw_converter<Traits>, class UserRangeChecker = UseInternalRangeChecker > struct converter : convdetail::get_converter_impl<Traits, OverflowHandler, Float2IntRounder, RawConverter, UserRangeChecker >::type { typedef Traits traits ; typedef typename Traits::argument_type argument_type ; typedef typename Traits::result_type result_type ; result_type operator() ( argument_type s ) const { return this->convert(s) ; } } ; template<class S, class OverflowHandler = def_overflow_handler, class Float2IntRounder = Trunc<S> , class UserRangeChecker = UseInternalRangeChecker > struct make_converter_from { template<class T, class Traits = conversion_traits<T,S>, class RawConverter = raw_converter<Traits> > struct to { typedef converter<T,S,Traits,OverflowHandler,Float2IntRounder,RawConverter,UserRangeChecker> type ; } ; } ; } } # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/cast.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/numeric_cast_traits.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/numeric_cast_traits.hpp" 3 4 namespace boost { namespace numeric { template <typename Target, typename Source, typename EnableIf = void> struct numeric_cast_traits { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<Source> rounding_policy; }; }} # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/numeric_cast_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_common.hpp" 3 4 namespace boost { namespace numeric { template <> struct numeric_cast_traits < char , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < char , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < char , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < char , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < char , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < char , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < char , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < char , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < char , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < signed char , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < signed char , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < signed char , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < signed char , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < signed char , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < signed char , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < signed char , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < signed char , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < signed char , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < short , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < short , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < short , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < short , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < short , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < short , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < short , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < short , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < short , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < int , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < int , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < int , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < int , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < int , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < int , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < int , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < int , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < int , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < long , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < long , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < long , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < long , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < long , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < long , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < long , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < long , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < long , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < float , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < float , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < float , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < float , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < float , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < float , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < float , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < float , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < float , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < double , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < double , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < double , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < double , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < double , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < double , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < double , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < double , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < double , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; template <> struct numeric_cast_traits < long double , char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<char> rounding_policy; }; template <> struct numeric_cast_traits < long double , signed char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<signed char> rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned char > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned char> rounding_policy; }; template <> struct numeric_cast_traits < long double , short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<short> rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned short > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned short> rounding_policy; }; template <> struct numeric_cast_traits < long double , int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<int> rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned int > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned int> rounding_policy; }; template <> struct numeric_cast_traits < long double , long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long> rounding_policy; }; template <> struct numeric_cast_traits < long double , unsigned long > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<unsigned long> rounding_policy; }; template <> struct numeric_cast_traits < long double , float > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<float> rounding_policy; }; template <> struct numeric_cast_traits < long double , double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<double> rounding_policy; }; template <> struct numeric_cast_traits < long double , long double > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<long double> rounding_policy; }; }} # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/preprocessed/numeric_cast_traits_long_long.hpp" 3 4 namespace boost { namespace numeric { template <> struct numeric_cast_traits < char , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < char , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < signed char , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < signed char , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned char , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < short , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < short , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned short , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < int , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < int , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned int , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < long , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < long , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < unsigned long , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < float , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < float , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < double , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < double , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < long double , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < long double , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < boost::long_long_type , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < boost::long_long_type , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; template <> struct numeric_cast_traits < boost::ulong_long_type , boost::long_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::long_long_type> rounding_policy; }; template <> struct numeric_cast_traits < boost::ulong_long_type , boost::ulong_long_type > { typedef def_overflow_handler overflow_policy; typedef UseInternalRangeChecker range_checking_policy; typedef Trunc<boost::ulong_long_type> rounding_policy; }; }} # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/detail/numeric_cast_traits.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/numeric_cast_traits.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/numeric/conversion/cast.hpp" 2 3 4 namespace boost { template <typename Target, typename Source> inline Target numeric_cast( Source arg ) { typedef numeric::conversion_traits<Target, Source> conv_traits; typedef numeric::numeric_cast_traits<Target, Source> cast_traits; typedef boost::numeric::converter < Target, Source, conv_traits, typename cast_traits::overflow_policy, typename cast_traits::rounding_policy, boost::numeric::raw_converter< conv_traits >, typename cast_traits::range_checking_policy > converter; return converter::convert(arg); } using numeric::bad_numeric_cast; } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_duration.hpp" 2 3 4 namespace boost { namespace posix_time { class __attribute__((__visibility__("default"))) hours : public time_duration { public: template <typename T> constexpr explicit hours(T const& h, typename boost::enable_if<boost::is_integral<T>, void>::type* = nullptr) : time_duration(numeric_cast<hour_type>(h), 0, 0) {} }; class __attribute__((__visibility__("default"))) minutes : public time_duration { public: template <typename T> constexpr explicit minutes(T const& m, typename boost::enable_if<boost::is_integral<T>, void>::type* = nullptr) : time_duration(0, numeric_cast<min_type>(m),0) {} }; class __attribute__((__visibility__("default"))) seconds : public time_duration { public: template <typename T> constexpr explicit seconds(T const& s, typename boost::enable_if<boost::is_integral<T>, void>::type* = nullptr) : time_duration(0,0, numeric_cast<sec_type>(s)) {} }; typedef date_time::subsecond_duration<time_duration,1000> millisec; typedef date_time::subsecond_duration<time_duration,1000> milliseconds; typedef date_time::subsecond_duration<time_duration,1000000> microsec; typedef date_time::subsecond_duration<time_duration,1000000> microseconds; # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_duration.hpp" 3 4 } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/time_period.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/time_period.hpp" 3 4 namespace boost { namespace posix_time { typedef date_time::period<ptime, time_duration> time_period; } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_iterator.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/time_iterator.hpp" 3 4 namespace boost { namespace date_time { template<class time_type> class time_itr { public: typedef typename time_type::time_duration_type time_duration_type; time_itr(time_type t, time_duration_type d) : current_(t), offset_(d) {} time_itr& operator++() { current_ = current_ + offset_; return *this; } time_itr& operator--() { current_ = current_ - offset_; return *this; } const time_type& operator*() const {return current_;} const time_type* operator->() const {return ¤t_;} bool operator< (const time_type& t) const {return current_ < t;} bool operator<= (const time_type& t) const {return current_ <= t;} bool operator!= (const time_type& t) const {return current_ != t;} bool operator== (const time_type& t) const {return current_ == t;} bool operator> (const time_type& t) const {return current_ > t;} bool operator>= (const time_type& t) const {return current_ >= t;} private: time_type current_; time_duration_type offset_; }; } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 3 4 namespace boost { namespace date_time { enum time_is_dst_result {is_not_in_dst, is_in_dst, ambiguous, invalid_time_label}; template<class date_type_, class time_duration_type_> class dst_calculator { public: typedef time_duration_type_ time_duration_type; typedef date_type_ date_type; # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 3 4 static time_is_dst_result process_local_dst_start_day(const time_duration_type& time_of_day, unsigned int dst_start_offset_minutes, long dst_length_minutes) { if (time_of_day < time_duration_type(0,dst_start_offset_minutes,0)) { return is_not_in_dst; } long offset = dst_start_offset_minutes + dst_length_minutes; if (time_of_day >= time_duration_type(0,offset,0)) { return is_in_dst; } return invalid_time_label; } # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 3 4 static time_is_dst_result process_local_dst_end_day(const time_duration_type& time_of_day, unsigned int dst_end_offset_minutes, long dst_length_minutes) { int offset = dst_end_offset_minutes-dst_length_minutes; if (time_of_day < time_duration_type(0,offset,0)) { return is_in_dst; } if (time_of_day >= time_duration_type(0,dst_end_offset_minutes,0)) { return is_not_in_dst; } return ambiguous; } # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 3 4 static time_is_dst_result local_is_dst(const date_type& current_day, const time_duration_type& time_of_day, const date_type& dst_start_day, const time_duration_type& dst_start_offset, const date_type& dst_end_day, const time_duration_type& dst_end_offset, const time_duration_type& dst_length) { unsigned int start_minutes = static_cast<unsigned>( dst_start_offset.hours() * 60 + dst_start_offset.minutes()); unsigned int end_minutes = static_cast<unsigned>( dst_end_offset.hours() * 60 + dst_end_offset.minutes()); long length_minutes = static_cast<long>( dst_length.hours() * 60 + dst_length.minutes()); return local_is_dst(current_day, time_of_day, dst_start_day, start_minutes, dst_end_day, end_minutes, length_minutes); } # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 3 4 static time_is_dst_result local_is_dst(const date_type& current_day, const time_duration_type& time_of_day, const date_type& dst_start_day, unsigned int dst_start_offset_minutes, const date_type& dst_end_day, unsigned int dst_end_offset_minutes, long dst_length_minutes) { if (dst_start_day < dst_end_day) { if ((current_day > dst_start_day) && (current_day < dst_end_day)) { return is_in_dst; } if ((current_day < dst_start_day) || (current_day > dst_end_day)) { return is_not_in_dst; } } else { if ((current_day < dst_start_day) && (current_day > dst_end_day)) { return is_not_in_dst; } if ((current_day > dst_start_day) || (current_day < dst_end_day)) { return is_in_dst; } } if (current_day == dst_start_day) { return process_local_dst_start_day(time_of_day, dst_start_offset_minutes, dst_length_minutes); } if (current_day == dst_end_day) { return process_local_dst_end_day(time_of_day, dst_end_offset_minutes, dst_length_minutes); } return invalid_time_label; } }; # 208 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/dst_rules.hpp" 3 4 template<class date_type, class time_duration_type, class dst_traits> class dst_calc_engine { public: typedef typename date_type::year_type year_type; typedef typename date_type::calendar_type calendar_type; typedef dst_calculator<date_type, time_duration_type> dstcalc; static time_is_dst_result local_is_dst(const date_type& d, const time_duration_type& td) { year_type y = d.year(); date_type dst_start = local_dst_start_day(y); date_type dst_end = local_dst_end_day(y); return dstcalc::local_is_dst(d,td, dst_start, dst_traits::dst_start_offset_minutes(), dst_end, dst_traits::dst_end_offset_minutes(), dst_traits::dst_shift_length_minutes()); } static bool is_dst_boundary_day(date_type d) { year_type y = d.year(); return ((d == local_dst_start_day(y)) || (d == local_dst_end_day(y))); } static time_duration_type dst_offset() { return time_duration_type(0,dst_traits::dst_shift_length_minutes(),0); } static date_type local_dst_start_day(year_type year) { return dst_traits::local_dst_start_day(year); } static date_type local_dst_end_day(year_type year) { return dst_traits::local_dst_end_day(year); } }; template<class date_type_, class time_duration_type_, unsigned int dst_start_offset_minutes=120, short dst_length_minutes=60> class us_dst_rules { public: typedef time_duration_type_ time_duration_type; typedef date_type_ date_type; typedef typename date_type::year_type year_type; typedef typename date_type::calendar_type calendar_type; typedef date_time::last_kday_of_month<date_type> lkday; typedef date_time::first_kday_of_month<date_type> fkday; typedef date_time::nth_kday_of_month<date_type> nkday; typedef dst_calculator<date_type, time_duration_type> dstcalc; static time_is_dst_result local_is_dst(const date_type& d, const time_duration_type& td) { year_type y = d.year(); date_type dst_start = local_dst_start_day(y); date_type dst_end = local_dst_end_day(y); return dstcalc::local_is_dst(d,td, dst_start,dst_start_offset_minutes, dst_end, dst_start_offset_minutes, dst_length_minutes); } static bool is_dst_boundary_day(date_type d) { year_type y = d.year(); return ((d == local_dst_start_day(y)) || (d == local_dst_end_day(y))); } static date_type local_dst_start_day(year_type year) { if (year >= year_type(2007)) { nkday ssim(nkday::second, Sunday, date_time::Mar); return ssim.get_date(year); } else { fkday fsia(Sunday, date_time::Apr); return fsia.get_date(year); } } static date_type local_dst_end_day(year_type year) { if (year >= year_type(2007)) { fkday fsin(Sunday, date_time::Nov); return fsin.get_date(year); } else { lkday lsio(Sunday, date_time::Oct); return lsio.get_date(year); } } static time_duration_type dst_offset() { return time_duration_type(0,dst_length_minutes,0); } private: }; template<class date_type_, class time_duration_type_> class null_dst_rules { public: typedef time_duration_type_ time_duration_type; typedef date_type_ date_type; static time_is_dst_result local_is_dst(const date_type&, const time_duration_type&) { return is_not_in_dst; } static time_is_dst_result utc_is_dst(const date_type&, const time_duration_type&) { return is_not_in_dst; } static bool is_dst_boundary_day(date_type ) { return false; } static time_duration_type dst_offset() { return time_duration_type(0,0,0); } }; } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/date_time/posix_time/posix_time_types.hpp" 2 3 4 namespace boost { namespace posix_time { typedef date_time::time_itr<ptime> time_iterator; typedef date_time::second_clock<ptime> second_clock; typedef date_time::microsec_clock<ptime> microsec_clock; typedef date_time::null_dst_rules<ptime::date_type, time_duration> no_dst; typedef date_time::us_dst_rules<ptime::date_type, time_duration> us_dst; } } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/time_traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/time_traits.hpp" 2 3 4 namespace boost { namespace asio { template <typename Time> struct time_traits; template <> struct time_traits<boost::posix_time::ptime> { typedef boost::posix_time::ptime time_type; typedef boost::posix_time::time_duration duration_type; static time_type now() { return boost::posix_time::microsec_clock::universal_time(); } static time_type add(const time_type& t, const duration_type& d) { return t + d; } static duration_type subtract(const time_type& t1, const time_type& t2) { return t1 - t2; } static bool less_than(const time_type& t1, const time_type& t2) { return t1 < t2; } static boost::posix_time::time_duration to_posix_duration( const duration_type& d) { return d; } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/time_traits.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct forwarding_posix_time_traits : time_traits<boost::posix_time::ptime> {}; template <> class timer_queue<time_traits<boost::posix_time::ptime> > : public timer_queue_base { public: typedef boost::posix_time::ptime time_type; typedef boost::posix_time::time_duration duration_type; typedef timer_queue<forwarding_posix_time_traits>::per_timer_data per_timer_data; inline timer_queue(); inline virtual ~timer_queue(); inline bool enqueue_timer(const time_type& time, per_timer_data& timer, wait_op* op); inline virtual bool empty() const; inline virtual long wait_duration_msec(long max_duration) const; inline virtual long wait_duration_usec(long max_duration) const; inline virtual void get_ready_timers(op_queue<operation>& ops); inline virtual void get_all_timers(op_queue<operation>& ops); inline std::size_t cancel_timer( per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled = (std::numeric_limits<std::size_t>::max)()); inline void cancel_timer_by_key(per_timer_data* timer, op_queue<operation>& ops, void* cancellation_key); inline void move_timer(per_timer_data& target, per_timer_data& source); private: timer_queue<forwarding_posix_time_traits> impl_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_ptime.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_ptime.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_ptime.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_ptime.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { timer_queue<time_traits<boost::posix_time::ptime> >::timer_queue() { } timer_queue<time_traits<boost::posix_time::ptime> >::~timer_queue() { } bool timer_queue<time_traits<boost::posix_time::ptime> >::enqueue_timer( const time_type& time, per_timer_data& timer, wait_op* op) { return impl_.enqueue_timer(time, timer, op); } bool timer_queue<time_traits<boost::posix_time::ptime> >::empty() const { return impl_.empty(); } long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_msec( long max_duration) const { return impl_.wait_duration_msec(max_duration); } long timer_queue<time_traits<boost::posix_time::ptime> >::wait_duration_usec( long max_duration) const { return impl_.wait_duration_usec(max_duration); } void timer_queue<time_traits<boost::posix_time::ptime> >::get_ready_timers( op_queue<operation>& ops) { impl_.get_ready_timers(ops); } void timer_queue<time_traits<boost::posix_time::ptime> >::get_all_timers( op_queue<operation>& ops) { impl_.get_all_timers(ops); } std::size_t timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer( per_timer_data& timer, op_queue<operation>& ops, std::size_t max_cancelled) { return impl_.cancel_timer(timer, ops, max_cancelled); } void timer_queue<time_traits<boost::posix_time::ptime> >::cancel_timer_by_key( per_timer_data* timer, op_queue<operation>& ops, void* cancellation_key) { impl_.cancel_timer_by_key(timer, ops, cancellation_key); } void timer_queue<time_traits<boost::posix_time::ptime> >::move_timer( per_timer_data& target, per_timer_data& source) { impl_.move_timer(target, source); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/timer_queue_ptime.ipp" 2 3 4 # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_queue_ptime.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler_fwd.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler_fwd.hpp" 3 4 namespace boost { namespace asio { namespace detail { # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler_fwd.hpp" 3 4 typedef class epoll_reactor timer_scheduler; # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler_fwd.hpp" 3 4 } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/timer_scheduler.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_handler.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_handler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_handler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename IoExecutor> class wait_handler : public wait_op { public: struct ptr { Handler* h; wait_handler* v; wait_handler* p; ~ptr() { reset(); } static wait_handler* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<wait_handler> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~wait_handler(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<wait_handler> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<wait_handler*>(v), 1); v = 0; } } }; wait_handler(Handler& h, const IoExecutor& io_ex) : wait_op(&wait_handler::do_complete), handler_(static_cast<Handler&&>(h)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { wait_handler* h(static_cast<wait_handler*>(base)); ptr p = { boost::asio::detail::addressof(h->handler_), h, h }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( h->work_)); detail::binder1<Handler, boost::system::error_code> handler(h->handler_, h->ec_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 91 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/wait_handler.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Time_Traits> class deadline_timer_service : public execution_context_service_base<deadline_timer_service<Time_Traits> > { public: typedef typename Time_Traits::time_type time_type; typedef typename Time_Traits::duration_type duration_type; struct implementation_type : private boost::asio::detail::noncopyable { time_type expiry; bool might_have_pending_waits; typename timer_queue<Time_Traits>::per_timer_data timer_data; }; deadline_timer_service(execution_context& context) : execution_context_service_base< deadline_timer_service<Time_Traits> >(context), scheduler_(boost::asio::use_service<timer_scheduler>(context)) { scheduler_.init_task(); scheduler_.add_timer_queue(timer_queue_); } ~deadline_timer_service() { scheduler_.remove_timer_queue(timer_queue_); } void shutdown() { } void construct(implementation_type& impl) { impl.expiry = time_type(); impl.might_have_pending_waits = false; } void destroy(implementation_type& impl) { boost::system::error_code ec; cancel(impl, ec); } void move_construct(implementation_type& impl, implementation_type& other_impl) { scheduler_.move_timer(timer_queue_, impl.timer_data, other_impl.timer_data); impl.expiry = other_impl.expiry; other_impl.expiry = time_type(); impl.might_have_pending_waits = other_impl.might_have_pending_waits; other_impl.might_have_pending_waits = false; } void move_assign(implementation_type& impl, deadline_timer_service& other_service, implementation_type& other_impl) { if (this != &other_service) if (impl.might_have_pending_waits) scheduler_.cancel_timer(timer_queue_, impl.timer_data); other_service.scheduler_.move_timer(other_service.timer_queue_, impl.timer_data, other_impl.timer_data); impl.expiry = other_impl.expiry; other_impl.expiry = time_type(); impl.might_have_pending_waits = other_impl.might_have_pending_waits; other_impl.might_have_pending_waits = false; } void converting_move_construct(implementation_type& impl, deadline_timer_service&, implementation_type& other_impl) { move_construct(impl, other_impl); } void converting_move_assign(implementation_type& impl, deadline_timer_service& other_service, implementation_type& other_impl) { move_assign(impl, other_service, other_impl); } std::size_t cancel(implementation_type& impl, boost::system::error_code& ec) { if (!impl.might_have_pending_waits) { ec = boost::system::error_code(); return 0; } (void)0 ; std::size_t count = scheduler_.cancel_timer(timer_queue_, impl.timer_data); impl.might_have_pending_waits = false; ec = boost::system::error_code(); return count; } std::size_t cancel_one(implementation_type& impl, boost::system::error_code& ec) { if (!impl.might_have_pending_waits) { ec = boost::system::error_code(); return 0; } (void)0 ; std::size_t count = scheduler_.cancel_timer( timer_queue_, impl.timer_data, 1); if (count == 0) impl.might_have_pending_waits = false; ec = boost::system::error_code(); return count; } time_type expiry(const implementation_type& impl) const { return impl.expiry; } time_type expires_at(const implementation_type& impl) const { return impl.expiry; } duration_type expires_from_now(const implementation_type& impl) const { return Time_Traits::subtract(this->expiry(impl), Time_Traits::now()); } std::size_t expires_at(implementation_type& impl, const time_type& expiry_time, boost::system::error_code& ec) { std::size_t count = cancel(impl, ec); impl.expiry = expiry_time; ec = boost::system::error_code(); return count; } std::size_t expires_after(implementation_type& impl, const duration_type& expiry_time, boost::system::error_code& ec) { return expires_at(impl, Time_Traits::add(Time_Traits::now(), expiry_time), ec); } std::size_t expires_from_now(implementation_type& impl, const duration_type& expiry_time, boost::system::error_code& ec) { return expires_at(impl, Time_Traits::add(Time_Traits::now(), expiry_time), ec); } void wait(implementation_type& impl, boost::system::error_code& ec) { time_type now = Time_Traits::now(); ec = boost::system::error_code(); while (Time_Traits::less_than(now, impl.expiry) && !ec) { this->do_wait(Time_Traits::to_posix_duration( Time_Traits::subtract(impl.expiry, now)), ec); now = Time_Traits::now(); } } template <typename Handler, typename IoExecutor> void async_wait(implementation_type& impl, Handler& handler, const IoExecutor& io_ex) { typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef wait_handler<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<op_cancellation>(this, &impl.timer_data); } impl.might_have_pending_waits = true; (void)0 ; scheduler_.schedule_timer(timer_queue_, impl.expiry, impl.timer_data, p.p); p.v = p.p = 0; } private: template <typename Duration> void do_wait(const Duration& timeout, boost::system::error_code& ec) { ::timeval tv; tv.tv_sec = timeout.total_seconds(); tv.tv_usec = timeout.total_microseconds() % 1000000; socket_ops::select(0, 0, 0, 0, &tv, ec); } class op_cancellation { public: op_cancellation(deadline_timer_service* s, typename timer_queue<Time_Traits>::per_timer_data* p) : service_(s), timer_data_(p) { } void operator()(cancellation_type_t type) { if (!!(type & (cancellation_type::terminal | cancellation_type::partial | cancellation_type::total))) { service_->scheduler_.cancel_timer_by_key( service_->timer_queue_, timer_data_, this); } } private: deadline_timer_service* service_; typename timer_queue<Time_Traits>::per_timer_data* timer_data_; }; timer_queue<Time_Traits> timer_queue_; timer_scheduler& scheduler_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 336 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/deadline_timer_service.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 2 3 4 namespace boost { namespace asio { # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 template <typename Time, typename TimeTraits = boost::asio::time_traits<Time>, typename Executor = any_io_executor> class basic_deadline_timer { private: class initiate_async_wait; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_deadline_timer<Time, TimeTraits, Executor1> other; }; typedef TimeTraits traits_type; typedef typename traits_type::time_type time_type; typedef typename traits_type::duration_type duration_type; # 165 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 explicit basic_deadline_timer(const executor_type& ex) : impl_(0, ex) { } # 180 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 template <typename ExecutionContext> explicit basic_deadline_timer(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { } # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 basic_deadline_timer(const executor_type& ex, const time_type& expiry_time) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().expires_at(impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_at"); } # 218 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 template <typename ExecutionContext> basic_deadline_timer(ExecutionContext& context, const time_type& expiry_time, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().expires_at(impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_at"); } # 240 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 basic_deadline_timer(const executor_type& ex, const duration_type& expiry_time) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().expires_from_now( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_from_now"); } # 261 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 template <typename ExecutionContext> basic_deadline_timer(ExecutionContext& context, const duration_type& expiry_time, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().expires_from_now( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_from_now"); } # 287 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 basic_deadline_timer(basic_deadline_timer&& other) : impl_(std::move(other.impl_)) { } # 304 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 basic_deadline_timer& operator=(basic_deadline_timer&& other) { impl_ = std::move(other.impl_); return *this; } ~basic_deadline_timer() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 348 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t cancel() { boost::system::error_code ec; std::size_t s = impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); return s; } # 378 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t cancel(boost::system::error_code& ec) { return impl_.get_service().cancel(impl_.get_implementation(), ec); } # 407 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t cancel_one() { boost::system::error_code ec; std::size_t s = impl_.get_service().cancel_one( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel_one"); return s; } # 440 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t cancel_one(boost::system::error_code& ec) { return impl_.get_service().cancel_one(impl_.get_implementation(), ec); } time_type expires_at() const { return impl_.get_service().expires_at(impl_.get_implementation()); } # 477 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t expires_at(const time_type& expiry_time) { boost::system::error_code ec; std::size_t s = impl_.get_service().expires_at( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_at"); return s; } # 508 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t expires_at(const time_type& expiry_time, boost::system::error_code& ec) { return impl_.get_service().expires_at( impl_.get_implementation(), expiry_time, ec); } duration_type expires_from_now() const { return impl_.get_service().expires_from_now(impl_.get_implementation()); } # 547 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t expires_from_now(const duration_type& expiry_time) { boost::system::error_code ec; std::size_t s = impl_.get_service().expires_from_now( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_from_now"); return s; } # 578 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 std::size_t expires_from_now(const duration_type& expiry_time, boost::system::error_code& ec) { return impl_.get_service().expires_from_now( impl_.get_implementation(), expiry_time, ec); } # 592 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 void wait() { boost::system::error_code ec; impl_.get_service().wait(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "wait"); } # 606 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 void wait(boost::system::error_code& ec) { impl_.get_service().wait(impl_.get_implementation(), ec); } # 651 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code)> WaitToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_wait( WaitToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WaitToken, void (boost::system::error_code)>( initiate_async_wait(this), token); } private: basic_deadline_timer(const basic_deadline_timer&) = delete; basic_deadline_timer& operator=( const basic_deadline_timer&) = delete; class initiate_async_wait { public: typedef Executor executor_type; explicit initiate_async_wait(basic_deadline_timer* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WaitHandler> void operator()(WaitHandler&& handler) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WaitHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "WaitHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WaitHandler> handler2(handler); self_->impl_.get_service().async_wait( self_->impl_.get_implementation(), handler2.value, self_->impl_.get_executor()); } private: basic_deadline_timer* self_; }; detail::io_object_impl< detail::deadline_timer_service<TimeTraits>, Executor> impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 713 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_deadline_timer.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_file.hpp" 1 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename IoObjectService> class service_has_move { private: typedef IoObjectService service_type; typedef typename service_type::implementation_type implementation_type; template <typename T, typename U> static auto asio_service_has_move_eval(T* t, U* u) -> decltype(t->move_construct(*u, *u), char()); static char (&asio_service_has_move_eval(...))[2]; public: static const bool value = sizeof(asio_service_has_move_eval( static_cast<service_type*>(0), static_cast<implementation_type*>(0))) == 1; }; } # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 3 4 template <typename IoObjectService, bool Movable = detail::service_has_move<IoObjectService>::value> class basic_io_object { public: typedef IoObjectService service_type; typedef typename service_type::implementation_type implementation_type; # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 3 4 boost::asio::io_context& get_io_context() { return service_.get_io_context(); } # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 3 4 boost::asio::io_context& get_io_service() { return service_.get_io_context(); } typedef boost::asio::io_context::executor_type executor_type; executor_type get_executor() noexcept { return service_.get_io_context().get_executor(); } protected: explicit basic_io_object(boost::asio::io_context& io_context) : service_(boost::asio::use_service<IoObjectService>(io_context)) { service_.construct(implementation_); } # 154 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 3 4 ~basic_io_object() { service_.destroy(implementation_); } service_type& get_service() { return service_; } const service_type& get_service() const { return service_; } implementation_type& get_implementation() { return implementation_; } const implementation_type& get_implementation() const { return implementation_; } private: basic_io_object(const basic_io_object&); basic_io_object& operator=(const basic_io_object&); service_type& service_; implementation_type implementation_; }; template <typename IoObjectService> class basic_io_object<IoObjectService, true> { public: typedef IoObjectService service_type; typedef typename service_type::implementation_type implementation_type; boost::asio::io_context& get_io_context() { return service_->get_io_context(); } boost::asio::io_context& get_io_service() { return service_->get_io_context(); } typedef boost::asio::io_context::executor_type executor_type; executor_type get_executor() noexcept { return service_->get_io_context().get_executor(); } protected: explicit basic_io_object(boost::asio::io_context& io_context) : service_(&boost::asio::use_service<IoObjectService>(io_context)) { service_->construct(implementation_); } basic_io_object(basic_io_object&& other) : service_(&other.get_service()) { service_->move_construct(implementation_, other.implementation_); } template <typename IoObjectService1> basic_io_object(IoObjectService1& other_service, typename IoObjectService1::implementation_type& other_implementation) : service_(&boost::asio::use_service<IoObjectService>( other_service.get_io_context())) { service_->converting_move_construct(implementation_, other_service, other_implementation); } ~basic_io_object() { service_->destroy(implementation_); } basic_io_object& operator=(basic_io_object&& other) { service_->move_assign(implementation_, *other.service_, other.implementation_); service_ = other.service_; return *this; } service_type& get_service() { return *service_; } const service_type& get_service() const { return *service_; } implementation_type& get_implementation() { return implementation_; } const implementation_type& get_implementation() const { return implementation_; } private: basic_io_object(const basic_io_object&); void operator=(const basic_io_object&); IoObjectService* service_; implementation_type implementation_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 291 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_io_object.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_random_access_file.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 2 3 4 namespace boost { namespace asio { template <typename Protocol, typename Executor = any_io_executor> class basic_raw_socket; # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename Protocol, typename Executor> class basic_raw_socket : public basic_socket<Protocol, Executor> { private: class initiate_async_send; class initiate_async_send_to; class initiate_async_receive; class initiate_async_receive_from; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_raw_socket<Protocol, Executor1> other; }; typedef typename basic_socket<Protocol, Executor>::native_handle_type native_handle_type; typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 explicit basic_raw_socket(const executor_type& ex) : basic_socket<Protocol, Executor>(ex) { } # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ExecutionContext> explicit basic_raw_socket(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context) { } # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 basic_raw_socket(const executor_type& ex, const protocol_type& protocol) : basic_socket<Protocol, Executor>(ex, protocol) { } # 152 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ExecutionContext> basic_raw_socket(ExecutionContext& context, const protocol_type& protocol, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : basic_socket<Protocol, Executor>(context, protocol) { } # 177 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 basic_raw_socket(const executor_type& ex, const endpoint_type& endpoint) : basic_socket<Protocol, Executor>(ex, endpoint) { } # 198 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ExecutionContext> basic_raw_socket(ExecutionContext& context, const endpoint_type& endpoint, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, endpoint) { } # 221 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 basic_raw_socket(const executor_type& ex, const protocol_type& protocol, const native_handle_type& native_socket) : basic_socket<Protocol, Executor>(ex, protocol, native_socket) { } # 242 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ExecutionContext> basic_raw_socket(ExecutionContext& context, const protocol_type& protocol, const native_handle_type& native_socket, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, protocol, native_socket) { } # 264 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 basic_raw_socket(basic_raw_socket&& other) noexcept : basic_socket<Protocol, Executor>(std::move(other)) { } # 280 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 basic_raw_socket& operator=(basic_raw_socket&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } # 298 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> basic_raw_socket(basic_raw_socket<Protocol1, Executor1>&& other, typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value >::type = 0) : basic_socket<Protocol, Executor>(std::move(other)) { } # 319 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value, basic_raw_socket& >::type operator=(basic_raw_socket<Protocol1, Executor1>&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } ~basic_raw_socket() { } # 361 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 387 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 414 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); } # 473 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, socket_base::message_flags(0)); } # 538 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, socket_base::message_flags flags, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, flags); } # 583 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send_to(const ConstBufferSequence& buffers, const endpoint_type& destination) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send_to( this->impl_.get_implementation(), buffers, destination, 0, ec); boost::asio::detail::throw_error(ec, "send_to"); return s; } # 610 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send_to( this->impl_.get_implementation(), buffers, destination, flags, ec); boost::asio::detail::throw_error(ec, "send_to"); return s; } # 637 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().send_to(this->impl_.get_implementation(), buffers, destination, flags, ec); } # 699 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send_to(this), token, buffers, destination, socket_base::message_flags(0)); } # 764 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send_to(const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send_to(this), token, buffers, destination, flags); } # 810 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 838 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 867 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, flags, ec); } # 927 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, socket_base::message_flags(0)); } # 992 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, socket_base::message_flags flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, flags); } # 1038 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive_from( this->impl_.get_implementation(), buffers, sender_endpoint, 0, ec); boost::asio::detail::throw_error(ec, "receive_from"); return s; } # 1065 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive_from( this->impl_.get_implementation(), buffers, sender_endpoint, flags, ec); boost::asio::detail::throw_error(ec, "receive_from"); return s; } # 1092 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().receive_from( this->impl_.get_implementation(), buffers, sender_endpoint, flags, ec); } # 1153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive_from(this), token, buffers, &sender_endpoint, socket_base::message_flags(0)); } # 1220 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive_from(const MutableBufferSequence& buffers, endpoint_type& sender_endpoint, socket_base::message_flags flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive_from(this), token, buffers, &sender_endpoint, flags); } private: basic_raw_socket(const basic_raw_socket&) = delete; basic_raw_socket& operator=(const basic_raw_socket&) = delete; class initiate_async_send { public: typedef Executor executor_type; explicit initiate_async_send(basic_raw_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_send( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_raw_socket* self_; }; class initiate_async_send_to { public: typedef Executor executor_type; explicit initiate_async_send_to(basic_raw_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, const endpoint_type& destination, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_send_to( self_->impl_.get_implementation(), buffers, destination, flags, handler2.value, self_->impl_.get_executor()); } private: basic_raw_socket* self_; }; class initiate_async_receive { public: typedef Executor executor_type; explicit initiate_async_receive(basic_raw_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_receive( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_raw_socket* self_; }; class initiate_async_receive_from { public: typedef Executor executor_type; explicit initiate_async_receive_from(basic_raw_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, endpoint_type* sender_endpoint, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_receive_from( self_->impl_.get_implementation(), buffers, *sender_endpoint, flags, handler2.value, self_->impl_.get_executor()); } private: basic_raw_socket* self_; }; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1388 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_raw_socket.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 1 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 1 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { namespace descriptor_ops { enum { user_set_non_blocking = 1, internal_non_blocking = 2, non_blocking = user_set_non_blocking | internal_non_blocking, possible_dup = 4 }; typedef unsigned char state_type; inline void get_last_error( boost::system::error_code& ec, bool is_error_condition) { if (!is_error_condition) { boost::asio::error::clear(ec); } else { ec = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); } } inline int open(const char* path, int flags, boost::system::error_code& ec); inline int open(const char* path, int flags, unsigned mode, boost::system::error_code& ec); inline int close(int d, state_type& state, boost::system::error_code& ec); inline bool set_user_non_blocking(int d, state_type& state, bool value, boost::system::error_code& ec); inline bool set_internal_non_blocking(int d, state_type& state, bool value, boost::system::error_code& ec); typedef iovec buf; inline std::size_t sync_read(int d, state_type state, buf* bufs, std::size_t count, bool all_empty, boost::system::error_code& ec); inline std::size_t sync_read1(int d, state_type state, void* data, std::size_t size, boost::system::error_code& ec); inline bool non_blocking_read(int d, buf* bufs, std::size_t count, boost::system::error_code& ec, std::size_t& bytes_transferred); inline bool non_blocking_read1(int d, void* data, std::size_t size, boost::system::error_code& ec, std::size_t& bytes_transferred); inline std::size_t sync_write(int d, state_type state, const buf* bufs, std::size_t count, bool all_empty, boost::system::error_code& ec); inline std::size_t sync_write1(int d, state_type state, const void* data, std::size_t size, boost::system::error_code& ec); inline bool non_blocking_write(int d, const buf* bufs, std::size_t count, boost::system::error_code& ec, std::size_t& bytes_transferred); inline bool non_blocking_write1(int d, const void* data, std::size_t size, boost::system::error_code& ec, std::size_t& bytes_transferred); # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 3 4 inline int ioctl(int d, state_type& state, long cmd, ioctl_arg_type* arg, boost::system::error_code& ec); inline int fcntl(int d, int cmd, boost::system::error_code& ec); inline int fcntl(int d, int cmd, long arg, boost::system::error_code& ec); inline int poll_read(int d, state_type state, boost::system::error_code& ec); inline int poll_write(int d, state_type state, boost::system::error_code& ec); inline int poll_error(int d, state_type state, boost::system::error_code& ec); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 3 4 # 1 "/usr/include/c++/13/cerrno" 1 3 4 # 39 "/usr/include/c++/13/cerrno" 3 4 # 40 "/usr/include/c++/13/cerrno" 3 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { namespace descriptor_ops { int open(const char* path, int flags, boost::system::error_code& ec) { int result = ::open(path, flags); get_last_error(ec, result < 0); return result; } int open(const char* path, int flags, unsigned mode, boost::system::error_code& ec) { int result = ::open(path, flags, mode); get_last_error(ec, result < 0); return result; } int close(int d, state_type& state, boost::system::error_code& ec) { int result = 0; if (d != -1) { result = ::close(d); get_last_error(ec, result < 0); if (result != 0 && (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again)) { # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 3 4 ioctl_arg_type arg = 0; result = ::ioctl(d, 0x5421, &arg); get_last_error(ec, result < 0); if (ec.value() == 25) { int flags = ::fcntl(d, 3, 0); if (flags >= 0) ::fcntl(d, 4, flags & ~04000); } state &= ~non_blocking; result = ::close(d); get_last_error(ec, result < 0); } } return result; } bool set_user_non_blocking(int d, state_type& state, bool value, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return false; } # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 3 4 ioctl_arg_type arg = (value ? 1 : 0); int result = ::ioctl(d, 0x5421, &arg); get_last_error(ec, result < 0); if (ec.value() == 25) { result = ::fcntl(d, 3, 0); get_last_error(ec, result < 0); if (result >= 0) { int flag = (value ? (result | 04000) : (result & ~04000)); result = ::fcntl(d, 4, flag); get_last_error(ec, result < 0); } } if (result >= 0) { if (value) state |= user_set_non_blocking; else { state &= ~(user_set_non_blocking | internal_non_blocking); } return true; } return false; } bool set_internal_non_blocking(int d, state_type& state, bool value, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return false; } if (!value && (state & user_set_non_blocking)) { ec = boost::asio::error::invalid_argument; return false; } # 178 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 3 4 ioctl_arg_type arg = (value ? 1 : 0); int result = ::ioctl(d, 0x5421, &arg); get_last_error(ec, result < 0); if (ec.value() == 25) { result = ::fcntl(d, 3, 0); get_last_error(ec, result < 0); if (result >= 0) { int flag = (value ? (result | 04000) : (result & ~04000)); result = ::fcntl(d, 4, flag); get_last_error(ec, result < 0); } } if (result >= 0) { if (value) state |= internal_non_blocking; else state &= ~internal_non_blocking; return true; } return false; } std::size_t sync_read(int d, state_type state, buf* bufs, std::size_t count, bool all_empty, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return 0; } if (all_empty) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = ::readv(d, bufs, static_cast<int>(count)); get_last_error(ec, bytes < 0); if (bytes > 0) return bytes; if (bytes == 0) { ec = boost::asio::error::eof; return 0; } if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (descriptor_ops::poll_read(d, 0, ec) < 0) return 0; } } std::size_t sync_read1(int d, state_type state, void* data, std::size_t size, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return 0; } if (size == 0) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = ::read(d, data, size); get_last_error(ec, bytes < 0); if (bytes > 0) return bytes; if (bytes == 0) { ec = boost::asio::error::eof; return 0; } if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (descriptor_ops::poll_read(d, 0, ec) < 0) return 0; } } bool non_blocking_read(int d, buf* bufs, std::size_t count, boost::system::error_code& ec, std::size_t& bytes_transferred) { for (;;) { signed_size_type bytes = ::readv(d, bufs, static_cast<int>(count)); get_last_error(ec, bytes < 0); if (bytes == 0) { ec = boost::asio::error::eof; return true; } if (bytes > 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } bool non_blocking_read1(int d, void* data, std::size_t size, boost::system::error_code& ec, std::size_t& bytes_transferred) { for (;;) { signed_size_type bytes = ::read(d, data, size); get_last_error(ec, bytes < 0); if (bytes == 0) { ec = boost::asio::error::eof; return true; } if (bytes > 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } std::size_t sync_write(int d, state_type state, const buf* bufs, std::size_t count, bool all_empty, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return 0; } if (all_empty) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = ::writev(d, bufs, static_cast<int>(count)); get_last_error(ec, bytes < 0); if (bytes > 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (descriptor_ops::poll_write(d, 0, ec) < 0) return 0; } } std::size_t sync_write1(int d, state_type state, const void* data, std::size_t size, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return 0; } if (size == 0) { boost::asio::error::clear(ec); return 0; } for (;;) { signed_size_type bytes = ::write(d, data, size); get_last_error(ec, bytes < 0); if (bytes > 0) return bytes; if ((state & user_set_non_blocking) || (ec != boost::asio::error::would_block && ec != boost::asio::error::try_again)) return 0; if (descriptor_ops::poll_write(d, 0, ec) < 0) return 0; } } bool non_blocking_write(int d, const buf* bufs, std::size_t count, boost::system::error_code& ec, std::size_t& bytes_transferred) { for (;;) { signed_size_type bytes = ::writev(d, bufs, static_cast<int>(count)); get_last_error(ec, bytes < 0); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } bool non_blocking_write1(int d, const void* data, std::size_t size, boost::system::error_code& ec, std::size_t& bytes_transferred) { for (;;) { signed_size_type bytes = ::write(d, data, size); get_last_error(ec, bytes < 0); if (bytes >= 0) { bytes_transferred = bytes; return true; } if (ec == boost::asio::error::interrupted) continue; if (ec == boost::asio::error::would_block || ec == boost::asio::error::try_again) return false; bytes_transferred = 0; return true; } } # 833 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 3 4 int ioctl(int d, state_type& state, long cmd, ioctl_arg_type* arg, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return -1; } int result = ::ioctl(d, cmd, arg); get_last_error(ec, result < 0); if (result >= 0) { if (cmd == static_cast<long>(0x5421)) { if (*arg) { state |= user_set_non_blocking; } else { state &= ~(user_set_non_blocking | internal_non_blocking); } } } return result; } int fcntl(int d, int cmd, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return -1; } int result = ::fcntl(d, cmd); get_last_error(ec, result < 0); return result; } int fcntl(int d, int cmd, long arg, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return -1; } int result = ::fcntl(d, cmd, arg); get_last_error(ec, result < 0); return result; } int poll_read(int d, state_type state, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return -1; } pollfd fds; fds.fd = d; fds.events = 0x001; fds.revents = 0; int timeout = (state & user_set_non_blocking) ? 0 : -1; int result = ::poll(&fds, 1, timeout); get_last_error(ec, result < 0); if (result == 0) if (state & user_set_non_blocking) ec = boost::asio::error::would_block; return result; } int poll_write(int d, state_type state, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return -1; } pollfd fds; fds.fd = d; fds.events = 0x004; fds.revents = 0; int timeout = (state & user_set_non_blocking) ? 0 : -1; int result = ::poll(&fds, 1, timeout); get_last_error(ec, result < 0); if (result == 0) if (state & user_set_non_blocking) ec = boost::asio::error::would_block; return result; } int poll_error(int d, state_type state, boost::system::error_code& ec) { if (d == -1) { ec = boost::asio::error::bad_descriptor; return -1; } pollfd fds; fds.fd = d; fds.events = 0x002 | 0x008 | 0x010; fds.revents = 0; int timeout = (state & user_set_non_blocking) ? 0 : -1; int result = ::poll(&fds, 1, timeout); get_last_error(ec, result < 0); if (result == 0) if (state & user_set_non_blocking) ec = boost::asio::error::would_block; return result; } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 967 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/descriptor_ops.ipp" 2 3 4 # 175 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_ops.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_read_op.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_read_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 2 3 4 namespace boost { namespace asio { # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 3 4 template < ::boost::asio::completion_token_for<void()> NullaryToken> auto dispatch( NullaryToken&& token) { return async_initiate<NullaryToken, void()>( detail::initiate_dispatch(), token); } # 145 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 3 4 template <typename Executor, ::boost::asio::completion_token_for<void()> NullaryToken = typename ::boost::asio::default_completion_token<Executor>::type> auto dispatch( const Executor& ex, NullaryToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< execution::is_executor<Executor>::value || is_executor<Executor>::value >::type = 0) { return async_initiate<NullaryToken, void()>( detail::initiate_dispatch_with_executor<Executor>(ex), token); } # 177 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 3 4 template <typename ExecutionContext, ::boost::asio::completion_token_for<void()> NullaryToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > auto dispatch( ExecutionContext& ctx, NullaryToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint<is_convertible< ExecutionContext&, execution_context&>::value>::type = 0) { return async_initiate<NullaryToken, void()>( detail::initiate_dispatch_with_executor< typename ExecutionContext::executor_type>( ctx.get_executor()), token); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/dispatch.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_read_op.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_read_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename MutableBufferSequence> class descriptor_read_op_base : public reactor_op { public: descriptor_read_op_base(const boost::system::error_code& success_ec, int descriptor, const MutableBufferSequence& buffers, func_type complete_func) : reactor_op(success_ec, &descriptor_read_op_base::do_perform, complete_func), descriptor_(descriptor), buffers_(buffers) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; descriptor_read_op_base* o(static_cast<descriptor_read_op_base*>(base)); typedef buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs_type; status result; if (bufs_type::is_single_buffer) { result = descriptor_ops::non_blocking_read1(o->descriptor_, bufs_type::first(o->buffers_).data(), bufs_type::first(o->buffers_).size(), o->ec_, o->bytes_transferred_) ? done : not_done; } else { bufs_type bufs(o->buffers_); result = descriptor_ops::non_blocking_read(o->descriptor_, bufs.buffers(), bufs.count(), o->ec_, o->bytes_transferred_) ? done : not_done; } (void)0 ; return result; } private: int descriptor_; MutableBufferSequence buffers_; }; template <typename MutableBufferSequence, typename Handler, typename IoExecutor> class descriptor_read_op : public descriptor_read_op_base<MutableBufferSequence> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; descriptor_read_op* v; descriptor_read_op* p; ~ptr() { reset(); } static descriptor_read_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<descriptor_read_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~descriptor_read_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<descriptor_read_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<descriptor_read_op*>(v), 1); v = 0; } } }; descriptor_read_op(const boost::system::error_code& success_ec, int descriptor, const MutableBufferSequence& buffers, Handler& handler, const IoExecutor& io_ex) : descriptor_read_op_base<MutableBufferSequence>(success_ec, descriptor, buffers, &descriptor_read_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; descriptor_read_op* o(static_cast<descriptor_read_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; descriptor_read_op* o(static_cast<descriptor_read_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 187 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_read_op.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_write_op.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_write_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_write_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename ConstBufferSequence> class descriptor_write_op_base : public reactor_op { public: descriptor_write_op_base(const boost::system::error_code& success_ec, int descriptor, const ConstBufferSequence& buffers, func_type complete_func) : reactor_op(success_ec, &descriptor_write_op_base::do_perform, complete_func), descriptor_(descriptor), buffers_(buffers) { } static status do_perform(reactor_op* base) { if (base != 0) {} else { __builtin_unreachable(); }; descriptor_write_op_base* o(static_cast<descriptor_write_op_base*>(base)); typedef buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence> bufs_type; status result; if (bufs_type::is_single_buffer) { result = descriptor_ops::non_blocking_write1(o->descriptor_, bufs_type::first(o->buffers_).data(), bufs_type::first(o->buffers_).size(), o->ec_, o->bytes_transferred_) ? done : not_done; } else { bufs_type bufs(o->buffers_); result = descriptor_ops::non_blocking_write(o->descriptor_, bufs.buffers(), bufs.count(), o->ec_, o->bytes_transferred_) ? done : not_done; } (void)0 ; return result; } private: int descriptor_; ConstBufferSequence buffers_; }; template <typename ConstBufferSequence, typename Handler, typename IoExecutor> class descriptor_write_op : public descriptor_write_op_base<ConstBufferSequence> { public: typedef Handler handler_type; typedef IoExecutor io_executor_type; struct ptr { Handler* h; descriptor_write_op* v; descriptor_write_op* p; ~ptr() { reset(); } static descriptor_write_op* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<descriptor_write_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~descriptor_write_op(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<descriptor_write_op> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<descriptor_write_op*>(v), 1); v = 0; } } }; descriptor_write_op(const boost::system::error_code& success_ec, int descriptor, const ConstBufferSequence& buffers, Handler& handler, const IoExecutor& io_ex) : descriptor_write_op_base<ConstBufferSequence>(success_ec, descriptor, buffers, &descriptor_write_op::do_complete), handler_(static_cast<Handler&&>(handler)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; descriptor_write_op* o(static_cast<descriptor_write_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } static void do_immediate(operation* base, bool, const void* io_ex) { if (base != 0) {} else { __builtin_unreachable(); }; descriptor_write_op* o(static_cast<descriptor_write_op*>(base)); ptr p = { boost::asio::detail::addressof(o->handler_), o, o }; (void)0; immediate_handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( o->work_)); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (o->ec_).assign((o->ec_), &loc); } while (false); detail::binder2<Handler, boost::system::error_code, std::size_t> handler(o->handler_, o->ec_, o->bytes_transferred_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); (void)0; w.complete(handler, handler.handler_, io_ex); (void)0; } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/descriptor_write_op.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor_base.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor_base.hpp" 2 3 4 namespace boost { namespace asio { namespace posix { class descriptor_base { public: enum wait_type { wait_read, wait_write, wait_error }; # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor_base.hpp" 3 4 typedef boost::asio::detail::io_control::bytes_readable bytes_readable; protected: ~descriptor_base() { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor_base.hpp" 2 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class reactive_descriptor_service : public execution_context_service_base<reactive_descriptor_service> { public: typedef int native_handle_type; class implementation_type : private boost::asio::detail::noncopyable { public: implementation_type() : descriptor_(-1), state_(0) { } private: friend class reactive_descriptor_service; int descriptor_; descriptor_ops::state_type state_; reactor::per_descriptor_data reactor_data_; }; inline reactive_descriptor_service(execution_context& context); inline void shutdown(); inline void construct(implementation_type& impl); inline void move_construct(implementation_type& impl, implementation_type& other_impl) noexcept; inline void move_assign(implementation_type& impl, reactive_descriptor_service& other_service, implementation_type& other_impl); inline void destroy(implementation_type& impl); inline boost::system::error_code assign(implementation_type& impl, const native_handle_type& native_descriptor, boost::system::error_code& ec); bool is_open(const implementation_type& impl) const { return impl.descriptor_ != -1; } inline boost::system::error_code close(implementation_type& impl, boost::system::error_code& ec); native_handle_type native_handle(const implementation_type& impl) const { return impl.descriptor_; } inline native_handle_type release(implementation_type& impl); native_handle_type release(implementation_type& impl, boost::system::error_code& ec) { ec = success_ec_; return release(impl); } inline boost::system::error_code cancel(implementation_type& impl, boost::system::error_code& ec); template <typename IO_Control_Command> boost::system::error_code io_control(implementation_type& impl, IO_Control_Command& command, boost::system::error_code& ec) { descriptor_ops::ioctl(impl.descriptor_, impl.state_, command.name(), static_cast<ioctl_arg_type*>(command.data()), ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } bool non_blocking(const implementation_type& impl) const { return (impl.state_ & descriptor_ops::user_set_non_blocking) != 0; } boost::system::error_code non_blocking(implementation_type& impl, bool mode, boost::system::error_code& ec) { descriptor_ops::set_user_non_blocking( impl.descriptor_, impl.state_, mode, ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } bool native_non_blocking(const implementation_type& impl) const { return (impl.state_ & descriptor_ops::internal_non_blocking) != 0; } boost::system::error_code native_non_blocking(implementation_type& impl, bool mode, boost::system::error_code& ec) { descriptor_ops::set_internal_non_blocking( impl.descriptor_, impl.state_, mode, ec); return ec; } boost::system::error_code wait(implementation_type& impl, posix::descriptor_base::wait_type w, boost::system::error_code& ec) { switch (w) { case posix::descriptor_base::wait_read: descriptor_ops::poll_read(impl.descriptor_, impl.state_, ec); break; case posix::descriptor_base::wait_write: descriptor_ops::poll_write(impl.descriptor_, impl.state_, ec); break; case posix::descriptor_base::wait_error: descriptor_ops::poll_error(impl.descriptor_, impl.state_, ec); break; default: ec = boost::asio::error::invalid_argument; break; } do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename Handler, typename IoExecutor> void async_wait(implementation_type& impl, posix::descriptor_base::wait_type w, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_wait_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); (void)0 ; int op_type; switch (w) { case posix::descriptor_base::wait_read: op_type = reactor::read_op; break; case posix::descriptor_base::wait_write: op_type = reactor::write_op; break; case posix::descriptor_base::wait_error: op_type = reactor::except_op; break; default: p.p->ec_ = boost::asio::error::invalid_argument; start_op(impl, reactor::read_op, p.p, is_continuation, false, true, &io_ex, 0); p.v = p.p = 0; return; } if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.descriptor_, op_type); } start_op(impl, op_type, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename ConstBufferSequence> size_t write_some(implementation_type& impl, const ConstBufferSequence& buffers, boost::system::error_code& ec) { typedef buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence> bufs_type; size_t n; if (bufs_type::is_single_buffer) { n = descriptor_ops::sync_write1(impl.descriptor_, impl.state_, bufs_type::first(buffers).data(), bufs_type::first(buffers).size(), ec); } else { bufs_type bufs(buffers); n = descriptor_ops::sync_write(impl.descriptor_, impl.state_, bufs.buffers(), bufs.count(), bufs.all_empty(), ec); } do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return n; } size_t write_some(implementation_type& impl, const null_buffers&, boost::system::error_code& ec) { descriptor_ops::poll_write(impl.descriptor_, impl.state_, ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return 0; } template <typename ConstBufferSequence, typename Handler, typename IoExecutor> void async_write_some(implementation_type& impl, const ConstBufferSequence& buffers, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef descriptor_write_op<ConstBufferSequence, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.descriptor_, buffers, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.descriptor_, reactor::write_op); } (void)0 ; start_op(impl, reactor::write_op, p.p, is_continuation, true, buffer_sequence_adapter<boost::asio::const_buffer, ConstBufferSequence>::all_empty(buffers), &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_write_some(implementation_type& impl, const null_buffers&, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.descriptor_, reactor::write_op); } (void)0 ; start_op(impl, reactor::write_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } template <typename MutableBufferSequence> size_t read_some(implementation_type& impl, const MutableBufferSequence& buffers, boost::system::error_code& ec) { typedef buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence> bufs_type; size_t n; if (bufs_type::is_single_buffer) { n = descriptor_ops::sync_read1(impl.descriptor_, impl.state_, bufs_type::first(buffers).data(), bufs_type::first(buffers).size(), ec); } else { bufs_type bufs(buffers); n = descriptor_ops::sync_read(impl.descriptor_, impl.state_, bufs.buffers(), bufs.count(), bufs.all_empty(), ec); } do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return n; } size_t read_some(implementation_type& impl, const null_buffers&, boost::system::error_code& ec) { descriptor_ops::poll_read(impl.descriptor_, impl.state_, ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return 0; } template <typename MutableBufferSequence, typename Handler, typename IoExecutor> void async_read_some(implementation_type& impl, const MutableBufferSequence& buffers, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef descriptor_read_op<MutableBufferSequence, Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, impl.descriptor_, buffers, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.descriptor_, reactor::read_op); } (void)0 ; start_op(impl, reactor::read_op, p.p, is_continuation, true, buffer_sequence_adapter<boost::asio::mutable_buffer, MutableBufferSequence>::all_empty(buffers), &io_ex, 0); p.v = p.p = 0; } template <typename Handler, typename IoExecutor> void async_read_some(implementation_type& impl, const null_buffers&, Handler& handler, const IoExecutor& io_ex) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef reactive_null_buffers_op<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(success_ec_, handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<reactor_op_cancellation>( &reactor_, &impl.reactor_data_, impl.descriptor_, reactor::read_op); } (void)0 ; start_op(impl, reactor::read_op, p.p, is_continuation, false, false, &io_ex, 0); p.v = p.p = 0; } private: inline void do_start_op(implementation_type& impl, int op_type, reactor_op* op, bool is_continuation, bool is_non_blocking, bool noop, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg); template <typename Op> void start_op(implementation_type& impl, int op_type, Op* op, bool is_continuation, bool is_non_blocking, bool noop, const void* io_ex, ...) { return do_start_op(impl, op_type, op, is_continuation, is_non_blocking, noop, &Op::do_immediate, io_ex); } template <typename Op> void start_op(implementation_type& impl, int op_type, Op* op, bool is_continuation, bool is_non_blocking, bool noop, const void*, typename enable_if< is_same< typename associated_immediate_executor< typename Op::handler_type, typename Op::io_executor_type >::asio_associated_immediate_executor_is_unspecialised, void >::value >::type*) { return do_start_op(impl, op_type, op, is_continuation, is_non_blocking, noop, &reactor::call_post_immediate_completion, &reactor_); } class reactor_op_cancellation { public: reactor_op_cancellation(reactor* r, reactor::per_descriptor_data* p, int d, int o) : reactor_(r), reactor_data_(p), descriptor_(d), op_type_(o) { } void operator()(cancellation_type_t type) { if (!!(type & (cancellation_type::terminal | cancellation_type::partial | cancellation_type::total))) { reactor_->cancel_ops_by_key(descriptor_, *reactor_data_, op_type_, this); } } private: reactor* reactor_; reactor::per_descriptor_data* reactor_data_; int descriptor_; int op_type_; }; reactor& reactor_; const boost::system::error_code success_ec_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 558 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_descriptor_service.ipp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_descriptor_service.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_descriptor_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_descriptor_service.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { reactive_descriptor_service::reactive_descriptor_service( execution_context& context) : execution_context_service_base<reactive_descriptor_service>(context), reactor_(boost::asio::use_service<reactor>(context)) { reactor_.init_task(); } void reactive_descriptor_service::shutdown() { } void reactive_descriptor_service::construct( reactive_descriptor_service::implementation_type& impl) { impl.descriptor_ = -1; impl.state_ = 0; impl.reactor_data_ = reactor::per_descriptor_data(); } void reactive_descriptor_service::move_construct( reactive_descriptor_service::implementation_type& impl, reactive_descriptor_service::implementation_type& other_impl) noexcept { impl.descriptor_ = other_impl.descriptor_; other_impl.descriptor_ = -1; impl.state_ = other_impl.state_; other_impl.state_ = 0; reactor_.move_descriptor(impl.descriptor_, impl.reactor_data_, other_impl.reactor_data_); } void reactive_descriptor_service::move_assign( reactive_descriptor_service::implementation_type& impl, reactive_descriptor_service& other_service, reactive_descriptor_service::implementation_type& other_impl) { destroy(impl); impl.descriptor_ = other_impl.descriptor_; other_impl.descriptor_ = -1; impl.state_ = other_impl.state_; other_impl.state_ = 0; other_service.reactor_.move_descriptor(impl.descriptor_, impl.reactor_data_, other_impl.reactor_data_); } void reactive_descriptor_service::destroy( reactive_descriptor_service::implementation_type& impl) { if (is_open(impl)) { (void)0 ; reactor_.deregister_descriptor(impl.descriptor_, impl.reactor_data_, (impl.state_ & descriptor_ops::possible_dup) == 0); boost::system::error_code ignored_ec; descriptor_ops::close(impl.descriptor_, impl.state_, ignored_ec); reactor_.cleanup_descriptor_data(impl.reactor_data_); } } boost::system::error_code reactive_descriptor_service::assign( reactive_descriptor_service::implementation_type& impl, const native_handle_type& native_descriptor, boost::system::error_code& ec) { if (is_open(impl)) { ec = boost::asio::error::already_open; do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } if (int err = reactor_.register_descriptor( native_descriptor, impl.reactor_data_)) { ec = boost::system::error_code(err, boost::asio::error::get_system_category()); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } impl.descriptor_ = native_descriptor; impl.state_ = descriptor_ops::possible_dup; ec = boost::system::error_code(); return ec; } boost::system::error_code reactive_descriptor_service::close( reactive_descriptor_service::implementation_type& impl, boost::system::error_code& ec) { if (is_open(impl)) { (void)0 ; reactor_.deregister_descriptor(impl.descriptor_, impl.reactor_data_, (impl.state_ & descriptor_ops::possible_dup) == 0); descriptor_ops::close(impl.descriptor_, impl.state_, ec); reactor_.cleanup_descriptor_data(impl.reactor_data_); } else { ec = boost::system::error_code(); } construct(impl); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } reactive_descriptor_service::native_handle_type reactive_descriptor_service::release( reactive_descriptor_service::implementation_type& impl) { native_handle_type descriptor = impl.descriptor_; if (is_open(impl)) { (void)0 ; reactor_.deregister_descriptor(impl.descriptor_, impl.reactor_data_, false); reactor_.cleanup_descriptor_data(impl.reactor_data_); construct(impl); } return descriptor; } boost::system::error_code reactive_descriptor_service::cancel( reactive_descriptor_service::implementation_type& impl, boost::system::error_code& ec) { if (!is_open(impl)) { ec = boost::asio::error::bad_descriptor; do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } (void)0 ; reactor_.cancel_ops(impl.descriptor_, impl.reactor_data_); ec = boost::system::error_code(); return ec; } void reactive_descriptor_service::do_start_op(implementation_type& impl, int op_type, reactor_op* op, bool is_continuation, bool is_non_blocking, bool noop, void (*on_immediate)(operation* op, bool, const void*), const void* immediate_arg) { if (!noop) { if ((impl.state_ & descriptor_ops::non_blocking) || descriptor_ops::set_internal_non_blocking( impl.descriptor_, impl.state_, true, op->ec_)) { reactor_.start_op(op_type, impl.descriptor_, impl.reactor_data_, op, is_continuation, is_non_blocking, on_immediate, immediate_arg); return; } } on_immediate(op, is_continuation, immediate_arg); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 226 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/reactive_descriptor_service.ipp" 2 3 4 # 561 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/reactive_descriptor_service.hpp" 2 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 2 3 4 namespace boost { namespace asio { # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename Executor = any_io_executor> class basic_readable_pipe { private: class initiate_async_read_some; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_readable_pipe<Executor1> other; }; # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 typedef detail::reactive_descriptor_service::native_handle_type native_handle_type; typedef basic_readable_pipe lowest_layer_type; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 explicit basic_readable_pipe(const executor_type& ex) : impl_(0, ex) { } # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename ExecutionContext> explicit basic_readable_pipe(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { } # 137 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 basic_readable_pipe(const executor_type& ex, const native_handle_type& native_pipe) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); boost::asio::detail::throw_error(ec, "assign"); } # 160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename ExecutionContext> basic_readable_pipe(ExecutionContext& context, const native_handle_type& native_pipe, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); boost::asio::detail::throw_error(ec, "assign"); } # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 basic_readable_pipe(basic_readable_pipe&& other) : impl_(std::move(other.impl_)) { } # 202 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 basic_readable_pipe& operator=(basic_readable_pipe&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Executor1> friend class basic_readable_pipe; # 223 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename Executor1> basic_readable_pipe(basic_readable_pipe<Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(std::move(other.impl_)) { } # 244 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_readable_pipe& >::type operator=(basic_readable_pipe<Executor1>&& other) { basic_readable_pipe tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } # 262 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 ~basic_readable_pipe() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 281 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 lowest_layer_type& lowest_layer() { return *this; } # 295 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 const lowest_layer_type& lowest_layer() const { return *this; } # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 void assign(const native_handle_type& native_pipe) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); boost::asio::detail::throw_error(ec, "assign"); } # 323 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 boost::system::error_code assign(const native_handle_type& native_pipe, boost::system::error_code& ec) { impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); return ec; } bool is_open() const { return impl_.get_service().is_open(impl_.get_implementation()); } # 344 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 void close() { boost::system::error_code ec; impl_.get_service().close(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "close"); } # 359 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 boost::system::error_code close(boost::system::error_code& ec) { impl_.get_service().close(impl_.get_implementation(), ec); return ec; } # 384 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 native_handle_type release() { boost::system::error_code ec; native_handle_type s = impl_.get_service().release( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "release"); return s; } # 412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 native_handle_type release(boost::system::error_code& ec) { return impl_.get_service().release(impl_.get_implementation(), ec); } native_handle_type native_handle() { return impl_.get_service().native_handle(impl_.get_implementation()); } # 436 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 451 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 485 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = impl_.get_service().read_some( impl_.get_implementation(), buffers, ec); boost::asio::detail::throw_error(ec, "read_some"); return s; } # 512 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return impl_.get_service().read_some( impl_.get_implementation(), buffers, ec); } # 563 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_read_some(this), token, buffers); } private: basic_readable_pipe(const basic_readable_pipe&) = delete; basic_readable_pipe& operator=(const basic_readable_pipe&) = delete; class initiate_async_read_some { public: typedef Executor executor_type; explicit initiate_async_read_some(basic_readable_pipe* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_read_some( self_->impl_.get_implementation(), buffers, handler2.value, self_->impl_.get_executor()); } private: basic_readable_pipe* self_; }; detail::io_object_impl<detail::reactive_descriptor_service, Executor> impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 633 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_readable_pipe.hpp" 2 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 2 3 4 namespace boost { namespace asio { template <typename Protocol, typename Executor = any_io_executor> class basic_seq_packet_socket; # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename Protocol, typename Executor> class basic_seq_packet_socket : public basic_socket<Protocol, Executor> { private: class initiate_async_send; class initiate_async_receive_with_flags; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_seq_packet_socket<Protocol, Executor1> other; }; typedef typename basic_socket<Protocol, Executor>::native_handle_type native_handle_type; typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 explicit basic_seq_packet_socket(const executor_type& ex) : basic_socket<Protocol, Executor>(ex) { } # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ExecutionContext> explicit basic_seq_packet_socket(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context) { } # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 basic_seq_packet_socket(const executor_type& ex, const protocol_type& protocol) : basic_socket<Protocol, Executor>(ex, protocol) { } # 155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ExecutionContext> basic_seq_packet_socket(ExecutionContext& context, const protocol_type& protocol, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : basic_socket<Protocol, Executor>(context, protocol) { } # 181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 basic_seq_packet_socket(const executor_type& ex, const endpoint_type& endpoint) : basic_socket<Protocol, Executor>(ex, endpoint) { } # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ExecutionContext> basic_seq_packet_socket(ExecutionContext& context, const endpoint_type& endpoint, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, endpoint) { } # 227 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 basic_seq_packet_socket(const executor_type& ex, const protocol_type& protocol, const native_handle_type& native_socket) : basic_socket<Protocol, Executor>(ex, protocol, native_socket) { } # 248 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ExecutionContext> basic_seq_packet_socket(ExecutionContext& context, const protocol_type& protocol, const native_handle_type& native_socket, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, protocol, native_socket) { } # 271 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 basic_seq_packet_socket(basic_seq_packet_socket&& other) noexcept : basic_socket<Protocol, Executor>(std::move(other)) { } # 288 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 basic_seq_packet_socket& operator=(basic_seq_packet_socket&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } # 307 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> basic_seq_packet_socket(basic_seq_packet_socket<Protocol1, Executor1>&& other, typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value >::type = 0) : basic_socket<Protocol, Executor>(std::move(other)) { } # 330 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value, basic_seq_packet_socket& >::type operator=(basic_seq_packet_socket<Protocol1, Executor1>&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } ~basic_seq_packet_socket() { } # 374 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 403 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); } # 460 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, socket_base::message_flags flags, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, flags); } # 509 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags& out_flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive_with_flags( this->impl_.get_implementation(), buffers, 0, out_flags, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 555 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive_with_flags( this->impl_.get_implementation(), buffers, in_flags, out_flags, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 590 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, boost::system::error_code& ec) { return this->impl_.get_service().receive_with_flags( this->impl_.get_implementation(), buffers, in_flags, out_flags, ec); } # 653 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, socket_base::message_flags& out_flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive_with_flags(this), token, buffers, socket_base::message_flags(0), &out_flags); } # 733 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags& out_flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive_with_flags(this), token, buffers, in_flags, &out_flags); } private: basic_seq_packet_socket(const basic_seq_packet_socket&) = delete; basic_seq_packet_socket& operator=( const basic_seq_packet_socket&) = delete; class initiate_async_send { public: typedef Executor executor_type; explicit initiate_async_send(basic_seq_packet_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_send( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_seq_packet_socket* self_; }; class initiate_async_receive_with_flags { public: typedef Executor executor_type; explicit initiate_async_receive_with_flags(basic_seq_packet_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, socket_base::message_flags in_flags, socket_base::message_flags* out_flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_receive_with_flags( self_->impl_.get_implementation(), buffers, in_flags, *out_flags, handler2.value, self_->impl_.get_executor()); } private: basic_seq_packet_socket* self_; }; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 836 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_seq_packet_socket.hpp" 2 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 3 4 # 1 "/usr/include/termios.h" 1 3 4 # 35 "/usr/include/termios.h" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/bits/termios.h" 1 3 4 # 23 "/usr/include/x86_64-linux-gnu/bits/termios.h" 3 4 typedef unsigned char cc_t; typedef unsigned int speed_t; typedef unsigned int tcflag_t; # 1 "/usr/include/x86_64-linux-gnu/bits/termios-struct.h" 1 3 4 # 24 "/usr/include/x86_64-linux-gnu/bits/termios-struct.h" 3 4 struct termios { tcflag_t c_iflag; tcflag_t c_oflag; tcflag_t c_cflag; tcflag_t c_lflag; cc_t c_line; cc_t c_cc[32]; speed_t c_ispeed; speed_t c_ospeed; }; # 28 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-c_cc.h" 1 3 4 # 29 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-c_iflag.h" 1 3 4 # 30 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-c_oflag.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 53 "/usr/include/x86_64-linux-gnu/bits/termios.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-baud.h" 1 3 4 # 54 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-c_cflag.h" 1 3 4 # 56 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-c_lflag.h" 1 3 4 # 57 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 74 "/usr/include/x86_64-linux-gnu/bits/termios.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-tcflow.h" 1 3 4 # 75 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/termios-misc.h" 1 3 4 # 77 "/usr/include/x86_64-linux-gnu/bits/termios.h" 2 3 4 # 40 "/usr/include/termios.h" 2 3 4 # 48 "/usr/include/termios.h" 3 4 extern speed_t cfgetospeed (const struct termios *__termios_p) noexcept (true); extern speed_t cfgetispeed (const struct termios *__termios_p) noexcept (true); extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) noexcept (true); extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) noexcept (true); extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) noexcept (true); extern int tcgetattr (int __fd, struct termios *__termios_p) noexcept (true); extern int tcsetattr (int __fd, int __optional_actions, const struct termios *__termios_p) noexcept (true); extern void cfmakeraw (struct termios *__termios_p) noexcept (true); extern int tcsendbreak (int __fd, int __duration) noexcept (true); extern int tcdrain (int __fd); extern int tcflush (int __fd, int __queue_selector) noexcept (true); extern int tcflow (int __fd, int __action) noexcept (true); extern __pid_t tcgetsid (int __fd) noexcept (true); # 1 "/usr/include/x86_64-linux-gnu/sys/ttydefaults.h" 1 3 4 # 105 "/usr/include/termios.h" 2 3 4 } # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 2 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) # 104 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 2 3 4 namespace boost { namespace asio { class serial_port_base { public: class baud_rate { public: explicit baud_rate(unsigned int rate = 0); unsigned int value() const; inline boost::system::error_code store( termios& storage, boost::system::error_code& ec) const; inline boost::system::error_code load( const termios& storage, boost::system::error_code& ec); private: unsigned int value_; }; class flow_control { public: enum type { none, software, hardware }; inline explicit flow_control(type t = none); type value() const; inline boost::system::error_code store( termios& storage, boost::system::error_code& ec) const; inline boost::system::error_code load( const termios& storage, boost::system::error_code& ec); private: type value_; }; class parity { public: enum type { none, odd, even }; inline explicit parity(type t = none); type value() const; inline boost::system::error_code store( termios& storage, boost::system::error_code& ec) const; inline boost::system::error_code load( const termios& storage, boost::system::error_code& ec); private: type value_; }; class stop_bits { public: enum type { one, onepointfive, two }; inline explicit stop_bits(type t = one); type value() const; inline boost::system::error_code store( termios& storage, boost::system::error_code& ec) const; inline boost::system::error_code load( const termios& storage, boost::system::error_code& ec); private: type value_; }; class character_size { public: inline explicit character_size(unsigned int t = 8); unsigned int value() const; inline boost::system::error_code store( termios& storage, boost::system::error_code& ec) const; inline boost::system::error_code load( const termios& storage, boost::system::error_code& ec); private: unsigned int value_; }; protected: ~serial_port_base() { } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.hpp" 2 3 4 namespace boost { namespace asio { inline serial_port_base::baud_rate::baud_rate(unsigned int rate) : value_(rate) { } inline unsigned int serial_port_base::baud_rate::value() const { return value_; } inline serial_port_base::flow_control::type serial_port_base::flow_control::value() const { return value_; } inline serial_port_base::parity::type serial_port_base::parity::value() const { return value_; } inline serial_port_base::stop_bits::type serial_port_base::stop_bits::value() const { return value_; } inline unsigned int serial_port_base::character_size::value() const { return value_; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.hpp" 2 3 4 # 162 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 2 3 4 namespace boost { namespace asio { boost::system::error_code serial_port_base::baud_rate::store( termios& storage, boost::system::error_code& ec) const { speed_t baud; switch (value_) { case 0: baud = 0000000; break; case 50: baud = 0000001; break; case 75: baud = 0000002; break; case 110: baud = 0000003; break; case 134: baud = 0000004; break; case 150: baud = 0000005; break; case 200: baud = 0000006; break; case 300: baud = 0000007; break; case 600: baud = 0000010; break; case 1200: baud = 0000011; break; case 1800: baud = 0000012; break; case 2400: baud = 0000013; break; case 4800: baud = 0000014; break; case 9600: baud = 0000015; break; case 19200: baud = 0000016; break; case 38400: baud = 0000017; break; # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 case 57600: baud = 0010001; break; case 115200: baud = 0010002; break; case 230400: baud = 0010003; break; case 460800: baud = 0010004; break; case 500000: baud = 0010005; break; case 576000: baud = 0010006; break; case 921600: baud = 0010007; break; case 1000000: baud = 0010010; break; case 1152000: baud = 0010011; break; case 2000000: baud = 0010013; break; case 3000000: baud = 0010015; break; case 3500000: baud = 0010016; break; case 4000000: baud = 0010017; break; default: ec = boost::asio::error::invalid_argument; return ec; } ::cfsetspeed(&storage, baud); ec = boost::system::error_code(); return ec; } boost::system::error_code serial_port_base::baud_rate::load( const termios& storage, boost::system::error_code& ec) { speed_t baud = ::cfgetospeed(&storage); switch (baud) { case 0000000: value_ = 0; break; case 0000001: value_ = 50; break; case 0000002: value_ = 75; break; case 0000003: value_ = 110; break; case 0000004: value_ = 134; break; case 0000005: value_ = 150; break; case 0000006: value_ = 200; break; case 0000007: value_ = 300; break; case 0000010: value_ = 600; break; case 0000011: value_ = 1200; break; case 0000012: value_ = 1800; break; case 0000013: value_ = 2400; break; case 0000014: value_ = 4800; break; case 0000015: value_ = 9600; break; case 0000016: value_ = 19200; break; case 0000017: value_ = 38400; break; # 162 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 case 0010001: value_ = 57600; break; case 0010002: value_ = 115200; break; case 0010003: value_ = 230400; break; case 0010004: value_ = 460800; break; case 0010005: value_ = 500000; break; case 0010006: value_ = 576000; break; case 0010007: value_ = 921600; break; case 0010010: value_ = 1000000; break; case 0010011: value_ = 1152000; break; case 0010013: value_ = 2000000; break; case 0010015: value_ = 3000000; break; case 0010016: value_ = 3500000; break; case 0010017: value_ = 4000000; break; default: value_ = 0; ec = boost::asio::error::invalid_argument; return ec; } ec = boost::system::error_code(); return ec; } serial_port_base::flow_control::flow_control( serial_port_base::flow_control::type t) : value_(t) { if (t != none && t != software && t != hardware) { std::out_of_range ex("invalid flow_control value"); boost::asio::detail::throw_exception(ex); } } boost::system::error_code serial_port_base::flow_control::store( termios& storage, boost::system::error_code& ec) const { # 249 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 switch (value_) { case none: storage.c_iflag &= ~(0010000 | 0002000); storage.c_cflag &= ~020000000000; break; case software: storage.c_iflag |= 0010000 | 0002000; storage.c_cflag &= ~020000000000; break; case hardware: storage.c_iflag &= ~(0010000 | 0002000); storage.c_cflag |= 020000000000; break; # 280 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 default: break; } ec = boost::system::error_code(); return ec; } boost::system::error_code serial_port_base::flow_control::load( const termios& storage, boost::system::error_code& ec) { # 305 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 if (storage.c_iflag & (0010000 | 0002000)) { value_ = software; } else if (storage.c_cflag & 020000000000) { value_ = hardware; } else { value_ = none; } ec = boost::system::error_code(); return ec; } serial_port_base::parity::parity(serial_port_base::parity::type t) : value_(t) { if (t != none && t != odd && t != even) { std::out_of_range ex("invalid parity value"); boost::asio::detail::throw_exception(ex); } } boost::system::error_code serial_port_base::parity::store( termios& storage, boost::system::error_code& ec) const { # 361 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 switch (value_) { case none: storage.c_iflag |= 0000004; storage.c_cflag &= ~(0000400 | 0001000); break; case even: storage.c_iflag &= ~(0000004 | 0000010); storage.c_iflag |= 0000020; storage.c_cflag |= 0000400; storage.c_cflag &= ~0001000; break; case odd: storage.c_iflag &= ~(0000004 | 0000010); storage.c_iflag |= 0000020; storage.c_cflag |= (0000400 | 0001000); break; default: break; } ec = boost::system::error_code(); return ec; } boost::system::error_code serial_port_base::parity::load( const termios& storage, boost::system::error_code& ec) { # 403 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 if (storage.c_cflag & 0000400) { if (storage.c_cflag & 0001000) { value_ = odd; } else { value_ = even; } } else { value_ = none; } ec = boost::system::error_code(); return ec; } serial_port_base::stop_bits::stop_bits( serial_port_base::stop_bits::type t) : value_(t) { if (t != one && t != onepointfive && t != two) { std::out_of_range ex("invalid stop_bits value"); boost::asio::detail::throw_exception(ex); } } boost::system::error_code serial_port_base::stop_bits::store( termios& storage, boost::system::error_code& ec) const { # 453 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 switch (value_) { case one: storage.c_cflag &= ~0000100; break; case two: storage.c_cflag |= 0000100; break; default: ec = boost::asio::error::operation_not_supported; return ec; } ec = boost::system::error_code(); return ec; } boost::system::error_code serial_port_base::stop_bits::load( const termios& storage, boost::system::error_code& ec) { # 491 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 3 4 value_ = (storage.c_cflag & 0000100) ? two : one; ec = boost::system::error_code(); return ec; } serial_port_base::character_size::character_size(unsigned int t) : value_(t) { if (t < 5 || t > 8) { std::out_of_range ex("invalid character_size value"); boost::asio::detail::throw_exception(ex); } } boost::system::error_code serial_port_base::character_size::store( termios& storage, boost::system::error_code& ec) const { storage.c_cflag &= ~0000060; switch (value_) { case 5: storage.c_cflag |= 0000000; break; case 6: storage.c_cflag |= 0000020; break; case 7: storage.c_cflag |= 0000040; break; case 8: storage.c_cflag |= 0000060; break; default: break; } ec = boost::system::error_code(); return ec; } boost::system::error_code serial_port_base::character_size::load( const termios& storage, boost::system::error_code& ec) { if ((storage.c_cflag & 0000060) == 0000000) { value_ = 5; } else if ((storage.c_cflag & 0000060) == 0000020) { value_ = 6; } else if ((storage.c_cflag & 0000060) == 0000040) { value_ = 7; } else if ((storage.c_cflag & 0000060) == 0000060) { value_ = 8; } else { value_ = 8; } ec = boost::system::error_code(); return ec; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 551 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/serial_port_base.ipp" 2 3 4 # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port_base.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_serial_port_service.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_serial_port_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_serial_port_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class posix_serial_port_service : public execution_context_service_base<posix_serial_port_service> { public: typedef reactive_descriptor_service descriptor_service; typedef descriptor_service::native_handle_type native_handle_type; typedef descriptor_service::implementation_type implementation_type; inline posix_serial_port_service(execution_context& context); inline void shutdown(); void construct(implementation_type& impl) { descriptor_service_.construct(impl); } void move_construct(implementation_type& impl, implementation_type& other_impl) { descriptor_service_.move_construct(impl, other_impl); } void move_assign(implementation_type& impl, posix_serial_port_service& other_service, implementation_type& other_impl) { descriptor_service_.move_assign(impl, other_service.descriptor_service_, other_impl); } void destroy(implementation_type& impl) { descriptor_service_.destroy(impl); } inline boost::system::error_code open(implementation_type& impl, const std::string& device, boost::system::error_code& ec); boost::system::error_code assign(implementation_type& impl, const native_handle_type& native_descriptor, boost::system::error_code& ec) { return descriptor_service_.assign(impl, native_descriptor, ec); } bool is_open(const implementation_type& impl) const { return descriptor_service_.is_open(impl); } boost::system::error_code close(implementation_type& impl, boost::system::error_code& ec) { return descriptor_service_.close(impl, ec); } native_handle_type native_handle(implementation_type& impl) { return descriptor_service_.native_handle(impl); } boost::system::error_code cancel(implementation_type& impl, boost::system::error_code& ec) { return descriptor_service_.cancel(impl, ec); } template <typename SettableSerialPortOption> boost::system::error_code set_option(implementation_type& impl, const SettableSerialPortOption& option, boost::system::error_code& ec) { return do_set_option(impl, &posix_serial_port_service::store_option<SettableSerialPortOption>, &option, ec); } template <typename GettableSerialPortOption> boost::system::error_code get_option(const implementation_type& impl, GettableSerialPortOption& option, boost::system::error_code& ec) const { return do_get_option(impl, &posix_serial_port_service::load_option<GettableSerialPortOption>, &option, ec); } boost::system::error_code send_break(implementation_type& impl, boost::system::error_code& ec) { int result = ::tcsendbreak(descriptor_service_.native_handle(impl), 0); descriptor_ops::get_last_error(ec, result < 0); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } template <typename ConstBufferSequence> size_t write_some(implementation_type& impl, const ConstBufferSequence& buffers, boost::system::error_code& ec) { return descriptor_service_.write_some(impl, buffers, ec); } template <typename ConstBufferSequence, typename Handler, typename IoExecutor> void async_write_some(implementation_type& impl, const ConstBufferSequence& buffers, Handler& handler, const IoExecutor& io_ex) { descriptor_service_.async_write_some(impl, buffers, handler, io_ex); } template <typename MutableBufferSequence> size_t read_some(implementation_type& impl, const MutableBufferSequence& buffers, boost::system::error_code& ec) { return descriptor_service_.read_some(impl, buffers, ec); } template <typename MutableBufferSequence, typename Handler, typename IoExecutor> void async_read_some(implementation_type& impl, const MutableBufferSequence& buffers, Handler& handler, const IoExecutor& io_ex) { descriptor_service_.async_read_some(impl, buffers, handler, io_ex); } private: typedef boost::system::error_code (*store_function_type)( const void*, termios&, boost::system::error_code&); template <typename SettableSerialPortOption> static boost::system::error_code store_option(const void* option, termios& storage, boost::system::error_code& ec) { static_cast<const SettableSerialPortOption*>(option)->store(storage, ec); return ec; } inline boost::system::error_code do_set_option( implementation_type& impl, store_function_type store, const void* option, boost::system::error_code& ec); typedef boost::system::error_code (*load_function_type)( void*, const termios&, boost::system::error_code&); template <typename GettableSerialPortOption> static boost::system::error_code load_option(void* option, const termios& storage, boost::system::error_code& ec) { static_cast<GettableSerialPortOption*>(option)->load(storage, ec); return ec; } inline boost::system::error_code do_get_option( const implementation_type& impl, load_function_type load, void* option, boost::system::error_code& ec) const; descriptor_service descriptor_service_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 243 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_serial_port_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_serial_port_service.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { posix_serial_port_service::posix_serial_port_service( execution_context& context) : execution_context_service_base<posix_serial_port_service>(context), descriptor_service_(context) { } void posix_serial_port_service::shutdown() { descriptor_service_.shutdown(); } boost::system::error_code posix_serial_port_service::open( posix_serial_port_service::implementation_type& impl, const std::string& device, boost::system::error_code& ec) { if (is_open(impl)) { ec = boost::asio::error::already_open; do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } descriptor_ops::state_type state = 0; int fd = descriptor_ops::open(device.c_str(), 02 | 04000 | 0400, ec); if (fd < 0) { do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } int s = descriptor_ops::fcntl(fd, 3, ec); if (s >= 0) s = descriptor_ops::fcntl(fd, 4, s | 04000, ec); if (s < 0) { boost::system::error_code ignored_ec; descriptor_ops::close(fd, state, ignored_ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } termios ios; s = ::tcgetattr(fd, &ios); descriptor_ops::get_last_error(ec, s < 0); if (s >= 0) { ::cfmakeraw(&ios); # 92 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 3 4 ios.c_iflag |= 0000004; ios.c_cflag |= 0000200 | 0004000; s = ::tcsetattr(fd, 0, &ios); descriptor_ops::get_last_error(ec, s < 0); } if (s < 0) { boost::system::error_code ignored_ec; descriptor_ops::close(fd, state, ignored_ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } if (descriptor_service_.assign(impl, fd, ec)) { boost::system::error_code ignored_ec; descriptor_ops::close(fd, state, ignored_ec); } do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } boost::system::error_code posix_serial_port_service::do_set_option( posix_serial_port_service::implementation_type& impl, posix_serial_port_service::store_function_type store, const void* option, boost::system::error_code& ec) { termios ios; int s = ::tcgetattr(descriptor_service_.native_handle(impl), &ios); descriptor_ops::get_last_error(ec, s < 0); if (s < 0) { do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } if (store(option, ios, ec)) { do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } s = ::tcsetattr(descriptor_service_.native_handle(impl), 0, &ios); descriptor_ops::get_last_error(ec, s < 0); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } boost::system::error_code posix_serial_port_service::do_get_option( const posix_serial_port_service::implementation_type& impl, posix_serial_port_service::load_function_type load, void* option, boost::system::error_code& ec) const { termios ios; int s = ::tcgetattr(descriptor_service_.native_handle(impl), &ios); descriptor_ops::get_last_error(ec, s < 0); if (s < 0) { do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } load(option, ios, ec); do { static constexpr boost::source_location loc = ::boost::source_location(::std::source_location::current()); (ec).assign((ec), &loc); } while (false); return ec; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 166 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/posix_serial_port_service.ipp" 2 3 4 # 246 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_serial_port_service.hpp" 2 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 2 3 4 namespace boost { namespace asio { # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename Executor = any_io_executor> class basic_serial_port : public serial_port_base { private: class initiate_async_write_some; class initiate_async_read_some; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_serial_port<Executor1> other; }; # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 typedef detail::posix_serial_port_service::native_handle_type native_handle_type; typedef basic_serial_port lowest_layer_type; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 explicit basic_serial_port(const executor_type& ex) : impl_(0, ex) { } # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ExecutionContext> explicit basic_serial_port(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { } # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 basic_serial_port(const executor_type& ex, const char* device) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), device, ec); boost::asio::detail::throw_error(ec, "open"); } # 156 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ExecutionContext> basic_serial_port(ExecutionContext& context, const char* device, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), device, ec); boost::asio::detail::throw_error(ec, "open"); } # 180 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 basic_serial_port(const executor_type& ex, const std::string& device) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), device, ec); boost::asio::detail::throw_error(ec, "open"); } # 200 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ExecutionContext> basic_serial_port(ExecutionContext& context, const std::string& device, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), device, ec); boost::asio::detail::throw_error(ec, "open"); } # 225 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 basic_serial_port(const executor_type& ex, const native_handle_type& native_serial_port) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_serial_port, ec); boost::asio::detail::throw_error(ec, "assign"); } # 248 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ExecutionContext> basic_serial_port(ExecutionContext& context, const native_handle_type& native_serial_port, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_serial_port, ec); boost::asio::detail::throw_error(ec, "assign"); } # 274 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 basic_serial_port(basic_serial_port&& other) : impl_(std::move(other.impl_)) { } # 290 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 basic_serial_port& operator=(basic_serial_port&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Executor1> friend class basic_serial_port; # 312 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename Executor1> basic_serial_port(basic_serial_port<Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(std::move(other.impl_)) { } # 334 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_serial_port& >::type operator=(basic_serial_port<Executor1>&& other) { basic_serial_port tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } # 352 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 ~basic_serial_port() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 371 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 lowest_layer_type& lowest_layer() { return *this; } # 385 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 const lowest_layer_type& lowest_layer() const { return *this; } # 398 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 void open(const std::string& device) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), device, ec); boost::asio::detail::throw_error(ec, "open"); } # 414 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 boost::system::error_code open(const std::string& device, boost::system::error_code& ec) { impl_.get_service().open(impl_.get_implementation(), device, ec); return ec; } # 429 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 void assign(const native_handle_type& native_serial_port) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_serial_port, ec); boost::asio::detail::throw_error(ec, "assign"); } # 445 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 boost::system::error_code assign(const native_handle_type& native_serial_port, boost::system::error_code& ec) { impl_.get_service().assign(impl_.get_implementation(), native_serial_port, ec); return ec; } bool is_open() const { return impl_.get_service().is_open(impl_.get_implementation()); } # 467 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 void close() { boost::system::error_code ec; impl_.get_service().close(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "close"); } # 482 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 boost::system::error_code close(boost::system::error_code& ec) { impl_.get_service().close(impl_.get_implementation(), ec); return ec; } native_handle_type native_handle() { return impl_.get_service().native_handle(impl_.get_implementation()); } # 507 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 522 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 535 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 void send_break() { boost::system::error_code ec; impl_.get_service().send_break(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "send_break"); } # 549 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 boost::system::error_code send_break(boost::system::error_code& ec) { impl_.get_service().send_break(impl_.get_implementation(), ec); return ec; } # 570 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename SettableSerialPortOption> void set_option(const SettableSerialPortOption& option) { boost::system::error_code ec; impl_.get_service().set_option(impl_.get_implementation(), option, ec); boost::asio::detail::throw_error(ec, "set_option"); } # 593 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename SettableSerialPortOption> boost::system::error_code set_option(const SettableSerialPortOption& option, boost::system::error_code& ec) { impl_.get_service().set_option(impl_.get_implementation(), option, ec); return ec; } # 617 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename GettableSerialPortOption> void get_option(GettableSerialPortOption& option) const { boost::system::error_code ec; impl_.get_service().get_option(impl_.get_implementation(), option, ec); boost::asio::detail::throw_error(ec, "get_option"); } # 641 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename GettableSerialPortOption> boost::system::error_code get_option(GettableSerialPortOption& option, boost::system::error_code& ec) const { impl_.get_service().get_option(impl_.get_implementation(), option, ec); return ec; } # 676 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = impl_.get_service().write_some( impl_.get_implementation(), buffers, ec); boost::asio::detail::throw_error(ec, "write_some"); return s; } # 702 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec) { return impl_.get_service().write_some( impl_.get_implementation(), buffers, ec); } # 762 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_write_some(this), token, buffers); } # 809 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = impl_.get_service().read_some( impl_.get_implementation(), buffers, ec); boost::asio::detail::throw_error(ec, "read_some"); return s; } # 836 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return impl_.get_service().read_some( impl_.get_implementation(), buffers, ec); } # 897 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_read_some(this), token, buffers); } private: basic_serial_port(const basic_serial_port&) = delete; basic_serial_port& operator=(const basic_serial_port&) = delete; class initiate_async_write_some { public: typedef Executor executor_type; explicit initiate_async_write_some(basic_serial_port* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_write_some( self_->impl_.get_implementation(), buffers, handler2.value, self_->impl_.get_executor()); } private: basic_serial_port* self_; }; class initiate_async_read_some { public: typedef Executor executor_type; explicit initiate_async_read_some(basic_serial_port* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_read_some( self_->impl_.get_implementation(), buffers, handler2.value, self_->impl_.get_executor()); } private: basic_serial_port* self_; }; detail::io_object_impl<detail::posix_serial_port_service, Executor> impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 998 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_serial_port.hpp" 2 3 4 # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set_base.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set_base.hpp" 2 3 4 namespace boost { namespace asio { class signal_set_base { public: # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set_base.hpp" 3 4 enum class flags : int { none = 0, restart = 0x10000000, no_child_stop = 1, no_child_wait = 2, dont_care = -1 }; typedef flags flags_t; # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set_base.hpp" 3 4 protected: ~signal_set_base() { } }; inline constexpr bool operator!(signal_set_base::flags_t x) { return static_cast<int>(x) == 0; } inline constexpr signal_set_base::flags_t operator&( signal_set_base::flags_t x, signal_set_base::flags_t y) { return static_cast<signal_set_base::flags_t>( static_cast<int>(x) & static_cast<int>(y)); } inline constexpr signal_set_base::flags_t operator|( signal_set_base::flags_t x, signal_set_base::flags_t y) { return static_cast<signal_set_base::flags_t>( static_cast<int>(x) | static_cast<int>(y)); } inline constexpr signal_set_base::flags_t operator^( signal_set_base::flags_t x, signal_set_base::flags_t y) { return static_cast<signal_set_base::flags_t>( static_cast<int>(x) ^ static_cast<int>(y)); } inline constexpr signal_set_base::flags_t operator~( signal_set_base::flags_t x) { return static_cast<signal_set_base::flags_t>(~static_cast<int>(x)); } inline signal_set_base::flags_t& operator&=( signal_set_base::flags_t& x, signal_set_base::flags_t y) { x = x & y; return x; } inline signal_set_base::flags_t& operator|=( signal_set_base::flags_t& x, signal_set_base::flags_t y) { x = x | y; return x; } inline signal_set_base::flags_t& operator^=( signal_set_base::flags_t& x, signal_set_base::flags_t y) { x = x ^ y; return x; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 183 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set_base.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_handler.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_handler.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_op.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class signal_op : public operation { public: boost::system::error_code ec_; void* cancellation_key_; int signal_number_; protected: signal_op(func_type func) : operation(func), cancellation_key_(0), signal_number_(0) { } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_op.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_handler.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_handler.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename IoExecutor> class signal_handler : public signal_op { public: struct ptr { Handler* h; signal_handler* v; signal_handler* p; ~ptr() { reset(); } static signal_handler* allocate(Handler& handler) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<signal_handler> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( handler, ::boost::asio::get_associated_allocator(handler))); return a.allocate(1); } void reset() { if (p) { p->~signal_handler(); p = 0; } if (v) { typedef typename ::boost::asio::associated_allocator< Handler>::type associated_allocator_type; typedef typename ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::type hook_allocator_type; typename std::allocator_traits<hook_allocator_type>::template rebind_alloc<signal_handler> a( ::boost::asio::detail::get_hook_allocator< Handler, associated_allocator_type>::get( *h, ::boost::asio::get_associated_allocator(*h))); a.deallocate(static_cast<signal_handler*>(v), 1); v = 0; } } }; signal_handler(Handler& h, const IoExecutor& io_ex) : signal_op(&signal_handler::do_complete), handler_(static_cast<Handler&&>(h)), work_(handler_, io_ex) { } static void do_complete(void* owner, operation* base, const boost::system::error_code& , std::size_t ) { signal_handler* h(static_cast<signal_handler*>(base)); ptr p = { boost::asio::detail::addressof(h->handler_), h, h }; (void)0; handler_work<Handler, IoExecutor> w( static_cast<handler_work<Handler, IoExecutor>&&>( h->work_)); detail::binder2<Handler, boost::system::error_code, int> handler(h->handler_, h->ec_, h->signal_number_); p.h = boost::asio::detail::addressof(handler.handler_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; w.complete(handler, handler.handler_); (void)0; } } private: Handler handler_; handler_work<Handler, IoExecutor> work_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 91 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_handler.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { enum { max_signal_number = (64 + 1) }; extern inline struct signal_state* get_signal_state(); extern "C" inline void boost_asio_signal_handler(int signal_number); class signal_set_service : public execution_context_service_base<signal_set_service> { public: class registration { public: registration() : signal_number_(0), queue_(0), undelivered_(0), next_in_table_(0), prev_in_table_(0), next_in_set_(0) { } private: friend class signal_set_service; int signal_number_; op_queue<signal_op>* queue_; std::size_t undelivered_; registration* next_in_table_; registration* prev_in_table_; registration* next_in_set_; }; class implementation_type { public: implementation_type() : signals_(0) { } private: friend class signal_set_service; op_queue<signal_op> queue_; registration* signals_; }; inline signal_set_service(execution_context& context); inline ~signal_set_service(); inline void shutdown(); inline void notify_fork( boost::asio::execution_context::fork_event fork_ev); inline void construct(implementation_type& impl); inline void destroy(implementation_type& impl); boost::system::error_code add(implementation_type& impl, int signal_number, boost::system::error_code& ec) { return add(impl, signal_number, signal_set_base::flags::dont_care, ec); } inline boost::system::error_code add(implementation_type& impl, int signal_number, signal_set_base::flags_t f, boost::system::error_code& ec); inline boost::system::error_code remove(implementation_type& impl, int signal_number, boost::system::error_code& ec); inline boost::system::error_code clear(implementation_type& impl, boost::system::error_code& ec); inline boost::system::error_code cancel(implementation_type& impl, boost::system::error_code& ec); inline void cancel_ops_by_key(implementation_type& impl, void* cancellation_key); template <typename Handler, typename IoExecutor> void async_wait(implementation_type& impl, Handler& handler, const IoExecutor& io_ex) { typename associated_cancellation_slot<Handler>::type slot = boost::asio::get_associated_cancellation_slot(handler); typedef signal_handler<Handler, IoExecutor> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(handler, io_ex); if (slot.is_connected()) { p.p->cancellation_key_ = &slot.template emplace<signal_op_cancellation>(this, &impl); } (void)0 ; start_wait_op(impl, p.p); p.v = p.p = 0; } inline static void deliver_signal(int signal_number); private: inline static void add_service(signal_set_service* service); inline static void remove_service(signal_set_service* service); inline static void open_descriptors(); inline static void close_descriptors(); inline void start_wait_op(implementation_type& impl, signal_op* op); class signal_op_cancellation { public: signal_op_cancellation(signal_set_service* s, implementation_type* i) : service_(s), implementation_(i) { } void operator()(cancellation_type_t type) { if (!!(type & (cancellation_type::terminal | cancellation_type::partial | cancellation_type::total))) { service_->cancel_ops_by_key(*implementation_, this); } } private: signal_set_service* service_; implementation_type* implementation_; }; typedef class scheduler scheduler_impl; scheduler_impl& scheduler_; class pipe_read_op; # 267 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 3 4 reactor& reactor_; reactor::per_descriptor_data reactor_data_; registration* registrations_[max_signal_number]; signal_set_service* next_; signal_set_service* prev_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 289 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/static_mutex.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/static_mutex.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_static_mutex.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_static_mutex.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_static_mutex.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct posix_static_mutex { typedef boost::asio::detail::scoped_lock<posix_static_mutex> scoped_lock; void init() { } void lock() { (void)::pthread_mutex_lock(&mutex_); } void unlock() { (void)::pthread_mutex_unlock(&mutex_); } ::pthread_mutex_t mutex_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/posix_static_mutex.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/static_mutex.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/static_mutex.hpp" 3 4 typedef posix_static_mutex static_mutex; } } } # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { struct signal_state { static_mutex mutex_; int read_descriptor_; int write_descriptor_; bool fork_prepared_; class signal_set_service* service_list_; std::size_t registration_count_[max_signal_number]; signal_set_base::flags_t flags_[max_signal_number]; }; signal_state* get_signal_state() { static signal_state state = { { { { 0, 0, 0, 0, PTHREAD_MUTEX_TIMED_NP, 0, 0, { 0, 0 } } } }, -1, -1, false, 0, { 0 }, { signal_set_base::flags_t() } }; return &state; } void boost_asio_signal_handler(int signal_number) { int saved_errno = (*__errno_location ()); signal_state* state = get_signal_state(); signed_size_type result = ::write(state->write_descriptor_, &signal_number, sizeof(signal_number)); (void)result; (*__errno_location ()) = saved_errno; } class signal_set_service::pipe_read_op : public reactor_op { public: # 134 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 3 4 pipe_read_op() : reactor_op(boost::system::error_code(), &pipe_read_op::do_perform, pipe_read_op::do_complete) { } static status do_perform(reactor_op*) { signal_state* state = get_signal_state(); int fd = state->read_descriptor_; int signal_number = 0; while (::read(fd, &signal_number, sizeof(int)) == sizeof(int)) if (signal_number >= 0 && signal_number < max_signal_number) signal_set_service::deliver_signal(signal_number); return not_done; } static void do_complete(void* , operation* base, const boost::system::error_code& , std::size_t ) { pipe_read_op* o(static_cast<pipe_read_op*>(base)); delete o; } }; signal_set_service::signal_set_service(execution_context& context) : execution_context_service_base<signal_set_service>(context), scheduler_(boost::asio::use_service<scheduler_impl>(context)), reactor_(boost::asio::use_service<reactor>(context)), next_(0), prev_(0) { get_signal_state()->mutex_.init(); reactor_.init_task(); for (int i = 0; i < max_signal_number; ++i) registrations_[i] = 0; add_service(this); } signal_set_service::~signal_set_service() { remove_service(this); } void signal_set_service::shutdown() { remove_service(this); op_queue<operation> ops; for (int i = 0; i < max_signal_number; ++i) { registration* reg = registrations_[i]; while (reg) { ops.push(*reg->queue_); reg = reg->next_in_table_; } } scheduler_.abandon_operations(ops); } void signal_set_service::notify_fork(execution_context::fork_event fork_ev) { signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); switch (fork_ev) { case execution_context::fork_prepare: { int read_descriptor = state->read_descriptor_; state->fork_prepared_ = true; lock.unlock(); reactor_.deregister_internal_descriptor(read_descriptor, reactor_data_); reactor_.cleanup_descriptor_data(reactor_data_); } break; case execution_context::fork_parent: if (state->fork_prepared_) { int read_descriptor = state->read_descriptor_; state->fork_prepared_ = false; lock.unlock(); reactor_.register_internal_descriptor(reactor::read_op, read_descriptor, reactor_data_, new pipe_read_op); } break; case execution_context::fork_child: if (state->fork_prepared_) { boost::asio::detail::signal_blocker blocker; close_descriptors(); open_descriptors(); int read_descriptor = state->read_descriptor_; state->fork_prepared_ = false; lock.unlock(); reactor_.register_internal_descriptor(reactor::read_op, read_descriptor, reactor_data_, new pipe_read_op); } break; default: break; } } void signal_set_service::construct( signal_set_service::implementation_type& impl) { impl.signals_ = 0; } void signal_set_service::destroy( signal_set_service::implementation_type& impl) { boost::system::error_code ignored_ec; clear(impl, ignored_ec); cancel(impl, ignored_ec); } boost::system::error_code signal_set_service::add( signal_set_service::implementation_type& impl, int signal_number, signal_set_base::flags_t f, boost::system::error_code& ec) { if (signal_number < 0 || signal_number >= max_signal_number) { ec = boost::asio::error::invalid_argument; return ec; } # 333 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 3 4 signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); registration** insertion_point = &impl.signals_; registration* next = impl.signals_; while (next && next->signal_number_ < signal_number) { insertion_point = &next->next_in_set_; next = next->next_in_set_; } if (next == 0 || next->signal_number_ != signal_number) { registration* new_registration = new registration; if (state->registration_count_[signal_number] == 0) { using namespace std; struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.__sigaction_handler.sa_handler = boost_asio_signal_handler; sigfillset(&sa.sa_mask); if (f != signal_set_base::flags::dont_care) sa.sa_flags = static_cast<int>(f); if (::sigaction(signal_number, &sa, 0) == -1) { ec = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); delete new_registration; return ec; } state->flags_[signal_number] = f; } else if (f != signal_set_base::flags::dont_care) { if (f != state->flags_[signal_number]) { using namespace std; if (state->flags_[signal_number] != signal_set_base::flags::dont_care) { ec = boost::asio::error::invalid_argument; delete new_registration; return ec; } struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.__sigaction_handler.sa_handler = boost_asio_signal_handler; sigfillset(&sa.sa_mask); sa.sa_flags = static_cast<int>(f); if (::sigaction(signal_number, &sa, 0) == -1) { ec = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); delete new_registration; return ec; } state->flags_[signal_number] = f; } } new_registration->signal_number_ = signal_number; new_registration->queue_ = &impl.queue_; new_registration->next_in_set_ = next; *insertion_point = new_registration; new_registration->next_in_table_ = registrations_[signal_number]; if (registrations_[signal_number]) registrations_[signal_number]->prev_in_table_ = new_registration; registrations_[signal_number] = new_registration; ++state->registration_count_[signal_number]; } ec = boost::system::error_code(); return ec; } boost::system::error_code signal_set_service::remove( signal_set_service::implementation_type& impl, int signal_number, boost::system::error_code& ec) { if (signal_number < 0 || signal_number >= max_signal_number) { ec = boost::asio::error::invalid_argument; return ec; } signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); registration** deletion_point = &impl.signals_; registration* reg = impl.signals_; while (reg && reg->signal_number_ < signal_number) { deletion_point = ®->next_in_set_; reg = reg->next_in_set_; } if (reg != 0 && reg->signal_number_ == signal_number) { if (state->registration_count_[signal_number] == 1) { using namespace std; struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.__sigaction_handler.sa_handler = ((__sighandler_t) 0); if (::sigaction(signal_number, &sa, 0) == -1) { ec = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); return ec; } state->flags_[signal_number] = signal_set_base::flags_t(); } *deletion_point = reg->next_in_set_; if (registrations_[signal_number] == reg) registrations_[signal_number] = reg->next_in_table_; if (reg->prev_in_table_) reg->prev_in_table_->next_in_table_ = reg->next_in_table_; if (reg->next_in_table_) reg->next_in_table_->prev_in_table_ = reg->prev_in_table_; --state->registration_count_[signal_number]; delete reg; } ec = boost::system::error_code(); return ec; } boost::system::error_code signal_set_service::clear( signal_set_service::implementation_type& impl, boost::system::error_code& ec) { signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); while (registration* reg = impl.signals_) { if (state->registration_count_[reg->signal_number_] == 1) { using namespace std; struct sigaction sa; memset(&sa, 0, sizeof(sa)); sa.__sigaction_handler.sa_handler = ((__sighandler_t) 0); if (::sigaction(reg->signal_number_, &sa, 0) == -1) { ec = boost::system::error_code((*__errno_location ()), boost::asio::error::get_system_category()); return ec; } state->flags_[reg->signal_number_] = signal_set_base::flags_t(); } if (registrations_[reg->signal_number_] == reg) registrations_[reg->signal_number_] = reg->next_in_table_; if (reg->prev_in_table_) reg->prev_in_table_->next_in_table_ = reg->next_in_table_; if (reg->next_in_table_) reg->next_in_table_->prev_in_table_ = reg->prev_in_table_; --state->registration_count_[reg->signal_number_]; impl.signals_ = reg->next_in_set_; delete reg; } ec = boost::system::error_code(); return ec; } boost::system::error_code signal_set_service::cancel( signal_set_service::implementation_type& impl, boost::system::error_code& ec) { (void)0 ; op_queue<operation> ops; { signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); while (signal_op* op = impl.queue_.front()) { op->ec_ = boost::asio::error::operation_aborted; impl.queue_.pop(); ops.push(op); } } scheduler_.post_deferred_completions(ops); ec = boost::system::error_code(); return ec; } void signal_set_service::cancel_ops_by_key( signal_set_service::implementation_type& impl, void* cancellation_key) { op_queue<operation> ops; { op_queue<signal_op> other_ops; signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); while (signal_op* op = impl.queue_.front()) { impl.queue_.pop(); if (op->cancellation_key_ == cancellation_key) { op->ec_ = boost::asio::error::operation_aborted; ops.push(op); } else other_ops.push(op); } impl.queue_.push(other_ops); } scheduler_.post_deferred_completions(ops); } void signal_set_service::deliver_signal(int signal_number) { signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); signal_set_service* service = state->service_list_; while (service) { op_queue<operation> ops; registration* reg = service->registrations_[signal_number]; while (reg) { if (reg->queue_->empty()) { ++reg->undelivered_; } else { while (signal_op* op = reg->queue_->front()) { op->signal_number_ = signal_number; reg->queue_->pop(); ops.push(op); } } reg = reg->next_in_table_; } service->scheduler_.post_deferred_completions(ops); service = service->next_; } } void signal_set_service::add_service(signal_set_service* service) { signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); if (state->service_list_ == 0) open_descriptors(); if (state->service_list_ != 0) { if (!(((static_cast<unsigned>(service->scheduler_.concurrency_hint()) & (0xFFFF0000u | 0x1u)) ^ 0xA5100000u) != 0) || !(((static_cast<unsigned>(state->service_list_->scheduler_.concurrency_hint()) & (0xFFFF0000u | 0x1u)) ^ 0xA5100000u) != 0) ) { std::logic_error ex( "Thread-unsafe execution context objects require " "exclusive access to signal handling."); boost::asio::detail::throw_exception(ex); } } service->next_ = state->service_list_; service->prev_ = 0; if (state->service_list_) state->service_list_->prev_ = service; state->service_list_ = service; int read_descriptor = state->read_descriptor_; lock.unlock(); service->reactor_.register_internal_descriptor(reactor::read_op, read_descriptor, service->reactor_data_, new pipe_read_op); } void signal_set_service::remove_service(signal_set_service* service) { signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); if (service->next_ || service->prev_ || state->service_list_ == service) { int read_descriptor = state->read_descriptor_; lock.unlock(); service->reactor_.deregister_internal_descriptor( read_descriptor, service->reactor_data_); service->reactor_.cleanup_descriptor_data(service->reactor_data_); lock.lock(); if (state->service_list_ == service) state->service_list_ = service->next_; if (service->prev_) service->prev_->next_ = service->next_; if (service->next_) service->next_->prev_= service->prev_; service->next_ = 0; service->prev_ = 0; if (state->service_list_ == 0) close_descriptors(); } } void signal_set_service::open_descriptors() { signal_state* state = get_signal_state(); int pipe_fds[2]; if (::pipe(pipe_fds) == 0) { state->read_descriptor_ = pipe_fds[0]; ::fcntl(state->read_descriptor_, 4, 04000); state->write_descriptor_ = pipe_fds[1]; ::fcntl(state->write_descriptor_, 4, 04000); ::fcntl(state->read_descriptor_, 2, 1); ::fcntl(state->write_descriptor_, 2, 1); } else { boost::system::error_code ec((*__errno_location ()), boost::asio::error::get_system_category()); boost::asio::detail::throw_error(ec, "signal_set_service pipe"); } } void signal_set_service::close_descriptors() { signal_state* state = get_signal_state(); if (state->read_descriptor_ != -1) ::close(state->read_descriptor_); state->read_descriptor_ = -1; if (state->write_descriptor_ != -1) ::close(state->write_descriptor_); state->write_descriptor_ = -1; } void signal_set_service::start_wait_op( signal_set_service::implementation_type& impl, signal_op* op) { scheduler_.work_started(); signal_state* state = get_signal_state(); static_mutex::scoped_lock lock(state->mutex_); registration* reg = impl.signals_; while (reg) { if (reg->undelivered_ > 0) { --reg->undelivered_; op->signal_number_ = reg->signal_number_; scheduler_.post_deferred_completion(op); return; } reg = reg->next_in_set_; } impl.queue_.push(op); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 827 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/signal_set_service.ipp" 2 3 4 # 292 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/signal_set_service.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 2 3 4 namespace boost { namespace asio { # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 template <typename Executor = any_io_executor> class basic_signal_set : public signal_set_base { private: class initiate_async_wait; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_signal_set<Executor1> other; }; # 123 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 explicit basic_signal_set(const executor_type& ex) : impl_(0, ex) { } # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 template <typename ExecutionContext> explicit basic_signal_set(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { } # 160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 basic_signal_set(const executor_type& ex, int signal_number_1) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number_1, ec); boost::asio::detail::throw_error(ec, "add"); } # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 template <typename ExecutionContext> basic_signal_set(ExecutionContext& context, int signal_number_1, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number_1, ec); boost::asio::detail::throw_error(ec, "add"); } # 212 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 basic_signal_set(const executor_type& ex, int signal_number_1, int signal_number_2) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number_1, ec); boost::asio::detail::throw_error(ec, "add"); impl_.get_service().add(impl_.get_implementation(), signal_number_2, ec); boost::asio::detail::throw_error(ec, "add"); } # 240 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 template <typename ExecutionContext> basic_signal_set(ExecutionContext& context, int signal_number_1, int signal_number_2, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number_1, ec); boost::asio::detail::throw_error(ec, "add"); impl_.get_service().add(impl_.get_implementation(), signal_number_2, ec); boost::asio::detail::throw_error(ec, "add"); } # 276 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 basic_signal_set(const executor_type& ex, int signal_number_1, int signal_number_2, int signal_number_3) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number_1, ec); boost::asio::detail::throw_error(ec, "add"); impl_.get_service().add(impl_.get_implementation(), signal_number_2, ec); boost::asio::detail::throw_error(ec, "add"); impl_.get_service().add(impl_.get_implementation(), signal_number_3, ec); boost::asio::detail::throw_error(ec, "add"); } # 309 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 template <typename ExecutionContext> basic_signal_set(ExecutionContext& context, int signal_number_1, int signal_number_2, int signal_number_3, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number_1, ec); boost::asio::detail::throw_error(ec, "add"); impl_.get_service().add(impl_.get_implementation(), signal_number_2, ec); boost::asio::detail::throw_error(ec, "add"); impl_.get_service().add(impl_.get_implementation(), signal_number_3, ec); boost::asio::detail::throw_error(ec, "add"); } ~basic_signal_set() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 352 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 void add(int signal_number) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number, ec); boost::asio::detail::throw_error(ec, "add"); } # 368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 boost::system::error_code add(int signal_number, boost::system::error_code& ec) { impl_.get_service().add(impl_.get_implementation(), signal_number, ec); return ec; } # 394 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 void add(int signal_number, flags_t f) { boost::system::error_code ec; impl_.get_service().add(impl_.get_implementation(), signal_number, f, ec); boost::asio::detail::throw_error(ec, "add"); } # 420 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 boost::system::error_code add(int signal_number, flags_t f, boost::system::error_code& ec) { impl_.get_service().add(impl_.get_implementation(), signal_number, f, ec); return ec; } # 439 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 void remove(int signal_number) { boost::system::error_code ec; impl_.get_service().remove(impl_.get_implementation(), signal_number, ec); boost::asio::detail::throw_error(ec, "remove"); } # 458 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 boost::system::error_code remove(int signal_number, boost::system::error_code& ec) { impl_.get_service().remove(impl_.get_implementation(), signal_number, ec); return ec; } # 474 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 void clear() { boost::system::error_code ec; impl_.get_service().clear(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "clear"); } # 490 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 boost::system::error_code clear(boost::system::error_code& ec) { impl_.get_service().clear(impl_.get_implementation(), ec); return ec; } # 517 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 545 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 592 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, int)> SignalToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_wait( SignalToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<SignalToken, void (boost::system::error_code, int)>( initiate_async_wait(this), token); } private: basic_signal_set(const basic_signal_set&) = delete; basic_signal_set& operator=(const basic_signal_set&) = delete; class initiate_async_wait { public: typedef Executor executor_type; explicit initiate_async_wait(basic_signal_set* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename SignalHandler> void operator()(SignalHandler&& handler) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<SignalHandler>::type, void(boost::system::error_code, int)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const int*>(0))) == 1, "SignalHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const int>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<SignalHandler> handler2(handler); self_->impl_.get_service().async_wait( self_->impl_.get_implementation(), handler2.value, self_->impl_.get_executor()); } private: basic_signal_set* self_; }; detail::io_object_impl<detail::signal_set_service, Executor> impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 652 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_signal_set.hpp" 2 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 1 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 2 3 4 namespace boost { namespace asio { template <typename Protocol, typename Executor = any_io_executor> class basic_socket_acceptor; # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Protocol, typename Executor> class basic_socket_acceptor : public socket_base { private: class initiate_async_wait; class initiate_async_accept; class initiate_async_move_accept; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_socket_acceptor<Protocol, Executor1> other; }; # 118 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 typedef typename detail::reactive_socket_service< Protocol>::native_handle_type native_handle_type; typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; # 138 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 explicit basic_socket_acceptor(const executor_type& ex) : impl_(0, ex) { } # 153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> explicit basic_socket_acceptor(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { } # 174 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 basic_socket_acceptor(const executor_type& ex, const protocol_type& protocol) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); } # 194 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> basic_socket_acceptor(ExecutionContext& context, const protocol_type& protocol, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); } # 235 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 basic_socket_acceptor(const executor_type& ex, const endpoint_type& endpoint, bool reuse_addr = true) : impl_(0, ex) { boost::system::error_code ec; const protocol_type protocol = endpoint.protocol(); impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); if (reuse_addr) { impl_.get_service().set_option(impl_.get_implementation(), socket_base::reuse_address(true), ec); boost::asio::detail::throw_error(ec, "set_option"); } impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); boost::asio::detail::throw_error(ec, "bind"); impl_.get_service().listen(impl_.get_implementation(), socket_base::max_listen_connections, ec); boost::asio::detail::throw_error(ec, "listen"); } # 283 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> basic_socket_acceptor(ExecutionContext& context, const endpoint_type& endpoint, bool reuse_addr = true, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; const protocol_type protocol = endpoint.protocol(); impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); if (reuse_addr) { impl_.get_service().set_option(impl_.get_implementation(), socket_base::reuse_address(true), ec); boost::asio::detail::throw_error(ec, "set_option"); } impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); boost::asio::detail::throw_error(ec, "bind"); impl_.get_service().listen(impl_.get_implementation(), socket_base::max_listen_connections, ec); boost::asio::detail::throw_error(ec, "listen"); } # 323 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 basic_socket_acceptor(const executor_type& ex, const protocol_type& protocol, const native_handle_type& native_acceptor) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), protocol, native_acceptor, ec); boost::asio::detail::throw_error(ec, "assign"); } # 348 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> basic_socket_acceptor(ExecutionContext& context, const protocol_type& protocol, const native_handle_type& native_acceptor, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), protocol, native_acceptor, ec); boost::asio::detail::throw_error(ec, "assign"); } # 374 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 basic_socket_acceptor(basic_socket_acceptor&& other) noexcept : impl_(std::move(other.impl_)) { } # 390 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 basic_socket_acceptor& operator=(basic_socket_acceptor&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Protocol1, typename Executor1> friend class basic_socket_acceptor; # 412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Protocol1, typename Executor1> basic_socket_acceptor(basic_socket_acceptor<Protocol1, Executor1>&& other, typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value >::type = 0) : impl_(std::move(other.impl_)) { } # 434 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Protocol1, typename Executor1> typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value, basic_socket_acceptor& >::type operator=(basic_socket_acceptor<Protocol1, Executor1>&& other) { basic_socket_acceptor tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } # 453 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 ~basic_socket_acceptor() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 478 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void open(const protocol_type& protocol = protocol_type()) { boost::system::error_code ec; impl_.get_service().open(impl_.get_implementation(), protocol, ec); boost::asio::detail::throw_error(ec, "open"); } # 505 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code open(const protocol_type& protocol, boost::system::error_code& ec) { impl_.get_service().open(impl_.get_implementation(), protocol, ec); return ec; } # 522 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void assign(const protocol_type& protocol, const native_handle_type& native_acceptor) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), protocol, native_acceptor, ec); boost::asio::detail::throw_error(ec, "assign"); } # 541 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code assign(const protocol_type& protocol, const native_handle_type& native_acceptor, boost::system::error_code& ec) { impl_.get_service().assign(impl_.get_implementation(), protocol, native_acceptor, ec); return ec; } bool is_open() const { return impl_.get_service().is_open(impl_.get_implementation()); } # 573 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void bind(const endpoint_type& endpoint) { boost::system::error_code ec; impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); boost::asio::detail::throw_error(ec, "bind"); } # 603 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code bind(const endpoint_type& endpoint, boost::system::error_code& ec) { impl_.get_service().bind(impl_.get_implementation(), endpoint, ec); return ec; } # 620 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void listen(int backlog = socket_base::max_listen_connections) { boost::system::error_code ec; impl_.get_service().listen(impl_.get_implementation(), backlog, ec); boost::asio::detail::throw_error(ec, "listen"); } # 649 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code listen(int backlog, boost::system::error_code& ec) { impl_.get_service().listen(impl_.get_implementation(), backlog, ec); return ec; } # 665 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void close() { boost::system::error_code ec; impl_.get_service().close(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "close"); } # 694 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code close(boost::system::error_code& ec) { impl_.get_service().close(impl_.get_implementation(), ec); return ec; } # 719 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 native_handle_type release() { boost::system::error_code ec; native_handle_type s = impl_.get_service().release( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "release"); return s; } # 747 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 native_handle_type release(boost::system::error_code& ec) { return impl_.get_service().release(impl_.get_implementation(), ec); } native_handle_type native_handle() { return impl_.get_service().native_handle(impl_.get_implementation()); } # 771 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 786 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 813 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename SettableSocketOption> void set_option(const SettableSocketOption& option) { boost::system::error_code ec; impl_.get_service().set_option(impl_.get_implementation(), option, ec); boost::asio::detail::throw_error(ec, "set_option"); } # 847 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename SettableSocketOption> boost::system::error_code set_option(const SettableSocketOption& option, boost::system::error_code& ec) { impl_.get_service().set_option(impl_.get_implementation(), option, ec); return ec; } # 877 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename GettableSocketOption> void get_option(GettableSocketOption& option) const { boost::system::error_code ec; impl_.get_service().get_option(impl_.get_implementation(), option, ec); boost::asio::detail::throw_error(ec, "get_option"); } # 912 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename GettableSocketOption> boost::system::error_code get_option(GettableSocketOption& option, boost::system::error_code& ec) const { impl_.get_service().get_option(impl_.get_implementation(), option, ec); return ec; } # 940 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename IoControlCommand> void io_control(IoControlCommand& command) { boost::system::error_code ec; impl_.get_service().io_control(impl_.get_implementation(), command, ec); boost::asio::detail::throw_error(ec, "io_control"); } # 973 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename IoControlCommand> boost::system::error_code io_control(IoControlCommand& command, boost::system::error_code& ec) { impl_.get_service().io_control(impl_.get_implementation(), command, ec); return ec; } # 992 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 bool non_blocking() const { return impl_.get_service().non_blocking(impl_.get_implementation()); } # 1010 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void non_blocking(bool mode) { boost::system::error_code ec; impl_.get_service().non_blocking(impl_.get_implementation(), mode, ec); boost::asio::detail::throw_error(ec, "non_blocking"); } # 1030 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code non_blocking( bool mode, boost::system::error_code& ec) { impl_.get_service().non_blocking(impl_.get_implementation(), mode, ec); return ec; } # 1051 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 bool native_non_blocking() const { return impl_.get_service().native_non_blocking(impl_.get_implementation()); } # 1071 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void native_non_blocking(bool mode) { boost::system::error_code ec; impl_.get_service().native_non_blocking( impl_.get_implementation(), mode, ec); boost::asio::detail::throw_error(ec, "native_non_blocking"); } # 1094 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code native_non_blocking( bool mode, boost::system::error_code& ec) { impl_.get_service().native_non_blocking( impl_.get_implementation(), mode, ec); return ec; } # 1117 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 endpoint_type local_endpoint() const { boost::system::error_code ec; endpoint_type ep = impl_.get_service().local_endpoint( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "local_endpoint"); return ep; } # 1148 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 endpoint_type local_endpoint(boost::system::error_code& ec) const { return impl_.get_service().local_endpoint(impl_.get_implementation(), ec); } # 1169 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 void wait(wait_type w) { boost::system::error_code ec; impl_.get_service().wait(impl_.get_implementation(), w, ec); boost::asio::detail::throw_error(ec, "wait"); } # 1195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 boost::system::error_code wait(wait_type w, boost::system::error_code& ec) { impl_.get_service().wait(impl_.get_implementation(), w, ec); return ec; } # 1256 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code)> WaitToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_wait(wait_type w, WaitToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WaitToken, void (boost::system::error_code)>( initiate_async_wait(this), token, w); } # 1291 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Protocol1, typename Executor1> void accept(basic_socket<Protocol1, Executor1>& peer, typename constraint< is_convertible<Protocol, Protocol1>::value >::type = 0) { boost::system::error_code ec; impl_.get_service().accept(impl_.get_implementation(), peer, static_cast<endpoint_type*>(0), ec); boost::asio::detail::throw_error(ec, "accept"); } # 1326 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Protocol1, typename Executor1> boost::system::error_code accept( basic_socket<Protocol1, Executor1>& peer, boost::system::error_code& ec, typename constraint< is_convertible<Protocol, Protocol1>::value >::type = 0) { impl_.get_service().accept(impl_.get_implementation(), peer, static_cast<endpoint_type*>(0), ec); return ec; } # 1393 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Protocol1, typename Executor1, ::boost::asio::completion_token_for<void (boost::system::error_code)> AcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(basic_socket<Protocol1, Executor1>& peer, AcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type(), typename constraint< is_convertible<Protocol, Protocol1>::value >::type = 0) { return async_initiate<AcceptToken, void (boost::system::error_code)>( initiate_async_accept(this), token, &peer, static_cast<endpoint_type*>(0)); } # 1437 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1> void accept(basic_socket<protocol_type, Executor1>& peer, endpoint_type& peer_endpoint) { boost::system::error_code ec; impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); boost::asio::detail::throw_error(ec, "accept"); } # 1475 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1> boost::system::error_code accept(basic_socket<protocol_type, Executor1>& peer, endpoint_type& peer_endpoint, boost::system::error_code& ec) { impl_.get_service().accept( impl_.get_implementation(), peer, &peer_endpoint, ec); return ec; } # 1526 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1, ::boost::asio::completion_token_for<void (boost::system::error_code)> AcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(basic_socket<protocol_type, Executor1>& peer, endpoint_type& peer_endpoint, AcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<AcceptToken, void (boost::system::error_code)>( initiate_async_accept(this), token, &peer, &peer_endpoint); } # 1565 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 typename Protocol::socket::template rebind_executor<executor_type>::other accept() { boost::system::error_code ec; typename Protocol::socket::template rebind_executor< executor_type>::other peer(impl_.get_executor()); impl_.get_service().accept(impl_.get_implementation(), peer, 0, ec); boost::asio::detail::throw_error(ec, "accept"); return peer; } # 1601 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 typename Protocol::socket::template rebind_executor<executor_type>::other accept(boost::system::error_code& ec) { typename Protocol::socket::template rebind_executor< executor_type>::other peer(impl_.get_executor()); impl_.get_service().accept(impl_.get_implementation(), peer, 0, ec); return peer; } # 1670 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::socket::template rebind_executor< executor_type>::other)> MoveAcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept( MoveAcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<MoveAcceptToken, void (boost::system::error_code, typename Protocol::socket::template rebind_executor<executor_type>::other)>( initiate_async_move_accept(this), token, impl_.get_executor(), static_cast<endpoint_type*>(0), static_cast<typename Protocol::socket::template rebind_executor<executor_type>::other*>(0)); } # 1723 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1> typename Protocol::socket::template rebind_executor<Executor1>::other accept(const Executor1& ex, typename constraint< is_executor<Executor1>::value || execution::is_executor<Executor1>::value >::type = 0) { boost::system::error_code ec; typename Protocol::socket::template rebind_executor<Executor1>::other peer(ex); impl_.get_service().accept(impl_.get_implementation(), peer, 0, ec); boost::asio::detail::throw_error(ec, "accept"); return peer; } # 1762 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other accept(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { boost::system::error_code ec; typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other peer(context); impl_.get_service().accept(impl_.get_implementation(), peer, 0, ec); boost::asio::detail::throw_error(ec, "accept"); return peer; } # 1806 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1> typename Protocol::socket::template rebind_executor<Executor1>::other accept(const Executor1& ex, boost::system::error_code& ec, typename constraint< is_executor<Executor1>::value || execution::is_executor<Executor1>::value >::type = 0) { typename Protocol::socket::template rebind_executor<Executor1>::other peer(ex); impl_.get_service().accept(impl_.get_implementation(), peer, 0, ec); return peer; } # 1848 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other accept(ExecutionContext& context, boost::system::error_code& ec, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other peer(context); impl_.get_service().accept(impl_.get_implementation(), peer, 0, ec); return peer; } # 1925 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::socket::template rebind_executor< typename constraint<is_executor<Executor1>::value || execution::is_executor<Executor1>::value, Executor1>::type>::other)> MoveAcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(const Executor1& ex, MoveAcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type(), typename constraint< is_executor<Executor1>::value || execution::is_executor<Executor1>::value >::type = 0) # 1952 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 { return async_initiate<MoveAcceptToken, void (boost::system::error_code, typename Protocol::socket::template rebind_executor< Executor1>::other)>( initiate_async_move_accept(this), token, ex, static_cast<endpoint_type*>(0), static_cast<typename Protocol::socket::template rebind_executor<Executor1>::other*>(0)); } # 2026 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other)> MoveAcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(ExecutionContext& context, MoveAcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type(), typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) # 2050 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 { return async_initiate<MoveAcceptToken, void (boost::system::error_code, typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other)>( initiate_async_move_accept(this), token, context.get_executor(), static_cast<endpoint_type*>(0), static_cast<typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other*>(0)); } # 2085 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 typename Protocol::socket::template rebind_executor<executor_type>::other accept(endpoint_type& peer_endpoint) { boost::system::error_code ec; typename Protocol::socket::template rebind_executor< executor_type>::other peer(impl_.get_executor()); impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); boost::asio::detail::throw_error(ec, "accept"); return peer; } # 2126 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 typename Protocol::socket::template rebind_executor<executor_type>::other accept(endpoint_type& peer_endpoint, boost::system::error_code& ec) { typename Protocol::socket::template rebind_executor< executor_type>::other peer(impl_.get_executor()); impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); return peer; } # 2202 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::socket::template rebind_executor< executor_type>::other)> MoveAcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(endpoint_type& peer_endpoint, MoveAcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<MoveAcceptToken, void (boost::system::error_code, typename Protocol::socket::template rebind_executor<executor_type>::other)>( initiate_async_move_accept(this), token, impl_.get_executor(), &peer_endpoint, static_cast<typename Protocol::socket::template rebind_executor<executor_type>::other*>(0)); } # 2260 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1> typename Protocol::socket::template rebind_executor<Executor1>::other accept(const Executor1& ex, endpoint_type& peer_endpoint, typename constraint< is_executor<Executor1>::value || execution::is_executor<Executor1>::value >::type = 0) { boost::system::error_code ec; typename Protocol::socket::template rebind_executor<Executor1>::other peer(ex); impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); boost::asio::detail::throw_error(ec, "accept"); return peer; } # 2305 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other accept(ExecutionContext& context, endpoint_type& peer_endpoint, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { boost::system::error_code ec; typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other peer(context); impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); boost::asio::detail::throw_error(ec, "accept"); return peer; } # 2355 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1> typename Protocol::socket::template rebind_executor<Executor1>::other accept(const executor_type& ex, endpoint_type& peer_endpoint, boost::system::error_code& ec, typename constraint< is_executor<Executor1>::value || execution::is_executor<Executor1>::value >::type = 0) { typename Protocol::socket::template rebind_executor<Executor1>::other peer(ex); impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); return peer; } # 2404 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext> typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other accept(ExecutionContext& context, endpoint_type& peer_endpoint, boost::system::error_code& ec, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other peer(context); impl_.get_service().accept(impl_.get_implementation(), peer, &peer_endpoint, ec); return peer; } # 2489 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename Executor1, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::socket::template rebind_executor< typename constraint<is_executor<Executor1>::value || execution::is_executor<Executor1>::value, Executor1>::type>::other)> MoveAcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(const Executor1& ex, endpoint_type& peer_endpoint, MoveAcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type(), typename constraint< is_executor<Executor1>::value || execution::is_executor<Executor1>::value >::type = 0) { return async_initiate<MoveAcceptToken, void (boost::system::error_code, typename Protocol::socket::template rebind_executor< Executor1>::other)>( initiate_async_move_accept(this), token, ex, &peer_endpoint, static_cast<typename Protocol::socket::template rebind_executor<Executor1>::other*>(0)); } # 2594 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 template <typename ExecutionContext, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other)> MoveAcceptToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_accept(ExecutionContext& context, endpoint_type& peer_endpoint, MoveAcceptToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type(), typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) # 2619 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 { return async_initiate<MoveAcceptToken, void (boost::system::error_code, typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other)>( initiate_async_move_accept(this), token, context.get_executor(), &peer_endpoint, static_cast<typename Protocol::socket::template rebind_executor< typename ExecutionContext::executor_type>::other*>(0)); } private: basic_socket_acceptor(const basic_socket_acceptor&) = delete; basic_socket_acceptor& operator=( const basic_socket_acceptor&) = delete; class initiate_async_wait { public: typedef Executor executor_type; explicit initiate_async_wait(basic_socket_acceptor* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WaitHandler> void operator()(WaitHandler&& handler, wait_type w) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WaitHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "WaitHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WaitHandler> handler2(handler); self_->impl_.get_service().async_wait( self_->impl_.get_implementation(), w, handler2.value, self_->impl_.get_executor()); } private: basic_socket_acceptor* self_; }; class initiate_async_accept { public: typedef Executor executor_type; explicit initiate_async_accept(basic_socket_acceptor* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename AcceptHandler, typename Protocol1, typename Executor1> void operator()(AcceptHandler&& handler, basic_socket<Protocol1, Executor1>* peer, endpoint_type* peer_endpoint) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<AcceptHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "AcceptHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<AcceptHandler> handler2(handler); self_->impl_.get_service().async_accept( self_->impl_.get_implementation(), *peer, peer_endpoint, handler2.value, self_->impl_.get_executor()); } private: basic_socket_acceptor* self_; }; class initiate_async_move_accept { public: typedef Executor executor_type; explicit initiate_async_move_accept(basic_socket_acceptor* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename MoveAcceptHandler, typename Executor1, typename Socket> void operator()(MoveAcceptHandler&& handler, const Executor1& peer_ex, endpoint_type* peer_endpoint, Socket*) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<MoveAcceptHandler>::type, void(boost::system::error_code, Socket)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_move_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<Socket*>(0))) == 1, "MoveAcceptHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::rvref<Socket>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<MoveAcceptHandler> handler2(handler); self_->impl_.get_service().async_move_accept( self_->impl_.get_implementation(), peer_ex, peer_endpoint, handler2.value, self_->impl_.get_executor()); } private: basic_socket_acceptor* self_; }; # 2747 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 3 4 detail::io_object_impl< detail::reactive_socket_service<Protocol>, Executor> impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 2756 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_acceptor.hpp" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 2 3 4 namespace boost { namespace asio { template <typename Protocol, typename Executor = any_io_executor> class basic_stream_socket; # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename Protocol, typename Executor> class basic_stream_socket : public basic_socket<Protocol, Executor> { private: class initiate_async_send; class initiate_async_receive; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_stream_socket<Protocol, Executor1> other; }; typedef typename basic_socket<Protocol, Executor>::native_handle_type native_handle_type; typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; # 103 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 explicit basic_stream_socket(const executor_type& ex) : basic_socket<Protocol, Executor>(ex) { } # 118 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ExecutionContext> explicit basic_stream_socket(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context) { } # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 basic_stream_socket(const executor_type& ex, const protocol_type& protocol) : basic_socket<Protocol, Executor>(ex, protocol) { } # 157 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ExecutionContext> basic_stream_socket(ExecutionContext& context, const protocol_type& protocol, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : basic_socket<Protocol, Executor>(context, protocol) { } # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 basic_stream_socket(const executor_type& ex, const endpoint_type& endpoint) : basic_socket<Protocol, Executor>(ex, endpoint) { } # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ExecutionContext> basic_stream_socket(ExecutionContext& context, const endpoint_type& endpoint, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, endpoint) { } # 226 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 basic_stream_socket(const executor_type& ex, const protocol_type& protocol, const native_handle_type& native_socket) : basic_socket<Protocol, Executor>(ex, protocol, native_socket) { } # 247 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ExecutionContext> basic_stream_socket(ExecutionContext& context, const protocol_type& protocol, const native_handle_type& native_socket, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_socket<Protocol, Executor>(context, protocol, native_socket) { } # 269 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 basic_stream_socket(basic_stream_socket&& other) noexcept : basic_socket<Protocol, Executor>(std::move(other)) { } # 285 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 basic_stream_socket& operator=(basic_stream_socket&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } # 303 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> basic_stream_socket(basic_stream_socket<Protocol1, Executor1>&& other, typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value >::type = 0) : basic_socket<Protocol, Executor>(std::move(other)) { } # 324 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename Protocol1, typename Executor1> typename constraint< is_convertible<Protocol1, Protocol>::value && is_convertible<Executor1, Executor>::value, basic_stream_socket& >::type operator=(basic_stream_socket<Protocol1, Executor1>&& other) { basic_socket<Protocol, Executor>::operator=(std::move(other)); return *this; } ~basic_stream_socket() { } # 370 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 407 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "send"); return s; } # 436 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t send(const ConstBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().send( this->impl_.get_implementation(), buffers, flags, ec); } # 495 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, socket_base::message_flags(0)); } # 569 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_send(const ConstBufferSequence& buffers, socket_base::message_flags flags, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, flags); } # 617 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 657 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags flags) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, flags, ec); boost::asio::detail::throw_error(ec, "receive"); return s; } # 686 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t receive(const MutableBufferSequence& buffers, socket_base::message_flags flags, boost::system::error_code& ec) { return this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, flags, ec); } # 747 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, socket_base::message_flags(0)); } # 823 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_receive(const MutableBufferSequence& buffers, socket_base::message_flags flags, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, flags); } # 870 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().send( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "write_some"); return s; } # 896 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec) { return this->impl_.get_service().send( this->impl_.get_implementation(), buffers, 0, ec); } # 955 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_send(this), token, buffers, socket_base::message_flags(0)); } # 1004 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, 0, ec); boost::asio::detail::throw_error(ec, "read_some"); return s; } # 1031 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return this->impl_.get_service().receive( this->impl_.get_implementation(), buffers, 0, ec); } # 1091 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_receive(this), token, buffers, socket_base::message_flags(0)); } private: basic_stream_socket(const basic_stream_socket&) = delete; basic_stream_socket& operator=(const basic_stream_socket&) = delete; class initiate_async_send { public: typedef Executor executor_type; explicit initiate_async_send(basic_stream_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_send( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_stream_socket* self_; }; class initiate_async_receive { public: typedef Executor executor_type; explicit initiate_async_receive(basic_stream_socket* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, socket_base::message_flags flags) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_receive( self_->impl_.get_implementation(), buffers, flags, handler2.value, self_->impl_.get_executor()); } private: basic_stream_socket* self_; }; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1190 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_socket.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/steady_timer.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/steady_timer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono_time_traits.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono_time_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono_time_traits.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <int64_t v1, int64_t v2> struct gcd { enum { value = gcd<v2, v1 % v2>::value }; }; template <int64_t v1> struct gcd<v1, 0> { enum { value = v1 }; }; template <typename Clock, typename WaitTraits> struct chrono_time_traits { typedef Clock clock_type; typedef typename clock_type::duration duration_type; typedef typename clock_type::time_point time_type; typedef typename duration_type::period period_type; static time_type now() { return clock_type::now(); } static time_type add(const time_type& t, const duration_type& d) { const time_type epoch; if (t >= epoch) { if ((time_type::max)() - t < d) return (time_type::max)(); } else { if (-(t - (time_type::min)()) > d) return (time_type::min)(); } return t + d; } static duration_type subtract(const time_type& t1, const time_type& t2) { const time_type epoch; if (t1 >= epoch) { if (t2 >= epoch) { return t1 - t2; } else if (t2 == (time_type::min)()) { return (duration_type::max)(); } else if ((time_type::max)() - t1 < epoch - t2) { return (duration_type::max)(); } else { return t1 - t2; } } else { if (t2 < epoch) { return t1 - t2; } else if (t1 == (time_type::min)()) { return (duration_type::min)(); } else if ((time_type::max)() - t2 < epoch - t1) { return (duration_type::min)(); } else { return -(t2 - t1); } } } static bool less_than(const time_type& t1, const time_type& t2) { return t1 < t2; } class posix_time_duration { public: explicit posix_time_duration(const duration_type& d) : d_(d) { } int64_t ticks() const { return d_.count(); } int64_t total_seconds() const { return duration_cast<1, 1>(); } int64_t total_milliseconds() const { return duration_cast<1, 1000>(); } int64_t total_microseconds() const { return duration_cast<1, 1000000>(); } private: template <int64_t Num, int64_t Den> int64_t duration_cast() const { const int64_t num1 = period_type::num / gcd<period_type::num, Num>::value; const int64_t num2 = Num / gcd<period_type::num, Num>::value; const int64_t den1 = period_type::den / gcd<period_type::den, Den>::value; const int64_t den2 = Den / gcd<period_type::den, Den>::value; const int64_t num = num1 * den2; const int64_t den = num2 * den1; if (num == 1 && den == 1) return ticks(); else if (num != 1 && den == 1) return ticks() * num; else if (num == 1 && period_type::den != 1) return ticks() / den; else return ticks() * num / den; } duration_type d_; }; static posix_time_duration to_posix_duration(const duration_type& d) { return posix_time_duration(WaitTraits::to_wait_duration(d)); } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 191 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/chrono_time_traits.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/wait_traits.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/wait_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/wait_traits.hpp" 2 3 4 namespace boost { namespace asio { template <typename Clock> struct wait_traits { static typename Clock::duration to_wait_duration( const typename Clock::duration& d) { return d; } static typename Clock::duration to_wait_duration( const typename Clock::time_point& t) { typename Clock::time_point now = Clock::now(); if (now + (Clock::duration::max)() < t) return (Clock::duration::max)(); if (now + (Clock::duration::min)() > t) return (Clock::duration::min)(); return t - now; } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/wait_traits.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 2 3 4 namespace boost { namespace asio { template <typename Clock, typename WaitTraits = boost::asio::wait_traits<Clock>, typename Executor = any_io_executor> class basic_waitable_timer; # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template <typename Clock, typename WaitTraits, typename Executor> class basic_waitable_timer { private: class initiate_async_wait; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_waitable_timer<Clock, WaitTraits, Executor1> other; }; typedef Clock clock_type; typedef typename clock_type::duration duration; typedef typename clock_type::time_point time_point; typedef WaitTraits traits_type; # 181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 explicit basic_waitable_timer(const executor_type& ex) : impl_(0, ex) { } # 196 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template <typename ExecutionContext> explicit basic_waitable_timer(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { } # 215 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 basic_waitable_timer(const executor_type& ex, const time_point& expiry_time) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().expires_at(impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_at"); } # 234 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template <typename ExecutionContext> explicit basic_waitable_timer(ExecutionContext& context, const time_point& expiry_time, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().expires_at(impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_at"); } # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 basic_waitable_timer(const executor_type& ex, const duration& expiry_time) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().expires_after( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_after"); } # 277 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template <typename ExecutionContext> explicit basic_waitable_timer(ExecutionContext& context, const duration& expiry_time, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().expires_after( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_after"); } # 303 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 basic_waitable_timer(basic_waitable_timer&& other) : impl_(std::move(other.impl_)) { } # 320 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 basic_waitable_timer& operator=(basic_waitable_timer&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Clock1, typename WaitTraits1, typename Executor1> friend class basic_waitable_timer; # 341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template <typename Executor1> basic_waitable_timer( basic_waitable_timer<Clock, WaitTraits, Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value >::type = 0) : impl_(std::move(other.impl_)) { } # 363 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_waitable_timer& >::type operator=(basic_waitable_timer<Clock, WaitTraits, Executor1>&& other) { basic_waitable_timer tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } ~basic_waitable_timer() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t cancel() { boost::system::error_code ec; std::size_t s = impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); return s; } # 444 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t cancel(boost::system::error_code& ec) { return impl_.get_service().cancel(impl_.get_implementation(), ec); } # 474 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t cancel_one() { boost::system::error_code ec; std::size_t s = impl_.get_service().cancel_one( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel_one"); return s; } # 509 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t cancel_one(boost::system::error_code& ec) { return impl_.get_service().cancel_one(impl_.get_implementation(), ec); } time_point expires_at() const { return impl_.get_service().expires_at(impl_.get_implementation()); } time_point expiry() const { return impl_.get_service().expiry(impl_.get_implementation()); } # 558 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t expires_at(const time_point& expiry_time) { boost::system::error_code ec; std::size_t s = impl_.get_service().expires_at( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_at"); return s; } # 591 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t expires_at(const time_point& expiry_time, boost::system::error_code& ec) { return impl_.get_service().expires_at( impl_.get_implementation(), expiry_time, ec); } # 621 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t expires_after(const duration& expiry_time) { boost::system::error_code ec; std::size_t s = impl_.get_service().expires_after( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_after"); return s; } duration expires_from_now() const { return impl_.get_service().expires_from_now(impl_.get_implementation()); } # 664 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t expires_from_now(const duration& expiry_time) { boost::system::error_code ec; std::size_t s = impl_.get_service().expires_from_now( impl_.get_implementation(), expiry_time, ec); boost::asio::detail::throw_error(ec, "expires_from_now"); return s; } # 696 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 std::size_t expires_from_now(const duration& expiry_time, boost::system::error_code& ec) { return impl_.get_service().expires_from_now( impl_.get_implementation(), expiry_time, ec); } # 711 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 void wait() { boost::system::error_code ec; impl_.get_service().wait(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "wait"); } # 725 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 void wait(boost::system::error_code& ec) { impl_.get_service().wait(impl_.get_implementation(), ec); } # 770 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code)> WaitToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_wait( WaitToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WaitToken, void (boost::system::error_code)>( initiate_async_wait(this), token); } private: basic_waitable_timer(const basic_waitable_timer&) = delete; basic_waitable_timer& operator=( const basic_waitable_timer&) = delete; class initiate_async_wait { public: typedef Executor executor_type; explicit initiate_async_wait(basic_waitable_timer* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WaitHandler> void operator()(WaitHandler&& handler) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WaitHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "WaitHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WaitHandler> handler2(handler); self_->impl_.get_service().async_wait( self_->impl_.get_implementation(), handler2.value, self_->impl_.get_executor()); } private: basic_waitable_timer* self_; }; detail::io_object_impl< detail::deadline_timer_service< detail::chrono_time_traits<Clock, WaitTraits> >, executor_type > impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 834 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_waitable_timer.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/steady_timer.hpp" 2 3 4 namespace boost { namespace asio { # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/steady_timer.hpp" 3 4 typedef basic_waitable_timer<chrono::steady_clock> steady_timer; } } # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 2 3 4 # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class socket_streambuf_io_context { protected: socket_streambuf_io_context(io_context* ctx) : default_io_context_(ctx) { } shared_ptr<io_context> default_io_context_; }; class socket_streambuf_buffers { protected: socket_streambuf_buffers() : get_buffer_(buffer_size), put_buffer_(buffer_size) { } enum { buffer_size = 512 }; std::vector<char> get_buffer_; std::vector<char> put_buffer_; }; } template <typename Protocol, typename Clock = chrono::steady_clock, typename WaitTraits = wait_traits<Clock> > class basic_socket_streambuf; # 137 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 template <typename Protocol, typename Clock, typename WaitTraits> class basic_socket_streambuf : public std::streambuf, private detail::socket_streambuf_io_context, private detail::socket_streambuf_buffers, public basic_socket<Protocol> { private: typedef detail::chrono_time_traits<Clock, WaitTraits> traits_helper; public: typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; typedef Clock clock_type; # 185 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 typedef typename traits_helper::time_type time_type; typedef typename traits_helper::duration_type duration_type; typedef typename traits_helper::time_type time_point; typedef typename traits_helper::duration_type duration; basic_socket_streambuf() : detail::socket_streambuf_io_context(new io_context), basic_socket<Protocol>(*default_io_context_), expiry_time_(max_expiry_time()) { init_buffers(); } explicit basic_socket_streambuf(basic_stream_socket<protocol_type> s) : detail::socket_streambuf_io_context(0), basic_socket<Protocol>(std::move(s)), expiry_time_(max_expiry_time()) { init_buffers(); } basic_socket_streambuf(basic_socket_streambuf&& other) : detail::socket_streambuf_io_context(other), basic_socket<Protocol>(std::move(other.socket())), ec_(other.ec_), expiry_time_(other.expiry_time_) { get_buffer_.swap(other.get_buffer_); put_buffer_.swap(other.put_buffer_); setg(other.eback(), other.gptr(), other.egptr()); setp(other.pptr(), other.epptr()); other.ec_ = boost::system::error_code(); other.expiry_time_ = max_expiry_time(); other.init_buffers(); } basic_socket_streambuf& operator=(basic_socket_streambuf&& other) { this->close(); socket() = std::move(other.socket()); detail::socket_streambuf_io_context::operator=(other); ec_ = other.ec_; expiry_time_ = other.expiry_time_; get_buffer_.swap(other.get_buffer_); put_buffer_.swap(other.put_buffer_); setg(other.eback(), other.gptr(), other.egptr()); setp(other.pptr(), other.epptr()); other.ec_ = boost::system::error_code(); other.expiry_time_ = max_expiry_time(); other.put_buffer_.resize(buffer_size); other.init_buffers(); return *this; } virtual ~basic_socket_streambuf() { if (pptr() != pbase()) overflow(traits_type::eof()); } # 261 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 basic_socket_streambuf* connect(const endpoint_type& endpoint) { init_buffers(); ec_ = boost::system::error_code(); this->connect_to_endpoints(&endpoint, &endpoint + 1); return !ec_ ? this : 0; } # 282 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 template <typename... T> basic_socket_streambuf* connect(T... x) { init_buffers(); typedef typename Protocol::resolver resolver_type; resolver_type resolver(socket().get_executor()); connect_to_endpoints(resolver.resolve(x..., ec_)); return !ec_ ? this : 0; } # 300 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 basic_socket_streambuf* close() { sync(); socket().close(ec_); if (!ec_) init_buffers(); return !ec_ ? this : 0; } basic_socket<Protocol>& socket() { return *this; } const boost::system::error_code& error() const { return ec_; } # 332 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 const boost::system::error_code& puberror() const { return error(); } time_point expires_at() const { return expiry_time_; } time_point expiry() const { return expiry_time_; } # 368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 void expires_at(const time_point& expiry_time) { expiry_time_ = expiry_time; } # 382 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 void expires_after(const duration& expiry_time) { expiry_time_ = traits_helper::add(traits_helper::now(), expiry_time); } duration expires_from_now() const { return traits_helper::subtract(expires_at(), traits_helper::now()); } # 408 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 3 4 void expires_from_now(const duration& expiry_time) { expiry_time_ = traits_helper::add(traits_helper::now(), expiry_time); } protected: int_type underflow() { if (gptr() != egptr()) return traits_type::eof(); for (;;) { if (traits_helper::less_than(expiry_time_, traits_helper::now())) { ec_ = boost::asio::error::timed_out; return traits_type::eof(); } if (!socket().native_non_blocking()) socket().native_non_blocking(true, ec_); detail::buffer_sequence_adapter<mutable_buffer, mutable_buffer> bufs(boost::asio::buffer(get_buffer_) + putback_max); detail::signed_size_type bytes = detail::socket_ops::recv( socket().native_handle(), bufs.buffers(), bufs.count(), 0, ec_); if (bytes > 0) { setg(&get_buffer_[0], &get_buffer_[0] + putback_max, &get_buffer_[0] + putback_max + bytes); return traits_type::to_int_type(*gptr()); } if (bytes == 0) { ec_ = boost::asio::error::eof; return traits_type::eof(); } if (ec_ != boost::asio::error::would_block && ec_ != boost::asio::error::try_again) return traits_type::eof(); if (detail::socket_ops::poll_read( socket().native_handle(), 0, timeout(), ec_) < 0) return traits_type::eof(); } } int_type overflow(int_type c) { char_type ch = traits_type::to_char_type(c); const_buffer output_buffer; if (put_buffer_.empty()) { if (traits_type::eq_int_type(c, traits_type::eof())) return traits_type::not_eof(c); output_buffer = boost::asio::buffer(&ch, sizeof(char_type)); } else { output_buffer = boost::asio::buffer(pbase(), (pptr() - pbase()) * sizeof(char_type)); } while (output_buffer.size() > 0) { if (traits_helper::less_than(expiry_time_, traits_helper::now())) { ec_ = boost::asio::error::timed_out; return traits_type::eof(); } if (!socket().native_non_blocking()) socket().native_non_blocking(true, ec_); detail::buffer_sequence_adapter< const_buffer, const_buffer> bufs(output_buffer); detail::signed_size_type bytes = detail::socket_ops::send( socket().native_handle(), bufs.buffers(), bufs.count(), 0, ec_); if (bytes > 0) { output_buffer += static_cast<std::size_t>(bytes); continue; } if (ec_ != boost::asio::error::would_block && ec_ != boost::asio::error::try_again) return traits_type::eof(); if (detail::socket_ops::poll_write( socket().native_handle(), 0, timeout(), ec_) < 0) return traits_type::eof(); } if (!put_buffer_.empty()) { setp(&put_buffer_[0], &put_buffer_[0] + put_buffer_.size()); if (traits_type::eq_int_type(c, traits_type::eof())) return traits_type::not_eof(c); *pptr() = ch; pbump(1); } return c; } int sync() { return overflow(traits_type::eof()); } std::streambuf* setbuf(char_type* s, std::streamsize n) { if (pptr() == pbase() && s == 0 && n == 0) { put_buffer_.clear(); setp(0, 0); sync(); return this; } return 0; } private: basic_socket_streambuf(const basic_socket_streambuf&) = delete; basic_socket_streambuf& operator=( const basic_socket_streambuf&) = delete; void init_buffers() { setg(&get_buffer_[0], &get_buffer_[0] + putback_max, &get_buffer_[0] + putback_max); if (put_buffer_.empty()) setp(0, 0); else setp(&put_buffer_[0], &put_buffer_[0] + put_buffer_.size()); } int timeout() const { int64_t msec = traits_helper::to_posix_duration( traits_helper::subtract(expiry_time_, traits_helper::now())).total_milliseconds(); if (msec > (std::numeric_limits<int>::max)()) msec = (std::numeric_limits<int>::max)(); else if (msec < 0) msec = 0; return static_cast<int>(msec); } template <typename EndpointSequence> void connect_to_endpoints(const EndpointSequence& endpoints) { this->connect_to_endpoints(endpoints.begin(), endpoints.end()); } template <typename EndpointIterator> void connect_to_endpoints(EndpointIterator begin, EndpointIterator end) { if (ec_) return; ec_ = boost::asio::error::not_found; for (EndpointIterator i = begin; i != end; ++i) { if (traits_helper::less_than(expiry_time_, traits_helper::now())) { ec_ = boost::asio::error::timed_out; return; } typename Protocol::endpoint ep(*i); socket().close(ec_); socket().open(ep.protocol(), ec_); if (ec_) continue; if (!socket().native_non_blocking()) socket().native_non_blocking(true, ec_); detail::socket_ops::connect(socket().native_handle(), ep.data(), ep.size(), ec_); if (!ec_) return; if (ec_ != boost::asio::error::in_progress && ec_ != boost::asio::error::would_block) continue; if (detail::socket_ops::poll_connect( socket().native_handle(), timeout(), ec_) < 0) continue; int connect_error = 0; size_t connect_error_len = sizeof(connect_error); if (detail::socket_ops::getsockopt(socket().native_handle(), 0, 1, 4, &connect_error, &connect_error_len, ec_) == detail::socket_error_retval) return; ec_ = boost::system::error_code(connect_error, boost::asio::error::get_system_category()); if (!ec_) return; } } static time_point max_expiry_time() { return (time_point::max)(); } enum { putback_max = 8 }; boost::system::error_code ec_; time_point expiry_time_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 682 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_streambuf.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 2 3 4 # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Protocol, typename Clock, typename WaitTraits> class socket_iostream_base { protected: socket_iostream_base() { } socket_iostream_base(socket_iostream_base&& other) : streambuf_(std::move(other.streambuf_)) { } socket_iostream_base(basic_stream_socket<Protocol> s) : streambuf_(std::move(s)) { } socket_iostream_base& operator=(socket_iostream_base&& other) { streambuf_ = std::move(other.streambuf_); return *this; } basic_socket_streambuf<Protocol, Clock, WaitTraits> streambuf_; }; } template <typename Protocol, typename Clock = chrono::steady_clock, typename WaitTraits = wait_traits<Clock> > class basic_socket_iostream; # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 template <typename Protocol, typename Clock, typename WaitTraits> class basic_socket_iostream : private detail::socket_iostream_base<Protocol, Clock, WaitTraits>, public std::basic_iostream<char> { private: typedef detail::chrono_time_traits<Clock, WaitTraits> traits_helper; public: typedef Protocol protocol_type; typedef typename Protocol::endpoint endpoint_type; typedef Clock clock_type; # 181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 typedef typename traits_helper::time_type time_type; typedef typename traits_helper::duration_type duration_type; typedef typename traits_helper::time_type time_point; typedef typename traits_helper::duration_type duration; basic_socket_iostream() : std::basic_iostream<char>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_) { this->setf(std::ios_base::unitbuf); } explicit basic_socket_iostream(basic_stream_socket<protocol_type> s) : detail::socket_iostream_base< Protocol, Clock, WaitTraits>(std::move(s)), std::basic_iostream<char>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_) { this->setf(std::ios_base::unitbuf); } basic_socket_iostream(basic_socket_iostream&& other) : detail::socket_iostream_base< Protocol, Clock, WaitTraits>(std::move(other)), std::basic_iostream<char>(std::move(other)) { this->set_rdbuf(&this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_); } basic_socket_iostream& operator=(basic_socket_iostream&& other) { std::basic_iostream<char>::operator=(std::move(other)); detail::socket_iostream_base< Protocol, Clock, WaitTraits>::operator=(std::move(other)); return *this; } # 243 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 template <typename... T> explicit basic_socket_iostream(T... x) : std::basic_iostream<char>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_) { this->setf(std::ios_base::unitbuf); if (rdbuf()->connect(x...) == 0) this->setstate(std::ios_base::failbit); } # 267 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 template <typename... T> void connect(T... x) { if (rdbuf()->connect(x...) == 0) this->setstate(std::ios_base::failbit); } void close() { if (rdbuf()->close() == 0) this->setstate(std::ios_base::failbit); } basic_socket_streambuf<Protocol, Clock, WaitTraits>* rdbuf() const { return const_cast<basic_socket_streambuf<Protocol, Clock, WaitTraits>*>( &this->detail::socket_iostream_base< Protocol, Clock, WaitTraits>::streambuf_); } basic_socket<Protocol>& socket() { return rdbuf()->socket(); } # 310 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 const boost::system::error_code& error() const { return rdbuf()->error(); } time_point expires_at() const { return rdbuf()->expires_at(); } time_point expiry() const { return rdbuf()->expiry(); } # 345 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 void expires_at(const time_point& expiry_time) { rdbuf()->expires_at(expiry_time); } # 359 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 void expires_after(const duration& expiry_time) { rdbuf()->expires_after(expiry_time); } duration expires_from_now() const { return rdbuf()->expires_from_now(); } # 384 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 3 4 void expires_from_now(const duration& expiry_time) { rdbuf()->expires_from_now(expiry_time); } private: basic_socket_iostream(const basic_socket_iostream&) = delete; basic_socket_iostream& operator=( const basic_socket_iostream&) = delete; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 401 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_socket_iostream.hpp" 2 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_stream_file.hpp" 1 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf_fwd.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf_fwd.hpp" 3 4 namespace boost { namespace asio { template <typename Allocator = std::allocator<char> > class basic_streambuf; template <typename Allocator = std::allocator<char> > class basic_streambuf_ref; } } # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 2 3 4 namespace boost { namespace asio { # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 template <typename Allocator> class basic_streambuf : public std::streambuf, private noncopyable { public: typedef const_buffers_1 const_buffers_type; typedef mutable_buffers_1 mutable_buffers_type; explicit basic_streambuf( std::size_t maximum_size = (std::numeric_limits<std::size_t>::max)(), const Allocator& allocator = Allocator()) : max_size_(maximum_size), buffer_(allocator) { std::size_t pend = (std::min<std::size_t>)(max_size_, buffer_delta); buffer_.resize((std::max<std::size_t>)(pend, 1)); setg(&buffer_[0], &buffer_[0], &buffer_[0]); setp(&buffer_[0], &buffer_[0] + pend); } # 159 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 std::size_t size() const noexcept { return pptr() - gptr(); } std::size_t max_size() const noexcept { return max_size_; } std::size_t capacity() const noexcept { return buffer_.capacity(); } # 193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 const_buffers_type data() const noexcept { return boost::asio::buffer(boost::asio::const_buffer(gptr(), (pptr() - gptr()) * sizeof(char_type))); } # 215 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 mutable_buffers_type prepare(std::size_t n) { reserve(n); return boost::asio::buffer(boost::asio::mutable_buffer( pptr(), n * sizeof(char_type))); } # 234 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 void commit(std::size_t n) { n = std::min<std::size_t>(n, epptr() - pptr()); pbump(static_cast<int>(n)); setg(eback(), gptr(), pptr()); } # 248 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 void consume(std::size_t n) { if (egptr() < pptr()) setg(&buffer_[0], gptr(), pptr()); if (gptr() + n > pptr()) n = pptr() - gptr(); gbump(static_cast<int>(n)); } protected: enum { buffer_delta = 128 }; int_type underflow() { if (gptr() < pptr()) { setg(&buffer_[0], gptr(), pptr()); return traits_type::to_int_type(*gptr()); } else { return traits_type::eof(); } } # 284 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 3 4 int_type overflow(int_type c) { if (!traits_type::eq_int_type(c, traits_type::eof())) { if (pptr() == epptr()) { std::size_t buffer_size = pptr() - gptr(); if (buffer_size < max_size_ && max_size_ - buffer_size < buffer_delta) { reserve(max_size_ - buffer_size); } else { reserve(buffer_delta); } } *pptr() = traits_type::to_char_type(c); pbump(1); return c; } return traits_type::not_eof(c); } void reserve(std::size_t n) { std::size_t gnext = gptr() - &buffer_[0]; std::size_t pnext = pptr() - &buffer_[0]; std::size_t pend = epptr() - &buffer_[0]; if (n <= pend - pnext) { return; } if (gnext > 0) { pnext -= gnext; std::memmove(&buffer_[0], &buffer_[0] + gnext, pnext); } if (n > pend - pnext) { if (n <= max_size_ && pnext <= max_size_ - n) { pend = pnext + n; buffer_.resize((std::max<std::size_t>)(pend, 1)); } else { std::length_error ex("boost::asio::streambuf too long"); boost::asio::detail::throw_exception(ex); } } setg(&buffer_[0], &buffer_[0], &buffer_[0] + pnext); setp(&buffer_[0] + pnext, &buffer_[0] + pend); } private: std::size_t max_size_; std::vector<char_type, Allocator> buffer_; friend std::size_t read_size_helper( basic_streambuf& sb, std::size_t max_size) { return std::min<std::size_t>( std::max<std::size_t>(512, sb.buffer_.capacity() - sb.size()), std::min<std::size_t>(max_size, sb.max_size() - sb.size())); } }; template <typename Allocator> class basic_streambuf_ref { public: typedef typename basic_streambuf<Allocator>::const_buffers_type const_buffers_type; typedef typename basic_streambuf<Allocator>::mutable_buffers_type mutable_buffers_type; explicit basic_streambuf_ref(basic_streambuf<Allocator>& sb) : sb_(sb) { } basic_streambuf_ref(const basic_streambuf_ref& other) noexcept : sb_(other.sb_) { } basic_streambuf_ref(basic_streambuf_ref&& other) noexcept : sb_(other.sb_) { } std::size_t size() const noexcept { return sb_.size(); } std::size_t max_size() const noexcept { return sb_.max_size(); } std::size_t capacity() const noexcept { return sb_.capacity(); } const_buffers_type data() const noexcept { return sb_.data(); } mutable_buffers_type prepare(std::size_t n) { return sb_.prepare(n); } void commit(std::size_t n) { return sb_.commit(n); } void consume(std::size_t n) { return sb_.consume(n); } private: basic_streambuf<Allocator>& sb_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 451 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_streambuf.hpp" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 1 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 2 3 4 namespace boost { namespace asio { # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename Executor = any_io_executor> class basic_writable_pipe { private: class initiate_async_write_some; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_writable_pipe<Executor1> other; }; # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 typedef detail::reactive_descriptor_service::native_handle_type native_handle_type; typedef basic_writable_pipe lowest_layer_type; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 explicit basic_writable_pipe(const executor_type& ex) : impl_(0, ex) { } # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename ExecutionContext> explicit basic_writable_pipe(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { } # 137 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 basic_writable_pipe(const executor_type& ex, const native_handle_type& native_pipe) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); boost::asio::detail::throw_error(ec, "assign"); } # 160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename ExecutionContext> basic_writable_pipe(ExecutionContext& context, const native_handle_type& native_pipe, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); boost::asio::detail::throw_error(ec, "assign"); } # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 basic_writable_pipe(basic_writable_pipe&& other) : impl_(std::move(other.impl_)) { } # 202 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 basic_writable_pipe& operator=(basic_writable_pipe&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Executor1> friend class basic_writable_pipe; # 223 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename Executor1> basic_writable_pipe(basic_writable_pipe<Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(std::move(other.impl_)) { } # 244 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_writable_pipe& >::type operator=(basic_writable_pipe<Executor1>&& other) { basic_writable_pipe tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } # 262 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 ~basic_writable_pipe() { } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 281 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 lowest_layer_type& lowest_layer() { return *this; } # 295 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 const lowest_layer_type& lowest_layer() const { return *this; } # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 void assign(const native_handle_type& native_pipe) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); boost::asio::detail::throw_error(ec, "assign"); } # 323 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 boost::system::error_code assign(const native_handle_type& native_pipe, boost::system::error_code& ec) { impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec); return ec; } bool is_open() const { return impl_.get_service().is_open(impl_.get_implementation()); } # 344 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 void close() { boost::system::error_code ec; impl_.get_service().close(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "close"); } # 359 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 boost::system::error_code close(boost::system::error_code& ec) { impl_.get_service().close(impl_.get_implementation(), ec); return ec; } # 384 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 native_handle_type release() { boost::system::error_code ec; native_handle_type s = impl_.get_service().release( impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "release"); return s; } # 412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 native_handle_type release(boost::system::error_code& ec) { return impl_.get_service().release(impl_.get_implementation(), ec); } native_handle_type native_handle() { return impl_.get_service().native_handle(impl_.get_implementation()); } # 436 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 451 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 484 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = impl_.get_service().write_some( impl_.get_implementation(), buffers, ec); boost::asio::detail::throw_error(ec, "write_some"); return s; } # 510 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec) { return impl_.get_service().write_some( impl_.get_implementation(), buffers, ec); } # 559 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_write_some(this), token, buffers); } private: basic_writable_pipe(const basic_writable_pipe&) = delete; basic_writable_pipe& operator=(const basic_writable_pipe&) = delete; class initiate_async_write_some { public: typedef Executor executor_type; explicit initiate_async_write_some(basic_writable_pipe* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_write_some( self_->impl_.get_implementation(), buffers, handler2.value, self_->impl_.get_executor()); } private: basic_writable_pipe* self_; }; detail::io_object_impl<detail::reactive_descriptor_service, Executor> impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 629 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/basic_writable_pipe.hpp" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename = void> struct allocator_binder_result_type { protected: typedef void result_type_or_void; }; template <typename T> struct allocator_binder_result_type<T, typename void_type<typename T::result_type>::type> { typedef typename T::result_type result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct allocator_binder_result_type<R(*)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct allocator_binder_result_type<R(&)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct allocator_binder_result_type<R(*)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct allocator_binder_result_type<R(&)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct allocator_binder_result_type<R(*)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct allocator_binder_result_type<R(&)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename T, typename = void> struct allocator_binder_argument_type {}; template <typename T> struct allocator_binder_argument_type<T, typename void_type<typename T::argument_type>::type> { typedef typename T::argument_type argument_type; }; template <typename R, typename A1> struct allocator_binder_argument_type<R(*)(A1)> { typedef A1 argument_type; }; template <typename R, typename A1> struct allocator_binder_argument_type<R(&)(A1)> { typedef A1 argument_type; }; template <typename T, typename = void> struct allocator_binder_argument_types {}; template <typename T> struct allocator_binder_argument_types<T, typename void_type<typename T::first_argument_type>::type> { typedef typename T::first_argument_type first_argument_type; typedef typename T::second_argument_type second_argument_type; }; template <typename R, typename A1, typename A2> struct allocator_binder_argument_type<R(*)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename R, typename A1, typename A2> struct allocator_binder_argument_type<R(&)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename T, typename = void> struct allocator_binder_result_of0 { typedef void type; }; template <typename T> struct allocator_binder_result_of0<T, typename void_type<typename result_of<T()>::type>::type> { typedef typename result_of<T()>::type type; }; } template <typename T, typename Allocator> class allocator_binder : public detail::allocator_binder_result_type<T>, public detail::allocator_binder_argument_type<T>, public detail::allocator_binder_argument_types<T> { public: typedef T target_type; typedef Allocator allocator_type; # 250 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 3 4 template <typename U> allocator_binder(const allocator_type& s, U&& u) : allocator_(s), target_(static_cast<U&&>(u)) { } allocator_binder(const allocator_binder& other) : allocator_(other.get_allocator()), target_(other.get()) { } allocator_binder(const allocator_type& s, const allocator_binder& other) : allocator_(s), target_(other.get()) { } template <typename U, typename OtherAllocator> allocator_binder( const allocator_binder<U, OtherAllocator>& other) : allocator_(other.get_allocator()), target_(other.get()) { } template <typename U, typename OtherAllocator> allocator_binder(const allocator_type& s, const allocator_binder<U, OtherAllocator>& other) : allocator_(s), target_(other.get()) { } allocator_binder(allocator_binder&& other) : allocator_(static_cast<allocator_type&&>( other.get_allocator())), target_(static_cast<T&&>(other.get())) { } allocator_binder(const allocator_type& s, allocator_binder&& other) : allocator_(s), target_(static_cast<T&&>(other.get())) { } template <typename U, typename OtherAllocator> allocator_binder( allocator_binder<U, OtherAllocator>&& other) : allocator_(static_cast<OtherAllocator&&>( other.get_allocator())), target_(static_cast<U&&>(other.get())) { } template <typename U, typename OtherAllocator> allocator_binder(const allocator_type& s, allocator_binder<U, OtherAllocator>&& other) : allocator_(s), target_(static_cast<U&&>(other.get())) { } ~allocator_binder() { } target_type& get() noexcept { return target_; } const target_type& get() const noexcept { return target_; } allocator_type get_allocator() const noexcept { return allocator_; } # 372 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 3 4 template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) { return target_(static_cast<Args&&>(args)...); } template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) const { return target_(static_cast<Args&&>(args)...); } # 453 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 3 4 private: Allocator allocator_; T target_; }; template <typename Allocator, typename T> [[nodiscard]] inline allocator_binder<typename decay<T>::type, Allocator> bind_allocator(const Allocator& s, T&& t) { return allocator_binder< typename decay<T>::type, Allocator>( s, static_cast<T&&>(t)); } namespace detail { template <typename TargetAsyncResult, typename Allocator, typename = void> class allocator_binder_completion_handler_async_result { public: template <typename T> explicit allocator_binder_completion_handler_async_result(T&) { } }; template <typename TargetAsyncResult, typename Allocator> class allocator_binder_completion_handler_async_result< TargetAsyncResult, Allocator, typename void_type< typename TargetAsyncResult::completion_handler_type >::type> { public: typedef allocator_binder< typename TargetAsyncResult::completion_handler_type, Allocator> completion_handler_type; explicit allocator_binder_completion_handler_async_result( typename TargetAsyncResult::completion_handler_type& handler) : target_(handler) { } typename TargetAsyncResult::return_type get() { return target_.get(); } private: TargetAsyncResult target_; }; template <typename TargetAsyncResult, typename = void> struct allocator_binder_async_result_return_type { }; template <typename TargetAsyncResult> struct allocator_binder_async_result_return_type< TargetAsyncResult, typename void_type< typename TargetAsyncResult::return_type >::type> { typedef typename TargetAsyncResult::return_type return_type; }; } template <typename T, typename Allocator, typename Signature> class async_result<allocator_binder<T, Allocator>, Signature> : public detail::allocator_binder_completion_handler_async_result< async_result<T, Signature>, Allocator>, public detail::allocator_binder_async_result_return_type< async_result<T, Signature> > { public: explicit async_result(allocator_binder<T, Allocator>& b) : detail::allocator_binder_completion_handler_async_result< async_result<T, Signature>, Allocator>(b.get()) { } template <typename Initiation> struct init_wrapper { template <typename Init> init_wrapper(const Allocator& allocator, Init&& init) : allocator_(allocator), initiation_(static_cast<Init&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) { static_cast<Initiation&&>(initiation_)( allocator_binder< typename decay<Handler>::type, Allocator>( allocator_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) const { initiation_( allocator_binder< typename decay<Handler>::type, Allocator>( allocator_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } # 630 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 3 4 Allocator allocator_; Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<T, Signature>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<RawCompletionToken>().get(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<T, Signature>( init_wrapper<typename decay<Initiation>::type>( token.get_allocator(), static_cast<Initiation&&>(initiation)), token.get(), static_cast<Args&&>(args)...); } # 697 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 3 4 private: async_result(const async_result&) = delete; async_result& operator=(const async_result&) = delete; async_result<T, Signature> target_; }; template <template <typename, typename> class Associator, typename T, typename Allocator, typename DefaultCandidate> struct associator<Associator, allocator_binder<T, Allocator>, DefaultCandidate> : Associator<T, DefaultCandidate> { static typename Associator<T, DefaultCandidate>::type get(const allocator_binder<T, Allocator>& b) noexcept { return Associator<T, DefaultCandidate>::get(b.get()); } static auto get(const allocator_binder<T, Allocator>& b, const DefaultCandidate& c) noexcept -> decltype ( Associator<T, DefaultCandidate>::get(b.get(), c)) { return Associator<T, DefaultCandidate>::get(b.get(), c); } }; template <typename T, typename Allocator, typename Allocator1> struct associated_allocator< allocator_binder<T, Allocator>, Allocator1> { typedef Allocator type; static auto get( const allocator_binder<T, Allocator>& b, const Allocator1& = Allocator1()) noexcept -> decltype (b.get_allocator()) { return b.get_allocator(); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 750 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_allocator.hpp" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename = void> struct cancellation_slot_binder_result_type { protected: typedef void result_type_or_void; }; template <typename T> struct cancellation_slot_binder_result_type<T, typename void_type<typename T::result_type>::type> { typedef typename T::result_type result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct cancellation_slot_binder_result_type<R(*)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct cancellation_slot_binder_result_type<R(&)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct cancellation_slot_binder_result_type<R(*)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct cancellation_slot_binder_result_type<R(&)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct cancellation_slot_binder_result_type<R(*)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct cancellation_slot_binder_result_type<R(&)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename T, typename = void> struct cancellation_slot_binder_argument_type {}; template <typename T> struct cancellation_slot_binder_argument_type<T, typename void_type<typename T::argument_type>::type> { typedef typename T::argument_type argument_type; }; template <typename R, typename A1> struct cancellation_slot_binder_argument_type<R(*)(A1)> { typedef A1 argument_type; }; template <typename R, typename A1> struct cancellation_slot_binder_argument_type<R(&)(A1)> { typedef A1 argument_type; }; template <typename T, typename = void> struct cancellation_slot_binder_argument_types {}; template <typename T> struct cancellation_slot_binder_argument_types<T, typename void_type<typename T::first_argument_type>::type> { typedef typename T::first_argument_type first_argument_type; typedef typename T::second_argument_type second_argument_type; }; template <typename R, typename A1, typename A2> struct cancellation_slot_binder_argument_type<R(*)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename R, typename A1, typename A2> struct cancellation_slot_binder_argument_type<R(&)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename T, typename = void> struct cancellation_slot_binder_result_of0 { typedef void type; }; template <typename T> struct cancellation_slot_binder_result_of0<T, typename void_type<typename result_of<T()>::type>::type> { typedef typename result_of<T()>::type type; }; } template <typename T, typename CancellationSlot> class cancellation_slot_binder : public detail::cancellation_slot_binder_result_type<T>, public detail::cancellation_slot_binder_argument_type<T>, public detail::cancellation_slot_binder_argument_types<T> { public: typedef T target_type; typedef CancellationSlot cancellation_slot_type; # 250 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 3 4 template <typename U> cancellation_slot_binder(const cancellation_slot_type& s, U&& u) : slot_(s), target_(static_cast<U&&>(u)) { } cancellation_slot_binder(const cancellation_slot_binder& other) : slot_(other.get_cancellation_slot()), target_(other.get()) { } cancellation_slot_binder(const cancellation_slot_type& s, const cancellation_slot_binder& other) : slot_(s), target_(other.get()) { } template <typename U, typename OtherCancellationSlot> cancellation_slot_binder( const cancellation_slot_binder<U, OtherCancellationSlot>& other) : slot_(other.get_cancellation_slot()), target_(other.get()) { } template <typename U, typename OtherCancellationSlot> cancellation_slot_binder(const cancellation_slot_type& s, const cancellation_slot_binder<U, OtherCancellationSlot>& other) : slot_(s), target_(other.get()) { } cancellation_slot_binder(cancellation_slot_binder&& other) : slot_(static_cast<cancellation_slot_type&&>( other.get_cancellation_slot())), target_(static_cast<T&&>(other.get())) { } cancellation_slot_binder(const cancellation_slot_type& s, cancellation_slot_binder&& other) : slot_(s), target_(static_cast<T&&>(other.get())) { } template <typename U, typename OtherCancellationSlot> cancellation_slot_binder( cancellation_slot_binder<U, OtherCancellationSlot>&& other) : slot_(static_cast<OtherCancellationSlot&&>( other.get_cancellation_slot())), target_(static_cast<U&&>(other.get())) { } template <typename U, typename OtherCancellationSlot> cancellation_slot_binder(const cancellation_slot_type& s, cancellation_slot_binder<U, OtherCancellationSlot>&& other) : slot_(s), target_(static_cast<U&&>(other.get())) { } ~cancellation_slot_binder() { } target_type& get() noexcept { return target_; } const target_type& get() const noexcept { return target_; } cancellation_slot_type get_cancellation_slot() const noexcept { return slot_; } # 373 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 3 4 template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) { return target_(static_cast<Args&&>(args)...); } template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) const { return target_(static_cast<Args&&>(args)...); } # 454 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 3 4 private: CancellationSlot slot_; T target_; }; template <typename CancellationSlot, typename T> [[nodiscard]] inline cancellation_slot_binder<typename decay<T>::type, CancellationSlot> bind_cancellation_slot(const CancellationSlot& s, T&& t) { return cancellation_slot_binder< typename decay<T>::type, CancellationSlot>( s, static_cast<T&&>(t)); } namespace detail { template <typename TargetAsyncResult, typename CancellationSlot, typename = void> class cancellation_slot_binder_completion_handler_async_result { public: template <typename T> explicit cancellation_slot_binder_completion_handler_async_result(T&) { } }; template <typename TargetAsyncResult, typename CancellationSlot> class cancellation_slot_binder_completion_handler_async_result< TargetAsyncResult, CancellationSlot, typename void_type< typename TargetAsyncResult::completion_handler_type >::type> { public: typedef cancellation_slot_binder< typename TargetAsyncResult::completion_handler_type, CancellationSlot> completion_handler_type; explicit cancellation_slot_binder_completion_handler_async_result( typename TargetAsyncResult::completion_handler_type& handler) : target_(handler) { } typename TargetAsyncResult::return_type get() { return target_.get(); } private: TargetAsyncResult target_; }; template <typename TargetAsyncResult, typename = void> struct cancellation_slot_binder_async_result_return_type { }; template <typename TargetAsyncResult> struct cancellation_slot_binder_async_result_return_type< TargetAsyncResult, typename void_type< typename TargetAsyncResult::return_type >::type> { typedef typename TargetAsyncResult::return_type return_type; }; } template <typename T, typename CancellationSlot, typename Signature> class async_result<cancellation_slot_binder<T, CancellationSlot>, Signature> : public detail::cancellation_slot_binder_completion_handler_async_result< async_result<T, Signature>, CancellationSlot>, public detail::cancellation_slot_binder_async_result_return_type< async_result<T, Signature> > { public: explicit async_result(cancellation_slot_binder<T, CancellationSlot>& b) : detail::cancellation_slot_binder_completion_handler_async_result< async_result<T, Signature>, CancellationSlot>(b.get()) { } template <typename Initiation> struct init_wrapper { template <typename Init> init_wrapper(const CancellationSlot& slot, Init&& init) : slot_(slot), initiation_(static_cast<Init&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) { static_cast<Initiation&&>(initiation_)( cancellation_slot_binder< typename decay<Handler>::type, CancellationSlot>( slot_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) const { initiation_( cancellation_slot_binder< typename decay<Handler>::type, CancellationSlot>( slot_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } # 632 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 3 4 CancellationSlot slot_; Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<T, Signature>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<RawCompletionToken>().get(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<T, Signature>( init_wrapper<typename decay<Initiation>::type>( token.get_cancellation_slot(), static_cast<Initiation&&>(initiation)), token.get(), static_cast<Args&&>(args)...); } # 699 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 3 4 private: async_result(const async_result&) = delete; async_result& operator=(const async_result&) = delete; async_result<T, Signature> target_; }; template <template <typename, typename> class Associator, typename T, typename CancellationSlot, typename DefaultCandidate> struct associator<Associator, cancellation_slot_binder<T, CancellationSlot>, DefaultCandidate> : Associator<T, DefaultCandidate> { static typename Associator<T, DefaultCandidate>::type get(const cancellation_slot_binder<T, CancellationSlot>& b) noexcept { return Associator<T, DefaultCandidate>::get(b.get()); } static auto get(const cancellation_slot_binder<T, CancellationSlot>& b, const DefaultCandidate& c) noexcept -> decltype ( Associator<T, DefaultCandidate>::get(b.get(), c)) { return Associator<T, DefaultCandidate>::get(b.get(), c); } }; template <typename T, typename CancellationSlot, typename CancellationSlot1> struct associated_cancellation_slot< cancellation_slot_binder<T, CancellationSlot>, CancellationSlot1> { typedef CancellationSlot type; static auto get( const cancellation_slot_binder<T, CancellationSlot>& b, const CancellationSlot1& = CancellationSlot1()) noexcept -> decltype (b.get_cancellation_slot()) { return b.get_cancellation_slot(); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 753 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_cancellation_slot.hpp" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 2 3 4 namespace boost { namespace asio { # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 3 4 struct executor_arg_t { constexpr executor_arg_t() noexcept { } }; # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 3 4 constexpr executor_arg_t executor_arg; # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 3 4 template <typename T, typename Executor> struct uses_executor : false_type {}; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/uses_executor.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename = void> struct executor_binder_result_type { protected: typedef void result_type_or_void; }; template <typename T> struct executor_binder_result_type<T, typename void_type<typename T::result_type>::type> { typedef typename T::result_type result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct executor_binder_result_type<R(*)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct executor_binder_result_type<R(&)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct executor_binder_result_type<R(*)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct executor_binder_result_type<R(&)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct executor_binder_result_type<R(*)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct executor_binder_result_type<R(&)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename T, typename = void> struct executor_binder_argument_type {}; template <typename T> struct executor_binder_argument_type<T, typename void_type<typename T::argument_type>::type> { typedef typename T::argument_type argument_type; }; template <typename R, typename A1> struct executor_binder_argument_type<R(*)(A1)> { typedef A1 argument_type; }; template <typename R, typename A1> struct executor_binder_argument_type<R(&)(A1)> { typedef A1 argument_type; }; template <typename T, typename = void> struct executor_binder_argument_types {}; template <typename T> struct executor_binder_argument_types<T, typename void_type<typename T::first_argument_type>::type> { typedef typename T::first_argument_type first_argument_type; typedef typename T::second_argument_type second_argument_type; }; template <typename R, typename A1, typename A2> struct executor_binder_argument_type<R(*)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename R, typename A1, typename A2> struct executor_binder_argument_type<R(&)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename T, typename Executor, bool UsesExecutor> class executor_binder_base; template <typename T, typename Executor> class executor_binder_base<T, Executor, true> { protected: template <typename E, typename U> executor_binder_base(E&& e, U&& u) : executor_(static_cast<E&&>(e)), target_(executor_arg_t(), executor_, static_cast<U&&>(u)) { } Executor executor_; T target_; }; template <typename T, typename Executor> class executor_binder_base<T, Executor, false> { protected: template <typename E, typename U> executor_binder_base(E&& e, U&& u) : executor_(static_cast<E&&>(e)), target_(static_cast<U&&>(u)) { } Executor executor_; T target_; }; template <typename T, typename = void> struct executor_binder_result_of0 { typedef void type; }; template <typename T> struct executor_binder_result_of0<T, typename void_type<typename result_of<T()>::type>::type> { typedef typename result_of<T()>::type type; }; } template <typename T, typename Executor> class executor_binder : public detail::executor_binder_result_type<T>, public detail::executor_binder_argument_type<T>, public detail::executor_binder_argument_types<T>, private detail::executor_binder_base< T, Executor, uses_executor<T, Executor>::value> { public: typedef T target_type; typedef Executor executor_type; # 292 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 3 4 template <typename U> executor_binder(executor_arg_t, const executor_type& e, U&& u) : base_type(e, static_cast<U&&>(u)) { } executor_binder(const executor_binder& other) : base_type(other.get_executor(), other.get()) { } executor_binder(executor_arg_t, const executor_type& e, const executor_binder& other) : base_type(e, other.get()) { } template <typename U, typename OtherExecutor> executor_binder(const executor_binder<U, OtherExecutor>& other) : base_type(other.get_executor(), other.get()) { } template <typename U, typename OtherExecutor> executor_binder(executor_arg_t, const executor_type& e, const executor_binder<U, OtherExecutor>& other) : base_type(e, other.get()) { } executor_binder(executor_binder&& other) : base_type(static_cast<executor_type&&>(other.get_executor()), static_cast<T&&>(other.get())) { } executor_binder(executor_arg_t, const executor_type& e, executor_binder&& other) : base_type(e, static_cast<T&&>(other.get())) { } template <typename U, typename OtherExecutor> executor_binder(executor_binder<U, OtherExecutor>&& other) : base_type(static_cast<OtherExecutor&&>(other.get_executor()), static_cast<U&&>(other.get())) { } template <typename U, typename OtherExecutor> executor_binder(executor_arg_t, const executor_type& e, executor_binder<U, OtherExecutor>&& other) : base_type(e, static_cast<U&&>(other.get())) { } ~executor_binder() { } target_type& get() noexcept { return this->target_; } const target_type& get() const noexcept { return this->target_; } executor_type get_executor() const noexcept { return this->executor_; } # 403 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 3 4 template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) { return this->target_(static_cast<Args&&>(args)...); } template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) const { return this->target_(static_cast<Args&&>(args)...); } # 483 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 3 4 private: typedef detail::executor_binder_base<T, Executor, uses_executor<T, Executor>::value> base_type; }; template <typename Executor, typename T> [[nodiscard]] inline executor_binder<typename decay<T>::type, Executor> bind_executor(const Executor& ex, T&& t, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) { return executor_binder<typename decay<T>::type, Executor>( executor_arg_t(), ex, static_cast<T&&>(t)); } template <typename ExecutionContext, typename T> [[nodiscard]] inline executor_binder<typename decay<T>::type, typename ExecutionContext::executor_type> bind_executor(ExecutionContext& ctx, T&& t, typename constraint<is_convertible< ExecutionContext&, execution_context&>::value>::type = 0) { return executor_binder<typename decay<T>::type, typename ExecutionContext::executor_type>( executor_arg_t(), ctx.get_executor(), static_cast<T&&>(t)); } template <typename T, typename Executor> struct uses_executor<executor_binder<T, Executor>, Executor> : true_type {}; namespace detail { template <typename TargetAsyncResult, typename Executor, typename = void> class executor_binder_completion_handler_async_result { public: template <typename T> explicit executor_binder_completion_handler_async_result(T&) { } }; template <typename TargetAsyncResult, typename Executor> class executor_binder_completion_handler_async_result< TargetAsyncResult, Executor, typename void_type< typename TargetAsyncResult::completion_handler_type >::type> { public: typedef executor_binder< typename TargetAsyncResult::completion_handler_type, Executor> completion_handler_type; explicit executor_binder_completion_handler_async_result( typename TargetAsyncResult::completion_handler_type& handler) : target_(handler) { } typename TargetAsyncResult::return_type get() { return target_.get(); } private: TargetAsyncResult target_; }; template <typename TargetAsyncResult, typename = void> struct executor_binder_async_result_return_type { }; template <typename TargetAsyncResult> struct executor_binder_async_result_return_type< TargetAsyncResult, typename void_type< typename TargetAsyncResult::return_type >::type> { typedef typename TargetAsyncResult::return_type return_type; }; } template <typename T, typename Executor, typename Signature> class async_result<executor_binder<T, Executor>, Signature> : public detail::executor_binder_completion_handler_async_result< async_result<T, Signature>, Executor>, public detail::executor_binder_async_result_return_type< async_result<T, Signature> > { public: explicit async_result(executor_binder<T, Executor>& b) : detail::executor_binder_completion_handler_async_result< async_result<T, Signature>, Executor>(b.get()) { } template <typename Initiation> struct init_wrapper { template <typename Init> init_wrapper(const Executor& ex, Init&& init) : ex_(ex), initiation_(static_cast<Init&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) { static_cast<Initiation&&>(initiation_)( executor_binder<typename decay<Handler>::type, Executor>( executor_arg_t(), ex_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) const { initiation_( executor_binder<typename decay<Handler>::type, Executor>( executor_arg_t(), ex_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } # 671 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 3 4 Executor ex_; Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<T, Signature>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<RawCompletionToken>().get(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<T, Signature>( init_wrapper<typename decay<Initiation>::type>( token.get_executor(), static_cast<Initiation&&>(initiation)), token.get(), static_cast<Args&&>(args)...); } # 735 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 3 4 private: async_result(const async_result&) = delete; async_result& operator=(const async_result&) = delete; }; template <template <typename, typename> class Associator, typename T, typename Executor, typename DefaultCandidate> struct associator<Associator, executor_binder<T, Executor>, DefaultCandidate> : Associator<T, DefaultCandidate> { static typename Associator<T, DefaultCandidate>::type get(const executor_binder<T, Executor>& b) noexcept { return Associator<T, DefaultCandidate>::get(b.get()); } static auto get(const executor_binder<T, Executor>& b, const DefaultCandidate& c) noexcept -> decltype ( Associator<T, DefaultCandidate>::get(b.get(), c)) { return Associator<T, DefaultCandidate>::get(b.get(), c); } }; template <typename T, typename Executor, typename Executor1> struct associated_executor<executor_binder<T, Executor>, Executor1> { typedef Executor type; static auto get( const executor_binder<T, Executor>& b, const Executor1& = Executor1()) noexcept -> decltype (b.get_executor()) { return b.get_executor(); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 782 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_executor.hpp" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename = void> struct immediate_executor_binder_result_type { protected: typedef void result_type_or_void; }; template <typename T> struct immediate_executor_binder_result_type<T, typename void_type<typename T::result_type>::type> { typedef typename T::result_type result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct immediate_executor_binder_result_type<R(*)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R> struct immediate_executor_binder_result_type<R(&)()> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct immediate_executor_binder_result_type<R(*)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1> struct immediate_executor_binder_result_type<R(&)(A1)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct immediate_executor_binder_result_type<R(*)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename R, typename A1, typename A2> struct immediate_executor_binder_result_type<R(&)(A1, A2)> { typedef R result_type; protected: typedef result_type result_type_or_void; }; template <typename T, typename = void> struct immediate_executor_binder_argument_type {}; template <typename T> struct immediate_executor_binder_argument_type<T, typename void_type<typename T::argument_type>::type> { typedef typename T::argument_type argument_type; }; template <typename R, typename A1> struct immediate_executor_binder_argument_type<R(*)(A1)> { typedef A1 argument_type; }; template <typename R, typename A1> struct immediate_executor_binder_argument_type<R(&)(A1)> { typedef A1 argument_type; }; template <typename T, typename = void> struct immediate_executor_binder_argument_types {}; template <typename T> struct immediate_executor_binder_argument_types<T, typename void_type<typename T::first_argument_type>::type> { typedef typename T::first_argument_type first_argument_type; typedef typename T::second_argument_type second_argument_type; }; template <typename R, typename A1, typename A2> struct immediate_executor_binder_argument_type<R(*)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename R, typename A1, typename A2> struct immediate_executor_binder_argument_type<R(&)(A1, A2)> { typedef A1 first_argument_type; typedef A2 second_argument_type; }; template <typename T, typename = void> struct immediate_executor_binder_result_of0 { typedef void type; }; template <typename T> struct immediate_executor_binder_result_of0<T, typename void_type<typename result_of<T()>::type>::type> { typedef typename result_of<T()>::type type; }; } template <typename T, typename Executor> class immediate_executor_binder : public detail::immediate_executor_binder_result_type<T>, public detail::immediate_executor_binder_argument_type<T>, public detail::immediate_executor_binder_argument_types<T> { public: typedef T target_type; typedef Executor immediate_executor_type; # 250 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 3 4 template <typename U> immediate_executor_binder(const immediate_executor_type& e, U&& u) : executor_(e), target_(static_cast<U&&>(u)) { } immediate_executor_binder(const immediate_executor_binder& other) : executor_(other.get_immediate_executor()), target_(other.get()) { } immediate_executor_binder(const immediate_executor_type& e, const immediate_executor_binder& other) : executor_(e), target_(other.get()) { } template <typename U, typename OtherExecutor> immediate_executor_binder( const immediate_executor_binder<U, OtherExecutor>& other) : executor_(other.get_immediate_executor()), target_(other.get()) { } template <typename U, typename OtherExecutor> immediate_executor_binder(const immediate_executor_type& e, const immediate_executor_binder<U, OtherExecutor>& other) : executor_(e), target_(other.get()) { } immediate_executor_binder(immediate_executor_binder&& other) : executor_(static_cast<immediate_executor_type&&>( other.get_immediate_executor())), target_(static_cast<T&&>(other.get())) { } immediate_executor_binder(const immediate_executor_type& e, immediate_executor_binder&& other) : executor_(e), target_(static_cast<T&&>(other.get())) { } template <typename U, typename OtherExecutor> immediate_executor_binder( immediate_executor_binder<U, OtherExecutor>&& other) : executor_(static_cast<OtherExecutor&&>( other.get_immediate_executor())), target_(static_cast<U&&>(other.get())) { } template <typename U, typename OtherExecutor> immediate_executor_binder(const immediate_executor_type& e, immediate_executor_binder<U, OtherExecutor>&& other) : executor_(e), target_(static_cast<U&&>(other.get())) { } ~immediate_executor_binder() { } target_type& get() noexcept { return target_; } const target_type& get() const noexcept { return target_; } immediate_executor_type get_immediate_executor() const noexcept { return executor_; } # 373 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 3 4 template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) { return target_(static_cast<Args&&>(args)...); } template <typename... Args> typename result_of<T(Args...)>::type operator()( Args&&... args) const { return target_(static_cast<Args&&>(args)...); } # 454 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 3 4 private: Executor executor_; T target_; }; template <typename Executor, typename T> [[nodiscard]] inline immediate_executor_binder<typename decay<T>::type, Executor> bind_immediate_executor(const Executor& e, T&& t) { return immediate_executor_binder< typename decay<T>::type, Executor>( e, static_cast<T&&>(t)); } namespace detail { template <typename TargetAsyncResult, typename Executor, typename = void> class immediate_executor_binder_completion_handler_async_result { public: template <typename T> explicit immediate_executor_binder_completion_handler_async_result(T&) { } }; template <typename TargetAsyncResult, typename Executor> class immediate_executor_binder_completion_handler_async_result< TargetAsyncResult, Executor, typename void_type< typename TargetAsyncResult::completion_handler_type >::type> { public: typedef immediate_executor_binder< typename TargetAsyncResult::completion_handler_type, Executor> completion_handler_type; explicit immediate_executor_binder_completion_handler_async_result( typename TargetAsyncResult::completion_handler_type& handler) : target_(handler) { } typename TargetAsyncResult::return_type get() { return target_.get(); } private: TargetAsyncResult target_; }; template <typename TargetAsyncResult, typename = void> struct immediate_executor_binder_async_result_return_type { }; template <typename TargetAsyncResult> struct immediate_executor_binder_async_result_return_type< TargetAsyncResult, typename void_type< typename TargetAsyncResult::return_type >::type> { typedef typename TargetAsyncResult::return_type return_type; }; } template <typename T, typename Executor, typename Signature> class async_result<immediate_executor_binder<T, Executor>, Signature> : public detail::immediate_executor_binder_completion_handler_async_result< async_result<T, Signature>, Executor>, public detail::immediate_executor_binder_async_result_return_type< async_result<T, Signature> > { public: explicit async_result(immediate_executor_binder<T, Executor>& b) : detail::immediate_executor_binder_completion_handler_async_result< async_result<T, Signature>, Executor>(b.get()) { } template <typename Initiation> struct init_wrapper { template <typename Init> init_wrapper(const Executor& e, Init&& init) : executor_(e), initiation_(static_cast<Init&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) { static_cast<Initiation&&>(initiation_)( immediate_executor_binder< typename decay<Handler>::type, Executor>( executor_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } template <typename Handler, typename... Args> void operator()( Handler&& handler, Args&&... args) const { initiation_( immediate_executor_binder< typename decay<Handler>::type, Executor>( executor_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } # 631 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 3 4 Executor executor_; Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<T, Signature>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<RawCompletionToken>().get(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<T, Signature>( init_wrapper<typename decay<Initiation>::type>( token.get_immediate_executor(), static_cast<Initiation&&>(initiation)), token.get(), static_cast<Args&&>(args)...); } # 698 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 3 4 private: async_result(const async_result&) = delete; async_result& operator=(const async_result&) = delete; async_result<T, Signature> target_; }; template <template <typename, typename> class Associator, typename T, typename Executor, typename DefaultCandidate> struct associator<Associator, immediate_executor_binder<T, Executor>, DefaultCandidate> : Associator<T, DefaultCandidate> { static typename Associator<T, DefaultCandidate>::type get(const immediate_executor_binder<T, Executor>& b) noexcept { return Associator<T, DefaultCandidate>::get(b.get()); } static auto get(const immediate_executor_binder<T, Executor>& b, const DefaultCandidate& c) noexcept -> decltype ( Associator<T, DefaultCandidate>::get(b.get(), c)) { return Associator<T, DefaultCandidate>::get(b.get(), c); } }; template <typename T, typename Executor, typename Executor1> struct associated_immediate_executor< immediate_executor_binder<T, Executor>, Executor1> { typedef Executor type; static auto get( const immediate_executor_binder<T, Executor>& b, const Executor1& = Executor1()) noexcept -> decltype (b.get_immediate_executor()) { return b.get_immediate_executor(); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 752 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/bind_immediate_executor.hpp" 2 3 4 # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 1 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class buffer_registration_base { protected: static mutable_registered_buffer make_buffer(const mutable_buffer& b, const void* scope, int index) noexcept { return mutable_registered_buffer(b, registered_buffer_id(scope, index)); } }; } template <typename MutableBufferSequence, typename Allocator = std::allocator<void> > class buffer_registration : detail::buffer_registration_base { public: typedef Allocator allocator_type; # 77 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 3 4 typedef std::vector<mutable_registered_buffer>::const_iterator iterator; typedef std::vector<mutable_registered_buffer>::const_iterator const_iterator; template <typename Executor> buffer_registration(const Executor& ex, const MutableBufferSequence& buffer_sequence, const allocator_type& alloc = allocator_type(), typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) : buffer_sequence_(buffer_sequence), buffers_( typename std::allocator_traits<allocator_type>::template rebind_alloc<mutable_registered_buffer> (alloc)) { init_buffers(buffer_registration::get_context(ex), boost::asio::buffer_sequence_begin(buffer_sequence_), boost::asio::buffer_sequence_end(buffer_sequence_)); } template <typename ExecutionContext> buffer_registration(ExecutionContext& ctx, const MutableBufferSequence& buffer_sequence, const allocator_type& alloc = allocator_type(), typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : buffer_sequence_(buffer_sequence), buffers_( typename std::allocator_traits<allocator_type>::template rebind_alloc<mutable_registered_buffer> (alloc)) { init_buffers(ctx, boost::asio::buffer_sequence_begin(buffer_sequence_), boost::asio::buffer_sequence_end(buffer_sequence_)); } buffer_registration(buffer_registration&& other) noexcept : buffer_sequence_(std::move(other.buffer_sequence_)), buffers_(std::move(other.buffers_)) { } ~buffer_registration() { } buffer_registration& operator=( buffer_registration&& other) noexcept { if (this != &other) { buffer_sequence_ = std::move(other.buffer_sequence_); buffers_ = std::move(other.buffers_); } return *this; } std::size_t size() const noexcept { return buffers_.size(); } const_iterator begin() const noexcept { return buffers_.begin(); } const_iterator cbegin() const noexcept { return buffers_.cbegin(); } const_iterator end() const noexcept { return buffers_.end(); } const_iterator cend() const noexcept { return buffers_.cend(); } const mutable_registered_buffer& operator[](std::size_t i) noexcept { return buffers_[i]; } const mutable_registered_buffer& at(std::size_t i) noexcept { return buffers_.at(i); } private: buffer_registration(const buffer_registration&) = delete; buffer_registration& operator=(const buffer_registration&) = delete; template <typename T> static execution_context& get_context(const T& t, typename enable_if<execution::is_executor<T>::value>::type* = 0) { return boost::asio::query(t, execution::context); } template <typename T> static execution_context& get_context(const T& t, typename enable_if<!execution::is_executor<T>::value>::type* = 0) { return t.context(); } template <typename Iterator> void init_buffers(execution_context& ctx, Iterator begin, Iterator end) { std::size_t n = std::distance(begin, end); buffers_.resize(n); # 237 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 3 4 Iterator iter = begin; for (int index = 0; iter != end; ++index, ++iter) { mutable_buffer b(*iter); std::size_t i = static_cast<std::size_t>(index); buffers_[i] = this->make_buffer(b, &ctx, index); } # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 3 4 } MutableBufferSequence buffer_sequence_; std::vector<mutable_registered_buffer, typename std::allocator_traits<allocator_type>::template rebind_alloc<mutable_registered_buffer> > buffers_; }; template <typename Executor, typename MutableBufferSequence> [[nodiscard]] inline buffer_registration<MutableBufferSequence> register_buffers(const Executor& ex, const MutableBufferSequence& buffer_sequence, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) { return buffer_registration<MutableBufferSequence>(ex, buffer_sequence); } template <typename Executor, typename MutableBufferSequence, typename Allocator> [[nodiscard]] inline buffer_registration<MutableBufferSequence, Allocator> register_buffers(const Executor& ex, const MutableBufferSequence& buffer_sequence, const Allocator& alloc, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) { return buffer_registration<MutableBufferSequence, Allocator>( ex, buffer_sequence, alloc); } template <typename ExecutionContext, typename MutableBufferSequence> [[nodiscard]] inline buffer_registration<MutableBufferSequence> register_buffers(ExecutionContext& ctx, const MutableBufferSequence& buffer_sequence, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { return buffer_registration<MutableBufferSequence>(ctx, buffer_sequence); } template <typename ExecutionContext, typename MutableBufferSequence, typename Allocator> [[nodiscard]] inline buffer_registration<MutableBufferSequence, Allocator> register_buffers(ExecutionContext& ctx, const MutableBufferSequence& buffer_sequence, const Allocator& alloc, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { return buffer_registration<MutableBufferSequence, Allocator>( ctx, buffer_sequence, alloc); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 329 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffer_registration.hpp" 2 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream_fwd.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream_fwd.hpp" 3 4 namespace boost { namespace asio { template <typename Stream> class buffered_read_stream; } } # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_resize_guard.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_resize_guard.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_resize_guard.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Buffer> class buffer_resize_guard { public: buffer_resize_guard(Buffer& buffer) : buffer_(buffer), old_size_(buffer.size()) { } ~buffer_resize_guard() { if (old_size_ != (std::numeric_limits<size_t>::max)()) { buffer_.resize(old_size_); } } void commit() { old_size_ = (std::numeric_limits<size_t>::max)(); } private: Buffer& buffer_; size_t old_size_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffer_resize_guard.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class buffered_stream_storage { public: typedef unsigned char byte_type; typedef std::size_t size_type; explicit buffered_stream_storage(std::size_t buffer_capacity) : begin_offset_(0), end_offset_(0), buffer_(buffer_capacity) { } void clear() { begin_offset_ = 0; end_offset_ = 0; } mutable_buffer data() { return boost::asio::buffer(buffer_) + begin_offset_; } const_buffer data() const { return boost::asio::buffer(buffer_) + begin_offset_; } bool empty() const { return begin_offset_ == end_offset_; } size_type size() const { return end_offset_ - begin_offset_; } void resize(size_type length) { (static_cast <bool> (length <= capacity()) ? void (0) : __assert_fail ("length <= capacity()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp", 82, __extension__ __PRETTY_FUNCTION__)); if (begin_offset_ + length <= capacity()) { end_offset_ = begin_offset_ + length; } else { using namespace std; memmove(&buffer_[0], &buffer_[0] + begin_offset_, size()); end_offset_ = length; begin_offset_ = 0; } } size_type capacity() const { return buffer_.size(); } void consume(size_type count) { (static_cast <bool> (begin_offset_ + count <= end_offset_) ? void (0) : __assert_fail ("begin_offset_ + count <= end_offset_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp", 105, __extension__ __PRETTY_FUNCTION__)); begin_offset_ += count; if (empty()) clear(); } private: size_type begin_offset_; size_type end_offset_; std::vector<byte_type> buffer_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/buffered_stream_storage.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename> class initiate_async_buffered_fill; template <typename> class initiate_async_buffered_read_some; } # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 3 4 template <typename Stream> class buffered_read_stream : private noncopyable { public: typedef typename remove_reference<Stream>::type next_layer_type; typedef typename next_layer_type::lowest_layer_type lowest_layer_type; typedef typename lowest_layer_type::executor_type executor_type; static const std::size_t default_buffer_size = 1024; template <typename Arg> explicit buffered_read_stream(Arg&& a) : next_layer_(static_cast<Arg&&>(a)), storage_(default_buffer_size) { } template <typename Arg> buffered_read_stream(Arg&& a, std::size_t buffer_size) : next_layer_(static_cast<Arg&&>(a)), storage_(buffer_size) { } next_layer_type& next_layer() { return next_layer_; } lowest_layer_type& lowest_layer() { return next_layer_.lowest_layer(); } const lowest_layer_type& lowest_layer() const { return next_layer_.lowest_layer(); } executor_type get_executor() noexcept { return next_layer_.lowest_layer().get_executor(); } void close() { next_layer_.close(); } boost::system::error_code close(boost::system::error_code& ec) { next_layer_.close(ec); return ec; } template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers) { return next_layer_.write_some(buffers); } template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec) { return next_layer_.write_some(buffers, ec); } template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) { return next_layer_.async_write_some(buffers, static_cast<WriteHandler&&>(handler)); } std::size_t fill(); std::size_t fill(boost::system::error_code& ec); template < ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_fill( ReadHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) ; template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers); template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec); template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) ; template <typename MutableBufferSequence> std::size_t peek(const MutableBufferSequence& buffers); template <typename MutableBufferSequence> std::size_t peek(const MutableBufferSequence& buffers, boost::system::error_code& ec); std::size_t in_avail() { return storage_.size(); } std::size_t in_avail(boost::system::error_code& ec) { ec = boost::system::error_code(); return storage_.size(); } private: template <typename MutableBufferSequence> std::size_t copy(const MutableBufferSequence& buffers) { std::size_t bytes_copied = boost::asio::buffer_copy( buffers, storage_.data(), storage_.size()); storage_.consume(bytes_copied); return bytes_copied; } template <typename MutableBufferSequence> std::size_t peek_copy(const MutableBufferSequence& buffers) { return boost::asio::buffer_copy(buffers, storage_.data(), storage_.size()); } Stream next_layer_; detail::buffered_stream_storage storage_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 285 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_read_stream.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_read_stream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_read_stream.hpp" 2 3 4 namespace boost { namespace asio { template <typename Stream> std::size_t buffered_read_stream<Stream>::fill() { detail::buffer_resize_guard<detail::buffered_stream_storage> resize_guard(storage_); std::size_t previous_size = storage_.size(); storage_.resize(storage_.capacity()); storage_.resize(previous_size + next_layer_.read_some(buffer( storage_.data() + previous_size, storage_.size() - previous_size))); resize_guard.commit(); return storage_.size() - previous_size; } template <typename Stream> std::size_t buffered_read_stream<Stream>::fill(boost::system::error_code& ec) { detail::buffer_resize_guard<detail::buffered_stream_storage> resize_guard(storage_); std::size_t previous_size = storage_.size(); storage_.resize(storage_.capacity()); storage_.resize(previous_size + next_layer_.read_some(buffer( storage_.data() + previous_size, storage_.size() - previous_size), ec)); resize_guard.commit(); return storage_.size() - previous_size; } namespace detail { template <typename ReadHandler> class buffered_fill_handler { public: buffered_fill_handler(detail::buffered_stream_storage& storage, std::size_t previous_size, ReadHandler& handler) : storage_(storage), previous_size_(previous_size), handler_(static_cast<ReadHandler&&>(handler)) { } buffered_fill_handler(const buffered_fill_handler& other) : storage_(other.storage_), previous_size_(other.previous_size_), handler_(other.handler_) { } buffered_fill_handler(buffered_fill_handler&& other) : storage_(other.storage_), previous_size_(other.previous_size_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, const std::size_t bytes_transferred) { storage_.resize(previous_size_ + bytes_transferred); static_cast<ReadHandler&&>(handler_)(ec, bytes_transferred); } detail::buffered_stream_storage& storage_; std::size_t previous_size_; ReadHandler handler_; }; template <typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, buffered_fill_handler<ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, buffered_fill_handler<ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename ReadHandler> inline bool asio_handler_is_continuation( buffered_fill_handler<ReadHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, buffered_fill_handler<ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, buffered_fill_handler<ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Stream> class initiate_async_buffered_fill { public: typedef typename remove_reference< Stream>::type::lowest_layer_type::executor_type executor_type; explicit initiate_async_buffered_fill( typename remove_reference<Stream>::type& next_layer) : next_layer_(next_layer) { } executor_type get_executor() const noexcept { return next_layer_.lowest_layer().get_executor(); } template <typename ReadHandler> void operator()(ReadHandler&& handler, buffered_stream_storage* storage) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); std::size_t previous_size = storage->size(); storage->resize(storage->capacity()); next_layer_.async_read_some( buffer( storage->data() + previous_size, storage->size() - previous_size), buffered_fill_handler<typename decay<ReadHandler>::type>( *storage, previous_size, handler2.value)); } private: typename remove_reference<Stream>::type& next_layer_; }; } template <template <typename, typename> class Associator, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::buffered_fill_handler<ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::buffered_fill_handler<ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::buffered_fill_handler<ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename Stream> template < ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler> auto buffered_read_stream<Stream>::async_fill( ReadHandler&& handler) { return async_initiate<ReadHandler, void (boost::system::error_code, std::size_t)>( detail::initiate_async_buffered_fill<Stream>(next_layer_), handler, &storage_); } template <typename Stream> template <typename MutableBufferSequence> std::size_t buffered_read_stream<Stream>::read_some( const MutableBufferSequence& buffers) { using boost::asio::buffer_size; if (buffer_size(buffers) == 0) return 0; if (storage_.empty()) this->fill(); return this->copy(buffers); } template <typename Stream> template <typename MutableBufferSequence> std::size_t buffered_read_stream<Stream>::read_some( const MutableBufferSequence& buffers, boost::system::error_code& ec) { ec = boost::system::error_code(); using boost::asio::buffer_size; if (buffer_size(buffers) == 0) return 0; if (storage_.empty() && !this->fill(ec)) return 0; return this->copy(buffers); } namespace detail { template <typename MutableBufferSequence, typename ReadHandler> class buffered_read_some_handler { public: buffered_read_some_handler(detail::buffered_stream_storage& storage, const MutableBufferSequence& buffers, ReadHandler& handler) : storage_(storage), buffers_(buffers), handler_(static_cast<ReadHandler&&>(handler)) { } buffered_read_some_handler(const buffered_read_some_handler& other) : storage_(other.storage_), buffers_(other.buffers_), handler_(other.handler_) { } buffered_read_some_handler(buffered_read_some_handler&& other) : storage_(other.storage_), buffers_(other.buffers_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, std::size_t) { if (ec || storage_.empty()) { const std::size_t length = 0; static_cast<ReadHandler&&>(handler_)(ec, length); } else { const std::size_t bytes_copied = boost::asio::buffer_copy( buffers_, storage_.data(), storage_.size()); storage_.consume(bytes_copied); static_cast<ReadHandler&&>(handler_)(ec, bytes_copied); } } detail::buffered_stream_storage& storage_; MutableBufferSequence buffers_; ReadHandler handler_; }; template <typename MutableBufferSequence, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, buffered_read_some_handler< MutableBufferSequence, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename MutableBufferSequence, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, buffered_read_some_handler< MutableBufferSequence, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename MutableBufferSequence, typename ReadHandler> inline bool asio_handler_is_continuation( buffered_read_some_handler< MutableBufferSequence, ReadHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename MutableBufferSequence, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, buffered_read_some_handler< MutableBufferSequence, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename MutableBufferSequence, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, buffered_read_some_handler< MutableBufferSequence, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Stream> class initiate_async_buffered_read_some { public: typedef typename remove_reference< Stream>::type::lowest_layer_type::executor_type executor_type; explicit initiate_async_buffered_read_some( typename remove_reference<Stream>::type& next_layer) : next_layer_(next_layer) { } executor_type get_executor() const noexcept { return next_layer_.lowest_layer().get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, buffered_stream_storage* storage, const MutableBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; using boost::asio::buffer_size; non_const_lvalue<ReadHandler> handler2(handler); if (buffer_size(buffers) == 0 || !storage->empty()) { next_layer_.async_read_some(mutable_buffers_1(0, 0), buffered_read_some_handler<MutableBufferSequence, typename decay<ReadHandler>::type>( *storage, buffers, handler2.value)); } else { initiate_async_buffered_fill<Stream>(this->next_layer_)( buffered_read_some_handler<MutableBufferSequence, typename decay<ReadHandler>::type>( *storage, buffers, handler2.value), storage); } } private: typename remove_reference<Stream>::type& next_layer_; }; } template <template <typename, typename> class Associator, typename MutableBufferSequence, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::buffered_read_some_handler<MutableBufferSequence, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::buffered_read_some_handler< MutableBufferSequence, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::buffered_read_some_handler< MutableBufferSequence, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename Stream> template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler> auto buffered_read_stream<Stream>::async_read_some( const MutableBufferSequence& buffers, ReadHandler&& handler) { return async_initiate<ReadHandler, void (boost::system::error_code, std::size_t)>( detail::initiate_async_buffered_read_some<Stream>(next_layer_), handler, &storage_, buffers); } template <typename Stream> template <typename MutableBufferSequence> std::size_t buffered_read_stream<Stream>::peek( const MutableBufferSequence& buffers) { if (storage_.empty()) this->fill(); return this->peek_copy(buffers); } template <typename Stream> template <typename MutableBufferSequence> std::size_t buffered_read_stream<Stream>::peek( const MutableBufferSequence& buffers, boost::system::error_code& ec) { ec = boost::system::error_code(); if (storage_.empty() && !this->fill(ec)) return 0; return this->peek_copy(buffers); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 528 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_read_stream.hpp" 2 3 4 # 287 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_read_stream.hpp" 2 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream_fwd.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream_fwd.hpp" 3 4 namespace boost { namespace asio { template <typename Stream> class buffered_stream; } } # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream_fwd.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream_fwd.hpp" 3 4 namespace boost { namespace asio { template <typename Stream> class buffered_write_stream; } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { enum default_max_transfer_size_t { default_max_transfer_size = 65536 }; inline std::size_t adapt_completion_condition_result(bool result) { return result ? 0 : default_max_transfer_size; } inline std::size_t adapt_completion_condition_result(std::size_t result) { return result; } class transfer_all_t { public: typedef std::size_t result_type; template <typename Error> std::size_t operator()(const Error& err, std::size_t) { return !!err ? 0 : default_max_transfer_size; } }; class transfer_at_least_t { public: typedef std::size_t result_type; explicit transfer_at_least_t(std::size_t minimum) : minimum_(minimum) { } template <typename Error> std::size_t operator()(const Error& err, std::size_t bytes_transferred) { return (!!err || bytes_transferred >= minimum_) ? 0 : default_max_transfer_size; } private: std::size_t minimum_; }; class transfer_exactly_t { public: typedef std::size_t result_type; explicit transfer_exactly_t(std::size_t size) : size_(size) { } template <typename Error> std::size_t operator()(const Error& err, std::size_t bytes_transferred) { return (!!err || bytes_transferred >= size_) ? 0 : (size_ - bytes_transferred < default_max_transfer_size ? size_ - bytes_transferred : std::size_t(default_max_transfer_size)); } private: std::size_t size_; }; } # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 3 4 inline detail::transfer_all_t transfer_all() { return detail::transfer_all_t(); } # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 3 4 inline detail::transfer_at_least_t transfer_at_least(std::size_t minimum) { return detail::transfer_at_least_t(minimum); } # 207 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 3 4 inline detail::transfer_exactly_t transfer_exactly(std::size_t size) { return detail::transfer_exactly_t(size); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 219 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/completion_condition.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename> class initiate_async_write; template <typename> class initiate_async_write_dynbuf_v1; template <typename> class initiate_async_write_dynbuf_v2; } # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename ConstBufferSequence> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type = 0); # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename ConstBufferSequence> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, boost::system::error_code& ec, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type = 0); # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename ConstBufferSequence, typename CompletionCondition> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type = 0); # 229 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename ConstBufferSequence, typename CompletionCondition> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type = 0); # 266 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v1> std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 303 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v1> std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 350 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition> std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 399 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition> std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 440 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename Allocator> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b); # 469 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename Allocator> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, boost::system::error_code& ec); # 508 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename Allocator, typename CompletionCondition> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition); # 549 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename Allocator, typename CompletionCondition> std::size_t write(SyncWriteStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec); # 585 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v2> std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 618 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v2> std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 661 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition> std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 706 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename SyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition> std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 791 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type > auto async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type() , typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type = 0) ; # 894 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename ConstBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> auto async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, WriteToken&& token, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type = 0) ; # 974 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type > auto async_write(AsyncWriteStream& s, DynamicBuffer_v1&& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 1072 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> auto async_write(AsyncWriteStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, WriteToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 1155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type > auto async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type() ) ; # 1241 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> auto async_write(AsyncWriteStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, WriteToken&& token) ; # 1318 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type > auto async_write(AsyncWriteStream& s, DynamicBuffer_v2 buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncWriteStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; # 1412 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 3 4 template <typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> auto async_write(AsyncWriteStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, WriteToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1437 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_cancellation_state.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_cancellation_state.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_cancellation_state.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename = void> class base_from_cancellation_state { public: typedef cancellation_slot cancellation_slot_type; cancellation_slot_type get_cancellation_slot() const noexcept { return cancellation_state_.slot(); } cancellation_state get_cancellation_state() const noexcept { return cancellation_state_; } protected: explicit base_from_cancellation_state(const Handler& handler) : cancellation_state_( boost::asio::get_associated_cancellation_slot(handler)) { } template <typename Filter> base_from_cancellation_state(const Handler& handler, Filter filter) : cancellation_state_( boost::asio::get_associated_cancellation_slot(handler), filter, filter) { } template <typename InFilter, typename OutFilter> base_from_cancellation_state(const Handler& handler, InFilter&& in_filter, OutFilter&& out_filter) : cancellation_state_( boost::asio::get_associated_cancellation_slot(handler), static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)) { } void reset_cancellation_state(const Handler& handler) { cancellation_state_ = cancellation_state( boost::asio::get_associated_cancellation_slot(handler)); } template <typename Filter> void reset_cancellation_state(const Handler& handler, Filter filter) { cancellation_state_ = cancellation_state( boost::asio::get_associated_cancellation_slot(handler), filter, filter); } template <typename InFilter, typename OutFilter> void reset_cancellation_state(const Handler& handler, InFilter&& in_filter, OutFilter&& out_filter) { cancellation_state_ = cancellation_state( boost::asio::get_associated_cancellation_slot(handler), static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)); } cancellation_type_t cancelled() const noexcept { return cancellation_state_.cancelled(); } private: cancellation_state cancellation_state_; }; template <typename Handler> class base_from_cancellation_state<Handler, typename enable_if< is_same< typename associated_cancellation_slot< Handler, cancellation_slot >::asio_associated_cancellation_slot_is_unspecialised, void >::value >::type> { public: cancellation_state get_cancellation_state() const noexcept { return cancellation_state(); } protected: explicit base_from_cancellation_state(const Handler&) { } template <typename Filter> base_from_cancellation_state(const Handler&, Filter) { } template <typename InFilter, typename OutFilter> base_from_cancellation_state(const Handler&, InFilter&&, OutFilter&&) { } void reset_cancellation_state(const Handler&) { } template <typename Filter> void reset_cancellation_state(const Handler&, Filter) { } template <typename InFilter, typename OutFilter> void reset_cancellation_state(const Handler&, InFilter&&, OutFilter&&) { } constexpr cancellation_type_t cancelled() const noexcept { return cancellation_type::none; } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_cancellation_state.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_completion_cond.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_completion_cond.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_completion_cond.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename CompletionCondition> class base_from_completion_cond { protected: explicit base_from_completion_cond(CompletionCondition& completion_condition) : completion_condition_( static_cast<CompletionCondition&&>(completion_condition)) { } std::size_t check_for_completion( const boost::system::error_code& ec, std::size_t total_transferred) { return detail::adapt_completion_condition_result( completion_condition_(ec, total_transferred)); } private: CompletionCondition completion_condition_; }; template <> class base_from_completion_cond<transfer_all_t> { protected: explicit base_from_completion_cond(transfer_all_t) { } static std::size_t check_for_completion( const boost::system::error_code& ec, std::size_t total_transferred) { return transfer_all_t()(ec, total_transferred); } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 70 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/base_from_completion_cond.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/consuming_buffers.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/consuming_buffers.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/consuming_buffers.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Buffers> struct prepared_buffers_max { enum { value = buffer_sequence_adapter_base::max_buffers }; }; template <typename Elem, std::size_t N> struct prepared_buffers_max<boost::array<Elem, N> > { enum { value = N }; }; template <typename Elem, std::size_t N> struct prepared_buffers_max<std::array<Elem, N> > { enum { value = N }; }; template <typename Buffer, std::size_t MaxBuffers> struct prepared_buffers { typedef Buffer value_type; typedef const Buffer* const_iterator; enum { max_buffers = MaxBuffers < 16 ? MaxBuffers : 16 }; prepared_buffers() : count(0) {} const_iterator begin() const { return elems; } const_iterator end() const { return elems + count; } Buffer elems[max_buffers]; std::size_t count; }; template <typename Buffer, typename Buffers, typename Buffer_Iterator> class consuming_buffers { public: typedef prepared_buffers<Buffer, prepared_buffers_max<Buffers>::value> prepared_buffers_type; explicit consuming_buffers(const Buffers& buffers) : buffers_(buffers), total_consumed_(0), next_elem_(0), next_elem_offset_(0) { using boost::asio::buffer_size; total_size_ = buffer_size(buffers); } bool empty() const { return total_consumed_ >= total_size_; } prepared_buffers_type prepare(std::size_t max_size) { prepared_buffers_type result; Buffer_Iterator next = boost::asio::buffer_sequence_begin(buffers_); Buffer_Iterator end = boost::asio::buffer_sequence_end(buffers_); std::advance(next, next_elem_); std::size_t elem_offset = next_elem_offset_; while (next != end && max_size > 0 && (result.count) < result.max_buffers) { Buffer next_buf = Buffer(*next) + elem_offset; result.elems[result.count] = boost::asio::buffer(next_buf, max_size); max_size -= result.elems[result.count].size(); elem_offset = 0; if (result.elems[result.count].size() > 0) ++result.count; ++next; } return result; } void consume(std::size_t size) { total_consumed_ += size; Buffer_Iterator next = boost::asio::buffer_sequence_begin(buffers_); Buffer_Iterator end = boost::asio::buffer_sequence_end(buffers_); std::advance(next, next_elem_); while (next != end && size > 0) { Buffer next_buf = Buffer(*next) + next_elem_offset_; if (size < next_buf.size()) { next_elem_offset_ += size; size = 0; } else { size -= next_buf.size(); next_elem_offset_ = 0; ++next_elem_; ++next; } } } std::size_t total_consumed() const { return total_consumed_; } private: Buffers buffers_; std::size_t total_size_; std::size_t total_consumed_; std::size_t next_elem_; std::size_t next_elem_offset_; }; template <typename Buffer> class consuming_single_buffer { public: template <typename Buffer1> explicit consuming_single_buffer(const Buffer1& buffer) : buffer_(buffer), total_consumed_(0) { } bool empty() const { return total_consumed_ >= buffer_.size(); } Buffer prepare(std::size_t max_size) { return boost::asio::buffer(buffer_ + total_consumed_, max_size); } void consume(std::size_t size) { total_consumed_ += size; } std::size_t total_consumed() const { return total_consumed_; } private: Buffer buffer_; std::size_t total_consumed_; }; template <> class consuming_buffers<mutable_buffer, mutable_buffer, const mutable_buffer*> : public consuming_single_buffer<mutable_buffers_1> { public: explicit consuming_buffers(const mutable_buffer& buffer) : consuming_single_buffer<mutable_buffers_1>(buffer) { } }; template <> class consuming_buffers<const_buffer, mutable_buffer, const mutable_buffer*> : public consuming_single_buffer<const_buffers_1> { public: explicit consuming_buffers(const mutable_buffer& buffer) : consuming_single_buffer<const_buffers_1>(buffer) { } }; template <> class consuming_buffers<const_buffer, const_buffer, const const_buffer*> : public consuming_single_buffer<const_buffers_1> { public: explicit consuming_buffers(const const_buffer& buffer) : consuming_single_buffer<const_buffers_1>(buffer) { } }; template <> class consuming_buffers<mutable_buffer, mutable_buffers_1, const mutable_buffer*> : public consuming_single_buffer<mutable_buffers_1> { public: explicit consuming_buffers(const mutable_buffers_1& buffer) : consuming_single_buffer<mutable_buffers_1>(buffer) { } }; template <> class consuming_buffers<const_buffer, mutable_buffers_1, const mutable_buffer*> : public consuming_single_buffer<const_buffers_1> { public: explicit consuming_buffers(const mutable_buffers_1& buffer) : consuming_single_buffer<const_buffers_1>(buffer) { } }; template <> class consuming_buffers<const_buffer, const_buffers_1, const const_buffer*> : public consuming_single_buffer<const_buffers_1> { public: explicit consuming_buffers(const const_buffers_1& buffer) : consuming_single_buffer<const_buffers_1>(buffer) { } }; template <> class consuming_buffers<mutable_buffer, mutable_registered_buffer, const mutable_buffer*> : public consuming_single_buffer<mutable_registered_buffer> { public: explicit consuming_buffers(const mutable_registered_buffer& buffer) : consuming_single_buffer<mutable_registered_buffer>(buffer) { } }; template <> class consuming_buffers<const_buffer, mutable_registered_buffer, const mutable_buffer*> : public consuming_single_buffer<mutable_registered_buffer> { public: explicit consuming_buffers(const mutable_registered_buffer& buffer) : consuming_single_buffer<mutable_registered_buffer>(buffer) { } }; template <> class consuming_buffers<const_buffer, const_registered_buffer, const const_buffer*> : public consuming_single_buffer<const_registered_buffer> { public: explicit consuming_buffers(const const_registered_buffer& buffer) : consuming_single_buffer<const_registered_buffer>(buffer) { } }; template <typename Buffer, typename Elem> class consuming_buffers<Buffer, boost::array<Elem, 2>, typename boost::array<Elem, 2>::const_iterator> { public: explicit consuming_buffers(const boost::array<Elem, 2>& buffers) : buffers_(buffers), total_consumed_(0) { } bool empty() const { return total_consumed_ >= Buffer(buffers_[0]).size() + Buffer(buffers_[1]).size(); } boost::array<Buffer, 2> prepare(std::size_t max_size) { boost::array<Buffer, 2> result = {{ Buffer(buffers_[0]), Buffer(buffers_[1]) }}; std::size_t buffer0_size = result[0].size(); result[0] = boost::asio::buffer(result[0] + total_consumed_, max_size); result[1] = boost::asio::buffer( result[1] + (total_consumed_ < buffer0_size ? 0 : total_consumed_ - buffer0_size), max_size - result[0].size()); return result; } void consume(std::size_t size) { total_consumed_ += size; } std::size_t total_consumed() const { return total_consumed_; } private: boost::array<Elem, 2> buffers_; std::size_t total_consumed_; }; template <typename Buffer, typename Elem> class consuming_buffers<Buffer, std::array<Elem, 2>, typename std::array<Elem, 2>::const_iterator> { public: explicit consuming_buffers(const std::array<Elem, 2>& buffers) : buffers_(buffers), total_consumed_(0) { } bool empty() const { return total_consumed_ >= Buffer(buffers_[0]).size() + Buffer(buffers_[1]).size(); } std::array<Buffer, 2> prepare(std::size_t max_size) { std::array<Buffer, 2> result = {{ Buffer(buffers_[0]), Buffer(buffers_[1]) }}; std::size_t buffer0_size = result[0].size(); result[0] = boost::asio::buffer(result[0] + total_consumed_, max_size); result[1] = boost::asio::buffer( result[1] + (total_consumed_ < buffer0_size ? 0 : total_consumed_ - buffer0_size), max_size - result[0].size()); return result; } void consume(std::size_t size) { total_consumed_ += size; } std::size_t total_consumed() const { return total_consumed_; } private: std::array<Elem, 2> buffers_; std::size_t total_consumed_; }; template <typename Buffer> class consuming_buffers<Buffer, null_buffers, const mutable_buffer*> : public boost::asio::null_buffers { public: consuming_buffers(const null_buffers&) { } bool empty() { return false; } null_buffers prepare(std::size_t) { return null_buffers(); } void consume(std::size_t) { } std::size_t total_consumed() const { return 0; } }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 452 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/consuming_buffers.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/dependent_type.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/dependent_type.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/dependent_type.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename DependsOn, typename T> struct dependent_type { typedef T type; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/dependent_type.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 2 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename SyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition> std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, const ConstBufferIterator&, CompletionCondition completion_condition, boost::system::error_code& ec) { ec = boost::system::error_code(); boost::asio::detail::consuming_buffers<const_buffer, ConstBufferSequence, ConstBufferIterator> tmp(buffers); while (!tmp.empty()) { if (std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, tmp.total_consumed()))) tmp.consume(s.write_some(tmp.prepare(max_size), ec)); else break; } return tmp.total_consumed(); } } template <typename SyncWriteStream, typename ConstBufferSequence, typename CompletionCondition> inline std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type) { return detail::write(s, buffers, boost::asio::buffer_sequence_begin(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); } template <typename SyncWriteStream, typename ConstBufferSequence> inline std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = write(s, buffers, transfer_all(), ec); boost::asio::detail::throw_error(ec, "write"); return bytes_transferred; } template <typename SyncWriteStream, typename ConstBufferSequence> inline std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, boost::system::error_code& ec, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type) { return write(s, buffers, transfer_all(), ec); } template <typename SyncWriteStream, typename ConstBufferSequence, typename CompletionCondition> inline std::size_t write(SyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = write(s, buffers, static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "write"); return bytes_transferred; } template <typename SyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition> std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { typename decay<DynamicBuffer_v1>::type b( static_cast<DynamicBuffer_v1&&>(buffers)); std::size_t bytes_transferred = write(s, b.data(), static_cast<CompletionCondition&&>(completion_condition), ec); b.consume(bytes_transferred); return bytes_transferred; } template <typename SyncWriteStream, typename DynamicBuffer_v1> inline std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = write(s, static_cast<DynamicBuffer_v1&&>(buffers), transfer_all(), ec); boost::asio::detail::throw_error(ec, "write"); return bytes_transferred; } template <typename SyncWriteStream, typename DynamicBuffer_v1> inline std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return write(s, static_cast<DynamicBuffer_v1&&>(buffers), transfer_all(), ec); } template <typename SyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition> inline std::size_t write(SyncWriteStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = write(s, static_cast<DynamicBuffer_v1&&>(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "write"); return bytes_transferred; } template <typename SyncWriteStream, typename Allocator, typename CompletionCondition> inline std::size_t write(SyncWriteStream& s, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec) { return write(s, basic_streambuf_ref<Allocator>(b), static_cast<CompletionCondition&&>(completion_condition), ec); } template <typename SyncWriteStream, typename Allocator> inline std::size_t write(SyncWriteStream& s, boost::asio::basic_streambuf<Allocator>& b) { return write(s, basic_streambuf_ref<Allocator>(b)); } template <typename SyncWriteStream, typename Allocator> inline std::size_t write(SyncWriteStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::system::error_code& ec) { return write(s, basic_streambuf_ref<Allocator>(b), ec); } template <typename SyncWriteStream, typename Allocator, typename CompletionCondition> inline std::size_t write(SyncWriteStream& s, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition) { return write(s, basic_streambuf_ref<Allocator>(b), static_cast<CompletionCondition&&>(completion_condition)); } template <typename SyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition> std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { std::size_t bytes_transferred = write(s, buffers.data(0, buffers.size()), static_cast<CompletionCondition&&>(completion_condition), ec); buffers.consume(bytes_transferred); return bytes_transferred; } template <typename SyncWriteStream, typename DynamicBuffer_v2> inline std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = write(s, static_cast<DynamicBuffer_v2&&>(buffers), transfer_all(), ec); boost::asio::detail::throw_error(ec, "write"); return bytes_transferred; } template <typename SyncWriteStream, typename DynamicBuffer_v2> inline std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return write(s, static_cast<DynamicBuffer_v2&&>(buffers), transfer_all(), ec); } template <typename SyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition> inline std::size_t write(SyncWriteStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = write(s, static_cast<DynamicBuffer_v2&&>(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "write"); return bytes_transferred; } namespace detail { template <typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> class write_op : public base_from_cancellation_state<WriteHandler>, base_from_completion_cond<CompletionCondition> { public: write_op(AsyncWriteStream& stream, const ConstBufferSequence& buffers, CompletionCondition& completion_condition, WriteHandler& handler) : base_from_cancellation_state<WriteHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), stream_(stream), buffers_(buffers), start_(0), handler_(static_cast<WriteHandler&&>(handler)) { } write_op(const write_op& other) : base_from_cancellation_state<WriteHandler>(other), base_from_completion_cond<CompletionCondition>(other), stream_(other.stream_), buffers_(other.buffers_), start_(other.start_), handler_(other.handler_) { } write_op(write_op&& other) : base_from_cancellation_state<WriteHandler>( static_cast<base_from_cancellation_state< WriteHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), stream_(other.stream_), buffers_(static_cast<buffers_type&&>(other.buffers_)), start_(other.start_), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, buffers_.total_consumed()); for (;;) { { (void)0; stream_.async_write_some(buffers_.prepare(max_size), static_cast<write_op&&>(*this)); } return; default: buffers_.consume(bytes_transferred); if ((!ec && bytes_transferred == 0) || buffers_.empty()) break; max_size = this->check_for_completion(ec, buffers_.total_consumed()); if (max_size == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } static_cast<WriteHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(buffers_.total_consumed())); } } typedef boost::asio::detail::consuming_buffers<const_buffer, ConstBufferSequence, ConstBufferIterator> buffers_type; AsyncWriteStream& stream_; buffers_type buffers_; int start_; WriteHandler handler_; }; template <typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline bool asio_handler_is_continuation( write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline void start_write_op(AsyncWriteStream& stream, const ConstBufferSequence& buffers, const ConstBufferIterator&, CompletionCondition& completion_condition, WriteHandler& handler) { detail::write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>( stream, buffers, completion_condition, handler)( boost::system::error_code(), 0, 1); } template <typename AsyncWriteStream> class initiate_async_write { public: typedef typename AsyncWriteStream::executor_type executor_type; explicit initiate_async_write(AsyncWriteStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename WriteHandler, typename ConstBufferSequence, typename CompletionCondition> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<WriteHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); start_write_op(stream_, buffers, boost::asio::buffer_sequence_begin(buffers), completion_cond2.value, handler2.value); } private: AsyncWriteStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncWriteStream, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::write_op<AsyncWriteStream, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncWriteStream, typename ConstBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, CompletionCondition completion_condition, WriteToken&& token, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write<AsyncWriteStream>(s), token, buffers, static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncWriteStream, typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, const ConstBufferSequence& buffers, WriteToken&& token, typename constraint< is_const_buffer_sequence<ConstBufferSequence>::value >::type) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write<AsyncWriteStream>(s), token, buffers, transfer_all()); } namespace detail { template <typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler> class write_dynbuf_v1_op { public: template <typename BufferSequence> write_dynbuf_v1_op(AsyncWriteStream& stream, BufferSequence&& buffers, CompletionCondition& completion_condition, WriteHandler& handler) : stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), completion_condition_( static_cast<CompletionCondition&&>(completion_condition)), handler_(static_cast<WriteHandler&&>(handler)) { } write_dynbuf_v1_op(const write_dynbuf_v1_op& other) : stream_(other.stream_), buffers_(other.buffers_), completion_condition_(other.completion_condition_), handler_(other.handler_) { } write_dynbuf_v1_op(write_dynbuf_v1_op&& other) : stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)), completion_condition_( static_cast<CompletionCondition&&>( other.completion_condition_)), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, std::size_t bytes_transferred, int start = 0) { switch (start) { case 1: async_write(stream_, buffers_.data(), static_cast<CompletionCondition&&>(completion_condition_), static_cast<write_dynbuf_v1_op&&>(*this)); return; default: buffers_.consume(bytes_transferred); static_cast<WriteHandler&&>(handler_)(ec, static_cast<const std::size_t&>(bytes_transferred)); } } AsyncWriteStream& stream_; DynamicBuffer_v1 buffers_; CompletionCondition completion_condition_; WriteHandler handler_; }; template <typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler> inline bool asio_handler_is_continuation( write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncWriteStream> class initiate_async_write_dynbuf_v1 { public: typedef typename AsyncWriteStream::executor_type executor_type; explicit initiate_async_write_dynbuf_v1(AsyncWriteStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename WriteHandler, typename DynamicBuffer_v1, typename CompletionCondition> void operator()(WriteHandler&& handler, DynamicBuffer_v1&& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<WriteHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); write_dynbuf_v1_op<AsyncWriteStream, typename decay<DynamicBuffer_v1>::type, CompletionCondition, typename decay<WriteHandler>::type>( stream_, static_cast<DynamicBuffer_v1&&>(buffers), completion_cond2.value, handler2.value)( boost::system::error_code(), 0, 1); } private: AsyncWriteStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::write_dynbuf_v1_op<AsyncWriteStream, DynamicBuffer_v1, CompletionCondition, WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncWriteStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, DynamicBuffer_v1&& buffers, WriteToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_dynbuf_v1<AsyncWriteStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), transfer_all()); } template <typename AsyncWriteStream, typename DynamicBuffer_v1, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, WriteToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_dynbuf_v1<AsyncWriteStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncWriteStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, boost::asio::basic_streambuf<Allocator>& b, WriteToken&& token) { return async_write(s, basic_streambuf_ref<Allocator>(b), static_cast<WriteToken&&>(token)); } template <typename AsyncWriteStream, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, WriteToken&& token) { return async_write(s, basic_streambuf_ref<Allocator>(b), static_cast<CompletionCondition&&>(completion_condition), static_cast<WriteToken&&>(token)); } namespace detail { template <typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler> class write_dynbuf_v2_op { public: template <typename BufferSequence> write_dynbuf_v2_op(AsyncWriteStream& stream, BufferSequence&& buffers, CompletionCondition& completion_condition, WriteHandler& handler) : stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), completion_condition_( static_cast<CompletionCondition&&>(completion_condition)), handler_(static_cast<WriteHandler&&>(handler)) { } write_dynbuf_v2_op(const write_dynbuf_v2_op& other) : stream_(other.stream_), buffers_(other.buffers_), completion_condition_(other.completion_condition_), handler_(other.handler_) { } write_dynbuf_v2_op(write_dynbuf_v2_op&& other) : stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)), completion_condition_( static_cast<CompletionCondition&&>( other.completion_condition_)), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, std::size_t bytes_transferred, int start = 0) { switch (start) { case 1: async_write(stream_, buffers_.data(0, buffers_.size()), static_cast<CompletionCondition&&>(completion_condition_), static_cast<write_dynbuf_v2_op&&>(*this)); return; default: buffers_.consume(bytes_transferred); static_cast<WriteHandler&&>(handler_)(ec, static_cast<const std::size_t&>(bytes_transferred)); } } AsyncWriteStream& stream_; DynamicBuffer_v2 buffers_; CompletionCondition completion_condition_; WriteHandler handler_; }; template <typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler> inline bool asio_handler_is_continuation( write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncWriteStream> class initiate_async_write_dynbuf_v2 { public: typedef typename AsyncWriteStream::executor_type executor_type; explicit initiate_async_write_dynbuf_v2(AsyncWriteStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename WriteHandler, typename DynamicBuffer_v2, typename CompletionCondition> void operator()(WriteHandler&& handler, DynamicBuffer_v2&& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<WriteHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); write_dynbuf_v2_op<AsyncWriteStream, typename decay<DynamicBuffer_v2>::type, CompletionCondition, typename decay<WriteHandler>::type>( stream_, static_cast<DynamicBuffer_v2&&>(buffers), completion_cond2.value, handler2.value)( boost::system::error_code(), 0, 1); } private: AsyncWriteStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::write_dynbuf_v2_op<AsyncWriteStream, DynamicBuffer_v2, CompletionCondition, WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncWriteStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, DynamicBuffer_v2 buffers, WriteToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_dynbuf_v2<AsyncWriteStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), transfer_all()); } template <typename AsyncWriteStream, typename DynamicBuffer_v2, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write(AsyncWriteStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, WriteToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_dynbuf_v2<AsyncWriteStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), static_cast<CompletionCondition&&>(completion_condition)); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1154 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write.hpp" 2 3 4 # 1439 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write.hpp" 2 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename> class initiate_async_buffered_flush; template <typename> class initiate_async_buffered_write_some; } # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 3 4 template <typename Stream> class buffered_write_stream : private noncopyable { public: typedef typename remove_reference<Stream>::type next_layer_type; typedef typename next_layer_type::lowest_layer_type lowest_layer_type; typedef typename lowest_layer_type::executor_type executor_type; static const std::size_t default_buffer_size = 1024; template <typename Arg> explicit buffered_write_stream(Arg&& a) : next_layer_(static_cast<Arg&&>(a)), storage_(default_buffer_size) { } template <typename Arg> buffered_write_stream(Arg&& a, std::size_t buffer_size) : next_layer_(static_cast<Arg&&>(a)), storage_(buffer_size) { } next_layer_type& next_layer() { return next_layer_; } lowest_layer_type& lowest_layer() { return next_layer_.lowest_layer(); } const lowest_layer_type& lowest_layer() const { return next_layer_.lowest_layer(); } executor_type get_executor() noexcept { return next_layer_.lowest_layer().get_executor(); } void close() { next_layer_.close(); } boost::system::error_code close(boost::system::error_code& ec) { next_layer_.close(ec); return ec; } std::size_t flush(); std::size_t flush(boost::system::error_code& ec); template < ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_flush( WriteHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) ; template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers); template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec); template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) ; template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { return next_layer_.read_some(buffers); } template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return next_layer_.read_some(buffers, ec); } template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) { return next_layer_.async_read_some(buffers, static_cast<ReadHandler&&>(handler)); } template <typename MutableBufferSequence> std::size_t peek(const MutableBufferSequence& buffers) { return next_layer_.peek(buffers); } template <typename MutableBufferSequence> std::size_t peek(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return next_layer_.peek(buffers, ec); } std::size_t in_avail() { return next_layer_.in_avail(); } std::size_t in_avail(boost::system::error_code& ec) { return next_layer_.in_avail(ec); } private: template <typename ConstBufferSequence> std::size_t copy(const ConstBufferSequence& buffers); Stream next_layer_; detail::buffered_stream_storage storage_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 277 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_write_stream.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_write_stream.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_write_stream.hpp" 2 3 4 namespace boost { namespace asio { template <typename Stream> std::size_t buffered_write_stream<Stream>::flush() { std::size_t bytes_written = write(next_layer_, buffer(storage_.data(), storage_.size())); storage_.consume(bytes_written); return bytes_written; } template <typename Stream> std::size_t buffered_write_stream<Stream>::flush(boost::system::error_code& ec) { std::size_t bytes_written = write(next_layer_, buffer(storage_.data(), storage_.size()), transfer_all(), ec); storage_.consume(bytes_written); return bytes_written; } namespace detail { template <typename WriteHandler> class buffered_flush_handler { public: buffered_flush_handler(detail::buffered_stream_storage& storage, WriteHandler& handler) : storage_(storage), handler_(static_cast<WriteHandler&&>(handler)) { } buffered_flush_handler(const buffered_flush_handler& other) : storage_(other.storage_), handler_(other.handler_) { } buffered_flush_handler(buffered_flush_handler&& other) : storage_(other.storage_), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, const std::size_t bytes_written) { storage_.consume(bytes_written); static_cast<WriteHandler&&>(handler_)(ec, bytes_written); } detail::buffered_stream_storage& storage_; WriteHandler handler_; }; template <typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, buffered_flush_handler<WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, buffered_flush_handler<WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename WriteHandler> inline bool asio_handler_is_continuation( buffered_flush_handler<WriteHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, buffered_flush_handler<WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, buffered_flush_handler<WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Stream> class initiate_async_buffered_flush { public: typedef typename remove_reference< Stream>::type::lowest_layer_type::executor_type executor_type; explicit initiate_async_buffered_flush( typename remove_reference<Stream>::type& next_layer) : next_layer_(next_layer) { } executor_type get_executor() const noexcept { return next_layer_.lowest_layer().get_executor(); } template <typename WriteHandler> void operator()(WriteHandler&& handler, buffered_stream_storage* storage) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<WriteHandler> handler2(handler); async_write(next_layer_, buffer(storage->data(), storage->size()), buffered_flush_handler<typename decay<WriteHandler>::type>( *storage, handler2.value)); } private: typename remove_reference<Stream>::type& next_layer_; }; } template <template <typename, typename> class Associator, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::buffered_flush_handler<WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::buffered_flush_handler<WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::buffered_flush_handler<WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename Stream> template < ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler> auto buffered_write_stream<Stream>::async_flush( WriteHandler&& handler) { return async_initiate<WriteHandler, void (boost::system::error_code, std::size_t)>( detail::initiate_async_buffered_flush<Stream>(next_layer_), handler, &storage_); } template <typename Stream> template <typename ConstBufferSequence> std::size_t buffered_write_stream<Stream>::write_some( const ConstBufferSequence& buffers) { using boost::asio::buffer_size; if (buffer_size(buffers) == 0) return 0; if (storage_.size() == storage_.capacity()) this->flush(); return this->copy(buffers); } template <typename Stream> template <typename ConstBufferSequence> std::size_t buffered_write_stream<Stream>::write_some( const ConstBufferSequence& buffers, boost::system::error_code& ec) { ec = boost::system::error_code(); using boost::asio::buffer_size; if (buffer_size(buffers) == 0) return 0; if (storage_.size() == storage_.capacity() && !flush(ec)) return 0; return this->copy(buffers); } namespace detail { template <typename ConstBufferSequence, typename WriteHandler> class buffered_write_some_handler { public: buffered_write_some_handler(detail::buffered_stream_storage& storage, const ConstBufferSequence& buffers, WriteHandler& handler) : storage_(storage), buffers_(buffers), handler_(static_cast<WriteHandler&&>(handler)) { } buffered_write_some_handler(const buffered_write_some_handler& other) : storage_(other.storage_), buffers_(other.buffers_), handler_(other.handler_) { } buffered_write_some_handler(buffered_write_some_handler&& other) : storage_(other.storage_), buffers_(other.buffers_), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, std::size_t) { if (ec) { const std::size_t length = 0; static_cast<WriteHandler&&>(handler_)(ec, length); } else { using boost::asio::buffer_size; std::size_t orig_size = storage_.size(); std::size_t space_avail = storage_.capacity() - orig_size; std::size_t bytes_avail = buffer_size(buffers_); std::size_t length = bytes_avail < space_avail ? bytes_avail : space_avail; storage_.resize(orig_size + length); const std::size_t bytes_copied = boost::asio::buffer_copy( storage_.data() + orig_size, buffers_, length); static_cast<WriteHandler&&>(handler_)(ec, bytes_copied); } } detail::buffered_stream_storage& storage_; ConstBufferSequence buffers_; WriteHandler handler_; }; template <typename ConstBufferSequence, typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, buffered_write_some_handler< ConstBufferSequence, WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename ConstBufferSequence, typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, buffered_write_some_handler< ConstBufferSequence, WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename ConstBufferSequence, typename WriteHandler> inline bool asio_handler_is_continuation( buffered_write_some_handler< ConstBufferSequence, WriteHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename ConstBufferSequence, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, buffered_write_some_handler< ConstBufferSequence, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename ConstBufferSequence, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, buffered_write_some_handler< ConstBufferSequence, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Stream> class initiate_async_buffered_write_some { public: typedef typename remove_reference< Stream>::type::lowest_layer_type::executor_type executor_type; explicit initiate_async_buffered_write_some( typename remove_reference<Stream>::type& next_layer) : next_layer_(next_layer) { } executor_type get_executor() const noexcept { return next_layer_.lowest_layer().get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, buffered_stream_storage* storage, const ConstBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; using boost::asio::buffer_size; non_const_lvalue<WriteHandler> handler2(handler); if (buffer_size(buffers) == 0 || storage->size() < storage->capacity()) { next_layer_.async_write_some(const_buffers_1(0, 0), buffered_write_some_handler<ConstBufferSequence, typename decay<WriteHandler>::type>( *storage, buffers, handler2.value)); } else { initiate_async_buffered_flush<Stream>(this->next_layer_)( buffered_write_some_handler<ConstBufferSequence, typename decay<WriteHandler>::type>( *storage, buffers, handler2.value), storage); } } private: typename remove_reference<Stream>::type& next_layer_; }; } template <template <typename, typename> class Associator, typename ConstBufferSequence, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::buffered_write_some_handler<ConstBufferSequence, WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::buffered_write_some_handler< ConstBufferSequence, WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::buffered_write_some_handler< ConstBufferSequence, WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename Stream> template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler> auto buffered_write_stream<Stream>::async_write_some( const ConstBufferSequence& buffers, WriteHandler&& handler) { return async_initiate<WriteHandler, void (boost::system::error_code, std::size_t)>( detail::initiate_async_buffered_write_some<Stream>(next_layer_), handler, &storage_, buffers); } template <typename Stream> template <typename ConstBufferSequence> std::size_t buffered_write_stream<Stream>::copy( const ConstBufferSequence& buffers) { using boost::asio::buffer_size; std::size_t orig_size = storage_.size(); std::size_t space_avail = storage_.capacity() - orig_size; std::size_t bytes_avail = buffer_size(buffers); std::size_t length = bytes_avail < space_avail ? bytes_avail : space_avail; storage_.resize(orig_size + length); return boost::asio::buffer_copy( storage_.data() + orig_size, buffers, length); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 508 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/buffered_write_stream.hpp" 2 3 4 # 279 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_write_stream.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream.hpp" 2 3 4 namespace boost { namespace asio { # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream.hpp" 3 4 template <typename Stream> class buffered_stream : private noncopyable { public: typedef typename remove_reference<Stream>::type next_layer_type; typedef typename next_layer_type::lowest_layer_type lowest_layer_type; typedef typename lowest_layer_type::executor_type executor_type; template <typename Arg> explicit buffered_stream(Arg&& a) : inner_stream_impl_(static_cast<Arg&&>(a)), stream_impl_(inner_stream_impl_) { } template <typename Arg> explicit buffered_stream(Arg&& a, std::size_t read_buffer_size, std::size_t write_buffer_size) : inner_stream_impl_(static_cast<Arg&&>(a), write_buffer_size), stream_impl_(inner_stream_impl_, read_buffer_size) { } next_layer_type& next_layer() { return stream_impl_.next_layer().next_layer(); } lowest_layer_type& lowest_layer() { return stream_impl_.lowest_layer(); } const lowest_layer_type& lowest_layer() const { return stream_impl_.lowest_layer(); } executor_type get_executor() noexcept { return stream_impl_.lowest_layer().get_executor(); } void close() { stream_impl_.close(); } boost::system::error_code close(boost::system::error_code& ec) { stream_impl_.close(ec); return ec; } std::size_t flush() { return stream_impl_.next_layer().flush(); } std::size_t flush(boost::system::error_code& ec) { return stream_impl_.next_layer().flush(ec); } template < ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_flush( WriteHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) { return stream_impl_.next_layer().async_flush( static_cast<WriteHandler&&>(handler)); } template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers) { return stream_impl_.write_some(buffers); } template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec) { return stream_impl_.write_some(buffers, ec); } template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) { return stream_impl_.async_write_some(buffers, static_cast<WriteHandler&&>(handler)); } std::size_t fill() { return stream_impl_.fill(); } std::size_t fill(boost::system::error_code& ec) { return stream_impl_.fill(ec); } template < ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_fill( ReadHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) { return stream_impl_.async_fill(static_cast<ReadHandler&&>(handler)); } template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { return stream_impl_.read_some(buffers); } template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return stream_impl_.read_some(buffers, ec); } template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadHandler = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadHandler&& handler = typename ::boost::asio::default_completion_token<executor_type>::type()) { return stream_impl_.async_read_some(buffers, static_cast<ReadHandler&&>(handler)); } template <typename MutableBufferSequence> std::size_t peek(const MutableBufferSequence& buffers) { return stream_impl_.peek(buffers); } template <typename MutableBufferSequence> std::size_t peek(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return stream_impl_.peek(buffers, ec); } std::size_t in_avail() { return stream_impl_.in_avail(); } std::size_t in_avail(boost::system::error_code& ec) { return stream_impl_.in_avail(ec); } private: typedef buffered_write_stream<Stream> write_stream_type; write_stream_type inner_stream_impl_; typedef buffered_read_stream<write_stream_type&> read_stream_type; read_stream_type stream_impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 309 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffered_stream.hpp" 2 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <bool IsMutable> struct buffers_iterator_types_helper; template <> struct buffers_iterator_types_helper<false> { typedef const_buffer buffer_type; template <typename ByteType> struct byte_type { typedef typename add_const<ByteType>::type type; }; }; template <> struct buffers_iterator_types_helper<true> { typedef mutable_buffer buffer_type; template <typename ByteType> struct byte_type { typedef ByteType type; }; }; template <typename BufferSequence, typename ByteType> struct buffers_iterator_types { enum { is_mutable = is_convertible< typename BufferSequence::value_type, mutable_buffer>::value }; typedef buffers_iterator_types_helper<is_mutable> helper; typedef typename helper::buffer_type buffer_type; typedef typename helper::template byte_type<ByteType>::type byte_type; typedef typename BufferSequence::const_iterator const_iterator; }; template <typename ByteType> struct buffers_iterator_types<mutable_buffer, ByteType> { typedef mutable_buffer buffer_type; typedef ByteType byte_type; typedef const mutable_buffer* const_iterator; }; template <typename ByteType> struct buffers_iterator_types<const_buffer, ByteType> { typedef const_buffer buffer_type; typedef typename add_const<ByteType>::type byte_type; typedef const const_buffer* const_iterator; }; template <typename ByteType> struct buffers_iterator_types<mutable_buffers_1, ByteType> { typedef mutable_buffer buffer_type; typedef ByteType byte_type; typedef const mutable_buffer* const_iterator; }; template <typename ByteType> struct buffers_iterator_types<const_buffers_1, ByteType> { typedef const_buffer buffer_type; typedef typename add_const<ByteType>::type byte_type; typedef const const_buffer* const_iterator; }; } template <typename BufferSequence, typename ByteType = char> class buffers_iterator { private: typedef typename detail::buffers_iterator_types< BufferSequence, ByteType>::buffer_type buffer_type; typedef typename detail::buffers_iterator_types<BufferSequence, ByteType>::const_iterator buffer_sequence_iterator_type; public: typedef std::ptrdiff_t difference_type; typedef ByteType value_type; # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp" 3 4 typedef typename detail::buffers_iterator_types< BufferSequence, ByteType>::byte_type* pointer; # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp" 3 4 typedef typename detail::buffers_iterator_types< BufferSequence, ByteType>::byte_type& reference; typedef std::random_access_iterator_tag iterator_category; buffers_iterator() : current_buffer_(), current_buffer_position_(0), begin_(), current_(), end_(), position_(0) { } static buffers_iterator begin(const BufferSequence& buffers) { buffers_iterator new_iter; new_iter.begin_ = boost::asio::buffer_sequence_begin(buffers); new_iter.current_ = boost::asio::buffer_sequence_begin(buffers); new_iter.end_ = boost::asio::buffer_sequence_end(buffers); while (new_iter.current_ != new_iter.end_) { new_iter.current_buffer_ = *new_iter.current_; if (new_iter.current_buffer_.size() > 0) break; ++new_iter.current_; } return new_iter; } static buffers_iterator end(const BufferSequence& buffers) { buffers_iterator new_iter; new_iter.begin_ = boost::asio::buffer_sequence_begin(buffers); new_iter.current_ = boost::asio::buffer_sequence_begin(buffers); new_iter.end_ = boost::asio::buffer_sequence_end(buffers); while (new_iter.current_ != new_iter.end_) { buffer_type buffer = *new_iter.current_; new_iter.position_ += buffer.size(); ++new_iter.current_; } return new_iter; } reference operator*() const { return dereference(); } pointer operator->() const { return &dereference(); } reference operator[](std::ptrdiff_t difference) const { buffers_iterator tmp(*this); tmp.advance(difference); return *tmp; } buffers_iterator& operator++() { increment(); return *this; } buffers_iterator operator++(int) { buffers_iterator tmp(*this); ++*this; return tmp; } buffers_iterator& operator--() { decrement(); return *this; } buffers_iterator operator--(int) { buffers_iterator tmp(*this); --*this; return tmp; } buffers_iterator& operator+=(std::ptrdiff_t difference) { advance(difference); return *this; } buffers_iterator& operator-=(std::ptrdiff_t difference) { advance(-difference); return *this; } friend buffers_iterator operator+(const buffers_iterator& iter, std::ptrdiff_t difference) { buffers_iterator tmp(iter); tmp.advance(difference); return tmp; } friend buffers_iterator operator+(std::ptrdiff_t difference, const buffers_iterator& iter) { buffers_iterator tmp(iter); tmp.advance(difference); return tmp; } friend buffers_iterator operator-(const buffers_iterator& iter, std::ptrdiff_t difference) { buffers_iterator tmp(iter); tmp.advance(-difference); return tmp; } friend std::ptrdiff_t operator-(const buffers_iterator& a, const buffers_iterator& b) { return b.distance_to(a); } friend bool operator==(const buffers_iterator& a, const buffers_iterator& b) { return a.equal(b); } friend bool operator!=(const buffers_iterator& a, const buffers_iterator& b) { return !a.equal(b); } friend bool operator<(const buffers_iterator& a, const buffers_iterator& b) { return a.distance_to(b) > 0; } friend bool operator<=(const buffers_iterator& a, const buffers_iterator& b) { return !(b < a); } friend bool operator>(const buffers_iterator& a, const buffers_iterator& b) { return b < a; } friend bool operator>=(const buffers_iterator& a, const buffers_iterator& b) { return !(a < b); } private: reference dereference() const { return static_cast<pointer>( current_buffer_.data())[current_buffer_position_]; } bool equal(const buffers_iterator& other) const { return position_ == other.position_; } void increment() { (static_cast <bool> (current_ != end_ && "iterator out of bounds") ? void (0) : __assert_fail ("current_ != end_ && \"iterator out of bounds\"", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp", 357, __extension__ __PRETTY_FUNCTION__)); ++position_; ++current_buffer_position_; if (current_buffer_position_ != current_buffer_.size()) return; ++current_; current_buffer_position_ = 0; while (current_ != end_) { current_buffer_ = *current_; if (current_buffer_.size() > 0) return; ++current_; } } void decrement() { (static_cast <bool> (position_ > 0 && "iterator out of bounds") ? void (0) : __assert_fail ("position_ > 0 && \"iterator out of bounds\"", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp", 380, __extension__ __PRETTY_FUNCTION__)); --position_; if (current_buffer_position_ != 0) { --current_buffer_position_; return; } buffer_sequence_iterator_type iter = current_; while (iter != begin_) { --iter; buffer_type buffer = *iter; std::size_t buffer_size = buffer.size(); if (buffer_size > 0) { current_ = iter; current_buffer_ = buffer; current_buffer_position_ = buffer_size - 1; return; } } } void advance(std::ptrdiff_t n) { if (n > 0) { (static_cast <bool> (current_ != end_ && "iterator out of bounds") ? void (0) : __assert_fail ("current_ != end_ && \"iterator out of bounds\"", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp", 412, __extension__ __PRETTY_FUNCTION__)); for (;;) { std::ptrdiff_t current_buffer_balance = current_buffer_.size() - current_buffer_position_; if (current_buffer_balance > n) { position_ += n; current_buffer_position_ += n; return; } n -= current_buffer_balance; position_ += current_buffer_balance; if (++current_ == end_) { (static_cast <bool> (n == 0 && "iterator out of bounds") ? void (0) : __assert_fail ("n == 0 && \"iterator out of bounds\"", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp", 434, __extension__ __PRETTY_FUNCTION__)); current_buffer_ = buffer_type(); current_buffer_position_ = 0; return; } current_buffer_ = *current_; current_buffer_position_ = 0; } } else if (n < 0) { std::size_t abs_n = -n; (static_cast <bool> (position_ >= abs_n && "iterator out of bounds") ? void (0) : __assert_fail ("position_ >= abs_n && \"iterator out of bounds\"", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp", 446, __extension__ __PRETTY_FUNCTION__)); for (;;) { if (current_buffer_position_ >= abs_n) { position_ -= abs_n; current_buffer_position_ -= abs_n; return; } abs_n -= current_buffer_position_; position_ -= current_buffer_position_; if (current_ == begin_) { (static_cast <bool> (abs_n == 0 && "iterator out of bounds") ? void (0) : __assert_fail ("abs_n == 0 && \"iterator out of bounds\"", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp", 464, __extension__ __PRETTY_FUNCTION__)); current_buffer_position_ = 0; return; } buffer_sequence_iterator_type iter = current_; while (iter != begin_) { --iter; buffer_type buffer = *iter; std::size_t buffer_size = buffer.size(); if (buffer_size > 0) { current_ = iter; current_buffer_ = buffer; current_buffer_position_ = buffer_size; break; } } } } } std::ptrdiff_t distance_to(const buffers_iterator& other) const { return other.position_ - position_; } buffer_type current_buffer_; std::size_t current_buffer_position_; buffer_sequence_iterator_type begin_; buffer_sequence_iterator_type current_; buffer_sequence_iterator_type end_; std::size_t position_; }; template <typename BufferSequence> inline buffers_iterator<BufferSequence> buffers_begin( const BufferSequence& buffers) { return buffers_iterator<BufferSequence>::begin(buffers); } template <typename BufferSequence> inline buffers_iterator<BufferSequence> buffers_end( const BufferSequence& buffers) { return buffers_iterator<BufferSequence>::end(buffers); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 522 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/buffers_iterator.hpp" 2 3 4 # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T> struct awaitable_signature; template <typename T, typename Executor> struct awaitable_signature<awaitable<T, Executor>> { typedef void type(std::exception_ptr, T); }; template <typename Executor> struct awaitable_signature<awaitable<void, Executor>> { typedef void type(std::exception_ptr); }; } # 108 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 template <typename Executor, typename T, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr, T)> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> inline auto co_spawn(const Executor& ex, awaitable<T, AwaitableExecutor> a, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< (is_executor<Executor>::value || execution::is_executor<Executor>::value) && is_convertible<Executor, AwaitableExecutor>::value >::type = 0); # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 template <typename Executor, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr)> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> inline auto co_spawn(const Executor& ex, awaitable<void, AwaitableExecutor> a, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< (is_executor<Executor>::value || execution::is_executor<Executor>::value) && is_convertible<Executor, AwaitableExecutor>::value >::type = 0); # 244 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 template <typename ExecutionContext, typename T, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr, T)> CompletionToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > inline auto co_spawn(ExecutionContext& ctx, awaitable<T, AwaitableExecutor> a, CompletionToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint< is_convertible<ExecutionContext&, execution_context&>::value && is_convertible<typename ExecutionContext::executor_type, AwaitableExecutor>::value >::type = 0); # 311 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 template <typename ExecutionContext, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr)> CompletionToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > inline auto co_spawn(ExecutionContext& ctx, awaitable<void, AwaitableExecutor> a, CompletionToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint< is_convertible<ExecutionContext&, execution_context&>::value && is_convertible<typename ExecutionContext::executor_type, AwaitableExecutor>::value >::type = 0); # 408 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 template <typename Executor, typename F, ::boost::asio::completion_token_for<typename detail::awaitable_signature< typename result_of<F()>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> auto co_spawn(const Executor& ex, F&& f, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0); # 501 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 3 4 template <typename ExecutionContext, typename F, ::boost::asio::completion_token_for<typename detail::awaitable_signature< typename result_of<F()>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > auto co_spawn(ExecutionContext& ctx, F&& f, CompletionToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 520 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/co_spawn.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/co_spawn.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 2 3 4 namespace boost { namespace asio { # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 3 4 template <typename Executor = any_io_executor> struct use_awaitable_t { constexpr use_awaitable_t( ) # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 3 4 { } constexpr use_awaitable_t(const char* file_name, int line, const char* function_name) { (void)file_name; (void)line; (void)function_name; } template <typename InnerExecutor> struct executor_with_default : InnerExecutor { typedef use_awaitable_t default_completion_token_type; template <typename InnerExecutor1> executor_with_default(const InnerExecutor1& ex, typename constraint< conditional< !is_same<InnerExecutor1, executor_with_default>::value, is_convertible<InnerExecutor1, InnerExecutor>, false_type >::type::value >::type = 0) noexcept : InnerExecutor(ex) { } }; template <typename T> using as_default_on_t = typename T::template rebind_executor< executor_with_default<typename T::executor_type> >::other; template <typename T> static typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other as_default_on(T&& object) { return typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other(static_cast<T&&>(object)); } }; # 155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 3 4 constexpr use_awaitable_t<> use_awaitable(0, 0, 0); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_awaitable.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_awaitable.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_awaitable.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Executor, typename T> class awaitable_handler_base : public awaitable_thread<Executor> { public: typedef void result_type; typedef awaitable<T, Executor> awaitable_type; awaitable_handler_base(awaitable<awaitable_thread_entry_point, Executor> a, const Executor& ex, cancellation_slot pcs, cancellation_state cs) : awaitable_thread<Executor>(std::move(a), ex, pcs, cs) { } explicit awaitable_handler_base(awaitable_thread<Executor>* h) : awaitable_thread<Executor>(std::move(*h)) { } protected: awaitable_frame<T, Executor>* frame() noexcept { return static_cast<awaitable_frame<T, Executor>*>( this->entry_point()->top_of_stack_); } }; template <typename, typename...> class awaitable_handler; template <typename Executor> class awaitable_handler<Executor> : public awaitable_handler_base<Executor, void> { public: using awaitable_handler_base<Executor, void>::awaitable_handler_base; void operator()() { this->frame()->attach_thread(this); this->frame()->return_void(); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor> class awaitable_handler<Executor, boost::system::error_code> : public awaitable_handler_base<Executor, void> { public: using awaitable_handler_base<Executor, void>::awaitable_handler_base; void operator()(const boost::system::error_code& ec) { this->frame()->attach_thread(this); if (ec) this->frame()->set_error(ec); else this->frame()->return_void(); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor> class awaitable_handler<Executor, std::exception_ptr> : public awaitable_handler_base<Executor, void> { public: using awaitable_handler_base<Executor, void>::awaitable_handler_base; void operator()(std::exception_ptr ex) { this->frame()->attach_thread(this); if (ex) this->frame()->set_except(ex); else this->frame()->return_void(); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor, typename T> class awaitable_handler<Executor, T> : public awaitable_handler_base<Executor, T> { public: using awaitable_handler_base<Executor, T>::awaitable_handler_base; template <typename Arg> void operator()(Arg&& arg) { this->frame()->attach_thread(this); this->frame()->return_value(std::forward<Arg>(arg)); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor, typename T> class awaitable_handler<Executor, boost::system::error_code, T> : public awaitable_handler_base<Executor, T> { public: using awaitable_handler_base<Executor, T>::awaitable_handler_base; template <typename Arg> void operator()(const boost::system::error_code& ec, Arg&& arg) { this->frame()->attach_thread(this); if (ec) this->frame()->set_error(ec); else this->frame()->return_value(std::forward<Arg>(arg)); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor, typename T> class awaitable_handler<Executor, std::exception_ptr, T> : public awaitable_handler_base<Executor, T> { public: using awaitable_handler_base<Executor, T>::awaitable_handler_base; template <typename Arg> void operator()(std::exception_ptr ex, Arg&& arg) { this->frame()->attach_thread(this); if (ex) this->frame()->set_except(ex); else this->frame()->return_value(std::forward<Arg>(arg)); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor, typename... Ts> class awaitable_handler : public awaitable_handler_base<Executor, std::tuple<Ts...>> { public: using awaitable_handler_base<Executor, std::tuple<Ts...>>::awaitable_handler_base; template <typename... Args> void operator()(Args&&... args) { this->frame()->attach_thread(this); this->frame()->return_values(std::forward<Args>(args)...); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor, typename... Ts> class awaitable_handler<Executor, boost::system::error_code, Ts...> : public awaitable_handler_base<Executor, std::tuple<Ts...>> { public: using awaitable_handler_base<Executor, std::tuple<Ts...>>::awaitable_handler_base; template <typename... Args> void operator()(const boost::system::error_code& ec, Args&&... args) { this->frame()->attach_thread(this); if (ec) this->frame()->set_error(ec); else this->frame()->return_values(std::forward<Args>(args)...); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; template <typename Executor, typename... Ts> class awaitable_handler<Executor, std::exception_ptr, Ts...> : public awaitable_handler_base<Executor, std::tuple<Ts...>> { public: using awaitable_handler_base<Executor, std::tuple<Ts...>>::awaitable_handler_base; template <typename... Args> void operator()(std::exception_ptr ex, Args&&... args) { this->frame()->attach_thread(this); if (ex) this->frame()->set_except(ex); else this->frame()->return_values(std::forward<Args>(args)...); this->frame()->clear_cancellation_slot(); this->frame()->pop_frame(); this->pump(); } }; } # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_awaitable.hpp" 3 4 template <typename Executor, typename R, typename... Args> class async_result<use_awaitable_t<Executor>, R(Args...)> { public: typedef typename detail::awaitable_handler< Executor, typename decay<Args>::type...> handler_type; typedef typename handler_type::awaitable_type return_type; template <typename Initiation, typename... InitArgs> static handler_type* do_init( detail::awaitable_frame_base<Executor>* frame, Initiation& initiation, use_awaitable_t<Executor> u, InitArgs&... args) { (void)u; (void)0; handler_type handler(frame->detach_thread()); std::move(initiation)(std::move(handler), std::move(args)...); return nullptr; } template <typename Initiation, typename... InitArgs> static return_type initiate(Initiation initiation, use_awaitable_t<Executor> u, InitArgs... args) { co_await [&] (auto* frame) { return do_init(frame, initiation, u, args...); }; for (;;) {} } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 302 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_awaitable.hpp" 2 3 4 # 166 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_awaitable.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/co_spawn.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/co_spawn.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Executor, typename = void> class co_spawn_work_guard { public: typedef typename decay< typename prefer_result<Executor, execution::outstanding_work_t::tracked_t >::type >::type executor_type; co_spawn_work_guard(const Executor& ex) : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } executor_type get_executor() const noexcept { return executor_; } private: executor_type executor_; }; template <typename Executor> struct co_spawn_work_guard<Executor, typename enable_if< !execution::is_executor<Executor>::value >::type> : executor_work_guard<Executor> { co_spawn_work_guard(const Executor& ex) : executor_work_guard<Executor>(ex) { } }; template <typename Handler, typename Executor, typename Function, typename = void> struct co_spawn_state { template <typename H, typename F> co_spawn_state(H&& h, const Executor& ex, F&& f) : handler(std::forward<H>(h)), spawn_work(ex), handler_work(boost::asio::get_associated_executor(handler, ex)), function(std::forward<F>(f)) { } Handler handler; co_spawn_work_guard<Executor> spawn_work; co_spawn_work_guard<typename associated_executor< Handler, Executor>::type> handler_work; Function function; }; template <typename Handler, typename Executor, typename Function> struct co_spawn_state<Handler, Executor, Function, typename enable_if< is_same< typename associated_executor<Handler, Executor>::asio_associated_executor_is_unspecialised, void >::value >::type> { template <typename H, typename F> co_spawn_state(H&& h, const Executor& ex, F&& f) : handler(std::forward<H>(h)), handler_work(ex), function(std::forward<F>(f)) { } Handler handler; co_spawn_work_guard<Executor> handler_work; Function function; }; struct co_spawn_dispatch { template <typename CompletionToken> auto operator()(CompletionToken&& token) const -> decltype(boost::asio::dispatch(std::forward<CompletionToken>(token))) { return boost::asio::dispatch(std::forward<CompletionToken>(token)); } }; struct co_spawn_post { template <typename CompletionToken> auto operator()(CompletionToken&& token) const -> decltype(boost::asio::post(std::forward<CompletionToken>(token))) { return boost::asio::post(std::forward<CompletionToken>(token)); } }; template <typename T, typename Handler, typename Executor, typename Function> awaitable<awaitable_thread_entry_point, Executor> co_spawn_entry_point( awaitable<T, Executor>*, co_spawn_state<Handler, Executor, Function> s) { (void) co_await co_spawn_dispatch{}; (co_await awaitable_thread_has_context_switched{}) = false; std::exception_ptr e = nullptr; bool done = false; try { T t = co_await s.function(); done = true; bool switched = (co_await awaitable_thread_has_context_switched{}); if (!switched) (void) co_await co_spawn_post(); (dispatch)(s.handler_work.get_executor(), [handler = std::move(s.handler), t = std::move(t)]() mutable { std::move(handler)(std::exception_ptr(), std::move(t)); }); co_return; } catch (...) { if (done) throw; e = std::current_exception(); } bool switched = (co_await awaitable_thread_has_context_switched{}); if (!switched) (void) co_await co_spawn_post(); (dispatch)(s.handler_work.get_executor(), [handler = std::move(s.handler), e]() mutable { std::move(handler)(e, T()); }); } template <typename Handler, typename Executor, typename Function> awaitable<awaitable_thread_entry_point, Executor> co_spawn_entry_point( awaitable<void, Executor>*, co_spawn_state<Handler, Executor, Function> s) { (void) co_await co_spawn_dispatch{}; (co_await awaitable_thread_has_context_switched{}) = false; std::exception_ptr e = nullptr; try { co_await s.function(); } catch (...) { e = std::current_exception(); } bool switched = (co_await awaitable_thread_has_context_switched{}); if (!switched) (void) co_await co_spawn_post(); (dispatch)(s.handler_work.get_executor(), [handler = std::move(s.handler), e]() mutable { std::move(handler)(e); }); } template <typename T, typename Executor> class awaitable_as_function { public: explicit awaitable_as_function(awaitable<T, Executor>&& a) : awaitable_(std::move(a)) { } awaitable<T, Executor> operator()() { return std::move(awaitable_); } private: awaitable<T, Executor> awaitable_; }; template <typename Handler, typename Executor, typename = void> class co_spawn_cancellation_handler { public: co_spawn_cancellation_handler(const Handler&, const Executor& ex) : signal_(detail::allocate_shared<cancellation_signal>( detail::recycling_allocator<cancellation_signal, detail::thread_info_base::cancellation_signal_tag>())), ex_(ex) { } cancellation_slot slot() { return signal_->slot(); } void operator()(cancellation_type_t type) { shared_ptr<cancellation_signal> sig = signal_; boost::asio::dispatch(ex_, [sig, type]{ sig->emit(type); }); } private: shared_ptr<cancellation_signal> signal_; Executor ex_; }; template <typename Handler, typename Executor> class co_spawn_cancellation_handler<Handler, Executor, typename enable_if< is_same< typename associated_executor<Handler, Executor>::asio_associated_executor_is_unspecialised, void >::value >::type> { public: co_spawn_cancellation_handler(const Handler&, const Executor&) { } cancellation_slot slot() { return signal_.slot(); } void operator()(cancellation_type_t type) { signal_.emit(type); } private: cancellation_signal signal_; }; template <typename Executor> class initiate_co_spawn { public: typedef Executor executor_type; template <typename OtherExecutor> explicit initiate_co_spawn(const OtherExecutor& ex) : ex_(ex) { } executor_type get_executor() const noexcept { return ex_; } template <typename Handler, typename F> void operator()(Handler&& handler, F&& f) const { typedef typename result_of<F()>::type awaitable_type; typedef typename decay<Handler>::type handler_type; typedef typename decay<F>::type function_type; typedef co_spawn_cancellation_handler< handler_type, Executor> cancel_handler_type; auto slot = boost::asio::get_associated_cancellation_slot(handler); cancel_handler_type* cancel_handler = slot.is_connected() ? &slot.template emplace<cancel_handler_type>(handler, ex_) : nullptr; cancellation_slot proxy_slot( cancel_handler ? cancel_handler->slot() : cancellation_slot()); cancellation_state cancel_state(proxy_slot); auto a = (co_spawn_entry_point)(static_cast<awaitable_type*>(nullptr), co_spawn_state<handler_type, Executor, function_type>( std::forward<Handler>(handler), ex_, std::forward<F>(f))); awaitable_handler<executor_type, void>(std::move(a), ex_, proxy_slot, cancel_state).launch(); } private: Executor ex_; }; } template <typename Executor, typename T, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr, T)> CompletionToken> inline auto co_spawn(const Executor& ex, awaitable<T, AwaitableExecutor> a, CompletionToken&& token, typename constraint< (is_executor<Executor>::value || execution::is_executor<Executor>::value) && is_convertible<Executor, AwaitableExecutor>::value >::type) { return async_initiate<CompletionToken, void(std::exception_ptr, T)>( detail::initiate_co_spawn<AwaitableExecutor>(AwaitableExecutor(ex)), token, detail::awaitable_as_function<T, AwaitableExecutor>(std::move(a))); } template <typename Executor, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr)> CompletionToken> inline auto co_spawn(const Executor& ex, awaitable<void, AwaitableExecutor> a, CompletionToken&& token, typename constraint< (is_executor<Executor>::value || execution::is_executor<Executor>::value) && is_convertible<Executor, AwaitableExecutor>::value >::type) { return async_initiate<CompletionToken, void(std::exception_ptr)>( detail::initiate_co_spawn<AwaitableExecutor>(AwaitableExecutor(ex)), token, detail::awaitable_as_function< void, AwaitableExecutor>(std::move(a))); } template <typename ExecutionContext, typename T, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr, T)> CompletionToken> inline auto co_spawn(ExecutionContext& ctx, awaitable<T, AwaitableExecutor> a, CompletionToken&& token, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value && is_convertible<typename ExecutionContext::executor_type, AwaitableExecutor>::value >::type) { return (co_spawn)(ctx.get_executor(), std::move(a), std::forward<CompletionToken>(token)); } template <typename ExecutionContext, typename AwaitableExecutor, ::boost::asio::completion_token_for<void(std::exception_ptr)> CompletionToken> inline auto co_spawn(ExecutionContext& ctx, awaitable<void, AwaitableExecutor> a, CompletionToken&& token, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value && is_convertible<typename ExecutionContext::executor_type, AwaitableExecutor>::value >::type) { return (co_spawn)(ctx.get_executor(), std::move(a), std::forward<CompletionToken>(token)); } template <typename Executor, typename F, ::boost::asio::completion_token_for<typename detail::awaitable_signature< typename result_of<F()>::type>::type> CompletionToken> inline auto co_spawn(const Executor& ex, F&& f, CompletionToken&& token, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type) { return async_initiate<CompletionToken, typename detail::awaitable_signature<typename result_of<F()>::type>::type>( detail::initiate_co_spawn< typename result_of<F()>::type::executor_type>(ex), token, std::forward<F>(f)); } template <typename ExecutionContext, typename F, ::boost::asio::completion_token_for<typename detail::awaitable_signature< typename result_of<F()>::type>::type> CompletionToken> inline auto co_spawn(ExecutionContext& ctx, F&& f, CompletionToken&& token, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type) { return (co_spawn)(ctx.get_executor(), std::forward<F>(f), std::forward<CompletionToken>(token)); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 442 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/co_spawn.hpp" 2 3 4 # 522 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/co_spawn.hpp" 2 3 4 # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/composed_work.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/composed_work.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/composed_work.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Executor, typename = void> class composed_work_guard { public: typedef typename decay< typename prefer_result<Executor, execution::outstanding_work_t::tracked_t >::type >::type executor_type; composed_work_guard(const Executor& ex) : executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } void reset() { } executor_type get_executor() const noexcept { return executor_; } private: executor_type executor_; }; template <> struct composed_work_guard<system_executor> { public: typedef system_executor executor_type; composed_work_guard(const system_executor&) { } void reset() { } executor_type get_executor() const noexcept { return system_executor(); } }; template <typename Executor> struct composed_work_guard<Executor, typename enable_if< !execution::is_executor<Executor>::value >::type> : executor_work_guard<Executor> { composed_work_guard(const Executor& ex) : executor_work_guard<Executor>(ex) { } }; template <typename> struct composed_io_executors; template <> struct composed_io_executors<void()> { composed_io_executors() noexcept : head_(system_executor()) { } typedef system_executor head_type; system_executor head_; }; inline composed_io_executors<void()> make_composed_io_executors() { return composed_io_executors<void()>(); } template <typename Head> struct composed_io_executors<void(Head)> { explicit composed_io_executors(const Head& ex) noexcept : head_(ex) { } typedef Head head_type; Head head_; }; template <typename Head> inline composed_io_executors<void(Head)> make_composed_io_executors(const Head& head) { return composed_io_executors<void(Head)>(head); } template <typename Head, typename... Tail> struct composed_io_executors<void(Head, Tail...)> { explicit composed_io_executors(const Head& head, const Tail&... tail) noexcept : head_(head), tail_(tail...) { } void reset() { head_.reset(); tail_.reset(); } typedef Head head_type; Head head_; composed_io_executors<void(Tail...)> tail_; }; template <typename Head, typename... Tail> inline composed_io_executors<void(Head, Tail...)> make_composed_io_executors(const Head& head, const Tail&... tail) { return composed_io_executors<void(Head, Tail...)>(head, tail...); } # 205 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/composed_work.hpp" 3 4 template <typename> struct composed_work; template <> struct composed_work<void()> { typedef composed_io_executors<void()> executors_type; composed_work(const executors_type&) noexcept : head_(system_executor()) { } void reset() { head_.reset(); } typedef system_executor head_type; composed_work_guard<system_executor> head_; }; template <typename Head> struct composed_work<void(Head)> { typedef composed_io_executors<void(Head)> executors_type; explicit composed_work(const executors_type& ex) noexcept : head_(ex.head_) { } void reset() { head_.reset(); } typedef Head head_type; composed_work_guard<Head> head_; }; template <typename Head, typename... Tail> struct composed_work<void(Head, Tail...)> { typedef composed_io_executors<void(Head, Tail...)> executors_type; explicit composed_work(const executors_type& ex) noexcept : head_(ex.head_), tail_(ex.tail_) { } void reset() { head_.reset(); tail_.reset(); } typedef Head head_type; composed_work_guard<Head> head_; composed_work<void(Tail...)> tail_; }; # 301 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/composed_work.hpp" 3 4 template <typename IoObject> inline typename IoObject::executor_type get_composed_io_executor(IoObject& io_object, typename enable_if< !is_executor<IoObject>::value >::type* = 0, typename enable_if< !execution::is_executor<IoObject>::value >::type* = 0) { return io_object.get_executor(); } template <typename Executor> inline const Executor& get_composed_io_executor(const Executor& ex, typename enable_if< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type* = 0) { return ex; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 329 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/composed_work.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Impl, typename Work, typename Handler, typename Signature> class composed_op; template <typename Impl, typename Work, typename Handler, typename R, typename... Args> class composed_op<Impl, Work, Handler, R(Args...)> : public base_from_cancellation_state<Handler> { public: template <typename I, typename W, typename H> composed_op(I&& impl, W&& work, H&& handler) : base_from_cancellation_state<Handler>( handler, enable_terminal_cancellation()), impl_(static_cast<I&&>(impl)), work_(static_cast<W&&>(work)), handler_(static_cast<H&&>(handler)), invocations_(0) { } composed_op(composed_op&& other) : base_from_cancellation_state<Handler>( static_cast<base_from_cancellation_state< Handler>&&> (other)), impl_(static_cast<Impl&&>(other.impl_)), work_(static_cast<Work&&>(other.work_)), handler_(static_cast<Handler&&>(other.handler_)), invocations_(other.invocations_) { } typedef typename composed_work_guard< typename Work::head_type>::executor_type io_executor_type; io_executor_type get_io_executor() const noexcept { return work_.head_.get_executor(); } typedef typename associated_executor<Handler, io_executor_type>::type executor_type; executor_type get_executor() const noexcept { return (get_associated_executor)(handler_, work_.head_.get_executor()); } typedef typename associated_allocator<Handler, std::allocator<void> >::type allocator_type; allocator_type get_allocator() const noexcept { return (get_associated_allocator)(handler_, std::allocator<void>()); } template<typename... T> void operator()(T&&... t) { if (invocations_ < ~0u) ++invocations_; this->get_cancellation_state().slot().clear(); impl_(*this, static_cast<T&&>(t)...); } void complete(Args... args) { this->work_.reset(); static_cast<Handler&&>(this->handler_)( static_cast<Args&&>(args)...); } # 156 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 3 4 void reset_cancellation_state() { base_from_cancellation_state<Handler>::reset_cancellation_state(handler_); } template <typename Filter> void reset_cancellation_state(Filter&& filter) { base_from_cancellation_state<Handler>::reset_cancellation_state(handler_, static_cast<Filter&&>(filter)); } template <typename InFilter, typename OutFilter> void reset_cancellation_state(InFilter&& in_filter, OutFilter&& out_filter) { base_from_cancellation_state<Handler>::reset_cancellation_state(handler_, static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)); } cancellation_type_t cancelled() const noexcept { return base_from_cancellation_state<Handler>::cancelled(); } Impl impl_; Work work_; Handler handler_; unsigned invocations_; }; template <typename Impl, typename Work, typename Handler, typename Signature> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, composed_op<Impl, Work, Handler, Signature>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Impl, typename Work, typename Handler, typename Signature> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, composed_op<Impl, Work, Handler, Signature>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Impl, typename Work, typename Handler, typename Signature> inline bool asio_handler_is_continuation( composed_op<Impl, Work, Handler, Signature>* this_handler) { return this_handler->invocations_ > 1 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Impl, typename Work, typename Handler, typename Signature> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, composed_op<Impl, Work, Handler, Signature>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Impl, typename Work, typename Handler, typename Signature> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, composed_op<Impl, Work, Handler, Signature>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Signature, typename Executors> class initiate_composed_op { public: typedef typename composed_io_executors<Executors>::head_type executor_type; template <typename T> explicit initiate_composed_op(int, T&& executors) : executors_(static_cast<T&&>(executors)) { } executor_type get_executor() const noexcept { return executors_.head_; } template <typename Handler, typename Impl> void operator()(Handler&& handler, Impl&& impl) const { composed_op<typename decay<Impl>::type, composed_work<Executors>, typename decay<Handler>::type, Signature>( static_cast<Impl&&>(impl), composed_work<Executors>(executors_), static_cast<Handler&&>(handler))(); } private: composed_io_executors<Executors> executors_; }; template <typename Signature, typename Executors> inline initiate_composed_op<Signature, Executors> make_initiate_composed_op( composed_io_executors<Executors>&& executors) { return initiate_composed_op<Signature, Executors>(0, static_cast<composed_io_executors<Executors>&&>(executors)); } } template <template <typename, typename> class Associator, typename Impl, typename Work, typename Handler, typename Signature, typename DefaultCandidate> struct associator<Associator, detail::composed_op<Impl, Work, Handler, Signature>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::composed_op<Impl, Work, Handler, Signature>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::composed_op<Impl, Work, Handler, Signature>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; # 407 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 3 4 template <typename CompletionToken, typename Signature, typename Implementation, typename... IoObjectsOrExecutors> auto async_compose(Implementation&& implementation, CompletionToken& token, IoObjectsOrExecutors&&... io_objects_or_executors) { return async_initiate<CompletionToken, Signature>( detail::make_initiate_composed_op<Signature>( detail::make_composed_io_executors( detail::get_composed_io_executor( static_cast<IoObjectsOrExecutors&&>( io_objects_or_executors))...)), token, static_cast<Implementation&&>(implementation)); } # 535 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 3 4 } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 539 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/compose.hpp" 2 3 4 # 70 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct default_connect_condition; template <typename, typename> class initiate_async_range_connect; template <typename, typename> class initiate_async_iterator_connect; char (&has_iterator_helper(...))[2]; template <typename T> char has_iterator_helper(T*, typename T::iterator* = 0); template <typename T> struct has_iterator_typedef { enum { value = (sizeof((has_iterator_helper)((T*)(0))) == 1) }; }; } template <typename T> struct is_endpoint_sequence { enum { value = detail::has_iterator_typedef<T>::value }; }; # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename EndpointSequence> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type = 0); # 131 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename EndpointSequence> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, boost::system::error_code& ec, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type = 0); # 162 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, typename constraint<!is_endpoint_sequence<Iterator>::value>::type = 0); # 190 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, boost::system::error_code& ec, typename constraint<!is_endpoint_sequence<Iterator>::value>::type = 0); # 223 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end); # 260 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, boost::system::error_code& ec); # 315 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, ConnectCondition connect_condition, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type = 0); # 382 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, ConnectCondition connect_condition, boost::system::error_code& ec, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type = 0); # 426 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, ConnectCondition connect_condition, typename constraint<!is_endpoint_sequence<Iterator>::value>::type = 0); # 467 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, ConnectCondition connect_condition, boost::system::error_code& ec, typename constraint<!is_endpoint_sequence<Iterator>::value>::type = 0); # 528 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, ConnectCondition connect_condition); # 596 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, ConnectCondition connect_condition, boost::system::error_code& ec); # 689 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename EndpointSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::endpoint)> RangeConnectToken = typename ::boost::asio::default_completion_token<Executor>::type> auto async_connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, RangeConnectToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type = 0) ; # 759 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken = typename ::boost::asio::default_completion_token<Executor>::type> auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, IteratorConnectToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint<!is_endpoint_sequence<Iterator>::value>::type = 0) ; # 842 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken = typename ::boost::asio::default_completion_token<Executor>::type> auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, IteratorConnectToken&& token = typename ::boost::asio::default_completion_token<Executor>::type()) ; # 968 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::endpoint)> RangeConnectToken = typename ::boost::asio::default_completion_token<Executor>::type> auto async_connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, ConnectCondition connect_condition, RangeConnectToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type = 0) ; # 1050 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken = typename ::boost::asio::default_completion_token<Executor>::type> auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, ConnectCondition connect_condition, IteratorConnectToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint<!is_endpoint_sequence<Iterator>::value>::type = 0) ; # 1183 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 3 4 template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken = typename ::boost::asio::default_completion_token<Executor>::type> auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, ConnectCondition connect_condition, IteratorConnectToken&& token = typename ::boost::asio::default_completion_token<Executor>::type()) ; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1206 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect.hpp" 1 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct default_connect_condition { template <typename Endpoint> bool operator()(const boost::system::error_code&, const Endpoint&) { return true; } }; template <typename Protocol, typename Iterator> inline typename Protocol::endpoint deref_connect_result( Iterator iter, boost::system::error_code& ec) { return ec ? typename Protocol::endpoint() : *iter; } template <typename T, typename Iterator> struct legacy_connect_condition_helper : T { typedef char (*fallback_func_type)(...); operator fallback_func_type() const; }; template <typename R, typename Arg1, typename Arg2, typename Iterator> struct legacy_connect_condition_helper<R (*)(Arg1, Arg2), Iterator> { R operator()(Arg1, Arg2) const; char operator()(...) const; }; template <typename T, typename Iterator> struct is_legacy_connect_condition { static char asio_connect_condition_check(char); static char (&asio_connect_condition_check(Iterator))[2]; static const bool value = sizeof(asio_connect_condition_check( (declval<legacy_connect_condition_helper<T, Iterator> >())( declval<const boost::system::error_code>(), declval<const Iterator>()))) != 1; }; template <typename ConnectCondition, typename Iterator> inline Iterator call_connect_condition(ConnectCondition& connect_condition, const boost::system::error_code& ec, Iterator next, Iterator end, typename enable_if<is_legacy_connect_condition< ConnectCondition, Iterator>::value>::type* = 0) { if (next != end) return connect_condition(ec, next); return end; } template <typename ConnectCondition, typename Iterator> inline Iterator call_connect_condition(ConnectCondition& connect_condition, const boost::system::error_code& ec, Iterator next, Iterator end, typename enable_if<!is_legacy_connect_condition< ConnectCondition, Iterator>::value>::type* = 0) { for (;next != end; ++next) if (connect_condition(ec, *next)) return next; return end; } } template <typename Protocol, typename Executor, typename EndpointSequence> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type) { boost::system::error_code ec; typename Protocol::endpoint result = connect(s, endpoints, ec); boost::asio::detail::throw_error(ec, "connect"); return result; } template <typename Protocol, typename Executor, typename EndpointSequence> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, boost::system::error_code& ec, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type) { return detail::deref_connect_result<Protocol>( connect(s, endpoints.begin(), endpoints.end(), detail::default_connect_condition(), ec), ec); } template <typename Protocol, typename Executor, typename Iterator> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, typename constraint<!is_endpoint_sequence<Iterator>::value>::type) { boost::system::error_code ec; Iterator result = connect(s, begin, ec); boost::asio::detail::throw_error(ec, "connect"); return result; } template <typename Protocol, typename Executor, typename Iterator> inline Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, boost::system::error_code& ec, typename constraint<!is_endpoint_sequence<Iterator>::value>::type) { return connect(s, begin, Iterator(), detail::default_connect_condition(), ec); } template <typename Protocol, typename Executor, typename Iterator> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end) { boost::system::error_code ec; Iterator result = connect(s, begin, end, ec); boost::asio::detail::throw_error(ec, "connect"); return result; } template <typename Protocol, typename Executor, typename Iterator> inline Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, boost::system::error_code& ec) { return connect(s, begin, end, detail::default_connect_condition(), ec); } template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, ConnectCondition connect_condition, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type) { boost::system::error_code ec; typename Protocol::endpoint result = connect( s, endpoints, connect_condition, ec); boost::asio::detail::throw_error(ec, "connect"); return result; } template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition> typename Protocol::endpoint connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, ConnectCondition connect_condition, boost::system::error_code& ec, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type) { return detail::deref_connect_result<Protocol>( connect(s, endpoints.begin(), endpoints.end(), connect_condition, ec), ec); } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, ConnectCondition connect_condition, typename constraint<!is_endpoint_sequence<Iterator>::value>::type) { boost::system::error_code ec; Iterator result = connect(s, begin, connect_condition, ec); boost::asio::detail::throw_error(ec, "connect"); return result; } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> inline Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, ConnectCondition connect_condition, boost::system::error_code& ec, typename constraint<!is_endpoint_sequence<Iterator>::value>::type) { return connect(s, begin, Iterator(), connect_condition, ec); } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, ConnectCondition connect_condition) { boost::system::error_code ec; Iterator result = connect(s, begin, end, connect_condition, ec); boost::asio::detail::throw_error(ec, "connect"); return result; } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition> Iterator connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, ConnectCondition connect_condition, boost::system::error_code& ec) { ec = boost::system::error_code(); for (Iterator iter = begin; iter != end; ++iter) { iter = (detail::call_connect_condition(connect_condition, ec, iter, end)); if (iter != end) { s.close(ec); s.connect(*iter, ec); if (!ec) return iter; } else break; } if (!ec) ec = boost::asio::error::not_found; return end; } namespace detail { template <typename ConnectCondition> class base_from_connect_condition { protected: explicit base_from_connect_condition( const ConnectCondition& connect_condition) : connect_condition_(connect_condition) { } template <typename Iterator> void check_condition(const boost::system::error_code& ec, Iterator& iter, Iterator& end) { iter = detail::call_connect_condition(connect_condition_, ec, iter, end); } private: ConnectCondition connect_condition_; }; template <> class base_from_connect_condition<default_connect_condition> { protected: explicit base_from_connect_condition(const default_connect_condition&) { } template <typename Iterator> void check_condition(const boost::system::error_code&, Iterator&, Iterator&) { } }; template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler> class range_connect_op : public base_from_cancellation_state<RangeConnectHandler>, base_from_connect_condition<ConnectCondition> { public: range_connect_op(basic_socket<Protocol, Executor>& sock, const EndpointSequence& endpoints, const ConnectCondition& connect_condition, RangeConnectHandler& handler) : base_from_cancellation_state<RangeConnectHandler>( handler, enable_partial_cancellation()), base_from_connect_condition<ConnectCondition>(connect_condition), socket_(sock), endpoints_(endpoints), index_(0), start_(0), handler_(static_cast<RangeConnectHandler&&>(handler)) { } range_connect_op(const range_connect_op& other) : base_from_cancellation_state<RangeConnectHandler>(other), base_from_connect_condition<ConnectCondition>(other), socket_(other.socket_), endpoints_(other.endpoints_), index_(other.index_), start_(other.start_), handler_(other.handler_) { } range_connect_op(range_connect_op&& other) : base_from_cancellation_state<RangeConnectHandler>( static_cast<base_from_cancellation_state< RangeConnectHandler>&&> (other)), base_from_connect_condition<ConnectCondition>(other), socket_(other.socket_), endpoints_(other.endpoints_), index_(other.index_), start_(other.start_), handler_(static_cast<RangeConnectHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, int start = 0) { this->process(ec, start, const_cast<const EndpointSequence&>(endpoints_).begin(), const_cast<const EndpointSequence&>(endpoints_).end()); } template <typename Iterator> void process(boost::system::error_code ec, int start, Iterator begin, Iterator end) { Iterator iter = begin; std::advance(iter, index_); switch (start_ = start) { case 1: for (;;) { this->check_condition(ec, iter, end); index_ = std::distance(begin, iter); if (iter != end) { socket_.close(ec); (void)0; socket_.async_connect(*iter, static_cast<range_connect_op&&>(*this)); return; } if (start) { ec = boost::asio::error::not_found; (void)0; boost::asio::post(socket_.get_executor(), detail::bind_handler( static_cast<range_connect_op&&>(*this), ec)); return; } default: if (iter == end) break; if (!socket_.is_open()) { ec = boost::asio::error::operation_aborted; break; } if (!ec) break; if (this->cancelled() != cancellation_type::none) { ec = boost::asio::error::operation_aborted; break; } ++iter; ++index_; } static_cast<RangeConnectHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const typename Protocol::endpoint&>( ec || iter == end ? typename Protocol::endpoint() : *iter)); } } basic_socket<Protocol, Executor>& socket_; EndpointSequence endpoints_; std::size_t index_; int start_; RangeConnectHandler handler_; }; template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler> inline bool asio_handler_is_continuation( range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Executor, typename Protocol, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Executor, typename Protocol, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Protocol, typename Executor> class initiate_async_range_connect { public: typedef Executor executor_type; explicit initiate_async_range_connect(basic_socket<Protocol, Executor>& s) : socket_(s) { } executor_type get_executor() const noexcept { return socket_.get_executor(); } template <typename RangeConnectHandler, typename EndpointSequence, typename ConnectCondition> void operator()(RangeConnectHandler&& handler, const EndpointSequence& endpoints, const ConnectCondition& connect_condition) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<RangeConnectHandler>::type, void(boost::system::error_code, typename Protocol::endpoint)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const typename Protocol::endpoint*>(0))) == 1, "RangeConnectHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const typename Protocol::endpoint>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<RangeConnectHandler> handler2(handler); range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, typename decay<RangeConnectHandler>::type>(socket_, endpoints, connect_condition, handler2.value)(boost::system::error_code(), 1); } private: basic_socket<Protocol, Executor>& socket_; }; template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler> class iterator_connect_op : public base_from_cancellation_state<IteratorConnectHandler>, base_from_connect_condition<ConnectCondition> { public: iterator_connect_op(basic_socket<Protocol, Executor>& sock, const Iterator& begin, const Iterator& end, const ConnectCondition& connect_condition, IteratorConnectHandler& handler) : base_from_cancellation_state<IteratorConnectHandler>( handler, enable_partial_cancellation()), base_from_connect_condition<ConnectCondition>(connect_condition), socket_(sock), iter_(begin), end_(end), start_(0), handler_(static_cast<IteratorConnectHandler&&>(handler)) { } iterator_connect_op(const iterator_connect_op& other) : base_from_cancellation_state<IteratorConnectHandler>(other), base_from_connect_condition<ConnectCondition>(other), socket_(other.socket_), iter_(other.iter_), end_(other.end_), start_(other.start_), handler_(other.handler_) { } iterator_connect_op(iterator_connect_op&& other) : base_from_cancellation_state<IteratorConnectHandler>( static_cast<base_from_cancellation_state< IteratorConnectHandler>&&> (other)), base_from_connect_condition<ConnectCondition>(other), socket_(other.socket_), iter_(other.iter_), end_(other.end_), start_(other.start_), handler_(static_cast<IteratorConnectHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, int start = 0) { switch (start_ = start) { case 1: for (;;) { this->check_condition(ec, iter_, end_); if (iter_ != end_) { socket_.close(ec); (void)0; socket_.async_connect(*iter_, static_cast<iterator_connect_op&&>(*this)); return; } if (start) { ec = boost::asio::error::not_found; (void)0; boost::asio::post(socket_.get_executor(), detail::bind_handler( static_cast<iterator_connect_op&&>(*this), ec)); return; } default: if (iter_ == end_) break; if (!socket_.is_open()) { ec = boost::asio::error::operation_aborted; break; } if (!ec) break; if (this->cancelled() != cancellation_type::none) { ec = boost::asio::error::operation_aborted; break; } ++iter_; } static_cast<IteratorConnectHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const Iterator&>(iter_)); } } basic_socket<Protocol, Executor>& socket_; Iterator iter_; Iterator end_; int start_; IteratorConnectHandler handler_; }; template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler> inline bool asio_handler_is_continuation( iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Executor, typename Protocol, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Executor, typename Protocol, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Protocol, typename Executor> class initiate_async_iterator_connect { public: typedef Executor executor_type; explicit initiate_async_iterator_connect( basic_socket<Protocol, Executor>& s) : socket_(s) { } executor_type get_executor() const noexcept { return socket_.get_executor(); } template <typename IteratorConnectHandler, typename Iterator, typename ConnectCondition> void operator()(IteratorConnectHandler&& handler, Iterator begin, Iterator end, const ConnectCondition& connect_condition) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<IteratorConnectHandler>::type, void(boost::system::error_code, Iterator)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const Iterator*>(0))) == 1, "IteratorConnectHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const Iterator>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<IteratorConnectHandler> handler2(handler); iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, typename decay<IteratorConnectHandler>::type>(socket_, begin, end, connect_condition, handler2.value)(boost::system::error_code(), 1); } private: basic_socket<Protocol, Executor>& socket_; }; } template <template <typename, typename> class Associator, typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, typename RangeConnectHandler, typename DefaultCandidate> struct associator<Associator, detail::range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>, DefaultCandidate> : Associator<RangeConnectHandler, DefaultCandidate> { static typename Associator<RangeConnectHandler, DefaultCandidate>::type get(const detail::range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>& h) noexcept { return Associator<RangeConnectHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::range_connect_op<Protocol, Executor, EndpointSequence, ConnectCondition, RangeConnectHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<RangeConnectHandler, DefaultCandidate>::get( h.handler_, c)) { return Associator<RangeConnectHandler, DefaultCandidate>::get( h.handler_, c); } }; template <template <typename, typename> class Associator, typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, typename IteratorConnectHandler, typename DefaultCandidate> struct associator<Associator, detail::iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>, DefaultCandidate> : Associator<IteratorConnectHandler, DefaultCandidate> { static typename Associator<IteratorConnectHandler, DefaultCandidate>::type get(const detail::iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>& h) noexcept { return Associator<IteratorConnectHandler, DefaultCandidate>::get( h.handler_); } static auto get(const detail::iterator_connect_op<Protocol, Executor, Iterator, ConnectCondition, IteratorConnectHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<IteratorConnectHandler, DefaultCandidate>::get( h.handler_, c)) { return Associator<IteratorConnectHandler, DefaultCandidate>::get( h.handler_, c); } }; template <typename Protocol, typename Executor, typename EndpointSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::endpoint)> RangeConnectToken> inline auto async_connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, RangeConnectToken&& token, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type) { return async_initiate<RangeConnectToken, void (boost::system::error_code, typename Protocol::endpoint)>( detail::initiate_async_range_connect<Protocol, Executor>(s), token, endpoints, detail::default_connect_condition()); } template <typename Protocol, typename Executor, typename Iterator, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken> inline auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, IteratorConnectToken&& token, typename constraint<!is_endpoint_sequence<Iterator>::value>::type) { return async_initiate<IteratorConnectToken, void (boost::system::error_code, Iterator)>( detail::initiate_async_iterator_connect<Protocol, Executor>(s), token, begin, Iterator(), detail::default_connect_condition()); } template <typename Protocol, typename Executor, typename Iterator, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken> inline auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, IteratorConnectToken&& token) { return async_initiate<IteratorConnectToken, void (boost::system::error_code, Iterator)>( detail::initiate_async_iterator_connect<Protocol, Executor>(s), token, begin, end, detail::default_connect_condition()); } template <typename Protocol, typename Executor, typename EndpointSequence, typename ConnectCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, typename Protocol::endpoint)> RangeConnectToken> inline auto async_connect(basic_socket<Protocol, Executor>& s, const EndpointSequence& endpoints, ConnectCondition connect_condition, RangeConnectToken&& token, typename constraint<is_endpoint_sequence< EndpointSequence>::value>::type) { return async_initiate<RangeConnectToken, void (boost::system::error_code, typename Protocol::endpoint)>( detail::initiate_async_range_connect<Protocol, Executor>(s), token, endpoints, connect_condition); } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken> inline auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, ConnectCondition connect_condition, IteratorConnectToken&& token, typename constraint<!is_endpoint_sequence<Iterator>::value>::type) { return async_initiate<IteratorConnectToken, void (boost::system::error_code, Iterator)>( detail::initiate_async_iterator_connect<Protocol, Executor>(s), token, begin, Iterator(), connect_condition); } template <typename Protocol, typename Executor, typename Iterator, typename ConnectCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, Iterator)> IteratorConnectToken> inline auto async_connect(basic_socket<Protocol, Executor>& s, Iterator begin, Iterator end, ConnectCondition connect_condition, IteratorConnectToken&& token) { return async_initiate<IteratorConnectToken, void (boost::system::error_code, Iterator)>( detail::initiate_async_iterator_connect<Protocol, Executor>(s), token, begin, end, connect_condition); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 960 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect.hpp" 2 3 4 # 1208 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect.hpp" 2 3 4 # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { typedef int native_pipe_handle; inline void create_pipe(native_pipe_handle p[2], boost::system::error_code& ec); inline void close_pipe(native_pipe_handle p); } # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 3 4 template <typename Executor1, typename Executor2> void connect_pipe(basic_readable_pipe<Executor1>& read_end, basic_writable_pipe<Executor2>& write_end); # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 3 4 template <typename Executor1, typename Executor2> boost::system::error_code connect_pipe(basic_readable_pipe<Executor1>& read_end, basic_writable_pipe<Executor2>& write_end, boost::system::error_code& ec); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.hpp" 2 3 4 namespace boost { namespace asio { template <typename Executor1, typename Executor2> void connect_pipe(basic_readable_pipe<Executor1>& read_end, basic_writable_pipe<Executor2>& write_end) { boost::system::error_code ec; boost::asio::connect_pipe(read_end, write_end, ec); boost::asio::detail::throw_error(ec, "connect_pipe"); } template <typename Executor1, typename Executor2> boost::system::error_code connect_pipe(basic_readable_pipe<Executor1>& read_end, basic_writable_pipe<Executor2>& write_end, boost::system::error_code& ec) { detail::native_pipe_handle p[2]; detail::create_pipe(p, ec); if (ec) return ec; read_end.assign(p[0], ec); if (ec) { detail::close_pipe(p[0]); detail::close_pipe(p[1]); return ec; } write_end.assign(p[1], ec); if (ec) { boost::system::error_code temp_ec; read_end.close(temp_ec); detail::close_pipe(p[1]); return ec; } return ec; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.hpp" 2 3 4 # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.ipp" 1 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { void create_pipe(native_pipe_handle p[2], boost::system::error_code& ec) { # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.ipp" 3 4 int result = ::pipe(p); detail::descriptor_ops::get_last_error(ec, result != 0); } void close_pipe(native_pipe_handle p) { boost::system::error_code ignored_ec; detail::descriptor_ops::state_type state = 0; detail::descriptor_ops::close(p, state, ignored_ec); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 148 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/connect_pipe.ipp" 2 3 4 # 80 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/connect_pipe.hpp" 2 3 4 # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 2 3 4 namespace boost { namespace asio { # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 3 4 template <typename CompletionToken, typename... Values> class consign_t { public: template <typename T, typename... V> constexpr explicit consign_t( T&& completion_token, V&&... values) : token_(static_cast<T&&>(completion_token)), values_(static_cast<V&&>(values)...) { } CompletionToken token_; std::tuple<Values...> values_; }; # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 3 4 template <typename CompletionToken, typename... Values> [[nodiscard]] inline constexpr consign_t< typename decay<CompletionToken>::type, typename decay<Values>::type...> consign(CompletionToken&& completion_token, Values&&... values) { return consign_t< typename decay<CompletionToken>::type, typename decay<Values>::type...>( static_cast<CompletionToken&&>(completion_token), static_cast<Values&&>(values)...); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 83 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/consign.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/consign.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/consign.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename... Values> class consign_handler { public: typedef void result_type; template <typename H> consign_handler(H&& handler, std::tuple<Values...> values) : handler_(static_cast<H&&>(handler)), values_(static_cast<std::tuple<Values...>&&>(values)) { } template <typename... Args> void operator()(Args&&... args) { static_cast<Handler&&>(handler_)( static_cast<Args&&>(args)...); } Handler handler_; std::tuple<Values...> values_; }; template <typename Handler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, consign_handler<Handler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, consign_handler<Handler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler> inline bool asio_handler_is_continuation( consign_handler<Handler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, consign_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, consign_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } } template <typename CompletionToken, typename... Values, typename... Signatures> struct async_result< consign_t<CompletionToken, Values...>, Signatures...> : async_result<CompletionToken, Signatures...> { template <typename Initiation> struct init_wrapper { init_wrapper(Initiation init) : initiation_(static_cast<Initiation&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, std::tuple<Values...> values, Args&&... args) { static_cast<Initiation&&>(initiation_)( detail::consign_handler< typename decay<Handler>::type, Values...>( static_cast<Handler&&>(handler), static_cast<std::tuple<Values...>&&>(values)), static_cast<Args&&>(args)...); } Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<CompletionToken, Signatures...>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<CompletionToken&>(), declval<std::tuple<Values...> >(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<CompletionToken, Signatures...>( init_wrapper<typename decay<Initiation>::type>( static_cast<Initiation&&>(initiation)), token.token_, static_cast<std::tuple<Values...>&&>(token.values_), static_cast<Args&&>(args)...); } }; template <template <typename, typename> class Associator, typename Handler, typename... Values, typename DefaultCandidate> struct associator<Associator, detail::consign_handler<Handler, Values...>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::consign_handler<Handler, Values...>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::consign_handler<Handler, Values...>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/consign.hpp" 2 3 4 # 85 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/consign.hpp" 2 3 4 # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/coroutine.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/coroutine.hpp" 3 4 namespace boost { namespace asio { namespace detail { class coroutine_ref; } # 242 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/coroutine.hpp" 3 4 class coroutine { public: coroutine() : value_(0) {} bool is_child() const { return value_ < 0; } bool is_parent() const { return !is_child(); } bool is_complete() const { return value_ == -1; } private: friend class detail::coroutine_ref; int value_; }; namespace detail { class coroutine_ref { public: coroutine_ref(coroutine& c) : value_(c.value_), modified_(false) {} coroutine_ref(coroutine* c) : value_(c->value_), modified_(false) {} ~coroutine_ref() { if (!modified_) value_ = -1; } operator int() const { return value_; } int& operator=(int v) { modified_ = true; return value_ = v; } private: void operator=(const coroutine_ref&); int& value_; bool modified_; }; } } } # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deadline_timer.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deadline_timer.hpp" 3 4 namespace boost { namespace asio { typedef basic_deadline_timer<boost::posix_time::ptime> deadline_timer; } } # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class initiate_defer { public: template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename associated_executor< typename decay<CompletionHandler>::type >::type >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_executor<handler_t>::type ex( (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require(ex, execution::blocking.never), execution::relationship.continuation, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler))); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename associated_executor< typename decay<CompletionHandler>::type >::type >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_executor<handler_t>::type ex( (get_associated_executor)(handler)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex.defer(boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler)), alloc); } }; template <typename Executor> class initiate_defer_with_executor { public: typedef Executor executor_type; explicit initiate_defer_with_executor(const Executor& ex) : ex_(ex) { } executor_type get_executor() const noexcept { return ex_; } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< !detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); # 141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require(ex_, execution::blocking.never), execution::relationship.continuation, execution::allocator(alloc)), boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler))); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typedef typename associated_executor< handler_t, Executor>::type handler_ex_t; handler_ex_t handler_ex((get_associated_executor)(handler, ex_)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); # 183 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require(ex_, execution::blocking.never), execution::relationship.continuation, execution::allocator(alloc)), detail::work_dispatcher<handler_t, handler_ex_t>( static_cast<CompletionHandler&&>(handler), handler_ex)); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< !detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex_.defer(boost::asio::detail::bind_handler( static_cast<CompletionHandler&&>(handler)), alloc); } template <typename CompletionHandler> void operator()(CompletionHandler&& handler, typename enable_if< !execution::is_executor< typename conditional<true, executor_type, CompletionHandler>::type >::value >::type* = 0, typename enable_if< detail::is_work_dispatcher_required< typename decay<CompletionHandler>::type, Executor >::value >::type* = 0) const { typedef typename decay<CompletionHandler>::type handler_t; typedef typename associated_executor< handler_t, Executor>::type handler_ex_t; handler_ex_t handler_ex((get_associated_executor)(handler, ex_)); typename associated_allocator<handler_t>::type alloc( (get_associated_allocator)(handler)); ex_.defer(detail::work_dispatcher<handler_t, handler_ex_t>( static_cast<CompletionHandler&&>(handler), handler_ex), alloc); } private: Executor ex_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/initiate_defer.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 2 3 4 namespace boost { namespace asio { # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 3 4 template < ::boost::asio::completion_token_for<void()> NullaryToken> auto defer( NullaryToken&& token) { return async_initiate<NullaryToken, void()>( detail::initiate_defer(), token); } # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 3 4 template <typename Executor, ::boost::asio::completion_token_for<void()> NullaryToken = typename ::boost::asio::default_completion_token<Executor>::type> auto defer( const Executor& ex, NullaryToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< (execution::is_executor<Executor>::value && can_require<Executor, execution::blocking_t::never_t>::value) || is_executor<Executor>::value >::type = 0) { return async_initiate<NullaryToken, void()>( detail::initiate_defer_with_executor<Executor>(ex), token); } # 197 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 3 4 template <typename ExecutionContext, ::boost::asio::completion_token_for<void()> NullaryToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > auto defer( ExecutionContext& ctx, NullaryToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint<is_convertible< ExecutionContext&, execution_context&>::value>::type = 0) { return async_initiate<NullaryToken, void()>( detail::initiate_defer_with_executor< typename ExecutionContext::executor_type>( ctx.get_executor()), token); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 223 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/defer.hpp" 2 3 4 # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 2 3 4 namespace boost { namespace asio { template <typename T> struct is_deferred : false_type { }; template <typename... Signatures> struct deferred_signatures { }; namespace detail { template <typename Tail, typename... Signatures> struct deferred_sequence_signatures; template <typename Tail, typename R, typename... Args, typename... Signatures> struct deferred_sequence_signatures<Tail, R(Args...), Signatures...> : completion_signature_of<decltype(declval<Tail>()(declval<Args>()...))> { static_assert( !is_same<decltype(declval<Tail>()(declval<Args>()...)), void>::value, "deferred functions must produce a deferred return type"); }; template <typename Handler, typename Tail> class deferred_sequence_handler { public: template <typename H, typename T> explicit deferred_sequence_handler( H&& handler, T&& tail) : handler_(static_cast<H&&>(handler)), tail_(static_cast<T&&>(tail)) { } template <typename... Args> void operator()(Args&&... args) { static_cast<Tail&&>(tail_)( static_cast<Args&&>(args)...)( static_cast<Handler&&>(handler_)); } Handler handler_; Tail tail_; }; template <typename Head, typename Tail, typename... Signatures> class deferred_sequence_base { private: struct initiate { template <typename Handler> void operator()(Handler&& handler, Head head, Tail&& tail) { static_cast<Head&&>(head)( deferred_sequence_handler< typename decay<Handler>::type, typename decay<Tail>::type>( static_cast<Handler&&>(handler), static_cast<Tail&&>(tail))); } }; Head head_; Tail tail_; public: template <typename H, typename T> constexpr explicit deferred_sequence_base( H&& head, T&& tail) : head_(static_cast<H&&>(head)), tail_(static_cast<T&&>(tail)) { } template < ::boost::asio::completion_token_for<Signatures...> CompletionToken> auto operator()( CompletionToken&& token) && -> decltype( boost::asio::async_initiate<CompletionToken, Signatures...>( declval<initiate>(), token, static_cast<Head&&>(this->head_), static_cast<Tail&&>(this->tail_))) { return boost::asio::async_initiate<CompletionToken, Signatures...>( initiate(), token, static_cast<Head&&>(head_), static_cast<Tail&&>(tail_)); } template < ::boost::asio::completion_token_for<Signatures...> CompletionToken> auto operator()( CompletionToken&& token) const & -> decltype( boost::asio::async_initiate<CompletionToken, Signatures...>( initiate(), token, this->head_, this->tail_)) { return boost::asio::async_initiate<CompletionToken, Signatures...>( initiate(), token, head_, tail_); } }; template <typename Head, typename Tail> struct deferred_sequence_types { template <typename... Signatures> struct op1 { typedef deferred_sequence_base<Head, Tail, Signatures...> type; }; template <typename... Signatures> struct op2 { typedef typename deferred_sequence_signatures<Tail, Signatures...>::template apply<op1>::type::type type; }; typedef typename completion_signature_of<Head>::template apply<op2>::type::type base; }; } struct deferred_noop { template <typename... Args> void operator()(Args&&...) && { } template <typename... Args> void operator()(Args&&...) const & { } }; template <> struct is_deferred<deferred_noop> : true_type { }; struct deferred_init_tag {}; template <typename Function> class deferred_function { public: template <typename F> constexpr explicit deferred_function( deferred_init_tag, F&& function) : function_(static_cast<F&&>(function)) { } Function function_; public: template <typename... Args> auto operator()( Args&&... args) && -> decltype( static_cast<Function&&>(this->function_)( static_cast<Args&&>(args)...)) { return static_cast<Function&&>(function_)( static_cast<Args&&>(args)...); } template <typename... Args> auto operator()( Args&&... args) const & -> decltype(Function(function_)(static_cast<Args&&>(args)...)) { return Function(function_)(static_cast<Args&&>(args)...); } }; template <typename Function> struct is_deferred<deferred_function<Function> > : true_type { }; template <typename... Values> class [[nodiscard]] deferred_values { private: std::tuple<Values...> values_; struct initiate { template <typename Handler, typename... V> void operator()(Handler handler, V&&... values) { static_cast<Handler&&>(handler)( static_cast<V&&>(values)...); } }; template <typename CompletionToken, std::size_t... I> auto invoke_helper( CompletionToken&& token, detail::index_sequence<I...>) -> decltype( boost::asio::async_initiate<CompletionToken, void(Values...)>( initiate(), token, std::get<I>( static_cast<std::tuple<Values...>&&>(this->values_))...)) { return boost::asio::async_initiate<CompletionToken, void(Values...)>( initiate(), token, std::get<I>(static_cast<std::tuple<Values...>&&>(values_))...); } template <typename CompletionToken, std::size_t... I> auto const_invoke_helper( CompletionToken&& token, detail::index_sequence<I...>) -> decltype( boost::asio::async_initiate<CompletionToken, void(Values...)>( initiate(), token, std::get<I>(values_)...)) { return boost::asio::async_initiate<CompletionToken, void(Values...)>( initiate(), token, std::get<I>(values_)...); } public: template <typename... V> constexpr explicit deferred_values( deferred_init_tag, V&&... values) : values_(static_cast<V&&>(values)...) { } template < ::boost::asio::completion_token_for<void(Values...)> CompletionToken> auto operator()( CompletionToken&& token) && -> decltype( this->invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<Values...>())) { return this->invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<Values...>()); } template < ::boost::asio::completion_token_for<void(Values...)> CompletionToken> auto operator()( CompletionToken&& token) const & -> decltype( this->const_invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<Values...>())) { return this->const_invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<Values...>()); } }; template <typename... Values> struct is_deferred<deferred_values<Values...> > : true_type { }; template <typename Signature, typename Initiation, typename... InitArgs> class [[nodiscard]] deferred_async_operation { private: typedef typename decay<Initiation>::type initiation_t; initiation_t initiation_; typedef std::tuple<typename decay<InitArgs>::type...> init_args_t; init_args_t init_args_; template <typename CompletionToken, std::size_t... I> auto invoke_helper( CompletionToken&& token, detail::index_sequence<I...>) -> decltype( boost::asio::async_initiate<CompletionToken, Signature>( static_cast<initiation_t&&>(initiation_), token, std::get<I>(static_cast<init_args_t&&>(init_args_))...)) { return boost::asio::async_initiate<CompletionToken, Signature>( static_cast<initiation_t&&>(initiation_), token, std::get<I>(static_cast<init_args_t&&>(init_args_))...); } template <typename CompletionToken, std::size_t... I> auto const_invoke_helper( CompletionToken&& token, detail::index_sequence<I...>) const & -> decltype( boost::asio::async_initiate<CompletionToken, Signature>( initiation_t(initiation_), token, std::get<I>(init_args_)...)) { return boost::asio::async_initiate<CompletionToken, Signature>( initiation_t(initiation_), token, std::get<I>(init_args_)...); } public: template <typename I, typename... A> constexpr explicit deferred_async_operation( deferred_init_tag, I&& initiation, A&&... init_args) : initiation_(static_cast<I&&>(initiation)), init_args_(static_cast<A&&>(init_args)...) { } template < ::boost::asio::completion_token_for<Signature> CompletionToken> auto operator()( CompletionToken&& token) && -> decltype( this->invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>())) { return this->invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>()); } template < ::boost::asio::completion_token_for<Signature> CompletionToken> auto operator()( CompletionToken&& token) const & -> decltype( this->const_invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>())) { return this->const_invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>()); } }; template <typename... Signatures, typename Initiation, typename... InitArgs> class [[nodiscard]] deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...> { private: typedef typename decay<Initiation>::type initiation_t; initiation_t initiation_; typedef std::tuple<typename decay<InitArgs>::type...> init_args_t; init_args_t init_args_; template <typename CompletionToken, std::size_t... I> auto invoke_helper( CompletionToken&& token, detail::index_sequence<I...>) -> decltype( boost::asio::async_initiate<CompletionToken, Signatures...>( static_cast<initiation_t&&>(initiation_), token, std::get<I>(static_cast<init_args_t&&>(init_args_))...)) { return boost::asio::async_initiate<CompletionToken, Signatures...>( static_cast<initiation_t&&>(initiation_), token, std::get<I>(static_cast<init_args_t&&>(init_args_))...); } template <typename CompletionToken, std::size_t... I> auto const_invoke_helper( CompletionToken&& token, detail::index_sequence<I...>) const & -> decltype( boost::asio::async_initiate<CompletionToken, Signatures...>( initiation_t(initiation_), token, std::get<I>(init_args_)...)) { return boost::asio::async_initiate<CompletionToken, Signatures...>( initiation_t(initiation_), token, std::get<I>(init_args_)...); } public: template <typename I, typename... A> constexpr explicit deferred_async_operation( deferred_init_tag, I&& initiation, A&&... init_args) : initiation_(static_cast<I&&>(initiation)), init_args_(static_cast<A&&>(init_args)...) { } template < ::boost::asio::completion_token_for<Signatures...> CompletionToken> auto operator()( CompletionToken&& token) && -> decltype( this->invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>())) { return this->invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>()); } template < ::boost::asio::completion_token_for<Signatures...> CompletionToken> auto operator()( CompletionToken&& token) const & -> decltype( this->const_invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>())) { return this->const_invoke_helper( static_cast<CompletionToken&&>(token), detail::index_sequence_for<InitArgs...>()); } }; template <typename Signature, typename Initiation, typename... InitArgs> struct is_deferred< deferred_async_operation<Signature, Initiation, InitArgs...> > : true_type { }; template <typename Head, typename Tail> class [[nodiscard]] deferred_sequence : public detail::deferred_sequence_types<Head, Tail>::base { public: template <typename H, typename T> constexpr explicit deferred_sequence(deferred_init_tag, H&& head, T&& tail) : detail::deferred_sequence_types<Head, Tail>::base( static_cast<H&&>(head), static_cast<T&&>(tail)) { } # 535 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 3 4 }; template <typename Head, typename Tail> struct is_deferred<deferred_sequence<Head, Tail> > : true_type { }; template <typename OnTrue = deferred_noop, typename OnFalse = deferred_noop> class [[nodiscard]] deferred_conditional { private: template <typename T, typename F> friend class deferred_conditional; template <typename T, typename F> explicit deferred_conditional(bool b, T&& on_true, F&& on_false) : on_true_(static_cast<T&&>(on_true)), on_false_(static_cast<F&&>(on_false)), bool_(b) { } OnTrue on_true_; OnFalse on_false_; bool bool_; public: constexpr explicit deferred_conditional(bool b) : on_true_(), on_false_(), bool_(b) { } template <typename... Args> auto operator()(Args&&... args) && -> decltype( static_cast<OnTrue&&>(on_true_)( static_cast<Args&&>(args)...)) { if (bool_) { return static_cast<OnTrue&&>(on_true_)( static_cast<Args&&>(args)...); } else { return static_cast<OnFalse&&>(on_false_)( static_cast<Args&&>(args)...); } } template <typename... Args> auto operator()(Args&&... args) const & -> decltype(on_true_(static_cast<Args&&>(args)...)) { if (bool_) { return on_true_(static_cast<Args&&>(args)...); } else { return on_false_(static_cast<Args&&>(args)...); } } template <typename T> deferred_conditional<T, OnFalse> then(T on_true, typename constraint< is_deferred<T>::value >::type* = 0, typename constraint< is_same< typename conditional<true, OnTrue, T>::type, deferred_noop >::value >::type* = 0) && { return deferred_conditional<T, OnFalse>( bool_, static_cast<T&&>(on_true), static_cast<OnFalse&&>(on_false_)); } template <typename T> deferred_conditional<OnTrue, T> otherwise(T on_false, typename constraint< is_deferred<T>::value >::type* = 0, typename constraint< !is_same< typename conditional<true, OnTrue, T>::type, deferred_noop >::value >::type* = 0, typename constraint< is_same< typename conditional<true, OnFalse, T>::type, deferred_noop >::value >::type* = 0) && { return deferred_conditional<OnTrue, T>( bool_, static_cast<OnTrue&&>(on_true_), static_cast<T&&>(on_false)); } }; template <typename OnTrue, typename OnFalse> struct is_deferred<deferred_conditional<OnTrue, OnFalse> > : true_type { }; # 677 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 3 4 class deferred_t { public: constexpr deferred_t() { } template <typename InnerExecutor> struct executor_with_default : InnerExecutor { typedef deferred_t default_completion_token_type; template <typename InnerExecutor1> executor_with_default(const InnerExecutor1& ex, typename constraint< conditional< !is_same<InnerExecutor1, executor_with_default>::value, is_convertible<InnerExecutor1, InnerExecutor>, false_type >::type::value >::type = 0) noexcept : InnerExecutor(ex) { } }; template <typename T> using as_default_on_t = typename T::template rebind_executor< executor_with_default<typename T::executor_type> >::other; template <typename T> static typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other as_default_on(T&& object) { return typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other(static_cast<T&&>(object)); } template <typename Function> typename constraint< !is_deferred<typename decay<Function>::type>::value, deferred_function<typename decay<Function>::type> >::type operator()(Function&& function) const { return deferred_function<typename decay<Function>::type>( deferred_init_tag{}, static_cast<Function&&>(function)); } template <typename T> typename constraint< is_deferred<typename decay<T>::type>::value, typename decay<T>::type >::type operator()(T&& t) const { return static_cast<T&&>(t); } template <typename... Args> static constexpr deferred_values<typename decay<Args>::type...> values(Args&&... args) { return deferred_values<typename decay<Args>::type...>( deferred_init_tag{}, static_cast<Args&&>(args)...); } static constexpr deferred_conditional<> when(bool b) { return deferred_conditional<>(b); } }; template <typename Head, typename Tail> inline auto operator|(Head head, Tail&& tail) -> typename constraint< is_deferred<Head>::value, decltype(static_cast<Head&&>(head)( static_cast<Tail&&>(tail))) >::type { return static_cast<Head&&>(head)( static_cast<Tail&&>(tail)); } constexpr deferred_t deferred; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 796 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/deferred.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/deferred.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/deferred.hpp" 2 3 4 namespace boost { namespace asio { template <typename Signature> class async_result<deferred_t, Signature> { public: template <typename Initiation, typename... InitArgs> static deferred_async_operation<Signature, Initiation, InitArgs...> initiate(Initiation&& initiation, deferred_t, InitArgs&&... args) { return deferred_async_operation< Signature, Initiation, InitArgs...>( deferred_init_tag{}, static_cast<Initiation&&>(initiation), static_cast<InitArgs&&>(args)...); } }; template <typename... Signatures> class async_result<deferred_t, Signatures...> { public: template <typename Initiation, typename... InitArgs> static deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...> initiate(Initiation&& initiation, deferred_t, InitArgs&&... args) { return deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...>( deferred_init_tag{}, static_cast<Initiation&&>(initiation), static_cast<InitArgs&&>(args)...); } }; template <typename Function, typename Signature> class async_result<deferred_function<Function>, Signature> { public: template <typename Initiation, typename... InitArgs> static auto initiate(Initiation&& initiation, deferred_function<Function> token, InitArgs&&... init_args) -> decltype( deferred_sequence< deferred_async_operation< Signature, Initiation, InitArgs...>, Function>(deferred_init_tag{}, deferred_async_operation< Signature, Initiation, InitArgs...>( deferred_init_tag{}, static_cast<Initiation&&>(initiation), static_cast<InitArgs&&>(init_args)...), static_cast<Function&&>(token.function_))) { return deferred_sequence< deferred_async_operation< Signature, Initiation, InitArgs...>, Function>(deferred_init_tag{}, deferred_async_operation< Signature, Initiation, InitArgs...>( deferred_init_tag{}, static_cast<Initiation&&>(initiation), static_cast<InitArgs&&>(init_args)...), static_cast<Function&&>(token.function_)); } }; template <typename Function, typename... Signatures> class async_result<deferred_function<Function>, Signatures...> { public: template <typename Initiation, typename... InitArgs> static auto initiate(Initiation&& initiation, deferred_function<Function> token, InitArgs&&... init_args) -> decltype( deferred_sequence< deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...>, Function>(deferred_init_tag{}, deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...>( deferred_init_tag{}, static_cast<Initiation&&>(initiation), static_cast<InitArgs&&>(init_args)...), static_cast<Function&&>(token.function_))) { return deferred_sequence< deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...>, Function>(deferred_init_tag{}, deferred_async_operation< deferred_signatures<Signatures...>, Initiation, InitArgs...>( deferred_init_tag{}, static_cast<Initiation&&>(initiation), static_cast<InitArgs&&>(init_args)...), static_cast<Function&&>(token.function_)); } }; template <template <typename, typename> class Associator, typename Handler, typename Tail, typename DefaultCandidate> struct associator<Associator, detail::deferred_sequence_handler<Handler, Tail>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::deferred_sequence_handler<Handler, Tail>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::deferred_sequence_handler<Handler, Tail>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 157 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/deferred.hpp" 2 3 4 # 798 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/deferred.hpp" 2 3 4 # 77 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detached.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detached.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detached.hpp" 2 3 4 namespace boost { namespace asio { # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detached.hpp" 3 4 class detached_t { public: constexpr detached_t() { } template <typename InnerExecutor> struct executor_with_default : InnerExecutor { typedef detached_t default_completion_token_type; executor_with_default(const InnerExecutor& ex) noexcept : InnerExecutor(ex) { } template <typename OtherExecutor> executor_with_default(const OtherExecutor& ex, typename constraint< is_convertible<OtherExecutor, InnerExecutor>::value >::type = 0) noexcept : InnerExecutor(ex) { } }; template <typename T> using as_default_on_t = typename T::template rebind_executor< executor_with_default<typename T::executor_type> >::other; template <typename T> static typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other as_default_on(T&& object) { return typename decay<T>::type::template rebind_executor< executor_with_default<typename decay<T>::type::executor_type> >::other(static_cast<T&&>(object)); } }; constexpr detached_t detached; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 112 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detached.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/detached.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/detached.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/detached.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class detached_handler { public: typedef void result_type; detached_handler(detached_t) { } template <typename... Args> void operator()(Args...) { } # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/detached.hpp" 3 4 }; } template <typename Signature> struct async_result<detached_t, Signature> { typedef boost::asio::detail::detached_handler completion_handler_type; typedef void return_type; explicit async_result(completion_handler_type&) { } void get() { } template <typename Initiation, typename RawCompletionToken, typename... Args> static return_type initiate( Initiation&& initiation, RawCompletionToken&&, Args&&... args) { static_cast<Initiation&&>(initiation)( detail::detached_handler(detached_t()), static_cast<Args&&>(args)...); } # 123 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/detached.hpp" 3 4 }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 131 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/detached.hpp" 2 3 4 # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detached.hpp" 2 3 4 # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 2 3 4 namespace boost { namespace asio { class bad_executor : public std::exception { public: inline bad_executor() noexcept; inline virtual const char* what() const noexcept; }; class executor { public: executor() noexcept : impl_(0) { } executor(nullptr_t) noexcept : impl_(0) { } executor(const executor& other) noexcept : impl_(other.clone()) { } executor(executor&& other) noexcept : impl_(other.impl_) { other.impl_ = 0; } template <typename Executor> executor(Executor e); template <typename Executor, typename Allocator> executor(allocator_arg_t, const Allocator& a, Executor e); ~executor() { destroy(); } executor& operator=(const executor& other) noexcept { destroy(); impl_ = other.clone(); return *this; } executor& operator=(executor&& other) noexcept { destroy(); impl_ = other.impl_; other.impl_ = 0; return *this; } executor& operator=(nullptr_t) noexcept { destroy(); impl_ = 0; return *this; } template <typename Executor> executor& operator=(Executor&& e) noexcept { executor tmp(static_cast<Executor&&>(e)); destroy(); impl_ = tmp.impl_; tmp.impl_ = 0; return *this; } execution_context& context() const noexcept { return get_impl()->context(); } void on_work_started() const noexcept { get_impl()->on_work_started(); } void on_work_finished() const noexcept { get_impl()->on_work_finished(); } # 163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 3 4 template <typename Function, typename Allocator> void dispatch(Function&& f, const Allocator& a) const; # 179 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 3 4 template <typename Function, typename Allocator> void post(Function&& f, const Allocator& a) const; # 195 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 3 4 template <typename Function, typename Allocator> void defer(Function&& f, const Allocator& a) const; struct unspecified_bool_type_t {}; typedef void (*unspecified_bool_type)(unspecified_bool_type_t); static void unspecified_bool_true(unspecified_bool_type_t) {} operator unspecified_bool_type() const noexcept { return impl_ ? &executor::unspecified_bool_true : 0; } const std::type_info& target_type() const noexcept { return impl_ ? impl_->target_type() : typeid(void); } # 230 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 3 4 template <typename Executor> Executor* target() noexcept; template <typename Executor> const Executor* target() const noexcept; friend bool operator==(const executor& a, const executor& b) noexcept { if (a.impl_ == b.impl_) return true; if (!a.impl_ || !b.impl_) return false; return a.impl_->equals(b.impl_); } friend bool operator!=(const executor& a, const executor& b) noexcept { return !(a == b); } private: typedef detail::executor_function function; template <typename, typename> class impl; typedef const std::type_info& type_id_result_type; template <typename T> static type_id_result_type type_id() { return typeid(T); } class impl_base { public: virtual impl_base* clone() const noexcept = 0; virtual void destroy() noexcept = 0; virtual execution_context& context() noexcept = 0; virtual void on_work_started() noexcept = 0; virtual void on_work_finished() noexcept = 0; virtual void dispatch(function&&) = 0; virtual void post(function&&) = 0; virtual void defer(function&&) = 0; virtual type_id_result_type target_type() const noexcept = 0; virtual void* target() noexcept = 0; virtual const void* target() const noexcept = 0; virtual bool equals(const impl_base* e) const noexcept = 0; protected: impl_base(bool fast_dispatch) : fast_dispatch_(fast_dispatch) {} virtual ~impl_base() {} private: friend class executor; const bool fast_dispatch_; }; impl_base* get_impl() const { if (!impl_) { bad_executor ex; boost::asio::detail::throw_exception(ex); } return impl_; } impl_base* clone() const noexcept { return impl_ ? impl_->clone() : 0; } void destroy() noexcept { if (impl_) impl_->destroy(); } impl_base* impl_; }; } } namespace std { template <typename Allocator> struct uses_allocator<boost::asio::executor, Allocator> : true_type {}; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC diagnostic pop # 341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.hpp" 2 3 4 namespace boost { namespace asio { template <typename Executor, typename Allocator> class executor::impl : public executor::impl_base { public: typedef typename std::allocator_traits<Allocator>::template rebind_alloc<impl> allocator_type; static impl_base* create(const Executor& e, Allocator a = Allocator()) { raw_mem mem(a); impl* p = new (mem.ptr_) impl(e, a); mem.ptr_ = 0; return p; } impl(const Executor& e, const Allocator& a) noexcept : impl_base(false), ref_count_(1), executor_(e), allocator_(a) { } impl_base* clone() const noexcept { detail::ref_count_up(ref_count_); return const_cast<impl_base*>(static_cast<const impl_base*>(this)); } void destroy() noexcept { if (detail::ref_count_down(ref_count_)) { allocator_type alloc(allocator_); impl* p = this; p->~impl(); alloc.deallocate(p, 1); } } void on_work_started() noexcept { executor_.on_work_started(); } void on_work_finished() noexcept { executor_.on_work_finished(); } execution_context& context() noexcept { return executor_.context(); } void dispatch(function&& f) { executor_.dispatch(static_cast<function&&>(f), allocator_); } void post(function&& f) { executor_.post(static_cast<function&&>(f), allocator_); } void defer(function&& f) { executor_.defer(static_cast<function&&>(f), allocator_); } type_id_result_type target_type() const noexcept { return type_id<Executor>(); } void* target() noexcept { return &executor_; } const void* target() const noexcept { return &executor_; } bool equals(const impl_base* e) const noexcept { if (this == e) return true; if (target_type() != e->target_type()) return false; return executor_ == *static_cast<const Executor*>(e->target()); } private: mutable detail::atomic_count ref_count_; Executor executor_; Allocator allocator_; struct raw_mem { allocator_type allocator_; impl* ptr_; explicit raw_mem(const Allocator& a) : allocator_(a), ptr_(allocator_.allocate(1)) { } ~raw_mem() { if (ptr_) allocator_.deallocate(ptr_, 1); } private: raw_mem(const raw_mem&); raw_mem operator=(const raw_mem&); }; }; template <typename Allocator> class executor::impl<system_executor, Allocator> : public executor::impl_base { public: static impl_base* create(const system_executor&, const Allocator& = Allocator()) { return &detail::global<impl<system_executor, std::allocator<void> > >(); } impl() : impl_base(true) { } impl_base* clone() const noexcept { return const_cast<impl_base*>(static_cast<const impl_base*>(this)); } void destroy() noexcept { } void on_work_started() noexcept { executor_.on_work_started(); } void on_work_finished() noexcept { executor_.on_work_finished(); } execution_context& context() noexcept { return executor_.context(); } void dispatch(function&& f) { executor_.dispatch(static_cast<function&&>(f), std::allocator<void>()); } void post(function&& f) { executor_.post(static_cast<function&&>(f), std::allocator<void>()); } void defer(function&& f) { executor_.defer(static_cast<function&&>(f), std::allocator<void>()); } type_id_result_type target_type() const noexcept { return type_id<system_executor>(); } void* target() noexcept { return &executor_; } const void* target() const noexcept { return &executor_; } bool equals(const impl_base* e) const noexcept { return this == e; } private: system_executor executor_; }; template <typename Executor> executor::executor(Executor e) : impl_(impl<Executor, std::allocator<void> >::create(e)) { } template <typename Executor, typename Allocator> executor::executor(allocator_arg_t, const Allocator& a, Executor e) : impl_(impl<Executor, Allocator>::create(e, a)) { } template <typename Function, typename Allocator> void executor::dispatch(Function&& f, const Allocator& a) const { impl_base* i = get_impl(); if (i->fast_dispatch_) system_executor().dispatch(static_cast<Function&&>(f), a); else i->dispatch(function(static_cast<Function&&>(f), a)); } template <typename Function, typename Allocator> void executor::post(Function&& f, const Allocator& a) const { get_impl()->post(function(static_cast<Function&&>(f), a)); } template <typename Function, typename Allocator> void executor::defer(Function&& f, const Allocator& a) const { get_impl()->defer(function(static_cast<Function&&>(f), a)); } template <typename Executor> Executor* executor::target() noexcept { return impl_ && impl_->target_type() == type_id<Executor>() ? static_cast<Executor*>(impl_->target()) : 0; } template <typename Executor> const Executor* executor::target() const noexcept { return impl_ && impl_->target_type() == type_id<Executor>() ? static_cast<Executor*>(impl_->target()) : 0; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 299 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.hpp" 2 3 4 # 343 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.ipp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.ipp" 2 3 4 namespace boost { namespace asio { bad_executor::bad_executor() noexcept { } const char* bad_executor::what() const noexcept { return "bad executor"; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/executor.ipp" 2 3 4 # 345 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/executor.hpp" 2 3 4 # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/file_base.hpp" 1 3 4 # 112 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/basic_endpoint.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/basic_endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/endpoint.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace generic { namespace detail { class endpoint { public: inline endpoint(); inline endpoint(const void* sock_addr, std::size_t sock_addr_size, int sock_protocol); endpoint(const endpoint& other) : data_(other.data_), size_(other.size_), protocol_(other.protocol_) { } endpoint& operator=(const endpoint& other) { data_ = other.data_; size_ = other.size_; protocol_ = other.protocol_; return *this; } int family() const { return data_.base.sa_family; } int protocol() const { return protocol_; } boost::asio::detail::socket_addr_type* data() { return &data_.base; } const boost::asio::detail::socket_addr_type* data() const { return &data_.base; } std::size_t size() const { return size_; } inline void resize(std::size_t size); std::size_t capacity() const { return sizeof(boost::asio::detail::sockaddr_storage_type); } inline friend bool operator==( const endpoint& e1, const endpoint& e2); inline friend bool operator<( const endpoint& e1, const endpoint& e2); private: union data_union { boost::asio::detail::socket_addr_type base; boost::asio::detail::sockaddr_storage_type generic; } data_; std::size_t size_; int protocol_; inline void init(const void* sock_addr, std::size_t sock_addr_size, int sock_protocol); }; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 130 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/impl/endpoint.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/impl/endpoint.ipp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/impl/endpoint.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/endpoint.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/impl/endpoint.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/impl/endpoint.ipp" 2 3 4 namespace boost { namespace asio { namespace generic { namespace detail { endpoint::endpoint() { init(0, 0, 0); } endpoint::endpoint(const void* sock_addr, std::size_t sock_addr_size, int sock_protocol) { init(sock_addr, sock_addr_size, sock_protocol); } void endpoint::resize(std::size_t new_size) { if (new_size > sizeof(boost::asio::detail::sockaddr_storage_type)) { boost::system::error_code ec(boost::asio::error::invalid_argument); boost::asio::detail::throw_error(ec); } else { size_ = new_size; protocol_ = 0; } } bool operator==(const endpoint& e1, const endpoint& e2) { using namespace std; return e1.size() == e2.size() && memcmp(e1.data(), e2.data(), e1.size()) == 0; } bool operator<(const endpoint& e1, const endpoint& e2) { if (e1.protocol() < e2.protocol()) return true; if (e1.protocol() > e2.protocol()) return false; using namespace std; std::size_t compare_size = e1.size() < e2.size() ? e1.size() : e2.size(); int compare_result = memcmp(e1.data(), e2.data(), compare_size); if (compare_result < 0) return true; if (compare_result > 0) return false; return e1.size() < e2.size(); } void endpoint::init(const void* sock_addr, std::size_t sock_addr_size, int sock_protocol) { if (sock_addr_size > sizeof(boost::asio::detail::sockaddr_storage_type)) { boost::system::error_code ec(boost::asio::error::invalid_argument); boost::asio::detail::throw_error(ec); } using namespace std; memset(&data_.generic, 0, sizeof(boost::asio::detail::sockaddr_storage_type)); if (sock_addr_size > 0) memcpy(&data_.generic, sock_addr, sock_addr_size); size_ = sock_addr_size; protocol_ = sock_protocol; } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 111 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/impl/endpoint.ipp" 2 3 4 # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/detail/endpoint.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/basic_endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/basic_endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace generic { # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/basic_endpoint.hpp" 3 4 template <typename Protocol> class basic_endpoint { public: typedef Protocol protocol_type; typedef boost::asio::detail::socket_addr_type data_type; basic_endpoint() noexcept { } basic_endpoint(const void* socket_address, std::size_t socket_address_size, int socket_protocol = 0) : impl_(socket_address, socket_address_size, socket_protocol) { } template <typename Endpoint> basic_endpoint(const Endpoint& endpoint) : impl_(endpoint.data(), endpoint.size(), endpoint.protocol().protocol()) { } basic_endpoint(const basic_endpoint& other) : impl_(other.impl_) { } basic_endpoint(basic_endpoint&& other) : impl_(other.impl_) { } basic_endpoint& operator=(const basic_endpoint& other) { impl_ = other.impl_; return *this; } basic_endpoint& operator=(basic_endpoint&& other) { impl_ = other.impl_; return *this; } protocol_type protocol() const { return protocol_type(impl_.family(), impl_.protocol()); } data_type* data() { return impl_.data(); } const data_type* data() const { return impl_.data(); } std::size_t size() const { return impl_.size(); } void resize(std::size_t new_size) { impl_.resize(new_size); } std::size_t capacity() const { return impl_.capacity(); } friend bool operator==(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return e1.impl_ == e2.impl_; } friend bool operator!=(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return !(e1.impl_ == e2.impl_); } friend bool operator<(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return e1.impl_ < e2.impl_; } friend bool operator>(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return e2.impl_ < e1.impl_; } friend bool operator<=(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return !(e2 < e1); } friend bool operator>=(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return !(e1 < e2); } private: boost::asio::generic::detail::endpoint impl_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 194 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/basic_endpoint.hpp" 2 3 4 # 113 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/datagram_protocol.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/datagram_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/datagram_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace generic { # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/datagram_protocol.hpp" 3 4 class datagram_protocol { public: datagram_protocol(int address_family, int socket_protocol) : family_(address_family), protocol_(socket_protocol) { } template <typename Protocol> datagram_protocol(const Protocol& source_protocol) : family_(source_protocol.family()), protocol_(source_protocol.protocol()) { if (source_protocol.type() != type()) { std::bad_cast ex; boost::asio::detail::throw_exception(ex); } } int type() const noexcept { return SOCK_DGRAM; } int protocol() const noexcept { return protocol_; } int family() const noexcept { return family_; } friend bool operator==(const datagram_protocol& p1, const datagram_protocol& p2) { return p1.family_ == p2.family_ && p1.protocol_ == p2.protocol_; } friend bool operator!=(const datagram_protocol& p1, const datagram_protocol& p2) { return !(p1 == p2); } typedef basic_endpoint<datagram_protocol> endpoint; typedef basic_datagram_socket<datagram_protocol> socket; private: int family_; int protocol_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/datagram_protocol.hpp" 2 3 4 # 114 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/raw_protocol.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/raw_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/raw_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace generic { # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/raw_protocol.hpp" 3 4 class raw_protocol { public: raw_protocol(int address_family, int socket_protocol) : family_(address_family), protocol_(socket_protocol) { } template <typename Protocol> raw_protocol(const Protocol& source_protocol) : family_(source_protocol.family()), protocol_(source_protocol.protocol()) { if (source_protocol.type() != type()) { std::bad_cast ex; boost::asio::detail::throw_exception(ex); } } int type() const noexcept { return SOCK_RAW; } int protocol() const noexcept { return protocol_; } int family() const noexcept { return family_; } friend bool operator==(const raw_protocol& p1, const raw_protocol& p2) { return p1.family_ == p2.family_ && p1.protocol_ == p2.protocol_; } friend bool operator!=(const raw_protocol& p1, const raw_protocol& p2) { return !(p1 == p2); } typedef basic_endpoint<raw_protocol> endpoint; typedef basic_raw_socket<raw_protocol> socket; private: int family_; int protocol_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 122 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/raw_protocol.hpp" 2 3 4 # 115 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/seq_packet_protocol.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/seq_packet_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/seq_packet_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace generic { # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/seq_packet_protocol.hpp" 3 4 class seq_packet_protocol { public: seq_packet_protocol(int address_family, int socket_protocol) : family_(address_family), protocol_(socket_protocol) { } template <typename Protocol> seq_packet_protocol(const Protocol& source_protocol) : family_(source_protocol.family()), protocol_(source_protocol.protocol()) { if (source_protocol.type() != type()) { std::bad_cast ex; boost::asio::detail::throw_exception(ex); } } int type() const noexcept { return SOCK_SEQPACKET; } int protocol() const noexcept { return protocol_; } int family() const noexcept { return family_; } friend bool operator==(const seq_packet_protocol& p1, const seq_packet_protocol& p2) { return p1.family_ == p2.family_ && p1.protocol_ == p2.protocol_; } friend bool operator!=(const seq_packet_protocol& p1, const seq_packet_protocol& p2) { return !(p1 == p2); } typedef basic_endpoint<seq_packet_protocol> endpoint; typedef basic_seq_packet_socket<seq_packet_protocol> socket; private: int family_; int protocol_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 123 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/seq_packet_protocol.hpp" 2 3 4 # 116 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/stream_protocol.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/stream_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/stream_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace generic { # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/stream_protocol.hpp" 3 4 class stream_protocol { public: stream_protocol(int address_family, int socket_protocol) : family_(address_family), protocol_(socket_protocol) { } template <typename Protocol> stream_protocol(const Protocol& source_protocol) : family_(source_protocol.family()), protocol_(source_protocol.protocol()) { if (source_protocol.type() != type()) { std::bad_cast ex; boost::asio::detail::throw_exception(ex); } } int type() const noexcept { return SOCK_STREAM; } int protocol() const noexcept { return protocol_; } int family() const noexcept { return family_; } friend bool operator==(const stream_protocol& p1, const stream_protocol& p2) { return p1.family_ == p2.family_ && p1.protocol_ == p2.protocol_; } friend bool operator!=(const stream_protocol& p1, const stream_protocol& p2) { return !(p1 == p2); } typedef basic_endpoint<stream_protocol> endpoint; typedef basic_stream_socket<stream_protocol> socket; typedef basic_socket_iostream<stream_protocol> iostream; private: int family_; int protocol_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 128 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/generic/stream_protocol.hpp" 2 3 4 # 117 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/high_resolution_timer.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/high_resolution_timer.hpp" 3 4 namespace boost { namespace asio { # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/high_resolution_timer.hpp" 3 4 typedef basic_waitable_timer< chrono::high_resolution_clock> high_resolution_timer; } } # 121 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class strand_service : public boost::asio::detail::service_base<strand_service> { private: struct on_do_complete_exit; struct on_dispatch_exit; public: class strand_impl : public operation { public: strand_impl(); private: friend class strand_service; friend struct on_do_complete_exit; friend struct on_dispatch_exit; boost::asio::detail::mutex mutex_; bool locked_; op_queue<operation> waiting_queue_; op_queue<operation> ready_queue_; }; typedef strand_impl* implementation_type; inline explicit strand_service(boost::asio::io_context& io_context); inline void shutdown(); inline void construct(implementation_type& impl); template <typename Handler> void dispatch(implementation_type& impl, Handler& handler); template <typename Handler> void post(implementation_type& impl, Handler& handler); inline bool running_in_this_thread( const implementation_type& impl) const; private: inline void do_dispatch(implementation_type& impl, operation* op); inline void do_post(implementation_type& impl, operation* op, bool is_continuation); inline static void do_complete(void* owner, operation* base, const boost::system::error_code& ec, std::size_t bytes_transferred); io_context& io_context_; io_context_impl& io_context_impl_; boost::asio::detail::mutex mutex_; enum { num_implementations = 193 }; scoped_ptr<strand_impl> implementations_[num_implementations]; std::size_t salt_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 140 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { inline strand_service::strand_impl::strand_impl() : operation(&strand_service::do_complete), locked_(false) { } template <typename Handler> void strand_service::dispatch(strand_service::implementation_type& impl, Handler& handler) { if (running_in_this_thread(impl)) { fenced_block b(fenced_block::full); boost_asio_handler_invoke_helpers::invoke(handler, handler); return; } typedef completion_handler<Handler, io_context::executor_type> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(handler, io_context_.get_executor()); (void)0 ; operation* o = p.p; p.v = p.p = 0; do_dispatch(impl, o); } template <typename Handler> void strand_service::post(strand_service::implementation_type& impl, Handler& handler) { bool is_continuation = boost_asio_handler_cont_helpers::is_continuation(handler); typedef completion_handler<Handler, io_context::executor_type> op; typename op::ptr p = { boost::asio::detail::addressof(handler), op::ptr::allocate(handler), 0 }; p.p = new (p.v) op(handler, io_context_.get_executor()); (void)0 ; do_post(impl, p.p, is_continuation); p.v = p.p = 0; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.hpp" 2 3 4 # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { struct strand_service::on_do_complete_exit { io_context_impl* owner_; strand_impl* impl_; ~on_do_complete_exit() { impl_->mutex_.lock(); impl_->ready_queue_.push(impl_->waiting_queue_); bool more_handlers = impl_->locked_ = !impl_->ready_queue_.empty(); impl_->mutex_.unlock(); if (more_handlers) owner_->post_immediate_completion(impl_, true); } }; strand_service::strand_service(boost::asio::io_context& io_context) : boost::asio::detail::service_base<strand_service>(io_context), io_context_(io_context), io_context_impl_(boost::asio::use_service<io_context_impl>(io_context)), mutex_(), salt_(0) { } void strand_service::shutdown() { op_queue<operation> ops; boost::asio::detail::mutex::scoped_lock lock(mutex_); for (std::size_t i = 0; i < num_implementations; ++i) { if (strand_impl* impl = implementations_[i].get()) { ops.push(impl->waiting_queue_); ops.push(impl->ready_queue_); } } } void strand_service::construct(strand_service::implementation_type& impl) { boost::asio::detail::mutex::scoped_lock lock(mutex_); std::size_t salt = salt_++; std::size_t index = reinterpret_cast<std::size_t>(&impl); index += (reinterpret_cast<std::size_t>(&impl) >> 3); index ^= salt + 0x9e3779b9 + (index << 6) + (index >> 2); index = index % num_implementations; if (!implementations_[index].get()) implementations_[index].reset(new strand_impl); impl = implementations_[index].get(); } bool strand_service::running_in_this_thread( const implementation_type& impl) const { return call_stack<strand_impl>::contains(impl) != 0; } struct strand_service::on_dispatch_exit { io_context_impl* io_context_impl_; strand_impl* impl_; ~on_dispatch_exit() { impl_->mutex_.lock(); impl_->ready_queue_.push(impl_->waiting_queue_); bool more_handlers = impl_->locked_ = !impl_->ready_queue_.empty(); impl_->mutex_.unlock(); if (more_handlers) io_context_impl_->post_immediate_completion(impl_, false); } }; void strand_service::do_dispatch(implementation_type& impl, operation* op) { bool can_dispatch = io_context_impl_.can_dispatch(); impl->mutex_.lock(); if (can_dispatch && !impl->locked_) { impl->locked_ = true; impl->mutex_.unlock(); call_stack<strand_impl>::context ctx(impl); on_dispatch_exit on_exit = { &io_context_impl_, impl }; (void)on_exit; op->complete(&io_context_impl_, boost::system::error_code(), 0); return; } if (impl->locked_) { impl->waiting_queue_.push(op); impl->mutex_.unlock(); } else { impl->locked_ = true; impl->mutex_.unlock(); impl->ready_queue_.push(op); io_context_impl_.post_immediate_completion(impl, false); } } void strand_service::do_post(implementation_type& impl, operation* op, bool is_continuation) { impl->mutex_.lock(); if (impl->locked_) { impl->waiting_queue_.push(op); impl->mutex_.unlock(); } else { impl->locked_ = true; impl->mutex_.unlock(); impl->ready_queue_.push(op); io_context_impl_.post_immediate_completion(impl, is_continuation); } } void strand_service::do_complete(void* owner, operation* base, const boost::system::error_code& ec, std::size_t ) { if (owner) { strand_impl* impl = static_cast<strand_impl*>(base); call_stack<strand_impl>::context ctx(impl); on_do_complete_exit on_exit; on_exit.owner_ = static_cast<io_context_impl*>(owner); on_exit.impl_ = impl; while (operation* o = impl->ready_queue_.front()) { impl->ready_queue_.pop(); o->complete(owner, ec, 0); } } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_service.ipp" 2 3 4 # 144 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_service.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 2 3 4 namespace boost { namespace asio { # 90 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 class io_context::strand { private: struct initiate_dispatch; struct initiate_post; public: explicit strand(boost::asio::io_context& io_context) : service_(boost::asio::use_service< boost::asio::detail::strand_service>(io_context)) { service_.construct(impl_); } # 120 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 ~strand() { } boost::asio::io_context& context() const noexcept { return service_.get_io_context(); } void on_work_started() const noexcept { context().get_executor().on_work_started(); } void on_work_finished() const noexcept { context().get_executor().on_work_finished(); } # 163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 template <typename Function, typename Allocator> void dispatch(Function&& f, const Allocator& a) const { typename decay<Function>::type tmp(static_cast<Function&&>(f)); service_.dispatch(impl_, tmp); (void)a; } # 192 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 template <typename LegacyCompletionHandler> auto dispatch(LegacyCompletionHandler&& handler) { return async_initiate<LegacyCompletionHandler, void ()>( initiate_dispatch(), handler, this); } # 217 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 template <typename Function, typename Allocator> void post(Function&& f, const Allocator& a) const { typename decay<Function>::type tmp(static_cast<Function&&>(f)); service_.post(impl_, tmp); (void)a; } # 242 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 template <typename LegacyCompletionHandler> auto post(LegacyCompletionHandler&& handler) { return async_initiate<LegacyCompletionHandler, void ()>( initiate_post(), handler, this); } # 267 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 template <typename Function, typename Allocator> void defer(Function&& f, const Allocator& a) const { typename decay<Function>::type tmp(static_cast<Function&&>(f)); service_.post(impl_, tmp); (void)a; } # 297 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 template <typename Handler> detail::wrapped_handler<strand, Handler, detail::is_continuation_if_running> wrap(Handler handler) { return detail::wrapped_handler<io_context::strand, Handler, detail::is_continuation_if_running>(*this, handler); } # 316 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 3 4 bool running_in_this_thread() const noexcept { return service_.running_in_this_thread(impl_); } friend bool operator==(const strand& a, const strand& b) noexcept { return a.impl_ == b.impl_; } friend bool operator!=(const strand& a, const strand& b) noexcept { return a.impl_ != b.impl_; } private: struct initiate_dispatch { template <typename LegacyCompletionHandler> void operator()(LegacyCompletionHandler&& handler, strand* self) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<LegacyCompletionHandler>::type, void()>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::zero_arg_copyable_handler_test( boost::asio::detail::clvref< asio_true_handler_type>(), 0)) == 1, "CompletionHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::clvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()(), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<LegacyCompletionHandler> handler2(handler); self->service_.dispatch(self->impl_, handler2.value); } }; struct initiate_post { template <typename LegacyCompletionHandler> void operator()(LegacyCompletionHandler&& handler, strand* self) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<LegacyCompletionHandler>::type, void()>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::zero_arg_copyable_handler_test( boost::asio::detail::clvref< asio_true_handler_type>(), 0)) == 1, "CompletionHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::clvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()(), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<LegacyCompletionHandler> handler2(handler); self->service_.post(self->impl_, handler2.value); } }; boost::asio::detail::strand_service& service_; mutable boost::asio::detail::strand_service::implementation_type impl_; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 386 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_context_strand.hpp" 2 3 4 # 123 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_service.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_service.hpp" 2 3 4 namespace boost { namespace asio { typedef io_context io_service; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_service.hpp" 2 3 4 # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/io_service_strand.hpp" 1 3 4 # 125 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_iterator.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_iterator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_iterator.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename> class basic_address_iterator; # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_iterator.hpp" 3 4 template <> class basic_address_iterator<address_v4> { public: typedef address_v4 value_type; typedef std::ptrdiff_t difference_type; typedef const address_v4* pointer; typedef const address_v4& reference; typedef std::input_iterator_tag iterator_category; basic_address_iterator(const address_v4& addr) noexcept : address_(addr) { } basic_address_iterator( const basic_address_iterator& other) noexcept : address_(other.address_) { } basic_address_iterator(basic_address_iterator&& other) noexcept : address_(static_cast<address_v4&&>(other.address_)) { } basic_address_iterator& operator=( const basic_address_iterator& other) noexcept { address_ = other.address_; return *this; } basic_address_iterator& operator=( basic_address_iterator&& other) noexcept { address_ = static_cast<address_v4&&>(other.address_); return *this; } const address_v4& operator*() const noexcept { return address_; } const address_v4* operator->() const noexcept { return &address_; } basic_address_iterator& operator++() noexcept { address_ = address_v4((address_.to_uint() + 1) & 0xFFFFFFFF); return *this; } basic_address_iterator operator++(int) noexcept { basic_address_iterator tmp(*this); ++*this; return tmp; } basic_address_iterator& operator--() noexcept { address_ = address_v4((address_.to_uint() - 1) & 0xFFFFFFFF); return *this; } basic_address_iterator operator--(int) { basic_address_iterator tmp(*this); --*this; return tmp; } friend bool operator==(const basic_address_iterator& a, const basic_address_iterator& b) { return a.address_ == b.address_; } friend bool operator!=(const basic_address_iterator& a, const basic_address_iterator& b) { return a.address_ != b.address_; } private: address_v4 address_; }; typedef basic_address_iterator<address_v4> address_v4_iterator; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_iterator.hpp" 2 3 4 # 128 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_range.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_range.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_range.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename> class basic_address_range; template <> class basic_address_range<address_v4> { public: typedef basic_address_iterator<address_v4> iterator; basic_address_range() noexcept : begin_(address_v4()), end_(address_v4()) { } explicit basic_address_range(const iterator& first, const iterator& last) noexcept : begin_(first), end_(last) { } basic_address_range(const basic_address_range& other) noexcept : begin_(other.begin_), end_(other.end_) { } basic_address_range(basic_address_range&& other) noexcept : begin_(static_cast<iterator&&>(other.begin_)), end_(static_cast<iterator&&>(other.end_)) { } basic_address_range& operator=( const basic_address_range& other) noexcept { begin_ = other.begin_; end_ = other.end_; return *this; } basic_address_range& operator=( basic_address_range&& other) noexcept { begin_ = static_cast<iterator&&>(other.begin_); end_ = static_cast<iterator&&>(other.end_); return *this; } iterator begin() const noexcept { return begin_; } iterator end() const noexcept { return end_; } bool empty() const noexcept { return size() == 0; } std::size_t size() const noexcept { return end_->to_uint() - begin_->to_uint(); } iterator find(const address_v4& addr) const noexcept { return addr >= *begin_ && addr < *end_ ? iterator(addr) : end_; } private: iterator begin_; iterator end_; }; typedef basic_address_range<address_v4> address_v4_range; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v4_range.hpp" 2 3 4 # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_iterator.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_iterator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_iterator.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename> class basic_address_iterator; # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_iterator.hpp" 3 4 template <> class basic_address_iterator<address_v6> { public: typedef address_v6 value_type; typedef std::ptrdiff_t difference_type; typedef const address_v6* pointer; typedef const address_v6& reference; typedef std::input_iterator_tag iterator_category; basic_address_iterator(const address_v6& addr) noexcept : address_(addr) { } basic_address_iterator( const basic_address_iterator& other) noexcept : address_(other.address_) { } basic_address_iterator(basic_address_iterator&& other) noexcept : address_(static_cast<address_v6&&>(other.address_)) { } basic_address_iterator& operator=( const basic_address_iterator& other) noexcept { address_ = other.address_; return *this; } basic_address_iterator& operator=( basic_address_iterator&& other) noexcept { address_ = static_cast<address_v6&&>(other.address_); return *this; } const address_v6& operator*() const noexcept { return address_; } const address_v6* operator->() const noexcept { return &address_; } basic_address_iterator& operator++() noexcept { for (int i = 15; i >= 0; --i) { if (address_.addr_.__in6_u.__u6_addr8[i] < 0xFF) { ++address_.addr_.__in6_u.__u6_addr8[i]; break; } address_.addr_.__in6_u.__u6_addr8[i] = 0; } return *this; } basic_address_iterator operator++(int) noexcept { basic_address_iterator tmp(*this); ++*this; return tmp; } basic_address_iterator& operator--() noexcept { for (int i = 15; i >= 0; --i) { if (address_.addr_.__in6_u.__u6_addr8[i] > 0) { --address_.addr_.__in6_u.__u6_addr8[i]; break; } address_.addr_.__in6_u.__u6_addr8[i] = 0xFF; } return *this; } basic_address_iterator operator--(int) { basic_address_iterator tmp(*this); --*this; return tmp; } friend bool operator==(const basic_address_iterator& a, const basic_address_iterator& b) { return a.address_ == b.address_; } friend bool operator!=(const basic_address_iterator& a, const basic_address_iterator& b) { return a.address_ != b.address_; } private: address_v6 address_; }; typedef basic_address_iterator<address_v6> address_v6_iterator; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 184 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_iterator.hpp" 2 3 4 # 131 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_range.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_range.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_range.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename> class basic_address_range; template <> class basic_address_range<address_v6> { public: typedef basic_address_iterator<address_v6> iterator; basic_address_range() noexcept : begin_(address_v6()), end_(address_v6()) { } explicit basic_address_range(const iterator& first, const iterator& last) noexcept : begin_(first), end_(last) { } basic_address_range(const basic_address_range& other) noexcept : begin_(other.begin_), end_(other.end_) { } basic_address_range(basic_address_range&& other) noexcept : begin_(static_cast<iterator&&>(other.begin_)), end_(static_cast<iterator&&>(other.end_)) { } basic_address_range& operator=( const basic_address_range& other) noexcept { begin_ = other.begin_; end_ = other.end_; return *this; } basic_address_range& operator=( basic_address_range&& other) noexcept { begin_ = static_cast<iterator&&>(other.begin_); end_ = static_cast<iterator&&>(other.end_); return *this; } iterator begin() const noexcept { return begin_; } iterator end() const noexcept { return end_; } bool empty() const noexcept { return begin_ == end_; } iterator find(const address_v6& addr) const noexcept { return addr >= *begin_ && addr < *end_ ? iterator(addr) : end_; } private: iterator begin_; iterator end_; }; typedef basic_address_range<address_v6> address_v6_range; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 130 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/address_v6_range.hpp" 2 3 4 # 132 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 3 4 class network_v4 { public: network_v4() noexcept : address_(), prefix_length_(0) { } inline network_v4(const address_v4& addr, unsigned short prefix_len); inline network_v4(const address_v4& addr, const address_v4& mask); network_v4(const network_v4& other) noexcept : address_(other.address_), prefix_length_(other.prefix_length_) { } network_v4(network_v4&& other) noexcept : address_(static_cast<address_v4&&>(other.address_)), prefix_length_(other.prefix_length_) { } network_v4& operator=(const network_v4& other) noexcept { address_ = other.address_; prefix_length_ = other.prefix_length_; return *this; } network_v4& operator=(network_v4&& other) noexcept { address_ = static_cast<address_v4&&>(other.address_); prefix_length_ = other.prefix_length_; return *this; } address_v4 address() const noexcept { return address_; } unsigned short prefix_length() const noexcept { return prefix_length_; } inline address_v4 netmask() const noexcept; address_v4 network() const noexcept { return address_v4(address_.to_uint() & netmask().to_uint()); } address_v4 broadcast() const noexcept { return address_v4(network().to_uint() | (netmask().to_uint() ^ 0xFFFFFFFF)); } inline address_v4_range hosts() const noexcept; network_v4 canonical() const noexcept { return network_v4(network(), prefix_length()); } bool is_host() const noexcept { return prefix_length_ == 32; } inline bool is_subnet_of(const network_v4& other) const; inline std::string to_string() const; inline std::string to_string(boost::system::error_code& ec) const; friend bool operator==(const network_v4& a, const network_v4& b) { return a.address_ == b.address_ && a.prefix_length_ == b.prefix_length_; } friend bool operator!=(const network_v4& a, const network_v4& b) { return !(a == b); } private: address_v4 address_; unsigned short prefix_length_; }; inline network_v4 make_network_v4( const address_v4& addr, unsigned short prefix_len) { return network_v4(addr, prefix_len); } inline network_v4 make_network_v4( const address_v4& addr, const address_v4& mask) { return network_v4(addr, mask); } inline network_v4 make_network_v4(const char* str); inline network_v4 make_network_v4( const char* str, boost::system::error_code& ec); inline network_v4 make_network_v4(const std::string& str); inline network_v4 make_network_v4( const std::string& str, boost::system::error_code& ec); # 219 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 3 4 inline network_v4 make_network_v4(string_view str); inline network_v4 make_network_v4( string_view str, boost::system::error_code& ec); # 246 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 3 4 template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const network_v4& net); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 257 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const network_v4& addr) { boost::system::error_code ec; std::string s = addr.to_string(ec); if (ec) { if (os.exceptions() & std::basic_ostream<Elem, Traits>::failbit) boost::asio::detail::throw_error(ec); else os.setstate(std::basic_ostream<Elem, Traits>::failbit); } else for (std::string::iterator i = s.begin(); i != s.end(); ++i) os << os.widen(*i); return os; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.hpp" 2 3 4 # 259 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 3 4 # 1 "/usr/include/c++/13/climits" 1 3 4 # 39 "/usr/include/c++/13/climits" 3 4 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { network_v4::network_v4(const address_v4& addr, unsigned short prefix_len) : address_(addr), prefix_length_(prefix_len) { if (prefix_len > 32) { std::out_of_range ex("prefix length too large"); boost::asio::detail::throw_exception(ex); } } network_v4::network_v4(const address_v4& addr, const address_v4& mask) : address_(addr), prefix_length_(0) { address_v4::bytes_type mask_bytes = mask.to_bytes(); bool finished = false; for (std::size_t i = 0; i < mask_bytes.size(); ++i) { if (finished) { if (mask_bytes[i]) { std::invalid_argument ex("non-contiguous netmask"); boost::asio::detail::throw_exception(ex); } continue; } else { switch (mask_bytes[i]) { case 255: prefix_length_ += 8; break; case 254: prefix_length_ += 1; case 252: prefix_length_ += 1; case 248: prefix_length_ += 1; case 240: prefix_length_ += 1; case 224: prefix_length_ += 1; case 192: prefix_length_ += 1; case 128: prefix_length_ += 1; case 0: finished = true; break; default: std::out_of_range ex("non-contiguous netmask"); boost::asio::detail::throw_exception(ex); } } } } address_v4 network_v4::netmask() const noexcept { uint32_t nmbits = 0xffffffff; if (prefix_length_ == 0) nmbits = 0; else nmbits = nmbits << (32 - prefix_length_); return address_v4(nmbits); } address_v4_range network_v4::hosts() const noexcept { return is_host() ? address_v4_range(address_, address_v4(address_.to_uint() + 1)) : address_v4_range(address_v4(network().to_uint() + 1), broadcast()); } bool network_v4::is_subnet_of(const network_v4& other) const { if (other.prefix_length_ >= prefix_length_) return false; const network_v4 me(address_, other.prefix_length_); return other.canonical() == me.canonical(); } std::string network_v4::to_string() const { boost::system::error_code ec; std::string addr = to_string(ec); boost::asio::detail::throw_error(ec); return addr; } std::string network_v4::to_string(boost::system::error_code& ec) const { using namespace std; ec = boost::system::error_code(); char prefix_len[16]; sprintf(prefix_len, "/%u", prefix_length_); return address_.to_string() + prefix_len; } network_v4 make_network_v4(const char* str) { return make_network_v4(std::string(str)); } network_v4 make_network_v4(const char* str, boost::system::error_code& ec) { return make_network_v4(std::string(str), ec); } network_v4 make_network_v4(const std::string& str) { boost::system::error_code ec; network_v4 net = make_network_v4(str, ec); boost::asio::detail::throw_error(ec); return net; } network_v4 make_network_v4(const std::string& str, boost::system::error_code& ec) { std::string::size_type pos = str.find_first_of("/"); if (pos == std::string::npos) { ec = boost::asio::error::invalid_argument; return network_v4(); } if (pos == str.size() - 1) { ec = boost::asio::error::invalid_argument; return network_v4(); } std::string::size_type end = str.find_first_not_of("0123456789", pos + 1); if (end != std::string::npos) { ec = boost::asio::error::invalid_argument; return network_v4(); } const address_v4 addr = make_address_v4(str.substr(0, pos), ec); if (ec) return network_v4(); const int prefix_len = std::atoi(str.substr(pos + 1).c_str()); if (prefix_len < 0 || prefix_len > 32) { ec = boost::asio::error::invalid_argument; return network_v4(); } return network_v4(addr, static_cast<unsigned short>(prefix_len)); } network_v4 make_network_v4(string_view str) { return make_network_v4(static_cast<std::string>(str)); } network_v4 make_network_v4(string_view str, boost::system::error_code& ec) { return make_network_v4(static_cast<std::string>(str), ec); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 219 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v4.ipp" 2 3 4 # 261 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v4.hpp" 2 3 4 # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 3 4 class network_v6 { public: network_v6() noexcept : address_(), prefix_length_(0) { } inline network_v6(const address_v6& addr, unsigned short prefix_len); network_v6(const network_v6& other) noexcept : address_(other.address_), prefix_length_(other.prefix_length_) { } network_v6(network_v6&& other) noexcept : address_(static_cast<address_v6&&>(other.address_)), prefix_length_(other.prefix_length_) { } network_v6& operator=(const network_v6& other) noexcept { address_ = other.address_; prefix_length_ = other.prefix_length_; return *this; } network_v6& operator=(network_v6&& other) noexcept { address_ = static_cast<address_v6&&>(other.address_); prefix_length_ = other.prefix_length_; return *this; } address_v6 address() const noexcept { return address_; } unsigned short prefix_length() const noexcept { return prefix_length_; } inline address_v6 network() const noexcept; inline address_v6_range hosts() const noexcept; network_v6 canonical() const noexcept { return network_v6(network(), prefix_length()); } bool is_host() const noexcept { return prefix_length_ == 128; } inline bool is_subnet_of(const network_v6& other) const; inline std::string to_string() const; inline std::string to_string(boost::system::error_code& ec) const; friend bool operator==(const network_v6& a, const network_v6& b) { return a.address_ == b.address_ && a.prefix_length_ == b.prefix_length_; } friend bool operator!=(const network_v6& a, const network_v6& b) { return !(a == b); } private: address_v6 address_; unsigned short prefix_length_; }; inline network_v6 make_network_v6( const address_v6& addr, unsigned short prefix_len) { return network_v6(addr, prefix_len); } inline network_v6 make_network_v6(const char* str); inline network_v6 make_network_v6( const char* str, boost::system::error_code& ec); inline network_v6 make_network_v6(const std::string& str); inline network_v6 make_network_v6( const std::string& str, boost::system::error_code& ec); # 193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 3 4 inline network_v6 make_network_v6(string_view str); inline network_v6 make_network_v6( string_view str, boost::system::error_code& ec); # 220 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 3 4 template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const network_v6& net); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 231 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { template <typename Elem, typename Traits> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const network_v6& addr) { boost::system::error_code ec; std::string s = addr.to_string(ec); if (ec) { if (os.exceptions() & std::basic_ostream<Elem, Traits>::failbit) boost::asio::detail::throw_error(ec); else os.setstate(std::basic_ostream<Elem, Traits>::failbit); } else for (std::string::iterator i = s.begin(); i != s.end(); ++i) os << os.widen(*i); return os; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.hpp" 2 3 4 # 233 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 3 4 # 1 "/usr/include/c++/13/climits" 1 3 4 # 39 "/usr/include/c++/13/climits" 3 4 # 40 "/usr/include/c++/13/climits" 3 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/limits.h" 1 3 4 # 43 "/usr/include/c++/13/climits" 2 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstdio" 1 3 4 # 39 "/usr/include/c++/13/cstdio" 3 4 # 40 "/usr/include/c++/13/cstdio" 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 2 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { network_v6::network_v6(const address_v6& addr, unsigned short prefix_len) : address_(addr), prefix_length_(prefix_len) { if (prefix_len > 128) { std::out_of_range ex("prefix length too large"); boost::asio::detail::throw_exception(ex); } } inline address_v6 network_v6::network() const noexcept { address_v6::bytes_type bytes(address_.to_bytes()); for (std::size_t i = 0; i < 16; ++i) { if (prefix_length_ <= i * 8) bytes[i] = 0; else if (prefix_length_ < (i + 1) * 8) bytes[i] &= 0xFF00 >> (prefix_length_ % 8); } return address_v6(bytes, address_.scope_id()); } address_v6_range network_v6::hosts() const noexcept { address_v6::bytes_type begin_bytes(address_.to_bytes()); address_v6::bytes_type end_bytes(address_.to_bytes()); for (std::size_t i = 0; i < 16; ++i) { if (prefix_length_ <= i * 8) { begin_bytes[i] = 0; end_bytes[i] = 0xFF; } else if (prefix_length_ < (i + 1) * 8) { begin_bytes[i] &= 0xFF00 >> (prefix_length_ % 8); end_bytes[i] |= 0xFF >> (prefix_length_ % 8); } } return address_v6_range( address_v6_iterator(address_v6(begin_bytes, address_.scope_id())), ++address_v6_iterator(address_v6(end_bytes, address_.scope_id()))); } bool network_v6::is_subnet_of(const network_v6& other) const { if (other.prefix_length_ >= prefix_length_) return false; const network_v6 me(address_, other.prefix_length_); return other.canonical() == me.canonical(); } std::string network_v6::to_string() const { boost::system::error_code ec; std::string addr = to_string(ec); boost::asio::detail::throw_error(ec); return addr; } std::string network_v6::to_string(boost::system::error_code& ec) const { using namespace std; ec = boost::system::error_code(); char prefix_len[16]; sprintf(prefix_len, "/%u", prefix_length_); return address_.to_string() + prefix_len; } network_v6 make_network_v6(const char* str) { return make_network_v6(std::string(str)); } network_v6 make_network_v6(const char* str, boost::system::error_code& ec) { return make_network_v6(std::string(str), ec); } network_v6 make_network_v6(const std::string& str) { boost::system::error_code ec; network_v6 net = make_network_v6(str, ec); boost::asio::detail::throw_error(ec); return net; } network_v6 make_network_v6(const std::string& str, boost::system::error_code& ec) { std::string::size_type pos = str.find_first_of("/"); if (pos == std::string::npos) { ec = boost::asio::error::invalid_argument; return network_v6(); } if (pos == str.size() - 1) { ec = boost::asio::error::invalid_argument; return network_v6(); } std::string::size_type end = str.find_first_not_of("0123456789", pos + 1); if (end != std::string::npos) { ec = boost::asio::error::invalid_argument; return network_v6(); } const address_v6 addr = make_address_v6(str.substr(0, pos), ec); if (ec) return network_v6(); const int prefix_len = std::atoi(str.substr(pos + 1).c_str()); if (prefix_len < 0 || prefix_len > 128) { ec = boost::asio::error::invalid_argument; return network_v6(); } return network_v6(addr, static_cast<unsigned short>(prefix_len)); } network_v6 make_network_v6(string_view str) { return make_network_v6(static_cast<std::string>(str)); } network_v6 make_network_v6(string_view str, boost::system::error_code& ec) { return make_network_v6(static_cast<std::string>(str), ec); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 188 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/network_v6.ipp" 2 3 4 # 235 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/network_v6.hpp" 2 3 4 # 134 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/host_name.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/host_name.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/host_name.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { inline std::string host_name(); inline std::string host_name(boost::system::error_code& ec); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/host_name.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/host_name.ipp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/host_name.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/host_name.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/host_name.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/host_name.ipp" 2 3 4 namespace boost { namespace asio { namespace ip { std::string host_name() { char name[1024]; boost::system::error_code ec; if (boost::asio::detail::socket_ops::gethostname(name, sizeof(name), ec) != 0) { boost::asio::detail::throw_error(ec); return std::string(); } return std::string(name); } std::string host_name(boost::system::error_code& ec) { char name[1024]; if (boost::asio::detail::socket_ops::gethostname(name, sizeof(name), ec) != 0) return std::string(); return std::string(name); } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/impl/host_name.ipp" 2 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/host_name.hpp" 2 3 4 # 141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/icmp.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/icmp.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/icmp.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/icmp.hpp" 3 4 class icmp { public: typedef basic_endpoint<icmp> endpoint; static icmp v4() noexcept { return icmp(IPPROTO_ICMP, 2); } static icmp v6() noexcept { return icmp(IPPROTO_ICMPV6, 10); } int type() const noexcept { return SOCK_RAW; } int protocol() const noexcept { return protocol_; } int family() const noexcept { return family_; } typedef basic_raw_socket<icmp> socket; typedef basic_resolver<icmp> resolver; friend bool operator==(const icmp& p1, const icmp& p2) { return p1.protocol_ == p2.protocol_ && p1.family_ == p2.family_; } friend bool operator!=(const icmp& p1, const icmp& p2) { return p1.protocol_ != p2.protocol_ || p1.family_ != p2.family_; } private: explicit icmp(int protocol_id, int protocol_family) noexcept : protocol_(protocol_id), family_(protocol_family) { } int protocol_; int family_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 116 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/icmp.hpp" 2 3 4 # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/socket_option.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/socket_option.hpp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/socket_option.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/socket_option.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { namespace detail { namespace socket_option { template <int IPv4_Level, int IPv4_Name, int IPv6_Level, int IPv6_Name> class multicast_enable_loopback { public: typedef int ipv4_value_type; typedef int ipv6_value_type; multicast_enable_loopback() : ipv4_value_(0), ipv6_value_(0) { } explicit multicast_enable_loopback(bool v) : ipv4_value_(v ? 1 : 0), ipv6_value_(v ? 1 : 0) { } multicast_enable_loopback& operator=(bool v) { ipv4_value_ = v ? 1 : 0; ipv6_value_ = v ? 1 : 0; return *this; } bool value() const { return !!ipv4_value_; } operator bool() const { return !!ipv4_value_; } bool operator!() const { return !ipv4_value_; } template <typename Protocol> int level(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Level; return IPv4_Level; } template <typename Protocol> int name(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Name; return IPv4_Name; } template <typename Protocol> void* data(const Protocol& protocol) { if (protocol.family() == 10) return &ipv6_value_; return &ipv4_value_; } template <typename Protocol> const void* data(const Protocol& protocol) const { if (protocol.family() == 10) return &ipv6_value_; return &ipv4_value_; } template <typename Protocol> std::size_t size(const Protocol& protocol) const { if (protocol.family() == 10) return sizeof(ipv6_value_); return sizeof(ipv4_value_); } template <typename Protocol> void resize(const Protocol& protocol, std::size_t s) { if (protocol.family() == 10) { if (s != sizeof(ipv6_value_)) { std::length_error ex("multicast_enable_loopback socket option resize"); boost::asio::detail::throw_exception(ex); } ipv4_value_ = ipv6_value_ ? 1 : 0; } else { if (s != sizeof(ipv4_value_)) { std::length_error ex("multicast_enable_loopback socket option resize"); boost::asio::detail::throw_exception(ex); } ipv6_value_ = ipv4_value_ ? 1 : 0; } } private: ipv4_value_type ipv4_value_; ipv6_value_type ipv6_value_; }; template <int IPv4_Level, int IPv4_Name, int IPv6_Level, int IPv6_Name> class unicast_hops { public: unicast_hops() : value_(0) { } explicit unicast_hops(int v) : value_(v) { } unicast_hops& operator=(int v) { value_ = v; return *this; } int value() const { return value_; } template <typename Protocol> int level(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Level; return IPv4_Level; } template <typename Protocol> int name(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Name; return IPv4_Name; } template <typename Protocol> int* data(const Protocol&) { return &value_; } template <typename Protocol> const int* data(const Protocol&) const { return &value_; } template <typename Protocol> std::size_t size(const Protocol&) const { return sizeof(value_); } template <typename Protocol> void resize(const Protocol&, std::size_t s) { if (s != sizeof(value_)) { std::length_error ex("unicast hops socket option resize"); boost::asio::detail::throw_exception(ex); } } private: int value_; }; template <int IPv4_Level, int IPv4_Name, int IPv6_Level, int IPv6_Name> class multicast_hops { public: typedef unsigned char ipv4_value_type; typedef int ipv6_value_type; multicast_hops() : ipv4_value_(0), ipv6_value_(0) { } explicit multicast_hops(int v) { if (v < 0 || v > 255) { std::out_of_range ex("multicast hops value out of range"); boost::asio::detail::throw_exception(ex); } ipv4_value_ = (ipv4_value_type)v; ipv6_value_ = v; } multicast_hops& operator=(int v) { if (v < 0 || v > 255) { std::out_of_range ex("multicast hops value out of range"); boost::asio::detail::throw_exception(ex); } ipv4_value_ = (ipv4_value_type)v; ipv6_value_ = v; return *this; } int value() const { return ipv6_value_; } template <typename Protocol> int level(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Level; return IPv4_Level; } template <typename Protocol> int name(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Name; return IPv4_Name; } template <typename Protocol> void* data(const Protocol& protocol) { if (protocol.family() == 10) return &ipv6_value_; return &ipv4_value_; } template <typename Protocol> const void* data(const Protocol& protocol) const { if (protocol.family() == 10) return &ipv6_value_; return &ipv4_value_; } template <typename Protocol> std::size_t size(const Protocol& protocol) const { if (protocol.family() == 10) return sizeof(ipv6_value_); return sizeof(ipv4_value_); } template <typename Protocol> void resize(const Protocol& protocol, std::size_t s) { if (protocol.family() == 10) { if (s != sizeof(ipv6_value_)) { std::length_error ex("multicast hops socket option resize"); boost::asio::detail::throw_exception(ex); } if (ipv6_value_ < 0) ipv4_value_ = 0; else if (ipv6_value_ > 255) ipv4_value_ = 255; else ipv4_value_ = (ipv4_value_type)ipv6_value_; } else { if (s != sizeof(ipv4_value_)) { std::length_error ex("multicast hops socket option resize"); boost::asio::detail::throw_exception(ex); } ipv6_value_ = ipv4_value_; } } private: ipv4_value_type ipv4_value_; ipv6_value_type ipv6_value_; }; template <int IPv4_Level, int IPv4_Name, int IPv6_Level, int IPv6_Name> class multicast_request { public: multicast_request() : ipv4_value_(), ipv6_value_() { } explicit multicast_request(const address& multicast_address) : ipv4_value_(), ipv6_value_() { if (multicast_address.is_v6()) { using namespace std; address_v6 ipv6_address = multicast_address.to_v6(); address_v6::bytes_type bytes = ipv6_address.to_bytes(); memcpy(ipv6_value_.ipv6mr_multiaddr.__in6_u.__u6_addr8, bytes.data(), 16); ipv6_value_.ipv6mr_interface = ipv6_address.scope_id(); } else { ipv4_value_.imr_multiaddr.s_addr = boost::asio::detail::socket_ops::host_to_network_long( multicast_address.to_v4().to_uint()); ipv4_value_.imr_interface.s_addr = boost::asio::detail::socket_ops::host_to_network_long( address_v4::any().to_uint()); } } explicit multicast_request(const address_v4& multicast_address, const address_v4& network_interface = address_v4::any()) : ipv6_value_() { ipv4_value_.imr_multiaddr.s_addr = boost::asio::detail::socket_ops::host_to_network_long( multicast_address.to_uint()); ipv4_value_.imr_interface.s_addr = boost::asio::detail::socket_ops::host_to_network_long( network_interface.to_uint()); } explicit multicast_request( const address_v6& multicast_address, unsigned long network_interface = 0) : ipv4_value_() { using namespace std; address_v6::bytes_type bytes = multicast_address.to_bytes(); memcpy(ipv6_value_.ipv6mr_multiaddr.__in6_u.__u6_addr8, bytes.data(), 16); if (network_interface) ipv6_value_.ipv6mr_interface = network_interface; else ipv6_value_.ipv6mr_interface = multicast_address.scope_id(); } template <typename Protocol> int level(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Level; return IPv4_Level; } template <typename Protocol> int name(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Name; return IPv4_Name; } template <typename Protocol> const void* data(const Protocol& protocol) const { if (protocol.family() == 10) return &ipv6_value_; return &ipv4_value_; } template <typename Protocol> std::size_t size(const Protocol& protocol) const { if (protocol.family() == 10) return sizeof(ipv6_value_); return sizeof(ipv4_value_); } private: boost::asio::detail::in4_mreq_type ipv4_value_; boost::asio::detail::in6_mreq_type ipv6_value_; }; template <int IPv4_Level, int IPv4_Name, int IPv6_Level, int IPv6_Name> class network_interface { public: network_interface() { ipv4_value_.s_addr = boost::asio::detail::socket_ops::host_to_network_long( address_v4::any().to_uint()); ipv6_value_ = 0; } explicit network_interface(const address_v4& ipv4_interface) { ipv4_value_.s_addr = boost::asio::detail::socket_ops::host_to_network_long( ipv4_interface.to_uint()); ipv6_value_ = 0; } explicit network_interface(unsigned int ipv6_interface) { ipv4_value_.s_addr = boost::asio::detail::socket_ops::host_to_network_long( address_v4::any().to_uint()); ipv6_value_ = ipv6_interface; } template <typename Protocol> int level(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Level; return IPv4_Level; } template <typename Protocol> int name(const Protocol& protocol) const { if (protocol.family() == 10) return IPv6_Name; return IPv4_Name; } template <typename Protocol> const void* data(const Protocol& protocol) const { if (protocol.family() == 10) return &ipv6_value_; return &ipv4_value_; } template <typename Protocol> std::size_t size(const Protocol& protocol) const { if (protocol.family() == 10) return sizeof(ipv6_value_); return sizeof(ipv4_value_); } private: boost::asio::detail::in4_addr_type ipv4_value_; unsigned int ipv6_value_; }; } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 567 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/detail/socket_option.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { namespace multicast { # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 3 4 typedef boost::asio::ip::detail::socket_option::multicast_request< IPPROTO_IP, 35, IPPROTO_IPV6, 20> join_group; # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 3 4 typedef boost::asio::ip::detail::socket_option::multicast_request< IPPROTO_IP, 36, IPPROTO_IPV6, 21> leave_group; # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 3 4 typedef boost::asio::ip::detail::socket_option::network_interface< IPPROTO_IP, 32, IPPROTO_IPV6, 17> outbound_interface; # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 3 4 typedef boost::asio::ip::detail::socket_option::multicast_hops< IPPROTO_IP, 33, IPPROTO_IPV6, 18> hops; # 179 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 3 4 typedef boost::asio::ip::detail::socket_option::multicast_enable_loopback< IPPROTO_IP, 34, IPPROTO_IPV6, 19> enable_loopback; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 192 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/multicast.hpp" 2 3 4 # 143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/tcp.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/tcp.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/tcp.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/tcp.hpp" 3 4 class tcp { public: typedef basic_endpoint<tcp> endpoint; static tcp v4() noexcept { return tcp(2); } static tcp v6() noexcept { return tcp(10); } int type() const noexcept { return SOCK_STREAM; } int protocol() const noexcept { return IPPROTO_TCP; } int family() const noexcept { return family_; } typedef basic_stream_socket<tcp> socket; typedef basic_socket_acceptor<tcp> acceptor; typedef basic_resolver<tcp> resolver; typedef basic_socket_iostream<tcp> iostream; # 125 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/tcp.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< IPPROTO_TCP, 1> no_delay; friend bool operator==(const tcp& p1, const tcp& p2) { return p1.family_ == p2.family_; } friend bool operator!=(const tcp& p1, const tcp& p2) { return p1.family_ != p2.family_; } private: explicit tcp(int protocol_family) noexcept : family_(protocol_family) { } int family_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 156 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/tcp.hpp" 2 3 4 # 146 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/unicast.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/unicast.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/unicast.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { namespace unicast { # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/unicast.hpp" 3 4 typedef boost::asio::ip::detail::socket_option::unicast_hops< IPPROTO_IP, 2, IPPROTO_IPV6, 16> hops; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/unicast.hpp" 2 3 4 # 148 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/v6_only.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/v6_only.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/v6_only.hpp" 2 3 4 namespace boost { namespace asio { namespace ip { # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/v6_only.hpp" 3 4 typedef boost::asio::detail::socket_option::boolean< IPPROTO_IPV6, 26> v6_only; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 70 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/ip/v6_only.hpp" 2 3 4 # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_read_buffered.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_read_buffered.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_read_buffered.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Stream> char is_read_buffered_helper(buffered_stream<Stream>* s); template <typename Stream> char is_read_buffered_helper(buffered_read_stream<Stream>* s); struct is_read_buffered_big_type { char data[10]; }; is_read_buffered_big_type is_read_buffered_helper(...); } template <typename Stream> class is_read_buffered { public: static const bool value = sizeof(detail::is_read_buffered_helper((Stream*)0)) == 1 ; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_read_buffered.hpp" 2 3 4 # 153 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_write_buffered.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_write_buffered.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_write_buffered.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Stream> char is_write_buffered_helper(buffered_stream<Stream>* s); template <typename Stream> char is_write_buffered_helper(buffered_write_stream<Stream>* s); struct is_write_buffered_big_type { char data[10]; }; is_write_buffered_big_type is_write_buffered_helper(...); } template <typename Stream> class is_write_buffered { public: static const bool value = sizeof(detail::is_write_buffered_helper((Stream*)0)) == 1 ; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/is_write_buffered.hpp" 2 3 4 # 154 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/endpoint.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/endpoint.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace local { namespace detail { class endpoint { public: inline endpoint(); inline endpoint(const char* path_name); inline endpoint(const std::string& path_name); inline endpoint(string_view path_name); endpoint(const endpoint& other) : data_(other.data_), path_length_(other.path_length_) { } endpoint& operator=(const endpoint& other) { data_ = other.data_; path_length_ = other.path_length_; return *this; } boost::asio::detail::socket_addr_type* data() { return &data_.base; } const boost::asio::detail::socket_addr_type* data() const { return &data_.base; } std::size_t size() const { return path_length_ + __builtin_offsetof (boost::asio::detail::sockaddr_un_type, sun_path); } inline void resize(std::size_t size); std::size_t capacity() const { return sizeof(boost::asio::detail::sockaddr_un_type); } inline std::string path() const; inline void path(const char* p); inline void path(const std::string& p); inline friend bool operator==( const endpoint& e1, const endpoint& e2); inline friend bool operator<( const endpoint& e1, const endpoint& e2); private: union data_union { boost::asio::detail::socket_addr_type base; boost::asio::detail::sockaddr_un_type local; } data_; std::size_t path_length_; inline void init(const char* path, std::size_t path_length); }; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 134 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/impl/endpoint.ipp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/impl/endpoint.ipp" 3 4 # 1 "/usr/include/c++/13/cstring" 1 3 4 # 39 "/usr/include/c++/13/cstring" 3 4 # 40 "/usr/include/c++/13/cstring" 3 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/impl/endpoint.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/endpoint.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/impl/endpoint.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/impl/endpoint.ipp" 2 3 4 namespace boost { namespace asio { namespace local { namespace detail { endpoint::endpoint() { init("", 0); } endpoint::endpoint(const char* path_name) { using namespace std; init(path_name, strlen(path_name)); } endpoint::endpoint(const std::string& path_name) { init(path_name.data(), path_name.length()); } endpoint::endpoint(string_view path_name) { init(path_name.data(), path_name.length()); } void endpoint::resize(std::size_t new_size) { if (new_size > sizeof(boost::asio::detail::sockaddr_un_type)) { boost::system::error_code ec(boost::asio::error::invalid_argument); boost::asio::detail::throw_error(ec); } else if (new_size == 0) { path_length_ = 0; } else { path_length_ = new_size - __builtin_offsetof (boost::asio::detail::sockaddr_un_type, sun_path); if (path_length_ > 0 && data_.local.sun_path[path_length_ - 1] == 0) --path_length_; } } std::string endpoint::path() const { return std::string(data_.local.sun_path, path_length_); } void endpoint::path(const char* p) { using namespace std; init(p, strlen(p)); } void endpoint::path(const std::string& p) { init(p.data(), p.length()); } bool operator==(const endpoint& e1, const endpoint& e2) { return e1.path() == e2.path(); } bool operator<(const endpoint& e1, const endpoint& e2) { return e1.path() < e2.path(); } void endpoint::init(const char* path_name, std::size_t path_length) { if (path_length > sizeof(data_.local.sun_path) - 1) { boost::system::error_code ec(boost::asio::error::name_too_long); boost::asio::detail::throw_error(ec); } using namespace std; memset(&data_.local, 0, sizeof(boost::asio::detail::sockaddr_un_type)); data_.local.sun_family = 1; if (path_length > 0) memcpy(data_.local.sun_path, path_name, path_length); path_length_ = path_length; } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 130 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/impl/endpoint.ipp" 2 3 4 # 137 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/detail/endpoint.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 2 3 4 namespace boost { namespace asio { namespace local { # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 3 4 template <typename Protocol> class basic_endpoint { public: typedef Protocol protocol_type; typedef boost::asio::detail::socket_addr_type data_type; basic_endpoint() noexcept { } basic_endpoint(const char* path_name) : impl_(path_name) { } basic_endpoint(const std::string& path_name) : impl_(path_name) { } basic_endpoint(string_view path_name) : impl_(path_name) { } basic_endpoint(const basic_endpoint& other) : impl_(other.impl_) { } basic_endpoint(basic_endpoint&& other) : impl_(other.impl_) { } basic_endpoint& operator=(const basic_endpoint& other) { impl_ = other.impl_; return *this; } basic_endpoint& operator=(basic_endpoint&& other) { impl_ = other.impl_; return *this; } protocol_type protocol() const { return protocol_type(); } data_type* data() { return impl_.data(); } const data_type* data() const { return impl_.data(); } std::size_t size() const { return impl_.size(); } void resize(std::size_t new_size) { impl_.resize(new_size); } std::size_t capacity() const { return impl_.capacity(); } std::string path() const { return impl_.path(); } void path(const char* p) { impl_.path(p); } void path(const std::string& p) { impl_.path(p); } friend bool operator==(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return e1.impl_ == e2.impl_; } friend bool operator!=(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return !(e1.impl_ == e2.impl_); } friend bool operator<(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return e1.impl_ < e2.impl_; } friend bool operator>(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return e2.impl_ < e1.impl_; } friend bool operator<=(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return !(e2 < e1); } friend bool operator>=(const basic_endpoint<Protocol>& e1, const basic_endpoint<Protocol>& e2) { return !(e1 < e2); } private: boost::asio::local::detail::endpoint impl_; }; # 231 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 3 4 template <typename Elem, typename Traits, typename Protocol> std::basic_ostream<Elem, Traits>& operator<<( std::basic_ostream<Elem, Traits>& os, const basic_endpoint<Protocol>& endpoint) { os << endpoint.path(); return os; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/basic_endpoint.hpp" 2 3 4 # 155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/connect_pair.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/connect_pair.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/connect_pair.hpp" 2 3 4 namespace boost { namespace asio { namespace local { template <typename Protocol, typename Executor1, typename Executor2> void connect_pair(basic_socket<Protocol, Executor1>& socket1, basic_socket<Protocol, Executor2>& socket2); template <typename Protocol, typename Executor1, typename Executor2> boost::system::error_code connect_pair(basic_socket<Protocol, Executor1>& socket1, basic_socket<Protocol, Executor2>& socket2, boost::system::error_code& ec); template <typename Protocol, typename Executor1, typename Executor2> inline void connect_pair(basic_socket<Protocol, Executor1>& socket1, basic_socket<Protocol, Executor2>& socket2) { boost::system::error_code ec; connect_pair(socket1, socket2, ec); boost::asio::detail::throw_error(ec, "connect_pair"); } template <typename Protocol, typename Executor1, typename Executor2> inline boost::system::error_code connect_pair( basic_socket<Protocol, Executor1>& socket1, basic_socket<Protocol, Executor2>& socket2, boost::system::error_code& ec) { boost::asio::local::basic_endpoint<Protocol>* tmp = static_cast<typename Protocol::endpoint*>(0); (void)tmp; Protocol protocol; boost::asio::detail::socket_type sv[2]; if (boost::asio::detail::socket_ops::socketpair(protocol.family(), protocol.type(), protocol.protocol(), sv, ec) == boost::asio::detail::socket_error_retval) return ec; socket1.assign(protocol, sv[0], ec); if (ec) { boost::system::error_code temp_ec; boost::asio::detail::socket_ops::state_type state[2] = { 0, 0 }; boost::asio::detail::socket_ops::close(sv[0], state[0], true, temp_ec); boost::asio::detail::socket_ops::close(sv[1], state[1], true, temp_ec); return ec; } socket2.assign(protocol, sv[1], ec); if (ec) { boost::system::error_code temp_ec; socket1.close(temp_ec); boost::asio::detail::socket_ops::state_type state = 0; boost::asio::detail::socket_ops::close(sv[1], state, true, temp_ec); return ec; } return ec; } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/connect_pair.hpp" 2 3 4 # 156 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/datagram_protocol.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/datagram_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/datagram_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace local { # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/datagram_protocol.hpp" 3 4 class datagram_protocol { public: int type() const noexcept { return SOCK_DGRAM; } int protocol() const noexcept { return 0; } int family() const noexcept { return 1; } typedef basic_endpoint<datagram_protocol> endpoint; typedef basic_datagram_socket<datagram_protocol> socket; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/datagram_protocol.hpp" 2 3 4 # 157 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/seq_packet_protocol.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/seq_packet_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/seq_packet_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace local { # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/seq_packet_protocol.hpp" 3 4 class seq_packet_protocol { public: int type() const noexcept { return SOCK_SEQPACKET; } int protocol() const noexcept { return 0; } int family() const noexcept { return 1; } typedef basic_endpoint<seq_packet_protocol> endpoint; typedef basic_seq_packet_socket<seq_packet_protocol> socket; typedef basic_socket_acceptor<seq_packet_protocol> acceptor; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/seq_packet_protocol.hpp" 2 3 4 # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/stream_protocol.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/stream_protocol.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/stream_protocol.hpp" 2 3 4 namespace boost { namespace asio { namespace local { # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/stream_protocol.hpp" 3 4 class stream_protocol { public: int type() const noexcept { return SOCK_STREAM; } int protocol() const noexcept { return 0; } int family() const noexcept { return 1; } typedef basic_endpoint<stream_protocol> endpoint; typedef basic_stream_socket<stream_protocol> socket; typedef basic_socket_acceptor<stream_protocol> acceptor; typedef basic_socket_iostream<stream_protocol> iostream; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/local/stream_protocol.hpp" 2 3 4 # 159 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/future.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/future.hpp" 3 4 # 1 "/usr/include/c++/13/future" 1 3 4 # 32 "/usr/include/c++/13/future" 3 4 # 33 "/usr/include/c++/13/future" 3 # 45 "/usr/include/c++/13/future" 3 # 1 "/usr/include/c++/13/bits/atomic_futex.h" 1 3 # 33 "/usr/include/c++/13/bits/atomic_futex.h" 3 # 34 "/usr/include/c++/13/bits/atomic_futex.h" 3 # 46 "/usr/include/c++/13/bits/atomic_futex.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { struct __atomic_futex_unsigned_base { bool _M_futex_wait_until(unsigned *__addr, unsigned __val, bool __has_timeout, chrono::seconds __s, chrono::nanoseconds __ns); bool _M_futex_wait_until_steady(unsigned *__addr, unsigned __val, bool __has_timeout, chrono::seconds __s, chrono::nanoseconds __ns); static void _M_futex_notify_all(unsigned* __addr); }; template <unsigned _Waiter_bit = 0x80000000> class __atomic_futex_unsigned : __atomic_futex_unsigned_base { typedef chrono::steady_clock __clock_t; atomic<unsigned> _M_data; public: explicit __atomic_futex_unsigned(unsigned __data) : _M_data(__data) { } inline __attribute__((__always_inline__)) unsigned _M_load(memory_order __mo) { return _M_data.load(__mo) & ~_Waiter_bit; } private: unsigned _M_load_and_test_until(unsigned __assumed, unsigned __operand, bool __equal, memory_order __mo, bool __has_timeout, chrono::seconds __s, chrono::nanoseconds __ns) { for (;;) { _M_data.fetch_or(_Waiter_bit, memory_order_relaxed); bool __ret = _M_futex_wait_until((unsigned*)(void*)&_M_data, __assumed | _Waiter_bit, __has_timeout, __s, __ns); __assumed = _M_load(__mo); if (!__ret || ((__operand == __assumed) == __equal)) return __assumed; } } unsigned _M_load_and_test_until_steady(unsigned __assumed, unsigned __operand, bool __equal, memory_order __mo, bool __has_timeout, chrono::seconds __s, chrono::nanoseconds __ns) { for (;;) { _M_data.fetch_or(_Waiter_bit, memory_order_relaxed); bool __ret = _M_futex_wait_until_steady((unsigned*)(void*)&_M_data, __assumed | _Waiter_bit, __has_timeout, __s, __ns); __assumed = _M_load(__mo); if (!__ret || ((__operand == __assumed) == __equal)) return __assumed; } } unsigned _M_load_and_test(unsigned __assumed, unsigned __operand, bool __equal, memory_order __mo) { return _M_load_and_test_until(__assumed, __operand, __equal, __mo, false, {}, {}); } template<typename _Dur> unsigned _M_load_and_test_until_impl(unsigned __assumed, unsigned __operand, bool __equal, memory_order __mo, const chrono::time_point<std::chrono::system_clock, _Dur>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); return _M_load_and_test_until(__assumed, __operand, __equal, __mo, true, __s.time_since_epoch(), __ns); } template<typename _Dur> unsigned _M_load_and_test_until_impl(unsigned __assumed, unsigned __operand, bool __equal, memory_order __mo, const chrono::time_point<std::chrono::steady_clock, _Dur>& __atime) { auto __s = chrono::time_point_cast<chrono::seconds>(__atime); auto __ns = chrono::duration_cast<chrono::nanoseconds>(__atime - __s); return _M_load_and_test_until_steady(__assumed, __operand, __equal, __mo, true, __s.time_since_epoch(), __ns); } public: inline __attribute__((__always_inline__)) unsigned _M_load_when_not_equal(unsigned __val, memory_order __mo) { unsigned __i = _M_load(__mo); if ((__i & ~_Waiter_bit) != __val) return (__i & ~_Waiter_bit); return _M_load_and_test(__i, __val, false, __mo); } inline __attribute__((__always_inline__)) void _M_load_when_equal(unsigned __val, memory_order __mo) { unsigned __i = _M_load(__mo); if ((__i & ~_Waiter_bit) == __val) return; _M_load_and_test(__i, __val, true, __mo); } template<typename _Rep, typename _Period> inline __attribute__((__always_inline__)) bool _M_load_when_equal_for(unsigned __val, memory_order __mo, const chrono::duration<_Rep, _Period>& __rtime) { using __dur = typename __clock_t::duration; return _M_load_when_equal_until(__val, __mo, __clock_t::now() + chrono::__detail::ceil<__dur>(__rtime)); } template<typename _Clock, typename _Duration> inline __attribute__((__always_inline__)) bool _M_load_when_equal_until(unsigned __val, memory_order __mo, const chrono::time_point<_Clock, _Duration>& __atime) { typename _Clock::time_point __c_entry = _Clock::now(); do { const __clock_t::time_point __s_entry = __clock_t::now(); const auto __delta = __atime - __c_entry; const auto __s_atime = __s_entry + chrono::__detail::ceil<__clock_t::duration>(__delta); if (_M_load_when_equal_until(__val, __mo, __s_atime)) return true; __c_entry = _Clock::now(); } while (__c_entry < __atime); return false; } template<typename _Duration> inline __attribute__((__always_inline__)) bool _M_load_when_equal_until(unsigned __val, memory_order __mo, const chrono::time_point<std::chrono::system_clock, _Duration>& __atime) { unsigned __i = _M_load(__mo); if ((__i & ~_Waiter_bit) == __val) return true; __i = _M_load_and_test_until_impl(__i, __val, true, __mo, __atime); return (__i & ~_Waiter_bit) == __val; } template<typename _Duration> inline __attribute__((__always_inline__)) bool _M_load_when_equal_until(unsigned __val, memory_order __mo, const chrono::time_point<std::chrono::steady_clock, _Duration>& __atime) { unsigned __i = _M_load(__mo); if ((__i & ~_Waiter_bit) == __val) return true; __i = _M_load_and_test_until_impl(__i, __val, true, __mo, __atime); return (__i & ~_Waiter_bit) == __val; } inline __attribute__((__always_inline__)) void _M_store_notify_all(unsigned __val, memory_order __mo) { unsigned* __futex = (unsigned *)(void *)&_M_data; if (_M_data.exchange(__val, __mo) & _Waiter_bit) _M_futex_notify_all(__futex); } }; # 357 "/usr/include/c++/13/bits/atomic_futex.h" 3 } # 46 "/usr/include/c++/13/future" 2 3 # 55 "/usr/include/c++/13/future" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 74 "/usr/include/c++/13/future" 3 enum class future_errc { future_already_retrieved = 1, promise_already_satisfied, no_state, broken_promise }; template<> struct is_error_code_enum<future_errc> : public true_type { }; [[__nodiscard__, __gnu__::__const__]] const error_category& future_category() noexcept; [[__nodiscard__]] inline error_code make_error_code(future_errc __errc) noexcept { return error_code(static_cast<int>(__errc), future_category()); } [[__nodiscard__]] inline error_condition make_error_condition(future_errc __errc) noexcept { return error_condition(static_cast<int>(__errc), future_category()); } class future_error : public logic_error { public: explicit future_error(future_errc __errc) : future_error(std::make_error_code(__errc)) { } virtual ~future_error() noexcept; virtual const char* what() const noexcept; const error_code& code() const noexcept { return _M_code; } private: explicit future_error(error_code __ec) : logic_error("std::future_error: " + __ec.message()), _M_code(__ec) { } friend void __throw_future_error(int); error_code _M_code; }; template<typename _Res> class future; template<typename _Res> class shared_future; template<typename _Signature> class packaged_task; template<typename _Res> class promise; enum class launch { async = 1, deferred = 2 }; constexpr launch operator&(launch __x, launch __y) noexcept { return static_cast<launch>( static_cast<int>(__x) & static_cast<int>(__y)); } constexpr launch operator|(launch __x, launch __y) noexcept { return static_cast<launch>( static_cast<int>(__x) | static_cast<int>(__y)); } constexpr launch operator^(launch __x, launch __y) noexcept { return static_cast<launch>( static_cast<int>(__x) ^ static_cast<int>(__y)); } constexpr launch operator~(launch __x) noexcept { return static_cast<launch>(~static_cast<int>(__x)); } inline launch& operator&=(launch& __x, launch __y) noexcept { return __x = __x & __y; } inline launch& operator|=(launch& __x, launch __y) noexcept { return __x = __x | __y; } inline launch& operator^=(launch& __x, launch __y) noexcept { return __x = __x ^ __y; } enum class future_status { ready, timeout, deferred }; template<typename _Fn, typename... _Args> using __async_result_of = typename __invoke_result< typename decay<_Fn>::type, typename decay<_Args>::type...>::type; template<typename _Fn, typename... _Args> future<__async_result_of<_Fn, _Args...>> async(launch __policy, _Fn&& __fn, _Args&&... __args); template<typename _Fn, typename... _Args> future<__async_result_of<_Fn, _Args...>> async(_Fn&& __fn, _Args&&... __args); struct __future_base { struct _Result_base { exception_ptr _M_error; _Result_base(const _Result_base&) = delete; _Result_base& operator=(const _Result_base&) = delete; virtual void _M_destroy() = 0; struct _Deleter { void operator()(_Result_base* __fr) const { __fr->_M_destroy(); } }; protected: _Result_base(); virtual ~_Result_base(); }; template<typename _Res> using _Ptr = unique_ptr<_Res, _Result_base::_Deleter>; template<typename _Res> struct _Result : _Result_base { private: __gnu_cxx::__aligned_buffer<_Res> _M_storage; bool _M_initialized; public: typedef _Res result_type; _Result() noexcept : _M_initialized() { } ~_Result() { if (_M_initialized) _M_value().~_Res(); } _Res& _M_value() noexcept { return *_M_storage._M_ptr(); } void _M_set(const _Res& __res) { ::new (_M_storage._M_addr()) _Res(__res); _M_initialized = true; } void _M_set(_Res&& __res) { ::new (_M_storage._M_addr()) _Res(std::move(__res)); _M_initialized = true; } private: void _M_destroy() { delete this; } }; template<typename _Res, typename _Alloc> struct _Result_alloc final : _Result<_Res>, _Alloc { using __allocator_type = __alloc_rebind<_Alloc, _Result_alloc>; explicit _Result_alloc(const _Alloc& __a) : _Result<_Res>(), _Alloc(__a) { } private: void _M_destroy() { __allocator_type __a(*this); __allocated_ptr<__allocator_type> __guard_ptr{ __a, this }; this->~_Result_alloc(); } }; template<typename _Res, typename _Allocator> static _Ptr<_Result_alloc<_Res, _Allocator>> _S_allocate_result(const _Allocator& __a) { using __result_type = _Result_alloc<_Res, _Allocator>; typename __result_type::__allocator_type __a2(__a); auto __guard = std::__allocate_guarded(__a2); __result_type* __p = ::new((void*)__guard.get()) __result_type{__a}; __guard = nullptr; return _Ptr<__result_type>(__p); } template<typename _Res, typename _Tp> static _Ptr<_Result<_Res>> _S_allocate_result(const std::allocator<_Tp>& __a) { return _Ptr<_Result<_Res>>(new _Result<_Res>); } class _State_baseV2 { typedef _Ptr<_Result_base> _Ptr_type; enum _Status : unsigned { __not_ready, __ready }; _Ptr_type _M_result; __atomic_futex_unsigned<> _M_status; atomic_flag _M_retrieved = { 0 }; once_flag _M_once; public: _State_baseV2() noexcept : _M_result(), _M_status(_Status::__not_ready) { } _State_baseV2(const _State_baseV2&) = delete; _State_baseV2& operator=(const _State_baseV2&) = delete; virtual ~_State_baseV2() = default; _Result_base& wait() { _M_complete_async(); _M_status._M_load_when_equal(_Status::__ready, memory_order_acquire); return *_M_result; } template<typename _Rep, typename _Period> future_status wait_for(const chrono::duration<_Rep, _Period>& __rel) { if (_M_status._M_load(memory_order_acquire) == _Status::__ready) return future_status::ready; if (_M_is_deferred_future()) return future_status::deferred; if (__rel > __rel.zero() && _M_status._M_load_when_equal_for(_Status::__ready, memory_order_acquire, __rel)) { # 384 "/usr/include/c++/13/future" 3 _M_complete_async(); return future_status::ready; } return future_status::timeout; } template<typename _Clock, typename _Duration> future_status wait_until(const chrono::time_point<_Clock, _Duration>& __abs) { static_assert(chrono::is_clock_v<_Clock>); if (_M_status._M_load(memory_order_acquire) == _Status::__ready) return future_status::ready; if (_M_is_deferred_future()) return future_status::deferred; if (_M_status._M_load_when_equal_until(_Status::__ready, memory_order_acquire, __abs)) { _M_complete_async(); return future_status::ready; } return future_status::timeout; } void _M_set_result(function<_Ptr_type()> __res, bool __ignore_failure = false) { bool __did_set = false; call_once(_M_once, &_State_baseV2::_M_do_set, this, std::__addressof(__res), std::__addressof(__did_set)); if (__did_set) _M_status._M_store_notify_all(_Status::__ready, memory_order_release); else if (!__ignore_failure) __throw_future_error(int(future_errc::promise_already_satisfied)); } void _M_set_delayed_result(function<_Ptr_type()> __res, weak_ptr<_State_baseV2> __self) { bool __did_set = false; unique_ptr<_Make_ready> __mr{new _Make_ready}; call_once(_M_once, &_State_baseV2::_M_do_set, this, std::__addressof(__res), std::__addressof(__did_set)); if (!__did_set) __throw_future_error(int(future_errc::promise_already_satisfied)); __mr->_M_shared_state = std::move(__self); __mr->_M_set(); __mr.release(); } void _M_break_promise(_Ptr_type __res) { if (static_cast<bool>(__res)) { __res->_M_error = make_exception_ptr(future_error(future_errc::broken_promise)); _M_result.swap(__res); _M_status._M_store_notify_all(_Status::__ready, memory_order_release); } } void _M_set_retrieved_flag() { if (_M_retrieved.test_and_set()) __throw_future_error(int(future_errc::future_already_retrieved)); } template<typename _Res, typename _Arg> struct _Setter; template<typename _Res, typename _Arg> struct _Setter<_Res, _Arg&> { static_assert(is_same<_Res, _Arg&>::value || is_same<const _Res, _Arg>::value, "Invalid specialisation"); typename promise<_Res>::_Ptr_type operator()() const { _M_promise->_M_storage->_M_set(*_M_arg); return std::move(_M_promise->_M_storage); } promise<_Res>* _M_promise; _Arg* _M_arg; }; template<typename _Res> struct _Setter<_Res, _Res&&> { typename promise<_Res>::_Ptr_type operator()() const { _M_promise->_M_storage->_M_set(std::move(*_M_arg)); return std::move(_M_promise->_M_storage); } promise<_Res>* _M_promise; _Res* _M_arg; }; template<typename _Res> struct _Setter<_Res, void> { static_assert(is_void<_Res>::value, "Only used for promise<void>"); typename promise<_Res>::_Ptr_type operator()() const { return std::move(_M_promise->_M_storage); } promise<_Res>* _M_promise; }; struct __exception_ptr_tag { }; template<typename _Res> struct _Setter<_Res, __exception_ptr_tag> { typename promise<_Res>::_Ptr_type operator()() const { _M_promise->_M_storage->_M_error = *_M_ex; return std::move(_M_promise->_M_storage); } promise<_Res>* _M_promise; exception_ptr* _M_ex; }; template<typename _Res, typename _Arg> __attribute__((__always_inline__)) static _Setter<_Res, _Arg&&> __setter(promise<_Res>* __prom, _Arg&& __arg) noexcept { return _Setter<_Res, _Arg&&>{ __prom, std::__addressof(__arg) }; } template<typename _Res> __attribute__((__always_inline__)) static _Setter<_Res, __exception_ptr_tag> __setter(exception_ptr& __ex, promise<_Res>* __prom) noexcept { do { if (std::__is_constant_evaluated() && !bool(__ex != nullptr)) __builtin_unreachable(); } while (false); return _Setter<_Res, __exception_ptr_tag>{ __prom, &__ex }; } template<typename _Res> __attribute__((__always_inline__)) static _Setter<_Res, void> __setter(promise<_Res>* __prom) noexcept { return _Setter<_Res, void>{ __prom }; } template<typename _Tp> static void _S_check(const shared_ptr<_Tp>& __p) { if (!static_cast<bool>(__p)) __throw_future_error((int)future_errc::no_state); } private: void _M_do_set(function<_Ptr_type()>* __f, bool* __did_set) { _Ptr_type __res = (*__f)(); *__did_set = true; _M_result.swap(__res); } virtual void _M_complete_async() { } virtual bool _M_is_deferred_future() const { return false; } struct _Make_ready final : __at_thread_exit_elt { weak_ptr<_State_baseV2> _M_shared_state; static void _S_run(void*); void _M_set(); }; }; using _State_base = _State_baseV2; class _Async_state_commonV2; template<typename _BoundFn, typename _Res = decltype(std::declval<_BoundFn&>()())> class _Deferred_state; template<typename _BoundFn, typename _Res = decltype(std::declval<_BoundFn&>()())> class _Async_state_impl; template<typename _Signature> class _Task_state_base; template<typename _Fn, typename _Alloc, typename _Signature> class _Task_state; template<typename _Res_ptr, typename _Fn, typename _Res = typename _Res_ptr::element_type::result_type> struct _Task_setter; template<typename _Res_ptr, typename _BoundFn> static _Task_setter<_Res_ptr, _BoundFn> _S_task_setter(_Res_ptr& __ptr, _BoundFn& __call) { return { std::__addressof(__ptr), std::__addressof(__call) }; } }; template<typename _Res> struct __future_base::_Result<_Res&> : __future_base::_Result_base { typedef _Res& result_type; _Result() noexcept : _M_value_ptr() { } void _M_set(_Res& __res) noexcept { _M_value_ptr = std::addressof(__res); } _Res& _M_get() noexcept { return *_M_value_ptr; } private: _Res* _M_value_ptr; void _M_destroy() { delete this; } }; template<> struct __future_base::_Result<void> : __future_base::_Result_base { typedef void result_type; private: void _M_destroy() { delete this; } }; template<typename _Res, typename _Arg> struct __is_location_invariant <__future_base::_State_base::_Setter<_Res, _Arg>> : true_type { }; template<typename _Res_ptr, typename _Fn, typename _Res> struct __is_location_invariant <__future_base::_Task_setter<_Res_ptr, _Fn, _Res>> : true_type { }; template<typename _Res> class __basic_future : public __future_base { protected: typedef shared_ptr<_State_base> __state_type; typedef __future_base::_Result<_Res>& __result_type; private: __state_type _M_state; public: __basic_future(const __basic_future&) = delete; __basic_future& operator=(const __basic_future&) = delete; bool valid() const noexcept { return static_cast<bool>(_M_state); } void wait() const { _State_base::_S_check(_M_state); _M_state->wait(); } template<typename _Rep, typename _Period> future_status wait_for(const chrono::duration<_Rep, _Period>& __rel) const { _State_base::_S_check(_M_state); return _M_state->wait_for(__rel); } template<typename _Clock, typename _Duration> future_status wait_until(const chrono::time_point<_Clock, _Duration>& __abs) const { _State_base::_S_check(_M_state); return _M_state->wait_until(__abs); } protected: __result_type _M_get_result() const { _State_base::_S_check(_M_state); _Result_base& __res = _M_state->wait(); if (!(__res._M_error == nullptr)) rethrow_exception(__res._M_error); return static_cast<__result_type>(__res); } void _M_swap(__basic_future& __that) noexcept { _M_state.swap(__that._M_state); } explicit __basic_future(const __state_type& __state) : _M_state(__state) { _State_base::_S_check(_M_state); _M_state->_M_set_retrieved_flag(); } explicit __basic_future(const shared_future<_Res>&) noexcept; explicit __basic_future(shared_future<_Res>&&) noexcept; explicit __basic_future(future<_Res>&&) noexcept; constexpr __basic_future() noexcept : _M_state() { } struct _Reset { explicit _Reset(__basic_future& __fut) noexcept : _M_fut(__fut) { } ~_Reset() { _M_fut._M_state.reset(); } __basic_future& _M_fut; }; }; template<typename _Res> class future : public __basic_future<_Res> { static_assert(!is_array<_Res>{}, "result type must not be an array"); static_assert(!is_function<_Res>{}, "result type must not be a function"); static_assert(is_destructible<_Res>{}, "result type must be destructible"); friend class promise<_Res>; template<typename> friend class packaged_task; template<typename _Fn, typename... _Args> friend future<__async_result_of<_Fn, _Args...>> async(launch, _Fn&&, _Args&&...); typedef __basic_future<_Res> _Base_type; typedef typename _Base_type::__state_type __state_type; explicit future(const __state_type& __state) : _Base_type(__state) { } public: constexpr future() noexcept : _Base_type() { } future(future&& __uf) noexcept : _Base_type(std::move(__uf)) { } future(const future&) = delete; future& operator=(const future&) = delete; future& operator=(future&& __fut) noexcept { future(std::move(__fut))._M_swap(*this); return *this; } _Res get() { typename _Base_type::_Reset __reset(*this); return std::move(this->_M_get_result()._M_value()); } shared_future<_Res> share() noexcept; }; template<typename _Res> class future<_Res&> : public __basic_future<_Res&> { friend class promise<_Res&>; template<typename> friend class packaged_task; template<typename _Fn, typename... _Args> friend future<__async_result_of<_Fn, _Args...>> async(launch, _Fn&&, _Args&&...); typedef __basic_future<_Res&> _Base_type; typedef typename _Base_type::__state_type __state_type; explicit future(const __state_type& __state) : _Base_type(__state) { } public: constexpr future() noexcept : _Base_type() { } future(future&& __uf) noexcept : _Base_type(std::move(__uf)) { } future(const future&) = delete; future& operator=(const future&) = delete; future& operator=(future&& __fut) noexcept { future(std::move(__fut))._M_swap(*this); return *this; } _Res& get() { typename _Base_type::_Reset __reset(*this); return this->_M_get_result()._M_get(); } shared_future<_Res&> share() noexcept; }; template<> class future<void> : public __basic_future<void> { friend class promise<void>; template<typename> friend class packaged_task; template<typename _Fn, typename... _Args> friend future<__async_result_of<_Fn, _Args...>> async(launch, _Fn&&, _Args&&...); typedef __basic_future<void> _Base_type; typedef typename _Base_type::__state_type __state_type; explicit future(const __state_type& __state) : _Base_type(__state) { } public: constexpr future() noexcept : _Base_type() { } future(future&& __uf) noexcept : _Base_type(std::move(__uf)) { } future(const future&) = delete; future& operator=(const future&) = delete; future& operator=(future&& __fut) noexcept { future(std::move(__fut))._M_swap(*this); return *this; } void get() { typename _Base_type::_Reset __reset(*this); this->_M_get_result(); } shared_future<void> share() noexcept; }; template<typename _Res> class shared_future : public __basic_future<_Res> { static_assert(!is_array<_Res>{}, "result type must not be an array"); static_assert(!is_function<_Res>{}, "result type must not be a function"); static_assert(is_destructible<_Res>{}, "result type must be destructible"); typedef __basic_future<_Res> _Base_type; public: constexpr shared_future() noexcept : _Base_type() { } shared_future(const shared_future& __sf) noexcept : _Base_type(__sf) { } shared_future(future<_Res>&& __uf) noexcept : _Base_type(std::move(__uf)) { } shared_future(shared_future&& __sf) noexcept : _Base_type(std::move(__sf)) { } shared_future& operator=(const shared_future& __sf) noexcept { shared_future(__sf)._M_swap(*this); return *this; } shared_future& operator=(shared_future&& __sf) noexcept { shared_future(std::move(__sf))._M_swap(*this); return *this; } const _Res& get() const { return this->_M_get_result()._M_value(); } }; template<typename _Res> class shared_future<_Res&> : public __basic_future<_Res&> { typedef __basic_future<_Res&> _Base_type; public: constexpr shared_future() noexcept : _Base_type() { } shared_future(const shared_future& __sf) : _Base_type(__sf) { } shared_future(future<_Res&>&& __uf) noexcept : _Base_type(std::move(__uf)) { } shared_future(shared_future&& __sf) noexcept : _Base_type(std::move(__sf)) { } shared_future& operator=(const shared_future& __sf) { shared_future(__sf)._M_swap(*this); return *this; } shared_future& operator=(shared_future&& __sf) noexcept { shared_future(std::move(__sf))._M_swap(*this); return *this; } _Res& get() const { return this->_M_get_result()._M_get(); } }; template<> class shared_future<void> : public __basic_future<void> { typedef __basic_future<void> _Base_type; public: constexpr shared_future() noexcept : _Base_type() { } shared_future(const shared_future& __sf) : _Base_type(__sf) { } shared_future(future<void>&& __uf) noexcept : _Base_type(std::move(__uf)) { } shared_future(shared_future&& __sf) noexcept : _Base_type(std::move(__sf)) { } shared_future& operator=(const shared_future& __sf) { shared_future(__sf)._M_swap(*this); return *this; } shared_future& operator=(shared_future&& __sf) noexcept { shared_future(std::move(__sf))._M_swap(*this); return *this; } void get() const { this->_M_get_result(); } }; template<typename _Res> inline __basic_future<_Res>:: __basic_future(const shared_future<_Res>& __sf) noexcept : _M_state(__sf._M_state) { } template<typename _Res> inline __basic_future<_Res>:: __basic_future(shared_future<_Res>&& __sf) noexcept : _M_state(std::move(__sf._M_state)) { } template<typename _Res> inline __basic_future<_Res>:: __basic_future(future<_Res>&& __uf) noexcept : _M_state(std::move(__uf._M_state)) { } template<typename _Res> inline shared_future<_Res> future<_Res>::share() noexcept { return shared_future<_Res>(std::move(*this)); } template<typename _Res> inline shared_future<_Res&> future<_Res&>::share() noexcept { return shared_future<_Res&>(std::move(*this)); } inline shared_future<void> future<void>::share() noexcept { return shared_future<void>(std::move(*this)); } template<typename _Res> class promise { static_assert(!is_array<_Res>{}, "result type must not be an array"); static_assert(!is_function<_Res>{}, "result type must not be a function"); static_assert(is_destructible<_Res>{}, "result type must be destructible"); typedef __future_base::_State_base _State; typedef __future_base::_Result<_Res> _Res_type; typedef __future_base::_Ptr<_Res_type> _Ptr_type; template<typename, typename> friend struct _State::_Setter; friend _State; shared_ptr<_State> _M_future; _Ptr_type _M_storage; public: promise() : _M_future(std::make_shared<_State>()), _M_storage(new _Res_type()) { } promise(promise&& __rhs) noexcept : _M_future(std::move(__rhs._M_future)), _M_storage(std::move(__rhs._M_storage)) { } template<typename _Allocator> promise(allocator_arg_t, const _Allocator& __a) : _M_future(std::allocate_shared<_State>(__a)), _M_storage(__future_base::_S_allocate_result<_Res>(__a)) { } template<typename _Allocator> promise(allocator_arg_t, const _Allocator&, promise&& __rhs) : _M_future(std::move(__rhs._M_future)), _M_storage(std::move(__rhs._M_storage)) { } promise(const promise&) = delete; ~promise() { if (static_cast<bool>(_M_future) && !_M_future.unique()) _M_future->_M_break_promise(std::move(_M_storage)); } promise& operator=(promise&& __rhs) noexcept { promise(std::move(__rhs)).swap(*this); return *this; } promise& operator=(const promise&) = delete; void swap(promise& __rhs) noexcept { _M_future.swap(__rhs._M_future); _M_storage.swap(__rhs._M_storage); } future<_Res> get_future() { return future<_Res>(_M_future); } void set_value(const _Res& __r) { _M_state()._M_set_result(_State::__setter(this, __r)); } void set_value(_Res&& __r) { _M_state()._M_set_result(_State::__setter(this, std::move(__r))); } void set_exception(exception_ptr __p) { _M_state()._M_set_result(_State::__setter(__p, this)); } void set_value_at_thread_exit(const _Res& __r) { _M_state()._M_set_delayed_result(_State::__setter(this, __r), _M_future); } void set_value_at_thread_exit(_Res&& __r) { _M_state()._M_set_delayed_result( _State::__setter(this, std::move(__r)), _M_future); } void set_exception_at_thread_exit(exception_ptr __p) { _M_state()._M_set_delayed_result(_State::__setter(__p, this), _M_future); } private: _State& _M_state() { __future_base::_State_base::_S_check(_M_future); return *_M_future; } }; template<typename _Res> inline void swap(promise<_Res>& __x, promise<_Res>& __y) noexcept { __x.swap(__y); } template<typename _Res, typename _Alloc> struct uses_allocator<promise<_Res>, _Alloc> : public true_type { }; template<typename _Res> class promise<_Res&> { typedef __future_base::_State_base _State; typedef __future_base::_Result<_Res&> _Res_type; typedef __future_base::_Ptr<_Res_type> _Ptr_type; template<typename, typename> friend struct _State::_Setter; friend _State; shared_ptr<_State> _M_future; _Ptr_type _M_storage; public: promise() : _M_future(std::make_shared<_State>()), _M_storage(new _Res_type()) { } promise(promise&& __rhs) noexcept : _M_future(std::move(__rhs._M_future)), _M_storage(std::move(__rhs._M_storage)) { } template<typename _Allocator> promise(allocator_arg_t, const _Allocator& __a) : _M_future(std::allocate_shared<_State>(__a)), _M_storage(__future_base::_S_allocate_result<_Res&>(__a)) { } template<typename _Allocator> promise(allocator_arg_t, const _Allocator&, promise&& __rhs) : _M_future(std::move(__rhs._M_future)), _M_storage(std::move(__rhs._M_storage)) { } promise(const promise&) = delete; ~promise() { if (static_cast<bool>(_M_future) && !_M_future.unique()) _M_future->_M_break_promise(std::move(_M_storage)); } promise& operator=(promise&& __rhs) noexcept { promise(std::move(__rhs)).swap(*this); return *this; } promise& operator=(const promise&) = delete; void swap(promise& __rhs) noexcept { _M_future.swap(__rhs._M_future); _M_storage.swap(__rhs._M_storage); } future<_Res&> get_future() { return future<_Res&>(_M_future); } void set_value(_Res& __r) { _M_state()._M_set_result(_State::__setter(this, __r)); } void set_exception(exception_ptr __p) { _M_state()._M_set_result(_State::__setter(__p, this)); } void set_value_at_thread_exit(_Res& __r) { _M_state()._M_set_delayed_result(_State::__setter(this, __r), _M_future); } void set_exception_at_thread_exit(exception_ptr __p) { _M_state()._M_set_delayed_result(_State::__setter(__p, this), _M_future); } private: _State& _M_state() { __future_base::_State_base::_S_check(_M_future); return *_M_future; } }; template<> class promise<void> { typedef __future_base::_State_base _State; typedef __future_base::_Result<void> _Res_type; typedef __future_base::_Ptr<_Res_type> _Ptr_type; template<typename, typename> friend struct _State::_Setter; friend _State; shared_ptr<_State> _M_future; _Ptr_type _M_storage; public: promise() : _M_future(std::make_shared<_State>()), _M_storage(new _Res_type()) { } promise(promise&& __rhs) noexcept : _M_future(std::move(__rhs._M_future)), _M_storage(std::move(__rhs._M_storage)) { } template<typename _Allocator> promise(allocator_arg_t, const _Allocator& __a) : _M_future(std::allocate_shared<_State>(__a)), _M_storage(__future_base::_S_allocate_result<void>(__a)) { } template<typename _Allocator> promise(allocator_arg_t, const _Allocator&, promise&& __rhs) : _M_future(std::move(__rhs._M_future)), _M_storage(std::move(__rhs._M_storage)) { } promise(const promise&) = delete; ~promise() { if (static_cast<bool>(_M_future) && !_M_future.unique()) _M_future->_M_break_promise(std::move(_M_storage)); } promise& operator=(promise&& __rhs) noexcept { promise(std::move(__rhs)).swap(*this); return *this; } promise& operator=(const promise&) = delete; void swap(promise& __rhs) noexcept { _M_future.swap(__rhs._M_future); _M_storage.swap(__rhs._M_storage); } future<void> get_future() { return future<void>(_M_future); } void set_value() { _M_state()._M_set_result(_State::__setter(this)); } void set_exception(exception_ptr __p) { _M_state()._M_set_result(_State::__setter(__p, this)); } void set_value_at_thread_exit() { _M_state()._M_set_delayed_result(_State::__setter(this), _M_future); } void set_exception_at_thread_exit(exception_ptr __p) { _M_state()._M_set_delayed_result(_State::__setter(__p, this), _M_future); } private: _State& _M_state() { __future_base::_State_base::_S_check(_M_future); return *_M_future; } }; template<typename _Ptr_type, typename _Fn, typename _Res> struct __future_base::_Task_setter { _Ptr_type operator()() const { try { (*_M_result)->_M_set((*_M_fn)()); } catch(const __cxxabiv1::__forced_unwind&) { throw; } catch(...) { (*_M_result)->_M_error = current_exception(); } return std::move(*_M_result); } _Ptr_type* _M_result; _Fn* _M_fn; }; template<typename _Ptr_type, typename _Fn> struct __future_base::_Task_setter<_Ptr_type, _Fn, void> { _Ptr_type operator()() const { try { (*_M_fn)(); } catch(const __cxxabiv1::__forced_unwind&) { throw; } catch(...) { (*_M_result)->_M_error = current_exception(); } return std::move(*_M_result); } _Ptr_type* _M_result; _Fn* _M_fn; }; template<typename _Res, typename... _Args> struct __future_base::_Task_state_base<_Res(_Args...)> : __future_base::_State_base { typedef _Res _Res_type; template<typename _Alloc> _Task_state_base(const _Alloc& __a) : _M_result(_S_allocate_result<_Res>(__a)) { } virtual void _M_run(_Args&&... __args) = 0; virtual void _M_run_delayed(_Args&&... __args, weak_ptr<_State_base>) = 0; virtual shared_ptr<_Task_state_base> _M_reset() = 0; typedef __future_base::_Ptr<_Result<_Res>> _Ptr_type; _Ptr_type _M_result; }; template<typename _Fn, typename _Alloc, typename _Res, typename... _Args> struct __future_base::_Task_state<_Fn, _Alloc, _Res(_Args...)> final : __future_base::_Task_state_base<_Res(_Args...)> { template<typename _Fn2> _Task_state(_Fn2&& __fn, const _Alloc& __a) : _Task_state_base<_Res(_Args...)>(__a), _M_impl(std::forward<_Fn2>(__fn), __a) { } private: virtual void _M_run(_Args&&... __args) { auto __boundfn = [&] () -> _Res { return std::__invoke_r<_Res>(_M_impl._M_fn, std::forward<_Args>(__args)...); }; this->_M_set_result(_S_task_setter(this->_M_result, __boundfn)); } virtual void _M_run_delayed(_Args&&... __args, weak_ptr<_State_base> __self) { auto __boundfn = [&] () -> _Res { return std::__invoke_r<_Res>(_M_impl._M_fn, std::forward<_Args>(__args)...); }; this->_M_set_delayed_result(_S_task_setter(this->_M_result, __boundfn), std::move(__self)); } virtual shared_ptr<_Task_state_base<_Res(_Args...)>> _M_reset(); struct _Impl : _Alloc { template<typename _Fn2> _Impl(_Fn2&& __fn, const _Alloc& __a) : _Alloc(__a), _M_fn(std::forward<_Fn2>(__fn)) { } _Fn _M_fn; } _M_impl; }; template<typename _Signature, typename _Fn, typename _Alloc = std::allocator<int>> static shared_ptr<__future_base::_Task_state_base<_Signature>> __create_task_state(_Fn&& __fn, const _Alloc& __a = _Alloc()) { typedef typename decay<_Fn>::type _Fn2; typedef __future_base::_Task_state<_Fn2, _Alloc, _Signature> _State; return std::allocate_shared<_State>(__a, std::forward<_Fn>(__fn), __a); } template<typename _Fn, typename _Alloc, typename _Res, typename... _Args> shared_ptr<__future_base::_Task_state_base<_Res(_Args...)>> __future_base::_Task_state<_Fn, _Alloc, _Res(_Args...)>::_M_reset() { return __create_task_state<_Res(_Args...)>(std::move(_M_impl._M_fn), static_cast<_Alloc&>(_M_impl)); } template<typename _Res, typename... _ArgTypes> class packaged_task<_Res(_ArgTypes...)> { typedef __future_base::_Task_state_base<_Res(_ArgTypes...)> _State_type; shared_ptr<_State_type> _M_state; template<typename _Fn, typename _Fn2 = __remove_cvref_t<_Fn>> using __not_same = typename enable_if<!is_same<packaged_task, _Fn2>::value>::type; public: packaged_task() noexcept { } template<typename _Fn, typename = __not_same<_Fn>> explicit packaged_task(_Fn&& __fn) : _M_state( __create_task_state<_Res(_ArgTypes...)>(std::forward<_Fn>(__fn))) { } # 1590 "/usr/include/c++/13/future" 3 ~packaged_task() { if (static_cast<bool>(_M_state) && !_M_state.unique()) _M_state->_M_break_promise(std::move(_M_state->_M_result)); } packaged_task(const packaged_task&) = delete; packaged_task& operator=(const packaged_task&) = delete; packaged_task(packaged_task&& __other) noexcept { this->swap(__other); } packaged_task& operator=(packaged_task&& __other) noexcept { packaged_task(std::move(__other)).swap(*this); return *this; } void swap(packaged_task& __other) noexcept { _M_state.swap(__other._M_state); } bool valid() const noexcept { return static_cast<bool>(_M_state); } future<_Res> get_future() { return future<_Res>(_M_state); } void operator()(_ArgTypes... __args) { __future_base::_State_base::_S_check(_M_state); _M_state->_M_run(std::forward<_ArgTypes>(__args)...); } void make_ready_at_thread_exit(_ArgTypes... __args) { __future_base::_State_base::_S_check(_M_state); _M_state->_M_run_delayed(std::forward<_ArgTypes>(__args)..., _M_state); } void reset() { __future_base::_State_base::_S_check(_M_state); packaged_task __tmp; __tmp._M_state = _M_state; _M_state = _M_state->_M_reset(); } }; template<typename _Res, typename... _ArgTypes> packaged_task(_Res(*)(_ArgTypes...)) -> packaged_task<_Res(_ArgTypes...)>; template<typename _Fun, typename _Signature = __function_guide_t<_Fun, decltype(&_Fun::operator())>> packaged_task(_Fun) -> packaged_task<_Signature>; template<typename _Res, typename... _ArgTypes> inline void swap(packaged_task<_Res(_ArgTypes...)>& __x, packaged_task<_Res(_ArgTypes...)>& __y) noexcept { __x.swap(__y); } # 1678 "/usr/include/c++/13/future" 3 template<typename _BoundFn, typename _Res> class __future_base::_Deferred_state final : public __future_base::_State_base { public: template<typename... _Args> explicit _Deferred_state(_Args&&... __args) : _M_result(new _Result<_Res>()), _M_fn(std::forward<_Args>(__args)...) { } private: typedef __future_base::_Ptr<_Result<_Res>> _Ptr_type; _Ptr_type _M_result; _BoundFn _M_fn; virtual void _M_complete_async() { _M_set_result(_S_task_setter(_M_result, _M_fn), true); } virtual bool _M_is_deferred_future() const { return true; } }; class __future_base::_Async_state_commonV2 : public __future_base::_State_base { protected: ~_Async_state_commonV2() = default; # 1735 "/usr/include/c++/13/future" 3 virtual void _M_complete_async() { _M_join(); } void _M_join() { std::call_once(_M_once, &thread::join, &_M_thread); } thread _M_thread; once_flag _M_once; }; template<typename _BoundFn, typename _Res> class __future_base::_Async_state_impl final : public __future_base::_Async_state_commonV2 { public: template<typename... _Args> explicit _Async_state_impl(_Args&&... __args) : _M_result(new _Result<_Res>()), _M_fn(std::forward<_Args>(__args)...) { _M_thread = std::thread{&_Async_state_impl::_M_run, this}; } ~_Async_state_impl() { if (_M_thread.joinable()) _M_thread.join(); } private: void _M_run() { try { _M_set_result(_S_task_setter(_M_result, _M_fn)); } catch(const __cxxabiv1::__forced_unwind&) { if (static_cast<bool>(_M_result)) this->_M_break_promise(std::move(_M_result)); throw; } } typedef __future_base::_Ptr<_Result<_Res>> _Ptr_type; _Ptr_type _M_result; _BoundFn _M_fn; }; template<typename _Fn, typename... _Args> [[__nodiscard__]] future<__async_result_of<_Fn, _Args...>> async(launch __policy, _Fn&& __fn, _Args&&... __args) { using _Wr = std::thread::_Call_wrapper<_Fn, _Args...>; using _As = __future_base::_Async_state_impl<_Wr>; using _Ds = __future_base::_Deferred_state<_Wr>; std::shared_ptr<__future_base::_State_base> __state; if ((__policy & launch::async) == launch::async) { try { __state = std::make_shared<_As>(std::forward<_Fn>(__fn), std::forward<_Args>(__args)...); } catch(const system_error& __e) { if (__e.code() != errc::resource_unavailable_try_again || (__policy & launch::deferred) != launch::deferred) throw; } } if (!__state) { __state = std::make_shared<_Ds>(std::forward<_Fn>(__fn), std::forward<_Args>(__args)...); } return future<__async_result_of<_Fn, _Args...>>(std::move(__state)); } template<typename _Fn, typename... _Args> [[__nodiscard__]] inline future<__async_result_of<_Fn, _Args...>> async(_Fn&& __fn, _Args&&... __args) { return std::async(launch::async|launch::deferred, std::forward<_Fn>(__fn), std::forward<_Args>(__args)...); } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/future.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 2 3 4 namespace boost { namespace asio { template <typename Result, typename... Args, typename Signature> class async_result<std::packaged_task<Result(Args...)>, Signature> { public: typedef std::packaged_task<Result(Args...)> completion_handler_type; typedef std::future<Result> return_type; explicit async_result(completion_handler_type& h) : future_(h.get_future()) { } return_type get() { return std::move(future_); } private: return_type future_; }; # 120 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 3 4 } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/packaged_task.hpp" 2 3 4 # 161 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/bind/arg.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/bind/arg.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/is_placeholder.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/is_placeholder.hpp" 3 4 namespace boost { template< class T > struct is_placeholder { enum _vt { value = 0 }; }; } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/bind/arg.hpp" 2 3 4 namespace boost { template<bool Eq> struct _arg_eq { }; template<> struct _arg_eq<true> { typedef void type; }; template< int I > struct arg { constexpr arg() { } template< class T > constexpr arg( T const & , typename _arg_eq< I == is_placeholder<T>::value >::type * = 0 ) { } }; template< int I > constexpr bool operator==( arg<I> const &, arg<I> const & ) { return true; } template< int I > struct is_placeholder< arg<I> > { enum _vt { value = I }; }; template< int I > struct is_placeholder< arg<I> (*) () > { enum _vt { value = I }; }; } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 2 3 4 namespace boost { namespace asio { namespace placeholders { # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 3 4 inline boost::arg<1> error() { return boost::arg<1>(); } inline boost::arg<2> bytes_transferred() { return boost::arg<2>(); } inline boost::arg<2> iterator() { return boost::arg<2>(); } inline boost::arg<2> results() { return boost::arg<2>(); } inline boost::arg<2> endpoint() { return boost::arg<2>(); } inline boost::arg<2> signal_number() { return boost::arg<2>(); } # 147 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 152 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/placeholders.hpp" 2 3 4 # 162 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 1 3 4 # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 2 3 4 namespace boost { namespace asio { namespace posix { # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename Executor = any_io_executor> class basic_descriptor : public descriptor_base { private: class initiate_async_wait; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_descriptor<Executor1> other; }; # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 typedef detail::reactive_descriptor_service::native_handle_type native_handle_type; typedef basic_descriptor lowest_layer_type; # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 explicit basic_descriptor(const executor_type& ex) : impl_(0, ex) { } # 112 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename ExecutionContext> explicit basic_descriptor(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(0, 0, context) { } # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 basic_descriptor(const executor_type& ex, const native_handle_type& native_descriptor) : impl_(0, ex) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_descriptor, ec); boost::asio::detail::throw_error(ec, "assign"); } # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename ExecutionContext> basic_descriptor(ExecutionContext& context, const native_handle_type& native_descriptor, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : impl_(0, 0, context) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_descriptor, ec); boost::asio::detail::throw_error(ec, "assign"); } # 184 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 basic_descriptor(basic_descriptor&& other) noexcept : impl_(std::move(other.impl_)) { } # 200 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 basic_descriptor& operator=(basic_descriptor&& other) { impl_ = std::move(other.impl_); return *this; } template <typename Executor1> friend class basic_descriptor; # 222 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename Executor1> basic_descriptor(basic_descriptor<Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value, defaulted_constraint >::type = defaulted_constraint()) : impl_(std::move(other.impl_)) { } # 243 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_descriptor& >::type operator=(basic_descriptor<Executor1> && other) { basic_descriptor tmp(std::move(other)); impl_ = std::move(tmp.impl_); return *this; } const executor_type& get_executor() noexcept { return impl_.get_executor(); } # 270 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 lowest_layer_type& lowest_layer() { return *this; } # 284 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 const lowest_layer_type& lowest_layer() const { return *this; } # 297 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 void assign(const native_handle_type& native_descriptor) { boost::system::error_code ec; impl_.get_service().assign(impl_.get_implementation(), native_descriptor, ec); boost::asio::detail::throw_error(ec, "assign"); } # 313 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 boost::system::error_code assign(const native_handle_type& native_descriptor, boost::system::error_code& ec) { impl_.get_service().assign( impl_.get_implementation(), native_descriptor, ec); return ec; } bool is_open() const { return impl_.get_service().is_open(impl_.get_implementation()); } # 336 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 void close() { boost::system::error_code ec; impl_.get_service().close(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "close"); } # 352 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 boost::system::error_code close(boost::system::error_code& ec) { impl_.get_service().close(impl_.get_implementation(), ec); return ec; } native_handle_type native_handle() { return impl_.get_service().native_handle(impl_.get_implementation()); } # 379 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 native_handle_type release() { return impl_.get_service().release(impl_.get_implementation()); } # 392 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 void cancel() { boost::system::error_code ec; impl_.get_service().cancel(impl_.get_implementation(), ec); boost::asio::detail::throw_error(ec, "cancel"); } # 407 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 boost::system::error_code cancel(boost::system::error_code& ec) { impl_.get_service().cancel(impl_.get_implementation(), ec); return ec; } # 435 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename IoControlCommand> void io_control(IoControlCommand& command) { boost::system::error_code ec; impl_.get_service().io_control(impl_.get_implementation(), command, ec); boost::asio::detail::throw_error(ec, "io_control"); } # 470 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template <typename IoControlCommand> boost::system::error_code io_control(IoControlCommand& command, boost::system::error_code& ec) { impl_.get_service().io_control(impl_.get_implementation(), command, ec); return ec; } # 489 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 bool non_blocking() const { return impl_.get_service().non_blocking(impl_.get_implementation()); } # 507 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 void non_blocking(bool mode) { boost::system::error_code ec; impl_.get_service().non_blocking(impl_.get_implementation(), mode, ec); boost::asio::detail::throw_error(ec, "non_blocking"); } # 527 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 boost::system::error_code non_blocking( bool mode, boost::system::error_code& ec) { impl_.get_service().non_blocking(impl_.get_implementation(), mode, ec); return ec; } # 548 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 bool native_non_blocking() const { return impl_.get_service().native_non_blocking( impl_.get_implementation()); } # 569 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 void native_non_blocking(bool mode) { boost::system::error_code ec; impl_.get_service().native_non_blocking( impl_.get_implementation(), mode, ec); boost::asio::detail::throw_error(ec, "native_non_blocking"); } # 592 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 boost::system::error_code native_non_blocking( bool mode, boost::system::error_code& ec) { impl_.get_service().native_non_blocking( impl_.get_implementation(), mode, ec); return ec; } # 616 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 void wait(wait_type w) { boost::system::error_code ec; impl_.get_service().wait(impl_.get_implementation(), w, ec); boost::asio::detail::throw_error(ec, "wait"); } # 642 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 boost::system::error_code wait(wait_type w, boost::system::error_code& ec) { impl_.get_service().wait(impl_.get_implementation(), w, ec); return ec; } # 703 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 3 4 template < ::boost::asio::completion_token_for<void (boost::system::error_code)> WaitToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_wait(wait_type w, WaitToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WaitToken, void (boost::system::error_code)>( initiate_async_wait(this), token, w); } protected: ~basic_descriptor() { } detail::io_object_impl<detail::reactive_descriptor_service, Executor> impl_; private: basic_descriptor(const basic_descriptor&) = delete; basic_descriptor& operator=(const basic_descriptor&) = delete; class initiate_async_wait { public: typedef Executor executor_type; explicit initiate_async_wait(basic_descriptor* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WaitHandler> void operator()(WaitHandler&& handler, wait_type w) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WaitHandler>::type, void(boost::system::error_code)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::one_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0))) == 1, "WaitHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WaitHandler> handler2(handler); self_->impl_.get_service().async_wait( self_->impl_.get_implementation(), w, handler2.value, self_->impl_.get_executor()); } private: basic_descriptor* self_; }; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 779 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_descriptor.hpp" 2 3 4 # 163 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 2 3 4 namespace boost { namespace asio { namespace posix { # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename Executor = any_io_executor> class basic_stream_descriptor : public basic_descriptor<Executor> { private: class initiate_async_write_some; class initiate_async_read_some; public: typedef Executor executor_type; template <typename Executor1> struct rebind_executor { typedef basic_stream_descriptor<Executor1> other; }; typedef typename basic_descriptor<Executor>::native_handle_type native_handle_type; # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 explicit basic_stream_descriptor(const executor_type& ex) : basic_descriptor<Executor>(ex) { } # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename ExecutionContext> explicit basic_stream_descriptor(ExecutionContext& context, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value, defaulted_constraint >::type = defaulted_constraint()) : basic_descriptor<Executor>(context) { } # 120 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 basic_stream_descriptor(const executor_type& ex, const native_handle_type& native_descriptor) : basic_descriptor<Executor>(ex, native_descriptor) { } # 139 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename ExecutionContext> basic_stream_descriptor(ExecutionContext& context, const native_handle_type& native_descriptor, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) : basic_descriptor<Executor>(context, native_descriptor) { } # 161 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 basic_stream_descriptor(basic_stream_descriptor&& other) noexcept : basic_descriptor<Executor>(std::move(other)) { } # 178 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 basic_stream_descriptor& operator=(basic_stream_descriptor&& other) { basic_descriptor<Executor>::operator=(std::move(other)); return *this; } # 196 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename Executor1> basic_stream_descriptor(basic_stream_descriptor<Executor1>&& other, typename constraint< is_convertible<Executor1, Executor>::value, defaulted_constraint >::type = defaulted_constraint()) : basic_descriptor<Executor>(std::move(other)) { } # 218 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename Executor1> typename constraint< is_convertible<Executor1, Executor>::value, basic_stream_descriptor& >::type operator=(basic_stream_descriptor<Executor1> && other) { basic_descriptor<Executor>::operator=(std::move(other)); return *this; } # 256 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().write_some( this->impl_.get_implementation(), buffers, ec); boost::asio::detail::throw_error(ec, "write_some"); return s; } # 282 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename ConstBufferSequence> std::size_t write_some(const ConstBufferSequence& buffers, boost::system::error_code& ec) { return this->impl_.get_service().write_some( this->impl_.get_implementation(), buffers, ec); } # 341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_write_some(const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( initiate_async_write_some(this), token, buffers); } # 388 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t s = this->impl_.get_service().read_some( this->impl_.get_implementation(), buffers, ec); boost::asio::detail::throw_error(ec, "read_some"); return s; } # 415 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename MutableBufferSequence> std::size_t read_some(const MutableBufferSequence& buffers, boost::system::error_code& ec) { return this->impl_.get_service().read_some( this->impl_.get_implementation(), buffers, ec); } # 475 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 3 4 template <typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<executor_type>::type> auto async_read_some(const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<executor_type>::type()) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( initiate_async_read_some(this), token, buffers); } private: class initiate_async_write_some { public: typedef Executor executor_type; explicit initiate_async_write_some(basic_stream_descriptor* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename WriteHandler, typename ConstBufferSequence> void operator()(WriteHandler&& handler, const ConstBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<WriteHandler> handler2(handler); self_->impl_.get_service().async_write_some( self_->impl_.get_implementation(), buffers, handler2.value, self_->impl_.get_executor()); } private: basic_stream_descriptor* self_; }; class initiate_async_read_some { public: typedef Executor executor_type; explicit initiate_async_read_some(basic_stream_descriptor* self) : self_(self) { } const executor_type& get_executor() const noexcept { return self_->get_executor(); } template <typename ReadHandler, typename MutableBufferSequence> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; detail::non_const_lvalue<ReadHandler> handler2(handler); self_->impl_.get_service().async_read_some( self_->impl_.get_implementation(), buffers, handler2.value, self_->impl_.get_executor()); } private: basic_stream_descriptor* self_; }; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 567 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/basic_stream_descriptor.hpp" 2 3 4 # 164 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/descriptor.hpp" 3 4 namespace boost { namespace asio { namespace posix { typedef basic_descriptor<> descriptor; } } } # 165 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/stream_descriptor.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/posix/stream_descriptor.hpp" 3 4 namespace boost { namespace asio { namespace posix { typedef basic_stream_descriptor<> stream_descriptor; } } } # 167 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prepend.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prepend.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prepend.hpp" 2 3 4 namespace boost { namespace asio { template <typename CompletionToken, typename... Values> class prepend_t { public: template <typename T, typename... V> constexpr explicit prepend_t( T&& completion_token, V&&... values) : token_(static_cast<T&&>(completion_token)), values_(static_cast<V&&>(values)...) { } CompletionToken token_; std::tuple<Values...> values_; }; template <typename CompletionToken, typename... Values> [[nodiscard]] inline constexpr prepend_t< typename decay<CompletionToken>::type, typename decay<Values>::type...> prepend(CompletionToken&& completion_token, Values&&... values) { return prepend_t< typename decay<CompletionToken>::type, typename decay<Values>::type...>( static_cast<CompletionToken&&>(completion_token), static_cast<Values&&>(values)...); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prepend.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/prepend.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/prepend.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/prepend.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename... Values> class prepend_handler { public: typedef void result_type; template <typename H> prepend_handler(H&& handler, std::tuple<Values...> values) : handler_(static_cast<H&&>(handler)), values_(static_cast<std::tuple<Values...>&&>(values)) { } template <typename... Args> void operator()(Args&&... args) { this->invoke( index_sequence_for<Values...>{}, static_cast<Args&&>(args)...); } template <std::size_t... I, typename... Args> void invoke(index_sequence<I...>, Args&&... args) { static_cast<Handler&&>(handler_)( static_cast<Values&&>(std::get<I>(values_))..., static_cast<Args&&>(args)...); } Handler handler_; std::tuple<Values...> values_; }; template <typename Handler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, prepend_handler<Handler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, prepend_handler<Handler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler> inline bool asio_handler_is_continuation( prepend_handler<Handler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, prepend_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, prepend_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Signature, typename... Values> struct prepend_signature; template <typename R, typename... Args, typename... Values> struct prepend_signature<R(Args...), Values...> { typedef R type(Values..., typename decay<Args>::type...); }; } template <typename CompletionToken, typename... Values, typename Signature> struct async_result< prepend_t<CompletionToken, Values...>, Signature> : async_result<CompletionToken, typename detail::prepend_signature< Signature, Values...>::type> { typedef typename detail::prepend_signature< Signature, Values...>::type signature; template <typename Initiation> struct init_wrapper { init_wrapper(Initiation init) : initiation_(static_cast<Initiation&&>(init)) { } template <typename Handler, typename... Args> void operator()( Handler&& handler, std::tuple<Values...> values, Args&&... args) { static_cast<Initiation&&>(initiation_)( detail::prepend_handler< typename decay<Handler>::type, Values...>( static_cast<Handler&&>(handler), static_cast<std::tuple<Values...>&&>(values)), static_cast<Args&&>(args)...); } Initiation initiation_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<CompletionToken, signature>( declval<init_wrapper<typename decay<Initiation>::type> >(), declval<CompletionToken&>(), declval<std::tuple<Values...> >(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<CompletionToken, signature>( init_wrapper<typename decay<Initiation>::type>( static_cast<Initiation&&>(initiation)), token.token_, static_cast<std::tuple<Values...>&&>(token.values_), static_cast<Args&&>(args)...); } }; template <template <typename, typename> class Associator, typename Handler, typename... Values, typename DefaultCandidate> struct associator<Associator, detail::prepend_handler<Handler, Values...>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::prepend_handler<Handler, Values...>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::prepend_handler<Handler, Values...>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 226 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/prepend.hpp" 2 3 4 # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/prepend.hpp" 2 3 4 # 170 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/random_access_file.hpp" 1 3 4 # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename> class initiate_async_read; template <typename> class initiate_async_read_dynbuf_v1; template <typename> class initiate_async_read_dynbuf_v2; } # 87 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename MutableBufferSequence> std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type = 0); # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename MutableBufferSequence> std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, boost::system::error_code& ec, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type = 0); # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename MutableBufferSequence, typename CompletionCondition> std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, CompletionCondition completion_condition, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type = 0); # 229 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename MutableBufferSequence, typename CompletionCondition> std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type = 0); # 266 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 302 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 349 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition> std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 398 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition> std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 439 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b); # 468 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b, boost::system::error_code& ec); # 507 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename Allocator, typename CompletionCondition> std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition); # 548 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename Allocator, typename CompletionCondition> std::size_t read(SyncReadStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec); # 584 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 616 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 659 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition> std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 704 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition> std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 797 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type = 0) ; # 896 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename MutableBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, const MutableBufferSequence& buffers, CompletionCondition completion_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type = 0) ; # 987 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, DynamicBuffer_v1&& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 1086 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 1180 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() ) ; # 1267 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() ) ; # 1355 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, DynamicBuffer_v2 buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; # 1450 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read(AsyncReadStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1479 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename SyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition> std::size_t read_buffer_seq(SyncReadStream& s, const MutableBufferSequence& buffers, const MutableBufferIterator&, CompletionCondition completion_condition, boost::system::error_code& ec) { ec = boost::system::error_code(); boost::asio::detail::consuming_buffers<mutable_buffer, MutableBufferSequence, MutableBufferIterator> tmp(buffers); while (!tmp.empty()) { if (std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, tmp.total_consumed()))) tmp.consume(s.read_some(tmp.prepare(max_size), ec)); else break; } return tmp.total_consumed(); } } template <typename SyncReadStream, typename MutableBufferSequence, typename CompletionCondition> std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type) { return detail::read_buffer_seq(s, buffers, boost::asio::buffer_sequence_begin(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); } template <typename SyncReadStream, typename MutableBufferSequence> inline std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read(s, buffers, transfer_all(), ec); boost::asio::detail::throw_error(ec, "read"); return bytes_transferred; } template <typename SyncReadStream, typename MutableBufferSequence> inline std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, boost::system::error_code& ec, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type) { return read(s, buffers, transfer_all(), ec); } template <typename SyncReadStream, typename MutableBufferSequence, typename CompletionCondition> inline std::size_t read(SyncReadStream& s, const MutableBufferSequence& buffers, CompletionCondition completion_condition, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read(s, buffers, static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "read"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition> std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { typename decay<DynamicBuffer_v1>::type b( static_cast<DynamicBuffer_v1&&>(buffers)); ec = boost::system::error_code(); std::size_t total_transferred = 0; std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, total_transferred)); std::size_t bytes_available = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(max_size, b.max_size() - b.size())); while (bytes_available > 0) { std::size_t bytes_transferred = s.read_some(b.prepare(bytes_available), ec); b.commit(bytes_transferred); total_transferred += bytes_transferred; max_size = detail::adapt_completion_condition_result( completion_condition(ec, total_transferred)); bytes_available = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(max_size, b.max_size() - b.size())); } return total_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1> inline std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read(s, static_cast<DynamicBuffer_v1&&>(buffers), transfer_all(), ec); boost::asio::detail::throw_error(ec, "read"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1> inline std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return read(s, static_cast<DynamicBuffer_v1&&>(buffers), transfer_all(), ec); } template <typename SyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition> inline std::size_t read(SyncReadStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read(s, static_cast<DynamicBuffer_v1&&>(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "read"); return bytes_transferred; } template <typename SyncReadStream, typename Allocator, typename CompletionCondition> inline std::size_t read(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec) { return read(s, basic_streambuf_ref<Allocator>(b), static_cast<CompletionCondition&&>(completion_condition), ec); } template <typename SyncReadStream, typename Allocator> inline std::size_t read(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b) { return read(s, basic_streambuf_ref<Allocator>(b)); } template <typename SyncReadStream, typename Allocator> inline std::size_t read(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::system::error_code& ec) { return read(s, basic_streambuf_ref<Allocator>(b), ec); } template <typename SyncReadStream, typename Allocator, typename CompletionCondition> inline std::size_t read(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition) { return read(s, basic_streambuf_ref<Allocator>(b), static_cast<CompletionCondition&&>(completion_condition)); } template <typename SyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition> std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { DynamicBuffer_v2& b = buffers; ec = boost::system::error_code(); std::size_t total_transferred = 0; std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, total_transferred)); std::size_t bytes_available = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(max_size, b.max_size() - b.size())); while (bytes_available > 0) { std::size_t pos = b.size(); b.grow(bytes_available); std::size_t bytes_transferred = s.read_some( b.data(pos, bytes_available), ec); b.shrink(bytes_available - bytes_transferred); total_transferred += bytes_transferred; max_size = detail::adapt_completion_condition_result( completion_condition(ec, total_transferred)); bytes_available = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(max_size, b.max_size() - b.size())); } return total_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v2> inline std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read(s, static_cast<DynamicBuffer_v2&&>(buffers), transfer_all(), ec); boost::asio::detail::throw_error(ec, "read"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v2> inline std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return read(s, static_cast<DynamicBuffer_v2&&>(buffers), transfer_all(), ec); } template <typename SyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition> inline std::size_t read(SyncReadStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read(s, static_cast<DynamicBuffer_v2&&>(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "read"); return bytes_transferred; } namespace detail { template <typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> class read_op : public base_from_cancellation_state<ReadHandler>, base_from_completion_cond<CompletionCondition> { public: read_op(AsyncReadStream& stream, const MutableBufferSequence& buffers, CompletionCondition& completion_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), stream_(stream), buffers_(buffers), start_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_op(const read_op& other) : base_from_cancellation_state<ReadHandler>(other), base_from_completion_cond<CompletionCondition>(other), stream_(other.stream_), buffers_(other.buffers_), start_(other.start_), handler_(other.handler_) { } read_op(read_op&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), stream_(other.stream_), buffers_(static_cast<buffers_type&&>(other.buffers_)), start_(other.start_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, buffers_.total_consumed()); for (;;) { { (void)0; stream_.async_read_some(buffers_.prepare(max_size), static_cast<read_op&&>(*this)); } return; default: buffers_.consume(bytes_transferred); if ((!ec && bytes_transferred == 0) || buffers_.empty()) break; max_size = this->check_for_completion(ec, buffers_.total_consumed()); if (max_size == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } static_cast<ReadHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(buffers_.total_consumed())); } } typedef boost::asio::detail::consuming_buffers<mutable_buffer, MutableBufferSequence, MutableBufferIterator> buffers_type; AsyncReadStream& stream_; buffers_type buffers_; int start_; ReadHandler handler_; }; template <typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline void start_read_op(AsyncReadStream& stream, const MutableBufferSequence& buffers, const MutableBufferIterator&, CompletionCondition& completion_condition, ReadHandler& handler) { read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>( stream, buffers, completion_condition, handler)( boost::system::error_code(), 0, 1); } template <typename AsyncReadStream> class initiate_async_read { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename MutableBufferSequence, typename CompletionCondition> void operator()(ReadHandler&& handler, const MutableBufferSequence& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); start_read_op(stream_, buffers, boost::asio::buffer_sequence_begin(buffers), completion_cond2.value, handler2.value); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_op<AsyncReadStream, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename MutableBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, const MutableBufferSequence& buffers, CompletionCondition completion_condition, ReadToken&& token, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read<AsyncReadStream>(s), token, buffers, static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncReadStream, typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, const MutableBufferSequence& buffers, ReadToken&& token, typename constraint< is_mutable_buffer_sequence<MutableBufferSequence>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read<AsyncReadStream>(s), token, buffers, transfer_all()); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler> class read_dynbuf_v1_op : public base_from_cancellation_state<ReadHandler>, base_from_completion_cond<CompletionCondition> { public: template <typename BufferSequence> read_dynbuf_v1_op(AsyncReadStream& stream, BufferSequence&& buffers, CompletionCondition& completion_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), start_(0), total_transferred_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_dynbuf_v1_op(const read_dynbuf_v1_op& other) : base_from_cancellation_state<ReadHandler>(other), base_from_completion_cond<CompletionCondition>(other), stream_(other.stream_), buffers_(other.buffers_), start_(other.start_), total_transferred_(other.total_transferred_), handler_(other.handler_) { } read_dynbuf_v1_op(read_dynbuf_v1_op&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)), start_(other.start_), total_transferred_(other.total_transferred_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size, bytes_available; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, total_transferred_); bytes_available = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(max_size, buffers_.max_size() - buffers_.size())); for (;;) { { (void)0; stream_.async_read_some(buffers_.prepare(bytes_available), static_cast<read_dynbuf_v1_op&&>(*this)); } return; default: total_transferred_ += bytes_transferred; buffers_.commit(bytes_transferred); max_size = this->check_for_completion(ec, total_transferred_); bytes_available = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(max_size, buffers_.max_size() - buffers_.size())); if ((!ec && bytes_transferred == 0) || bytes_available == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } static_cast<ReadHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(total_transferred_)); } } AsyncReadStream& stream_; DynamicBuffer_v1 buffers_; int start_; std::size_t total_transferred_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_dynbuf_v1 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_dynbuf_v1(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v1, typename CompletionCondition> void operator()(ReadHandler&& handler, DynamicBuffer_v1&& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); read_dynbuf_v1_op<AsyncReadStream, typename decay<DynamicBuffer_v1>::type, CompletionCondition, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v1&&>(buffers), completion_cond2.value, handler2.value)( boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_dynbuf_v1_op<AsyncReadStream, DynamicBuffer_v1, CompletionCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, DynamicBuffer_v1&& buffers, ReadToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_dynbuf_v1<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), transfer_all()); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, DynamicBuffer_v1&& buffers, CompletionCondition completion_condition, ReadToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_dynbuf_v1<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b, ReadToken&& token) { return async_read(s, basic_streambuf_ref<Allocator>(b), static_cast<ReadToken&&>(token)); } template <typename AsyncReadStream, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, ReadToken&& token) { return async_read(s, basic_streambuf_ref<Allocator>(b), static_cast<CompletionCondition&&>(completion_condition), static_cast<ReadToken&&>(token)); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler> class read_dynbuf_v2_op : public base_from_cancellation_state<ReadHandler>, base_from_completion_cond<CompletionCondition> { public: template <typename BufferSequence> read_dynbuf_v2_op(AsyncReadStream& stream, BufferSequence&& buffers, CompletionCondition& completion_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), start_(0), total_transferred_(0), bytes_available_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_dynbuf_v2_op(const read_dynbuf_v2_op& other) : base_from_cancellation_state<ReadHandler>(other), base_from_completion_cond<CompletionCondition>(other), stream_(other.stream_), buffers_(other.buffers_), start_(other.start_), total_transferred_(other.total_transferred_), bytes_available_(other.bytes_available_), handler_(other.handler_) { } read_dynbuf_v2_op(read_dynbuf_v2_op&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)), start_(other.start_), total_transferred_(other.total_transferred_), bytes_available_(other.bytes_available_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size, pos; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, total_transferred_); bytes_available_ = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(max_size, buffers_.max_size() - buffers_.size())); for (;;) { pos = buffers_.size(); buffers_.grow(bytes_available_); { (void)0; stream_.async_read_some(buffers_.data(pos, bytes_available_), static_cast<read_dynbuf_v2_op&&>(*this)); } return; default: total_transferred_ += bytes_transferred; buffers_.shrink(bytes_available_ - bytes_transferred); max_size = this->check_for_completion(ec, total_transferred_); bytes_available_ = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(max_size, buffers_.max_size() - buffers_.size())); if ((!ec && bytes_transferred == 0) || bytes_available_ == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } static_cast<ReadHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(total_transferred_)); } } AsyncReadStream& stream_; DynamicBuffer_v2 buffers_; int start_; std::size_t total_transferred_; std::size_t bytes_available_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_dynbuf_v2 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_dynbuf_v2(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v2, typename CompletionCondition> void operator()(ReadHandler&& handler, DynamicBuffer_v2&& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); read_dynbuf_v2_op<AsyncReadStream, typename decay<DynamicBuffer_v2>::type, CompletionCondition, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v2&&>(buffers), completion_cond2.value, handler2.value)( boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_dynbuf_v2_op<AsyncReadStream, DynamicBuffer_v2, CompletionCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, DynamicBuffer_v2 buffers, ReadToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_dynbuf_v2<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), transfer_all()); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read(AsyncReadStream& s, DynamicBuffer_v2 buffers, CompletionCondition completion_condition, ReadToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_dynbuf_v2<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), static_cast<CompletionCondition&&>(completion_condition)); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1277 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read.hpp" 2 3 4 # 1481 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read.hpp" 2 3 4 # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename> class initiate_async_read_at; template <typename> class initiate_async_read_at_streambuf; } # 90 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers); # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, boost::system::error_code& ec); # 190 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence, typename CompletionCondition> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition completion_condition); # 239 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence, typename CompletionCondition> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec); # 276 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename Allocator> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, basic_streambuf<Allocator>& b); # 308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename Allocator> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, boost::system::error_code& ec); # 350 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, CompletionCondition completion_condition); # 394 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename SyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec); # 488 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type > auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type() ) ; # 588 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type > auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition completion_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type() ) ; # 674 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename AsyncRandomAccessReadDevice, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type > auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type() ) ; # 763 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 3 4 template <typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type > auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessReadDevice::executor_type>::type() ) ; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 794 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_at.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_at.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_at.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition> std::size_t read_at_buffer_sequence(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, const MutableBufferIterator&, CompletionCondition completion_condition, boost::system::error_code& ec) { ec = boost::system::error_code(); boost::asio::detail::consuming_buffers<mutable_buffer, MutableBufferSequence, MutableBufferIterator> tmp(buffers); while (!tmp.empty()) { if (std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, tmp.total_consumed()))) { tmp.consume(d.read_some_at(offset + tmp.total_consumed(), tmp.prepare(max_size), ec)); } else break; } return tmp.total_consumed(); } } template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence, typename CompletionCondition> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec) { return detail::read_at_buffer_sequence(d, offset, buffers, boost::asio::buffer_sequence_begin(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); } template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence> inline std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers) { boost::system::error_code ec; std::size_t bytes_transferred = read_at( d, offset, buffers, transfer_all(), ec); boost::asio::detail::throw_error(ec, "read_at"); return bytes_transferred; } template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence> inline std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, boost::system::error_code& ec) { return read_at(d, offset, buffers, transfer_all(), ec); } template <typename SyncRandomAccessReadDevice, typename MutableBufferSequence, typename CompletionCondition> inline std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition completion_condition) { boost::system::error_code ec; std::size_t bytes_transferred = read_at(d, offset, buffers, static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "read_at"); return bytes_transferred; } template <typename SyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition> std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec) { ec = boost::system::error_code(); std::size_t total_transferred = 0; std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, total_transferred)); std::size_t bytes_available = read_size_helper(b, max_size); while (bytes_available > 0) { std::size_t bytes_transferred = d.read_some_at( offset + total_transferred, b.prepare(bytes_available), ec); b.commit(bytes_transferred); total_transferred += bytes_transferred; max_size = detail::adapt_completion_condition_result( completion_condition(ec, total_transferred)); bytes_available = read_size_helper(b, max_size); } return total_transferred; } template <typename SyncRandomAccessReadDevice, typename Allocator> inline std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b) { boost::system::error_code ec; std::size_t bytes_transferred = read_at( d, offset, b, transfer_all(), ec); boost::asio::detail::throw_error(ec, "read_at"); return bytes_transferred; } template <typename SyncRandomAccessReadDevice, typename Allocator> inline std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, boost::system::error_code& ec) { return read_at(d, offset, b, transfer_all(), ec); } template <typename SyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition> inline std::size_t read_at(SyncRandomAccessReadDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition) { boost::system::error_code ec; std::size_t bytes_transferred = read_at(d, offset, b, static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "read_at"); return bytes_transferred; } namespace detail { template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> class read_at_op : public base_from_cancellation_state<ReadHandler>, base_from_completion_cond<CompletionCondition> { public: read_at_op(AsyncRandomAccessReadDevice& device, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition& completion_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), device_(device), offset_(offset), buffers_(buffers), start_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_at_op(const read_at_op& other) : base_from_cancellation_state<ReadHandler>(other), base_from_completion_cond<CompletionCondition>(other), device_(other.device_), offset_(other.offset_), buffers_(other.buffers_), start_(other.start_), handler_(other.handler_) { } read_at_op(read_at_op&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), device_(other.device_), offset_(other.offset_), buffers_(static_cast<buffers_type&&>(other.buffers_)), start_(other.start_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, buffers_.total_consumed()); for (;;) { { (void)0; device_.async_read_some_at( offset_ + buffers_.total_consumed(), buffers_.prepare(max_size), static_cast<read_at_op&&>(*this)); } return; default: buffers_.consume(bytes_transferred); if ((!ec && bytes_transferred == 0) || buffers_.empty()) break; max_size = this->check_for_completion(ec, buffers_.total_consumed()); if (max_size == 0) break; if (this->cancelled() != cancellation_type::none) { ec = boost::asio::error::operation_aborted; break; } } static_cast<ReadHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(buffers_.total_consumed())); } } typedef boost::asio::detail::consuming_buffers<mutable_buffer, MutableBufferSequence, MutableBufferIterator> buffers_type; AsyncRandomAccessReadDevice& device_; uint64_t offset_; buffers_type buffers_; int start_; ReadHandler handler_; }; template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler> inline void start_read_at_op(AsyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, const MutableBufferIterator&, CompletionCondition& completion_condition, ReadHandler& handler) { detail::read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>( d, offset, buffers, completion_condition, handler)( boost::system::error_code(), 0, 1); } template <typename AsyncRandomAccessReadDevice> class initiate_async_read_at { public: typedef typename AsyncRandomAccessReadDevice::executor_type executor_type; explicit initiate_async_read_at(AsyncRandomAccessReadDevice& device) : device_(device) { } executor_type get_executor() const noexcept { return device_.get_executor(); } template <typename ReadHandler, typename MutableBufferSequence, typename CompletionCondition> void operator()(ReadHandler&& handler, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); start_read_at_op(device_, offset, buffers, boost::asio::buffer_sequence_begin(buffers), completion_cond2.value, handler2.value); } private: AsyncRandomAccessReadDevice& device_; }; } template <template <typename, typename> class Associator, typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename MutableBufferIterator, typename CompletionCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_at_op<AsyncRandomAccessReadDevice, MutableBufferSequence, MutableBufferIterator, CompletionCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, CompletionCondition completion_condition, ReadToken&& token) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_at<AsyncRandomAccessReadDevice>(d), token, offset, buffers, static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncRandomAccessReadDevice, typename MutableBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, const MutableBufferSequence& buffers, ReadToken&& token) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_at<AsyncRandomAccessReadDevice>(d), token, offset, buffers, transfer_all()); } namespace detail { template <typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, typename ReadHandler> class read_at_streambuf_op : public base_from_cancellation_state<ReadHandler>, base_from_completion_cond<CompletionCondition> { public: read_at_streambuf_op(AsyncRandomAccessReadDevice& device, uint64_t offset, basic_streambuf<Allocator>& streambuf, CompletionCondition& completion_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), device_(device), offset_(offset), streambuf_(streambuf), start_(0), total_transferred_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_at_streambuf_op(const read_at_streambuf_op& other) : base_from_cancellation_state<ReadHandler>(other), base_from_completion_cond<CompletionCondition>(other), device_(other.device_), offset_(other.offset_), streambuf_(other.streambuf_), start_(other.start_), total_transferred_(other.total_transferred_), handler_(other.handler_) { } read_at_streambuf_op(read_at_streambuf_op&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), device_(other.device_), offset_(other.offset_), streambuf_(other.streambuf_), start_(other.start_), total_transferred_(other.total_transferred_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size, bytes_available; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, total_transferred_); bytes_available = read_size_helper(streambuf_, max_size); for (;;) { { (void)0; device_.async_read_some_at(offset_ + total_transferred_, streambuf_.prepare(bytes_available), static_cast<read_at_streambuf_op&&>(*this)); } return; default: total_transferred_ += bytes_transferred; streambuf_.commit(bytes_transferred); max_size = this->check_for_completion(ec, total_transferred_); bytes_available = read_size_helper(streambuf_, max_size); if ((!ec && bytes_transferred == 0) || bytes_available == 0) break; if (this->cancelled() != cancellation_type::none) { ec = boost::asio::error::operation_aborted; break; } } static_cast<ReadHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(total_transferred_)); } } AsyncRandomAccessReadDevice& device_; uint64_t offset_; boost::asio::basic_streambuf<Allocator>& streambuf_; int start_; std::size_t total_transferred_; ReadHandler handler_; }; template <typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_at_streambuf_op<AsyncRandomAccessReadDevice, Allocator, CompletionCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_at_streambuf_op<AsyncRandomAccessReadDevice, Allocator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_at_streambuf_op<AsyncRandomAccessReadDevice, Allocator, CompletionCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_at_streambuf_op<AsyncRandomAccessReadDevice, Allocator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_at_streambuf_op<AsyncRandomAccessReadDevice, Allocator, CompletionCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncRandomAccessReadDevice> class initiate_async_read_at_streambuf { public: typedef typename AsyncRandomAccessReadDevice::executor_type executor_type; explicit initiate_async_read_at_streambuf( AsyncRandomAccessReadDevice& device) : device_(device) { } executor_type get_executor() const noexcept { return device_.get_executor(); } template <typename ReadHandler, typename Allocator, typename CompletionCondition> void operator()(ReadHandler&& handler, uint64_t offset, basic_streambuf<Allocator>* b, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); read_at_streambuf_op<AsyncRandomAccessReadDevice, Allocator, CompletionCondition, typename decay<ReadHandler>::type>( device_, offset, *b, completion_cond2.value, handler2.value)( boost::system::error_code(), 0, 1); } private: AsyncRandomAccessReadDevice& device_; }; } template <template <typename, typename> class Associator, typename AsyncRandomAccessReadDevice, typename Executor, typename CompletionCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_at_streambuf_op<AsyncRandomAccessReadDevice, Executor, CompletionCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_at_streambuf_op<AsyncRandomAccessReadDevice, Executor, CompletionCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_at_streambuf_op<AsyncRandomAccessReadDevice, Executor, CompletionCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncRandomAccessReadDevice, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, ReadToken&& token) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_at_streambuf<AsyncRandomAccessReadDevice>(d), token, offset, &b, static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncRandomAccessReadDevice, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_at(AsyncRandomAccessReadDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, ReadToken&& token) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_at_streambuf<AsyncRandomAccessReadDevice>(d), token, offset, &b, transfer_all()); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 775 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_at.hpp" 2 3 4 # 796 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_at.hpp" 2 3 4 # 174 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/regex_fwd.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/regex_fwd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex_fwd.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex_fwd.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/config.hpp" 1 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/config.hpp" 2 3 4 # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/user.hpp" 1 3 4 # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/config.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdc.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/version_number.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdc.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/test.h" 1 3 4 # 8 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdc.h" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdc.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdcpp.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdcpp.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdcpp.h" 2 3 4 # 122 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/stdcpp.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/objc.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/objc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/objc.h" 2 3 4 # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/objc.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/cuda.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/cuda.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/cuda.h" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language/cuda.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/language.h" 2 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/alpha.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/alpha.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/alpha.h" 2 3 4 # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/alpha.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/arm.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/arm.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/arm.h" 2 3 4 # 144 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/arm.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/blackfin.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/blackfin.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/blackfin.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/blackfin.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/convex.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/convex.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/convex.h" 2 3 4 # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/convex.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/e2k.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/e2k.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/e2k.h" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/e2k.h" 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ia64.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ia64.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ia64.h" 2 3 4 # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ia64.h" 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/loongarch.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/loongarch.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/loongarch.h" 2 3 4 # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/loongarch.h" 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/m68k.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/m68k.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/m68k.h" 2 3 4 # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/m68k.h" 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/mips.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/mips.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/mips.h" 2 3 4 # 84 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/mips.h" 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/parisc.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/parisc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/parisc.h" 2 3 4 # 70 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/parisc.h" 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ppc.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ppc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ppc.h" 2 3 4 # 121 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ppc.h" 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ptx.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ptx.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ptx.h" 2 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/ptx.h" 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/pyramid.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/pyramid.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/pyramid.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/pyramid.h" 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/riscv.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/riscv.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/riscv.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/riscv.h" 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/rs6k.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/rs6k.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/rs6k.h" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/rs6k.h" 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sparc.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sparc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sparc.h" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sparc.h" 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/superh.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/superh.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/superh.h" 2 3 4 # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/superh.h" 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys370.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys370.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys370.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys370.h" 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys390.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys390.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys390.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/sys390.h" 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 1 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 2 3 4 # 88 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 1 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 1 3 4 # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 1 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 1 3 4 # 93 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 1 3 4 # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 2 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 3 4 # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/32.h" 2 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 1 3 4 # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86/64.h" 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/x86.h" 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/z.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/z.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/z.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture/z.h" 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/borland.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/borland.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/borland.h" 2 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/borland.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/comeau.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/comeau.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/comeau.h" 2 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/comeau.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/compaq.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/compaq.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/compaq.h" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/compaq.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/diab.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/diab.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/diab.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/diab.h" 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/digitalmars.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/digitalmars.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/digitalmars.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/digitalmars.h" 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/dignus.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/dignus.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/dignus.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/dignus.h" 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/edg.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/edg.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/edg.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/edg.h" 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ekopath.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ekopath.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ekopath.h" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ekopath.h" 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc_xml.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc_xml.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc_xml.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc_xml.h" 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc.h" 2 3 4 # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/comp_detected.h" 1 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/gcc.h" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/greenhills.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/greenhills.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/greenhills.h" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/greenhills.h" 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/hp_acc.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/hp_acc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/hp_acc.h" 2 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/hp_acc.h" 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/iar.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/iar.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/iar.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/iar.h" 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ibm.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ibm.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ibm.h" 2 3 4 # 68 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/ibm.h" 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/intel.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/intel.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/intel.h" 2 3 4 # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/intel.h" 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/kai.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/kai.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/kai.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/kai.h" 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/llvm.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/llvm.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/llvm.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/llvm.h" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/llvm.h" 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metaware.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metaware.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metaware.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metaware.h" 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metrowerks.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metrowerks.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metrowerks.h" 2 3 4 # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/metrowerks.h" 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/microtec.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/microtec.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/microtec.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/microtec.h" 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/mpw.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/mpw.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/mpw.h" 2 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/mpw.h" 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/nvcc.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/nvcc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/nvcc.h" 2 3 4 # 74 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/nvcc.h" 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/palm.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/palm.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/palm.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/palm.h" 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/pgi.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/pgi.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/pgi.h" 2 3 4 # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/pgi.h" 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sgi_mipspro.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sgi_mipspro.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sgi_mipspro.h" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sgi_mipspro.h" 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sunpro.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sunpro.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sunpro.h" 2 3 4 # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/sunpro.h" 3 4 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/tendra.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/tendra.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/tendra.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/tendra.h" 3 4 # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/visualc.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/visualc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/clang.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/visualc.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/visualc.h" 2 3 4 # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/visualc.h" 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/watcom.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/watcom.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/watcom.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler/watcom.h" 3 4 # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/compiler.h" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/_prefix.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/_prefix.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/_cassert.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/_cassert.h" 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/_cassert.h" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/_prefix.h" 2 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/cloudabi.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/cloudabi.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/cloudabi.h" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/cloudabi.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/uc.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/uc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/uc.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/uc.h" 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/vms.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/vms.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/vms.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/vms.h" 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/zos.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/zos.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/zos.h" 2 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/zos.h" 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c.h" 2 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/_prefix.h" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/_prefix.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/_exception.h" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/_prefix.h" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/cxx.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/cxx.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/cxx.h" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/cxx.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/dinkumware.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/dinkumware.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/dinkumware.h" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/dinkumware.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/libcomo.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/libcomo.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/libcomo.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/libcomo.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/modena.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/modena.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/modena.h" 2 3 4 # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/modena.h" 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/msl.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/msl.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/msl.h" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/msl.h" 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/roguewave.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/roguewave.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/roguewave.h" 2 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/roguewave.h" 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/sgi.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/sgi.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/sgi.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/sgi.h" 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stdcpp3.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stdcpp3.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stdcpp3.h" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stdcpp3.h" 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stlport.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stlport.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stlport.h" 2 3 4 # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/stlport.h" 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/vacpp.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/vacpp.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/vacpp.h" 2 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std/vacpp.h" 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/std.h" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library.h" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/aix.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/aix.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/aix.h" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/aix.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/amigaos.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/amigaos.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/amigaos.h" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/amigaos.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/beos.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/beos.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/beos.h" 2 3 4 # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/beos.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 2 3 4 # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 2 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 2 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 2 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 2 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 56 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 57 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/cygwin.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/cygwin.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/cygwin.h" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/cygwin.h" 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/haiku.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/haiku.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/haiku.h" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/haiku.h" 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/hpux.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/hpux.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/hpux.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/hpux.h" 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/irix.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/irix.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/irix.h" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/irix.h" 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/linux.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/linux.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/linux.h" 2 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/linux.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/detail/os_detected.h" 1 3 4 # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/linux.h" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 1 3 4 # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/os400.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/os400.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/os400.h" 2 3 4 # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/os400.h" 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/qnxnto.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/qnxnto.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/qnxnto.h" 2 3 4 # 60 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/qnxnto.h" 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/solaris.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/solaris.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/solaris.h" 2 3 4 # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/solaris.h" 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/unix.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/unix.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/unix.h" 2 3 4 # 77 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/unix.h" 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/vms.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/vms.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/vms.h" 2 3 4 # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/vms.h" 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os.h" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 1 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/library/c/gnu.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 1 3 4 # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/macos.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 1 3 4 # 95 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/bsdi.h" 3 4 # 96 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/dragonfly.h" 3 4 # 97 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 1 3 4 # 69 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/free.h" 3 4 # 98 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 1 3 4 # 253 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/open.h" 3 4 # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 1 3 4 # 86 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd/net.h" 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/bsd.h" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/android.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/android.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/android.h" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/android.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 2 3 4 # 193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/endian.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/wordsize.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/wordsize.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/architecture.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/wordsize.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/wordsize.h" 2 3 4 # 64 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/wordsize.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other/workaround.h" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/other.h" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/android.h" 1 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/android.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/cloudabi.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/cloudabi.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/cloudabi.h" 2 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/cloudabi.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw.h" 2 3 4 # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw.h" 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw32.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw32.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw32.h" 2 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw32.h" 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw64.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw64.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw64.h" 2 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/mingw64.h" 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 2 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_desktop.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_desktop.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_desktop.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_desktop.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 1 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_desktop.h" 2 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_desktop.h" 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 1 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 2 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_server.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_server.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_server.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_server.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 1 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_server.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_server.h" 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 1 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_system.h" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_system.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_system.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_system.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 1 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_uwp.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_system.h" 2 3 4 # 48 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_system.h" 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/make.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/windows.h" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 1 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_phone.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 1 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_store.h" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 2 3 4 # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/windows_runtime.h" 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/ios.h" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/ios.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 1 3 4 # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/os/ios.h" 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/ios.h" 2 3 4 # 62 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform/ios.h" 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/platform.h" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86/versions.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86.h" 2 3 4 # 125 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86.h" 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86_amd.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86_amd.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86_amd/versions.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86_amd.h" 2 3 4 # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/x86_amd.h" 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/arm.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/arm.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/arm/versions.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/arm.h" 2 3 4 # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/arm.h" 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/ppc.h" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/ppc.h" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/ppc/versions.h" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/ppc.h" 2 3 4 # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd/ppc.h" 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 2 3 4 # 168 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware/simd.h" 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/hardware.h" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef/version.h" 1 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/predef.h" 2 3 4 # 78 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/config.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/v5/regex_fwd.hpp" 1 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/v5/regex_fwd.hpp" 3 4 namespace boost{ template <class charT> class cpp_regex_traits; template <class charT> struct c_regex_traits; template <class charT> class w32_regex_traits; template <class charT, class implementationT = cpp_regex_traits<charT> > struct regex_traits; template <class charT, class traits = regex_traits<charT> > class basic_regex; typedef basic_regex<char, regex_traits<char> > regex; typedef basic_regex<wchar_t, regex_traits<wchar_t> > wregex; } # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex_fwd.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/regex_fwd.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/v5/match_flags.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/v5/match_flags.hpp" 3 4 namespace boost{ namespace regex_constants{ # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/regex/v5/match_flags.hpp" 3 4 typedef enum _match_flags { match_default = 0, match_not_bol = 1, match_not_eol = match_not_bol << 1, match_not_bob = match_not_eol << 1, match_not_eob = match_not_bob << 1, match_not_bow = match_not_eob << 1, match_not_eow = match_not_bow << 1, match_not_dot_newline = match_not_eow << 1, match_not_dot_null = match_not_dot_newline << 1, match_prev_avail = match_not_dot_null << 1, match_init = match_prev_avail << 1, match_any = match_init << 1, match_not_null = match_any << 1, match_continuous = match_not_null << 1, match_partial = match_continuous << 1, match_stop = match_partial << 1, match_not_initial_null = match_stop, match_all = match_stop << 1, match_perl = match_all << 1, match_posix = match_perl << 1, match_nosubs = match_posix << 1, match_extra = match_nosubs << 1, match_single_line = match_extra << 1, match_unused1 = match_single_line << 1, match_unused2 = match_unused1 << 1, match_unused3 = match_unused2 << 1, match_max = match_unused3, format_perl = 0, format_default = 0, format_sed = match_max << 1, format_all = format_sed << 1, format_no_copy = format_all << 1, format_first_only = format_no_copy << 1, format_is_if = format_first_only << 1, format_literal = format_is_if << 1, match_not_any = match_not_bol | match_not_eol | match_not_bob | match_not_eob | match_not_bow | match_not_eow | match_not_dot_newline | match_not_dot_null | match_prev_avail | match_init | match_not_null | match_continuous | match_partial | match_stop | match_not_initial_null | match_stop | match_all | match_perl | match_posix | match_nosubs | match_extra | match_single_line | match_unused1 | match_unused2 | match_unused3 | match_max | format_perl | format_default | format_sed | format_all | format_no_copy | format_first_only | format_is_if | format_literal } match_flags; typedef match_flags match_flag_type; inline match_flags operator&(match_flags m1, match_flags m2) { return static_cast<match_flags>(static_cast<std::int32_t>(m1) & static_cast<std::int32_t>(m2)); } inline match_flags operator|(match_flags m1, match_flags m2) { return static_cast<match_flags>(static_cast<std::int32_t>(m1) | static_cast<std::int32_t>(m2)); } inline match_flags operator^(match_flags m1, match_flags m2) { return static_cast<match_flags>(static_cast<std::int32_t>(m1) ^ static_cast<std::int32_t>(m2)); } inline match_flags operator~(match_flags m1) { return static_cast<match_flags>(~static_cast<std::int32_t>(m1)); } inline match_flags& operator&=(match_flags& m1, match_flags m2) { m1 = m1&m2; return m1; } inline match_flags& operator|=(match_flags& m1, match_flags m2) { m1 = m1|m2; return m1; } inline match_flags& operator^=(match_flags& m1, match_flags m2) { m1 = m1^m2; return m1; } } using regex_constants::match_flag_type; using regex_constants::match_default; using regex_constants::match_not_bol; using regex_constants::match_not_eol; using regex_constants::match_not_bob; using regex_constants::match_not_eob; using regex_constants::match_not_bow; using regex_constants::match_not_eow; using regex_constants::match_not_dot_newline; using regex_constants::match_not_dot_null; using regex_constants::match_prev_avail; using regex_constants::match_any; using regex_constants::match_not_null; using regex_constants::match_continuous; using regex_constants::match_partial; using regex_constants::match_all; using regex_constants::match_perl; using regex_constants::match_posix; using regex_constants::match_nosubs; using regex_constants::match_extra; using regex_constants::match_single_line; using regex_constants::format_all; using regex_constants::format_sed; using regex_constants::format_perl; using regex_constants::format_default; using regex_constants::format_no_copy; using regex_constants::format_first_only; } # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/regex_fwd.hpp" 2 3 4 namespace boost { template <class BidiIterator> struct sub_match; template <class BidiIterator, class Allocator> class match_results; } # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { char (&has_result_type_helper(...))[2]; template <typename T> char has_result_type_helper(T*, typename T::result_type* = 0); template <typename T> struct has_result_type { enum { value = (sizeof((has_result_type_helper)((T*)(0))) == 1) }; }; template <typename> class initiate_async_read_until_delim_v1; template <typename> class initiate_async_read_until_delim_string_v1; template <typename> class initiate_async_read_until_expr_v1; template <typename> class initiate_async_read_until_match_v1; template <typename> class initiate_async_read_until_delim_v2; template <typename> class initiate_async_read_until_delim_string_v2; template <typename> class initiate_async_read_until_expr_v2; template <typename> class initiate_async_read_until_match_v2; } template <typename T> struct is_match_condition { enum { value = boost::asio::is_function< typename boost::asio::remove_pointer<T>::type>::value || detail::has_result_type<T>::value }; }; # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, char delim, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, char delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 255 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, boost::asio::string_view delim, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 300 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, boost::asio::string_view delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 370 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, const boost::regex& expr, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 417 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, const boost::regex& expr, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 533 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1, typename MatchCondition> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, MatchCondition match_condition, typename constraint< is_match_condition<MatchCondition>::value >::type = 0, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 601 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v1, typename MatchCondition> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, MatchCondition match_condition, boost::system::error_code& ec, typename constraint< is_match_condition<MatchCondition>::value >::type = 0, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0); # 666 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, char delim); # 700 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, char delim, boost::system::error_code& ec); # 753 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::asio::string_view delim); # 788 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::asio::string_view delim, boost::system::error_code& ec); # 846 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr); # 883 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr, boost::system::error_code& ec); # 991 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator, typename MatchCondition> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition, typename constraint<is_match_condition<MatchCondition>::value>::type = 0); # 1047 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename Allocator, typename MatchCondition> std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition, boost::system::error_code& ec, typename constraint<is_match_condition<MatchCondition>::value>::type = 0); # 1110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, char delim, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1150 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, char delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1208 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, boost::asio::string_view delim, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1249 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, boost::asio::string_view delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1314 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, const boost::regex& expr, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1357 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, const boost::regex& expr, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1469 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2, typename MatchCondition> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, MatchCondition match_condition, typename constraint< is_match_condition<MatchCondition>::value >::type = 0, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1533 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename SyncReadStream, typename DynamicBuffer_v2, typename MatchCondition> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, MatchCondition match_condition, boost::system::error_code& ec, typename constraint< is_match_condition<MatchCondition>::value >::type = 0, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0); # 1656 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, char delim, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 1777 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, boost::asio::string_view delim, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 1910 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, const boost::regex& expr, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 2082 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, MatchCondition match_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_match_condition<MatchCondition>::value >::type = 0, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type = 0, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type = 0) ; # 2209 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, char delim, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() ) ; # 2320 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::asio::string_view delim, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() ) ; # 2438 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() ) ; # 2597 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename Allocator, typename MatchCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint<is_match_condition<MatchCondition>::value>::type = 0) ; # 2717 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, char delim, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; # 2834 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, boost::asio::string_view delim, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; # 2963 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, const boost::regex& expr, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; # 3131 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 3 4 template <typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type > auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, MatchCondition match_condition, ReadToken&& token = typename ::boost::asio::default_completion_token<typename AsyncReadStream::executor_type>::type() , typename constraint< is_match_condition<MatchCondition>::value >::type = 0, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type = 0) ; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 3165 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_until.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_until.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_until.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Iterator1, typename Iterator2> std::pair<Iterator1, bool> partial_search( Iterator1 first1, Iterator1 last1, Iterator2 first2, Iterator2 last2) { for (Iterator1 iter1 = first1; iter1 != last1; ++iter1) { Iterator1 test_iter1 = iter1; Iterator2 test_iter2 = first2; for (;; ++test_iter1, ++test_iter2) { if (test_iter2 == last2) return std::make_pair(iter1, true); if (test_iter1 == last1) { if (test_iter2 != first2) return std::make_pair(iter1, false); else break; } if (*test_iter1 != *test_iter2) break; } } return std::make_pair(last1, false); } } template <typename SyncReadStream, typename DynamicBuffer_v1> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, char delim, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v1&&>(buffers), delim, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, char delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { typename decay<DynamicBuffer_v1>::type b( static_cast<DynamicBuffer_v1&&>(buffers)); std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = b.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); iterator iter = std::find(start_pos, end, delim); if (iter != end) { ec = boost::system::error_code(); return iter - begin + 1; } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); b.commit(s.read_some(b.prepare(bytes_to_read), ec)); if (ec) return 0; } } template <typename SyncReadStream, typename DynamicBuffer_v1> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, boost::asio::string_view delim, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v1&&>(buffers), delim, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, boost::asio::string_view delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { typename decay<DynamicBuffer_v1>::type b( static_cast<DynamicBuffer_v1&&>(buffers)); std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = b.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = detail::partial_search( start_pos, end, delim.begin(), delim.end()); if (result.first != end) { if (result.second) { ec = boost::system::error_code(); return result.first - begin + delim.length(); } else { search_position = result.first - begin; } } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); b.commit(s.read_some(b.prepare(bytes_to_read), ec)); if (ec) return 0; } } template <typename SyncReadStream, typename DynamicBuffer_v1> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, const boost::regex& expr, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v1&&>(buffers), expr, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, const boost::regex& expr, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { typename decay<DynamicBuffer_v1>::type b( static_cast<DynamicBuffer_v1&&>(buffers)); std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = b.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); boost::match_results<iterator, typename std::vector<boost::sub_match<iterator> >::allocator_type> match_results; if (regex_search(start_pos, end, match_results, expr, boost::match_default | boost::match_partial)) { if (match_results[0].matched) { ec = boost::system::error_code(); return match_results[0].second - begin; } else { search_position = match_results[0].first - begin; } } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); b.commit(s.read_some(b.prepare(bytes_to_read), ec)); if (ec) return 0; } } template <typename SyncReadStream, typename DynamicBuffer_v1, typename MatchCondition> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, MatchCondition match_condition, typename constraint< is_match_condition<MatchCondition>::value >::type, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v1&&>(buffers), match_condition, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v1, typename MatchCondition> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v1&& buffers, MatchCondition match_condition, boost::system::error_code& ec, typename constraint< is_match_condition<MatchCondition>::value >::type, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { typename decay<DynamicBuffer_v1>::type b( static_cast<DynamicBuffer_v1&&>(buffers)); std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = b.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = match_condition(start_pos, end); if (result.second) { ec = boost::system::error_code(); return result.first - begin; } else if (result.first != end) { search_position = result.first - begin; } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); b.commit(s.read_some(b.prepare(bytes_to_read), ec)); if (ec) return 0; } } template <typename SyncReadStream, typename Allocator> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, char delim) { return read_until(s, basic_streambuf_ref<Allocator>(b), delim); } template <typename SyncReadStream, typename Allocator> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, char delim, boost::system::error_code& ec) { return read_until(s, basic_streambuf_ref<Allocator>(b), delim, ec); } template <typename SyncReadStream, typename Allocator> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::asio::string_view delim) { return read_until(s, basic_streambuf_ref<Allocator>(b), delim); } template <typename SyncReadStream, typename Allocator> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::asio::string_view delim, boost::system::error_code& ec) { return read_until(s, basic_streambuf_ref<Allocator>(b), delim, ec); } template <typename SyncReadStream, typename Allocator> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr) { return read_until(s, basic_streambuf_ref<Allocator>(b), expr); } template <typename SyncReadStream, typename Allocator> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr, boost::system::error_code& ec) { return read_until(s, basic_streambuf_ref<Allocator>(b), expr, ec); } template <typename SyncReadStream, typename Allocator, typename MatchCondition> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition, typename constraint<is_match_condition<MatchCondition>::value>::type) { return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition); } template <typename SyncReadStream, typename Allocator, typename MatchCondition> inline std::size_t read_until(SyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition, boost::system::error_code& ec, typename constraint<is_match_condition<MatchCondition>::value>::type) { return read_until(s, basic_streambuf_ref<Allocator>(b), match_condition, ec); } template <typename SyncReadStream, typename DynamicBuffer_v2> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, char delim, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v2&&>(buffers), delim, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, char delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { DynamicBuffer_v2& b = buffers; std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(b).data(0, b.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); iterator iter = std::find(start_pos, end, delim); if (iter != end) { ec = boost::system::error_code(); return iter - begin + 1; } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); std::size_t pos = b.size(); b.grow(bytes_to_read); std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec); b.shrink(bytes_to_read - bytes_transferred); if (ec) return 0; } } template <typename SyncReadStream, typename DynamicBuffer_v2> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, boost::asio::string_view delim, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v2&&>(buffers), delim, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, boost::asio::string_view delim, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { DynamicBuffer_v2& b = buffers; std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(b).data(0, b.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = detail::partial_search( start_pos, end, delim.begin(), delim.end()); if (result.first != end) { if (result.second) { ec = boost::system::error_code(); return result.first - begin + delim.length(); } else { search_position = result.first - begin; } } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); std::size_t pos = b.size(); b.grow(bytes_to_read); std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec); b.shrink(bytes_to_read - bytes_transferred); if (ec) return 0; } } template <typename SyncReadStream, typename DynamicBuffer_v2> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, const boost::regex& expr, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v2&&>(buffers), expr, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v2> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, const boost::regex& expr, boost::system::error_code& ec, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { DynamicBuffer_v2& b = buffers; std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(b).data(0, b.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); boost::match_results<iterator, typename std::vector<boost::sub_match<iterator> >::allocator_type> match_results; if (regex_search(start_pos, end, match_results, expr, boost::match_default | boost::match_partial)) { if (match_results[0].matched) { ec = boost::system::error_code(); return match_results[0].second - begin; } else { search_position = match_results[0].first - begin; } } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); std::size_t pos = b.size(); b.grow(bytes_to_read); std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec); b.shrink(bytes_to_read - bytes_transferred); if (ec) return 0; } } template <typename SyncReadStream, typename DynamicBuffer_v2, typename MatchCondition> inline std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, MatchCondition match_condition, typename constraint< is_match_condition<MatchCondition>::value >::type, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { boost::system::error_code ec; std::size_t bytes_transferred = read_until(s, static_cast<DynamicBuffer_v2&&>(buffers), match_condition, ec); boost::asio::detail::throw_error(ec, "read_until"); return bytes_transferred; } template <typename SyncReadStream, typename DynamicBuffer_v2, typename MatchCondition> std::size_t read_until(SyncReadStream& s, DynamicBuffer_v2 buffers, MatchCondition match_condition, boost::system::error_code& ec, typename constraint< is_match_condition<MatchCondition>::value >::type, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { DynamicBuffer_v2& b = buffers; std::size_t search_position = 0; for (;;) { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(b).data(0, b.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = match_condition(start_pos, end); if (result.second) { ec = boost::system::error_code(); return result.first - begin; } else if (result.first != end) { search_position = result.first - begin; } else { search_position = end - begin; } if (b.size() == b.max_size()) { ec = error::not_found; return 0; } std::size_t bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, b.capacity() - b.size()), std::min<std::size_t>(65536, b.max_size() - b.size())); std::size_t pos = b.size(); b.grow(bytes_to_read); std::size_t bytes_transferred = s.read_some(b.data(pos, bytes_to_read), ec); b.shrink(bytes_to_read - bytes_transferred); if (ec) return 0; } } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> class read_until_delim_op_v1 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_delim_op_v1(AsyncReadStream& stream, BufferSequence&& buffers, char delim, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), delim_(delim), start_(0), search_position_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_delim_op_v1(const read_until_delim_op_v1& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), delim_(other.delim_), start_(other.start_), search_position_(other.search_position_), handler_(other.handler_) { } read_until_delim_op_v1(read_until_delim_op_v1&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)), delim_(other.delim_), start_(other.start_), search_position_(other.search_position_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t bytes_to_read; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = buffers_.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); iterator iter = std::find(start_pos, end, delim_); if (iter != end) { search_position_ = iter - begin + 1; bytes_to_read = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read = 0; } else { search_position_ = end - begin; bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read == 0) break; { (void)0 ; stream_.async_read_some(buffers_.prepare(bytes_to_read), static_cast<read_until_delim_op_v1&&>(*this)); } return; default: buffers_.commit(bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v1 buffers_; char delim_; int start_; std::size_t search_position_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_delim_v1 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_delim_v1(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v1> void operator()(ReadHandler&& handler, DynamicBuffer_v1&& buffers, char delim) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_delim_op_v1<AsyncReadStream, typename decay<DynamicBuffer_v1>::type, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v1&&>(buffers), delim, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_delim_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, char delim, ReadToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_delim_v1<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), delim); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> class read_until_delim_string_op_v1 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_delim_string_op_v1(AsyncReadStream& stream, BufferSequence&& buffers, const std::string& delim, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), delim_(delim), start_(0), search_position_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_delim_string_op_v1(const read_until_delim_string_op_v1& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), delim_(other.delim_), start_(other.start_), search_position_(other.search_position_), handler_(other.handler_) { } read_until_delim_string_op_v1(read_until_delim_string_op_v1&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)), delim_(static_cast<std::string&&>(other.delim_)), start_(other.start_), search_position_(other.search_position_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t bytes_to_read; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = buffers_.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = detail::partial_search( start_pos, end, delim_.begin(), delim_.end()); if (result.first != end && result.second) { search_position_ = result.first - begin + delim_.length(); bytes_to_read = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read = 0; } else { if (result.first != end) { search_position_ = result.first - begin; } else { search_position_ = end - begin; } bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read == 0) break; { (void)0 ; stream_.async_read_some(buffers_.prepare(bytes_to_read), static_cast<read_until_delim_string_op_v1&&>(*this)); } return; default: buffers_.commit(bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v1 buffers_; std::string delim_; int start_; std::size_t search_position_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_delim_string_v1 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_delim_string_v1(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v1> void operator()(ReadHandler&& handler, DynamicBuffer_v1&& buffers, const std::string& delim) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_delim_string_op_v1<AsyncReadStream, typename decay<DynamicBuffer_v1>::type, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v1&&>(buffers), delim, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v1, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_delim_string_op_v1<AsyncReadStream, DynamicBuffer_v1, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, boost::asio::string_view delim, ReadToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_delim_string_v1<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), static_cast<std::string>(delim)); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler> class read_until_expr_op_v1 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_expr_op_v1(AsyncReadStream& stream, BufferSequence&& buffers, const boost::regex& expr, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), expr_(expr), start_(0), search_position_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_expr_op_v1(const read_until_expr_op_v1& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), expr_(other.expr_), start_(other.start_), search_position_(other.search_position_), handler_(other.handler_) { } read_until_expr_op_v1(read_until_expr_op_v1&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)), expr_(other.expr_), start_(other.start_), search_position_(other.search_position_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t bytes_to_read; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = buffers_.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); boost::match_results<iterator, typename std::vector<boost::sub_match<iterator> >::allocator_type> match_results; bool match = regex_search(start_pos, end, match_results, expr_, boost::match_default | boost::match_partial); if (match && match_results[0].matched) { search_position_ = match_results[0].second - begin; bytes_to_read = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read = 0; } else { if (match) { search_position_ = match_results[0].first - begin; } else { search_position_ = end - begin; } bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read == 0) break; { (void)0 ; stream_.async_read_some(buffers_.prepare(bytes_to_read), static_cast<read_until_expr_op_v1&&>(*this)); } return; default: buffers_.commit(bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v1 buffers_; RegEx expr_; int start_; std::size_t search_position_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_expr_v1 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_expr_v1(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v1, typename RegEx> void operator()(ReadHandler&& handler, DynamicBuffer_v1&& buffers, const RegEx& expr) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_expr_op_v1<AsyncReadStream, typename decay<DynamicBuffer_v1>::type, RegEx, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v1&&>(buffers), expr, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v1, typename RegEx, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_expr_op_v1<AsyncReadStream, DynamicBuffer_v1, RegEx, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v1, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, const boost::regex& expr, ReadToken&& token, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_expr_v1<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), expr); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler> class read_until_match_op_v1 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_match_op_v1(AsyncReadStream& stream, BufferSequence&& buffers, MatchCondition match_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), match_condition_(match_condition), start_(0), search_position_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_match_op_v1(const read_until_match_op_v1& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), match_condition_(other.match_condition_), start_(other.start_), search_position_(other.search_position_), handler_(other.handler_) { } read_until_match_op_v1(read_until_match_op_v1&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v1&&>(other.buffers_)), match_condition_(other.match_condition_), start_(other.start_), search_position_(other.search_position_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t bytes_to_read; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v1::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = buffers_.data(); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = match_condition_(start_pos, end); if (result.second) { search_position_ = result.first - begin; bytes_to_read = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read = 0; } else { if (result.first != end) { search_position_ = result.first - begin; } else { search_position_ = end - begin; } bytes_to_read = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read == 0) break; { (void)0 ; stream_.async_read_some(buffers_.prepare(bytes_to_read), static_cast<read_until_match_op_v1&&>(*this)); } return; default: buffers_.commit(bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v1 buffers_; MatchCondition match_condition_; int start_; std::size_t search_position_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_match_v1 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_match_v1(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v1, typename MatchCondition> void operator()(ReadHandler&& handler, DynamicBuffer_v1&& buffers, MatchCondition match_condition) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_match_op_v1<AsyncReadStream, typename decay<DynamicBuffer_v1>::type, MatchCondition, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v1&&>(buffers), match_condition, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_match_op_v1<AsyncReadStream, DynamicBuffer_v1, MatchCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v1, typename MatchCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v1&& buffers, MatchCondition match_condition, ReadToken&& token, typename constraint< is_match_condition<MatchCondition>::value >::type, typename constraint< is_dynamic_buffer_v1<typename decay<DynamicBuffer_v1>::type>::value >::type, typename constraint< !is_dynamic_buffer_v2<typename decay<DynamicBuffer_v1>::type>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_match_v1<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v1&&>(buffers), match_condition); } template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, char delim, ReadToken&& token) { return async_read_until(s, basic_streambuf_ref<Allocator>(b), delim, static_cast<ReadToken&&>(token)); } template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, boost::asio::string_view delim, ReadToken&& token) { return async_read_until(s, basic_streambuf_ref<Allocator>(b), delim, static_cast<ReadToken&&>(token)); } template <typename AsyncReadStream, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, const boost::regex& expr, ReadToken&& token) { return async_read_until(s, basic_streambuf_ref<Allocator>(b), expr, static_cast<ReadToken&&>(token)); } template <typename AsyncReadStream, typename Allocator, typename MatchCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> inline auto async_read_until(AsyncReadStream& s, boost::asio::basic_streambuf<Allocator>& b, MatchCondition match_condition, ReadToken&& token, typename constraint<is_match_condition<MatchCondition>::value>::type) { return async_read_until(s, basic_streambuf_ref<Allocator>(b), match_condition, static_cast<ReadToken&&>(token)); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> class read_until_delim_op_v2 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_delim_op_v2(AsyncReadStream& stream, BufferSequence&& buffers, char delim, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), delim_(delim), start_(0), search_position_(0), bytes_to_read_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_delim_op_v2(const read_until_delim_op_v2& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), delim_(other.delim_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(other.handler_) { } read_until_delim_op_v2(read_until_delim_op_v2&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)), delim_(other.delim_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t pos; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(buffers_).data( 0, buffers_.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); iterator iter = std::find(start_pos, end, delim_); if (iter != end) { search_position_ = iter - begin + 1; bytes_to_read_ = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read_ = 0; } else { search_position_ = end - begin; bytes_to_read_ = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read_ == 0) break; pos = buffers_.size(); buffers_.grow(bytes_to_read_); { (void)0 ; stream_.async_read_some(buffers_.data(pos, bytes_to_read_), static_cast<read_until_delim_op_v2&&>(*this)); } return; default: buffers_.shrink(bytes_to_read_ - bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v2 buffers_; char delim_; int start_; std::size_t search_position_; std::size_t bytes_to_read_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_delim_v2 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_delim_v2(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v2> void operator()(ReadHandler&& handler, DynamicBuffer_v2&& buffers, char delim) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_delim_op_v2<AsyncReadStream, typename decay<DynamicBuffer_v2>::type, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v2&&>(buffers), delim, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_delim_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, char delim, ReadToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_delim_v2<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), delim); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> class read_until_delim_string_op_v2 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_delim_string_op_v2(AsyncReadStream& stream, BufferSequence&& buffers, const std::string& delim, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), delim_(delim), start_(0), search_position_(0), bytes_to_read_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_delim_string_op_v2(const read_until_delim_string_op_v2& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), delim_(other.delim_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(other.handler_) { } read_until_delim_string_op_v2(read_until_delim_string_op_v2&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)), delim_(static_cast<std::string&&>(other.delim_)), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t pos; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(buffers_).data( 0, buffers_.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = detail::partial_search( start_pos, end, delim_.begin(), delim_.end()); if (result.first != end && result.second) { search_position_ = result.first - begin + delim_.length(); bytes_to_read_ = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read_ = 0; } else { if (result.first != end) { search_position_ = result.first - begin; } else { search_position_ = end - begin; } bytes_to_read_ = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read_ == 0) break; pos = buffers_.size(); buffers_.grow(bytes_to_read_); { (void)0 ; stream_.async_read_some(buffers_.data(pos, bytes_to_read_), static_cast<read_until_delim_string_op_v2&&>(*this)); } return; default: buffers_.shrink(bytes_to_read_ - bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v2 buffers_; std::string delim_; int start_; std::size_t search_position_; std::size_t bytes_to_read_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_delim_string_v2 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_delim_string_v2(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v2> void operator()(ReadHandler&& handler, DynamicBuffer_v2&& buffers, const std::string& delim) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_delim_string_op_v2<AsyncReadStream, typename decay<DynamicBuffer_v2>::type, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v2&&>(buffers), delim, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v2, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_delim_string_op_v2<AsyncReadStream, DynamicBuffer_v2, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, boost::asio::string_view delim, ReadToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_delim_string_v2<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), static_cast<std::string>(delim)); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler> class read_until_expr_op_v2 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_expr_op_v2(AsyncReadStream& stream, BufferSequence&& buffers, const boost::regex& expr, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), expr_(expr), start_(0), search_position_(0), bytes_to_read_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_expr_op_v2(const read_until_expr_op_v2& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), expr_(other.expr_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(other.handler_) { } read_until_expr_op_v2(read_until_expr_op_v2&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)), expr_(other.expr_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t pos; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(buffers_).data( 0, buffers_.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); boost::match_results<iterator, typename std::vector<boost::sub_match<iterator> >::allocator_type> match_results; bool match = regex_search(start_pos, end, match_results, expr_, boost::match_default | boost::match_partial); if (match && match_results[0].matched) { search_position_ = match_results[0].second - begin; bytes_to_read_ = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read_ = 0; } else { if (match) { search_position_ = match_results[0].first - begin; } else { search_position_ = end - begin; } bytes_to_read_ = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read_ == 0) break; pos = buffers_.size(); buffers_.grow(bytes_to_read_); { (void)0 ; stream_.async_read_some(buffers_.data(pos, bytes_to_read_), static_cast<read_until_expr_op_v2&&>(*this)); } return; default: buffers_.shrink(bytes_to_read_ - bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v2 buffers_; RegEx expr_; int start_; std::size_t search_position_; std::size_t bytes_to_read_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_expr_v2 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_expr_v2(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v2, typename RegEx> void operator()(ReadHandler&& handler, DynamicBuffer_v2&& buffers, const RegEx& expr) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_expr_op_v2<AsyncReadStream, typename decay<DynamicBuffer_v2>::type, RegEx, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v2&&>(buffers), expr, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v2, typename RegEx, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_expr_op_v2<AsyncReadStream, DynamicBuffer_v2, RegEx, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v2, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, const boost::regex& expr, ReadToken&& token, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_expr_v2<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), expr); } namespace detail { template <typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler> class read_until_match_op_v2 : public base_from_cancellation_state<ReadHandler> { public: template <typename BufferSequence> read_until_match_op_v2(AsyncReadStream& stream, BufferSequence&& buffers, MatchCondition match_condition, ReadHandler& handler) : base_from_cancellation_state<ReadHandler>( handler, enable_partial_cancellation()), stream_(stream), buffers_(static_cast<BufferSequence&&>(buffers)), match_condition_(match_condition), start_(0), search_position_(0), bytes_to_read_(0), handler_(static_cast<ReadHandler&&>(handler)) { } read_until_match_op_v2(const read_until_match_op_v2& other) : base_from_cancellation_state<ReadHandler>(other), stream_(other.stream_), buffers_(other.buffers_), match_condition_(other.match_condition_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(other.handler_) { } read_until_match_op_v2(read_until_match_op_v2&& other) : base_from_cancellation_state<ReadHandler>( static_cast<base_from_cancellation_state< ReadHandler>&&> (other)), stream_(other.stream_), buffers_(static_cast<DynamicBuffer_v2&&>(other.buffers_)), match_condition_(other.match_condition_), start_(other.start_), search_position_(other.search_position_), bytes_to_read_(other.bytes_to_read_), handler_(static_cast<ReadHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { const std::size_t not_found = (std::numeric_limits<std::size_t>::max)(); std::size_t pos; switch (start_ = start) { case 1: for (;;) { { typedef typename DynamicBuffer_v2::const_buffers_type buffers_type; typedef buffers_iterator<buffers_type> iterator; buffers_type data_buffers = const_cast<const DynamicBuffer_v2&>(buffers_).data( 0, buffers_.size()); iterator begin = iterator::begin(data_buffers); iterator start_pos = begin + search_position_; iterator end = iterator::end(data_buffers); std::pair<iterator, bool> result = match_condition_(start_pos, end); if (result.second) { search_position_ = result.first - begin; bytes_to_read_ = 0; } else if (buffers_.size() == buffers_.max_size()) { search_position_ = not_found; bytes_to_read_ = 0; } else { if (result.first != end) { search_position_ = result.first - begin; } else { search_position_ = end - begin; } bytes_to_read_ = std::min<std::size_t>( std::max<std::size_t>(512, buffers_.capacity() - buffers_.size()), std::min<std::size_t>(65536, buffers_.max_size() - buffers_.size())); } } if (!start && bytes_to_read_ == 0) break; pos = buffers_.size(); buffers_.grow(bytes_to_read_); { (void)0 ; stream_.async_read_some(buffers_.data(pos, bytes_to_read_), static_cast<read_until_match_op_v2&&>(*this)); } return; default: buffers_.shrink(bytes_to_read_ - bytes_transferred); if (ec || bytes_transferred == 0) break; if (this->cancelled() != cancellation_type::none) { ec = error::operation_aborted; break; } } const boost::system::error_code result_ec = (search_position_ == not_found) ? error::not_found : ec; const std::size_t result_n = (ec || search_position_ == not_found) ? 0 : search_position_; static_cast<ReadHandler&&>(handler_)(result_ec, result_n); } } AsyncReadStream& stream_; DynamicBuffer_v2 buffers_; MatchCondition match_condition_; int start_; std::size_t search_position_; std::size_t bytes_to_read_; ReadHandler handler_; }; template <typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler> inline bool asio_handler_is_continuation( read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncReadStream> class initiate_async_read_until_match_v2 { public: typedef typename AsyncReadStream::executor_type executor_type; explicit initiate_async_read_until_match_v2(AsyncReadStream& stream) : stream_(stream) { } executor_type get_executor() const noexcept { return stream_.get_executor(); } template <typename ReadHandler, typename DynamicBuffer_v2, typename MatchCondition> void operator()(ReadHandler&& handler, DynamicBuffer_v2&& buffers, MatchCondition match_condition) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<ReadHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<ReadHandler> handler2(handler); read_until_match_op_v2<AsyncReadStream, typename decay<DynamicBuffer_v2>::type, MatchCondition, typename decay<ReadHandler>::type>( stream_, static_cast<DynamicBuffer_v2&&>(buffers), match_condition, handler2.value)(boost::system::error_code(), 0, 1); } private: AsyncReadStream& stream_; }; } template <template <typename, typename> class Associator, typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, typename ReadHandler, typename DefaultCandidate> struct associator<Associator, detail::read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>, DefaultCandidate> : Associator<ReadHandler, DefaultCandidate> { static typename Associator<ReadHandler, DefaultCandidate>::type get(const detail::read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>& h) noexcept { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::read_until_match_op_v2<AsyncReadStream, DynamicBuffer_v2, MatchCondition, ReadHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<ReadHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncReadStream, typename DynamicBuffer_v2, typename MatchCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> ReadToken> auto async_read_until(AsyncReadStream& s, DynamicBuffer_v2 buffers, MatchCondition match_condition, ReadToken&& token, typename constraint< is_match_condition<MatchCondition>::value >::type, typename constraint< is_dynamic_buffer_v2<DynamicBuffer_v2>::value >::type) { return async_initiate<ReadToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_read_until_match_v2<AsyncReadStream>(s), token, static_cast<DynamicBuffer_v2&&>(buffers), match_condition); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 3456 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/read_until.hpp" 2 3 4 # 3167 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/read_until.hpp" 2 3 4 # 175 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/readable_pipe.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/readable_pipe.hpp" 3 4 namespace boost { namespace asio { typedef basic_readable_pipe<> readable_pipe; } } # 176 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/redirect_error.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/redirect_error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/redirect_error.hpp" 2 3 4 namespace boost { namespace asio { template <typename CompletionToken> class redirect_error_t { public: template <typename T> redirect_error_t(T&& completion_token, boost::system::error_code& ec) : token_(static_cast<T&&>(completion_token)), ec_(ec) { } CompletionToken token_; boost::system::error_code& ec_; }; template <typename CompletionToken> inline redirect_error_t<typename decay<CompletionToken>::type> redirect_error( CompletionToken&& completion_token, boost::system::error_code& ec) { return redirect_error_t<typename decay<CompletionToken>::type>( static_cast<CompletionToken&&>(completion_token), ec); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 65 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/redirect_error.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler> class redirect_error_handler { public: typedef void result_type; template <typename CompletionToken> redirect_error_handler(redirect_error_t<CompletionToken> e) : ec_(e.ec_), handler_(static_cast<CompletionToken&&>(e.token_)) { } template <typename RedirectedHandler> redirect_error_handler(boost::system::error_code& ec, RedirectedHandler&& h) : ec_(ec), handler_(static_cast<RedirectedHandler&&>(h)) { } void operator()() { static_cast<Handler&&>(handler_)(); } template <typename Arg, typename... Args> typename enable_if< !is_same<typename decay<Arg>::type, boost::system::error_code>::value >::type operator()(Arg&& arg, Args&&... args) { static_cast<Handler&&>(handler_)( static_cast<Arg&&>(arg), static_cast<Args&&>(args)...); } template <typename... Args> void operator()(const boost::system::error_code& ec, Args&&... args) { ec_ = ec; static_cast<Handler&&>(handler_)( static_cast<Args&&>(args)...); } # 128 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 3 4 boost::system::error_code& ec_; Handler handler_; }; template <typename Handler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, redirect_error_handler<Handler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Handler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, redirect_error_handler<Handler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Handler> inline bool asio_handler_is_continuation( redirect_error_handler<Handler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, redirect_error_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Handler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, redirect_error_handler<Handler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Signature> struct redirect_error_signature { typedef Signature type; }; template <typename R, typename... Args> struct redirect_error_signature<R(boost::system::error_code, Args...)> { typedef R type(Args...); }; template <typename R, typename... Args> struct redirect_error_signature<R(const boost::system::error_code&, Args...)> { typedef R type(Args...); }; template <typename R, typename... Args> struct redirect_error_signature<R(boost::system::error_code, Args...) &> { typedef R type(Args...) &; }; template <typename R, typename... Args> struct redirect_error_signature<R(const boost::system::error_code&, Args...) &> { typedef R type(Args...) &; }; template <typename R, typename... Args> struct redirect_error_signature<R(boost::system::error_code, Args...) &&> { typedef R type(Args...) &&; }; template <typename R, typename... Args> struct redirect_error_signature<R(const boost::system::error_code&, Args...) &&> { typedef R type(Args...) &&; }; template <typename R, typename... Args> struct redirect_error_signature< R(boost::system::error_code, Args...) noexcept> { typedef R type(Args...) & noexcept; }; template <typename R, typename... Args> struct redirect_error_signature< R(const boost::system::error_code&, Args...) noexcept> { typedef R type(Args...) & noexcept; }; template <typename R, typename... Args> struct redirect_error_signature< R(boost::system::error_code, Args...) & noexcept> { typedef R type(Args...) & noexcept; }; template <typename R, typename... Args> struct redirect_error_signature< R(const boost::system::error_code&, Args...) & noexcept> { typedef R type(Args...) & noexcept; }; template <typename R, typename... Args> struct redirect_error_signature< R(boost::system::error_code, Args...) && noexcept> { typedef R type(Args...) && noexcept; }; template <typename R, typename... Args> struct redirect_error_signature< R(const boost::system::error_code&, Args...) && noexcept> { typedef R type(Args...) && noexcept; }; # 471 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 3 4 } template <typename CompletionToken, typename Signature> struct async_result<redirect_error_t<CompletionToken>, Signature> : async_result<CompletionToken, typename detail::redirect_error_signature<Signature>::type> { struct init_wrapper { explicit init_wrapper(boost::system::error_code& ec) : ec_(ec) { } template <typename Handler, typename Initiation, typename... Args> void operator()( Handler&& handler, Initiation&& initiation, Args&&... args) const { static_cast<Initiation&&>(initiation)( detail::redirect_error_handler< typename decay<Handler>::type>( ec_, static_cast<Handler&&>(handler)), static_cast<Args&&>(args)...); } # 536 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 3 4 boost::system::error_code& ec_; }; template <typename Initiation, typename RawCompletionToken, typename... Args> static decltype (async_initiate<CompletionToken, typename detail::redirect_error_signature<Signature>::type>( declval<init_wrapper>(), declval<CompletionToken&>(), declval<Initiation>(), declval<Args&&>()...)) initiate( Initiation&& initiation, RawCompletionToken&& token, Args&&... args) { return async_initiate<CompletionToken, typename detail::redirect_error_signature<Signature>::type>( init_wrapper(token.ec_), token.token_, static_cast<Initiation&&>(initiation), static_cast<Args&&>(args)...); } # 604 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 3 4 }; template <template <typename, typename> class Associator, typename Handler, typename DefaultCandidate> struct associator<Associator, detail::redirect_error_handler<Handler>, DefaultCandidate> : Associator<Handler, DefaultCandidate> { static typename Associator<Handler, DefaultCandidate>::type get(const detail::redirect_error_handler<Handler>& h) noexcept { return Associator<Handler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::redirect_error_handler<Handler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<Handler, DefaultCandidate>::get(h.handler_, c)) { return Associator<Handler, DefaultCandidate>::get(h.handler_, c); } }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 635 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/redirect_error.hpp" 2 3 4 # 67 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/redirect_error.hpp" 2 3 4 # 178 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_member.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_member.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct require_concept_member_default; template <typename T, typename Property, typename = void> struct require_concept_member; } namespace detail { struct no_require_concept_member { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct require_concept_member_trait : no_require_concept_member { }; template <typename T, typename Property> struct require_concept_member_trait<T, Property, typename void_type< decltype(declval<T>().require_concept(declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( declval<T>().require_concept(declval<Property>())); static constexpr bool is_noexcept = noexcept( declval<T>().require_concept(declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_member.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct require_concept_member_default : detail::require_concept_member_trait<T, Property> { }; template <typename T, typename Property, typename> struct require_concept_member : require_concept_member_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_member.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_free.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_free.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_free.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct require_concept_free_default; template <typename T, typename Property, typename = void> struct require_concept_free; } namespace detail { struct no_require_concept_free { static constexpr bool is_valid = false; static constexpr bool is_noexcept = false; }; template <typename T, typename Property, typename = void> struct require_concept_free_trait : no_require_concept_free { }; template <typename T, typename Property> struct require_concept_free_trait<T, Property, typename void_type< decltype(require_concept(declval<T>(), declval<Property>())) >::type> { static constexpr bool is_valid = true; using result_type = decltype( require_concept(declval<T>(), declval<Property>())); static constexpr bool is_noexcept = noexcept( require_concept(declval<T>(), declval<Property>())) ; }; # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_free.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct require_concept_free_default : detail::require_concept_free_trait<T, Property> { }; template <typename T, typename Property, typename> struct require_concept_free : require_concept_free_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/require_concept_free.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require_concept.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require_concept.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require_concept.hpp" 2 3 4 namespace boost { namespace asio { namespace traits { template <typename T, typename Property, typename = void> struct static_require_concept_default; template <typename T, typename Property, typename = void> struct static_require_concept; } namespace detail { struct no_static_require_concept { static constexpr bool is_valid = false; }; template <typename T, typename Property, typename = void> struct static_require_concept_trait : conditional< is_same<T, typename decay<T>::type>::value && is_same<Property, typename decay<Property>::type>::value, no_static_require_concept, traits::static_require_concept< typename decay<T>::type, typename decay<Property>::type> >::type { }; template <typename T, typename Property> struct static_require_concept_trait<T, Property, typename enable_if< decay<Property>::type::value() == traits::static_query<T, Property>::value() >::type> { static constexpr bool is_valid = true; }; # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require_concept.hpp" 3 4 } namespace traits { template <typename T, typename Property, typename> struct static_require_concept_default : detail::static_require_concept_trait<T, Property> { }; template <typename T, typename Property, typename> struct static_require_concept : static_require_concept_default<T, Property> { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 125 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/traits/static_require_concept.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 2 3 4 # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 3 4 namespace boost_asio_require_concept_fn { using boost::asio::conditional; using boost::asio::decay; using boost::asio::declval; using boost::asio::enable_if; using boost::asio::is_applicable_property; using boost::asio::traits::require_concept_free; using boost::asio::traits::require_concept_member; using boost::asio::traits::static_require_concept; void require_concept(); enum overload_type { identity, call_member, call_free, ill_formed }; template <typename Impl, typename T, typename Properties, typename = void, typename = void, typename = void, typename = void, typename = void> struct call_traits { static constexpr overload_type overload = ill_formed; static constexpr bool is_noexcept = false; typedef void result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_requirable_concept >::type, typename enable_if< static_require_concept<T, Property>::is_valid >::type> { static constexpr overload_type overload = identity; static constexpr bool is_noexcept = true; typedef T&& result_type; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_requirable_concept >::type, typename enable_if< !static_require_concept<T, Property>::is_valid >::type, typename enable_if< require_concept_member< typename Impl::template proxy<T>::type, Property >::is_valid >::type> : require_concept_member< typename Impl::template proxy<T>::type, Property > { static constexpr overload_type overload = call_member; }; template <typename Impl, typename T, typename Property> struct call_traits<Impl, T, void(Property), typename enable_if< is_applicable_property< typename decay<T>::type, typename decay<Property>::type >::value >::type, typename enable_if< decay<Property>::type::is_requirable_concept >::type, typename enable_if< !static_require_concept<T, Property>::is_valid >::type, typename enable_if< !require_concept_member< typename Impl::template proxy<T>::type, Property >::is_valid >::type, typename enable_if< require_concept_free<T, Property>::is_valid >::type> : require_concept_free<T, Property> { static constexpr overload_type overload = call_free; }; struct impl { template <typename T> struct proxy { struct type { template <typename P> auto require_concept(P&& p) noexcept( noexcept( declval<typename conditional<true, T, P>::type>().require_concept( static_cast<P&&>(p)) ) ) -> decltype( declval<typename conditional<true, T, P>::type>().require_concept( static_cast<P&&>(p)) ); }; }; template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == identity, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&&) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_member, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return static_cast<T&&>(t).require_concept( static_cast<Property&&>(p)); } template <typename T, typename Property> [[nodiscard]] constexpr typename enable_if< call_traits<impl, T, void(Property)>::overload == call_free, typename call_traits<impl, T, void(Property)>::result_type >::type operator()( T&& t, Property&& p) const noexcept((( call_traits<impl, T, void(Property)>::is_noexcept))) { return require_concept( static_cast<T&&>(t), static_cast<Property&&>(p)); } }; template <typename T = impl> struct static_instance { static const T instance; }; template <typename T> const T static_instance<T>::instance = {}; } namespace boost { namespace asio { namespace { static constexpr const boost_asio_require_concept_fn::impl& require_concept = boost_asio_require_concept_fn::static_instance<>::instance; } typedef boost_asio_require_concept_fn::impl require_concept_t; template <typename T, typename Property> struct can_require_concept : integral_constant<bool, boost_asio_require_concept_fn::call_traits< require_concept_t, T, void(Property)>::overload != boost_asio_require_concept_fn::ill_formed> { }; template <typename T, typename Property> constexpr bool can_require_concept_v = can_require_concept<T, Property>::value; template <typename T, typename Property> struct is_nothrow_require_concept : integral_constant<bool, boost_asio_require_concept_fn::call_traits< require_concept_t, T, void(Property)>::is_noexcept> { }; template <typename T, typename Property> constexpr bool is_nothrow_require_concept_v = is_nothrow_require_concept<T, Property>::value; template <typename T, typename Property> struct require_concept_result { typedef typename boost_asio_require_concept_fn::call_traits< require_concept_t, T, void(Property)>::result_type type; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 355 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/require_concept.hpp" 2 3 4 # 181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/serial_port.hpp" 3 4 namespace boost { namespace asio { typedef basic_serial_port<> serial_port; } } # 182 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/signal_set.hpp" 3 4 namespace boost { namespace asio { typedef basic_signal_set<> signal_set; } } # 184 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/static_thread_pool.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/static_thread_pool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { struct thread_pool_bits { static constexpr unsigned int blocking_never = 1; static constexpr unsigned int blocking_always = 2; static constexpr unsigned int blocking_mask = 3; static constexpr unsigned int relationship_continuation = 4; static constexpr unsigned int outstanding_work_tracked = 8; }; } # 75 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 class thread_pool : public execution_context { public: template <typename Allocator, unsigned int Bits> class basic_executor_type; template <typename Allocator, unsigned int Bits> friend class basic_executor_type; typedef basic_executor_type<std::allocator<void>, 0> executor_type; typedef basic_executor_type<std::allocator<void>, 0> scheduler_type; inline thread_pool(); inline thread_pool(std::size_t num_threads); inline ~thread_pool(); executor_type get_executor() noexcept; executor_type executor() noexcept; scheduler_type scheduler() noexcept; inline void stop(); inline void attach(); inline void join(); inline void wait(); private: thread_pool(const thread_pool&) = delete; thread_pool& operator=(const thread_pool&) = delete; struct thread_function; inline detail::scheduler& add_scheduler(detail::scheduler* s); detail::scheduler& scheduler_; detail::thread_group threads_; detail::atomic_count num_threads_; }; template <typename Allocator, unsigned int Bits> class thread_pool::basic_executor_type : detail::thread_pool_bits { public: typedef basic_executor_type sender_type; typedef std::size_t shape_type; typedef std::size_t index_type; template < template <typename...> class Tuple, template <typename...> class Variant> using value_types = Variant<Tuple<>>; template <template <typename...> class Variant> using error_types = Variant<std::exception_ptr>; static constexpr bool sends_done = true; basic_executor_type( const basic_executor_type& other) noexcept : pool_(other.pool_), allocator_(other.allocator_), bits_(other.bits_) { if (Bits & outstanding_work_tracked) if (pool_) pool_->scheduler_.work_started(); } basic_executor_type(basic_executor_type&& other) noexcept : pool_(other.pool_), allocator_(static_cast<Allocator&&>(other.allocator_)), bits_(other.bits_) { if (Bits & outstanding_work_tracked) other.pool_ = 0; } ~basic_executor_type() noexcept { if (Bits & outstanding_work_tracked) if (pool_) pool_->scheduler_.work_finished(); } basic_executor_type& operator=( const basic_executor_type& other) noexcept; basic_executor_type& operator=( basic_executor_type&& other) noexcept; private: friend struct boost_asio_require_fn::impl; friend struct boost_asio_prefer_fn::impl; # 252 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type<Allocator, Bits & ~blocking_mask> require(execution::blocking_t::possibly_t) const { return basic_executor_type<Allocator, Bits & ~blocking_mask>( pool_, allocator_, bits_ & ~blocking_mask); } # 270 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type<Allocator, (Bits & ~blocking_mask) | blocking_always> require(execution::blocking_t::always_t) const { return basic_executor_type<Allocator, (Bits & ~blocking_mask) | blocking_always>( pool_, allocator_, bits_ & ~blocking_mask); } # 289 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type<Allocator, Bits & ~blocking_mask> require(execution::blocking_t::never_t) const { return basic_executor_type<Allocator, Bits & ~blocking_mask>( pool_, allocator_, (bits_ & ~blocking_mask) | blocking_never); } # 307 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type require( execution::relationship_t::fork_t) const { return basic_executor_type(pool_, allocator_, bits_ & ~relationship_continuation); } # 324 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type require( execution::relationship_t::continuation_t) const { return basic_executor_type(pool_, allocator_, bits_ | relationship_continuation); } # 341 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type<Allocator, Bits | outstanding_work_tracked> require(execution::outstanding_work_t::tracked_t) const { return basic_executor_type<Allocator, Bits | outstanding_work_tracked>( pool_, allocator_, bits_); } # 359 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type<Allocator, Bits & ~outstanding_work_tracked> require(execution::outstanding_work_t::untracked_t) const { return basic_executor_type<Allocator, Bits & ~outstanding_work_tracked>( pool_, allocator_, bits_); } # 377 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 template <typename OtherAllocator> constexpr basic_executor_type<OtherAllocator, Bits> require(execution::allocator_t<OtherAllocator> a) const { return basic_executor_type<OtherAllocator, Bits>( pool_, a.value(), bits_); } # 395 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr basic_executor_type<std::allocator<void>, Bits> require(execution::allocator_t<void>) const { return basic_executor_type<std::allocator<void>, Bits>( pool_, std::allocator<void>(), bits_); } private: friend struct boost_asio_query_fn::impl; friend struct boost::asio::execution::detail::mapping_t<0>; friend struct boost::asio::execution::detail::outstanding_work_t<0>; # 421 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 static constexpr execution::bulk_guarantee_t query( execution::bulk_guarantee_t) noexcept { return execution::bulk_guarantee.parallel; } # 439 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 static constexpr execution::mapping_t query( execution::mapping_t) noexcept { return execution::mapping.thread; } # 455 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 thread_pool& query(execution::context_t) const noexcept { return *pool_; } # 471 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr execution::blocking_t query( execution::blocking_t) const noexcept { return (bits_ & blocking_never) ? execution::blocking_t(execution::blocking.never) : ((Bits & blocking_always) ? execution::blocking_t(execution::blocking.always) : execution::blocking_t(execution::blocking.possibly)); } # 492 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr execution::relationship_t query( execution::relationship_t) const noexcept { return (bits_ & relationship_continuation) ? execution::relationship_t(execution::relationship.continuation) : execution::relationship_t(execution::relationship.fork); } # 511 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 static constexpr execution::outstanding_work_t query( execution::outstanding_work_t) noexcept { return (Bits & outstanding_work_tracked) ? execution::outstanding_work_t(execution::outstanding_work.tracked) : execution::outstanding_work_t(execution::outstanding_work.untracked); } # 529 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 template <typename OtherAllocator> constexpr Allocator query( execution::allocator_t<OtherAllocator>) const noexcept { return allocator_; } # 546 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 constexpr Allocator query( execution::allocator_t<void>) const noexcept { return allocator_; } # 562 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 std::size_t query(execution::occupancy_t) const noexcept { return static_cast<std::size_t>(pool_->num_threads_); } public: bool running_in_this_thread() const noexcept; friend bool operator==(const basic_executor_type& a, const basic_executor_type& b) noexcept { return a.pool_ == b.pool_ && a.allocator_ == b.allocator_ && a.bits_ == b.bits_; } friend bool operator!=(const basic_executor_type& a, const basic_executor_type& b) noexcept { return a.pool_ != b.pool_ || a.allocator_ != b.allocator_ || a.bits_ != b.bits_; } template <typename Function> void execute(Function&& f) const { this->do_execute(static_cast<Function&&>(f), integral_constant<bool, (Bits & blocking_always) != 0>()); } public: template <typename Function> void bulk_execute(Function&& f, std::size_t n) const { this->do_bulk_execute(static_cast<Function&&>(f), n, integral_constant<bool, (Bits & blocking_always) != 0>()); } # 624 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 sender_type schedule() const noexcept { return *this; } # 637 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 template < ::boost::asio::execution::receiver_of Receiver> execution::detail::as_operation<basic_executor_type, Receiver> connect(Receiver&& r) const { return execution::detail::as_operation<basic_executor_type, Receiver>( *this, static_cast<Receiver&&>(r)); } thread_pool& context() const noexcept; void on_work_started() const noexcept; void on_work_finished() const noexcept; # 684 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 template <typename Function, typename OtherAllocator> void dispatch(Function&& f, const OtherAllocator& a) const; # 701 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 template <typename Function, typename OtherAllocator> void post(Function&& f, const OtherAllocator& a) const; # 722 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 template <typename Function, typename OtherAllocator> void defer(Function&& f, const OtherAllocator& a) const; private: friend class thread_pool; template <typename, unsigned int> friend class basic_executor_type; explicit basic_executor_type(thread_pool& p) noexcept : pool_(&p), allocator_(), bits_(0) { if (Bits & outstanding_work_tracked) pool_->scheduler_.work_started(); } basic_executor_type(thread_pool* p, const Allocator& a, unsigned int bits) noexcept : pool_(p), allocator_(a), bits_(bits) { if (Bits & outstanding_work_tracked) if (pool_) pool_->scheduler_.work_started(); } template <typename Function> void do_execute(Function&& f, false_type) const; template <typename Function> void do_execute(Function&& f, true_type) const; template <typename Function> void do_bulk_execute(Function&& f, std::size_t n, false_type) const; template <typename Function> void do_bulk_execute(Function&& f, std::size_t n, true_type) const; thread_pool* pool_; Allocator allocator_; unsigned int bits_; }; namespace traits { # 1124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 3 4 } namespace execution { template <> struct is_executor<thread_pool> : false_type { }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1141 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/blocking_executor_op.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/blocking_executor_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/blocking_executor_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Operation = scheduler_operation> class blocking_executor_op_base : public Operation { public: blocking_executor_op_base(typename Operation::func_type complete_func) : Operation(complete_func), is_complete_(false) { } void wait() { boost::asio::detail::mutex::scoped_lock lock(mutex_); while (!is_complete_) event_.wait(lock); } protected: struct do_complete_cleanup { ~do_complete_cleanup() { boost::asio::detail::mutex::scoped_lock lock(op_->mutex_); op_->is_complete_ = true; op_->event_.unlock_and_signal_one_for_destruction(lock); } blocking_executor_op_base* op_; }; private: boost::asio::detail::mutex mutex_; boost::asio::detail::event event_; bool is_complete_; }; template <typename Handler, typename Operation = scheduler_operation> class blocking_executor_op : public blocking_executor_op_base<Operation> { public: blocking_executor_op(Handler& h) : blocking_executor_op_base<Operation>(&blocking_executor_op::do_complete), handler_(h) { } static void do_complete(void* owner, Operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; blocking_executor_op* o(static_cast<blocking_executor_op*>(base)); typename blocking_executor_op_base<Operation>::do_complete_cleanup on_exit = { o }; (void)on_exit; (void)0; if (owner) { fenced_block b(fenced_block::half); (void)0; boost_asio_handler_invoke_helpers::invoke(o->handler_, o->handler_); (void)0; } } private: Handler& handler_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/blocking_executor_op.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bulk_executor_op.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bulk_executor_op.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bulk_executor_op.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Handler, typename Alloc, typename Operation = scheduler_operation> class bulk_executor_op : public Operation { public: struct ptr { const Alloc* a; void* v; bulk_executor_op* p; ~ptr() { reset(); } static bulk_executor_op* allocate(const Alloc& a) { typedef typename ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::type recycling_allocator_type; typename std::allocator_traits<recycling_allocator_type>::template rebind_alloc<bulk_executor_op> a1( ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::get(a)); return a1.allocate(1); } void reset() { if (p) { p->~bulk_executor_op(); p = 0; } if (v) { typedef typename ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::type recycling_allocator_type; typename std::allocator_traits<recycling_allocator_type>::template rebind_alloc<bulk_executor_op> a1( ::boost::asio::detail::get_recycling_allocator< Alloc, ::boost::asio::detail::thread_info_base::default_tag>::get(*a)); a1.deallocate(static_cast<bulk_executor_op*>(v), 1); v = 0; } } }; template <typename H> bulk_executor_op(H&& h, const Alloc& allocator, std::size_t i) : Operation(&bulk_executor_op::do_complete), handler_(static_cast<H&&>(h)), allocator_(allocator), index_(i) { } static void do_complete(void* owner, Operation* base, const boost::system::error_code& , std::size_t ) { if (base != 0) {} else { __builtin_unreachable(); }; bulk_executor_op* o(static_cast<bulk_executor_op*>(base)); Alloc allocator(o->allocator_); ptr p = { detail::addressof(allocator), o, o }; (void)0; detail::binder1<Handler, std::size_t> handler(o->handler_, o->index_); p.reset(); if (owner) { fenced_block b(fenced_block::half); (void)0; boost_asio_handler_invoke_helpers::invoke(handler, handler.handler_); (void)0; } } private: Handler handler_; Alloc allocator_; std::size_t index_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 90 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/bulk_executor_op.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.hpp" 2 3 4 namespace boost { namespace asio { inline thread_pool::executor_type thread_pool::get_executor() noexcept { return executor_type(*this); } inline thread_pool::executor_type thread_pool::executor() noexcept { return executor_type(*this); } inline thread_pool::scheduler_type thread_pool::scheduler() noexcept { return scheduler_type(*this); } template <typename Allocator, unsigned int Bits> thread_pool::basic_executor_type<Allocator, Bits>& thread_pool::basic_executor_type<Allocator, Bits>::operator=( const basic_executor_type& other) noexcept { if (this != &other) { thread_pool* old_thread_pool = pool_; pool_ = other.pool_; allocator_ = other.allocator_; bits_ = other.bits_; if (Bits & outstanding_work_tracked) { if (pool_) pool_->scheduler_.work_started(); if (old_thread_pool) old_thread_pool->scheduler_.work_finished(); } } return *this; } template <typename Allocator, unsigned int Bits> thread_pool::basic_executor_type<Allocator, Bits>& thread_pool::basic_executor_type<Allocator, Bits>::operator=( basic_executor_type&& other) noexcept { if (this != &other) { thread_pool* old_thread_pool = pool_; pool_ = other.pool_; allocator_ = std::move(other.allocator_); bits_ = other.bits_; if (Bits & outstanding_work_tracked) { other.pool_ = 0; if (old_thread_pool) old_thread_pool->scheduler_.work_finished(); } } return *this; } template <typename Allocator, unsigned int Bits> inline bool thread_pool::basic_executor_type<Allocator, Bits>::running_in_this_thread() const noexcept { return pool_->scheduler_.can_dispatch(); } template <typename Allocator, unsigned int Bits> template <typename Function> void thread_pool::basic_executor_type<Allocator, Bits>::do_execute(Function&& f, false_type) const { typedef typename decay<Function>::type function_type; if ((bits_ & blocking_never) == 0 && pool_->scheduler_.can_dispatch()) { function_type tmp(static_cast<Function&&>(f)); try { detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); return; } catch (...) { pool_->scheduler_.capture_current_exception(); return; } } typedef detail::executor_op<function_type, Allocator> op; typename op::ptr p = { detail::addressof(allocator_), op::ptr::allocate(allocator_), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), allocator_); if ((bits_ & relationship_continuation) != 0) { (void)0 ; } else { (void)0 ; } pool_->scheduler_.post_immediate_completion(p.p, (bits_ & relationship_continuation) != 0); p.v = p.p = 0; } template <typename Allocator, unsigned int Bits> template <typename Function> void thread_pool::basic_executor_type<Allocator, Bits>::do_execute(Function&& f, true_type) const { detail::non_const_lvalue<Function> f2(f); if (pool_->scheduler_.can_dispatch()) { try { detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(f2.value, f2.value); return; } catch (...) { std::terminate(); } } typedef typename decay<Function>::type function_type; detail::blocking_executor_op<function_type> op(f2.value); (void)0 ; pool_->scheduler_.post_immediate_completion(&op, false); op.wait(); } template <typename Allocator, unsigned int Bits> template <typename Function> void thread_pool::basic_executor_type<Allocator, Bits>::do_bulk_execute( Function&& f, std::size_t n, false_type) const { typedef typename decay<Function>::type function_type; typedef detail::bulk_executor_op<function_type, Allocator> op; detail::op_queue<detail::scheduler_operation> ops; for (std::size_t i = 0; i < n; ++i) { typename op::ptr p = { detail::addressof(allocator_), op::ptr::allocate(allocator_), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), allocator_, i); ops.push(p.p); if ((bits_ & relationship_continuation) != 0) { (void)0 ; } else { (void)0 ; } p.v = p.p = 0; } pool_->scheduler_.post_immediate_completions(n, ops, (bits_ & relationship_continuation) != 0); } template <typename Function> struct thread_pool_always_blocking_function_adapter { typename decay<Function>::type* f; std::size_t n; void operator()() { for (std::size_t i = 0; i < n; ++i) { (*f)(i); } } }; template <typename Allocator, unsigned int Bits> template <typename Function> void thread_pool::basic_executor_type<Allocator, Bits>::do_bulk_execute( Function&& f, std::size_t n, true_type) const { detail::non_const_lvalue<Function> f2(f); thread_pool_always_blocking_function_adapter<Function> adapter = { detail::addressof(f2.value), n }; this->do_execute(adapter, true_type()); } template <typename Allocator, unsigned int Bits> inline thread_pool& thread_pool::basic_executor_type< Allocator, Bits>::context() const noexcept { return *pool_; } template <typename Allocator, unsigned int Bits> inline void thread_pool::basic_executor_type<Allocator, Bits>::on_work_started() const noexcept { pool_->scheduler_.work_started(); } template <typename Allocator, unsigned int Bits> inline void thread_pool::basic_executor_type<Allocator, Bits>::on_work_finished() const noexcept { pool_->scheduler_.work_finished(); } template <typename Allocator, unsigned int Bits> template <typename Function, typename OtherAllocator> void thread_pool::basic_executor_type<Allocator, Bits>::dispatch( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; if (pool_->scheduler_.can_dispatch()) { function_type tmp(static_cast<Function&&>(f)); detail::fenced_block b(detail::fenced_block::full); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); return; } typedef detail::executor_op<function_type, OtherAllocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; pool_->scheduler_.post_immediate_completion(p.p, false); p.v = p.p = 0; } template <typename Allocator, unsigned int Bits> template <typename Function, typename OtherAllocator> void thread_pool::basic_executor_type<Allocator, Bits>::post( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; typedef detail::executor_op<function_type, OtherAllocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; pool_->scheduler_.post_immediate_completion(p.p, false); p.v = p.p = 0; } template <typename Allocator, unsigned int Bits> template <typename Function, typename OtherAllocator> void thread_pool::basic_executor_type<Allocator, Bits>::defer( Function&& f, const OtherAllocator& a) const { typedef typename decay<Function>::type function_type; typedef detail::executor_op<function_type, OtherAllocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(f), a); (void)0 ; pool_->scheduler_.post_immediate_completion(p.p, true); p.v = p.p = 0; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 355 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.hpp" 2 3 4 # 1143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.ipp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.ipp" 2 3 4 namespace boost { namespace asio { struct thread_pool::thread_function { detail::scheduler* scheduler_; void operator()() { try { boost::system::error_code ec; scheduler_->run(ec); } catch (...) { std::terminate(); } } }; namespace detail { inline long default_thread_pool_size() { std::size_t num_threads = thread::hardware_concurrency() * 2; num_threads = num_threads == 0 ? 2 : num_threads; return static_cast<long>(num_threads); } } thread_pool::thread_pool() : scheduler_(add_scheduler(new detail::scheduler(*this, 0, false))), num_threads_(detail::default_thread_pool_size()) { scheduler_.work_started(); thread_function f = { &scheduler_ }; threads_.create_threads(f, static_cast<std::size_t>(num_threads_)); } namespace detail { inline long clamp_thread_pool_size(std::size_t n) { if (n > 0x7FFFFFFF) { std::out_of_range ex("thread pool size"); boost::asio::detail::throw_exception(ex); } return static_cast<long>(n & 0x7FFFFFFF); } } thread_pool::thread_pool(std::size_t num_threads) : scheduler_(add_scheduler(new detail::scheduler( *this, num_threads == 1 ? 1 : 0, false))), num_threads_(detail::clamp_thread_pool_size(num_threads)) { scheduler_.work_started(); thread_function f = { &scheduler_ }; threads_.create_threads(f, static_cast<std::size_t>(num_threads_)); } thread_pool::~thread_pool() { stop(); join(); shutdown(); } void thread_pool::stop() { scheduler_.stop(); } void thread_pool::attach() { ++num_threads_; thread_function f = { &scheduler_ }; f(); } void thread_pool::join() { if (num_threads_) scheduler_.work_finished(); if (!threads_.empty()) threads_.join(); } detail::scheduler& thread_pool::add_scheduler(detail::scheduler* s) { detail::scoped_ptr<detail::scheduler> scoped_impl(s); boost::asio::add_service<detail::scheduler>(*this, scoped_impl.get()); return *scoped_impl.release(); } void thread_pool::wait() { scheduler_.work_finished(); threads_.join(); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 143 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/thread_pool.ipp" 2 3 4 # 1145 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/thread_pool.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/static_thread_pool.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/static_thread_pool.hpp" 2 3 4 namespace boost { namespace asio { typedef thread_pool static_thread_pool; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/static_thread_pool.hpp" 2 3 4 # 187 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 1 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class strand_executor_service : public execution_context_service_base<strand_executor_service> { public: class strand_impl { public: inline ~strand_impl(); private: friend class strand_executor_service; mutex* mutex_; bool locked_; bool shutdown_; op_queue<scheduler_operation> waiting_queue_; op_queue<scheduler_operation> ready_queue_; strand_impl* next_; strand_impl* prev_; strand_executor_service* service_; }; typedef shared_ptr<strand_impl> implementation_type; inline explicit strand_executor_service(execution_context& context); inline void shutdown(); inline implementation_type create_implementation(); template <typename Executor, typename Function> static void execute(const implementation_type& impl, Executor& ex, Function&& function, typename enable_if< can_query<Executor, execution::allocator_t<void> >::value >::type* = 0); template <typename Executor, typename Function> static void execute(const implementation_type& impl, Executor& ex, Function&& function, typename enable_if< !can_query<Executor, execution::allocator_t<void> >::value >::type* = 0); template <typename Executor, typename Function, typename Allocator> static void dispatch(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a); template <typename Executor, typename Function, typename Allocator> static void post(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a); template <typename Executor, typename Function, typename Allocator> static void defer(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a); inline static bool running_in_this_thread( const implementation_type& impl); private: friend class strand_impl; template <typename F, typename Allocator> class allocator_binder; template <typename Executor, typename = void> class invoker; inline static bool enqueue(const implementation_type& impl, scheduler_operation* op); inline static bool push_waiting_to_ready(implementation_type& impl); inline static void run_ready_handlers(implementation_type& impl); template <typename Executor, typename Function, typename Allocator> static void do_execute(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a); mutex mutex_; enum { num_mutexes = 193 }; scoped_ptr<mutex> mutexes_[num_mutexes]; std::size_t salt_; strand_impl* impl_list_; }; } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 169 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename F, typename Allocator> class strand_executor_service::allocator_binder { public: typedef Allocator allocator_type; allocator_binder(F&& f, const Allocator& a) : f_(static_cast<F&&>(f)), allocator_(a) { } allocator_binder(const allocator_binder& other) : f_(other.f_), allocator_(other.allocator_) { } allocator_binder(allocator_binder&& other) : f_(static_cast<F&&>(other.f_)), allocator_(static_cast<allocator_type&&>(other.allocator_)) { } allocator_type get_allocator() const noexcept { return allocator_; } void operator()() { f_(); } private: F f_; allocator_type allocator_; }; template <typename Executor> class strand_executor_service::invoker<Executor, typename enable_if< execution::is_executor<Executor>::value >::type> { public: invoker(const implementation_type& impl, Executor& ex) : impl_(impl), executor_(boost::asio::prefer(ex, execution::outstanding_work.tracked)) { } invoker(const invoker& other) : impl_(other.impl_), executor_(other.executor_) { } invoker(invoker&& other) : impl_(static_cast<implementation_type&&>(other.impl_)), executor_(static_cast<executor_type&&>(other.executor_)) { } struct on_invoker_exit { invoker* this_; ~on_invoker_exit() { if (push_waiting_to_ready(this_->impl_)) { recycling_allocator<void> allocator; executor_type ex = this_->executor_; # 118 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.hpp" 3 4 execution::execute( boost::asio::prefer( boost::asio::require( static_cast<executor_type&&>(ex), execution::blocking.never), execution::allocator(allocator)), static_cast<invoker&&>(*this_)); } } }; void operator()() { on_invoker_exit on_exit = { this }; (void)on_exit; run_ready_handlers(impl_); } private: typedef typename decay< typename prefer_result< Executor, execution::outstanding_work_t::tracked_t >::type >::type executor_type; implementation_type impl_; executor_type executor_; }; template <typename Executor> class strand_executor_service::invoker<Executor, typename enable_if< !execution::is_executor<Executor>::value >::type> { public: invoker(const implementation_type& impl, Executor& ex) : impl_(impl), work_(ex) { } invoker(const invoker& other) : impl_(other.impl_), work_(other.work_) { } invoker(invoker&& other) : impl_(static_cast<implementation_type&&>(other.impl_)), work_(static_cast<executor_work_guard<Executor>&&>(other.work_)) { } struct on_invoker_exit { invoker* this_; ~on_invoker_exit() { if (push_waiting_to_ready(this_->impl_)) { Executor ex(this_->work_.get_executor()); recycling_allocator<void> allocator; ex.post(static_cast<invoker&&>(*this_), allocator); } } }; void operator()() { on_invoker_exit on_exit = { this }; (void)on_exit; run_ready_handlers(impl_); } private: implementation_type impl_; executor_work_guard<Executor> work_; }; template <typename Executor, typename Function> inline void strand_executor_service::execute(const implementation_type& impl, Executor& ex, Function&& function, typename enable_if< can_query<Executor, execution::allocator_t<void> >::value >::type*) { return strand_executor_service::do_execute(impl, ex, static_cast<Function&&>(function), boost::asio::query(ex, execution::allocator)); } template <typename Executor, typename Function> inline void strand_executor_service::execute(const implementation_type& impl, Executor& ex, Function&& function, typename enable_if< !can_query<Executor, execution::allocator_t<void> >::value >::type*) { return strand_executor_service::do_execute(impl, ex, static_cast<Function&&>(function), std::allocator<void>()); } template <typename Executor, typename Function, typename Allocator> void strand_executor_service::do_execute(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a) { typedef typename decay<Function>::type function_type; if (boost::asio::query(ex, execution::blocking) != execution::blocking.never && running_in_this_thread(impl)) { function_type tmp(static_cast<Function&&>(function)); fenced_block b(fenced_block::full); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); return; } typedef executor_op<function_type, Allocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(function), a); (void)0 ; bool first = enqueue(impl, p.p); p.v = p.p = 0; if (first) { execution::execute(ex, invoker<Executor>(impl, ex)); } } template <typename Executor, typename Function, typename Allocator> void strand_executor_service::dispatch(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a) { typedef typename decay<Function>::type function_type; if (running_in_this_thread(impl)) { function_type tmp(static_cast<Function&&>(function)); fenced_block b(fenced_block::full); boost_asio_handler_invoke_helpers::invoke(tmp, tmp); return; } typedef executor_op<function_type, Allocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(function), a); (void)0 ; bool first = enqueue(impl, p.p); p.v = p.p = 0; if (first) { boost::asio::dispatch(ex, allocator_binder<invoker<Executor>, Allocator>( invoker<Executor>(impl, ex), a)); } } template <typename Executor, typename Function, typename Allocator> void strand_executor_service::post(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a) { typedef typename decay<Function>::type function_type; typedef executor_op<function_type, Allocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(function), a); (void)0 ; bool first = enqueue(impl, p.p); p.v = p.p = 0; if (first) { boost::asio::post(ex, allocator_binder<invoker<Executor>, Allocator>( invoker<Executor>(impl, ex), a)); } } template <typename Executor, typename Function, typename Allocator> void strand_executor_service::defer(const implementation_type& impl, Executor& ex, Function&& function, const Allocator& a) { typedef typename decay<Function>::type function_type; typedef executor_op<function_type, Allocator> op; typename op::ptr p = { detail::addressof(a), op::ptr::allocate(a), 0 }; p.p = new (p.v) op(static_cast<Function&&>(function), a); (void)0 ; bool first = enqueue(impl, p.p); p.v = p.p = 0; if (first) { boost::asio::defer(ex, allocator_binder<invoker<Executor>, Allocator>( invoker<Executor>(impl, ex), a)); } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 368 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.hpp" 2 3 4 # 171 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.ipp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.ipp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.ipp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.ipp" 2 3 4 namespace boost { namespace asio { namespace detail { strand_executor_service::strand_executor_service(execution_context& ctx) : execution_context_service_base<strand_executor_service>(ctx), mutex_(), salt_(0), impl_list_(0) { } void strand_executor_service::shutdown() { op_queue<scheduler_operation> ops; boost::asio::detail::mutex::scoped_lock lock(mutex_); strand_impl* impl = impl_list_; while (impl) { impl->mutex_->lock(); impl->shutdown_ = true; ops.push(impl->waiting_queue_); ops.push(impl->ready_queue_); impl->mutex_->unlock(); impl = impl->next_; } } strand_executor_service::implementation_type strand_executor_service::create_implementation() { implementation_type new_impl(new strand_impl); new_impl->locked_ = false; new_impl->shutdown_ = false; boost::asio::detail::mutex::scoped_lock lock(mutex_); std::size_t salt = salt_++; std::size_t mutex_index = reinterpret_cast<std::size_t>(new_impl.get()); mutex_index += (reinterpret_cast<std::size_t>(new_impl.get()) >> 3); mutex_index ^= salt + 0x9e3779b9 + (mutex_index << 6) + (mutex_index >> 2); mutex_index = mutex_index % num_mutexes; if (!mutexes_[mutex_index].get()) mutexes_[mutex_index].reset(new mutex); new_impl->mutex_ = mutexes_[mutex_index].get(); new_impl->next_ = impl_list_; new_impl->prev_ = 0; if (impl_list_) impl_list_->prev_ = new_impl.get(); impl_list_ = new_impl.get(); new_impl->service_ = this; return new_impl; } strand_executor_service::strand_impl::~strand_impl() { boost::asio::detail::mutex::scoped_lock lock(service_->mutex_); if (service_->impl_list_ == this) service_->impl_list_ = next_; if (prev_) prev_->next_ = next_; if (next_) next_->prev_= prev_; } bool strand_executor_service::enqueue(const implementation_type& impl, scheduler_operation* op) { impl->mutex_->lock(); if (impl->shutdown_) { impl->mutex_->unlock(); op->destroy(); return false; } else if (impl->locked_) { impl->waiting_queue_.push(op); impl->mutex_->unlock(); return false; } else { impl->locked_ = true; impl->mutex_->unlock(); impl->ready_queue_.push(op); return true; } } bool strand_executor_service::running_in_this_thread( const implementation_type& impl) { return !!call_stack<strand_impl>::contains(impl.get()); } bool strand_executor_service::push_waiting_to_ready(implementation_type& impl) { impl->mutex_->lock(); impl->ready_queue_.push(impl->waiting_queue_); bool more_handlers = impl->locked_ = !impl->ready_queue_.empty(); impl->mutex_->unlock(); return more_handlers; } void strand_executor_service::run_ready_handlers(implementation_type& impl) { call_stack<strand_impl>::context ctx(impl.get()); boost::system::error_code ec; while (scheduler_operation* o = impl->ready_queue_.front()) { impl->ready_queue_.pop(); o->complete(impl.get(), ec, 0); } } } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 159 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/impl/strand_executor_service.ipp" 2 3 4 # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/strand_executor_service.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 2 3 4 namespace boost { namespace asio { template <typename Executor> class strand { public: typedef Executor inner_executor_type; strand() : executor_(), impl_(strand::create_implementation(executor_)) { } template <typename Executor1> explicit strand(const Executor1& e, typename constraint< conditional< !is_same<Executor1, strand>::value, is_convertible<Executor1, Executor>, false_type >::type::value >::type = 0) : executor_(e), impl_(strand::create_implementation(executor_)) { } strand(const strand& other) noexcept : executor_(other.executor_), impl_(other.impl_) { } template <class OtherExecutor> strand( const strand<OtherExecutor>& other) noexcept : executor_(other.executor_), impl_(other.impl_) { } strand& operator=(const strand& other) noexcept { executor_ = other.executor_; impl_ = other.impl_; return *this; } template <class OtherExecutor> strand& operator=( const strand<OtherExecutor>& other) noexcept { executor_ = other.executor_; impl_ = other.impl_; return *this; } strand(strand&& other) noexcept : executor_(static_cast<Executor&&>(other.executor_)), impl_(static_cast<implementation_type&&>(other.impl_)) { } template <class OtherExecutor> strand(strand<OtherExecutor>&& other) noexcept : executor_(static_cast<OtherExecutor&&>(other.executor_)), impl_(static_cast<implementation_type&&>(other.impl_)) { } strand& operator=(strand&& other) noexcept { executor_ = static_cast<Executor&&>(other.executor_); impl_ = static_cast<implementation_type&&>(other.impl_); return *this; } template <class OtherExecutor> strand& operator=(strand<OtherExecutor>&& other) noexcept { executor_ = static_cast<OtherExecutor&&>(other.executor_); impl_ = static_cast<implementation_type&&>(other.impl_); return *this; } ~strand() noexcept { } inner_executor_type get_inner_executor() const noexcept { return executor_; } # 170 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Property> typename constraint< can_query<const Executor&, Property>::value, typename conditional< is_convertible<Property, execution::blocking_t>::value, execution::blocking_t, typename query_result<const Executor&, Property>::type >::type >::type query(const Property& p) const noexcept((( is_nothrow_query<const Executor&, Property>::value))) { return this->query_helper( is_convertible<Property, execution::blocking_t>(), p); } # 196 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Property> typename constraint< can_require<const Executor&, Property>::value && !is_convertible<Property, execution::blocking_t::always_t>::value, strand<typename decay< typename require_result<const Executor&, Property>::type >::type> >::type require(const Property& p) const noexcept((( is_nothrow_require<const Executor&, Property>::value))) { return strand<typename decay< typename require_result<const Executor&, Property>::type >::type>(boost::asio::require(executor_, p), impl_); } # 222 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Property> typename constraint< can_prefer<const Executor&, Property>::value && !is_convertible<Property, execution::blocking_t::always_t>::value, strand<typename decay< typename prefer_result<const Executor&, Property>::type >::type> >::type prefer(const Property& p) const noexcept((( is_nothrow_prefer<const Executor&, Property>::value))) { return strand<typename decay< typename prefer_result<const Executor&, Property>::type >::type>(boost::asio::prefer(executor_, p), impl_); } execution_context& context() const noexcept { return executor_.context(); } void on_work_started() const noexcept { executor_.on_work_started(); } void on_work_finished() const noexcept { executor_.on_work_finished(); } # 274 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Function> typename constraint< execution::can_execute<const Executor&, Function>::value, void >::type execute(Function&& f) const { detail::strand_executor_service::execute(impl_, executor_, static_cast<Function&&>(f)); } # 307 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Function, typename Allocator> void dispatch(Function&& f, const Allocator& a) const { detail::strand_executor_service::dispatch(impl_, executor_, static_cast<Function&&>(f), a); } # 327 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Function, typename Allocator> void post(Function&& f, const Allocator& a) const { detail::strand_executor_service::post(impl_, executor_, static_cast<Function&&>(f), a); } # 347 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Function, typename Allocator> void defer(Function&& f, const Allocator& a) const { detail::strand_executor_service::defer(impl_, executor_, static_cast<Function&&>(f), a); } # 361 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 bool running_in_this_thread() const noexcept { return detail::strand_executor_service::running_in_this_thread(impl_); } friend bool operator==(const strand& a, const strand& b) noexcept { return a.impl_ == b.impl_; } friend bool operator!=(const strand& a, const strand& b) noexcept { return a.impl_ != b.impl_; } typedef detail::strand_executor_service::implementation_type implementation_type; template <typename InnerExecutor> static implementation_type create_implementation(const InnerExecutor& ex, typename constraint< can_query<InnerExecutor, execution::context_t>::value >::type = 0) { return use_service<detail::strand_executor_service>( boost::asio::query(ex, execution::context)).create_implementation(); } template <typename InnerExecutor> static implementation_type create_implementation(const InnerExecutor& ex, typename constraint< !can_query<InnerExecutor, execution::context_t>::value >::type = 0) { return use_service<detail::strand_executor_service>( ex.context()).create_implementation(); } strand(const Executor& ex, const implementation_type& impl) : executor_(ex), impl_(impl) { } template <typename Property> typename query_result<const Executor&, Property>::type query_helper( false_type, const Property& property) const { return boost::asio::query(executor_, property); } template <typename Property> execution::blocking_t query_helper(true_type, const Property& property) const { execution::blocking_t result = boost::asio::query(executor_, property); return result == execution::blocking.always ? execution::blocking.possibly : result; } Executor executor_; implementation_type impl_; }; # 450 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename Executor> inline strand<Executor> make_strand(const Executor& ex, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) { return strand<Executor>(ex); } # 466 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 template <typename ExecutionContext> inline strand<typename ExecutionContext::executor_type> make_strand(ExecutionContext& ctx, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) { return strand<typename ExecutionContext::executor_type>(ctx.get_executor()); } namespace traits { # 569 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 577 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/strand.hpp" 2 3 4 # 189 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/stream_file.hpp" 1 3 4 # 190 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/streambuf.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/streambuf.hpp" 3 4 namespace boost { namespace asio { typedef basic_streambuf<> streambuf; } } # 191 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_timer.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_timer.hpp" 3 4 namespace boost { namespace asio { # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/system_timer.hpp" 3 4 typedef basic_waitable_timer<chrono::system_clock> system_timer; } } # 194 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename Function, typename Allocator> class packaged_token; template <typename Function, typename Allocator, typename Result> class packaged_handler; } # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 3 4 template <typename Allocator = std::allocator<void> > class use_future_t { public: typedef Allocator allocator_type; constexpr use_future_t() { } explicit use_future_t(const Allocator& allocator) : allocator_(allocator) { } template <typename OtherAllocator> use_future_t<OtherAllocator> operator[](const OtherAllocator& allocator) const { return use_future_t<OtherAllocator>(allocator); } template <typename OtherAllocator> use_future_t<OtherAllocator> rebind(const OtherAllocator& allocator) const { return use_future_t<OtherAllocator>(allocator); } allocator_type get_allocator() const { return allocator_; } # 116 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 3 4 template <typename Function> detail::packaged_token<typename decay<Function>::type, Allocator> operator()(Function&& f) const; private: struct std_allocator_void { constexpr std_allocator_void() { } operator std::allocator<void>() const { return std::allocator<void>(); } }; typename conditional< is_same<std::allocator<void>, Allocator>::value, std_allocator_void, Allocator>::type allocator_; }; constexpr use_future_t<> use_future; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 159 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename T, typename F, typename... Args> inline void promise_invoke_and_set(std::promise<T>& p, F& f, Args&&... args) { try { p.set_value(f(static_cast<Args&&>(args)...)); } catch (...) { p.set_exception(std::current_exception()); } } template <typename F, typename... Args> inline void promise_invoke_and_set(std::promise<void>& p, F& f, Args&&... args) { try { f(static_cast<Args&&>(args)...); p.set_value(); } catch (...) { p.set_exception(std::current_exception()); } } # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 template <typename T, typename F> class promise_invoker { public: promise_invoker(const shared_ptr<std::promise<T> >& p, F&& f) : p_(p), f_(static_cast<F&&>(f)) { } void operator()() { try { f_(); } catch (...) { p_->set_exception(std::current_exception()); } } private: shared_ptr<std::promise<T> > p_; typename decay<F>::type f_; }; template <typename T, typename Blocking = execution::blocking_t::possibly_t> class promise_executor { public: explicit promise_executor(const shared_ptr<std::promise<T> >& p) : p_(p) { } execution_context& query(execution::context_t) const noexcept { return boost::asio::query(system_executor(), execution::context); } static constexpr Blocking query(execution::blocking_t) { return Blocking(); } promise_executor<T, execution::blocking_t::possibly_t> require(execution::blocking_t::possibly_t) const { return promise_executor<T, execution::blocking_t::possibly_t>(p_); } promise_executor<T, execution::blocking_t::never_t> require(execution::blocking_t::never_t) const { return promise_executor<T, execution::blocking_t::never_t>(p_); } template <typename F> void execute(F&& f) const { execution::execute( boost::asio::require(system_executor(), Blocking()), promise_invoker<T, F>(p_, static_cast<F&&>(f))); } execution_context& context() const noexcept { return system_executor().context(); } void on_work_started() const noexcept {} void on_work_finished() const noexcept {} template <typename F, typename A> void dispatch(F&& f, const A&) const { promise_invoker<T, F>(p_, static_cast<F&&>(f))(); } template <typename F, typename A> void post(F&& f, const A& a) const { system_executor().post( promise_invoker<T, F>(p_, static_cast<F&&>(f)), a); } template <typename F, typename A> void defer(F&& f, const A& a) const { system_executor().defer( promise_invoker<T, F>(p_, static_cast<F&&>(f)), a); } friend bool operator==(const promise_executor& a, const promise_executor& b) noexcept { return a.p_ == b.p_; } friend bool operator!=(const promise_executor& a, const promise_executor& b) noexcept { return a.p_ != b.p_; } private: shared_ptr<std::promise<T> > p_; }; template <typename T> class promise_creator { public: typedef promise_executor<T> executor_type; executor_type get_executor() const noexcept { return executor_type(p_); } typedef std::future<T> future_type; future_type get_future() { return p_->get_future(); } protected: template <typename Allocator> void create_promise(const Allocator& a) { typename std::allocator_traits<Allocator>::template rebind_alloc<char> b(a); p_ = std::allocate_shared<std::promise<T>>(b, std::allocator_arg, b); } shared_ptr<std::promise<T> > p_; }; class promise_handler_0 : public promise_creator<void> { public: void operator()() { this->p_->set_value(); } }; class promise_handler_ec_0 : public promise_creator<void> { public: void operator()(const boost::system::error_code& ec) { if (ec) { this->p_->set_exception( std::make_exception_ptr( boost::system::system_error(ec))); } else { this->p_->set_value(); } } }; class promise_handler_ex_0 : public promise_creator<void> { public: void operator()(const std::exception_ptr& ex) { if (ex) { this->p_->set_exception(ex); } else { this->p_->set_value(); } } }; template <typename T> class promise_handler_1 : public promise_creator<T> { public: template <typename Arg> void operator()(Arg&& arg) { this->p_->set_value(static_cast<Arg&&>(arg)); } }; template <typename T> class promise_handler_ec_1 : public promise_creator<T> { public: template <typename Arg> void operator()(const boost::system::error_code& ec, Arg&& arg) { if (ec) { this->p_->set_exception( std::make_exception_ptr( boost::system::system_error(ec))); } else this->p_->set_value(static_cast<Arg&&>(arg)); } }; template <typename T> class promise_handler_ex_1 : public promise_creator<T> { public: template <typename Arg> void operator()(const std::exception_ptr& ex, Arg&& arg) { if (ex) this->p_->set_exception(ex); else this->p_->set_value(static_cast<Arg&&>(arg)); } }; template <typename T> class promise_handler_n : public promise_creator<T> { public: template <typename... Args> void operator()(Args&&... args) { this->p_->set_value( std::forward_as_tuple( static_cast<Args&&>(args)...)); } # 457 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 }; template <typename T> class promise_handler_ec_n : public promise_creator<T> { public: template <typename... Args> void operator()(const boost::system::error_code& ec, Args&&... args) { if (ec) { this->p_->set_exception( std::make_exception_ptr( boost::system::system_error(ec))); } else { this->p_->set_value( std::forward_as_tuple( static_cast<Args&&>(args)...)); } } # 510 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 }; template <typename T> class promise_handler_ex_n : public promise_creator<T> { public: template <typename... Args> void operator()(const std::exception_ptr& ex, Args&&... args) { if (ex) this->p_->set_exception(ex); else { this->p_->set_value( std::forward_as_tuple( static_cast<Args&&>(args)...)); } } # 555 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 }; template <typename> class promise_handler_selector; template <> class promise_handler_selector<void()> : public promise_handler_0 {}; template <> class promise_handler_selector<void(boost::system::error_code)> : public promise_handler_ec_0 {}; template <> class promise_handler_selector<void(std::exception_ptr)> : public promise_handler_ex_0 {}; template <typename Arg> class promise_handler_selector<void(Arg)> : public promise_handler_1<Arg> {}; template <typename Arg> class promise_handler_selector<void(boost::system::error_code, Arg)> : public promise_handler_ec_1<Arg> {}; template <typename Arg> class promise_handler_selector<void(std::exception_ptr, Arg)> : public promise_handler_ex_1<Arg> {}; template <typename... Arg> class promise_handler_selector<void(Arg...)> : public promise_handler_n<std::tuple<Arg...> > {}; template <typename... Arg> class promise_handler_selector<void(boost::system::error_code, Arg...)> : public promise_handler_ec_n<std::tuple<Arg...> > {}; template <typename... Arg> class promise_handler_selector<void(std::exception_ptr, Arg...)> : public promise_handler_ex_n<std::tuple<Arg...> > {}; # 627 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 template <typename Signature, typename Allocator> class promise_handler : public promise_handler_selector<Signature> { public: typedef Allocator allocator_type; typedef void result_type; promise_handler(use_future_t<Allocator> u) : allocator_(u.get_allocator()) { this->create_promise(allocator_); } allocator_type get_allocator() const noexcept { return allocator_; } private: Allocator allocator_; }; template <typename Function> struct promise_function_wrapper { explicit promise_function_wrapper(Function& f) : function_(static_cast<Function&&>(f)) { } explicit promise_function_wrapper(const Function& f) : function_(f) { } void operator()() { function_(); } Function function_; }; template <typename Function, typename Signature, typename Allocator> inline void asio_handler_invoke(Function& f, promise_handler<Signature, Allocator>* h) { typename promise_handler<Signature, Allocator>::executor_type ex(h->get_executor()); boost::asio::dispatch(ex, promise_function_wrapper<Function>(f)); } template <typename Function, typename Signature, typename Allocator> inline void asio_handler_invoke(const Function& f, promise_handler<Signature, Allocator>* h) { typename promise_handler<Signature, Allocator>::executor_type ex(h->get_executor()); boost::asio::dispatch(ex, promise_function_wrapper<Function>(f)); } template <typename Signature, typename Allocator> class promise_async_result { public: typedef promise_handler<Signature, Allocator> completion_handler_type; typedef typename completion_handler_type::future_type return_type; explicit promise_async_result(completion_handler_type& h) : future_(h.get_future()) { } return_type get() { return static_cast<return_type&&>(future_); } private: return_type future_; }; template <typename Function, typename Allocator> class packaged_token { public: packaged_token(Function f, const Allocator& a) : function_(static_cast<Function&&>(f)), allocator_(a) { } Function function_; Allocator allocator_; }; template <typename Function, typename Allocator, typename Result> class packaged_handler : public promise_creator<Result> { public: typedef Allocator allocator_type; typedef void result_type; packaged_handler(packaged_token<Function, Allocator> t) : function_(static_cast<Function&&>(t.function_)), allocator_(t.allocator_) { this->create_promise(allocator_); } allocator_type get_allocator() const noexcept { return allocator_; } template <typename... Args> void operator()(Args&&... args) { (promise_invoke_and_set)(*this->p_, function_, static_cast<Args&&>(args)...); } # 782 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 private: Function function_; Allocator allocator_; }; template <typename Function, typename Function1, typename Allocator, typename Result> inline void asio_handler_invoke(Function& f, packaged_handler<Function1, Allocator, Result>* h) { typename packaged_handler<Function1, Allocator, Result>::executor_type ex(h->get_executor()); boost::asio::dispatch(ex, promise_function_wrapper<Function>(f)); } template <typename Function, typename Function1, typename Allocator, typename Result> inline void asio_handler_invoke(const Function& f, packaged_handler<Function1, Allocator, Result>* h) { typename packaged_handler<Function1, Allocator, Result>::executor_type ex(h->get_executor()); boost::asio::dispatch(ex, promise_function_wrapper<Function>(f)); } template <typename Function, typename Allocator, typename Result> class packaged_async_result { public: typedef packaged_handler<Function, Allocator, Result> completion_handler_type; typedef typename completion_handler_type::future_type return_type; explicit packaged_async_result(completion_handler_type& h) : future_(h.get_future()) { } return_type get() { return static_cast<return_type&&>(future_); } private: return_type future_; }; } template <typename Allocator> template <typename Function> inline detail::packaged_token<typename decay<Function>::type, Allocator> use_future_t<Allocator>::operator()(Function&& f) const { return detail::packaged_token<typename decay<Function>::type, Allocator>( static_cast<Function&&>(f), allocator_); } template <typename Allocator, typename Result, typename... Args> class async_result<use_future_t<Allocator>, Result(Args...)> : public detail::promise_async_result< void(typename decay<Args>::type...), Allocator> { public: explicit async_result( typename detail::promise_async_result<void(typename decay<Args>::type...), Allocator>::completion_handler_type& h) : detail::promise_async_result< void(typename decay<Args>::type...), Allocator>(h) { } }; template <typename Function, typename Allocator, typename Result, typename... Args> class async_result<detail::packaged_token<Function, Allocator>, Result(Args...)> : public detail::packaged_async_result<Function, Allocator, typename result_of<Function(Args...)>::type> { public: explicit async_result( typename detail::packaged_async_result<Function, Allocator, typename result_of<Function(Args...)>::type>::completion_handler_type& h) : detail::packaged_async_result<Function, Allocator, typename result_of<Function(Args...)>::type>(h) { } }; # 950 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 namespace traits { # 1046 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 3 4 } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1054 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/use_future.hpp" 2 3 4 # 161 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/use_future.hpp" 2 3 4 # 199 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/version.hpp" 1 3 4 # 201 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/basic_object_handle.hpp" 1 3 4 # 203 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/basic_overlapped_handle.hpp" 1 3 4 # 204 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/basic_random_access_handle.hpp" 1 3 4 # 205 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/basic_stream_handle.hpp" 1 3 4 # 206 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/object_handle.hpp" 1 3 4 # 207 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/overlapped_handle.hpp" 1 3 4 # 208 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/overlapped_ptr.hpp" 1 3 4 # 209 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/random_access_handle.hpp" 1 3 4 # 210 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/windows/stream_handle.hpp" 1 3 4 # 211 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/writable_pipe.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/writable_pipe.hpp" 3 4 namespace boost { namespace asio { typedef basic_writable_pipe<> writable_pipe; } } # 212 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename> class initiate_async_write_at; template <typename> class initiate_async_write_at_streambuf; } # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers); # 133 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, boost::system::error_code& ec); # 187 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence, typename CompletionCondition> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition completion_condition); # 235 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence, typename CompletionCondition> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec); # 273 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename Allocator> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, basic_streambuf<Allocator>& b); # 306 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename Allocator> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, boost::system::error_code& ec); # 349 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename Allocator, typename CompletionCondition> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, CompletionCondition completion_condition); # 393 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename SyncRandomAccessWriteDevice, typename Allocator, typename CompletionCondition> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec); # 485 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type > auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type() ) ; # 592 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type > auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition completion_condition, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type() ) ; # 679 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename AsyncRandomAccessWriteDevice, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type > auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type() ) ; # 774 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 3 4 template <typename AsyncRandomAccessWriteDevice, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type > auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, basic_streambuf<Allocator>& b, CompletionCondition completion_condition, WriteToken&& token = typename ::boost::asio::default_completion_token<typename AsyncRandomAccessWriteDevice::executor_type>::type() ) ; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 804 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write_at.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write_at.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write_at.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition> std::size_t write_at_buffer_sequence(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, const ConstBufferIterator&, CompletionCondition completion_condition, boost::system::error_code& ec) { ec = boost::system::error_code(); boost::asio::detail::consuming_buffers<const_buffer, ConstBufferSequence, ConstBufferIterator> tmp(buffers); while (!tmp.empty()) { if (std::size_t max_size = detail::adapt_completion_condition_result( completion_condition(ec, tmp.total_consumed()))) { tmp.consume(d.write_some_at(offset + tmp.total_consumed(), tmp.prepare(max_size), ec)); } else break; } return tmp.total_consumed(); } } template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence, typename CompletionCondition> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition completion_condition, boost::system::error_code& ec) { return detail::write_at_buffer_sequence(d, offset, buffers, boost::asio::buffer_sequence_begin(buffers), static_cast<CompletionCondition&&>(completion_condition), ec); } template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence> inline std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers) { boost::system::error_code ec; std::size_t bytes_transferred = write_at( d, offset, buffers, transfer_all(), ec); boost::asio::detail::throw_error(ec, "write_at"); return bytes_transferred; } template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence> inline std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, boost::system::error_code& ec) { return write_at(d, offset, buffers, transfer_all(), ec); } template <typename SyncRandomAccessWriteDevice, typename ConstBufferSequence, typename CompletionCondition> inline std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition completion_condition) { boost::system::error_code ec; std::size_t bytes_transferred = write_at(d, offset, buffers, static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "write_at"); return bytes_transferred; } template <typename SyncRandomAccessWriteDevice, typename Allocator, typename CompletionCondition> std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, boost::system::error_code& ec) { std::size_t bytes_transferred = write_at(d, offset, b.data(), static_cast<CompletionCondition&&>(completion_condition), ec); b.consume(bytes_transferred); return bytes_transferred; } template <typename SyncRandomAccessWriteDevice, typename Allocator> inline std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b) { boost::system::error_code ec; std::size_t bytes_transferred = write_at(d, offset, b, transfer_all(), ec); boost::asio::detail::throw_error(ec, "write_at"); return bytes_transferred; } template <typename SyncRandomAccessWriteDevice, typename Allocator> inline std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, boost::system::error_code& ec) { return write_at(d, offset, b, transfer_all(), ec); } template <typename SyncRandomAccessWriteDevice, typename Allocator, typename CompletionCondition> inline std::size_t write_at(SyncRandomAccessWriteDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition) { boost::system::error_code ec; std::size_t bytes_transferred = write_at(d, offset, b, static_cast<CompletionCondition&&>(completion_condition), ec); boost::asio::detail::throw_error(ec, "write_at"); return bytes_transferred; } namespace detail { template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> class write_at_op : public base_from_cancellation_state<WriteHandler>, base_from_completion_cond<CompletionCondition> { public: write_at_op(AsyncRandomAccessWriteDevice& device, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition& completion_condition, WriteHandler& handler) : base_from_cancellation_state<WriteHandler>( handler, enable_partial_cancellation()), base_from_completion_cond<CompletionCondition>(completion_condition), device_(device), offset_(offset), buffers_(buffers), start_(0), handler_(static_cast<WriteHandler&&>(handler)) { } write_at_op(const write_at_op& other) : base_from_cancellation_state<WriteHandler>(other), base_from_completion_cond<CompletionCondition>(other), device_(other.device_), offset_(other.offset_), buffers_(other.buffers_), start_(other.start_), handler_(other.handler_) { } write_at_op(write_at_op&& other) : base_from_cancellation_state<WriteHandler>( static_cast<base_from_cancellation_state< WriteHandler>&&> (other)), base_from_completion_cond<CompletionCondition>( static_cast<base_from_completion_cond< CompletionCondition>&&> (other)), device_(other.device_), offset_(other.offset_), buffers_(static_cast<buffers_type&&>(other.buffers_)), start_(other.start_), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(boost::system::error_code ec, std::size_t bytes_transferred, int start = 0) { std::size_t max_size; switch (start_ = start) { case 1: max_size = this->check_for_completion(ec, buffers_.total_consumed()); for (;;) { { (void)0; device_.async_write_some_at( offset_ + buffers_.total_consumed(), buffers_.prepare(max_size), static_cast<write_at_op&&>(*this)); } return; default: buffers_.consume(bytes_transferred); if ((!ec && bytes_transferred == 0) || buffers_.empty()) break; max_size = this->check_for_completion(ec, buffers_.total_consumed()); if (max_size == 0) break; if (this->cancelled() != cancellation_type::none) { ec = boost::asio::error::operation_aborted; break; } } static_cast<WriteHandler&&>(handler_)( static_cast<const boost::system::error_code&>(ec), static_cast<const std::size_t&>(buffers_.total_consumed())); } } typedef boost::asio::detail::consuming_buffers<const_buffer, ConstBufferSequence, ConstBufferIterator> buffers_type; AsyncRandomAccessWriteDevice& device_; uint64_t offset_; buffers_type buffers_; int start_; WriteHandler handler_; }; template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline bool asio_handler_is_continuation( write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { return this_handler->start_ == 0 ? true : boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler> inline void start_write_at_op(AsyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, const ConstBufferIterator&, CompletionCondition& completion_condition, WriteHandler& handler) { detail::write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>( d, offset, buffers, completion_condition, handler)( boost::system::error_code(), 0, 1); } template <typename AsyncRandomAccessWriteDevice> class initiate_async_write_at { public: typedef typename AsyncRandomAccessWriteDevice::executor_type executor_type; explicit initiate_async_write_at(AsyncRandomAccessWriteDevice& device) : device_(device) { } executor_type get_executor() const noexcept { return device_.get_executor(); } template <typename WriteHandler, typename ConstBufferSequence, typename CompletionCondition> void operator()(WriteHandler&& handler, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition&& completion_cond) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<WriteHandler> handler2(handler); non_const_lvalue<CompletionCondition> completion_cond2(completion_cond); start_write_at_op(device_, offset, buffers, boost::asio::buffer_sequence_begin(buffers), completion_cond2.value, handler2.value); } private: AsyncRandomAccessWriteDevice& device_; }; } template <template <typename, typename> class Associator, typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename ConstBufferIterator, typename CompletionCondition, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::write_at_op<AsyncRandomAccessWriteDevice, ConstBufferSequence, ConstBufferIterator, CompletionCondition, WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, CompletionCondition completion_condition, WriteToken&& token) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_at<AsyncRandomAccessWriteDevice>(d), token, offset, buffers, static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncRandomAccessWriteDevice, typename ConstBufferSequence, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, const ConstBufferSequence& buffers, WriteToken&& token) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_at<AsyncRandomAccessWriteDevice>(d), token, offset, buffers, transfer_all()); } namespace detail { template <typename Allocator, typename WriteHandler> class write_at_streambuf_op { public: write_at_streambuf_op( boost::asio::basic_streambuf<Allocator>& streambuf, WriteHandler& handler) : streambuf_(streambuf), handler_(static_cast<WriteHandler&&>(handler)) { } write_at_streambuf_op(const write_at_streambuf_op& other) : streambuf_(other.streambuf_), handler_(other.handler_) { } write_at_streambuf_op(write_at_streambuf_op&& other) : streambuf_(other.streambuf_), handler_(static_cast<WriteHandler&&>(other.handler_)) { } void operator()(const boost::system::error_code& ec, const std::size_t bytes_transferred) { streambuf_.consume(bytes_transferred); static_cast<WriteHandler&&>(handler_)(ec, bytes_transferred); } boost::asio::basic_streambuf<Allocator>& streambuf_; WriteHandler handler_; }; template <typename Allocator, typename WriteHandler> inline asio_handler_allocate_is_deprecated asio_handler_allocate(std::size_t size, write_at_streambuf_op<Allocator, WriteHandler>* this_handler) { return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); } template <typename Allocator, typename WriteHandler> inline asio_handler_deallocate_is_deprecated asio_handler_deallocate(void* pointer, std::size_t size, write_at_streambuf_op<Allocator, WriteHandler>* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); } template <typename Allocator, typename WriteHandler> inline bool asio_handler_is_continuation( write_at_streambuf_op<Allocator, WriteHandler>* this_handler) { return boost_asio_handler_cont_helpers::is_continuation( this_handler->handler_); } template <typename Function, typename Allocator, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(Function& function, write_at_streambuf_op<Allocator, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename Function, typename Allocator, typename WriteHandler> inline asio_handler_invoke_is_deprecated asio_handler_invoke(const Function& function, write_at_streambuf_op<Allocator, WriteHandler>* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); } template <typename AsyncRandomAccessWriteDevice> class initiate_async_write_at_streambuf { public: typedef typename AsyncRandomAccessWriteDevice::executor_type executor_type; explicit initiate_async_write_at_streambuf( AsyncRandomAccessWriteDevice& device) : device_(device) { } executor_type get_executor() const noexcept { return device_.get_executor(); } template <typename WriteHandler, typename Allocator, typename CompletionCondition> void operator()(WriteHandler&& handler, uint64_t offset, basic_streambuf<Allocator>* b, CompletionCondition&& completion_condition) const { typedef typename ::boost::asio::async_result< typename ::boost::asio::decay<WriteHandler>::type, void(boost::system::error_code, std::size_t)>::completion_handler_type asio_true_handler_type; static_assert(sizeof(boost::asio::detail::two_arg_handler_test( boost::asio::detail::rvref< asio_true_handler_type>(), static_cast<const boost::system::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met"); typedef boost::asio::detail::handler_type_requirements< sizeof( boost::asio::detail::argbyv( boost::asio::detail::rvref< asio_true_handler_type>())) + sizeof( boost::asio::detail::rorlvref< asio_true_handler_type>()( boost::asio::detail::lvref<const boost::system::error_code>(), boost::asio::detail::lvref<const std::size_t>()), char(0))> __attribute__((__unused__)) type_check; non_const_lvalue<WriteHandler> handler2(handler); async_write_at(device_, offset, b->data(), static_cast<CompletionCondition&&>(completion_condition), write_at_streambuf_op<Allocator, typename decay<WriteHandler>::type>( *b, handler2.value)); } private: AsyncRandomAccessWriteDevice& device_; }; } template <template <typename, typename> class Associator, typename Executor, typename WriteHandler, typename DefaultCandidate> struct associator<Associator, detail::write_at_streambuf_op<Executor, WriteHandler>, DefaultCandidate> : Associator<WriteHandler, DefaultCandidate> { static typename Associator<WriteHandler, DefaultCandidate>::type get(const detail::write_at_streambuf_op<Executor, WriteHandler>& h) noexcept { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_); } static auto get(const detail::write_at_streambuf_op<Executor, WriteHandler>& h, const DefaultCandidate& c) noexcept -> decltype ( Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c)) { return Associator<WriteHandler, DefaultCandidate>::get(h.handler_, c); } }; template <typename AsyncRandomAccessWriteDevice, typename Allocator, typename CompletionCondition, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, CompletionCondition completion_condition, WriteToken&& token) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_at_streambuf< AsyncRandomAccessWriteDevice>(d), token, offset, &b, static_cast<CompletionCondition&&>(completion_condition)); } template <typename AsyncRandomAccessWriteDevice, typename Allocator, ::boost::asio::completion_token_for<void (boost::system::error_code, std::size_t)> WriteToken> inline auto async_write_at(AsyncRandomAccessWriteDevice& d, uint64_t offset, boost::asio::basic_streambuf<Allocator>& b, WriteToken&& token) { return async_initiate<WriteToken, void (boost::system::error_code, std::size_t)>( detail::initiate_async_write_at_streambuf< AsyncRandomAccessWriteDevice>(d), token, offset, &b, transfer_all()); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 688 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/write_at.hpp" 2 3 4 # 806 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/write_at.hpp" 2 3 4 # 214 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio.hpp" 2 3 4 # 250 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/exception.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/exception.hpp" 3 4 namespace boost { namespace asio { using std::exception_ptr; using std::current_exception; using std::rethrow_exception; } } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/all.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/all.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/attributes.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/attributes.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/flags.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/flags.hpp" 3 4 namespace boost { namespace coroutines { enum flag_unwind_t { stack_unwind = 0, no_stack_unwind }; }} # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/attributes.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_allocator.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/config.hpp" 1 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/auto_link.hpp" 1 3 4 # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/config.hpp" 2 3 4 # 116 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/config.hpp" 3 4 static constexpr std::size_t cache_alignment{ 64 }; static constexpr std::size_t cacheline_length{ 64 }; static constexpr std::size_t prefetch_stride{ 4 * cacheline_length }; # 128 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/config.hpp" 3 4 # 1 "/usr/include/c++/13/cxxabi.h" 1 3 4 # 44 "/usr/include/c++/13/cxxabi.h" 3 4 # 45 "/usr/include/c++/13/cxxabi.h" 3 #pragma GCC visibility push(default) # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 49 "/usr/include/c++/13/cxxabi.h" 2 3 # 1 "/usr/include/x86_64-linux-gnu/c++/13/bits/cxxabi_tweaks.h" 1 3 # 34 "/usr/include/x86_64-linux-gnu/c++/13/bits/cxxabi_tweaks.h" 3 namespace __cxxabiv1 { extern "C" { # 46 "/usr/include/x86_64-linux-gnu/c++/13/bits/cxxabi_tweaks.h" 3 __extension__ typedef int __guard __attribute__((mode (__DI__))); typedef void __cxa_vec_ctor_return_type; typedef void __cxa_cdtor_return_type; } } # 51 "/usr/include/c++/13/cxxabi.h" 2 3 namespace __cxxabiv1 { extern "C" { typedef __cxa_cdtor_return_type (*__cxa_cdtor_type)(void *); void* __cxa_vec_new(size_t __element_count, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor); void* __cxa_vec_new2(size_t __element_count, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor, void *(*__alloc) (size_t), void (*__dealloc) (void*)); void* __cxa_vec_new3(size_t __element_count, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor, void *(*__alloc) (size_t), void (*__dealloc) (void*, size_t)); __cxa_vec_ctor_return_type __cxa_vec_ctor(void* __array_address, size_t __element_count, size_t __element_size, __cxa_cdtor_type __constructor, __cxa_cdtor_type __destructor); __cxa_vec_ctor_return_type __cxa_vec_cctor(void* __dest_array, void* __src_array, size_t __element_count, size_t __element_size, __cxa_cdtor_return_type (*__constructor) (void*, void*), __cxa_cdtor_type __destructor); void __cxa_vec_dtor(void* __array_address, size_t __element_count, size_t __element_size, __cxa_cdtor_type __destructor); void __cxa_vec_cleanup(void* __array_address, size_t __element_count, size_t __s, __cxa_cdtor_type __destructor) noexcept; void __cxa_vec_delete(void* __array_address, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __destructor); void __cxa_vec_delete2(void* __array_address, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __destructor, void (*__dealloc) (void*)); void __cxa_vec_delete3(void* __array_address, size_t __element_size, size_t __padding_size, __cxa_cdtor_type __destructor, void (*__dealloc) (void*, size_t)); int __cxa_guard_acquire(__guard*); void __cxa_guard_release(__guard*) noexcept; void __cxa_guard_abort(__guard*) noexcept; int __cxa_atexit(void ( *)(void*), void*, void*) noexcept; void __cxa_finalize(void*); int __cxa_thread_atexit(void ( *)(void*), void*, void *) noexcept; void __cxa_pure_virtual(void) __attribute__ ((__noreturn__)); void __cxa_deleted_virtual(void) __attribute__ ((__noreturn__)); void __cxa_bad_cast() __attribute__((__noreturn__)); void __cxa_bad_typeid() __attribute__((__noreturn__)); void __cxa_throw_bad_array_new_length() __attribute__((__noreturn__)); # 203 "/usr/include/c++/13/cxxabi.h" 3 char* __cxa_demangle(const char* __mangled_name, char* __output_buffer, size_t* __length, int* __status); } } namespace __cxxabiv1 { class __fundamental_type_info : public std::type_info { public: explicit __fundamental_type_info(const char* __n) : std::type_info(__n) { } virtual ~__fundamental_type_info(); }; class __array_type_info : public std::type_info { public: explicit __array_type_info(const char* __n) : std::type_info(__n) { } virtual ~__array_type_info(); }; class __function_type_info : public std::type_info { public: explicit __function_type_info(const char* __n) : std::type_info(__n) { } virtual ~__function_type_info(); protected: virtual bool __is_function_p() const; }; class __enum_type_info : public std::type_info { public: explicit __enum_type_info(const char* __n) : std::type_info(__n) { } virtual ~__enum_type_info(); }; class __pbase_type_info : public std::type_info { public: unsigned int __flags; const std::type_info* __pointee; explicit __pbase_type_info(const char* __n, int __quals, const std::type_info* __type) : std::type_info(__n), __flags(__quals), __pointee(__type) { } virtual ~__pbase_type_info(); enum __masks { __const_mask = 0x1, __volatile_mask = 0x2, __restrict_mask = 0x4, __incomplete_mask = 0x8, __incomplete_class_mask = 0x10, __transaction_safe_mask = 0x20, __noexcept_mask = 0x40 }; protected: __pbase_type_info(const __pbase_type_info&); __pbase_type_info& operator=(const __pbase_type_info&); virtual bool __do_catch(const std::type_info* __thr_type, void** __thr_obj, unsigned int __outer) const; inline virtual bool __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, unsigned __outer) const; }; inline bool __pbase_type_info:: __pointer_catch (const __pbase_type_info *thrown_type, void **thr_obj, unsigned outer) const { return __pointee->__do_catch (thrown_type->__pointee, thr_obj, outer + 2); } class __pointer_type_info : public __pbase_type_info { public: explicit __pointer_type_info(const char* __n, int __quals, const std::type_info* __type) : __pbase_type_info (__n, __quals, __type) { } virtual ~__pointer_type_info(); protected: virtual bool __is_pointer_p() const; virtual bool __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, unsigned __outer) const; }; class __class_type_info; class __pointer_to_member_type_info : public __pbase_type_info { public: __class_type_info* __context; explicit __pointer_to_member_type_info(const char* __n, int __quals, const std::type_info* __type, __class_type_info* __klass) : __pbase_type_info(__n, __quals, __type), __context(__klass) { } virtual ~__pointer_to_member_type_info(); protected: __pointer_to_member_type_info(const __pointer_to_member_type_info&); __pointer_to_member_type_info& operator=(const __pointer_to_member_type_info&); virtual bool __pointer_catch(const __pbase_type_info* __thr_type, void** __thr_obj, unsigned __outer) const; }; class __base_class_type_info { public: const __class_type_info* __base_type; long __offset_flags; enum __offset_flags_masks { __virtual_mask = 0x1, __public_mask = 0x2, __hwm_bit = 2, __offset_shift = 8 }; bool __is_virtual_p() const { return __offset_flags & __virtual_mask; } bool __is_public_p() const { return __offset_flags & __public_mask; } ptrdiff_t __offset() const { return static_cast<ptrdiff_t>(__offset_flags) >> __offset_shift; } }; class __class_type_info : public std::type_info { public: explicit __class_type_info (const char *__n) : type_info(__n) { } virtual ~__class_type_info (); enum __sub_kind { __unknown = 0, __not_contained, __contained_ambig, __contained_virtual_mask = __base_class_type_info::__virtual_mask, __contained_public_mask = __base_class_type_info::__public_mask, __contained_mask = 1 << __base_class_type_info::__hwm_bit, __contained_private = __contained_mask, __contained_public = __contained_mask | __contained_public_mask }; struct __upcast_result; struct __dyncast_result; protected: virtual bool __do_upcast(const __class_type_info* __dst_type, void**__obj_ptr) const; virtual bool __do_catch(const type_info* __thr_type, void** __thr_obj, unsigned __outer) const; public: virtual bool __do_upcast(const __class_type_info* __dst, const void* __obj, __upcast_result& __restrict __result) const; inline __sub_kind __find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr) const; # 486 "/usr/include/c++/13/cxxabi.h" 3 virtual bool __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, const __class_type_info* __dst_type, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr, __dyncast_result& __result) const; virtual __sub_kind __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr) const; }; class __si_class_type_info : public __class_type_info { public: const __class_type_info* __base_type; explicit __si_class_type_info(const char *__n, const __class_type_info *__base) : __class_type_info(__n), __base_type(__base) { } virtual ~__si_class_type_info(); protected: __si_class_type_info(const __si_class_type_info&); __si_class_type_info& operator=(const __si_class_type_info&); virtual bool __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, const __class_type_info* __dst_type, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr, __dyncast_result& __result) const; virtual __sub_kind __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __sub_ptr) const; virtual bool __do_upcast(const __class_type_info*__dst, const void*__obj, __upcast_result& __restrict __result) const; }; class __vmi_class_type_info : public __class_type_info { public: unsigned int __flags; unsigned int __base_count; __base_class_type_info __base_info[1]; explicit __vmi_class_type_info(const char* __n, int ___flags) : __class_type_info(__n), __flags(___flags), __base_count(0) { } virtual ~__vmi_class_type_info(); enum __flags_masks { __non_diamond_repeat_mask = 0x1, __diamond_shaped_mask = 0x2, __flags_unknown_mask = 0x10 }; protected: virtual bool __do_dyncast(ptrdiff_t __src2dst, __sub_kind __access_path, const __class_type_info* __dst_type, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr, __dyncast_result& __result) const; virtual __sub_kind __do_find_public_src(ptrdiff_t __src2dst, const void* __obj_ptr, const __class_type_info* __src_type, const void* __src_ptr) const; virtual bool __do_upcast(const __class_type_info* __dst, const void* __obj, __upcast_result& __restrict __result) const; }; struct __cxa_exception; struct __cxa_refcounted_exception; struct __cxa_dependent_exception; struct __cxa_eh_globals; extern "C" { # 599 "/usr/include/c++/13/cxxabi.h" 3 void* __dynamic_cast(const void* __src_ptr, const __class_type_info* __src_type, const __class_type_info* __dst_type, ptrdiff_t __src2dst); # 612 "/usr/include/c++/13/cxxabi.h" 3 __cxa_eh_globals* __cxa_get_globals() noexcept __attribute__ ((__const__)); __cxa_eh_globals* __cxa_get_globals_fast() noexcept __attribute__ ((__const__)); void __cxa_free_exception(void*) noexcept; void __cxa_throw(void*, std::type_info*, void ( *) (void *)) __attribute__((__noreturn__)); void* __cxa_get_exception_ptr(void*) noexcept __attribute__ ((__pure__)); void* __cxa_begin_catch(void*) noexcept; void __cxa_end_catch(); void __cxa_rethrow() __attribute__((__noreturn__)); std::type_info* __cxa_current_exception_type() noexcept __attribute__ ((__pure__)); __cxa_dependent_exception* __cxa_allocate_dependent_exception() noexcept; void __cxa_free_dependent_exception(__cxa_dependent_exception*) noexcept; } class __foreign_exception { virtual ~__foreign_exception() throw(); virtual void __pure_dummy() = 0; }; } # 687 "/usr/include/c++/13/cxxabi.h" 3 namespace abi = __cxxabiv1; namespace __gnu_cxx { # 704 "/usr/include/c++/13/cxxabi.h" 3 class recursive_init_error: public std::exception { public: recursive_init_error() noexcept; virtual ~recursive_init_error() noexcept; }; } #pragma GCC visibility pop # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/config.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/segmented_stack_allocator.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/config.hpp" 1 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/config.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/auto_link.hpp" 1 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/config.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_context.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_context.hpp" 3 4 namespace boost { namespace coroutines { # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_context.hpp" 3 4 struct stack_context { std::size_t size; void * sp; stack_context() : size( 0), sp( 0) {} }; }} # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_traits.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_traits.hpp" 3 4 namespace boost { namespace coroutines { struct stack_traits { static bool is_unbounded() noexcept; static std::size_t page_size() noexcept; static std::size_t default_size() noexcept; static std::size_t minimum_size() noexcept; static std::size_t maximum_size() noexcept; }; }} # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp" 3 4 namespace boost { namespace coroutines { template< typename traitsT > struct basic_standard_stack_allocator { typedef traitsT traits_type; void allocate( stack_context & ctx, std::size_t size = traits_type::minimum_size() ) { (static_cast <bool> (traits_type::minimum_size() <= size) ? void (0) : __assert_fail ("traits_type::minimum_size() <= size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp", 45, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (traits_type::is_unbounded() || ( traits_type::maximum_size() >= size)) ? void (0) : __assert_fail ("traits_type::is_unbounded() || ( traits_type::maximum_size() >= size)", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp", 46, __extension__ __PRETTY_FUNCTION__)); void * limit = std::malloc( size); if ( ! limit) throw std::bad_alloc(); ctx.size = size; ctx.sp = static_cast< char * >( limit) + ctx.size; } void deallocate( stack_context & ctx) { (static_cast <bool> (ctx.sp) ? void (0) : __assert_fail ("ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp", 65, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (traits_type::minimum_size() <= ctx.size) ? void (0) : __assert_fail ("traits_type::minimum_size() <= ctx.size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp", 66, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (traits_type::is_unbounded() || ( traits_type::maximum_size() >= ctx.size)) ? void (0) : __assert_fail ("traits_type::is_unbounded() || ( traits_type::maximum_size() >= ctx.size)", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/standard_stack_allocator.hpp", 67, __extension__ __PRETTY_FUNCTION__)); void * limit = static_cast< char * >( ctx.sp) - ctx.size; std::free( limit); } }; typedef basic_standard_stack_allocator< stack_traits > standard_stack_allocator; }} # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/stack_allocator.hpp" 2 3 4 namespace boost { namespace coroutines { typedef standard_stack_allocator stack_allocator; }} # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/attributes.hpp" 2 3 4 namespace boost { namespace coroutines { struct attributes { std::size_t size; flag_unwind_t do_unwind; attributes() noexcept : size( stack_allocator::traits_type::default_size() ), do_unwind( stack_unwind) {} explicit attributes( std::size_t size_) noexcept : size( size_), do_unwind( stack_unwind) {} explicit attributes( flag_unwind_t do_unwind_) noexcept : size( stack_allocator::traits_type::default_size() ), do_unwind( do_unwind_) {} explicit attributes( std::size_t size_, flag_unwind_t do_unwind_) noexcept : size( size_), do_unwind( do_unwind_) {} }; }} # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/all.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/coroutine.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/coroutine.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/workaround.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/workaround.hpp" 3 4 # 71 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/workaround.hpp" 3 4 namespace boost { namespace movelib { template <typename T1> inline __attribute__ ((__always_inline__)) constexpr void ignore(T1 const&) {} }} # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/core.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/core.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/core.hpp" 2 3 4 # 320 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/core.hpp" 3 4 namespace boost { template<class T> struct has_move_emulation_enabled { static const bool value = false; }; template<class T> struct has_move_emulation_disabled { static const bool value = true; }; } # 504 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/core.hpp" 3 4 namespace boost { namespace move_detail { template< class T> struct forward_type { typedef T type; }; }} # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 514 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/core.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils_core.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils_core.hpp" 3 4 namespace boost { namespace move_detail { template<typename T> struct voider { typedef void type; }; template<bool C, typename T1, typename T2> struct if_c { typedef T1 type; }; template<typename T1, typename T2> struct if_c<false,T1,T2> { typedef T2 type; }; template<typename T1, typename T2, typename T3> struct if_ : if_c<0 != T1::value, T2, T3> {}; struct enable_if_nat{}; template <bool B, class T = enable_if_nat> struct enable_if_c { typedef T type; }; template <class T> struct enable_if_c<false, T> {}; template <class Cond, class T = enable_if_nat> struct enable_if : enable_if_c<Cond::value, T> {}; template <bool B, class T = enable_if_nat> struct disable_if_c : enable_if_c<!B, T> {}; template <class Cond, class T = enable_if_nat> struct disable_if : enable_if_c<!Cond::value, T> {}; template<class T, T v> struct integral_constant { static const T value = v; typedef T value_type; typedef integral_constant<T, v> type; operator T() const { return value; } T operator()() const { return value; } }; typedef integral_constant<bool, true > true_type; typedef integral_constant<bool, false > false_type; template<class T, class U> struct is_same { static const bool value = false; }; template<class T> struct is_same<T, T> { static const bool value = true; }; template <class T, class U, class R = enable_if_nat> struct enable_if_same : enable_if<is_same<T, U>, R> {}; template <class T, class U, class R = enable_if_nat> struct disable_if_same : disable_if<is_same<T, U>, R> {}; } } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/addressof.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/addressof.hpp" 3 4 namespace boost { namespace move_detail { # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/addressof.hpp" 3 4 template<class T> inline __attribute__ ((__always_inline__)) T *addressof( T & v ) noexcept { return __builtin_addressof(v); } # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/addressof.hpp" 3 4 } } # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 2 3 4 namespace boost { template <class T> class rv; namespace move_detail { template<class T, class U> struct is_different { static const bool value = !is_same<T, U>::value; }; template<class F, class Param> struct apply { typedef typename F::template apply<Param>::type type; }; template< bool C_ > struct bool_ : integral_constant<bool, C_> { inline __attribute__ ((__always_inline__)) operator bool() const { return C_; } inline __attribute__ ((__always_inline__)) bool operator()() const { return C_; } }; typedef bool_<true> true_; typedef bool_<false> false_; struct nat{}; struct nat2{}; struct nat3{}; template <unsigned N> struct natN {}; typedef char yes_type; struct no_type { char _[2]; }; template <class T> struct natify{}; template<class T> struct remove_reference { typedef T type; }; template<class T> struct remove_reference<T&> { typedef T type; }; template<class T> struct remove_reference<T&&> { typedef T type; }; # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 template< class T > struct remove_pointer { typedef T type; }; template< class T > struct remove_pointer<T*> { typedef T type; }; template< class T > struct remove_pointer<T* const> { typedef T type; }; template< class T > struct remove_pointer<T* volatile> { typedef T type; }; template< class T > struct remove_pointer<T* const volatile> { typedef T type; }; template< class T > struct add_pointer { typedef typename remove_reference<T>::type* type; }; template<class T> struct add_const { typedef const T type; }; template<class T> struct add_const<T&> { typedef const T& type; }; template<class T> struct add_const<T&&> { typedef T&& type; }; template<class T> struct add_lvalue_reference { typedef T& type; }; template<class T> struct add_lvalue_reference<T&> { typedef T& type; }; template<> struct add_lvalue_reference<void> { typedef void type; }; template<> struct add_lvalue_reference<const void> { typedef const void type; }; template<> struct add_lvalue_reference<volatile void> { typedef volatile void type; }; template<> struct add_lvalue_reference<const volatile void>{ typedef const volatile void type; }; template<class T> struct add_const_lvalue_reference { typedef typename remove_reference<T>::type t_unreferenced; typedef typename add_const<t_unreferenced>::type t_unreferenced_const; typedef typename add_lvalue_reference <t_unreferenced_const>::type type; }; template<class T> struct is_lvalue_reference { static const bool value = false; }; template<class T> struct is_lvalue_reference<T&> { static const bool value = true; }; template <class T> struct identity { typedef T type; typedef typename add_const_lvalue_reference<T>::type reference; inline __attribute__ ((__always_inline__)) reference operator()(reference t) const { return t; } }; template<class T> struct is_class_or_union { struct twochar { char dummy[2]; }; template <class U> static char is_class_or_union_tester(void(U::*)(void)); template <class U> static twochar is_class_or_union_tester(...); static const bool value = sizeof(is_class_or_union_tester<T>(0)) == sizeof(char); }; # 254 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 template <class T> struct has_pointer_type { struct two { char c[2]; }; template <class U> static two test(...); template <class U> static char test(typename U::pointer* = 0); static const bool value = sizeof(test<T>(0)) == 1; }; # 278 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 template <class T, class U> class is_convertible { typedef typename add_lvalue_reference<T>::type t_reference; typedef char true_t; class false_t { char dummy[2]; }; static false_t dispatch(...); static true_t dispatch(U); static t_reference trigger(); public: static const bool value = sizeof(dispatch(trigger())) == sizeof(true_t); }; template <class T, class U, bool IsSame = is_same<T, U>::value> struct is_same_or_convertible : is_convertible<T, U> {}; template <class T, class U> struct is_same_or_convertible<T, U, true> { static const bool value = true; }; template< bool C , typename F1 , typename F2 > struct eval_if_c : if_c<C,F1,F2>::type {}; template< typename C , typename T1 , typename T2 > struct eval_if : if_<C,T1,T2>::type {}; template<class T, class U, class R = void> struct enable_if_convertible : enable_if< is_convertible<T, U>, R> {}; template<class T, class U, class R = void> struct disable_if_convertible : disable_if< is_convertible<T, U>, R> {}; template<class T, class U, class R = void> struct enable_if_same_or_convertible : enable_if< is_same_or_convertible<T, U>, R> {}; template<class T, class U, class R = void> struct disable_if_same_or_convertible : disable_if< is_same_or_convertible<T, U>, R> {}; template<bool, class B = true_, class C = true_, class D = true_> struct and_impl : and_impl<B::value, C, D> {}; template<> struct and_impl<true, true_, true_, true_> { static const bool value = true; }; template<class B, class C, class D> struct and_impl<false, B, C, D> { static const bool value = false; }; template<class A, class B, class C = true_, class D = true_> struct and_ : and_impl<A::value, B, C, D> {}; template<bool, class B = false_, class C = false_, class D = false_> struct or_impl : or_impl<B::value, C, D> {}; template<> struct or_impl<false, false_, false_, false_> { static const bool value = false; }; template<class B, class C, class D> struct or_impl<true, B, C, D> { static const bool value = true; }; template<class A, class B, class C = false_, class D = false_> struct or_ : or_impl<A::value, B, C, D> {}; template<class T> struct not_ { static const bool value = !T::value; }; template<class R, class A, class B, class C = true_, class D = true_> struct enable_if_and : enable_if_c< and_<A, B, C, D>::value, R> {}; template<class R, class A, class B, class C = true_, class D = true_> struct disable_if_and : disable_if_c< and_<A, B, C, D>::value, R> {}; template<class R, class A, class B, class C = false_, class D = false_> struct enable_if_or : enable_if_c< or_<A, B, C, D>::value, R> {}; template<class R, class A, class B, class C = false_, class D = false_> struct disable_if_or : disable_if_c< or_<A, B, C, D>::value, R> {}; template<class T> struct has_move_emulation_enabled_impl : is_convertible< T, ::boost::rv<T>& > {}; template<class T> struct has_move_emulation_enabled_impl<T&> { static const bool value = false; }; template<class T> struct has_move_emulation_enabled_impl< ::boost::rv<T> > { static const bool value = false; }; template <class T> struct is_rv_impl { static const bool value = false; }; template <class T> struct is_rv_impl< rv<T> > { static const bool value = true; }; template <class T> struct is_rv_impl< const rv<T> > { static const bool value = true; }; template< class T > struct is_rvalue_reference { static const bool value = false; }; template< class T > struct is_rvalue_reference< T&& > { static const bool value = true; }; # 500 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 template< class T > struct add_rvalue_reference { typedef T&& type; }; # 531 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 template< class T > struct remove_rvalue_reference { typedef T type; }; template< class T > struct remove_rvalue_reference< T&& > { typedef T type; }; # 558 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 3 4 } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 562 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/meta_utils.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 2 3 4 # 173 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 3 4 namespace boost { template<class T> struct enable_move_utility_emulation { static const bool value = false; }; # 210 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 3 4 template <class T> inline __attribute__ ((__always_inline__)) typename ::boost::move_detail::remove_reference<T>::type && move(T&& t) noexcept { return static_cast<typename ::boost::move_detail::remove_reference<T>::type &&>(t); } # 247 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 3 4 template <class T> inline __attribute__ ((__always_inline__)) T&& forward(typename ::boost::move_detail::remove_reference<T>::type& t) noexcept { return static_cast<T&&>(t); } template <class T> inline __attribute__ ((__always_inline__)) T&& forward(typename ::boost::move_detail::remove_reference<T>::type&& t) noexcept { static_assert(!boost::move_detail::is_lvalue_reference<T>::value, "!boost::move_detail::is_lvalue_reference<T>::value"); return static_cast<T&&>(t); } } # 273 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 3 4 namespace boost { # 289 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 3 4 template <class T> inline __attribute__ ((__always_inline__)) T&& move_if_not_lvalue_reference(typename ::boost::move_detail::remove_reference<T>::type& t) noexcept { return static_cast<T&&>(t); } template <class T> inline __attribute__ ((__always_inline__)) T&& move_if_not_lvalue_reference(typename ::boost::move_detail::remove_reference<T>::type&& t) noexcept { static_assert(!boost::move_detail::is_lvalue_reference<T>::value, "!boost::move_detail::is_lvalue_reference<T>::value"); return static_cast<T&&>(t); } } namespace boost{ namespace move_detail{ template <typename T> typename boost::move_detail::add_rvalue_reference<T>::type declval(); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 322 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility_core.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/traits.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/traits.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 2 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 2 3 4 # 256 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template <typename T> T && boost_move_tt_declval() noexcept; # 300 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template <typename T, typename U, bool = __is_assignable(T, U)> struct boost_move_tt_is_nothrow_assignable { static const bool value = false; }; template <typename T, typename U> struct boost_move_tt_is_nothrow_assignable<T, U, true> { static const bool value = noexcept(boost_move_tt_declval<T>() = boost_move_tt_declval<U>()); }; template <typename T, typename U, bool = __is_constructible(T, U)> struct boost_move_tt_is_nothrow_constructible { static const bool value = false; }; template <typename T, typename U> struct boost_move_tt_is_nothrow_constructible<T, U, true> { static const bool value = noexcept(T(boost_move_tt_declval<U>())); }; # 482 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 namespace boost { namespace move_detail { template<class T> struct is_reference { static const bool value = false; }; template<class T> struct is_reference<T&> { static const bool value = true; }; template<class T> struct is_reference<T&&> { static const bool value = true; }; template<class T> struct is_pointer { static const bool value = false; }; template<class T> struct is_pointer<T*> { static const bool value = true; }; template<class T> struct is_const { static const bool value = false; }; template<class T> struct is_const<const T> { static const bool value = true; }; template <typename T> struct unvoid_ref : add_lvalue_reference<T>{}; template <> struct unvoid_ref<void> { typedef unvoid_ref & type; }; template <> struct unvoid_ref<const void> { typedef unvoid_ref & type; }; template <> struct unvoid_ref<volatile void> { typedef unvoid_ref & type; }; template <> struct unvoid_ref<const volatile void> { typedef unvoid_ref & type; }; template <typename T> struct add_reference : add_lvalue_reference<T> {}; template <class T> struct add_const_reference { typedef const T &type; }; template <class T> struct add_const_reference<T&> { typedef T& type; }; template<class T, bool Add> struct add_const_if_c : if_c<Add, typename add_const<T>::type, T> {}; template<class T> struct remove_const { typedef T type; }; template<class T> struct remove_const< const T> { typedef T type; }; template<typename T> struct remove_cv { typedef T type; }; template<typename T> struct remove_cv<const T> { typedef T type; }; template<typename T> struct remove_cv<const volatile T> { typedef T type; }; template<typename T> struct remove_cv<volatile T> { typedef T type; }; template<class T> struct remove_cvref : remove_cv<typename remove_reference<T>::type> { }; template <class T> struct make_unsigned_impl { typedef T type; }; template <> struct make_unsigned_impl<signed char> { typedef unsigned char type; }; template <> struct make_unsigned_impl<signed short> { typedef unsigned short type; }; template <> struct make_unsigned_impl<signed int> { typedef unsigned int type; }; template <> struct make_unsigned_impl<signed long> { typedef unsigned long type; }; template <> struct make_unsigned_impl< ::boost::long_long_type > { typedef ::boost::ulong_long_type type; }; template <class T> struct make_unsigned : make_unsigned_impl<typename remove_cv<T>::type> {}; template<class T> struct is_floating_point_cv { static const bool value = false; }; template<> struct is_floating_point_cv<float> { static const bool value = true; }; template<> struct is_floating_point_cv<double> { static const bool value = true; }; template<> struct is_floating_point_cv<long double> { static const bool value = true; }; template<class T> struct is_floating_point : is_floating_point_cv<typename remove_cv<T>::type> {}; template<class T> struct is_integral_cv { static const bool value = false; }; template<> struct is_integral_cv< bool>{ static const bool value = true; }; template<> struct is_integral_cv< char>{ static const bool value = true; }; template<> struct is_integral_cv< unsigned char>{ static const bool value = true; }; template<> struct is_integral_cv< signed char>{ static const bool value = true; }; template<> struct is_integral_cv< char16_t>{ static const bool value = true; }; template<> struct is_integral_cv< char32_t>{ static const bool value = true; }; template<> struct is_integral_cv< wchar_t>{ static const bool value = true; }; template<> struct is_integral_cv< short>{ static const bool value = true; }; template<> struct is_integral_cv< unsigned short>{ static const bool value = true; }; template<> struct is_integral_cv< int>{ static const bool value = true; }; template<> struct is_integral_cv< unsigned int>{ static const bool value = true; }; template<> struct is_integral_cv< long>{ static const bool value = true; }; template<> struct is_integral_cv< unsigned long>{ static const bool value = true; }; template<> struct is_integral_cv< ::boost:: long_long_type>{ static const bool value = true; }; template<> struct is_integral_cv< ::boost::ulong_long_type>{ static const bool value = true; }; template<class T> struct is_integral : public is_integral_cv<typename remove_cv<T>::type> {}; template <class T> struct remove_all_extents { typedef T type;}; template <class T> struct remove_all_extents<T[]> { typedef typename remove_all_extents<T>::type type; }; template <class T, std::size_t N> struct remove_all_extents<T[N]> { typedef typename remove_all_extents<T>::type type;}; template<class T> struct is_scalar { static const bool value = is_integral<T>::value || is_floating_point<T>::value; }; template<class T> struct is_void_cv { static const bool value = false; }; template<> struct is_void_cv<void> { static const bool value = true; }; template<class T> struct is_void : is_void_cv<typename remove_cv<T>::type> {}; template<class T> struct is_array { static const bool value = false; }; template<class T> struct is_array<T[]> { static const bool value = true; }; template<class T, std::size_t N> struct is_array<T[N]> { static const bool value = true; }; template <class T> struct is_member_pointer_cv { static const bool value = false; }; template <class T, class U>struct is_member_pointer_cv<T U::*> { static const bool value = true; }; template <class T> struct is_member_pointer : is_member_pointer_cv<typename remove_cv<T>::type> {}; template <class T> struct is_nullptr_t_cv { static const bool value = false; }; template <> struct is_nullptr_t_cv <decltype(nullptr)> { static const bool value = true; }; template <class T> struct is_nullptr_t : is_nullptr_t_cv<typename remove_cv<T>::type> {}; # 742 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template <class T> struct is_reference_convertible_to_pointer { struct twochar { char dummy[2]; }; template <class U> static char test(U*); template <class U> static twochar test(...); static T& source(); static const bool value = sizeof(char) == sizeof(test<T>(source())); }; template < class T , bool Filter = is_class_or_union<T>::value || is_void<T>::value || is_reference<T>::value || is_nullptr_t<T>::value > struct is_function_impl { static const bool value = is_reference_convertible_to_pointer<T>::value; }; template <class T> struct is_function_impl<T, true> { static const bool value = false; }; template <class T> struct is_function : is_function_impl<T> {}; template<class T> struct is_union_noextents_cv { static const bool value = __is_union(T); }; template<class T> struct is_union : is_union_noextents_cv<typename remove_cv<typename remove_all_extents<T>::type>::type> {}; template <class T> struct is_class { static const bool value = is_class_or_union<T>::value && ! is_union<T>::value; }; template <class T> struct is_arithmetic { static const bool value = is_floating_point<T>::value || is_integral<T>::value; }; template <class T> struct is_member_function_pointer_cv { static const bool value = false; }; template <class T, class C> struct is_member_function_pointer_cv<T C::*> : is_function<T> {}; template <class T> struct is_member_function_pointer : is_member_function_pointer_cv<typename remove_cv<T>::type> {}; # 844 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template <class T> struct is_enum { static const bool value = __is_enum(T); }; template<class T> struct is_pod_noextents_cv { static const bool value = (::boost::move_detail::is_scalar<T>::value || ::boost::move_detail::is_void<T>::value || __is_pod(T)); }; template<class T> struct is_pod : is_pod_noextents_cv<typename remove_cv<typename remove_all_extents<T>::type>::type> {}; # 891 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template <class T> struct is_empty { static const bool value = __is_empty(T); }; template<class T> struct has_boost_move_no_copy_constructor_or_assign_type { template <class U> static yes_type test(typename U::boost_move_no_copy_constructor_or_assign*); template <class U> static no_type test(...); static const bool value = sizeof(test<T>(0)) == sizeof(yes_type); }; # 917 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template<class T> struct is_copy_constructible { # 928 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template<class U> static typename add_reference<U>::type source(); static no_type test(...); template <class U> static yes_type test(U&, decltype(U(source<U>()))* = 0); static const bool value = sizeof(test(source<T>())) == sizeof(yes_type); }; # 953 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template <class T> struct is_copy_assignable { # 965 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 typedef char yes_type; struct no_type { char dummy[2]; }; template <class U> static typename add_reference<U>::type source(); template <class U> static decltype(source<U&>() = source<const U&>(), yes_type() ) test(int); template <class> static no_type test(...); static const bool value = sizeof(test<T>(0)) == sizeof(yes_type); }; template<class T> struct is_trivially_destructible { static const bool value = (__has_trivial_destructor(T) ) || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_trivially_default_constructible { static const bool value = ((__has_trivial_constructor(T) )) || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_trivially_copy_constructible { static const bool value = ::boost::move_detail::is_pod<T>::value || (::boost::move_detail::is_copy_constructible<T>::value && (__is_trivially_constructible(T, const T &))); }; template<class T> struct is_trivially_move_constructible { static const bool value = ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_trivially_copy_assignable { static const bool value = ::boost::move_detail::is_pod<T>::value || ( ::boost::move_detail::is_copy_assignable<T>::value && (__is_trivially_assignable(T, const T &))); }; template<class T> struct is_trivially_move_assignable { static const bool value = ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_nothrow_default_constructible { static const bool value = (__has_nothrow_constructor(T) ) || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_nothrow_copy_constructible { static const bool value = ((__has_nothrow_copy(T) )) || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_nothrow_move_constructible { static const bool value = boost_move_tt_is_nothrow_constructible<T, T&&>::value || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_nothrow_copy_assignable { static const bool value = ((__has_nothrow_assign(T) )) || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_nothrow_move_assignable { static const bool value = boost_move_tt_is_nothrow_assignable<T, T&&>::value || ::boost::move_detail::is_pod<T>::value; }; template<class T> struct is_nothrow_swappable { static const bool value = is_empty<T>::value || is_pod<T>::value; }; template <typename T> struct alignment_of_hack { T t1; char c; T t2; alignment_of_hack(); ~alignment_of_hack(); }; template <unsigned A, unsigned S> struct alignment_logic { static const std::size_t value = A < S ? A : S; }; template< typename T > struct alignment_of_impl # 1097 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 { static const std::size_t value = __alignof__(T); }; template< typename T > struct alignment_of : alignment_of_impl<T> {}; class alignment_dummy; typedef void (*function_ptr)(); typedef int (alignment_dummy::*member_ptr); struct alignment_struct { long double dummy[4]; }; union max_align { char char_; short short_; int int_; long long_; ::boost::long_long_type long_long_; float float_; double double_; void * void_ptr_; long double long_double_[4]; alignment_dummy *unknown_class_ptr_; function_ptr function_ptr_; alignment_struct alignment_struct_; }; typedef union max_align max_align_t; # 1181 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template<std::size_t Len, std::size_t Align> struct aligned_struct; # 1193 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template<std::size_t Len>struct alignas(0x1) aligned_struct<Len, 0x1>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x2) aligned_struct<Len, 0x2>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x4) aligned_struct<Len, 0x4>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x8) aligned_struct<Len, 0x8>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x10) aligned_struct<Len, 0x10>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x20) aligned_struct<Len, 0x20>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x40) aligned_struct<Len, 0x40>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x80) aligned_struct<Len, 0x80>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x100) aligned_struct<Len, 0x100>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x200) aligned_struct<Len, 0x200>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x400) aligned_struct<Len, 0x400>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x800) aligned_struct<Len, 0x800>{ unsigned char data[Len];}; template<std::size_t Len>struct alignas(0x1000) aligned_struct<Len, 0x1000>{ unsigned char data[Len];}; template<std::size_t Len, std::size_t Align> union aligned_struct_wrapper { typedef aligned_struct<Len, Align> aligner_t; aligned_struct<Len, Align> aligner; unsigned char data[Len > sizeof(aligner_t) ? Len : sizeof(aligner_t)]; }; template<std::size_t Len, std::size_t Align> struct aligned_storage_impl { typedef aligned_struct_wrapper<Len, Align> type; }; # 1276 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 3 4 template<std::size_t Len, std::size_t Align = alignment_of<max_align_t>::value> struct aligned_storage { static_assert(Align > 0, "Align > 0"); typedef typename aligned_storage_impl<Len ? Len : 1, Align>::type type; static const std::size_t value = alignment_of<type>::value; static_assert(value >= Align, "value >= Align"); static_assert((value % Align) == 0, "(value % Align) == 0"); private: aligned_storage(); }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 1298 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/type_traits.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/traits.hpp" 2 3 4 namespace boost { # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/traits.hpp" 3 4 template <class T> struct has_trivial_destructor_after_move : ::boost::move_detail::is_trivially_destructible<T> {}; template <class T> struct has_nothrow_move { static const bool value = boost::move_detail::is_nothrow_move_constructible<T>::value && boost::move_detail::is_nothrow_move_assignable<T>::value; }; namespace move_detail { template <class T> struct is_nothrow_move_constructible_or_uncopyable { static const bool value = is_nothrow_move_constructible<T>::value || has_nothrow_move<T>::value || !is_copy_constructible<T>::value; }; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 76 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/traits.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 2 3 4 # 109 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 3 4 namespace boost { # 128 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 3 4 template <class T> inline __attribute__ ((__always_inline__)) typename ::boost::move_detail::enable_if_c < ::boost::move_detail::is_nothrow_move_constructible_or_uncopyable<T>::value, T&&>::type move_if_noexcept(T& x) noexcept { return ::boost::move(x); } template <class T> inline __attribute__ ((__always_inline__)) typename ::boost::move_detail::enable_if_c < !::boost::move_detail::is_nothrow_move_constructible_or_uncopyable<T>::value, const T&>::type move_if_noexcept(T& x) noexcept { return x; } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 149 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/utility.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_traits.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_traits.hpp" 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_traits.hpp" 3 4 namespace boost { namespace movelib { using std::iterator_traits; template<class T> struct iter_difference { typedef typename std::iterator_traits<T>::difference_type type; }; template<class T> struct iter_value { typedef typename std::iterator_traits<T>::value_type type; }; template<class T> struct iter_category { typedef typename std::iterator_traits<T>::iterator_category type; }; }} # 166 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_traits.hpp" 3 4 namespace boost { namespace movelib { template<class T> struct iter_size : boost::move_detail:: make_unsigned<typename iter_difference<T>::type > {}; }} # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 2 3 4 namespace boost { # 43 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 3 4 template <class It> class move_iterator { public: typedef It iterator_type; typedef typename boost::movelib::iterator_traits<iterator_type>::value_type value_type; typedef value_type && reference; typedef It pointer; typedef typename boost::movelib::iterator_traits<iterator_type>::difference_type difference_type; typedef typename boost::movelib::iterator_traits<iterator_type>::iterator_category iterator_category; inline __attribute__ ((__always_inline__)) move_iterator() : m_it() {} inline __attribute__ ((__always_inline__)) explicit move_iterator(const It &i) : m_it(i) {} template <class U> inline __attribute__ ((__always_inline__)) move_iterator(const move_iterator<U>& u) : m_it(u.m_it) {} inline __attribute__ ((__always_inline__)) reference operator*() const { return ::boost::move(*m_it); } inline __attribute__ ((__always_inline__)) pointer operator->() const { return m_it; } inline __attribute__ ((__always_inline__)) move_iterator& operator++() { ++m_it; return *this; } inline __attribute__ ((__always_inline__)) move_iterator<iterator_type> operator++(int) { move_iterator<iterator_type> tmp(*this); ++(*this); return tmp; } inline __attribute__ ((__always_inline__)) move_iterator& operator--() { --m_it; return *this; } inline __attribute__ ((__always_inline__)) move_iterator<iterator_type> operator--(int) { move_iterator<iterator_type> tmp(*this); --(*this); return tmp; } move_iterator<iterator_type> operator+ (difference_type n) const { return move_iterator<iterator_type>(m_it + n); } inline __attribute__ ((__always_inline__)) move_iterator& operator+=(difference_type n) { m_it += n; return *this; } inline __attribute__ ((__always_inline__)) move_iterator<iterator_type> operator- (difference_type n) const { return move_iterator<iterator_type>(m_it - n); } inline __attribute__ ((__always_inline__)) move_iterator& operator-=(difference_type n) { m_it -= n; return *this; } inline __attribute__ ((__always_inline__)) reference operator[](difference_type n) const { return ::boost::move(m_it[n]); } inline __attribute__ ((__always_inline__)) friend bool operator==(const move_iterator& x, const move_iterator& y) { return x.m_it == y.m_it; } inline __attribute__ ((__always_inline__)) friend bool operator!=(const move_iterator& x, const move_iterator& y) { return x.m_it != y.m_it; } inline __attribute__ ((__always_inline__)) friend bool operator< (const move_iterator& x, const move_iterator& y) { return x.m_it < y.m_it; } inline __attribute__ ((__always_inline__)) friend bool operator<=(const move_iterator& x, const move_iterator& y) { return x.m_it <= y.m_it; } inline __attribute__ ((__always_inline__)) friend bool operator> (const move_iterator& x, const move_iterator& y) { return x.m_it > y.m_it; } inline __attribute__ ((__always_inline__)) friend bool operator>=(const move_iterator& x, const move_iterator& y) { return x.m_it >= y.m_it; } inline __attribute__ ((__always_inline__)) friend difference_type operator-(const move_iterator& x, const move_iterator& y) { return x.m_it - y.m_it; } inline __attribute__ ((__always_inline__)) friend move_iterator operator+(difference_type n, const move_iterator& x) { return move_iterator(x.m_it + n); } private: It m_it; }; namespace move_detail { template <class I> struct is_move_iterator { static const bool value = false; }; template <class I> struct is_move_iterator< ::boost::move_iterator<I> > { static const bool value = true; }; } # 172 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 3 4 template<class It> inline __attribute__ ((__always_inline__)) move_iterator<It> make_move_iterator(const It &it) { return move_iterator<It>(it); } # 185 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 3 4 template <typename C> class back_move_insert_iterator { C* container_m; public: typedef C container_type; typedef typename C::value_type value_type; typedef typename C::reference reference; typedef typename C::pointer pointer; typedef typename C::difference_type difference_type; typedef std::output_iterator_tag iterator_category; explicit back_move_insert_iterator(C& x) : container_m(&x) { } back_move_insert_iterator& operator=(reference x) { container_m->push_back(boost::move(x)); return *this; } back_move_insert_iterator& operator=(value_type && x) { reference rx = x; return this->operator=(rx); } back_move_insert_iterator& operator*() { return *this; } back_move_insert_iterator& operator++() { return *this; } back_move_insert_iterator& operator++(int) { return *this; } }; template <typename C> inline back_move_insert_iterator<C> back_move_inserter(C& x) { return back_move_insert_iterator<C>(x); } # 227 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 3 4 template <typename C> class front_move_insert_iterator { C* container_m; public: typedef C container_type; typedef typename C::value_type value_type; typedef typename C::reference reference; typedef typename C::pointer pointer; typedef typename C::difference_type difference_type; typedef std::output_iterator_tag iterator_category; explicit front_move_insert_iterator(C& x) : container_m(&x) { } front_move_insert_iterator& operator=(reference x) { container_m->push_front(boost::move(x)); return *this; } front_move_insert_iterator& operator=(value_type && x) { reference rx = x; return this->operator=(rx); } front_move_insert_iterator& operator*() { return *this; } front_move_insert_iterator& operator++() { return *this; } front_move_insert_iterator& operator++(int) { return *this; } }; template <typename C> inline front_move_insert_iterator<C> front_move_inserter(C& x) { return front_move_insert_iterator<C>(x); } template <typename C> class move_insert_iterator { C* container_m; typename C::iterator pos_; public: typedef C container_type; typedef typename C::value_type value_type; typedef typename C::reference reference; typedef typename C::pointer pointer; typedef typename C::difference_type difference_type; typedef std::output_iterator_tag iterator_category; explicit move_insert_iterator(C& x, typename C::iterator pos) : container_m(&x), pos_(pos) {} move_insert_iterator& operator=(reference x) { pos_ = container_m->insert(pos_, ::boost::move(x)); ++pos_; return *this; } move_insert_iterator& operator=(value_type && x) { reference rx = x; return this->operator=(rx); } move_insert_iterator& operator*() { return *this; } move_insert_iterator& operator++() { return *this; } move_insert_iterator& operator++(int) { return *this; } }; template <typename C> inline move_insert_iterator<C> move_inserter(C& x, typename C::iterator it) { return move_insert_iterator<C>(x, it); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 310 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/iterator.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_to_raw_pointer.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_to_raw_pointer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/to_raw_pointer.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/to_raw_pointer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_begin.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/to_raw_pointer.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/pointer_element.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/pointer_element.hpp" 3 4 namespace boost { namespace movelib { namespace detail{ template <typename T> struct first_param { typedef void type; }; template <template <typename, typename...> class TemplateClass, typename T, typename... Args> struct first_param< TemplateClass<T, Args...> > { typedef T type; }; # 129 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/pointer_element.hpp" 3 4 template <typename T> struct has_internal_pointer_element { template <typename X> static char test(int, typename X::element_type*); template <typename X> static int test(...); static const bool value = (1 == sizeof(test<T>(0, 0))); }; template<class Ptr, bool = has_internal_pointer_element<Ptr>::value> struct pointer_element_impl { typedef typename Ptr::element_type type; }; template<class Ptr> struct pointer_element_impl<Ptr, false> { typedef typename boost::movelib::detail::first_param<Ptr>::type type; }; } template <typename Ptr> struct pointer_element { typedef typename ::boost::movelib::detail::pointer_element_impl<Ptr>::type type; }; template <typename T> struct pointer_element<T*> { typedef T type; }; } } # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/to_raw_pointer.hpp" 2 3 4 namespace boost { namespace movelib { template <class T> inline __attribute__ ((__always_inline__)) T* to_raw_pointer(T* p) { return p; } template <class Pointer> inline __attribute__ ((__always_inline__)) typename boost::movelib::pointer_element<Pointer>::type* to_raw_pointer(const Pointer &p) { return ::boost::movelib::to_raw_pointer(p.operator->()); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/to_raw_pointer.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/iterator_to_raw_pointer.hpp" 2 3 4 namespace boost { namespace movelib { namespace detail { template <class T> inline __attribute__ ((__always_inline__)) T* iterator_to_pointer(T* i) { return i; } template <class Iterator> inline __attribute__ ((__always_inline__)) typename boost::movelib::iterator_traits<Iterator>::pointer iterator_to_pointer(const Iterator &i) { return i.operator->(); } template <class Iterator> struct iterator_to_element_ptr { typedef typename boost::movelib::iterator_traits<Iterator>::pointer pointer; typedef typename boost::movelib::pointer_element<pointer>::type element_type; typedef element_type* type; }; } template <class Iterator> inline __attribute__ ((__always_inline__)) typename boost::movelib::detail::iterator_to_element_ptr<Iterator>::type iterator_to_raw_pointer(const Iterator &i) { return ::boost::movelib::to_raw_pointer ( ::boost::movelib::detail::iterator_to_pointer(i) ); } } } # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 2 3 4 namespace boost { # 54 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 3 4 template <typename I, typename O> O move(I f, I l, O result) { while (f != l) { *result = ::boost::move(*f); ++f; ++result; } return result; } # 81 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 3 4 template <typename I, typename O> O move_backward(I f, I l, O result) { while (f != l) { --l; --result; *result = ::boost::move(*l); } return result; } # 112 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 3 4 template <typename I, typename F> F uninitialized_move(I f, I l, F r ) { typedef typename boost::movelib::iterator_traits<I>::value_type input_value_type; F back = r; { try{ while (f != l) { void * const addr = static_cast<void*>(::boost::move_detail::addressof(*r)); ::new(addr) input_value_type(::boost::move(*f)); ++f; ++r; } } catch(...){ for (; back != r; ++back){ boost::movelib::iterator_to_raw_pointer(back)->~input_value_type(); } throw;; } } return r; } # 155 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 3 4 } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 158 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algo/move.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 2 3 4 namespace boost { namespace move_detail { template <typename I, typename F> inline F uninitialized_move_move_iterator(I f, I l, F r ) { return ::boost::uninitialized_move(f, l, r); } # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 3 4 } template <typename I, typename F> inline F uninitialized_copy_or_move(I f, I l, F r, typename ::boost::move_detail::enable_if< move_detail::is_move_iterator<I> >::type* = 0) { return ::boost::move_detail::uninitialized_move_move_iterator(f, l, r); } namespace move_detail { template <typename I, typename F> inline F move_move_iterator(I f, I l, F r ) { return ::boost::move(f, l, r); } # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 3 4 } template <typename I, typename F> inline F copy_or_move(I f, I l, F r, typename ::boost::move_detail::enable_if< move_detail::is_move_iterator<I> >::type* = 0) { return ::boost::move_detail::move_move_iterator(f, l, r); } # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 3 4 template <typename I, typename F> inline F uninitialized_copy_or_move(I f, I l, F r ,typename ::boost::move_detail::disable_if< move_detail::is_move_iterator<I> >::type* = 0 ) { return std::uninitialized_copy(f, l, r); } # 150 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 3 4 template <typename I, typename F> inline F copy_or_move(I f, I l, F r ,typename ::boost::move_detail::disable_if< move_detail::is_move_iterator<I> >::type* = 0 ) { return std::copy(f, l, r); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 165 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/algorithm.hpp" 2 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/detail/config_end.hpp" 1 3 4 # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/move/move.hpp" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/explicit_operator_bool.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/explicit_operator_bool.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/explicit_operator_bool.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/explicit_operator_bool.hpp" 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/explicit_operator_bool.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/coroutine_context.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/coroutine_context.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/coroutine_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/fcontext.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/fcontext.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/fcontext.hpp" 2 3 4 namespace boost { namespace context { namespace detail { typedef void* fcontext_t; struct transfer_t { fcontext_t fctx; void * data; }; extern "C" transfer_t jump_fcontext( fcontext_t const to, void * vp); extern "C" fcontext_t make_fcontext( void * sp, std::size_t size, void (* fn)( transfer_t) ); extern "C" transfer_t ontop_fcontext( fcontext_t const to, void * vp, transfer_t (* fn)( transfer_t) ); }}} # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/coroutine_context.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/preallocated.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/preallocated.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { struct preallocated { void * sp; std::size_t size; stack_context sctx; preallocated() noexcept : sp( 0), size( 0), sctx() { } preallocated( void * sp_, std::size_t size_, stack_context sctx_) noexcept : sp( sp_), size( size_), sctx( sctx_) { } }; }}} # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/coroutine_context.hpp" 2 3 4 namespace boost { namespace coroutines { namespace detail { class coroutine_context { private: template< typename Coro > friend void trampoline( context::detail::transfer_t); template< typename Coro > friend void trampoline_void( context::detail::transfer_t); template< typename Coro > friend void trampoline_pull( context::detail::transfer_t); template< typename Coro > friend void trampoline_push( context::detail::transfer_t); template< typename Coro > friend void trampoline_push_void( context::detail::transfer_t); preallocated palloc_; context::detail::fcontext_t ctx_; public: typedef void( * ctx_fn)( context::detail::transfer_t); coroutine_context(); coroutine_context( ctx_fn fn, preallocated const& palloc); coroutine_context( coroutine_context const&); coroutine_context& operator=( coroutine_context const&); void * jump( coroutine_context &, void * = 0); stack_context & stack_ctx() { return palloc_.sctx; } }; }}} # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/flags.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/flags.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { enum flag_t { flag_started = 1 << 1, flag_running = 1 << 2, flag_complete = 1 << 3, flag_unwind_stack = 1 << 4, flag_force_unwind = 1 << 5 }; struct unwind_t { enum flag_t { force_unwind = 1 }; }; struct synthesized_t { enum flag_t { syntesized = 1 }; }; }}} # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp" 2 3 4 namespace boost { namespace coroutines { namespace detail { template< typename Data > struct parameters { Data * data; bool do_unwind; void * coro; parameters() : data( 0), do_unwind( false), coro( 0) {} explicit parameters( void * coro_) : data( 0), do_unwind( false), coro( coro_) { (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 36, __extension__ __PRETTY_FUNCTION__)); } explicit parameters( Data * data_, void * coro_) : data( data_), do_unwind( false), coro( coro_) { (static_cast <bool> (0 != data) ? void (0) : __assert_fail ("0 != data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 41, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 42, __extension__ __PRETTY_FUNCTION__)); } explicit parameters( unwind_t::flag_t) : data( 0), do_unwind( true) {} }; template< typename Data > struct parameters< Data & > { Data * data; bool do_unwind; void * coro; parameters() : data( 0), do_unwind( false), coro( 0) {} explicit parameters( void * coro_) : data( 0), do_unwind( false), coro( coro_) { (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 63, __extension__ __PRETTY_FUNCTION__)); } explicit parameters( Data * data_, void * coro_) : data( data_), do_unwind( false), coro( coro_) { (static_cast <bool> (0 != data) ? void (0) : __assert_fail ("0 != data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 68, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 69, __extension__ __PRETTY_FUNCTION__)); } explicit parameters( unwind_t::flag_t) : data( 0), do_unwind( true), coro( 0) {} }; template<> struct parameters< void > { bool do_unwind; void * coro; parameters() : do_unwind( false), coro(0) {} parameters( void * coro_) : do_unwind( false), coro( coro_) { (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/parameters.hpp", 89, __extension__ __PRETTY_FUNCTION__)); } explicit parameters( unwind_t::flag_t) : do_unwind( true), coro( 0) {} }; }}} # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/exceptions.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/exceptions.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/scoped_enum.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/scoped_enum.hpp" 3 4 namespace boost { # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/scoped_enum.hpp" 3 4 template <typename EnumType> struct native_type { typedef EnumType type; }; template <typename UnderlyingType, typename EnumType> inline constexpr UnderlyingType underlying_cast(EnumType v) noexcept { return static_cast<UnderlyingType>(v); } template <typename EnumType> inline constexpr EnumType native_value(EnumType e) noexcept { return e; } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/exceptions.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/exceptions.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { struct forced_unwind {}; } enum class coroutine_errc { no_data = 1 } ; system::error_category const& coroutine_category() noexcept; } namespace system { template<> struct is_error_code_enum< coroutines::coroutine_errc > : public true_type {}; inline error_code make_error_code( coroutines::coroutine_errc e) { return error_code( underlying_cast< int >( e), coroutines::coroutine_category() ); } inline error_condition make_error_condition( coroutines::coroutine_errc e) { return error_condition( underlying_cast< int >( e), coroutines::coroutine_category() ); } } namespace coroutines { class coroutine_error : public std::logic_error { private: system::error_code ec_; public: coroutine_error( system::error_code ec) : logic_error( ec.message() ), ec_( ec) {} system::error_code const& code() const noexcept { return ec_; } }; class invalid_result : public coroutine_error { public: invalid_result() : coroutine_error( system::make_error_code( coroutine_errc::no_data) ) {} }; }} # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception_ptr.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/is_output_streamable.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/is_output_streamable.hpp" 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/is_output_streamable.hpp" 3 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/is_output_streamable.hpp" 3 namespace boost { namespace to_string_detail { struct partial_ordering_helper1 { template <class CharT,class Traits> partial_ordering_helper1( std::basic_ostream<CharT,Traits> & ); }; struct partial_ordering_helper2 { template <class T> partial_ordering_helper2( T const & ); }; char operator<<( partial_ordering_helper1, partial_ordering_helper2 ); template <class T,class CharT,class Traits> struct is_output_streamable_impl { static std::basic_ostream<CharT,Traits> & f(); static T const & g(); enum e { value=1!=(sizeof(f()<<g())) }; }; } template <class T, class CharT=char, class Traits=std::char_traits<CharT> > struct is_output_streamable { enum e { value=to_string_detail::is_output_streamable_impl<T,CharT,Traits>::value }; }; } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string.hpp" 3 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string.hpp" 3 namespace boost { template <class T,class U> std::string to_string( std::pair<T,U> const & ); std::string to_string( std::exception const & ); namespace to_string_detail { template <class T> typename disable_if<is_output_streamable<T>,char>::type to_string( T const & ); using boost::to_string; template <class,bool IsOutputStreamable> struct has_to_string_impl; template <class T> struct has_to_string_impl<T,true> { enum e { value=1 }; }; template <class T> struct has_to_string_impl<T,false> { static T const & f(); enum e { value=1!=sizeof(to_string(f())) }; }; } template <class T> inline typename enable_if<is_output_streamable<T>,std::string>::type to_string( T const & x ) { std::ostringstream out; out << x; return out.str(); } template <class T> struct has_to_string { enum e { value=to_string_detail::has_to_string_impl<T,is_output_streamable<T>::value>::value }; }; template <class T,class U> inline std::string to_string( std::pair<T,U> const & x ) { return std::string("(") + to_string(x.first) + ',' + to_string(x.second) + ')'; } inline std::string to_string( std::exception const & x ) { return x.what(); } } # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/object_hex_dump.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/object_hex_dump.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/type_info.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/type_info.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/typeinfo.hpp" 1 3 4 # 135 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/typeinfo.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/demangle.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/demangle.hpp" 3 4 # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/demangle.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/demangle.hpp" 2 3 4 namespace boost { namespace core { inline char const * demangle_alloc( char const * name ) noexcept; inline void demangle_free( char const * name ) noexcept; class scoped_demangled_name { private: char const * m_p; public: explicit scoped_demangled_name( char const * name ) noexcept : m_p( demangle_alloc( name ) ) { } ~scoped_demangled_name() noexcept { demangle_free( m_p ); } char const * get() const noexcept { return m_p; } scoped_demangled_name( scoped_demangled_name const& ) = delete; scoped_demangled_name& operator= ( scoped_demangled_name const& ) = delete; }; inline char const * demangle_alloc( char const * name ) noexcept { int status = 0; std::size_t size = 0; return abi::__cxa_demangle( name, __null, &size, &status ); } inline void demangle_free( char const * name ) noexcept { std::free( const_cast< char* >( name ) ); } inline std::string demangle( char const * name ) { scoped_demangled_name demangled_name( name ); char const * p = demangled_name.get(); if( !p ) p = name; return p; } # 120 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/demangle.hpp" 3 4 } } # 136 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/typeinfo.hpp" 2 3 4 namespace boost { namespace core { typedef std::type_info typeinfo; inline std::string demangled_name( core::typeinfo const & ti ) { return core::demangle( ti.name() ); } } } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/type_info.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/type_info.hpp" 3 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/type_info.hpp" 3 namespace boost { template <class T> inline std::string tag_type_name() { return core::demangle(typeid(T*).name()); } template <class T> inline std::string type_name() { return core::demangle(typeid(T).name()); } namespace exception_detail { struct type_info_ { core::typeinfo const * type_; explicit type_info_( core::typeinfo const & type ): type_(&type) { } friend bool operator<( type_info_ const & a, type_info_ const & b ) { return a.type_!=b.type_ && strcmp(a.type_->name(), b.type_->name()) < 0; } }; } } # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/object_hex_dump.hpp" 2 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/object_hex_dump.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/object_hex_dump.hpp" 3 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/object_hex_dump.hpp" 3 namespace boost { namespace exception_detail { template <class T> inline std::string object_hex_dump( T const & x, std::size_t max_size=16 ) { std::ostringstream s; s << "type: " << type_name<T>() << ", size: " << sizeof(T) << ", dump: "; std::size_t n=sizeof(T)>max_size?max_size:sizeof(T); s.fill('0'); s.width(2); unsigned char const * b=reinterpret_cast<unsigned char const *>(&x); s << std::setw(2) << std::hex << (unsigned int)*b; for( unsigned char const * e=b+n; ++b!=e; ) s << " " << std::setw(2) << std::hex << (unsigned int)*b; return s.str(); } } } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 3 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp" 3 namespace boost { namespace exception_detail { template <bool ToStringAvailable> struct to_string_dispatcher { template <class T,class Stub> static std::string convert( T const & x, Stub ) { return to_string(x); } }; template <> struct to_string_dispatcher<false> { template <class T,class Stub> static std::string convert( T const & x, Stub s ) { return s(x); } template <class T> static std::string convert( T const & x, std::string s ) { return s; } template <class T> static std::string convert( T const & x, char const * s ) { (static_cast <bool> (s!=0) ? void (0) : __assert_fail ("s!=0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/to_string_stub.hpp", 69, __extension__ __PRETTY_FUNCTION__)); return s; } }; namespace to_string_dispatch { template <class T,class Stub> inline std::string dispatch( T const & x, Stub s ) { return to_string_dispatcher<has_to_string<T>::value>::convert(x,s); } } template <class T> inline std::string string_stub_dump( T const & x ) { return "[ " + exception_detail::object_hex_dump(x) + " ]"; } } template <class T> inline std::string to_string_stub( T const & x ) { return exception_detail::to_string_dispatch::dispatch(x,&exception_detail::string_stub_dump<T>); } template <class T,class Stub> inline std::string to_string_stub( T const & x, Stub s ) { return exception_detail::to_string_dispatch::dispatch(x,s); } template <class T,class U,class Stub> inline std::string to_string_stub( std::pair<T,U> const & x, Stub s ) { return std::string("(") + to_string_stub(x.first,s) + ',' + to_string_stub(x.second,s) + ')'; } } # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/error_info_impl.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/error_info_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_nothrow_move_constructible.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_nothrow_move_constructible.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/declval.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/declval.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_rvalue_reference.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_rvalue_reference.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_void.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_void.hpp" 3 4 namespace boost { template <class T> struct is_void : public false_type {}; template<> struct is_void<void> : public true_type {}; template<> struct is_void<const void> : public true_type{}; template<> struct is_void<const volatile void> : public true_type{}; template<> struct is_void<volatile void> : public true_type{}; } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_rvalue_reference.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_reference.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_reference.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_lvalue_reference.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_lvalue_reference.hpp" 3 4 namespace boost { template <class T> struct is_lvalue_reference : public false_type{}; template <class T> struct is_lvalue_reference<T&> : public true_type{}; # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_lvalue_reference.hpp" 3 4 } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_reference.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_rvalue_reference.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_rvalue_reference.hpp" 3 4 namespace boost { template <class T> struct is_rvalue_reference : public false_type {}; template <class T> struct is_rvalue_reference<T&&> : public true_type {}; } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_reference.hpp" 2 3 4 namespace boost { template <class T> struct is_reference : public integral_constant< bool, ::boost::is_lvalue_reference<T>::value || ::boost::is_rvalue_reference<T>::value> {}; } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_rvalue_reference.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_rvalue_reference.hpp" 3 4 namespace boost { namespace type_traits_detail { template <typename T, bool b> struct add_rvalue_reference_helper { typedef T type; }; template <typename T> struct add_rvalue_reference_helper<T, true> { typedef T&& type; }; template <typename T> struct add_rvalue_reference_imp { typedef typename boost::type_traits_detail::add_rvalue_reference_helper <T, (is_void<T>::value == false && is_reference<T>::value == false) >::type type; }; } template <class T> struct add_rvalue_reference { typedef typename boost::type_traits_detail::add_rvalue_reference_imp<T>::type type; }; template <class T> using add_rvalue_reference_t = typename add_rvalue_reference<T>::type; } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/declval.hpp" 2 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/declval.hpp" 3 4 namespace boost { template <typename T> typename add_rvalue_reference<T>::type declval() noexcept; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_reference.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_reference.hpp" 3 4 namespace boost { namespace detail{ template <class T> struct remove_rvalue_ref { typedef T type; }; template <class T> struct remove_rvalue_ref<T&&> { typedef T type; }; } template <class T> struct remove_reference{ typedef typename boost::detail::remove_rvalue_ref<T>::type type; }; template <class T> struct remove_reference<T&>{ typedef T type; }; # 53 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_reference.hpp" 3 4 template <class T> using remove_reference_t = typename remove_reference<T>::type; } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_function.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_function.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_function_cxx_11.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_function_cxx_11.hpp" 3 4 namespace boost { template <class T> struct is_function : public false_type {}; # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_function_cxx_11.hpp" 3 4 template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)const noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)const noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)volatile noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)volatile noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)const volatile noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)const volatile noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)& noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)& noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)const & noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)const & noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)volatile & noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)volatile & noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)const volatile & noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)const volatile & noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)&& noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)&& noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)const && noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)const && noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)volatile && noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)volatile && noexcept(NE)> : public true_type {}; template <class Ret, class...Args , bool NE> struct is_function<Ret (Args...)const volatile && noexcept(NE)> : public true_type {}; template <class Ret, class ...Args , bool NE> struct is_function<Ret(Args..., ...)const volatile && noexcept(NE)> : public true_type {}; # 669 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_function_cxx_11.hpp" 3 4 } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_function.hpp" 2 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/yes_no_type.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/yes_no_type.hpp" 3 4 namespace boost { namespace type_traits { typedef char yes_type; struct no_type { char padding[8]; }; } } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 3 4 namespace boost { # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 3 4 namespace detail{ template <std::size_t N> struct ok_tag { double d; char c[N]; }; template <class T> ok_tag<sizeof(T)> check_is_complete(int); template <class T> char check_is_complete(...); } template <class T> struct is_complete : public integral_constant<bool, ::boost::is_function<typename boost::remove_reference<T>::type>::value || (sizeof(boost::detail::check_is_complete<T>(0)) != sizeof(char))> {}; # 91 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_complete.hpp" 3 4 } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_nothrow_move_constructible.hpp" 2 3 4 # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_nothrow_move_constructible.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/enable_if.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/enable_if.hpp" 3 4 namespace boost { template<bool B, class T = void> struct enable_if_ { typedef T type; }; template<class T> struct enable_if_<false, T> { }; template<bool B, class T = void> using enable_if_t = typename enable_if_<B, T>::type; } # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_nothrow_move_constructible.hpp" 2 3 4 namespace boost{ namespace detail{ template <class T, class Enable = void> struct false_or_cpp11_noexcept_move_constructible: public ::boost::false_type {}; template <class T> struct false_or_cpp11_noexcept_move_constructible < T, typename ::boost::enable_if_<sizeof(T) && noexcept((T(::boost::declval<T>())))>::type > : public ::boost::integral_constant<bool, noexcept((T(::boost::declval<T>())))> {}; } template <class T> struct is_nothrow_move_constructible : public integral_constant<bool, ::boost::detail::false_or_cpp11_noexcept_move_constructible<T>::value> { static_assert(boost::is_complete<T>::value, "Arguments to is_nothrow_move_constructible must be complete types"); }; template <class T> struct is_nothrow_move_constructible<volatile T> : public ::boost::false_type {}; template <class T> struct is_nothrow_move_constructible<const volatile T> : public ::boost::false_type{}; template <class T, std::size_t N> struct is_nothrow_move_constructible<T[N]> : public ::boost::false_type{}; template <class T> struct is_nothrow_move_constructible<T[]> : public ::boost::false_type{}; # 83 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_nothrow_move_constructible.hpp" 3 4 template <> struct is_nothrow_move_constructible<void> : false_type{}; template <> struct is_nothrow_move_constructible<void const> : false_type{}; template <> struct is_nothrow_move_constructible<void volatile> : false_type{}; template <> struct is_nothrow_move_constructible<void const volatile> : false_type{}; template <class T> struct is_nothrow_move_constructible<T&> : public ::boost::true_type{}; template <class T> struct is_nothrow_move_constructible<T&&> : public ::boost::true_type{}; } # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/error_info_impl.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/error_info_impl.hpp" 3 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/error_info_impl.hpp" 3 namespace boost { namespace exception_detail { class error_info_base { public: virtual std::string name_value_string() const = 0; virtual error_info_base * clone() const = 0; virtual ~error_info_base() noexcept { } }; } template <class Tag,class T> class error_info: public exception_detail::error_info_base { exception_detail::error_info_base * clone() const { return new error_info<Tag,T>(*this); } public: typedef T value_type; error_info( value_type const & v ): v_(v) { } error_info( error_info const & x ): v_(x.v_) { } error_info( T && v ) noexcept((boost::is_nothrow_move_constructible<T>::value)): v_(std::move(v)) { } error_info( error_info && x ) noexcept((boost::is_nothrow_move_constructible<T>::value)): v_(std::move(x.v_)) { } ~error_info() noexcept { } value_type const & value() const { return v_; } value_type & value() { return v_; } private: error_info & operator=( error_info const & ); error_info & operator=( error_info && x ); std::string name_value_string() const; value_type v_; }; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/shared_ptr.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/shared_ptr.hpp" 3 4 namespace boost { namespace exception_detail { using boost::shared_ptr; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 2 3 4 # 1 "/usr/include/c++/13/map" 1 3 4 # 58 "/usr/include/c++/13/map" 3 4 # 59 "/usr/include/c++/13/map" 3 # 1 "/usr/include/c++/13/bits/stl_tree.h" 1 3 # 61 "/usr/include/c++/13/bits/stl_tree.h" 3 # 62 "/usr/include/c++/13/bits/stl_tree.h" 3 # 75 "/usr/include/c++/13/bits/stl_tree.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { # 99 "/usr/include/c++/13/bits/stl_tree.h" 3 enum _Rb_tree_color { _S_red = false, _S_black = true }; struct _Rb_tree_node_base { typedef _Rb_tree_node_base* _Base_ptr; typedef const _Rb_tree_node_base* _Const_Base_ptr; _Rb_tree_color _M_color; _Base_ptr _M_parent; _Base_ptr _M_left; _Base_ptr _M_right; static _Base_ptr _S_minimum(_Base_ptr __x) noexcept { while (__x->_M_left != 0) __x = __x->_M_left; return __x; } static _Const_Base_ptr _S_minimum(_Const_Base_ptr __x) noexcept { while (__x->_M_left != 0) __x = __x->_M_left; return __x; } static _Base_ptr _S_maximum(_Base_ptr __x) noexcept { while (__x->_M_right != 0) __x = __x->_M_right; return __x; } static _Const_Base_ptr _S_maximum(_Const_Base_ptr __x) noexcept { while (__x->_M_right != 0) __x = __x->_M_right; return __x; } }; template<typename _Key_compare> struct _Rb_tree_key_compare { _Key_compare _M_key_compare; _Rb_tree_key_compare() noexcept(is_nothrow_default_constructible<_Key_compare>::value) : _M_key_compare() { } _Rb_tree_key_compare(const _Key_compare& __comp) : _M_key_compare(__comp) { } _Rb_tree_key_compare(const _Rb_tree_key_compare&) = default; _Rb_tree_key_compare(_Rb_tree_key_compare&& __x) noexcept(is_nothrow_copy_constructible<_Key_compare>::value) : _M_key_compare(__x._M_key_compare) { } }; struct _Rb_tree_header { _Rb_tree_node_base _M_header; size_t _M_node_count; _Rb_tree_header() noexcept { _M_header._M_color = _S_red; _M_reset(); } _Rb_tree_header(_Rb_tree_header&& __x) noexcept { if (__x._M_header._M_parent != nullptr) _M_move_data(__x); else { _M_header._M_color = _S_red; _M_reset(); } } void _M_move_data(_Rb_tree_header& __from) { _M_header._M_color = __from._M_header._M_color; _M_header._M_parent = __from._M_header._M_parent; _M_header._M_left = __from._M_header._M_left; _M_header._M_right = __from._M_header._M_right; _M_header._M_parent->_M_parent = &_M_header; _M_node_count = __from._M_node_count; __from._M_reset(); } void _M_reset() { _M_header._M_parent = 0; _M_header._M_left = &_M_header; _M_header._M_right = &_M_header; _M_node_count = 0; } }; template<typename _Val> struct _Rb_tree_node : public _Rb_tree_node_base { typedef _Rb_tree_node<_Val>* _Link_type; # 231 "/usr/include/c++/13/bits/stl_tree.h" 3 __gnu_cxx::__aligned_membuf<_Val> _M_storage; _Val* _M_valptr() { return _M_storage._M_ptr(); } const _Val* _M_valptr() const { return _M_storage._M_ptr(); } }; __attribute__ ((__pure__)) _Rb_tree_node_base* _Rb_tree_increment(_Rb_tree_node_base* __x) throw (); __attribute__ ((__pure__)) const _Rb_tree_node_base* _Rb_tree_increment(const _Rb_tree_node_base* __x) throw (); __attribute__ ((__pure__)) _Rb_tree_node_base* _Rb_tree_decrement(_Rb_tree_node_base* __x) throw (); __attribute__ ((__pure__)) const _Rb_tree_node_base* _Rb_tree_decrement(const _Rb_tree_node_base* __x) throw (); template<typename _Tp> struct _Rb_tree_iterator { typedef _Tp value_type; typedef _Tp& reference; typedef _Tp* pointer; typedef bidirectional_iterator_tag iterator_category; typedef ptrdiff_t difference_type; typedef _Rb_tree_iterator<_Tp> _Self; typedef _Rb_tree_node_base::_Base_ptr _Base_ptr; typedef _Rb_tree_node<_Tp>* _Link_type; _Rb_tree_iterator() noexcept : _M_node() { } explicit _Rb_tree_iterator(_Base_ptr __x) noexcept : _M_node(__x) { } reference operator*() const noexcept { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } pointer operator->() const noexcept { return static_cast<_Link_type> (_M_node)->_M_valptr(); } _Self& operator++() noexcept { _M_node = _Rb_tree_increment(_M_node); return *this; } _Self operator++(int) noexcept { _Self __tmp = *this; _M_node = _Rb_tree_increment(_M_node); return __tmp; } _Self& operator--() noexcept { _M_node = _Rb_tree_decrement(_M_node); return *this; } _Self operator--(int) noexcept { _Self __tmp = *this; _M_node = _Rb_tree_decrement(_M_node); return __tmp; } friend bool operator==(const _Self& __x, const _Self& __y) noexcept { return __x._M_node == __y._M_node; } _Base_ptr _M_node; }; template<typename _Tp> struct _Rb_tree_const_iterator { typedef _Tp value_type; typedef const _Tp& reference; typedef const _Tp* pointer; typedef _Rb_tree_iterator<_Tp> iterator; typedef bidirectional_iterator_tag iterator_category; typedef ptrdiff_t difference_type; typedef _Rb_tree_const_iterator<_Tp> _Self; typedef _Rb_tree_node_base::_Const_Base_ptr _Base_ptr; typedef const _Rb_tree_node<_Tp>* _Link_type; _Rb_tree_const_iterator() noexcept : _M_node() { } explicit _Rb_tree_const_iterator(_Base_ptr __x) noexcept : _M_node(__x) { } _Rb_tree_const_iterator(const iterator& __it) noexcept : _M_node(__it._M_node) { } iterator _M_const_cast() const noexcept { return iterator(const_cast<typename iterator::_Base_ptr>(_M_node)); } reference operator*() const noexcept { return *static_cast<_Link_type>(_M_node)->_M_valptr(); } pointer operator->() const noexcept { return static_cast<_Link_type>(_M_node)->_M_valptr(); } _Self& operator++() noexcept { _M_node = _Rb_tree_increment(_M_node); return *this; } _Self operator++(int) noexcept { _Self __tmp = *this; _M_node = _Rb_tree_increment(_M_node); return __tmp; } _Self& operator--() noexcept { _M_node = _Rb_tree_decrement(_M_node); return *this; } _Self operator--(int) noexcept { _Self __tmp = *this; _M_node = _Rb_tree_decrement(_M_node); return __tmp; } friend bool operator==(const _Self& __x, const _Self& __y) noexcept { return __x._M_node == __y._M_node; } _Base_ptr _M_node; }; __attribute__((__nonnull__)) void _Rb_tree_insert_and_rebalance(const bool __insert_left, _Rb_tree_node_base* __x, _Rb_tree_node_base* __p, _Rb_tree_node_base& __header) throw (); __attribute__((__nonnull__,__returns_nonnull__)) _Rb_tree_node_base* _Rb_tree_rebalance_for_erase(_Rb_tree_node_base* const __z, _Rb_tree_node_base& __header) throw (); template<typename _Tree1, typename _Cmp2> struct _Rb_tree_merge_helper { }; template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc = allocator<_Val> > class _Rb_tree { typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<_Rb_tree_node<_Val> >::other _Node_allocator; typedef __gnu_cxx::__alloc_traits<_Node_allocator> _Alloc_traits; protected: typedef _Rb_tree_node_base* _Base_ptr; typedef const _Rb_tree_node_base* _Const_Base_ptr; typedef _Rb_tree_node<_Val>* _Link_type; typedef const _Rb_tree_node<_Val>* _Const_Link_type; private: struct _Reuse_or_alloc_node { _Reuse_or_alloc_node(_Rb_tree& __t) : _M_root(__t._M_root()), _M_nodes(__t._M_rightmost()), _M_t(__t) { if (_M_root) { _M_root->_M_parent = 0; if (_M_nodes->_M_left) _M_nodes = _M_nodes->_M_left; } else _M_nodes = 0; } _Reuse_or_alloc_node(const _Reuse_or_alloc_node&) = delete; ~_Reuse_or_alloc_node() { _M_t._M_erase(static_cast<_Link_type>(_M_root)); } template<typename _Arg> _Link_type operator()(_Arg&& __arg) { _Link_type __node = static_cast<_Link_type>(_M_extract()); if (__node) { _M_t._M_destroy_node(__node); _M_t._M_construct_node(__node, std::forward<_Arg>(__arg)); return __node; } return _M_t._M_create_node(std::forward<_Arg>(__arg)); } private: _Base_ptr _M_extract() { if (!_M_nodes) return _M_nodes; _Base_ptr __node = _M_nodes; _M_nodes = _M_nodes->_M_parent; if (_M_nodes) { if (_M_nodes->_M_right == __node) { _M_nodes->_M_right = 0; if (_M_nodes->_M_left) { _M_nodes = _M_nodes->_M_left; while (_M_nodes->_M_right) _M_nodes = _M_nodes->_M_right; if (_M_nodes->_M_left) _M_nodes = _M_nodes->_M_left; } } else _M_nodes->_M_left = 0; } else _M_root = 0; return __node; } _Base_ptr _M_root; _Base_ptr _M_nodes; _Rb_tree& _M_t; }; struct _Alloc_node { _Alloc_node(_Rb_tree& __t) : _M_t(__t) { } template<typename _Arg> _Link_type operator()(_Arg&& __arg) const { return _M_t._M_create_node(std::forward<_Arg>(__arg)); } private: _Rb_tree& _M_t; }; public: typedef _Key key_type; typedef _Val value_type; typedef value_type* pointer; typedef const value_type* const_pointer; typedef value_type& reference; typedef const value_type& const_reference; typedef size_t size_type; typedef ptrdiff_t difference_type; typedef _Alloc allocator_type; _Node_allocator& _M_get_Node_allocator() noexcept { return this->_M_impl; } const _Node_allocator& _M_get_Node_allocator() const noexcept { return this->_M_impl; } allocator_type get_allocator() const noexcept { return allocator_type(_M_get_Node_allocator()); } protected: _Link_type _M_get_node() { return _Alloc_traits::allocate(_M_get_Node_allocator(), 1); } void _M_put_node(_Link_type __p) noexcept { _Alloc_traits::deallocate(_M_get_Node_allocator(), __p, 1); } # 590 "/usr/include/c++/13/bits/stl_tree.h" 3 template<typename... _Args> void _M_construct_node(_Link_type __node, _Args&&... __args) { try { ::new(__node) _Rb_tree_node<_Val>; _Alloc_traits::construct(_M_get_Node_allocator(), __node->_M_valptr(), std::forward<_Args>(__args)...); } catch(...) { __node->~_Rb_tree_node<_Val>(); _M_put_node(__node); throw; } } template<typename... _Args> _Link_type _M_create_node(_Args&&... __args) { _Link_type __tmp = _M_get_node(); _M_construct_node(__tmp, std::forward<_Args>(__args)...); return __tmp; } void _M_destroy_node(_Link_type __p) noexcept { _Alloc_traits::destroy(_M_get_Node_allocator(), __p->_M_valptr()); __p->~_Rb_tree_node<_Val>(); } void _M_drop_node(_Link_type __p) noexcept { _M_destroy_node(__p); _M_put_node(__p); } template<bool _MoveValue, typename _NodeGen> _Link_type _M_clone_node(_Link_type __x, _NodeGen& __node_gen) { using _Vp = __conditional_t<_MoveValue, value_type&&, const value_type&>; _Link_type __tmp = __node_gen(std::forward<_Vp>(*__x->_M_valptr())); __tmp->_M_color = __x->_M_color; __tmp->_M_left = 0; __tmp->_M_right = 0; return __tmp; } protected: template<typename _Key_compare, bool = __is_pod(_Key_compare)> struct _Rb_tree_impl : public _Node_allocator , public _Rb_tree_key_compare<_Key_compare> , public _Rb_tree_header { typedef _Rb_tree_key_compare<_Key_compare> _Base_key_compare; _Rb_tree_impl() noexcept(is_nothrow_default_constructible<_Node_allocator>::value && is_nothrow_default_constructible<_Base_key_compare>::value) : _Node_allocator() { } _Rb_tree_impl(const _Rb_tree_impl& __x) : _Node_allocator(_Alloc_traits::_S_select_on_copy(__x)) , _Base_key_compare(__x._M_key_compare) , _Rb_tree_header() { } _Rb_tree_impl(_Rb_tree_impl&&) noexcept( is_nothrow_move_constructible<_Base_key_compare>::value ) = default; explicit _Rb_tree_impl(_Node_allocator&& __a) : _Node_allocator(std::move(__a)) { } _Rb_tree_impl(_Rb_tree_impl&& __x, _Node_allocator&& __a) : _Node_allocator(std::move(__a)), _Base_key_compare(std::move(__x)), _Rb_tree_header(std::move(__x)) { } _Rb_tree_impl(const _Key_compare& __comp, _Node_allocator&& __a) : _Node_allocator(std::move(__a)), _Base_key_compare(__comp) { } }; _Rb_tree_impl<_Compare> _M_impl; protected: _Base_ptr& _M_root() noexcept { return this->_M_impl._M_header._M_parent; } _Const_Base_ptr _M_root() const noexcept { return this->_M_impl._M_header._M_parent; } _Base_ptr& _M_leftmost() noexcept { return this->_M_impl._M_header._M_left; } _Const_Base_ptr _M_leftmost() const noexcept { return this->_M_impl._M_header._M_left; } _Base_ptr& _M_rightmost() noexcept { return this->_M_impl._M_header._M_right; } _Const_Base_ptr _M_rightmost() const noexcept { return this->_M_impl._M_header._M_right; } _Link_type _M_mbegin() const noexcept { return static_cast<_Link_type>(this->_M_impl._M_header._M_parent); } _Link_type _M_begin() noexcept { return _M_mbegin(); } _Const_Link_type _M_begin() const noexcept { return static_cast<_Const_Link_type> (this->_M_impl._M_header._M_parent); } _Base_ptr _M_end() noexcept { return &this->_M_impl._M_header; } _Const_Base_ptr _M_end() const noexcept { return &this->_M_impl._M_header; } static const _Key& _S_key(_Const_Link_type __x) { static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{}, "comparison object must be invocable " "with two arguments of key type"); if constexpr (__is_invocable<_Compare&, const _Key&, const _Key&>{}) static_assert( is_invocable_v<const _Compare&, const _Key&, const _Key&>, "comparison object must be invocable as const"); return _KeyOfValue()(*__x->_M_valptr()); } static _Link_type _S_left(_Base_ptr __x) noexcept { return static_cast<_Link_type>(__x->_M_left); } static _Const_Link_type _S_left(_Const_Base_ptr __x) noexcept { return static_cast<_Const_Link_type>(__x->_M_left); } static _Link_type _S_right(_Base_ptr __x) noexcept { return static_cast<_Link_type>(__x->_M_right); } static _Const_Link_type _S_right(_Const_Base_ptr __x) noexcept { return static_cast<_Const_Link_type>(__x->_M_right); } static const _Key& _S_key(_Const_Base_ptr __x) { return _S_key(static_cast<_Const_Link_type>(__x)); } static _Base_ptr _S_minimum(_Base_ptr __x) noexcept { return _Rb_tree_node_base::_S_minimum(__x); } static _Const_Base_ptr _S_minimum(_Const_Base_ptr __x) noexcept { return _Rb_tree_node_base::_S_minimum(__x); } static _Base_ptr _S_maximum(_Base_ptr __x) noexcept { return _Rb_tree_node_base::_S_maximum(__x); } static _Const_Base_ptr _S_maximum(_Const_Base_ptr __x) noexcept { return _Rb_tree_node_base::_S_maximum(__x); } public: typedef _Rb_tree_iterator<value_type> iterator; typedef _Rb_tree_const_iterator<value_type> const_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; using node_type = _Node_handle<_Key, _Val, _Node_allocator>; using insert_return_type = _Node_insert_return< __conditional_t<is_same_v<_Key, _Val>, const_iterator, iterator>, node_type>; pair<_Base_ptr, _Base_ptr> _M_get_insert_unique_pos(const key_type& __k); pair<_Base_ptr, _Base_ptr> _M_get_insert_equal_pos(const key_type& __k); pair<_Base_ptr, _Base_ptr> _M_get_insert_hint_unique_pos(const_iterator __pos, const key_type& __k); pair<_Base_ptr, _Base_ptr> _M_get_insert_hint_equal_pos(const_iterator __pos, const key_type& __k); private: template<typename _Arg, typename _NodeGen> iterator _M_insert_(_Base_ptr __x, _Base_ptr __y, _Arg&& __v, _NodeGen&); iterator _M_insert_node(_Base_ptr __x, _Base_ptr __y, _Link_type __z); template<typename _Arg> iterator _M_insert_lower(_Base_ptr __y, _Arg&& __v); template<typename _Arg> iterator _M_insert_equal_lower(_Arg&& __x); iterator _M_insert_lower_node(_Base_ptr __p, _Link_type __z); iterator _M_insert_equal_lower_node(_Link_type __z); # 881 "/usr/include/c++/13/bits/stl_tree.h" 3 enum { __as_lvalue, __as_rvalue }; template<bool _MoveValues, typename _NodeGen> _Link_type _M_copy(_Link_type, _Base_ptr, _NodeGen&); template<bool _MoveValues, typename _NodeGen> _Link_type _M_copy(const _Rb_tree& __x, _NodeGen& __gen) { _Link_type __root = _M_copy<_MoveValues>(__x._M_mbegin(), _M_end(), __gen); _M_leftmost() = _S_minimum(__root); _M_rightmost() = _S_maximum(__root); _M_impl._M_node_count = __x._M_impl._M_node_count; return __root; } _Link_type _M_copy(const _Rb_tree& __x) { _Alloc_node __an(*this); return _M_copy<__as_lvalue>(__x, __an); } void _M_erase(_Link_type __x); iterator _M_lower_bound(_Link_type __x, _Base_ptr __y, const _Key& __k); const_iterator _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, const _Key& __k) const; iterator _M_upper_bound(_Link_type __x, _Base_ptr __y, const _Key& __k); const_iterator _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, const _Key& __k) const; public: _Rb_tree() = default; _Rb_tree(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_impl(__comp, _Node_allocator(__a)) { } _Rb_tree(const _Rb_tree& __x) : _M_impl(__x._M_impl) { if (__x._M_root() != 0) _M_root() = _M_copy(__x); } _Rb_tree(const allocator_type& __a) : _M_impl(_Node_allocator(__a)) { } _Rb_tree(const _Rb_tree& __x, const allocator_type& __a) : _M_impl(__x._M_impl._M_key_compare, _Node_allocator(__a)) { if (__x._M_root() != nullptr) _M_root() = _M_copy(__x); } _Rb_tree(_Rb_tree&&) = default; _Rb_tree(_Rb_tree&& __x, const allocator_type& __a) : _Rb_tree(std::move(__x), _Node_allocator(__a)) { } private: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, true_type) noexcept(is_nothrow_default_constructible<_Compare>::value) : _M_impl(std::move(__x._M_impl), std::move(__a)) { } _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a, false_type) : _M_impl(__x._M_impl._M_key_compare, std::move(__a)) { if (__x._M_root() != nullptr) _M_move_data(__x, false_type{}); } public: _Rb_tree(_Rb_tree&& __x, _Node_allocator&& __a) noexcept( noexcept( _Rb_tree(std::declval<_Rb_tree&&>(), std::declval<_Node_allocator&&>(), std::declval<typename _Alloc_traits::is_always_equal>())) ) : _Rb_tree(std::move(__x), std::move(__a), typename _Alloc_traits::is_always_equal{}) { } ~_Rb_tree() noexcept { _M_erase(_M_begin()); } _Rb_tree& operator=(const _Rb_tree& __x); _Compare key_comp() const { return _M_impl._M_key_compare; } iterator begin() noexcept { return iterator(this->_M_impl._M_header._M_left); } const_iterator begin() const noexcept { return const_iterator(this->_M_impl._M_header._M_left); } iterator end() noexcept { return iterator(&this->_M_impl._M_header); } const_iterator end() const noexcept { return const_iterator(&this->_M_impl._M_header); } reverse_iterator rbegin() noexcept { return reverse_iterator(end()); } const_reverse_iterator rbegin() const noexcept { return const_reverse_iterator(end()); } reverse_iterator rend() noexcept { return reverse_iterator(begin()); } const_reverse_iterator rend() const noexcept { return const_reverse_iterator(begin()); } [[__nodiscard__]] bool empty() const noexcept { return _M_impl._M_node_count == 0; } size_type size() const noexcept { return _M_impl._M_node_count; } size_type max_size() const noexcept { return _Alloc_traits::max_size(_M_get_Node_allocator()); } void swap(_Rb_tree& __t) noexcept(__is_nothrow_swappable<_Compare>::value); template<typename _Arg> pair<iterator, bool> _M_insert_unique(_Arg&& __x); template<typename _Arg> iterator _M_insert_equal(_Arg&& __x); template<typename _Arg, typename _NodeGen> iterator _M_insert_unique_(const_iterator __pos, _Arg&& __x, _NodeGen&); template<typename _Arg> iterator _M_insert_unique_(const_iterator __pos, _Arg&& __x) { _Alloc_node __an(*this); return _M_insert_unique_(__pos, std::forward<_Arg>(__x), __an); } template<typename _Arg, typename _NodeGen> iterator _M_insert_equal_(const_iterator __pos, _Arg&& __x, _NodeGen&); template<typename _Arg> iterator _M_insert_equal_(const_iterator __pos, _Arg&& __x) { _Alloc_node __an(*this); return _M_insert_equal_(__pos, std::forward<_Arg>(__x), __an); } template<typename... _Args> pair<iterator, bool> _M_emplace_unique(_Args&&... __args); template<typename... _Args> iterator _M_emplace_equal(_Args&&... __args); template<typename... _Args> iterator _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args); template<typename... _Args> iterator _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args); template<typename _Iter> using __same_value_type = is_same<value_type, typename iterator_traits<_Iter>::value_type>; template<typename _InputIterator> __enable_if_t<__same_value_type<_InputIterator>::value> _M_insert_range_unique(_InputIterator __first, _InputIterator __last) { _Alloc_node __an(*this); for (; __first != __last; ++__first) _M_insert_unique_(end(), *__first, __an); } template<typename _InputIterator> __enable_if_t<!__same_value_type<_InputIterator>::value> _M_insert_range_unique(_InputIterator __first, _InputIterator __last) { for (; __first != __last; ++__first) _M_emplace_unique(*__first); } template<typename _InputIterator> __enable_if_t<__same_value_type<_InputIterator>::value> _M_insert_range_equal(_InputIterator __first, _InputIterator __last) { _Alloc_node __an(*this); for (; __first != __last; ++__first) _M_insert_equal_(end(), *__first, __an); } template<typename _InputIterator> __enable_if_t<!__same_value_type<_InputIterator>::value> _M_insert_range_equal(_InputIterator __first, _InputIterator __last) { for (; __first != __last; ++__first) _M_emplace_equal(*__first); } # 1180 "/usr/include/c++/13/bits/stl_tree.h" 3 private: void _M_erase_aux(const_iterator __position); void _M_erase_aux(const_iterator __first, const_iterator __last); public: __attribute ((__abi_tag__ ("cxx11"))) iterator erase(const_iterator __position) { do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); const_iterator __result = __position; ++__result; _M_erase_aux(__position); return __result._M_const_cast(); } __attribute ((__abi_tag__ ("cxx11"))) iterator erase(iterator __position) { do { if (std::__is_constant_evaluated() && !bool(__position != end())) __builtin_unreachable(); } while (false); iterator __result = __position; ++__result; _M_erase_aux(__position); return __result; } # 1229 "/usr/include/c++/13/bits/stl_tree.h" 3 size_type erase(const key_type& __x); __attribute ((__abi_tag__ ("cxx11"))) iterator erase(const_iterator __first, const_iterator __last) { _M_erase_aux(__first, __last); return __last._M_const_cast(); } # 1252 "/usr/include/c++/13/bits/stl_tree.h" 3 void clear() noexcept { _M_erase(_M_begin()); _M_impl._M_reset(); } iterator find(const key_type& __k); const_iterator find(const key_type& __k) const; size_type count(const key_type& __k) const; iterator lower_bound(const key_type& __k) { return _M_lower_bound(_M_begin(), _M_end(), __k); } const_iterator lower_bound(const key_type& __k) const { return _M_lower_bound(_M_begin(), _M_end(), __k); } iterator upper_bound(const key_type& __k) { return _M_upper_bound(_M_begin(), _M_end(), __k); } const_iterator upper_bound(const key_type& __k) const { return _M_upper_bound(_M_begin(), _M_end(), __k); } pair<iterator, iterator> equal_range(const key_type& __k); pair<const_iterator, const_iterator> equal_range(const key_type& __k) const; template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> iterator _M_find_tr(const _Kt& __k) { const _Rb_tree* __const_this = this; return __const_this->_M_find_tr(__k)._M_const_cast(); } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> const_iterator _M_find_tr(const _Kt& __k) const { auto __j = _M_lower_bound_tr(__k); if (__j != end() && _M_impl._M_key_compare(__k, _S_key(__j._M_node))) __j = end(); return __j; } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> size_type _M_count_tr(const _Kt& __k) const { auto __p = _M_equal_range_tr(__k); return std::distance(__p.first, __p.second); } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> iterator _M_lower_bound_tr(const _Kt& __k) { const _Rb_tree* __const_this = this; return __const_this->_M_lower_bound_tr(__k)._M_const_cast(); } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> const_iterator _M_lower_bound_tr(const _Kt& __k) const { auto __x = _M_begin(); auto __y = _M_end(); while (__x != 0) if (!_M_impl._M_key_compare(_S_key(__x), __k)) { __y = __x; __x = _S_left(__x); } else __x = _S_right(__x); return const_iterator(__y); } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> iterator _M_upper_bound_tr(const _Kt& __k) { const _Rb_tree* __const_this = this; return __const_this->_M_upper_bound_tr(__k)._M_const_cast(); } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> const_iterator _M_upper_bound_tr(const _Kt& __k) const { auto __x = _M_begin(); auto __y = _M_end(); while (__x != 0) if (_M_impl._M_key_compare(__k, _S_key(__x))) { __y = __x; __x = _S_left(__x); } else __x = _S_right(__x); return const_iterator(__y); } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> pair<iterator, iterator> _M_equal_range_tr(const _Kt& __k) { const _Rb_tree* __const_this = this; auto __ret = __const_this->_M_equal_range_tr(__k); return { __ret.first._M_const_cast(), __ret.second._M_const_cast() }; } template<typename _Kt, typename _Req = __has_is_transparent_t<_Compare, _Kt>> pair<const_iterator, const_iterator> _M_equal_range_tr(const _Kt& __k) const { auto __low = _M_lower_bound_tr(__k); auto __high = __low; auto& __cmp = _M_impl._M_key_compare; while (__high != end() && !__cmp(__k, _S_key(__high._M_node))) ++__high; return { __low, __high }; } bool __rb_verify() const; _Rb_tree& operator=(_Rb_tree&&) noexcept(_Alloc_traits::_S_nothrow_move() && is_nothrow_move_assignable<_Compare>::value); template<typename _Iterator> void _M_assign_unique(_Iterator, _Iterator); template<typename _Iterator> void _M_assign_equal(_Iterator, _Iterator); private: void _M_move_data(_Rb_tree& __x, true_type) { _M_impl._M_move_data(__x._M_impl); } void _M_move_data(_Rb_tree&, false_type); void _M_move_assign(_Rb_tree&, true_type); void _M_move_assign(_Rb_tree&, false_type); public: insert_return_type _M_reinsert_node_unique(node_type&& __nh) { insert_return_type __ret; if (__nh.empty()) __ret.position = end(); else { do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); auto __res = _M_get_insert_unique_pos(__nh._M_key()); if (__res.second) { __ret.position = _M_insert_node(__res.first, __res.second, __nh._M_ptr); __nh._M_ptr = nullptr; __ret.inserted = true; } else { __ret.node = std::move(__nh); __ret.position = iterator(__res.first); __ret.inserted = false; } } return __ret; } iterator _M_reinsert_node_equal(node_type&& __nh) { iterator __ret; if (__nh.empty()) __ret = end(); else { do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); auto __res = _M_get_insert_equal_pos(__nh._M_key()); if (__res.second) __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); else __ret = _M_insert_equal_lower_node(__nh._M_ptr); __nh._M_ptr = nullptr; } return __ret; } iterator _M_reinsert_node_hint_unique(const_iterator __hint, node_type&& __nh) { iterator __ret; if (__nh.empty()) __ret = end(); else { do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); auto __res = _M_get_insert_hint_unique_pos(__hint, __nh._M_key()); if (__res.second) { __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); __nh._M_ptr = nullptr; } else __ret = iterator(__res.first); } return __ret; } iterator _M_reinsert_node_hint_equal(const_iterator __hint, node_type&& __nh) { iterator __ret; if (__nh.empty()) __ret = end(); else { do { if (std::__is_constant_evaluated() && !bool(_M_get_Node_allocator() == *__nh._M_alloc)) __builtin_unreachable(); } while (false); auto __res = _M_get_insert_hint_equal_pos(__hint, __nh._M_key()); if (__res.second) __ret = _M_insert_node(__res.first, __res.second, __nh._M_ptr); else __ret = _M_insert_equal_lower_node(__nh._M_ptr); __nh._M_ptr = nullptr; } return __ret; } node_type extract(const_iterator __pos) { auto __ptr = _Rb_tree_rebalance_for_erase( __pos._M_const_cast()._M_node, _M_impl._M_header); --_M_impl._M_node_count; return { static_cast<_Link_type>(__ptr), _M_get_Node_allocator() }; } node_type extract(const key_type& __k) { node_type __nh; auto __pos = find(__k); if (__pos != end()) __nh = extract(const_iterator(__pos)); return __nh; } template<typename _Compare2> using _Compatible_tree = _Rb_tree<_Key, _Val, _KeyOfValue, _Compare2, _Alloc>; template<typename, typename> friend class _Rb_tree_merge_helper; template<typename _Compare2> void _M_merge_unique(_Compatible_tree<_Compare2>& __src) noexcept { using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) { auto __pos = __i++; auto __res = _M_get_insert_unique_pos(_KeyOfValue()(*__pos)); if (__res.second) { auto& __src_impl = _Merge_helper::_S_get_impl(__src); auto __ptr = _Rb_tree_rebalance_for_erase( __pos._M_node, __src_impl._M_header); --__src_impl._M_node_count; _M_insert_node(__res.first, __res.second, static_cast<_Link_type>(__ptr)); } } } template<typename _Compare2> void _M_merge_equal(_Compatible_tree<_Compare2>& __src) noexcept { using _Merge_helper = _Rb_tree_merge_helper<_Rb_tree, _Compare2>; for (auto __i = __src.begin(), __end = __src.end(); __i != __end;) { auto __pos = __i++; auto __res = _M_get_insert_equal_pos(_KeyOfValue()(*__pos)); if (__res.second) { auto& __src_impl = _Merge_helper::_S_get_impl(__src); auto __ptr = _Rb_tree_rebalance_for_erase( __pos._M_node, __src_impl._M_header); --__src_impl._M_node_count; _M_insert_node(__res.first, __res.second, static_cast<_Link_type>(__ptr)); } } } friend bool operator==(const _Rb_tree& __x, const _Rb_tree& __y) { return __x.size() == __y.size() && std::equal(__x.begin(), __x.end(), __y.begin()); } friend auto operator<=>(const _Rb_tree& __x, const _Rb_tree& __y) { if constexpr (requires { typename __detail::__synth3way_t<_Val>; }) return std::lexicographical_compare_three_way(__x.begin(), __x.end(), __y.begin(), __y.end(), __detail::__synth3way); } # 1629 "/usr/include/c++/13/bits/stl_tree.h" 3 private: struct _Auto_node { template<typename... _Args> _Auto_node(_Rb_tree& __t, _Args&&... __args) : _M_t(__t), _M_node(__t._M_create_node(std::forward<_Args>(__args)...)) { } ~_Auto_node() { if (_M_node) _M_t._M_drop_node(_M_node); } _Auto_node(_Auto_node&& __n) : _M_t(__n._M_t), _M_node(__n._M_node) { __n._M_node = nullptr; } const _Key& _M_key() const { return _S_key(_M_node); } iterator _M_insert(pair<_Base_ptr, _Base_ptr> __p) { auto __it = _M_t._M_insert_node(__p.first, __p.second, _M_node); _M_node = nullptr; return __it; } iterator _M_insert_equal_lower() { auto __it = _M_t._M_insert_equal_lower_node(_M_node); _M_node = nullptr; return __it; } _Rb_tree& _M_t; _Link_type _M_node; }; }; template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> inline void swap(_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __x, _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& __y) { __x.swap(__y); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_move_data(_Rb_tree& __x, false_type) { if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) _M_move_data(__x, true_type()); else { constexpr bool __move = !__move_if_noexcept_cond<value_type>::value; _Alloc_node __an(*this); _M_root() = _M_copy<__move>(__x, __an); if constexpr (__move) __x.clear(); } } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> inline void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_move_assign(_Rb_tree& __x, true_type) { clear(); if (__x._M_root() != nullptr) _M_move_data(__x, true_type()); std::__alloc_on_move(_M_get_Node_allocator(), __x._M_get_Node_allocator()); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_move_assign(_Rb_tree& __x, false_type) { if (_M_get_Node_allocator() == __x._M_get_Node_allocator()) return _M_move_assign(__x, true_type{}); _Reuse_or_alloc_node __roan(*this); _M_impl._M_reset(); if (__x._M_root() != nullptr) { _M_root() = _M_copy<__as_rvalue>(__x, __roan); __x.clear(); } } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> inline _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: operator=(_Rb_tree&& __x) noexcept(_Alloc_traits::_S_nothrow_move() && is_nothrow_move_assignable<_Compare>::value) { _M_impl._M_key_compare = std::move(__x._M_impl._M_key_compare); _M_move_assign(__x, __bool_constant<_Alloc_traits::_S_nothrow_move()>()); return *this; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Iterator> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_assign_unique(_Iterator __first, _Iterator __last) { _Reuse_or_alloc_node __roan(*this); _M_impl._M_reset(); for (; __first != __last; ++__first) _M_insert_unique_(end(), *__first, __roan); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Iterator> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_assign_equal(_Iterator __first, _Iterator __last) { _Reuse_or_alloc_node __roan(*this); _M_impl._M_reset(); for (; __first != __last; ++__first) _M_insert_equal_(end(), *__first, __roan); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>& _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: operator=(const _Rb_tree& __x) { if (this != std::__addressof(__x)) { if (_Alloc_traits::_S_propagate_on_copy_assign()) { auto& __this_alloc = this->_M_get_Node_allocator(); auto& __that_alloc = __x._M_get_Node_allocator(); if (!_Alloc_traits::_S_always_equal() && __this_alloc != __that_alloc) { clear(); std::__alloc_on_copy(__this_alloc, __that_alloc); } } _Reuse_or_alloc_node __roan(*this); _M_impl._M_reset(); _M_impl._M_key_compare = __x._M_impl._M_key_compare; if (__x._M_root() != 0) _M_root() = _M_copy<__as_lvalue>(__x, __roan); } return *this; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg, typename _NodeGen> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_(_Base_ptr __x, _Base_ptr __p, _Arg&& __v, _NodeGen& __node_gen) { bool __insert_left = (__x != 0 || __p == _M_end() || _M_impl._M_key_compare(_KeyOfValue()(__v), _S_key(__p))); _Link_type __z = __node_gen(std::forward<_Arg>(__v)); _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, this->_M_impl._M_header); ++_M_impl._M_node_count; return iterator(__z); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_lower(_Base_ptr __p, _Arg&& __v) { bool __insert_left = (__p == _M_end() || !_M_impl._M_key_compare(_S_key(__p), _KeyOfValue()(__v))); _Link_type __z = _M_create_node(std::forward<_Arg>(__v)); _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, this->_M_impl._M_header); ++_M_impl._M_node_count; return iterator(__z); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal_lower(_Arg&& __v) { _Link_type __x = _M_begin(); _Base_ptr __y = _M_end(); while (__x != 0) { __y = __x; __x = !_M_impl._M_key_compare(_S_key(__x), _KeyOfValue()(__v)) ? _S_left(__x) : _S_right(__x); } return _M_insert_lower(__y, std::forward<_Arg>(__v)); } template<typename _Key, typename _Val, typename _KoV, typename _Compare, typename _Alloc> template<bool _MoveValues, typename _NodeGen> typename _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>::_Link_type _Rb_tree<_Key, _Val, _KoV, _Compare, _Alloc>:: _M_copy(_Link_type __x, _Base_ptr __p, _NodeGen& __node_gen) { _Link_type __top = _M_clone_node<_MoveValues>(__x, __node_gen); __top->_M_parent = __p; try { if (__x->_M_right) __top->_M_right = _M_copy<_MoveValues>(_S_right(__x), __top, __node_gen); __p = __top; __x = _S_left(__x); while (__x != 0) { _Link_type __y = _M_clone_node<_MoveValues>(__x, __node_gen); __p->_M_left = __y; __y->_M_parent = __p; if (__x->_M_right) __y->_M_right = _M_copy<_MoveValues>(_S_right(__x), __y, __node_gen); __p = __y; __x = _S_left(__x); } } catch(...) { _M_erase(__top); throw; } return __top; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase(_Link_type __x) { while (__x != 0) { _M_erase(_S_right(__x)); _Link_type __y = _S_left(__x); _M_drop_node(__x); __x = __y; } } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_lower_bound(_Link_type __x, _Base_ptr __y, const _Key& __k) { while (__x != 0) if (!_M_impl._M_key_compare(_S_key(__x), __k)) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return iterator(__y); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_lower_bound(_Const_Link_type __x, _Const_Base_ptr __y, const _Key& __k) const { while (__x != 0) if (!_M_impl._M_key_compare(_S_key(__x), __k)) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return const_iterator(__y); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_upper_bound(_Link_type __x, _Base_ptr __y, const _Key& __k) { while (__x != 0) if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return iterator(__y); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_upper_bound(_Const_Link_type __x, _Const_Base_ptr __y, const _Key& __k) const { while (__x != 0) if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else __x = _S_right(__x); return const_iterator(__y); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: equal_range(const _Key& __k) { _Link_type __x = _M_begin(); _Base_ptr __y = _M_end(); while (__x != 0) { if (_M_impl._M_key_compare(_S_key(__x), __k)) __x = _S_right(__x); else if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else { _Link_type __xu(__x); _Base_ptr __yu(__y); __y = __x, __x = _S_left(__x); __xu = _S_right(__xu); return pair<iterator, iterator>(_M_lower_bound(__x, __y, __k), _M_upper_bound(__xu, __yu, __k)); } } return pair<iterator, iterator>(iterator(__y), iterator(__y)); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: equal_range(const _Key& __k) const { _Const_Link_type __x = _M_begin(); _Const_Base_ptr __y = _M_end(); while (__x != 0) { if (_M_impl._M_key_compare(_S_key(__x), __k)) __x = _S_right(__x); else if (_M_impl._M_key_compare(__k, _S_key(__x))) __y = __x, __x = _S_left(__x); else { _Const_Link_type __xu(__x); _Const_Base_ptr __yu(__y); __y = __x, __x = _S_left(__x); __xu = _S_right(__xu); return pair<const_iterator, const_iterator>(_M_lower_bound(__x, __y, __k), _M_upper_bound(__xu, __yu, __k)); } } return pair<const_iterator, const_iterator>(const_iterator(__y), const_iterator(__y)); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: swap(_Rb_tree& __t) noexcept(__is_nothrow_swappable<_Compare>::value) { if (_M_root() == 0) { if (__t._M_root() != 0) _M_impl._M_move_data(__t._M_impl); } else if (__t._M_root() == 0) __t._M_impl._M_move_data(_M_impl); else { std::swap(_M_root(),__t._M_root()); std::swap(_M_leftmost(),__t._M_leftmost()); std::swap(_M_rightmost(),__t._M_rightmost()); _M_root()->_M_parent = _M_end(); __t._M_root()->_M_parent = __t._M_end(); std::swap(this->_M_impl._M_node_count, __t._M_impl._M_node_count); } std::swap(this->_M_impl._M_key_compare, __t._M_impl._M_key_compare); _Alloc_traits::_S_on_swap(_M_get_Node_allocator(), __t._M_get_Node_allocator()); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_unique_pos(const key_type& __k) { typedef pair<_Base_ptr, _Base_ptr> _Res; _Link_type __x = _M_begin(); _Base_ptr __y = _M_end(); bool __comp = true; while (__x != 0) { __y = __x; __comp = _M_impl._M_key_compare(__k, _S_key(__x)); __x = __comp ? _S_left(__x) : _S_right(__x); } iterator __j = iterator(__y); if (__comp) { if (__j == begin()) return _Res(__x, __y); else --__j; } if (_M_impl._M_key_compare(_S_key(__j._M_node), __k)) return _Res(__x, __y); return _Res(__j._M_node, 0); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_equal_pos(const key_type& __k) { typedef pair<_Base_ptr, _Base_ptr> _Res; _Link_type __x = _M_begin(); _Base_ptr __y = _M_end(); while (__x != 0) { __y = __x; __x = _M_impl._M_key_compare(__k, _S_key(__x)) ? _S_left(__x) : _S_right(__x); } return _Res(__x, __y); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator, bool> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_unique(_Arg&& __v) { typedef pair<iterator, bool> _Res; pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_unique_pos(_KeyOfValue()(__v)); if (__res.second) { _Alloc_node __an(*this); return _Res(_M_insert_(__res.first, __res.second, std::forward<_Arg>(__v), __an), true); } return _Res(iterator(__res.first), false); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal(_Arg&& __v) { pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_equal_pos(_KeyOfValue()(__v)); _Alloc_node __an(*this); return _M_insert_(__res.first, __res.second, std::forward<_Arg>(__v), __an); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_hint_unique_pos(const_iterator __position, const key_type& __k) { iterator __pos = __position._M_const_cast(); typedef pair<_Base_ptr, _Base_ptr> _Res; if (__pos._M_node == _M_end()) { if (size() > 0 && _M_impl._M_key_compare(_S_key(_M_rightmost()), __k)) return _Res(0, _M_rightmost()); else return _M_get_insert_unique_pos(__k); } else if (_M_impl._M_key_compare(__k, _S_key(__pos._M_node))) { iterator __before = __pos; if (__pos._M_node == _M_leftmost()) return _Res(_M_leftmost(), _M_leftmost()); else if (_M_impl._M_key_compare(_S_key((--__before)._M_node), __k)) { if (_S_right(__before._M_node) == 0) return _Res(0, __before._M_node); else return _Res(__pos._M_node, __pos._M_node); } else return _M_get_insert_unique_pos(__k); } else if (_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) { iterator __after = __pos; if (__pos._M_node == _M_rightmost()) return _Res(0, _M_rightmost()); else if (_M_impl._M_key_compare(__k, _S_key((++__after)._M_node))) { if (_S_right(__pos._M_node) == 0) return _Res(0, __pos._M_node); else return _Res(__after._M_node, __after._M_node); } else return _M_get_insert_unique_pos(__k); } else return _Res(__pos._M_node, 0); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg, typename _NodeGen> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_unique_(const_iterator __position, _Arg&& __v, _NodeGen& __node_gen) { pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_hint_unique_pos(__position, _KeyOfValue()(__v)); if (__res.second) return _M_insert_(__res.first, __res.second, std::forward<_Arg>(__v), __node_gen); return iterator(__res.first); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> pair<typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr, typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_Base_ptr> _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_get_insert_hint_equal_pos(const_iterator __position, const key_type& __k) { iterator __pos = __position._M_const_cast(); typedef pair<_Base_ptr, _Base_ptr> _Res; if (__pos._M_node == _M_end()) { if (size() > 0 && !_M_impl._M_key_compare(__k, _S_key(_M_rightmost()))) return _Res(0, _M_rightmost()); else return _M_get_insert_equal_pos(__k); } else if (!_M_impl._M_key_compare(_S_key(__pos._M_node), __k)) { iterator __before = __pos; if (__pos._M_node == _M_leftmost()) return _Res(_M_leftmost(), _M_leftmost()); else if (!_M_impl._M_key_compare(__k, _S_key((--__before)._M_node))) { if (_S_right(__before._M_node) == 0) return _Res(0, __before._M_node); else return _Res(__pos._M_node, __pos._M_node); } else return _M_get_insert_equal_pos(__k); } else { iterator __after = __pos; if (__pos._M_node == _M_rightmost()) return _Res(0, _M_rightmost()); else if (!_M_impl._M_key_compare(_S_key((++__after)._M_node), __k)) { if (_S_right(__pos._M_node) == 0) return _Res(0, __pos._M_node); else return _Res(__after._M_node, __after._M_node); } else return _Res(0, 0); } } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename _Arg, typename _NodeGen> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal_(const_iterator __position, _Arg&& __v, _NodeGen& __node_gen) { pair<_Base_ptr, _Base_ptr> __res = _M_get_insert_hint_equal_pos(__position, _KeyOfValue()(__v)); if (__res.second) return _M_insert_(__res.first, __res.second, std::forward<_Arg>(__v), __node_gen); return _M_insert_equal_lower(std::forward<_Arg>(__v)); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_node(_Base_ptr __x, _Base_ptr __p, _Link_type __z) -> iterator { bool __insert_left = (__x != 0 || __p == _M_end() || _M_impl._M_key_compare(_S_key(__z), _S_key(__p))); _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, this->_M_impl._M_header); ++_M_impl._M_node_count; return iterator(__z); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_lower_node(_Base_ptr __p, _Link_type __z) -> iterator { bool __insert_left = (__p == _M_end() || !_M_impl._M_key_compare(_S_key(__p), _S_key(__z))); _Rb_tree_insert_and_rebalance(__insert_left, __z, __p, this->_M_impl._M_header); ++_M_impl._M_node_count; return iterator(__z); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_insert_equal_lower_node(_Link_type __z) -> iterator { _Link_type __x = _M_begin(); _Base_ptr __y = _M_end(); while (__x != 0) { __y = __x; __x = !_M_impl._M_key_compare(_S_key(__x), _S_key(__z)) ? _S_left(__x) : _S_right(__x); } return _M_insert_lower_node(__y, __z); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename... _Args> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_emplace_unique(_Args&&... __args) -> pair<iterator, bool> { _Auto_node __z(*this, std::forward<_Args>(__args)...); auto __res = _M_get_insert_unique_pos(__z._M_key()); if (__res.second) return {__z._M_insert(__res), true}; return {iterator(__res.first), false}; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename... _Args> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_emplace_equal(_Args&&... __args) -> iterator { _Auto_node __z(*this, std::forward<_Args>(__args)...); auto __res = _M_get_insert_equal_pos(__z._M_key()); return __z._M_insert(__res); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename... _Args> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_emplace_hint_unique(const_iterator __pos, _Args&&... __args) -> iterator { _Auto_node __z(*this, std::forward<_Args>(__args)...); auto __res = _M_get_insert_hint_unique_pos(__pos, __z._M_key()); if (__res.second) return __z._M_insert(__res); return iterator(__res.first); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> template<typename... _Args> auto _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_emplace_hint_equal(const_iterator __pos, _Args&&... __args) -> iterator { _Auto_node __z(*this, std::forward<_Args>(__args)...); auto __res = _M_get_insert_hint_equal_pos(__pos, __z._M_key()); if (__res.second) return __z._M_insert(__res); return __z._M_insert_equal_lower(); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase_aux(const_iterator __position) { _Link_type __y = static_cast<_Link_type>(_Rb_tree_rebalance_for_erase (const_cast<_Base_ptr>(__position._M_node), this->_M_impl._M_header)); _M_drop_node(__y); --_M_impl._M_node_count; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> void _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: _M_erase_aux(const_iterator __first, const_iterator __last) { if (__first == begin() && __last == end()) clear(); else while (__first != __last) _M_erase_aux(__first++); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: erase(const _Key& __x) { pair<iterator, iterator> __p = equal_range(__x); const size_type __old_size = size(); _M_erase_aux(__p.first, __p.second); return __old_size - size(); } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: find(const _Key& __k) { iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); return (__j == end() || _M_impl._M_key_compare(__k, _S_key(__j._M_node))) ? end() : __j; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: find(const _Key& __k) const { const_iterator __j = _M_lower_bound(_M_begin(), _M_end(), __k); return (__j == end() || _M_impl._M_key_compare(__k, _S_key(__j._M_node))) ? end() : __j; } template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> typename _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: count(const _Key& __k) const { pair<const_iterator, const_iterator> __p = equal_range(__k); const size_type __n = std::distance(__p.first, __p.second); return __n; } __attribute__ ((__pure__)) unsigned int _Rb_tree_black_count(const _Rb_tree_node_base* __node, const _Rb_tree_node_base* __root) throw (); template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc> bool _Rb_tree<_Key,_Val,_KeyOfValue,_Compare,_Alloc>::__rb_verify() const { if (_M_impl._M_node_count == 0 || begin() == end()) return _M_impl._M_node_count == 0 && begin() == end() && this->_M_impl._M_header._M_left == _M_end() && this->_M_impl._M_header._M_right == _M_end(); unsigned int __len = _Rb_tree_black_count(_M_leftmost(), _M_root()); for (const_iterator __it = begin(); __it != end(); ++__it) { _Const_Link_type __x = static_cast<_Const_Link_type>(__it._M_node); _Const_Link_type __L = _S_left(__x); _Const_Link_type __R = _S_right(__x); if (__x->_M_color == _S_red) if ((__L && __L->_M_color == _S_red) || (__R && __R->_M_color == _S_red)) return false; if (__L && _M_impl._M_key_compare(_S_key(__x), _S_key(__L))) return false; if (__R && _M_impl._M_key_compare(_S_key(__R), _S_key(__x))) return false; if (!__L && !__R && _Rb_tree_black_count(__x, _M_root()) != __len) return false; } if (_M_leftmost() != _Rb_tree_node_base::_S_minimum(_M_root())) return false; if (_M_rightmost() != _Rb_tree_node_base::_S_maximum(_M_root())) return false; return true; } template<typename _Key, typename _Val, typename _Sel, typename _Cmp1, typename _Alloc, typename _Cmp2> struct _Rb_tree_merge_helper<_Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>, _Cmp2> { private: friend class _Rb_tree<_Key, _Val, _Sel, _Cmp1, _Alloc>; static auto& _S_get_impl(_Rb_tree<_Key, _Val, _Sel, _Cmp2, _Alloc>& __tree) { return __tree._M_impl; } }; } # 63 "/usr/include/c++/13/map" 2 3 # 1 "/usr/include/c++/13/bits/stl_map.h" 1 3 # 66 "/usr/include/c++/13/bits/stl_map.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> class multimap; # 100 "/usr/include/c++/13/bits/stl_map.h" 3 template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>, typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > > class map { public: typedef _Key key_type; typedef _Tp mapped_type; typedef std::pair<const _Key, _Tp> value_type; typedef _Compare key_compare; typedef _Alloc allocator_type; private: # 125 "/usr/include/c++/13/bits/stl_map.h" 3 static_assert(is_same<typename _Alloc::value_type, value_type>::value, "std::map must have the same value_type as its allocator"); public: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" class value_compare : public std::binary_function<value_type, value_type, bool> { friend class map<_Key, _Tp, _Compare, _Alloc>; protected: _Compare comp; value_compare(_Compare __c) : comp(__c) { } public: bool operator()(const value_type& __x, const value_type& __y) const { return comp(__x.first, __y.first); } }; #pragma GCC diagnostic pop private: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<value_type>::other _Pair_alloc_type; typedef _Rb_tree<key_type, value_type, _Select1st<value_type>, key_compare, _Pair_alloc_type> _Rep_type; _Rep_type _M_t; typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; template<typename _Up, typename _Vp = remove_reference_t<_Up>> static constexpr bool __usable_key = __or_v<is_same<const _Vp, const _Key>, __and_<is_scalar<_Vp>, is_scalar<_Key>>>; public: typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Rep_type::iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::size_type size_type; typedef typename _Rep_type::difference_type difference_type; typedef typename _Rep_type::reverse_iterator reverse_iterator; typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; using node_type = typename _Rep_type::node_type; using insert_return_type = typename _Rep_type::insert_return_type; # 197 "/usr/include/c++/13/bits/stl_map.h" 3 map() = default; explicit map(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { } # 219 "/usr/include/c++/13/bits/stl_map.h" 3 map(const map&) = default; map(map&&) = default; # 240 "/usr/include/c++/13/bits/stl_map.h" 3 map(initializer_list<value_type> __l, const _Compare& __comp = _Compare(), const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } explicit map(const allocator_type& __a) : _M_t(_Pair_alloc_type(__a)) { } map(const map& __m, const __type_identity_t<allocator_type>& __a) : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } map(map&& __m, const __type_identity_t<allocator_type>& __a) noexcept(is_nothrow_copy_constructible<_Compare>::value && _Alloc_traits::_S_always_equal()) : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } map(initializer_list<value_type> __l, const allocator_type& __a) : _M_t(_Pair_alloc_type(__a)) { _M_t._M_insert_range_unique(__l.begin(), __l.end()); } template<typename _InputIterator> map(_InputIterator __first, _InputIterator __last, const allocator_type& __a) : _M_t(_Pair_alloc_type(__a)) { _M_t._M_insert_range_unique(__first, __last); } # 284 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename _InputIterator> map(_InputIterator __first, _InputIterator __last) : _M_t() { _M_t._M_insert_range_unique(__first, __last); } # 301 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename _InputIterator> map(_InputIterator __first, _InputIterator __last, const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { _M_t._M_insert_range_unique(__first, __last); } ~map() = default; # 330 "/usr/include/c++/13/bits/stl_map.h" 3 map& operator=(const map&) = default; map& operator=(map&&) = default; # 348 "/usr/include/c++/13/bits/stl_map.h" 3 map& operator=(initializer_list<value_type> __l) { _M_t._M_assign_unique(__l.begin(), __l.end()); return *this; } allocator_type get_allocator() const noexcept { return allocator_type(_M_t.get_allocator()); } iterator begin() noexcept { return _M_t.begin(); } const_iterator begin() const noexcept { return _M_t.begin(); } iterator end() noexcept { return _M_t.end(); } const_iterator end() const noexcept { return _M_t.end(); } reverse_iterator rbegin() noexcept { return _M_t.rbegin(); } const_reverse_iterator rbegin() const noexcept { return _M_t.rbegin(); } reverse_iterator rend() noexcept { return _M_t.rend(); } const_reverse_iterator rend() const noexcept { return _M_t.rend(); } const_iterator cbegin() const noexcept { return _M_t.begin(); } const_iterator cend() const noexcept { return _M_t.end(); } const_reverse_iterator crbegin() const noexcept { return _M_t.rbegin(); } const_reverse_iterator crend() const noexcept { return _M_t.rend(); } [[__nodiscard__]] bool empty() const noexcept { return _M_t.empty(); } size_type size() const noexcept { return _M_t.size(); } size_type max_size() const noexcept { return _M_t.max_size(); } # 503 "/usr/include/c++/13/bits/stl_map.h" 3 mapped_type& operator[](const key_type& __k) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, std::tuple<const key_type&>(__k), std::tuple<>()); return (*__i).second; } mapped_type& operator[](key_type&& __k) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::tuple<>()); return (*__i).second; } # 548 "/usr/include/c++/13/bits/stl_map.h" 3 mapped_type& at(const key_type& __k) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __throw_out_of_range(("map::at")); return (*__i).second; } const mapped_type& at(const key_type& __k) const { const_iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) __throw_out_of_range(("map::at")); return (*__i).second; } # 586 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename... _Args> std::pair<iterator, bool> emplace(_Args&&... __args) { if constexpr (sizeof...(_Args) == 2) if constexpr (is_same_v<allocator_type, allocator<value_type>>) { auto&& [__a, __v] = pair<_Args&...>(__args...); if constexpr (__usable_key<decltype(__a)>) { const key_type& __k = __a; iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) { __i = emplace_hint(__i, std::forward<_Args>(__args)...); return {__i, true}; } return {__i, false}; } } return _M_t._M_emplace_unique(std::forward<_Args>(__args)...); } # 636 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename... _Args> iterator emplace_hint(const_iterator __pos, _Args&&... __args) { return _M_t._M_emplace_hint_unique(__pos, std::forward<_Args>(__args)...); } node_type extract(const_iterator __pos) { do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); return _M_t.extract(__pos); } node_type extract(const key_type& __x) { return _M_t.extract(__x); } insert_return_type insert(node_type&& __nh) { return _M_t._M_reinsert_node_unique(std::move(__nh)); } iterator insert(const_iterator __hint, node_type&& __nh) { return _M_t._M_reinsert_node_hint_unique(__hint, std::move(__nh)); } template<typename, typename> friend struct std::_Rb_tree_merge_helper; template<typename _Cmp2> void merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) { using _Merge_helper = _Rb_tree_merge_helper<map, _Cmp2>; _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); } template<typename _Cmp2> void merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) { merge(__source); } template<typename _Cmp2> void merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) { using _Merge_helper = _Rb_tree_merge_helper<map, _Cmp2>; _M_t._M_merge_unique(_Merge_helper::_S_get_tree(__source)); } template<typename _Cmp2> void merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) { merge(__source); } # 721 "/usr/include/c++/13/bits/stl_map.h" 3 template <typename... _Args> pair<iterator, bool> try_emplace(const key_type& __k, _Args&&... __args) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) { __i = emplace_hint(__i, std::piecewise_construct, std::forward_as_tuple(__k), std::forward_as_tuple( std::forward<_Args>(__args)...)); return {__i, true}; } return {__i, false}; } template <typename... _Args> pair<iterator, bool> try_emplace(key_type&& __k, _Args&&... __args) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) { __i = emplace_hint(__i, std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::forward_as_tuple( std::forward<_Args>(__args)...)); return {__i, true}; } return {__i, false}; } # 781 "/usr/include/c++/13/bits/stl_map.h" 3 template <typename... _Args> iterator try_emplace(const_iterator __hint, const key_type& __k, _Args&&... __args) { iterator __i; auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); if (__true_hint.second) __i = emplace_hint(iterator(__true_hint.second), std::piecewise_construct, std::forward_as_tuple(__k), std::forward_as_tuple( std::forward<_Args>(__args)...)); else __i = iterator(__true_hint.first); return __i; } template <typename... _Args> iterator try_emplace(const_iterator __hint, key_type&& __k, _Args&&... __args) { iterator __i; auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); if (__true_hint.second) __i = emplace_hint(iterator(__true_hint.second), std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::forward_as_tuple( std::forward<_Args>(__args)...)); else __i = iterator(__true_hint.first); return __i; } # 834 "/usr/include/c++/13/bits/stl_map.h" 3 std::pair<iterator, bool> insert(const value_type& __x) { return _M_t._M_insert_unique(__x); } std::pair<iterator, bool> insert(value_type&& __x) { return _M_t._M_insert_unique(std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair>::value, pair<iterator, bool>> insert(_Pair&& __x) { using _P2 = remove_reference_t<_Pair>; if constexpr (__is_pair<remove_const_t<_P2>>) if constexpr (is_same_v<allocator_type, allocator<value_type>>) if constexpr (__usable_key<typename _P2::first_type>) { const key_type& __k = __x.first; iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) { __i = emplace_hint(__i, std::forward<_Pair>(__x)); return {__i, true}; } return {__i, false}; } return _M_t._M_emplace_unique(std::forward<_Pair>(__x)); } # 879 "/usr/include/c++/13/bits/stl_map.h" 3 void insert(std::initializer_list<value_type> __list) { insert(__list.begin(), __list.end()); } # 908 "/usr/include/c++/13/bits/stl_map.h" 3 iterator insert(const_iterator __position, const value_type& __x) { return _M_t._M_insert_unique_(__position, __x); } iterator insert(const_iterator __position, value_type&& __x) { return _M_t._M_insert_unique_(__position, std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair>::value, iterator> insert(const_iterator __position, _Pair&& __x) { return _M_t._M_emplace_hint_unique(__position, std::forward<_Pair>(__x)); } # 941 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename _InputIterator> void insert(_InputIterator __first, _InputIterator __last) { _M_t._M_insert_range_unique(__first, __last); } # 966 "/usr/include/c++/13/bits/stl_map.h" 3 template <typename _Obj> pair<iterator, bool> insert_or_assign(const key_type& __k, _Obj&& __obj) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) { __i = emplace_hint(__i, std::piecewise_construct, std::forward_as_tuple(__k), std::forward_as_tuple( std::forward<_Obj>(__obj))); return {__i, true}; } (*__i).second = std::forward<_Obj>(__obj); return {__i, false}; } template <typename _Obj> pair<iterator, bool> insert_or_assign(key_type&& __k, _Obj&& __obj) { iterator __i = lower_bound(__k); if (__i == end() || key_comp()(__k, (*__i).first)) { __i = emplace_hint(__i, std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::forward_as_tuple( std::forward<_Obj>(__obj))); return {__i, true}; } (*__i).second = std::forward<_Obj>(__obj); return {__i, false}; } # 1021 "/usr/include/c++/13/bits/stl_map.h" 3 template <typename _Obj> iterator insert_or_assign(const_iterator __hint, const key_type& __k, _Obj&& __obj) { iterator __i; auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); if (__true_hint.second) { return emplace_hint(iterator(__true_hint.second), std::piecewise_construct, std::forward_as_tuple(__k), std::forward_as_tuple( std::forward<_Obj>(__obj))); } __i = iterator(__true_hint.first); (*__i).second = std::forward<_Obj>(__obj); return __i; } template <typename _Obj> iterator insert_or_assign(const_iterator __hint, key_type&& __k, _Obj&& __obj) { iterator __i; auto __true_hint = _M_t._M_get_insert_hint_unique_pos(__hint, __k); if (__true_hint.second) { return emplace_hint(iterator(__true_hint.second), std::piecewise_construct, std::forward_as_tuple(std::move(__k)), std::forward_as_tuple( std::forward<_Obj>(__obj))); } __i = iterator(__true_hint.first); (*__i).second = std::forward<_Obj>(__obj); return __i; } # 1080 "/usr/include/c++/13/bits/stl_map.h" 3 iterator erase(const_iterator __position) { return _M_t.erase(__position); } __attribute ((__abi_tag__ ("cxx11"))) iterator erase(iterator __position) { return _M_t.erase(__position); } # 1117 "/usr/include/c++/13/bits/stl_map.h" 3 size_type erase(const key_type& __x) { return _M_t.erase(__x); } # 1137 "/usr/include/c++/13/bits/stl_map.h" 3 iterator erase(const_iterator __first, const_iterator __last) { return _M_t.erase(__first, __last); } # 1171 "/usr/include/c++/13/bits/stl_map.h" 3 void swap(map& __x) noexcept(__is_nothrow_swappable<_Compare>::value) { _M_t.swap(__x._M_t); } void clear() noexcept { _M_t.clear(); } key_compare key_comp() const { return _M_t.key_comp(); } value_compare value_comp() const { return value_compare(_M_t.key_comp()); } # 1218 "/usr/include/c++/13/bits/stl_map.h" 3 iterator find(const key_type& __x) { return _M_t.find(__x); } template<typename _Kt> auto find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) { return _M_t._M_find_tr(__x); } # 1243 "/usr/include/c++/13/bits/stl_map.h" 3 const_iterator find(const key_type& __x) const { return _M_t.find(__x); } template<typename _Kt> auto find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) { return _M_t._M_find_tr(__x); } # 1264 "/usr/include/c++/13/bits/stl_map.h" 3 size_type count(const key_type& __x) const { return _M_t.find(__x) == _M_t.end() ? 0 : 1; } template<typename _Kt> auto count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) { return _M_t._M_count_tr(__x); } # 1283 "/usr/include/c++/13/bits/stl_map.h" 3 bool contains(const key_type& __x) const { return _M_t.find(__x) != _M_t.end(); } template<typename _Kt> auto contains(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x), void(), true) { return _M_t._M_find_tr(__x) != _M_t.end(); } # 1307 "/usr/include/c++/13/bits/stl_map.h" 3 iterator lower_bound(const key_type& __x) { return _M_t.lower_bound(__x); } template<typename _Kt> auto lower_bound(const _Kt& __x) -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) { return iterator(_M_t._M_lower_bound_tr(__x)); } # 1332 "/usr/include/c++/13/bits/stl_map.h" 3 const_iterator lower_bound(const key_type& __x) const { return _M_t.lower_bound(__x); } template<typename _Kt> auto lower_bound(const _Kt& __x) const -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) { return const_iterator(_M_t._M_lower_bound_tr(__x)); } # 1352 "/usr/include/c++/13/bits/stl_map.h" 3 iterator upper_bound(const key_type& __x) { return _M_t.upper_bound(__x); } template<typename _Kt> auto upper_bound(const _Kt& __x) -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) { return iterator(_M_t._M_upper_bound_tr(__x)); } # 1372 "/usr/include/c++/13/bits/stl_map.h" 3 const_iterator upper_bound(const key_type& __x) const { return _M_t.upper_bound(__x); } template<typename _Kt> auto upper_bound(const _Kt& __x) const -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) { return const_iterator(_M_t._M_upper_bound_tr(__x)); } # 1401 "/usr/include/c++/13/bits/stl_map.h" 3 std::pair<iterator, iterator> equal_range(const key_type& __x) { return _M_t.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) -> decltype(pair<iterator, iterator>(_M_t._M_equal_range_tr(__x))) { return pair<iterator, iterator>(_M_t._M_equal_range_tr(__x)); } # 1430 "/usr/include/c++/13/bits/stl_map.h" 3 std::pair<const_iterator, const_iterator> equal_range(const key_type& __x) const { return _M_t.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) const -> decltype(pair<const_iterator, const_iterator>( _M_t._M_equal_range_tr(__x))) { return pair<const_iterator, const_iterator>( _M_t._M_equal_range_tr(__x)); } template<typename _K1, typename _T1, typename _C1, typename _A1> friend bool operator==(const map<_K1, _T1, _C1, _A1>&, const map<_K1, _T1, _C1, _A1>&); template<typename _K1, typename _T1, typename _C1, typename _A1> friend __detail::__synth3way_t<pair<const _K1, _T1>> operator<=>(const map<_K1, _T1, _C1, _A1>&, const map<_K1, _T1, _C1, _A1>&); }; template<typename _InputIterator, typename _Compare = less<__iter_key_t<_InputIterator>>, typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, typename = _RequireInputIter<_InputIterator>, typename = _RequireNotAllocator<_Compare>, typename = _RequireAllocator<_Allocator>> map(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator()) -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, _Compare, _Allocator>; template<typename _Key, typename _Tp, typename _Compare = less<_Key>, typename _Allocator = allocator<pair<const _Key, _Tp>>, typename = _RequireNotAllocator<_Compare>, typename = _RequireAllocator<_Allocator>> map(initializer_list<pair<_Key, _Tp>>, _Compare = _Compare(), _Allocator = _Allocator()) -> map<_Key, _Tp, _Compare, _Allocator>; template <typename _InputIterator, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> map(_InputIterator, _InputIterator, _Allocator) -> map<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, less<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _Key, typename _Tp, typename _Allocator, typename = _RequireAllocator<_Allocator>> map(initializer_list<pair<_Key, _Tp>>, _Allocator) -> map<_Key, _Tp, less<_Key>, _Allocator>; # 1511 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> inline bool operator==(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t == __y._M_t; } # 1532 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> inline __detail::__synth3way_t<pair<const _Key, _Tp>> operator<=>(const map<_Key, _Tp, _Compare, _Alloc>& __x, const map<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t <=> __y._M_t; } # 1585 "/usr/include/c++/13/bits/stl_map.h" 3 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> inline void swap(map<_Key, _Tp, _Compare, _Alloc>& __x, map<_Key, _Tp, _Compare, _Alloc>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template<typename _Key, typename _Val, typename _Cmp1, typename _Alloc, typename _Cmp2> struct _Rb_tree_merge_helper<std::map<_Key, _Val, _Cmp1, _Alloc>, _Cmp2> { private: friend class std::map<_Key, _Val, _Cmp1, _Alloc>; static auto& _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) { return __map._M_t; } static auto& _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) { return __map._M_t; } }; } # 64 "/usr/include/c++/13/map" 2 3 # 1 "/usr/include/c++/13/bits/stl_multimap.h" 1 3 # 64 "/usr/include/c++/13/bits/stl_multimap.h" 3 namespace std __attribute__ ((__visibility__ ("default"))) { template <typename _Key, typename _Tp, typename _Compare, typename _Alloc> class map; # 98 "/usr/include/c++/13/bits/stl_multimap.h" 3 template <typename _Key, typename _Tp, typename _Compare = std::less<_Key>, typename _Alloc = std::allocator<std::pair<const _Key, _Tp> > > class multimap { public: typedef _Key key_type; typedef _Tp mapped_type; typedef std::pair<const _Key, _Tp> value_type; typedef _Compare key_compare; typedef _Alloc allocator_type; private: # 124 "/usr/include/c++/13/bits/stl_multimap.h" 3 static_assert(is_same<typename _Alloc::value_type, value_type>::value, "std::multimap must have the same value_type as its allocator"); public: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" class value_compare : public std::binary_function<value_type, value_type, bool> { friend class multimap<_Key, _Tp, _Compare, _Alloc>; protected: _Compare comp; value_compare(_Compare __c) : comp(__c) { } public: bool operator()(const value_type& __x, const value_type& __y) const { return comp(__x.first, __y.first); } }; #pragma GCC diagnostic pop private: typedef typename __gnu_cxx::__alloc_traits<_Alloc>::template rebind<value_type>::other _Pair_alloc_type; typedef _Rb_tree<key_type, value_type, _Select1st<value_type>, key_compare, _Pair_alloc_type> _Rep_type; _Rep_type _M_t; typedef __gnu_cxx::__alloc_traits<_Pair_alloc_type> _Alloc_traits; public: typedef typename _Alloc_traits::pointer pointer; typedef typename _Alloc_traits::const_pointer const_pointer; typedef typename _Alloc_traits::reference reference; typedef typename _Alloc_traits::const_reference const_reference; typedef typename _Rep_type::iterator iterator; typedef typename _Rep_type::const_iterator const_iterator; typedef typename _Rep_type::size_type size_type; typedef typename _Rep_type::difference_type difference_type; typedef typename _Rep_type::reverse_iterator reverse_iterator; typedef typename _Rep_type::const_reverse_iterator const_reverse_iterator; using node_type = typename _Rep_type::node_type; # 187 "/usr/include/c++/13/bits/stl_multimap.h" 3 multimap() = default; explicit multimap(const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { } # 209 "/usr/include/c++/13/bits/stl_multimap.h" 3 multimap(const multimap&) = default; # 218 "/usr/include/c++/13/bits/stl_multimap.h" 3 multimap(multimap&&) = default; # 230 "/usr/include/c++/13/bits/stl_multimap.h" 3 multimap(initializer_list<value_type> __l, const _Compare& __comp = _Compare(), const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } explicit multimap(const allocator_type& __a) : _M_t(_Pair_alloc_type(__a)) { } multimap(const multimap& __m, const __type_identity_t<allocator_type>& __a) : _M_t(__m._M_t, _Pair_alloc_type(__a)) { } multimap(multimap&& __m, const __type_identity_t<allocator_type>& __a) noexcept(is_nothrow_copy_constructible<_Compare>::value && _Alloc_traits::_S_always_equal()) : _M_t(std::move(__m._M_t), _Pair_alloc_type(__a)) { } multimap(initializer_list<value_type> __l, const allocator_type& __a) : _M_t(_Pair_alloc_type(__a)) { _M_t._M_insert_range_equal(__l.begin(), __l.end()); } template<typename _InputIterator> multimap(_InputIterator __first, _InputIterator __last, const allocator_type& __a) : _M_t(_Pair_alloc_type(__a)) { _M_t._M_insert_range_equal(__first, __last); } # 274 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename _InputIterator> multimap(_InputIterator __first, _InputIterator __last) : _M_t() { _M_t._M_insert_range_equal(__first, __last); } # 290 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename _InputIterator> multimap(_InputIterator __first, _InputIterator __last, const _Compare& __comp, const allocator_type& __a = allocator_type()) : _M_t(__comp, _Pair_alloc_type(__a)) { _M_t._M_insert_range_equal(__first, __last); } ~multimap() = default; # 319 "/usr/include/c++/13/bits/stl_multimap.h" 3 multimap& operator=(const multimap&) = default; multimap& operator=(multimap&&) = default; # 337 "/usr/include/c++/13/bits/stl_multimap.h" 3 multimap& operator=(initializer_list<value_type> __l) { _M_t._M_assign_equal(__l.begin(), __l.end()); return *this; } allocator_type get_allocator() const noexcept { return allocator_type(_M_t.get_allocator()); } iterator begin() noexcept { return _M_t.begin(); } const_iterator begin() const noexcept { return _M_t.begin(); } iterator end() noexcept { return _M_t.end(); } const_iterator end() const noexcept { return _M_t.end(); } reverse_iterator rbegin() noexcept { return _M_t.rbegin(); } const_reverse_iterator rbegin() const noexcept { return _M_t.rbegin(); } reverse_iterator rend() noexcept { return _M_t.rend(); } const_reverse_iterator rend() const noexcept { return _M_t.rend(); } const_iterator cbegin() const noexcept { return _M_t.begin(); } const_iterator cend() const noexcept { return _M_t.end(); } const_reverse_iterator crbegin() const noexcept { return _M_t.rbegin(); } const_reverse_iterator crend() const noexcept { return _M_t.rend(); } [[__nodiscard__]] bool empty() const noexcept { return _M_t.empty(); } size_type size() const noexcept { return _M_t.size(); } size_type max_size() const noexcept { return _M_t.max_size(); } # 495 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename... _Args> iterator emplace(_Args&&... __args) { return _M_t._M_emplace_equal(std::forward<_Args>(__args)...); } # 522 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename... _Args> iterator emplace_hint(const_iterator __pos, _Args&&... __args) { return _M_t._M_emplace_hint_equal(__pos, std::forward<_Args>(__args)...); } # 544 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator insert(const value_type& __x) { return _M_t._M_insert_equal(__x); } iterator insert(value_type&& __x) { return _M_t._M_insert_equal(std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair>::value, iterator> insert(_Pair&& __x) { return _M_t._M_emplace_equal(std::forward<_Pair>(__x)); } # 583 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator insert(const_iterator __position, const value_type& __x) { return _M_t._M_insert_equal_(__position, __x); } iterator insert(const_iterator __position, value_type&& __x) { return _M_t._M_insert_equal_(__position, std::move(__x)); } template<typename _Pair> __enable_if_t<is_constructible<value_type, _Pair&&>::value, iterator> insert(const_iterator __position, _Pair&& __x) { return _M_t._M_emplace_hint_equal(__position, std::forward<_Pair>(__x)); } # 617 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename _InputIterator> void insert(_InputIterator __first, _InputIterator __last) { _M_t._M_insert_range_equal(__first, __last); } # 630 "/usr/include/c++/13/bits/stl_multimap.h" 3 void insert(initializer_list<value_type> __l) { this->insert(__l.begin(), __l.end()); } node_type extract(const_iterator __pos) { do { if (std::__is_constant_evaluated() && !bool(__pos != end())) __builtin_unreachable(); } while (false); return _M_t.extract(__pos); } node_type extract(const key_type& __x) { return _M_t.extract(__x); } iterator insert(node_type&& __nh) { return _M_t._M_reinsert_node_equal(std::move(__nh)); } iterator insert(const_iterator __hint, node_type&& __nh) { return _M_t._M_reinsert_node_hint_equal(__hint, std::move(__nh)); } template<typename, typename> friend struct std::_Rb_tree_merge_helper; template<typename _Cmp2> void merge(multimap<_Key, _Tp, _Cmp2, _Alloc>& __source) { using _Merge_helper = _Rb_tree_merge_helper<multimap, _Cmp2>; _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); } template<typename _Cmp2> void merge(multimap<_Key, _Tp, _Cmp2, _Alloc>&& __source) { merge(__source); } template<typename _Cmp2> void merge(map<_Key, _Tp, _Cmp2, _Alloc>& __source) { using _Merge_helper = _Rb_tree_merge_helper<multimap, _Cmp2>; _M_t._M_merge_equal(_Merge_helper::_S_get_tree(__source)); } template<typename _Cmp2> void merge(map<_Key, _Tp, _Cmp2, _Alloc>&& __source) { merge(__source); } # 707 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator erase(const_iterator __position) { return _M_t.erase(__position); } __attribute ((__abi_tag__ ("cxx11"))) iterator erase(iterator __position) { return _M_t.erase(__position); } # 744 "/usr/include/c++/13/bits/stl_multimap.h" 3 size_type erase(const key_type& __x) { return _M_t.erase(__x); } # 765 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator erase(const_iterator __first, const_iterator __last) { return _M_t.erase(__first, __last); } # 802 "/usr/include/c++/13/bits/stl_multimap.h" 3 void swap(multimap& __x) noexcept(__is_nothrow_swappable<_Compare>::value) { _M_t.swap(__x._M_t); } void clear() noexcept { _M_t.clear(); } key_compare key_comp() const { return _M_t.key_comp(); } value_compare value_comp() const { return value_compare(_M_t.key_comp()); } # 848 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator find(const key_type& __x) { return _M_t.find(__x); } template<typename _Kt> auto find(const _Kt& __x) -> decltype(_M_t._M_find_tr(__x)) { return _M_t._M_find_tr(__x); } # 872 "/usr/include/c++/13/bits/stl_multimap.h" 3 const_iterator find(const key_type& __x) const { return _M_t.find(__x); } template<typename _Kt> auto find(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x)) { return _M_t._M_find_tr(__x); } # 890 "/usr/include/c++/13/bits/stl_multimap.h" 3 size_type count(const key_type& __x) const { return _M_t.count(__x); } template<typename _Kt> auto count(const _Kt& __x) const -> decltype(_M_t._M_count_tr(__x)) { return _M_t._M_count_tr(__x); } # 909 "/usr/include/c++/13/bits/stl_multimap.h" 3 bool contains(const key_type& __x) const { return _M_t.find(__x) != _M_t.end(); } template<typename _Kt> auto contains(const _Kt& __x) const -> decltype(_M_t._M_find_tr(__x), void(), true) { return _M_t._M_find_tr(__x) != _M_t.end(); } # 933 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator lower_bound(const key_type& __x) { return _M_t.lower_bound(__x); } template<typename _Kt> auto lower_bound(const _Kt& __x) -> decltype(iterator(_M_t._M_lower_bound_tr(__x))) { return iterator(_M_t._M_lower_bound_tr(__x)); } # 958 "/usr/include/c++/13/bits/stl_multimap.h" 3 const_iterator lower_bound(const key_type& __x) const { return _M_t.lower_bound(__x); } template<typename _Kt> auto lower_bound(const _Kt& __x) const -> decltype(const_iterator(_M_t._M_lower_bound_tr(__x))) { return const_iterator(_M_t._M_lower_bound_tr(__x)); } # 978 "/usr/include/c++/13/bits/stl_multimap.h" 3 iterator upper_bound(const key_type& __x) { return _M_t.upper_bound(__x); } template<typename _Kt> auto upper_bound(const _Kt& __x) -> decltype(iterator(_M_t._M_upper_bound_tr(__x))) { return iterator(_M_t._M_upper_bound_tr(__x)); } # 998 "/usr/include/c++/13/bits/stl_multimap.h" 3 const_iterator upper_bound(const key_type& __x) const { return _M_t.upper_bound(__x); } template<typename _Kt> auto upper_bound(const _Kt& __x) const -> decltype(const_iterator(_M_t._M_upper_bound_tr(__x))) { return const_iterator(_M_t._M_upper_bound_tr(__x)); } # 1025 "/usr/include/c++/13/bits/stl_multimap.h" 3 std::pair<iterator, iterator> equal_range(const key_type& __x) { return _M_t.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) -> decltype(pair<iterator, iterator>(_M_t._M_equal_range_tr(__x))) { return pair<iterator, iterator>(_M_t._M_equal_range_tr(__x)); } # 1052 "/usr/include/c++/13/bits/stl_multimap.h" 3 std::pair<const_iterator, const_iterator> equal_range(const key_type& __x) const { return _M_t.equal_range(__x); } template<typename _Kt> auto equal_range(const _Kt& __x) const -> decltype(pair<const_iterator, const_iterator>( _M_t._M_equal_range_tr(__x))) { return pair<const_iterator, const_iterator>( _M_t._M_equal_range_tr(__x)); } template<typename _K1, typename _T1, typename _C1, typename _A1> friend bool operator==(const multimap<_K1, _T1, _C1, _A1>&, const multimap<_K1, _T1, _C1, _A1>&); template<typename _K1, typename _T1, typename _C1, typename _A1> friend __detail::__synth3way_t<pair<const _K1, _T1>> operator<=>(const multimap<_K1, _T1, _C1, _A1>&, const multimap<_K1, _T1, _C1, _A1>&); }; template<typename _InputIterator, typename _Compare = less<__iter_key_t<_InputIterator>>, typename _Allocator = allocator<__iter_to_alloc_t<_InputIterator>>, typename = _RequireInputIter<_InputIterator>, typename = _RequireNotAllocator<_Compare>, typename = _RequireAllocator<_Allocator>> multimap(_InputIterator, _InputIterator, _Compare = _Compare(), _Allocator = _Allocator()) -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, _Compare, _Allocator>; template<typename _Key, typename _Tp, typename _Compare = less<_Key>, typename _Allocator = allocator<pair<const _Key, _Tp>>, typename = _RequireNotAllocator<_Compare>, typename = _RequireAllocator<_Allocator>> multimap(initializer_list<pair<_Key, _Tp>>, _Compare = _Compare(), _Allocator = _Allocator()) -> multimap<_Key, _Tp, _Compare, _Allocator>; template<typename _InputIterator, typename _Allocator, typename = _RequireInputIter<_InputIterator>, typename = _RequireAllocator<_Allocator>> multimap(_InputIterator, _InputIterator, _Allocator) -> multimap<__iter_key_t<_InputIterator>, __iter_val_t<_InputIterator>, less<__iter_key_t<_InputIterator>>, _Allocator>; template<typename _Key, typename _Tp, typename _Allocator, typename = _RequireAllocator<_Allocator>> multimap(initializer_list<pair<_Key, _Tp>>, _Allocator) -> multimap<_Key, _Tp, less<_Key>, _Allocator>; # 1132 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> inline bool operator==(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t == __y._M_t; } # 1153 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> inline __detail::__synth3way_t<pair<const _Key, _Tp>> operator<=>(const multimap<_Key, _Tp, _Compare, _Alloc>& __x, const multimap<_Key, _Tp, _Compare, _Alloc>& __y) { return __x._M_t <=> __y._M_t; } # 1206 "/usr/include/c++/13/bits/stl_multimap.h" 3 template<typename _Key, typename _Tp, typename _Compare, typename _Alloc> inline void swap(multimap<_Key, _Tp, _Compare, _Alloc>& __x, multimap<_Key, _Tp, _Compare, _Alloc>& __y) noexcept(noexcept(__x.swap(__y))) { __x.swap(__y); } template<typename _Key, typename _Val, typename _Cmp1, typename _Alloc, typename _Cmp2> struct _Rb_tree_merge_helper<std::multimap<_Key, _Val, _Cmp1, _Alloc>, _Cmp2> { private: friend class std::multimap<_Key, _Val, _Cmp1, _Alloc>; static auto& _S_get_tree(std::map<_Key, _Val, _Cmp2, _Alloc>& __map) { return __map._M_t; } static auto& _S_get_tree(std::multimap<_Key, _Val, _Cmp2, _Alloc>& __map) { return __map._M_t; } }; } # 65 "/usr/include/c++/13/map" 2 3 # 74 "/usr/include/c++/13/map" 3 namespace std __attribute__ ((__visibility__ ("default"))) { namespace pmr { template<typename _Key, typename _Tp, typename _Cmp = std::less<_Key>> using map = std::map<_Key, _Tp, _Cmp, polymorphic_allocator<pair<const _Key, _Tp>>>; template<typename _Key, typename _Tp, typename _Cmp = std::less<_Key>> using multimap = std::multimap<_Key, _Tp, _Cmp, polymorphic_allocator<pair<const _Key, _Tp>>>; } } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Key, typename _Tp, typename _Compare, typename _Alloc, typename _Predicate> inline typename map<_Key, _Tp, _Compare, _Alloc>::size_type erase_if(map<_Key, _Tp, _Compare, _Alloc>& __cont, _Predicate __pred) { std::map<_Key, _Tp, _Compare, _Alloc>& __ucont = __cont; return __detail::__erase_nodes_if(__cont, __ucont, __pred); } template<typename _Key, typename _Tp, typename _Compare, typename _Alloc, typename _Predicate> inline typename multimap<_Key, _Tp, _Compare, _Alloc>::size_type erase_if(multimap<_Key, _Tp, _Compare, _Alloc>& __cont, _Predicate __pred) { std::multimap<_Key, _Tp, _Compare, _Alloc>& __ucont = __cont; return __detail::__erase_nodes_if(__cont, __ucont, __pred); } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 3 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp" 3 namespace boost { template <class Tag,class T> inline std::string error_info_name( error_info<Tag,T> const & ) { return tag_type_name<Tag>(); } template <class Tag,class T> inline std::string to_string( error_info<Tag,T> const & x ) { return '[' + error_info_name(x) + "] = " + to_string_stub(x.value()) + '\n'; } template <class Tag,class T> inline std::string error_info<Tag,T>:: name_value_string() const { return to_string_stub(*this); } namespace exception_detail { class error_info_container_impl final: public error_info_container { public: error_info_container_impl(): count_(0) { } ~error_info_container_impl() noexcept { } void set( shared_ptr<error_info_base> const & x, type_info_ const & typeid_ ) { (static_cast <bool> (x) ? void (0) : __assert_fail ("x", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/info.hpp", 77, __extension__ __PRETTY_FUNCTION__)); info_[typeid_] = x; diagnostic_info_str_.clear(); } shared_ptr<error_info_base> get( type_info_ const & ti ) const { error_info_map::const_iterator i=info_.find(ti); if( info_.end()!=i ) { shared_ptr<error_info_base> const & p = i->second; return p; } return shared_ptr<error_info_base>(); } char const * diagnostic_information( char const * header ) const { if( header ) { std::ostringstream tmp; tmp << header; for( error_info_map::const_iterator i=info_.begin(),end=info_.end(); i!=end; ++i ) { error_info_base const & x = *i->second; tmp << x.name_value_string(); } tmp.str().swap(diagnostic_info_str_); } return diagnostic_info_str_.c_str(); } private: friend class boost::exception; typedef std::map< type_info_, shared_ptr<error_info_base> > error_info_map; error_info_map info_; mutable std::string diagnostic_info_str_; mutable int count_; error_info_container_impl( error_info_container_impl const & ); error_info_container_impl & operator=( error_info_container const & ); void add_ref() const { ++count_; } bool release() const { if( --count_ ) return false; else { delete this; return true; } } refcount_ptr<error_info_container> clone() const { refcount_ptr<error_info_container> p; error_info_container_impl * c=new error_info_container_impl; p.adopt(c); for( error_info_map::const_iterator i=info_.begin(),e=info_.end(); i!=e; ++i ) { shared_ptr<error_info_base> cp(i->second->clone()); c->info_.insert(std::make_pair(i->first,cp)); } return p; } }; template <class E,class Tag,class T> inline E const & set_info( E const & x, error_info<Tag,T> const & v ) { typedef error_info<Tag,T> error_info_tag_t; shared_ptr<error_info_tag_t> p( new error_info_tag_t(v) ); exception_detail::error_info_container * c=x.data_.get(); if( !c ) x.data_.adopt(c=new exception_detail::error_info_container_impl); c->set(p,::boost::exception_detail::type_info_(typeid(error_info_tag_t))); return x; } template <class E,class Tag,class T> E const & set_info( E const &, error_info<Tag,T> && ); template <class T> struct set_info_rv; template <class Tag,class T> struct set_info_rv<error_info<Tag,T> > { template <class E,class Tag1,class T1> friend E const & set_info( E const &, error_info<Tag1,T1> && ); template <class E> static E const & set( E const & x, error_info<Tag,T> && v ) { typedef error_info<Tag,T> error_info_tag_t; shared_ptr<error_info_tag_t> p( new error_info_tag_t(std::move(v)) ); exception_detail::error_info_container * c=x.data_.get(); if( !c ) x.data_.adopt(c=new exception_detail::error_info_container_impl); c->set(p,::boost::exception_detail::type_info_(typeid(error_info_tag_t))); return x; } }; template <> struct set_info_rv<throw_function> { template <class E,class Tag1,class T1> friend E const & set_info( E const &, error_info<Tag1,T1> && ); template <class E> static E const & set( E const & x, throw_function && y ) { x.throw_function_=y.v_; return x; } }; template <> struct set_info_rv<throw_file> { template <class E,class Tag1,class T1> friend E const & set_info( E const &, error_info<Tag1,T1> && ); template <class E> static E const & set( E const & x, throw_file && y ) { x.throw_file_=y.v_; return x; } }; template <> struct set_info_rv<throw_line> { template <class E,class Tag1,class T1> friend E const & set_info( E const &, error_info<Tag1,T1> && ); template <class E> static E const & set( E const & x, throw_line && y ) { x.throw_line_=y.v_; return x; } }; template <class E,class Tag,class T> inline E const & set_info( E const & x, error_info<Tag,T> && v ) { return set_info_rv<error_info<Tag,T> >::template set<E>(x,std::move(v)); } template <class T> struct derives_boost_exception { enum e { value = (sizeof(dispatch_boost_exception((T*)0))==sizeof(large_size)) }; }; } template <class E,class Tag,class T> inline typename enable_if<exception_detail::derives_boost_exception<E>,E const &>::type operator<<( E const & x, error_info<Tag,T> const & v ) { return exception_detail::set_info(x,v); } template <class E,class Tag,class T> inline typename enable_if<exception_detail::derives_boost_exception<E>,E const &>::type operator<<( E const & x, error_info<Tag,T> && v ) { return exception_detail::set_info(x,std::move(v)); } } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp" 3 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp" 3 namespace boost { namespace exception_detail { template <class ErrorInfo> struct get_info { static typename ErrorInfo::value_type * get( exception const & x ) { if( exception_detail::error_info_container * c=x.data_.get() ) if( shared_ptr<exception_detail::error_info_base> eib = c->get(::boost::exception_detail::type_info_(typeid(ErrorInfo))) ) { (static_cast <bool> (0!=dynamic_cast<ErrorInfo *>(eib.get())) ? void (0) : __assert_fail ("0!=dynamic_cast<ErrorInfo *>(eib.get())", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp", 46, __extension__ __PRETTY_FUNCTION__)); ErrorInfo * w = static_cast<ErrorInfo *>(eib.get()); return &w->value(); } return 0; } }; template <> struct get_info<throw_function> { static char const * * get( exception const & x ) { return x.throw_function_ ? &x.throw_function_ : 0; } }; template <> struct get_info<throw_file> { static char const * * get( exception const & x ) { return x.throw_file_ ? &x.throw_file_ : 0; } }; template <> struct get_info<throw_line> { static int * get( exception const & x ) { return x.throw_line_!=-1 ? &x.throw_line_ : 0; } }; template <class T,class R> struct get_error_info_return_type { typedef R * type; }; template <class T,class R> struct get_error_info_return_type<T const,R> { typedef R const * type; }; } # 122 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/get_error_info.hpp" 3 template <class ErrorInfo,class E> inline typename exception_detail::get_error_info_return_type<E,typename ErrorInfo::value_type>::type get_error_info( E & some_exception ) { if( exception const * x = dynamic_cast<exception const *>(&some_exception) ) return exception_detail::get_info<ErrorInfo>::get(*x); else return 0; } } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/current_exception_cast.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/current_exception_cast.hpp" 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/current_exception_cast.hpp" 3 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/current_exception_cast.hpp" 3 namespace boost { template <class E> inline E * current_exception_cast() { try { throw; } catch( E & e ) { return &e; } catch( ...) { return 0; } } } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 3 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp" 3 namespace boost { namespace exception_detail { std::string diagnostic_information_impl( boost::exception const *, std::exception const *, bool, bool ); } inline std::string current_exception_diagnostic_information( bool verbose=true) { boost::exception const * be=current_exception_cast<boost::exception const>(); std::exception const * se=current_exception_cast<std::exception const>(); if( be || se ) return exception_detail::diagnostic_information_impl(be,se,true,verbose); else if (auto* p=std::current_exception().__cxa_exception_type()) return "Dynamic exception type: "+boost::core::demangle(p->name()); else return "No diagnostic information available."; } } namespace boost { namespace exception_detail { inline exception const * get_boost_exception( exception const * e ) { return e; } inline exception const * get_boost_exception( ... ) { return 0; } inline std::exception const * get_std_exception( std::exception const * e ) { return e; } inline std::exception const * get_std_exception( ... ) { return 0; } inline char const * get_diagnostic_information( exception const & x, char const * header ) { try { error_info_container * c=x.data_.get(); if( !c ) x.data_.adopt(c=new exception_detail::error_info_container_impl); char const * di=c->diagnostic_information(header); (static_cast <bool> (di!=0) ? void (0) : __assert_fail ("di!=0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/diagnostic_information.hpp", 109, __extension__ __PRETTY_FUNCTION__)); return di; } catch(...) { return 0; } } inline std::string diagnostic_information_impl( boost::exception const * be, std::exception const * se, bool with_what, bool verbose ) { if( !be && !se ) return "Unknown exception."; if( !be ) be=dynamic_cast<boost::exception const *>(se); if( !se ) se=dynamic_cast<std::exception const *>(be); char const * wh=0; if( with_what && se ) { wh=se->what(); if( be && exception_detail::get_diagnostic_information(*be,0)==wh ) return wh; } std::ostringstream tmp; if( be && verbose ) { char const * const * f=get_error_info<throw_file>(*be); int const * l=get_error_info<throw_line>(*be); char const * const * fn=get_error_info<throw_function>(*be); if( !f && !l && !fn ) tmp << "Throw location unknown (consider using BOOST_THROW_EXCEPTION)\n"; else { if( f ) { tmp << *f; if( l ) tmp << '(' << *l << "): "; } tmp << "Throw in function "; if( fn ) tmp << *fn; else tmp << "(unknown)"; tmp << '\n'; } } if ( verbose ) tmp << std::string("Dynamic exception type: ") << core::demangle((be?(::boost::exception_detail::type_info_(typeid(*be))):(::boost::exception_detail::type_info_(typeid(*se)))).type_->name()) << '\n'; if( with_what && se && verbose ) tmp << "std::exception::what: " << (wh ? wh : "(null)") << '\n'; if( be ) if( char const * s=exception_detail::get_diagnostic_information(*be,tmp.str().c_str()) ) if( *s ) return std::string(s); return tmp.str(); } } template <class T> std::string diagnostic_information( T const & e, bool verbose=true ) { return exception_detail::diagnostic_information_impl(exception_detail::get_boost_exception(&e),exception_detail::get_std_exception(&e),true,verbose); } inline char const * diagnostic_information_what( exception const & e, bool verbose=true ) noexcept { char const * w=0; try { (void) exception_detail::diagnostic_information_impl(&e,0,false,verbose); if( char const * di=exception_detail::get_diagnostic_information(e,0) ) return di; else return "Failed to produce boost::diagnostic_information_what()"; } catch( ... ) { } return w; } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/clone_current_exception.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/clone_current_exception.hpp" 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/clone_current_exception.hpp" 3 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/clone_current_exception.hpp" 3 namespace boost { namespace exception_detail { class clone_base; namespace clone_current_exception_result { int const success=0; int const bad_alloc=1; int const bad_exception=2; int const not_supported=3; } inline int clone_current_exception( clone_base const * & cloned ) { return clone_current_exception_result::not_supported; } } } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/make_shared.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/make_shared.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_forward.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_forward.hpp" 3 4 namespace boost { namespace detail { # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/sp_forward.hpp" 3 4 template< class T > T&& sp_forward( T & t ) noexcept { return static_cast< T&& >( t ); } } } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/type_with_alignment.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/type_with_alignment.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/alignment_of.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/alignment_of.hpp" 3 4 namespace boost { template <typename T> struct alignment_of; namespace detail { template <typename T> struct alignment_of_hack { char c; T t; alignment_of_hack(); }; template <unsigned A, unsigned S> struct alignment_logic { static const std::size_t value = A < S ? A : S; }; template< typename T > struct alignment_of_impl { # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/alignment_of.hpp" 3 4 static const std::size_t value = __alignof__(T); }; } template <class T> struct alignment_of : public integral_constant<std::size_t, ::boost::detail::alignment_of_impl<T>::value>{}; template <typename T> struct alignment_of<T&> : public alignment_of<T*>{}; # 102 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/alignment_of.hpp" 3 4 template<> struct alignment_of<void> : integral_constant<std::size_t, 0>{}; template<> struct alignment_of<void const> : integral_constant<std::size_t, 0>{}; template<> struct alignment_of<void const volatile> : integral_constant<std::size_t, 0>{}; template<> struct alignment_of<void volatile> : integral_constant<std::size_t, 0>{}; } # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pod.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pod.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_scalar.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_scalar.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_enum.hpp" 1 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_enum.hpp" 3 4 namespace boost { # 160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_enum.hpp" 3 4 template <class T> struct is_enum : public integral_constant<bool, __is_enum(T)> {}; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_scalar.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pointer.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pointer.hpp" 3 4 namespace boost { template <class T> struct is_pointer : public false_type{}; template <class T> struct is_pointer<T*> : public true_type{}; template <class T> struct is_pointer<T*const> : public true_type{}; template <class T> struct is_pointer<T*const volatile> : public true_type{}; template <class T> struct is_pointer<T*volatile> : public true_type{}; # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pointer.hpp" 3 4 } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_scalar.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_member_pointer.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_member_pointer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_member_function_pointer.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_member_function_pointer.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp" 3 4 namespace boost { # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp" 3 4 template <class T> struct is_member_function_pointer : public false_type {}; template <class T> struct is_member_function_pointer<T const> : public is_member_function_pointer<T> {}; template <class T> struct is_member_function_pointer<T volatile> : public is_member_function_pointer<T> {}; template <class T> struct is_member_function_pointer<T const volatile> : public is_member_function_pointer<T> {}; # 47 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp" 3 4 template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret (C::*)(Args..., ...)noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)const noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)const noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)volatile noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)volatile noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)const volatile noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)const volatile noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)& noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)& noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)const & noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)const & noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)volatile & noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)volatile & noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)const volatile & noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)const volatile & noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...) && noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...) && noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)const && noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)const && noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)volatile && noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)volatile && noexcept(NE)> : public true_type {}; template <class Ret, class C, class...Args , bool NE> struct is_member_function_pointer<Ret ( C::*)(Args...)const volatile && noexcept(NE)> : public true_type {}; template <class Ret, class C, class ...Args , bool NE> struct is_member_function_pointer<Ret(C::*)(Args..., ...)const volatile && noexcept(NE)> : public true_type {}; # 695 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/detail/is_member_function_pointer_cxx_11.hpp" 3 4 } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_member_function_pointer.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_member_pointer.hpp" 2 3 4 namespace boost { template <class T> struct is_member_pointer : public integral_constant<bool, ::boost::is_member_function_pointer<T>::value>{}; template <class T, class U> struct is_member_pointer<U T::* > : public true_type{}; template <class T, class U> struct is_member_pointer<U T::*const> : public true_type{}; template <class T, class U> struct is_member_pointer<U T::*const volatile> : public true_type{}; template <class T, class U> struct is_member_pointer<U T::*volatile> : public true_type{}; } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_scalar.hpp" 2 3 4 namespace boost { template <typename T> struct is_scalar : public integral_constant<bool, ::boost::is_arithmetic<T>::value || ::boost::is_enum<T>::value || ::boost::is_pointer<T>::value || ::boost::is_member_pointer<T>::value> {}; } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pod.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_pod.hpp" 3 4 namespace boost { template< typename T > struct is_POD; template <typename T> struct is_pod : public integral_constant<bool, ::boost::is_scalar<T>::value || ::boost::is_void<T>::value || __is_pod(T)> {}; template <typename T, std::size_t sz> struct is_pod<T[sz]> : public is_pod<T>{}; template<> struct is_pod<void> : public true_type{}; template<> struct is_pod<void const> : public true_type{}; template<> struct is_pod<void const volatile> : public true_type{}; template<> struct is_pod<void volatile> : public true_type{}; template<class T> struct is_POD : public is_pod<T>{}; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/type_with_alignment.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/type_with_alignment.hpp" 3 4 namespace boost { namespace detail{ union max_align { char c; short s; int i; long l; boost::long_long_type ll; boost::int128_type i128; float f; double d; long double ld; __float128 f128; }; template <std::size_t Target, bool check> struct long_double_alignment{ typedef long double type; }; template <std::size_t Target> struct long_double_alignment<Target, false>{ typedef boost::detail::max_align type; }; template <std::size_t Target, bool check> struct double_alignment{ typedef double type; }; template <std::size_t Target> struct double_alignment<Target, false>{ typedef typename long_double_alignment<Target, boost::alignment_of<long double>::value >= Target>::type type; }; template <std::size_t Target, bool check> struct long_long_alignment{ typedef boost::long_long_type type; }; template <std::size_t Target> struct long_long_alignment<Target, false>{ typedef typename double_alignment<Target, boost::alignment_of<double>::value >= Target>::type type; }; template <std::size_t Target, bool check> struct long_alignment{ typedef long type; }; template <std::size_t Target> struct long_alignment<Target, false>{ typedef typename long_long_alignment<Target, boost::alignment_of<boost::long_long_type>::value >= Target>::type type; }; template <std::size_t Target, bool check> struct int_alignment{ typedef int type; }; template <std::size_t Target> struct int_alignment<Target, false>{ typedef typename long_alignment<Target, boost::alignment_of<long>::value >= Target>::type type; }; template <std::size_t Target, bool check> struct short_alignment{ typedef short type; }; template <std::size_t Target> struct short_alignment<Target, false>{ typedef typename int_alignment<Target, boost::alignment_of<int>::value >= Target>::type type; }; template <std::size_t Target, bool check> struct char_alignment{ typedef char type; }; template <std::size_t Target> struct char_alignment<Target, false>{ typedef typename short_alignment<Target, boost::alignment_of<short>::value >= Target>::type type; }; } template <std::size_t Align> struct type_with_alignment { typedef typename boost::detail::char_alignment<Align, boost::alignment_of<char>::value >= Align>::type type; }; namespace tt_align_ns { struct __attribute__((__aligned__(2))) a2 {}; struct __attribute__((__aligned__(4))) a4 {}; struct __attribute__((__aligned__(8))) a8 {}; struct __attribute__((__aligned__(16))) a16 {}; struct __attribute__((__aligned__(32))) a32 {}; struct __attribute__((__aligned__(64))) a64 {}; struct __attribute__((__aligned__(128))) a128 {}; } template<> struct type_with_alignment<1> { public: typedef char type; }; template<> struct type_with_alignment<2> { public: typedef tt_align_ns::a2 type; }; template<> struct type_with_alignment<4> { public: typedef tt_align_ns::a4 type; }; template<> struct type_with_alignment<8> { public: typedef tt_align_ns::a8 type; }; template<> struct type_with_alignment<16> { public: typedef tt_align_ns::a16 type; }; template<> struct type_with_alignment<32> { public: typedef tt_align_ns::a32 type; }; template<> struct type_with_alignment<64> { public: typedef tt_align_ns::a64 type; }; template<> struct type_with_alignment<128> { public: typedef tt_align_ns::a128 type; }; template<> struct is_pod< ::boost::tt_align_ns::a2> : public true_type{}; template<> struct is_pod< ::boost::tt_align_ns::a4> : public true_type{}; template<> struct is_pod< ::boost::tt_align_ns::a8> : public true_type{}; template<> struct is_pod< ::boost::tt_align_ns::a16> : public true_type{}; template<> struct is_pod< ::boost::tt_align_ns::a32> : public true_type{}; template<> struct is_pod< ::boost::tt_align_ns::a64> : public true_type{}; template<> struct is_pod< ::boost::tt_align_ns::a128> : public true_type{}; # 252 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/type_with_alignment.hpp" 3 4 } # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 2 3 4 namespace boost { namespace detail { template< std::size_t N, std::size_t A > struct sp_aligned_storage { union type { char data_[ N ]; typename boost::type_with_alignment< A >::type align_; }; }; template< class T > class sp_ms_deleter { private: typedef typename sp_aligned_storage< sizeof( T ), ::boost::alignment_of< T >::value >::type storage_type; bool initialized_; storage_type storage_; private: void destroy() noexcept { if( initialized_ ) { T * p = reinterpret_cast< T* >( storage_.data_ ); p->~T(); initialized_ = false; } } public: sp_ms_deleter() noexcept : initialized_( false ) { } template<class A> explicit sp_ms_deleter( A const & ) noexcept : initialized_( false ) { } sp_ms_deleter( sp_ms_deleter const & ) noexcept : initialized_( false ) { } ~sp_ms_deleter() noexcept { destroy(); } void operator()( T * ) noexcept { destroy(); } static void operator_fn( T* ) noexcept { } void * address() noexcept { return storage_.data_; } void set_initialized() noexcept { initialized_ = true; } }; template< class T, class A > class sp_as_deleter { private: typedef typename sp_aligned_storage< sizeof( T ), ::boost::alignment_of< T >::value >::type storage_type; storage_type storage_; A a_; bool initialized_; private: void destroy() noexcept { if( initialized_ ) { T * p = reinterpret_cast< T* >( storage_.data_ ); std::allocator_traits<A>::destroy( a_, p ); initialized_ = false; } } public: sp_as_deleter( A const & a ) noexcept : a_( a ), initialized_( false ) { } sp_as_deleter( sp_as_deleter const & r ) noexcept : a_( r.a_), initialized_( false ) { } ~sp_as_deleter() noexcept { destroy(); } void operator()( T * ) noexcept { destroy(); } static void operator_fn( T* ) noexcept { } void * address() noexcept { return storage_.data_; } void set_initialized() noexcept { initialized_ = true; } }; template< class T > struct sp_if_not_array { typedef boost::shared_ptr< T > type; }; template< class T > struct sp_if_not_array< T[] > { }; template< class T, std::size_t N > struct sp_if_not_array< T[N] > { }; } # 211 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 3 4 template< class T > typename boost::detail::sp_if_not_array< T >::type make_shared_noinit() { boost::shared_ptr< T > pt( static_cast< T* >( 0 ), boost::detail::sp_inplace_tag< boost::detail::sp_ms_deleter< T > >() ); boost::detail::sp_ms_deleter< T > * pd = static_cast<boost::detail::sp_ms_deleter< T > *>( pt._internal_get_untyped_deleter() ); void * pv = pd->address(); ::new( pv ) T; pd->set_initialized(); T * pt2 = static_cast< T* >( pv ); boost::detail::sp_enable_shared_from_this( &pt, pt2, pt2 ); return boost::shared_ptr< T >( pt, pt2 ); } template< class T, class A > typename boost::detail::sp_if_not_array< T >::type allocate_shared_noinit( A const & a ) { boost::shared_ptr< T > pt( static_cast< T* >( 0 ), boost::detail::sp_inplace_tag< boost::detail::sp_ms_deleter< T > >(), a ); boost::detail::sp_ms_deleter< T > * pd = static_cast<boost::detail::sp_ms_deleter< T > *>( pt._internal_get_untyped_deleter() ); void * pv = pd->address(); ::new( pv ) T; pd->set_initialized(); T * pt2 = static_cast< T* >( pv ); boost::detail::sp_enable_shared_from_this( &pt, pt2, pt2 ); return boost::shared_ptr< T >( pt, pt2 ); } template< class T, class... Args > typename boost::detail::sp_if_not_array< T >::type make_shared( Args && ... args ) { boost::shared_ptr< T > pt( static_cast< T* >( 0 ), boost::detail::sp_inplace_tag< boost::detail::sp_ms_deleter< T > >() ); boost::detail::sp_ms_deleter< T > * pd = static_cast<boost::detail::sp_ms_deleter< T > *>( pt._internal_get_untyped_deleter() ); void * pv = pd->address(); ::new( pv ) T( boost::detail::sp_forward<Args>( args )... ); pd->set_initialized(); T * pt2 = static_cast< T* >( pv ); boost::detail::sp_enable_shared_from_this( &pt, pt2, pt2 ); return boost::shared_ptr< T >( pt, pt2 ); } template< class T, class A, class... Args > typename boost::detail::sp_if_not_array< T >::type allocate_shared( A const & a, Args && ... args ) { typedef typename std::allocator_traits<A>::template rebind_alloc<T> A2; A2 a2( a ); typedef boost::detail::sp_as_deleter< T, A2 > D; boost::shared_ptr< T > pt( static_cast< T* >( 0 ), boost::detail::sp_inplace_tag<D>(), a2 ); # 285 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 3 4 D * pd = static_cast< D* >( pt._internal_get_untyped_deleter() ); void * pv = pd->address(); std::allocator_traits<A2>::construct( a2, static_cast< T* >( pv ), boost::detail::sp_forward<Args>( args )... ); pd->set_initialized(); T * pt2 = static_cast< T* >( pv ); boost::detail::sp_enable_shared_from_this( &pt, pt2, pt2 ); return boost::shared_ptr< T >( pt, pt2 ); } # 800 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_object.hpp" 3 4 } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_array.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_array.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/default_allocator.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/default_allocator.hpp" 3 4 namespace boost { namespace default_ { template<bool V> struct bool_constant { typedef bool value_type; typedef bool_constant type; static const bool value = V; operator bool() const noexcept { return V; } bool operator()() const noexcept { return V; } }; template<bool V> const bool bool_constant<V>::value; template<class T> struct add_reference { typedef T& type; }; template<> struct add_reference<void> { typedef void type; }; template<> struct add_reference<const void> { typedef const void type; }; template<class T> struct default_allocator { typedef T value_type; typedef T* pointer; typedef const T* const_pointer; typedef typename add_reference<T>::type reference; typedef typename add_reference<const T>::type const_reference; typedef std::size_t size_type; typedef std::ptrdiff_t difference_type; typedef bool_constant<true> propagate_on_container_move_assignment; typedef bool_constant<true> is_always_equal; template<class U> struct rebind { typedef default_allocator<U> other; }; default_allocator() = default; template<class U> constexpr default_allocator(const default_allocator<U>&) noexcept { } constexpr std::size_t max_size() const noexcept { return static_cast<std::size_t>(-1) / (2 < sizeof(T) ? sizeof(T) : 2); } T* allocate(std::size_t n) { if (n > max_size()) { throw std::bad_alloc(); } return static_cast<T*>(::operator new(sizeof(T) * n)); } void deallocate(T* p, std::size_t) { ::operator delete(p); } # 134 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/default_allocator.hpp" 3 4 }; template<class T, class U> constexpr inline bool operator==(const default_allocator<T>&, const default_allocator<U>&) noexcept { return true; } template<class T, class U> constexpr inline bool operator!=(const default_allocator<T>&, const default_allocator<U>&) noexcept { return false; } } using default_::default_allocator; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/pointer_traits.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/pointer_traits.hpp" 3 4 namespace boost { namespace detail { struct ptr_none { }; template<class> struct ptr_valid { typedef void type; }; template<class> struct ptr_first { typedef ptr_none type; }; template<template<class, class...> class T, class U, class... Args> struct ptr_first<T<U, Args...> > { typedef U type; }; # 52 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/pointer_traits.hpp" 3 4 template<class T, class = void> struct ptr_element { typedef typename ptr_first<T>::type type; }; template<class T> struct ptr_element<T, typename ptr_valid<typename T::element_type>::type> { typedef typename T::element_type type; }; template<class, class = void> struct ptr_difference { typedef std::ptrdiff_t type; }; template<class T> struct ptr_difference<T, typename ptr_valid<typename T::difference_type>::type> { typedef typename T::difference_type type; }; template<class, class> struct ptr_transform { }; template<template<class, class...> class T, class U, class... Args, class V> struct ptr_transform<T<U, Args...>, V> { typedef T<V, Args...> type; }; # 99 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/pointer_traits.hpp" 3 4 template<class T, class U, class = void> struct ptr_rebind : ptr_transform<T, U> { }; template<class T, class U> struct ptr_rebind<T, U, typename ptr_valid<typename T::template rebind<U> >::type> { typedef typename T::template rebind<U> type; }; # 118 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/pointer_traits.hpp" 3 4 template<class T, class E> class ptr_to_expr { template<class> struct result { char x, y; }; static E& source(); template<class O> static auto check(int) -> result<decltype(O::pointer_to(source()))>; template<class> static char check(long); public: static constexpr bool value = sizeof(check<T>(0)) > 1; }; template<class T, class E> struct ptr_to_expr<T*, E> { static constexpr bool value = true; }; template<class T, class E> struct ptr_has_to { static constexpr bool value = ptr_to_expr<T, E>::value; }; template<class T> struct ptr_has_to<T, void> { static constexpr bool value = false; }; template<class T> struct ptr_has_to<T, const void> { static constexpr bool value = false; }; template<class T> struct ptr_has_to<T, volatile void> { static constexpr bool value = false; }; template<class T> struct ptr_has_to<T, const volatile void> { static constexpr bool value = false; }; template<class T, class E, bool = ptr_has_to<T, E>::value> struct ptr_to { }; template<class T, class E> struct ptr_to<T, E, true> { static T pointer_to(E& v) { return T::pointer_to(v); } }; template<class T> struct ptr_to<T*, T, true> { static T* pointer_to(T& v) noexcept { return boost::addressof(v); } }; template<class T, class E> struct ptr_traits : ptr_to<T, E> { typedef T pointer; typedef E element_type; typedef typename ptr_difference<T>::type difference_type; template<class U> struct rebind_to : ptr_rebind<T, U> { }; template<class U> using rebind = typename rebind_to<U>::type; }; template<class T> struct ptr_traits<T, ptr_none> { }; } template<class T> struct pointer_traits : detail::ptr_traits<T, typename detail::ptr_element<T>::type> { }; template<class T> struct pointer_traits<T*> : detail::ptr_to<T*, T> { typedef T* pointer; typedef T element_type; typedef std::ptrdiff_t difference_type; template<class U> struct rebind_to { typedef U* type; }; template<class U> using rebind = typename rebind_to<U>::type; }; template<class T> constexpr inline T* to_address(T* v) noexcept { return v; } namespace detail { template<class T> inline T* ptr_address(T* v, int) noexcept { return v; } template<class T> inline auto ptr_address(const T& v, int) noexcept -> decltype(boost::pointer_traits<T>::to_address(v)) { return boost::pointer_traits<T>::to_address(v); } template<class T> inline auto ptr_address(const T& v, long) noexcept { return boost::detail::ptr_address(v.operator->(), 0); } } template<class T> inline auto to_address(const T& v) noexcept { return boost::detail::ptr_address(v, 0); } # 283 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/pointer_traits.hpp" 3 4 } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 2 3 4 # 51 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 namespace boost { template<class A> struct allocator_value_type { typedef typename A::value_type type; }; namespace detail { template<class A, class = void> struct alloc_ptr { typedef typename boost::allocator_value_type<A>::type* type; }; template<class> struct alloc_void { typedef void type; }; template<class A> struct alloc_ptr<A, typename alloc_void<typename A::pointer>::type> { typedef typename A::pointer type; }; } template<class A> struct allocator_pointer { typedef typename detail::alloc_ptr<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_const_ptr { typedef typename boost::pointer_traits<typename boost::allocator_pointer<A>::type>::template rebind_to<const typename boost::allocator_value_type<A>::type>::type type; }; template<class A> struct alloc_const_ptr<A, typename alloc_void<typename A::const_pointer>::type> { typedef typename A::const_pointer type; }; } template<class A> struct allocator_const_pointer { typedef typename detail::alloc_const_ptr<A>::type type; }; namespace detail { template<class, class> struct alloc_to { }; # 127 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<template<class, class...> class A, class T, class U, class... V> struct alloc_to<A<U, V...>, T> { typedef A<T, V...> type; }; template<class A, class T, class = void> struct alloc_rebind { typedef typename alloc_to<A, T>::type type; }; template<class A, class T> struct alloc_rebind<A, T, typename alloc_void<typename A::template rebind<T>::other>::type> { typedef typename A::template rebind<T>::other type; }; } template<class A, class T> struct allocator_rebind { typedef typename detail::alloc_rebind<A, T>::type type; }; namespace detail { template<class A, class = void> struct alloc_void_ptr { typedef typename boost::pointer_traits<typename boost::allocator_pointer<A>::type>::template rebind_to<void>::type type; }; template<class A> struct alloc_void_ptr<A, typename alloc_void<typename A::void_pointer>::type> { typedef typename A::void_pointer type; }; } template<class A> struct allocator_void_pointer { typedef typename detail::alloc_void_ptr<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_const_void_ptr { typedef typename boost::pointer_traits<typename boost::allocator_pointer<A>::type>::template rebind_to<const void>::type type; }; template<class A> struct alloc_const_void_ptr<A, typename alloc_void<typename A::const_void_pointer>::type> { typedef typename A::const_void_pointer type; }; } template<class A> struct allocator_const_void_pointer { typedef typename detail::alloc_const_void_ptr<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_diff_type { typedef typename boost::pointer_traits<typename boost::allocator_pointer<A>::type>::difference_type type; }; template<class A> struct alloc_diff_type<A, typename alloc_void<typename A::difference_type>::type> { typedef typename A::difference_type type; }; } template<class A> struct allocator_difference_type { typedef typename detail::alloc_diff_type<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_size_type { typedef typename std::make_unsigned<typename boost::allocator_difference_type<A>::type>::type type; }; template<class A> struct alloc_size_type<A, typename alloc_void<typename A::size_type>::type> { typedef typename A::size_type type; }; } template<class A> struct allocator_size_type { typedef typename detail::alloc_size_type<A>::type type; }; namespace detail { # 268 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 typedef std::false_type alloc_false; template<class A, class = void> struct alloc_pocca { typedef alloc_false type; }; template<class A> struct alloc_pocca<A, typename alloc_void<typename A::propagate_on_container_copy_assignment>::type> { typedef typename A::propagate_on_container_copy_assignment type; }; } template<class A, class = void> struct allocator_propagate_on_container_copy_assignment { typedef typename detail::alloc_pocca<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_pocma { typedef alloc_false type; }; template<class A> struct alloc_pocma<A, typename alloc_void<typename A::propagate_on_container_move_assignment>::type> { typedef typename A::propagate_on_container_move_assignment type; }; } template<class A> struct allocator_propagate_on_container_move_assignment { typedef typename detail::alloc_pocma<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_pocs { typedef alloc_false type; }; template<class A> struct alloc_pocs<A, typename alloc_void<typename A::propagate_on_container_swap>::type> { typedef typename A::propagate_on_container_swap type; }; } template<class A> struct allocator_propagate_on_container_swap { typedef typename detail::alloc_pocs<A>::type type; }; namespace detail { template<class A, class = void> struct alloc_equal { typedef typename std::is_empty<A>::type type; }; # 350 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<class A> struct alloc_equal<A, typename alloc_void<typename A::is_always_equal>::type> { typedef typename A::is_always_equal type; }; } template<class A> struct allocator_is_always_equal { typedef typename detail::alloc_equal<A>::type type; }; template<class A> inline typename allocator_pointer<A>::type allocator_allocate(A& a, typename allocator_size_type<A>::type n) { return a.allocate(n); } template<class A> inline void allocator_deallocate(A& a, typename allocator_pointer<A>::type p, typename allocator_size_type<A>::type n) { a.deallocate(p, n); } # 387 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 namespace detail { template<class> struct alloc_no { char x, y; }; template<class A> class alloc_has_allocate { template<class O> static auto check(int) -> alloc_no<decltype(std::declval<O&>().allocate(std::declval<typename boost::allocator_size_type<A>::type>(), std::declval<typename boost::allocator_const_void_pointer<A>::type>()))>; template<class> static char check(long); public: static constexpr bool value = sizeof(check<A>(0)) > 1; }; } template<class A> inline typename std::enable_if<detail::alloc_has_allocate<A>::value, typename allocator_pointer<A>::type>::type allocator_allocate(A& a, typename allocator_size_type<A>::type n, typename allocator_const_void_pointer<A>::type h) { return a.allocate(n, h); } template<class A> inline typename std::enable_if<!detail::alloc_has_allocate<A>::value, typename allocator_pointer<A>::type>::type allocator_allocate(A& a, typename allocator_size_type<A>::type n, typename allocator_const_void_pointer<A>::type) { return a.allocate(n); } namespace detail { # 444 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<class A, class T, class... Args> class alloc_has_construct { template<class O> static auto check(int) -> alloc_no<decltype(std::declval<O&>().construct(std::declval<T*>(), std::declval<Args&&>()...))>; template<class> static char check(long); public: static constexpr bool value = sizeof(check<A>(0)) > 1; }; template<bool, class = void> struct alloc_if { }; template<class T> struct alloc_if<true, T> { typedef T type; }; } # 516 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<class A, class T, class... Args> inline typename std::enable_if<detail::alloc_has_construct<A, T, Args...>::value>::type allocator_construct(A& a, T* p, Args&&... args) { a.construct(p, std::forward<Args>(args)...); } template<class A, class T, class... Args> inline typename std::enable_if<!detail::alloc_has_construct<A, T, Args...>::value>::type allocator_construct(A&, T* p, Args&&... args) { ::new((void*)p) T(std::forward<Args>(args)...); } namespace detail { # 547 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<class A, class T> class alloc_has_destroy { template<class O> static auto check(int) -> alloc_no<decltype(std::declval<O&>().destroy(std::declval<T*>()))>; template<class> static char check(long); public: static constexpr bool value = sizeof(check<A>(0)) > 1; }; } template<class A, class T> inline typename detail::alloc_if<detail::alloc_has_destroy<A, T>::value>::type allocator_destroy(A& a, T* p) { a.destroy(p); } template<class A, class T> inline typename detail::alloc_if<!detail::alloc_has_destroy<A, T>::value>::type allocator_destroy(A&, T* p) { p->~T(); (void)p; } namespace detail { # 607 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<class A> class alloc_has_max_size { template<class O> static auto check(int) -> alloc_no<decltype(std::declval<const O&>().max_size())>; template<class> static char check(long); public: static constexpr bool value = sizeof(check<A>(0)) > 1; }; } template<class A> inline typename detail::alloc_if<detail::alloc_has_max_size<A>::value, typename allocator_size_type<A>::type>::type allocator_max_size(const A& a) noexcept { return a.max_size(); } template<class A> inline typename detail::alloc_if<!detail::alloc_has_max_size<A>::value, typename allocator_size_type<A>::type>::type allocator_max_size(const A&) noexcept { return (std::numeric_limits<typename allocator_size_type<A>::type>::max)() / sizeof(typename allocator_value_type<A>::type); } namespace detail { # 665 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/allocator_access.hpp" 3 4 template<class A> class alloc_has_soccc { template<class O> static auto check(int) -> alloc_no<decltype(std::declval<const O&>().select_on_container_copy_construction())>; template<class> static char check(long); public: static constexpr bool value = sizeof(check<A>(0)) > 1; }; } template<class A> inline typename detail::alloc_if<detail::alloc_has_soccc<A>::value, A>::type allocator_select_on_container_copy_construction(const A& a) { return a.select_on_container_copy_construction(); } template<class A> inline typename detail::alloc_if<!detail::alloc_has_soccc<A>::value, A>::type allocator_select_on_container_copy_construction(const A& a) { return a; } template<class A, class T> inline void allocator_destroy_n(A& a, T* p, std::size_t n) { while (n > 0) { boost::allocator_destroy(a, p + --n); } } namespace detail { template<class A, class T> class alloc_destroyer { public: alloc_destroyer(A& a, T* p) noexcept : a_(a), p_(p), n_(0) { } ~alloc_destroyer() { boost::allocator_destroy_n(a_, p_, n_); } std::size_t& size() noexcept { return n_; } private: alloc_destroyer(const alloc_destroyer&); alloc_destroyer& operator=(const alloc_destroyer&); A& a_; T* p_; std::size_t n_; }; } template<class A, class T> inline void allocator_construct_n(A& a, T* p, std::size_t n) { detail::alloc_destroyer<A, T> d(a, p); for (std::size_t& i = d.size(); i < n; ++i) { boost::allocator_construct(a, p + i); } d.size() = 0; } template<class A, class T> inline void allocator_construct_n(A& a, T* p, std::size_t n, const T* l, std::size_t m) { detail::alloc_destroyer<A, T> d(a, p); for (std::size_t& i = d.size(); i < n; ++i) { boost::allocator_construct(a, p + i, l[i % m]); } d.size() = 0; } template<class A, class T, class I> inline void allocator_construct_n(A& a, T* p, std::size_t n, I b) { detail::alloc_destroyer<A, T> d(a, p); for (std::size_t& i = d.size(); i < n; void(++i), void(++b)) { boost::allocator_construct(a, p + i, *b); } d.size() = 0; } template<class A> using allocator_value_type_t = typename allocator_value_type<A>::type; template<class A> using allocator_pointer_t = typename allocator_pointer<A>::type; template<class A> using allocator_const_pointer_t = typename allocator_const_pointer<A>::type; template<class A> using allocator_void_pointer_t = typename allocator_void_pointer<A>::type; template<class A> using allocator_const_void_pointer_t = typename allocator_const_void_pointer<A>::type; template<class A> using allocator_difference_type_t = typename allocator_difference_type<A>::type; template<class A> using allocator_size_type_t = typename allocator_size_type<A>::type; template<class A> using allocator_propagate_on_container_copy_assignment_t = typename allocator_propagate_on_container_copy_assignment<A>::type; template<class A> using allocator_propagate_on_container_move_assignment_t = typename allocator_propagate_on_container_move_assignment<A>::type; template<class A> using allocator_propagate_on_container_swap_t = typename allocator_propagate_on_container_swap<A>::type; template<class A> using allocator_is_always_equal_t = typename allocator_is_always_equal<A>::type; template<class A, class T> using allocator_rebind_t = typename allocator_rebind<A, T>::type; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/alloc_construct.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/alloc_construct.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noinit_adaptor.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noinit_adaptor.hpp" 3 4 namespace boost { template<class A> struct noinit_adaptor : A { typedef void _default_construct_destroy; template<class U> struct rebind { typedef noinit_adaptor<typename allocator_rebind<A, U>::type> other; }; noinit_adaptor() : A() { } template<class U> noinit_adaptor(U&& u) noexcept : A(std::forward<U>(u)) { } # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noinit_adaptor.hpp" 3 4 template<class U> noinit_adaptor(const noinit_adaptor<U>& u) noexcept : A(static_cast<const A&>(u)) { } template<class U> void construct(U* p) { ::new((void*)p) U; } # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noinit_adaptor.hpp" 3 4 template<class U> void destroy(U* p) { p->~U(); (void)p; } }; template<class T, class U> inline bool operator==(const noinit_adaptor<T>& lhs, const noinit_adaptor<U>& rhs) noexcept { return static_cast<const T&>(lhs) == static_cast<const U&>(rhs); } template<class T, class U> inline bool operator!=(const noinit_adaptor<T>& lhs, const noinit_adaptor<U>& rhs) noexcept { return !(lhs == rhs); } template<class A> inline noinit_adaptor<A> noinit_adapt(const A& a) noexcept { return noinit_adaptor<A>(a); } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/alloc_construct.hpp" 2 3 4 namespace boost { template<class A, class T> inline void alloc_destroy(A& a, T* p) { boost::allocator_destroy(a, p); } template<class A, class T> inline void alloc_destroy_n(A& a, T* p, std::size_t n) { boost::allocator_destroy_n(a, p, n); } template<class A, class T> inline void alloc_construct(A& a, T* p) { boost::allocator_construct(a, p); } template<class A, class T, class U, class... V> inline void alloc_construct(A& a, T* p, U&& u, V&&... v) { boost::allocator_construct(a, p, std::forward<U>(u), std::forward<V>(v)...); } # 72 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/alloc_construct.hpp" 3 4 template<class A, class T> inline void alloc_construct_n(A& a, T* p, std::size_t n) { boost::allocator_construct_n(a, p, n); } template<class A, class T> inline void alloc_construct_n(A& a, T* p, std::size_t n, const T* l, std::size_t m) { boost::allocator_construct_n(a, p, n, l, m); } template<class A, class T, class I> inline void alloc_construct_n(A& a, T* p, std::size_t n, I b) { boost::allocator_construct_n(a, p, n, b); } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/first_scalar.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/first_scalar.hpp" 3 4 namespace boost { namespace detail { template<class T> struct make_scalar { typedef T type; }; template<class T, std::size_t N> struct make_scalar<T[N]> { typedef typename make_scalar<T>::type type; }; } template<class T> constexpr inline T* first_scalar(T* p) noexcept { return p; } template<class T, std::size_t N> constexpr inline typename detail::make_scalar<T>::type* first_scalar(T (*p)[N]) noexcept { return boost::first_scalar(&(*p)[0]); } } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/extent.hpp" 1 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/extent.hpp" 3 4 namespace boost { namespace detail{ # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/extent.hpp" 3 4 template <class T, std::size_t N> struct extent_imp { static const std::size_t value = 0; }; template <class T, std::size_t R, std::size_t N> struct extent_imp<T[R], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t R, std::size_t N> struct extent_imp<T const[R], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t R, std::size_t N> struct extent_imp<T volatile[R], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t R, std::size_t N> struct extent_imp<T const volatile[R], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t R> struct extent_imp<T[R],0> { static const std::size_t value = R; }; template <class T, std::size_t R> struct extent_imp<T const[R], 0> { static const std::size_t value = R; }; template <class T, std::size_t R> struct extent_imp<T volatile[R], 0> { static const std::size_t value = R; }; template <class T, std::size_t R> struct extent_imp<T const volatile[R], 0> { static const std::size_t value = R; }; template <class T, std::size_t N> struct extent_imp<T[], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t N> struct extent_imp<T const[], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t N> struct extent_imp<T volatile[], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T, std::size_t N> struct extent_imp<T const volatile[], N> { static const std::size_t value = (::boost::detail::extent_imp<T, N-1>::value); }; template <class T> struct extent_imp<T[], 0> { static const std::size_t value = 0; }; template <class T> struct extent_imp<T const[], 0> { static const std::size_t value = 0; }; template <class T> struct extent_imp<T volatile[], 0> { static const std::size_t value = 0; }; template <class T> struct extent_imp<T const volatile[], 0> { static const std::size_t value = 0; }; } template <class T, std::size_t N = 0> struct extent : public ::boost::integral_constant<std::size_t, ::boost::detail::extent_imp<T,N>::value> { }; } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_bounded_array.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_bounded_array.hpp" 3 4 namespace boost { template<class T> struct is_bounded_array : false_type { }; template<class T, std::size_t N> struct is_bounded_array<T[N]> : true_type { }; template<class T, std::size_t N> struct is_bounded_array<const T[N]> : true_type { }; template<class T, std::size_t N> struct is_bounded_array<volatile T[N]> : true_type { }; template<class T, std::size_t N> struct is_bounded_array<const volatile T[N]> : true_type { }; } # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_unbounded_array.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_unbounded_array.hpp" 3 4 namespace boost { template<class T> struct is_unbounded_array : false_type { }; template<class T> struct is_unbounded_array<T[]> : true_type { }; template<class T> struct is_unbounded_array<const T[]> : true_type { }; template<class T> struct is_unbounded_array<volatile T[]> : true_type { }; template<class T> struct is_unbounded_array<const volatile T[]> : true_type { }; } # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_extent.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_extent.hpp" 3 4 namespace boost { template <class T> struct remove_extent{ typedef T type; }; template <typename T, std::size_t N> struct remove_extent<T[N]> { typedef T type; }; template <typename T, std::size_t N> struct remove_extent<T const[N]> { typedef T const type; }; template <typename T, std::size_t N> struct remove_extent<T volatile [N]> { typedef T volatile type; }; template <typename T, std::size_t N> struct remove_extent<T const volatile [N]> { typedef T const volatile type; }; template <typename T> struct remove_extent<T[]> { typedef T type; }; template <typename T> struct remove_extent<T const[]> { typedef T const type; }; template <typename T> struct remove_extent<T volatile[]> { typedef T volatile type; }; template <typename T> struct remove_extent<T const volatile[]> { typedef T const volatile type; }; template <class T> using remove_extent_t = typename remove_extent<T>::type; } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/allocate_shared_array.hpp" 2 3 4 namespace boost { namespace detail { template<class T> struct sp_array_element { typedef typename boost::remove_cv<typename boost::remove_extent<T>::type>::type type; }; template<class T> struct sp_array_count { enum { value = 1 }; }; template<class T, std::size_t N> struct sp_array_count<T[N]> { enum { value = N * sp_array_count<T>::value }; }; template<std::size_t N, std::size_t M> struct sp_max_size { enum { value = N < M ? M : N }; }; template<std::size_t N, std::size_t M> struct sp_align_up { enum { value = (N + M - 1) & ~(M - 1) }; }; template<class T> constexpr inline std::size_t sp_objects(std::size_t size) noexcept { return (size + sizeof(T) - 1) / sizeof(T); } template<class A> class sp_array_state { public: typedef A type; template<class U> sp_array_state(const U& _allocator, std::size_t _size) noexcept : allocator_(_allocator), size_(_size) { } A& allocator() noexcept { return allocator_; } std::size_t size() const noexcept { return size_; } private: A allocator_; std::size_t size_; }; template<class A, std::size_t N> class sp_size_array_state { public: typedef A type; template<class U> sp_size_array_state(const U& _allocator, std::size_t) noexcept : allocator_(_allocator) { } A& allocator() noexcept { return allocator_; } constexpr std::size_t size() const noexcept { return N; } private: A allocator_; }; template<class T, class U> struct sp_array_alignment { enum { value = sp_max_size<boost::alignment_of<T>::value, boost::alignment_of<U>::value>::value }; }; template<class T, class U> struct sp_array_offset { enum { value = sp_align_up<sizeof(T), sp_array_alignment<T, U>::value>::value }; }; template<class U, class T> inline U* sp_array_start(T* base) noexcept { enum { size = sp_array_offset<T, U>::value }; return reinterpret_cast<U*>(reinterpret_cast<char*>(base) + size); } template<class A, class T> class sp_array_creator { typedef typename A::value_type element; enum { offset = sp_array_offset<T, element>::value }; typedef typename boost::type_with_alignment<sp_array_alignment<T, element>::value>::type type; public: template<class U> sp_array_creator(const U& other, std::size_t size) noexcept : other_(other), size_(sp_objects<type>(offset + sizeof(element) * size)) { } T* create() { return reinterpret_cast<T*>(other_.allocate(size_)); } void destroy(T* base) { other_.deallocate(reinterpret_cast<type*>(base), size_); } private: typename boost::allocator_rebind<A, type>::type other_; std::size_t size_; }; template<class T> class __attribute__((__visibility__("default"))) sp_array_base : public sp_counted_base { typedef typename T::type allocator; public: typedef typename allocator::value_type type; template<class A> sp_array_base(const A& other, type* start, std::size_t size) : state_(other, size) { boost::alloc_construct_n(state_.allocator(), boost::first_scalar(start), state_.size() * sp_array_count<type>::value); } template<class A, class U> sp_array_base(const A& other, type* start, std::size_t size, const U& list) : state_(other, size) { enum { count = sp_array_count<type>::value }; boost::alloc_construct_n(state_.allocator(), boost::first_scalar(start), state_.size() * count, boost::first_scalar(&list), count); } T& state() noexcept { return state_; } void dispose() noexcept override { boost::alloc_destroy_n(state_.allocator(), boost::first_scalar(sp_array_start<type>(this)), state_.size() * sp_array_count<type>::value); } void destroy() noexcept override { sp_array_creator<allocator, sp_array_base> other(state_.allocator(), state_.size()); this->~sp_array_base(); other.destroy(this); } void* get_deleter(const sp_typeinfo_&) noexcept override { return 0; } void* get_local_deleter(const sp_typeinfo_&) noexcept override { return 0; } void* get_untyped_deleter() noexcept override { return 0; } private: T state_; }; template<class A, class T> struct sp_array_result { public: template<class U> sp_array_result(const U& other, std::size_t size) : creator_(other, size), result_(creator_.create()) { } ~sp_array_result() { if (result_) { creator_.destroy(result_); } } T* get() const noexcept { return result_; } void release() noexcept { result_ = 0; } private: sp_array_result(const sp_array_result&); sp_array_result& operator=(const sp_array_result&); sp_array_creator<A, T> creator_; T* result_; }; } template<class T, class A> inline typename enable_if_<is_unbounded_array<T>::value, shared_ptr<T> >::type allocate_shared(const A& allocator, std::size_t count) { typedef typename detail::sp_array_element<T>::type element; typedef typename allocator_rebind<A, element>::type other; typedef detail::sp_array_state<other> state; typedef detail::sp_array_base<state> base; detail::sp_array_result<other, base> result(allocator, count); base* node = result.get(); element* start = detail::sp_array_start<element>(node); ::new(static_cast<void*>(node)) base(allocator, start, count); result.release(); return shared_ptr<T>(detail::sp_internal_constructor_tag(), start, detail::shared_count(static_cast<detail::sp_counted_base*>(node))); } template<class T, class A> inline typename enable_if_<is_bounded_array<T>::value, shared_ptr<T> >::type allocate_shared(const A& allocator) { enum { count = extent<T>::value }; typedef typename detail::sp_array_element<T>::type element; typedef typename allocator_rebind<A, element>::type other; typedef detail::sp_size_array_state<other, extent<T>::value> state; typedef detail::sp_array_base<state> base; detail::sp_array_result<other, base> result(allocator, count); base* node = result.get(); element* start = detail::sp_array_start<element>(node); ::new(static_cast<void*>(node)) base(allocator, start, count); result.release(); return shared_ptr<T>(detail::sp_internal_constructor_tag(), start, detail::shared_count(static_cast<detail::sp_counted_base*>(node))); } template<class T, class A> inline typename enable_if_<is_unbounded_array<T>::value, shared_ptr<T> >::type allocate_shared(const A& allocator, std::size_t count, const typename remove_extent<T>::type& value) { typedef typename detail::sp_array_element<T>::type element; typedef typename allocator_rebind<A, element>::type other; typedef detail::sp_array_state<other> state; typedef detail::sp_array_base<state> base; detail::sp_array_result<other, base> result(allocator, count); base* node = result.get(); element* start = detail::sp_array_start<element>(node); ::new(static_cast<void*>(node)) base(allocator, start, count, value); result.release(); return shared_ptr<T>(detail::sp_internal_constructor_tag(), start, detail::shared_count(static_cast<detail::sp_counted_base*>(node))); } template<class T, class A> inline typename enable_if_<is_bounded_array<T>::value, shared_ptr<T> >::type allocate_shared(const A& allocator, const typename remove_extent<T>::type& value) { enum { count = extent<T>::value }; typedef typename detail::sp_array_element<T>::type element; typedef typename allocator_rebind<A, element>::type other; typedef detail::sp_size_array_state<other, extent<T>::value> state; typedef detail::sp_array_base<state> base; detail::sp_array_result<other, base> result(allocator, count); base* node = result.get(); element* start = detail::sp_array_start<element>(node); ::new(static_cast<void*>(node)) base(allocator, start, count, value); result.release(); return shared_ptr<T>(detail::sp_internal_constructor_tag(), start, detail::shared_count(static_cast<detail::sp_counted_base*>(node))); } template<class T, class A> inline typename enable_if_<is_unbounded_array<T>::value, shared_ptr<T> >::type allocate_shared_noinit(const A& allocator, std::size_t count) { return boost::allocate_shared<T>(boost::noinit_adapt(allocator), count); } template<class T, class A> inline typename enable_if_<is_bounded_array<T>::value, shared_ptr<T> >::type allocate_shared_noinit(const A& allocator) { return boost::allocate_shared<T>(boost::noinit_adapt(allocator)); } } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared_array.hpp" 2 3 4 namespace boost { template<class T> inline typename enable_if_<is_bounded_array<T>::value, shared_ptr<T> >::type make_shared() { return boost::allocate_shared<T>(boost::default_allocator<typename detail::sp_array_element<T>::type>()); } template<class T> inline typename enable_if_<is_bounded_array<T>::value, shared_ptr<T> >::type make_shared(const typename remove_extent<T>::type& value) { return boost::allocate_shared<T>(boost::default_allocator<typename detail::sp_array_element<T>::type>(), value); } template<class T> inline typename enable_if_<is_unbounded_array<T>::value, shared_ptr<T> >::type make_shared(std::size_t size) { return boost::allocate_shared<T>(boost::default_allocator<typename detail::sp_array_element<T>::type>(), size); } template<class T> inline typename enable_if_<is_unbounded_array<T>::value, shared_ptr<T> >::type make_shared(std::size_t size, const typename remove_extent<T>::type& value) { return boost::allocate_shared<T>(boost::default_allocator<typename detail::sp_array_element<T>::type>(), size, value); } template<class T> inline typename enable_if_<is_bounded_array<T>::value, shared_ptr<T> >::type make_shared_noinit() { return boost::allocate_shared_noinit<T>(boost::default_allocator<typename detail::sp_array_element<T>::type>()); } template<class T> inline typename enable_if_<is_unbounded_array<T>::value, shared_ptr<T> >::type make_shared_noinit(std::size_t size) { return boost::allocate_shared_noinit<T>(boost::default_allocator<typename detail::sp_array_element<T>::type>(), size); } } # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/make_shared.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/make_shared.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 2 3 4 # 1 "/usr/include/c++/13/stdlib.h" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 3 # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 3 namespace boost { namespace exception_detail { struct std_exception_ptr_wrapper: std::exception { std::exception_ptr p; explicit std_exception_ptr_wrapper( std::exception_ptr const & ptr ) noexcept: p(ptr) { } explicit std_exception_ptr_wrapper( std::exception_ptr && ptr ) noexcept: p(static_cast<std::exception_ptr &&>(ptr)) { } }; shared_ptr<exception_detail::clone_base const> inline wrap_exception_ptr( std::exception_ptr const & e ) { exception_detail::clone_base const & base = boost::enable_current_exception(std_exception_ptr_wrapper(e)); return shared_ptr<exception_detail::clone_base const>(base.clone()); } } class exception_ptr; namespace exception_detail { void rethrow_exception_( exception_ptr const & ); } class exception_ptr { typedef boost::shared_ptr<exception_detail::clone_base const> impl; impl ptr_; friend void exception_detail::rethrow_exception_( exception_ptr const & ); typedef exception_detail::clone_base const * (impl::*unspecified_bool_type)() const; public: exception_ptr() { } exception_ptr( std::exception_ptr const & e ): ptr_(exception_detail::wrap_exception_ptr(e)) { } explicit exception_ptr( impl const & ptr ): ptr_(ptr) { } bool operator==( exception_ptr const & other ) const { return ptr_==other.ptr_; } bool operator!=( exception_ptr const & other ) const { return ptr_!=other.ptr_; } operator unspecified_bool_type() const { return ptr_?&impl::get:0; } }; namespace exception_detail { template <class E> inline exception_ptr copy_exception_impl( E const & e ) { return exception_ptr(boost::make_shared<E>(e)); } } template <class E> inline exception_ptr copy_exception( E const & e ) { return exception_detail::copy_exception_impl(boost::enable_current_exception(e)); } template <class T> inline exception_ptr make_exception_ptr( T const & e ) { return boost::copy_exception(e); } typedef error_info<struct tag_original_exception_type,std::type_info const *> original_exception_type; inline std::string to_string( original_exception_type const & x ) { return core::demangle(x.value()->name()); } namespace exception_detail { struct bad_alloc_: boost::exception, std::bad_alloc { ~bad_alloc_() noexcept { } }; struct bad_exception_: boost::exception, std::bad_exception { ~bad_exception_() noexcept { } }; template <class Exception> exception_ptr get_static_exception_object() { Exception ba; exception_detail::clone_impl<Exception> c(ba); c << throw_function(__PRETTY_FUNCTION__) << throw_file("/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp") << throw_line(183); static exception_ptr ep(shared_ptr<exception_detail::clone_base const>(new exception_detail::clone_impl<Exception>(c))); return ep; } template <class Exception> struct exception_ptr_static_exception_object { static exception_ptr const e; }; template <class Exception> exception_ptr const exception_ptr_static_exception_object<Exception>:: e = get_static_exception_object<Exception>(); } #pragma GCC visibility push (default) class unknown_exception: public boost::exception, public std::exception { public: unknown_exception() { } explicit unknown_exception( std::exception const & e ) { add_original_type(e); } explicit unknown_exception( boost::exception const & e ): boost::exception(e) { add_original_type(e); } ~unknown_exception() noexcept { } private: template <class E> void add_original_type( E const & e ) { (*this) << original_exception_type(&typeid(e)); } }; #pragma GCC visibility pop namespace exception_detail { template <class T> class current_exception_std_exception_wrapper: public T, public boost::exception { public: explicit current_exception_std_exception_wrapper( T const & e1 ): T(e1) { add_original_type(e1); } current_exception_std_exception_wrapper( T const & e1, boost::exception const & e2 ): T(e1), boost::exception(e2) { add_original_type(e1); } ~current_exception_std_exception_wrapper() noexcept { } private: template <class E> void add_original_type( E const & e ) { (*this) << original_exception_type(&typeid(e)); } }; # 313 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 3 template <class T> boost::exception const * get_boost_exception( T const * x ) { return dynamic_cast<boost::exception const *>(x); } template <class T> inline exception_ptr current_exception_std_exception( T const & e1 ) { if( boost::exception const * e2 = get_boost_exception(&e1) ) return boost::copy_exception(current_exception_std_exception_wrapper<T>(e1,*e2)); else return boost::copy_exception(current_exception_std_exception_wrapper<T>(e1)); } inline exception_ptr current_exception_unknown_exception() { return boost::copy_exception(unknown_exception()); } inline exception_ptr current_exception_unknown_boost_exception( boost::exception const & e ) { return boost::copy_exception(unknown_exception(e)); } inline exception_ptr current_exception_unknown_std_exception( std::exception const & e ) { if( boost::exception const * be = get_boost_exception(&e) ) return current_exception_unknown_boost_exception(*be); else return boost::copy_exception(unknown_exception(e)); } inline exception_ptr current_exception_impl() { exception_detail::clone_base const * e=0; switch( exception_detail::clone_current_exception(e) ) { case exception_detail::clone_current_exception_result:: success: { (static_cast <bool> (e!=0) ? void (0) : __assert_fail ("e!=0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 367, __extension__ __PRETTY_FUNCTION__)); return exception_ptr(shared_ptr<exception_detail::clone_base const>(e)); } case exception_detail::clone_current_exception_result:: bad_alloc: { (static_cast <bool> (!e) ? void (0) : __assert_fail ("!e", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 373, __extension__ __PRETTY_FUNCTION__)); return exception_detail::exception_ptr_static_exception_object<bad_alloc_>::e; } case exception_detail::clone_current_exception_result:: bad_exception: { (static_cast <bool> (!e) ? void (0) : __assert_fail ("!e", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 379, __extension__ __PRETTY_FUNCTION__)); return exception_detail::exception_ptr_static_exception_object<bad_exception_>::e; } default: (static_cast <bool> (0) ? void (0) : __assert_fail ("0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 383, __extension__ __PRETTY_FUNCTION__)); case exception_detail::clone_current_exception_result:: not_supported: { (static_cast <bool> (!e) ? void (0) : __assert_fail ("!e", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 387, __extension__ __PRETTY_FUNCTION__)); try { throw; } catch( exception_detail::clone_base & e ) { return exception_ptr(shared_ptr<exception_detail::clone_base const>(e.clone())); } # 485 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp" 3 catch( ... ) { try { return exception_ptr(std::current_exception()); } catch( ...) { return exception_detail::current_exception_unknown_exception(); } } } } } } inline exception_ptr current_exception() { exception_ptr ret; try { ret=exception_detail::current_exception_impl(); } catch( std::bad_alloc & ) { ret=exception_detail::exception_ptr_static_exception_object<exception_detail::bad_alloc_>::e; } catch( ... ) { ret=exception_detail::exception_ptr_static_exception_object<exception_detail::bad_exception_>::e; } (static_cast <bool> (ret) ? void (0) : __assert_fail ("ret", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 526, __extension__ __PRETTY_FUNCTION__)); return ret; } namespace exception_detail { inline void rethrow_exception_( exception_ptr const & p ) { (static_cast <bool> (p) ? void (0) : __assert_fail ("p", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 538, __extension__ __PRETTY_FUNCTION__)); try { p.ptr_->rethrow(); } catch( std_exception_ptr_wrapper const & wrp) { std::rethrow_exception(wrp.p); } } } __attribute__ ((__noreturn__)) inline void rethrow_exception( exception_ptr const & p ) { exception_detail::rethrow_exception_(p); (static_cast <bool> (0) ? void (0) : __assert_fail ("0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception/detail/exception_ptr.hpp", 562, __extension__ __PRETTY_FUNCTION__)); abort(); } inline std::string diagnostic_information( exception_ptr const & p, bool verbose=true ) { if( p ) try { rethrow_exception(p); } catch( ... ) { return current_exception_diagnostic_information(verbose); } return "<empty>"; } inline std::string to_string( exception_ptr const & p ) { std::string s='\n'+diagnostic_information(p); std::string padding(" "); std::string r; bool f=false; for( std::string::const_iterator i=s.begin(),e=s.end(); i!=e; ++i ) { if( f ) r+=padding; char c=*i; r+=c; f=(c=='\n'); } return r; } } # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/exception_ptr.hpp" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/enum_binary_params.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat_from_to.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat_from_to.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/repetition/repeat_from_to.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/enable_if.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 2 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 3 4 namespace boost { namespace detail { # 73 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 3 4 template < typename T > struct remove_cv_ref { typedef typename ::boost::remove_cv<typename ::boost::remove_reference<T>::type>::type type; }; template < typename T, typename U > struct is_related : public ::boost::is_same< typename ::boost::detail::remove_cv_ref<T>::type, typename ::boost::detail::remove_cv_ref<U>::type > {}; # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 3 4 template<typename ...T> struct enable_if_unrelated : public ::boost::enable_if_c<true> {}; template<typename T, typename U, typename ...U2> struct enable_if_unrelated<T, U, U2...> : public ::boost::disable_if< ::boost::detail::is_related<T, U> > {}; } # 124 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 3 4 template < typename MemberType, int UniqueID = 0 > class base_from_member { protected: MemberType member; template <typename ...T, typename EnableIf = typename ::boost::detail::enable_if_unrelated<base_from_member, T...>::type> explicit constexpr base_from_member( T&& ...x ) noexcept((noexcept((::new ((void*) 0) MemberType( static_cast<T&&>(x)... ))))) : member( static_cast<T&&>(x)... ) {} # 151 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/base_from_member.hpp" 3 4 }; template < typename MemberType, int UniqueID > class base_from_member<MemberType&, UniqueID> { protected: MemberType& member; explicit constexpr base_from_member( MemberType& x ) noexcept : member( x ) {} }; } # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/binary.hpp" 1 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/binary.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/deduce_d.hpp" 1 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/deduce_d.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 33 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/control/deduce_d.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/binary.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/cat.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/cat.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 1 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/detail/auto_rec.hpp" 1 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/seq.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/seq.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/elem.hpp" 1 3 4 # 313 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/elem.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/limits/elem_256.hpp" 1 3 4 # 314 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/elem.hpp" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/seq.hpp" 2 3 4 # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/size.hpp" 1 3 4 # 557 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/size.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/limits/size_256.hpp" 1 3 4 # 558 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/size.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 1110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/limits/fold_left_256.hpp" 1 3 4 # 1111 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/fold_left.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/cat.hpp" 2 3 4 # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/binary.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/seq/transform.hpp" 1 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/binary.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/mod.hpp" 1 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/mod.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/div_base.hpp" 1 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/div_base.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/comparison/less_equal.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/div_base.hpp" 2 3 4 # 46 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/mod.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/detail/is_1_number.hpp" 1 3 4 # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/preprocessor/arithmetic/mod.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/binary.hpp" 2 3 4 # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/identity_type.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/identity_type.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/function_traits.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/function_traits.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_pointer.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_pointer.hpp" 3 4 namespace boost { # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_pointer.hpp" 3 4 template <typename T> struct add_pointer { typedef typename remove_reference<T>::type no_ref_type; typedef no_ref_type* type; }; template <class T> using add_pointer_t = typename add_pointer<T>::type; } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/function_traits.hpp" 2 3 4 namespace boost { namespace detail { template<typename Function> struct function_traits_helper; template<typename R> struct function_traits_helper<R (*)(void)> { static const unsigned arity = 0; typedef R result_type; }; template<typename R, typename T1> struct function_traits_helper<R (*)(T1)> { static const unsigned arity = 1; typedef R result_type; typedef T1 arg1_type; typedef T1 argument_type; }; template<typename R, typename T1, typename T2> struct function_traits_helper<R (*)(T1, T2)> { static const unsigned arity = 2; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T1 first_argument_type; typedef T2 second_argument_type; }; template<typename R, typename T1, typename T2, typename T3> struct function_traits_helper<R (*)(T1, T2, T3)> { static const unsigned arity = 3; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4> struct function_traits_helper<R (*)(T1, T2, T3, T4)> { static const unsigned arity = 4; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4, typename T5> struct function_traits_helper<R (*)(T1, T2, T3, T4, T5)> { static const unsigned arity = 5; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6> struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6)> { static const unsigned arity = 6; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7> struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7)> { static const unsigned arity = 7; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8> struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8)> { static const unsigned arity = 8; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; typedef T8 arg8_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9> struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8, T9)> { static const unsigned arity = 9; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; typedef T8 arg8_type; typedef T9 arg9_type; }; template<typename R, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10> struct function_traits_helper<R (*)(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)> { static const unsigned arity = 10; typedef R result_type; typedef T1 arg1_type; typedef T2 arg2_type; typedef T3 arg3_type; typedef T4 arg4_type; typedef T5 arg5_type; typedef T6 arg6_type; typedef T7 arg7_type; typedef T8 arg8_type; typedef T9 arg9_type; typedef T10 arg10_type; }; } template<typename Function> struct function_traits : public boost::detail::function_traits_helper<typename boost::add_pointer<Function>::type> { }; } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility/identity_type.hpp" 2 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noncopyable.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noncopyable.hpp" 3 4 namespace boost { namespace noncopyable_ { # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/core/noncopyable.hpp" 3 4 struct base_token {}; class noncopyable: base_token { protected: constexpr noncopyable() = default; ~noncopyable() = default; noncopyable( const noncopyable& ) = delete; noncopyable& operator=( const noncopyable& ) = delete; }; } typedef noncopyable_::noncopyable noncopyable; } # 23 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/utility.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/data.hpp" 1 3 4 # 18 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/data.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { struct data_t { coroutine_context * from; void * data; }; }}} # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp" 2 3 4 namespace boost { namespace coroutines { namespace detail { template< typename Coro > void trampoline_pull( context::detail::transfer_t t) { typedef typename Coro::param_type param_type; data_t * data = static_cast< data_t * >( t.data); data->from->ctx_ = t.fctx; param_type * param( static_cast< param_type * >( data->data) ); (static_cast <bool> (0 != param) ? void (0) : __assert_fail ("0 != param", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp", 35, __extension__ __PRETTY_FUNCTION__)); Coro * coro( static_cast< Coro * >( param->coro) ); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_pull.hpp", 39, __extension__ __PRETTY_FUNCTION__)); coro->run(); } }}} # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp" 2 3 4 namespace boost { namespace coroutines { struct stack_context; namespace detail { template< typename R > class pull_coroutine_impl : private noncopyable { protected: int flags_; exception_ptr except_; coroutine_context * caller_; coroutine_context * callee_; R * result_; public: typedef parameters< R > param_type; pull_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind) : flags_( 0), except_(), caller_( caller), callee_( callee), result_( 0) { if ( unwind) flags_ |= flag_force_unwind; } pull_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind, R * result) : flags_( 0), except_(), caller_( caller), callee_( callee), result_( result) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~pull_coroutine_impl() {} bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; param_type to( unwind_t::force_unwind); caller_->jump( * callee_, & to); flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 100, __extension__ __PRETTY_FUNCTION__)); } } void pull() { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 106, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 107, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; result_ = from->data; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } bool has_result() const { return 0 != result_; } R get() const { if ( ! has_result() ) boost::throw_exception( invalid_result() ); return * result_; } R * get_pointer() const { if ( ! has_result() ) boost::throw_exception( invalid_result() ); return result_; } virtual void destroy() = 0; }; template< typename R > class pull_coroutine_impl< R & > : private noncopyable { protected: int flags_; exception_ptr except_; coroutine_context * caller_; coroutine_context * callee_; R * result_; public: typedef parameters< R & > param_type; pull_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind) : flags_( 0), except_(), caller_( caller), callee_( callee), result_( 0) { if ( unwind) flags_ |= flag_force_unwind; } pull_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind, R * result) : flags_( 0), except_(), caller_( caller), callee_( callee), result_( result) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~pull_coroutine_impl() {} bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; param_type to( unwind_t::force_unwind); caller_->jump( * callee_, & to); flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 210, __extension__ __PRETTY_FUNCTION__)); } } void pull() { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 216, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 217, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; result_ = from->data; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } bool has_result() const { return 0 != result_; } R & get() const { if ( ! has_result() ) boost::throw_exception( invalid_result() ); return * result_; } R * get_pointer() const { if ( ! has_result() ) boost::throw_exception( invalid_result() ); return result_; } virtual void destroy() = 0; }; template<> class pull_coroutine_impl< void > : private noncopyable { protected: int flags_; exception_ptr except_; coroutine_context * caller_; coroutine_context * callee_; public: typedef parameters< void > param_type; pull_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind) : flags_( 0), except_(), caller_( caller), callee_( callee) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~pull_coroutine_impl() {} inline bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } inline bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } inline bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } inline bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } inline bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } inline void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; param_type to( unwind_t::force_unwind); caller_->jump( * callee_, & to); flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 305, __extension__ __PRETTY_FUNCTION__)); } } inline void pull() { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 311, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_impl.hpp", 312, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } virtual void destroy() = 0; }; }}} # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { struct pull_coroutine_context { coroutine_context caller; coroutine_context callee; template< typename Coro > pull_coroutine_context( preallocated const& palloc, Coro *) : caller(), callee( trampoline_pull< Coro >, palloc) {} }; template< typename PushCoro, typename R, typename Fn, typename StackAllocator > class pull_coroutine_object : private pull_coroutine_context, public pull_coroutine_impl< R > { private: typedef pull_coroutine_context ctx_t; typedef pull_coroutine_impl< R > base_t; typedef pull_coroutine_object< PushCoro, R, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 89 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 3 4 pull_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : ctx_t( palloc, this), base_t( & this->caller, & this->callee, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run() { (static_cast <bool> (! base_t::unwind_requested()) ? void (0) : __assert_fail ("! base_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp", 107, __extension__ __PRETTY_FUNCTION__)); base_t::flags_ |= flag_started; base_t::flags_ |= flag_running; typename PushCoro::synth_type b( & this->callee, & this->caller, false); PushCoro push_coro( synthesized_t::syntesized, b); try { fn_( push_coro); } catch ( forced_unwind const&) {} catch ( abi::__forced_unwind const&) { throw; } catch (...) { base_t::except_ = current_exception(); } base_t::flags_ |= flag_complete; base_t::flags_ &= ~flag_running; typename base_t::param_type to; this->callee.jump( this->caller, & to); (static_cast <bool> ((false)&&("pull_coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"pull_coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp", 132, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; template< typename PushCoro, typename R, typename Fn, typename StackAllocator > class pull_coroutine_object< PushCoro, R &, Fn, StackAllocator > : private pull_coroutine_context, public pull_coroutine_impl< R & > { private: typedef pull_coroutine_context ctx_t; typedef pull_coroutine_impl< R & > base_t; typedef pull_coroutine_object< PushCoro, R &, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 176 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 3 4 pull_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : ctx_t( palloc, this), base_t( & this->caller, & this->callee, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run() { (static_cast <bool> (! base_t::unwind_requested()) ? void (0) : __assert_fail ("! base_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp", 194, __extension__ __PRETTY_FUNCTION__)); base_t::flags_ |= flag_started; base_t::flags_ |= flag_running; typename PushCoro::synth_type b( & this->callee, & this->caller, false); PushCoro push_coro( synthesized_t::syntesized, b); try { fn_( push_coro); } catch ( forced_unwind const&) {} catch ( abi::__forced_unwind const&) { throw; } catch (...) { base_t::except_ = current_exception(); } base_t::flags_ |= flag_complete; base_t::flags_ &= ~flag_running; typename base_t::param_type to; this->callee.jump( this->caller, & to); (static_cast <bool> ((false)&&("pull_coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"pull_coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp", 219, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; template< typename PushCoro, typename Fn, typename StackAllocator > class pull_coroutine_object< PushCoro, void, Fn, StackAllocator > : private pull_coroutine_context, public pull_coroutine_impl< void > { private: typedef pull_coroutine_context ctx_t; typedef pull_coroutine_impl< void > base_t; typedef pull_coroutine_object< PushCoro, void, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 263 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp" 3 4 pull_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : ctx_t( palloc, this), base_t( & this->caller, & this->callee, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run() { (static_cast <bool> (! base_t::unwind_requested()) ? void (0) : __assert_fail ("! base_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp", 281, __extension__ __PRETTY_FUNCTION__)); base_t::flags_ |= flag_started; base_t::flags_ |= flag_running; typename PushCoro::synth_type b( & this->callee, & this->caller, false); PushCoro push_coro( synthesized_t::syntesized, b); try { fn_( push_coro); } catch ( forced_unwind const&) {} catch ( abi::__forced_unwind const&) { throw; } catch (...) { base_t::except_ = current_exception(); } base_t::flags_ |= flag_complete; base_t::flags_ &= ~flag_running; typename base_t::param_type to; this->callee.jump( this->caller, & to); (static_cast <bool> ((false)&&("pull_coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"pull_coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_object.hpp", 306, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; }}} # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_synthesized.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/pull_coroutine_synthesized.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename R > class pull_coroutine_synthesized : public pull_coroutine_impl< R > { private: typedef pull_coroutine_impl< R > impl_t; public: pull_coroutine_synthesized( coroutine_context * caller, coroutine_context * callee, bool unwind, R * result) : impl_t( caller, callee, unwind, result) {} void destroy() {} }; template< typename R > class pull_coroutine_synthesized< R & > : public pull_coroutine_impl< R & > { private: typedef pull_coroutine_impl< R & > impl_t; public: pull_coroutine_synthesized( coroutine_context * caller, coroutine_context * callee, bool unwind, R * result) : impl_t( caller, callee, unwind, result) {} void destroy() {} }; template<> class pull_coroutine_synthesized< void > : public pull_coroutine_impl< void > { private: typedef pull_coroutine_impl< void > impl_t; public: pull_coroutine_synthesized( coroutine_context * caller, coroutine_context * callee, bool unwind) : impl_t( caller, callee, unwind) {} inline void destroy() {} }; }}} # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp" 2 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/decay.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/decay.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_array.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_array.hpp" 3 4 namespace boost { template <class T> struct is_array : public false_type {}; template <class T, std::size_t N> struct is_array<T[N]> : public true_type {}; template <class T, std::size_t N> struct is_array<T const[N]> : public true_type{}; template <class T, std::size_t N> struct is_array<T volatile[N]> : public true_type{}; template <class T, std::size_t N> struct is_array<T const volatile[N]> : public true_type{}; template <class T> struct is_array<T[]> : public true_type{}; template <class T> struct is_array<T const[]> : public true_type{}; template <class T> struct is_array<T const volatile[]> : public true_type{}; template <class T> struct is_array<T volatile[]> : public true_type{}; } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/decay.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_bounds.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/remove_bounds.hpp" 3 4 namespace boost { template <class T> struct remove_bounds : public remove_extent<T> {}; template <class T> using remove_bounds_t = typename remove_bounds<T>::type; } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/decay.hpp" 2 3 4 namespace boost { namespace detail { template <class T, bool Array, bool Function> struct decay_imp { typedef typename remove_cv<T>::type type; }; template <class T> struct decay_imp<T, true, false> { typedef typename remove_bounds<T>::type* type; }; template <class T> struct decay_imp<T, false, true> { typedef T* type; }; } template< class T > struct decay { private: typedef typename remove_reference<T>::type Ty; public: typedef typename boost::detail::decay_imp<Ty, boost::is_array<Ty>::value, boost::is_function<Ty>::value>::type type; }; template <class T> using decay_t = typename decay<T>::type; } # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 1 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_abstract.hpp" 1 3 4 # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_abstract.hpp" 3 4 namespace boost { namespace detail{ template <class T> struct is_abstract_imp { static const bool value = __is_abstract(T); }; # 140 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_abstract.hpp" 3 4 } template <class T> struct is_abstract : public integral_constant<bool, ::boost::detail::is_abstract_imp<T>::value> {}; } # 29 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_lvalue_reference.hpp" 1 3 4 # 9 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_lvalue_reference.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_reference.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_reference.hpp" 3 4 namespace boost { namespace detail { template <typename T> struct add_reference_impl { typedef T& type; }; template <typename T> struct add_reference_impl<T&&> { typedef T&& type; }; } template <class T> struct add_reference { typedef typename boost::detail::add_reference_impl<T>::type type; }; template <class T> struct add_reference<T&> { typedef T& type; }; template <> struct add_reference<void> { typedef void type; }; template <> struct add_reference<const void> { typedef const void type; }; template <> struct add_reference<const volatile void> { typedef const volatile void type; }; template <> struct add_reference<volatile void> { typedef volatile void type; }; template <class T> using add_reference_t = typename add_reference<T>::type; } # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/add_lvalue_reference.hpp" 2 3 4 namespace boost{ template <class T> struct add_lvalue_reference { typedef typename boost::add_reference<T>::type type; }; template <class T> struct add_lvalue_reference<T&&> { typedef T& type; }; template <class T> using add_lvalue_reference_t = typename add_lvalue_reference<T>::type; } # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 2 3 4 # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 3 4 namespace boost { # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 3 4 namespace detail { template <class A, class B, class C> struct or_helper { static const bool value = (A::value || B::value || C::value); }; template<typename From, typename To, bool b = or_helper<boost::is_void<From>, boost::is_function<To>, boost::is_array<To> >::value> struct is_convertible_basic_impl { static const bool value = is_void<To>::value; }; template<typename From, typename To> class is_convertible_basic_impl<From, To, false> { typedef char one; typedef int two; template<typename To1> static void test_aux(To1); template<typename From1, typename To1> static decltype(test_aux<To1>(boost::declval<From1>()), one()) test(int); template<typename, typename> static two test(...); public: static const bool value = sizeof(test<From, To>(0)) == 1; }; # 362 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 3 4 template <typename From, typename To> struct is_convertible_impl { static const bool value = ( ::boost::detail::is_convertible_basic_impl<From, To>::value && !::boost::is_array<To>::value && !::boost::is_function<To>::value); }; template <bool trivial1, bool trivial2, bool abstract_target> struct is_convertible_impl_select { template <class From, class To> struct rebind { typedef is_convertible_impl<From, To> type; }; }; template <> struct is_convertible_impl_select<true, true, false> { template <class From, class To> struct rebind { typedef true_type type; }; }; template <> struct is_convertible_impl_select<false, false, true> { template <class From, class To> struct rebind { typedef false_type type; }; }; template <> struct is_convertible_impl_select<true, false, true> { template <class From, class To> struct rebind { typedef false_type type; }; }; template <typename From, typename To> struct is_convertible_impl_dispatch_base { typedef is_convertible_impl_select< ::boost::is_arithmetic<From>::value, ::boost::is_arithmetic<To>::value, false > selector; typedef typename selector::template rebind<From, To> isc_binder; typedef typename isc_binder::type type; }; template <typename From, typename To> struct is_convertible_impl_dispatch : public is_convertible_impl_dispatch_base<From, To>::type {}; # 442 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 3 4 template <> struct is_convertible_impl_dispatch<void, void> : public true_type{}; template <> struct is_convertible_impl_dispatch<void, void const> : public true_type{}; template <> struct is_convertible_impl_dispatch<void, void const volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void, void volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const, void> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const, void const> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const, void const volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const, void volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const volatile, void> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const volatile, void const> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const volatile, void const volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void const volatile, void volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void volatile, void> : public true_type{}; template <> struct is_convertible_impl_dispatch<void volatile, void const> : public true_type{}; template <> struct is_convertible_impl_dispatch<void volatile, void const volatile> : public true_type{}; template <> struct is_convertible_impl_dispatch<void volatile, void volatile> : public true_type{}; template <class To> struct is_convertible_impl_dispatch<void, To> : public false_type{}; template <class From> struct is_convertible_impl_dispatch<From, void> : public false_type{}; template <class To> struct is_convertible_impl_dispatch<void const, To> : public false_type{}; template <class From> struct is_convertible_impl_dispatch<From, void const> : public false_type{}; template <class To> struct is_convertible_impl_dispatch<void const volatile, To> : public false_type{}; template <class From> struct is_convertible_impl_dispatch<From, void const volatile> : public false_type{}; template <class To> struct is_convertible_impl_dispatch<void volatile, To> : public false_type{}; template <class From> struct is_convertible_impl_dispatch<From, void volatile> : public false_type{}; } template <class From, class To> struct is_convertible : public integral_constant<bool, ::boost::detail::is_convertible_impl_dispatch<From, To>::value> { static_assert(boost::is_complete<To>::value || boost::is_void<To>::value || boost::is_array<To>::value, "Destination argument type to is_convertible must be a complete type"); static_assert(boost::is_complete<From>::value || boost::is_void<From>::value || boost::is_array<From>::value, "From argument type to is_convertible must be a complete type"); }; # 504 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/type_traits/is_convertible.hpp" 3 4 } # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 2 3 4 # 25 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename Fn > struct setup { struct dummy {}; Fn fn; coroutine_context * caller; coroutine_context * callee; attributes attr; # 50 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/setup.hpp" 3 4 setup( Fn && fn_, coroutine_context * caller_, coroutine_context * callee_, attributes const& attr_, typename disable_if< is_same< typename decay< Fn >::type, setup >, dummy* >::type = 0) : fn( boost::forward< Fn >( fn_) ), caller( caller_), callee( callee_), attr( attr_) {} }; }}} # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp" 2 3 4 # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename Coro > void trampoline_push( context::detail::transfer_t t) { typedef typename Coro::param_type param_type; data_t * data = static_cast< data_t * >( t.data); data->from->ctx_ = t.fctx; param_type * param( static_cast< param_type * >( data->data) ); (static_cast <bool> (0 != param) ? void (0) : __assert_fail ("0 != param", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp", 45, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (0 != param->data) ? void (0) : __assert_fail ("0 != param->data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp", 46, __extension__ __PRETTY_FUNCTION__)); Coro * coro( static_cast< Coro * >( param->coro) ); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp", 50, __extension__ __PRETTY_FUNCTION__)); coro->run( param->data); } template< typename Coro > void trampoline_push_void( context::detail::transfer_t t) { typedef typename Coro::param_type param_type; data_t * data = static_cast< data_t * >( t.data); data->from->ctx_ = t.fctx; param_type * param( static_cast< param_type * >( data->data) ); (static_cast <bool> (0 != param) ? void (0) : __assert_fail ("0 != param", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp", 64, __extension__ __PRETTY_FUNCTION__)); Coro * coro( static_cast< Coro * >( param->coro) ); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline_push.hpp", 68, __extension__ __PRETTY_FUNCTION__)); coro->run(); } }}} # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp" 2 3 4 namespace boost { namespace coroutines { struct stack_context; namespace detail { template< typename Arg > class push_coroutine_impl : private noncopyable { protected: int flags_; exception_ptr except_; coroutine_context * caller_; coroutine_context * callee_; public: typedef parameters< Arg > param_type; push_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind) : flags_( 0), except_(), caller_( caller), callee_( callee) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~push_coroutine_impl() {} bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; param_type to( unwind_t::force_unwind); caller_->jump( * callee_, & to); flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 85, __extension__ __PRETTY_FUNCTION__)); } } void push( Arg const& arg) { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 91, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 92, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( const_cast< Arg * >( & arg), this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } void push( Arg && arg) { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 108, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 109, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( const_cast< Arg * >( & arg), this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } virtual void destroy() = 0; }; template< typename Arg > class push_coroutine_impl< Arg & > : private noncopyable { protected: int flags_; exception_ptr except_; coroutine_context * caller_; coroutine_context * callee_; public: typedef parameters< Arg & > param_type; push_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind) : flags_( 0), except_(), caller_( caller), callee_( callee) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~push_coroutine_impl() {} bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; param_type to( unwind_t::force_unwind); caller_->jump( * callee_, & to); flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 177, __extension__ __PRETTY_FUNCTION__)); } } void push( Arg & arg) { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 183, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 184, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( & arg, this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } virtual void destroy() = 0; }; template<> class push_coroutine_impl< void > : private noncopyable { protected: int flags_; exception_ptr except_; coroutine_context * caller_; coroutine_context * callee_; public: typedef parameters< void > param_type; push_coroutine_impl( coroutine_context * caller, coroutine_context * callee, bool unwind) : flags_( 0), except_(), caller_( caller), callee_( callee) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~push_coroutine_impl() {} inline bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } inline bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } inline bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } inline bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } inline bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } inline void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; param_type to( unwind_t::force_unwind); caller_->jump( * callee_, & to); flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 252, __extension__ __PRETTY_FUNCTION__)); } } inline void push() { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 258, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_impl.hpp", 259, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; param_type to( this); param_type * from( static_cast< param_type * >( caller_->jump( * callee_, & to) ) ); flags_ &= ~flag_running; if ( from->do_unwind) throw forced_unwind(); if ( except_) rethrow_exception( except_); } virtual void destroy() = 0; }; }}} # 30 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { struct push_coroutine_context { coroutine_context caller; coroutine_context callee; template< typename Coro > push_coroutine_context( preallocated const& palloc, Coro *) : caller(), callee( trampoline_push< Coro >, palloc) {} }; struct push_coroutine_context_void { coroutine_context caller; coroutine_context callee; template< typename Coro > push_coroutine_context_void( preallocated const& palloc, Coro *) : caller(), callee( trampoline_push_void< Coro >, palloc) {} }; template< typename PullCoro, typename R, typename Fn, typename StackAllocator > class push_coroutine_object : private push_coroutine_context, public push_coroutine_impl< R > { private: typedef push_coroutine_context ctx_t; typedef push_coroutine_impl< R > base_t; typedef push_coroutine_object< PullCoro, R, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 101 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 3 4 push_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : ctx_t( palloc, this), base_t( & this->caller, & this->callee, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run( R * result) { (static_cast <bool> (! base_t::unwind_requested()) ? void (0) : __assert_fail ("! base_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp", 119, __extension__ __PRETTY_FUNCTION__)); base_t::flags_ |= flag_started; base_t::flags_ |= flag_running; typename PullCoro::synth_type b( & this->callee, & this->caller, false, result); PullCoro pull_coro( synthesized_t::syntesized, b); try { fn_( pull_coro); } catch ( forced_unwind const&) {} catch ( abi::__forced_unwind const&) { throw; } catch (...) { base_t::except_ = current_exception(); } base_t::flags_ |= flag_complete; base_t::flags_ &= ~flag_running; typename base_t::param_type to; this->callee.jump( this->caller, & to); (static_cast <bool> ((false)&&("pull_coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"pull_coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp", 144, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; template< typename PullCoro, typename R, typename Fn, typename StackAllocator > class push_coroutine_object< PullCoro, R &, Fn, StackAllocator > : private push_coroutine_context, public push_coroutine_impl< R & > { private: typedef push_coroutine_context ctx_t; typedef push_coroutine_impl< R & > base_t; typedef push_coroutine_object< PullCoro, R &, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 188 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 3 4 push_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : ctx_t( palloc, this), base_t( & this->caller, & this->callee, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run( R * result) { (static_cast <bool> (! base_t::unwind_requested()) ? void (0) : __assert_fail ("! base_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp", 206, __extension__ __PRETTY_FUNCTION__)); base_t::flags_ |= flag_started; base_t::flags_ |= flag_running; typename PullCoro::synth_type b( & this->callee, & this->caller, false, result); PullCoro push_coro( synthesized_t::syntesized, b); try { fn_( push_coro); } catch ( forced_unwind const&) {} catch ( abi::__forced_unwind const&) { throw; } catch (...) { base_t::except_ = current_exception(); } base_t::flags_ |= flag_complete; base_t::flags_ &= ~flag_running; typename base_t::param_type to; this->callee.jump( this->caller, & to); (static_cast <bool> ((false)&&("pull_coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"pull_coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp", 231, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; template< typename PullCoro, typename Fn, typename StackAllocator > class push_coroutine_object< PullCoro, void, Fn, StackAllocator > : private push_coroutine_context_void, public push_coroutine_impl< void > { private: typedef push_coroutine_context_void ctx_t; typedef push_coroutine_impl< void > base_t; typedef push_coroutine_object< PullCoro, void, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 275 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp" 3 4 push_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : ctx_t( palloc, this), base_t( & this->caller, & this->callee, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run() { (static_cast <bool> (! base_t::unwind_requested()) ? void (0) : __assert_fail ("! base_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp", 293, __extension__ __PRETTY_FUNCTION__)); base_t::flags_ |= flag_started; base_t::flags_ |= flag_running; typename PullCoro::synth_type b( & this->callee, & this->caller, false); PullCoro push_coro( synthesized_t::syntesized, b); try { fn_( push_coro); } catch ( forced_unwind const&) {} catch ( abi::__forced_unwind const&) { throw; } catch (...) { base_t::except_ = current_exception(); } base_t::flags_ |= flag_complete; base_t::flags_ &= ~flag_running; typename base_t::param_type to; this->callee.jump( this->caller, & to); (static_cast <bool> ((false)&&("pull_coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"pull_coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_object.hpp", 318, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; }}} # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_synthesized.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/push_coroutine_synthesized.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename R > class push_coroutine_synthesized : public push_coroutine_impl< R > { private: typedef push_coroutine_impl< R > impl_t; public: push_coroutine_synthesized( coroutine_context * caller, coroutine_context * callee, bool unwind) : impl_t( caller, callee, unwind) {} void destroy() {} }; template< typename R > class push_coroutine_synthesized< R & > : public push_coroutine_impl< R & > { private: typedef push_coroutine_impl< R & > impl_t; public: push_coroutine_synthesized( coroutine_context * caller, coroutine_context * callee, bool unwind) : impl_t( caller, callee, unwind) {} void destroy() {} }; template<> class push_coroutine_synthesized< void > : public push_coroutine_impl< void > { private: typedef push_coroutine_impl< void > impl_t; public: push_coroutine_synthesized( coroutine_context * caller, coroutine_context * callee, bool unwind) : impl_t( caller, callee, unwind) {} inline void destroy() {} }; }}} # 32 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 2 3 4 namespace boost { namespace coroutines { template< typename R > class pull_coroutine; template< typename Arg > class push_coroutine { private: template< typename V, typename X, typename Y, typename Z > friend class detail::pull_coroutine_object; typedef detail::push_coroutine_impl< Arg > impl_type; typedef detail::push_coroutine_synthesized< Arg > synth_type; typedef detail::parameters< Arg > param_type; struct dummy {}; impl_type * impl_; public: push_coroutine(push_coroutine const &) = delete; push_coroutine& operator=(push_coroutine const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: explicit push_coroutine( detail::synthesized_t::flag_t, impl_type & impl) : impl_( & impl) { (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 63, __extension__ __PRETTY_FUNCTION__)); } public: push_coroutine() noexcept : impl_( 0) {} # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Fn > explicit push_coroutine( Fn &&, attributes const& = attributes() ); template< typename Fn, typename StackAllocator > explicit push_coroutine( Fn &&, attributes const&, StackAllocator); # 110 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 ~push_coroutine() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } push_coroutine( push_coroutine && other) noexcept : impl_( 0) { swap( other); } push_coroutine & operator=( push_coroutine && other) noexcept { push_coroutine tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete(); } void swap( push_coroutine & other) noexcept { std::swap( impl_, other.impl_); } push_coroutine & operator()( Arg arg) { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 140, __extension__ __PRETTY_FUNCTION__)); impl_->push( arg); return * this; } class iterator { private: push_coroutine< Arg > * c_; public: typedef std::output_iterator_tag iterator_category; typedef void value_type; typedef void difference_type; typedef void pointer; typedef void reference; iterator() : c_( 0) {} explicit iterator( push_coroutine< Arg > * c) : c_( c) {} iterator & operator=( Arg a) { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 168, __extension__ __PRETTY_FUNCTION__)); if ( ! ( * c_)( a) ) c_ = 0; return * this; } bool operator==( iterator const& other) const { return other.c_ == c_; } bool operator!=( iterator const& other) const { return other.c_ != c_; } iterator & operator*() { return * this; } iterator & operator++() { return * this; } }; struct const_iterator; }; template< typename Arg > class push_coroutine< Arg & > { private: template< typename V, typename X, typename Y, typename Z > friend class detail::pull_coroutine_object; typedef detail::push_coroutine_impl< Arg & > impl_type; typedef detail::push_coroutine_synthesized< Arg & > synth_type; typedef detail::parameters< Arg & > param_type; struct dummy {}; impl_type * impl_; public: push_coroutine(push_coroutine const &) = delete; push_coroutine& operator=(push_coroutine const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: explicit push_coroutine( detail::synthesized_t::flag_t, impl_type & impl) : impl_( & impl) { (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 208, __extension__ __PRETTY_FUNCTION__)); } public: push_coroutine() noexcept : impl_( 0) {} # 227 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Fn > explicit push_coroutine( Fn &&, attributes const& = attributes() ); template< typename Fn, typename StackAllocator > explicit push_coroutine( Fn &&, attributes const&, StackAllocator); # 255 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 ~push_coroutine() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } push_coroutine( push_coroutine && other) noexcept : impl_( 0) { swap( other); } push_coroutine & operator=( push_coroutine && other) noexcept { push_coroutine tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete(); } void swap( push_coroutine & other) noexcept { std::swap( impl_, other.impl_); } push_coroutine & operator()( Arg & arg) { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 285, __extension__ __PRETTY_FUNCTION__)); impl_->push( arg); return * this; } class iterator { private: push_coroutine< Arg & > * c_; public: typedef std::output_iterator_tag iterator_category; typedef void value_type; typedef void difference_type; typedef void pointer; typedef void reference; iterator() : c_( 0) {} explicit iterator( push_coroutine< Arg & > * c) : c_( c) {} iterator & operator=( Arg & a) { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 313, __extension__ __PRETTY_FUNCTION__)); if ( ! ( * c_)( a) ) c_ = 0; return * this; } bool operator==( iterator const& other) const { return other.c_ == c_; } bool operator!=( iterator const& other) const { return other.c_ != c_; } iterator & operator*() { return * this; } iterator & operator++() { return * this; } }; struct const_iterator; }; template<> class push_coroutine< void > { private: template< typename V, typename X, typename Y, typename Z > friend class detail::pull_coroutine_object; typedef detail::push_coroutine_impl< void > impl_type; typedef detail::push_coroutine_synthesized< void > synth_type; typedef detail::parameters< void > param_type; struct dummy {}; impl_type * impl_; public: push_coroutine(push_coroutine const &) = delete; push_coroutine& operator=(push_coroutine const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: explicit push_coroutine( detail::synthesized_t::flag_t, impl_type & impl) : impl_( & impl) { (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 353, __extension__ __PRETTY_FUNCTION__)); } public: push_coroutine() noexcept : impl_( 0) {} # 372 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Fn > explicit push_coroutine( Fn &&, attributes const& = attributes() ); template< typename Fn, typename StackAllocator > explicit push_coroutine( Fn &&, attributes const&, StackAllocator); # 400 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 ~push_coroutine() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } inline push_coroutine( push_coroutine && other) noexcept : impl_( 0) { swap( other); } inline push_coroutine & operator=( push_coroutine && other) noexcept { push_coroutine tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; inline bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete(); } inline void swap( push_coroutine & other) noexcept { std::swap( impl_, other.impl_); } inline push_coroutine & operator()() { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 430, __extension__ __PRETTY_FUNCTION__)); impl_->push(); return * this; } struct iterator; struct const_iterator; }; template< typename R > class pull_coroutine { private: template< typename V, typename X, typename Y, typename Z > friend class detail::push_coroutine_object; typedef detail::pull_coroutine_impl< R > impl_type; typedef detail::pull_coroutine_synthesized< R > synth_type; typedef detail::parameters< R > param_type; struct dummy {}; impl_type * impl_; public: pull_coroutine(pull_coroutine const &) = delete; pull_coroutine& operator=(pull_coroutine const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: explicit pull_coroutine( detail::synthesized_t::flag_t, impl_type & impl) : impl_( & impl) { (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 461, __extension__ __PRETTY_FUNCTION__)); } public: pull_coroutine() noexcept : impl_( 0) {} # 525 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Fn > explicit pull_coroutine( Fn && fn, attributes const& attrs = attributes() ) : impl_( 0) { stack_context stack_ctx; stack_allocator stack_alloc; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 535, __extension__ __PRETTY_FUNCTION__)); typedef detail::pull_coroutine_object< push_coroutine< R >, R, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 542, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 544, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 548, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); } template< typename Fn, typename StackAllocator > explicit pull_coroutine( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 562, __extension__ __PRETTY_FUNCTION__)); typedef detail::pull_coroutine_object< push_coroutine< R >, R, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 569, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 571, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 575, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); } # 688 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 ~pull_coroutine() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } pull_coroutine( pull_coroutine && other) noexcept : impl_( 0) { swap( other); } pull_coroutine & operator=( pull_coroutine && other) noexcept { pull_coroutine tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete(); } void swap( pull_coroutine & other) noexcept { std::swap( impl_, other.impl_); } pull_coroutine & operator()() { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 718, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); return * this; } R get() const { (static_cast <bool> (0 != impl_) ? void (0) : __assert_fail ("0 != impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 726, __extension__ __PRETTY_FUNCTION__)); return impl_->get(); } class iterator { private: pull_coroutine< R > * c_; R * val_; void fetch_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 739, __extension__ __PRETTY_FUNCTION__)); if ( ! ( * c_) ) { c_ = 0; val_ = 0; return; } val_ = c_->impl_->get_pointer(); } void increment_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 752, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (* c_) ? void (0) : __assert_fail ("* c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 753, __extension__ __PRETTY_FUNCTION__)); ( * c_)(); fetch_(); } public: typedef std::input_iterator_tag iterator_category; typedef typename remove_reference< R >::type value_type; typedef std::ptrdiff_t difference_type; typedef value_type * pointer; typedef value_type & reference; typedef pointer pointer_t; typedef reference reference_t; iterator() : c_( 0), val_( 0) {} explicit iterator( pull_coroutine< R > * c) : c_( c), val_( 0) { fetch_(); } iterator( iterator const& other) : c_( other.c_), val_( other.val_) {} iterator & operator=( iterator const& other) { if ( this == & other) return * this; c_ = other.c_; val_ = other.val_; return * this; } bool operator==( iterator const& other) const { return other.c_ == c_ && other.val_ == val_; } bool operator!=( iterator const& other) const { return other.c_ != c_ || other.val_ != val_; } iterator & operator++() { increment_(); return * this; } iterator operator++( int); reference_t operator*() const { if ( ! val_) boost::throw_exception( invalid_result() ); return * val_; } pointer_t operator->() const { if ( ! val_) boost::throw_exception( invalid_result() ); return val_; } }; class const_iterator { private: pull_coroutine< R > * c_; R * val_; void fetch_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 828, __extension__ __PRETTY_FUNCTION__)); if ( ! ( * c_) ) { c_ = 0; val_ = 0; return; } val_ = c_->impl_->get_pointer(); } void increment_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 841, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (* c_) ? void (0) : __assert_fail ("* c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 842, __extension__ __PRETTY_FUNCTION__)); ( * c_)(); fetch_(); } public: typedef std::input_iterator_tag iterator_category; typedef const typename remove_reference< R >::type value_type; typedef std::ptrdiff_t difference_type; typedef value_type * pointer; typedef value_type & reference; typedef pointer pointer_t; typedef reference reference_t; const_iterator() : c_( 0), val_( 0) {} explicit const_iterator( pull_coroutine< R > const* c) : c_( const_cast< pull_coroutine< R > * >( c) ), val_( 0) { fetch_(); } const_iterator( const_iterator const& other) : c_( other.c_), val_( other.val_) {} const_iterator & operator=( const_iterator const& other) { if ( this == & other) return * this; c_ = other.c_; val_ = other.val_; return * this; } bool operator==( const_iterator const& other) const { return other.c_ == c_ && other.val_ == val_; } bool operator!=( const_iterator const& other) const { return other.c_ != c_ || other.val_ != val_; } const_iterator & operator++() { increment_(); return * this; } const_iterator operator++( int); reference_t operator*() const { if ( ! val_) boost::throw_exception( invalid_result() ); return * val_; } pointer_t operator->() const { if ( ! val_) boost::throw_exception( invalid_result() ); return val_; } }; friend class iterator; friend class const_iterator; }; template< typename R > class pull_coroutine< R & > { private: template< typename V, typename X, typename Y, typename Z > friend class detail::push_coroutine_object; typedef detail::pull_coroutine_impl< R & > impl_type; typedef detail::pull_coroutine_synthesized< R & > synth_type; typedef detail::parameters< R & > param_type; struct dummy {}; impl_type * impl_; public: pull_coroutine(pull_coroutine const &) = delete; pull_coroutine& operator=(pull_coroutine const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: explicit pull_coroutine( detail::synthesized_t::flag_t, impl_type & impl) : impl_( & impl) { (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 933, __extension__ __PRETTY_FUNCTION__)); } public: pull_coroutine() noexcept : impl_( 0) {} # 997 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Fn > explicit pull_coroutine( Fn && fn, attributes const& attrs = attributes() ) : impl_( 0) { stack_context stack_ctx; stack_allocator stack_alloc; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1007, __extension__ __PRETTY_FUNCTION__)); typedef detail::pull_coroutine_object< push_coroutine< R & >, R &, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1014, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1016, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1020, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); } template< typename Fn, typename StackAllocator > explicit pull_coroutine( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1034, __extension__ __PRETTY_FUNCTION__)); typedef detail::pull_coroutine_object< push_coroutine< R & >, R &, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1041, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1043, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1047, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); } # 1160 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 ~pull_coroutine() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } pull_coroutine( pull_coroutine && other) noexcept : impl_( 0) { swap( other); } pull_coroutine & operator=( pull_coroutine && other) noexcept { pull_coroutine tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete(); } void swap( pull_coroutine & other) noexcept { std::swap( impl_, other.impl_); } pull_coroutine & operator()() { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1190, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); return * this; } R & get() const { return impl_->get(); } class iterator { private: pull_coroutine< R & > * c_; R * val_; void fetch_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1207, __extension__ __PRETTY_FUNCTION__)); if ( ! ( * c_) ) { c_ = 0; val_ = 0; return; } val_ = c_->impl_->get_pointer(); } void increment_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1220, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (* c_) ? void (0) : __assert_fail ("* c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1221, __extension__ __PRETTY_FUNCTION__)); ( * c_)(); fetch_(); } public: typedef std::input_iterator_tag iterator_category; typedef typename remove_reference< R >::type value_type; typedef std::ptrdiff_t difference_type; typedef value_type * pointer; typedef value_type & reference; typedef pointer pointer_t; typedef reference reference_t; iterator() : c_( 0), val_( 0) {} explicit iterator( pull_coroutine< R & > * c) : c_( c), val_( 0) { fetch_(); } iterator( iterator const& other) : c_( other.c_), val_( other.val_) {} iterator & operator=( iterator const& other) { if ( this == & other) return * this; c_ = other.c_; val_ = other.val_; return * this; } bool operator==( iterator const& other) const { return other.c_ == c_ && other.val_ == val_; } bool operator!=( iterator const& other) const { return other.c_ != c_ || other.val_ != val_; } iterator & operator++() { increment_(); return * this; } iterator operator++( int); reference_t operator*() const { if ( ! val_) boost::throw_exception( invalid_result() ); return * val_; } pointer_t operator->() const { if ( ! val_) boost::throw_exception( invalid_result() ); return val_; } }; class const_iterator { private: pull_coroutine< R & > * c_; R * val_; void fetch_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1296, __extension__ __PRETTY_FUNCTION__)); if ( ! ( * c_) ) { c_ = 0; val_ = 0; return; } val_ = c_->impl_->get_pointer(); } void increment_() { (static_cast <bool> (c_) ? void (0) : __assert_fail ("c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1309, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (* c_) ? void (0) : __assert_fail ("* c_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1310, __extension__ __PRETTY_FUNCTION__)); ( * c_)(); fetch_(); } public: typedef std::input_iterator_tag iterator_category; typedef const typename remove_reference< R >::type value_type; typedef std::ptrdiff_t difference_type; typedef value_type * pointer; typedef value_type & reference; typedef pointer pointer_t; typedef reference reference_t; const_iterator() : c_( 0), val_( 0) {} explicit const_iterator( pull_coroutine< R & > const* c) : c_( const_cast< pull_coroutine< R & > * >( c) ), val_( 0) { fetch_(); } const_iterator( const_iterator const& other) : c_( other.c_), val_( other.val_) {} const_iterator & operator=( const_iterator const& other) { if ( this == & other) return * this; c_ = other.c_; val_ = other.val_; return * this; } bool operator==( const_iterator const& other) const { return other.c_ == c_ && other.val_ == val_; } bool operator!=( const_iterator const& other) const { return other.c_ != c_ || other.val_ != val_; } const_iterator & operator++() { increment_(); return * this; } const_iterator operator++( int); reference_t operator*() const { if ( ! val_) boost::throw_exception( invalid_result() ); return * val_; } pointer_t operator->() const { if ( ! val_) boost::throw_exception( invalid_result() ); return val_; } }; friend class iterator; friend class const_iterator; }; template<> class pull_coroutine< void > { private: template< typename V, typename X, typename Y, typename Z > friend class detail::push_coroutine_object; typedef detail::pull_coroutine_impl< void > impl_type; typedef detail::pull_coroutine_synthesized< void > synth_type; typedef detail::parameters< void > param_type; struct dummy {}; impl_type * impl_; public: pull_coroutine(pull_coroutine const &) = delete; pull_coroutine& operator=(pull_coroutine const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: explicit pull_coroutine( detail::synthesized_t::flag_t, impl_type & impl) : impl_( & impl) { (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1401, __extension__ __PRETTY_FUNCTION__)); } public: pull_coroutine() noexcept : impl_( 0) {} # 1465 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Fn > explicit pull_coroutine( Fn && fn, attributes const& attrs = attributes() ) : impl_( 0) { stack_context stack_ctx; stack_allocator stack_alloc; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1475, __extension__ __PRETTY_FUNCTION__)); typedef detail::pull_coroutine_object< push_coroutine< void >, void, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1482, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1484, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1488, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); } template< typename Fn, typename StackAllocator > explicit pull_coroutine( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1502, __extension__ __PRETTY_FUNCTION__)); typedef detail::pull_coroutine_object< push_coroutine< void >, void, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1509, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1511, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1515, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); } # 1628 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 ~pull_coroutine() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } inline pull_coroutine( pull_coroutine && other) noexcept : impl_( 0) { swap( other); } inline pull_coroutine & operator=( pull_coroutine && other) noexcept { pull_coroutine tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; inline bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete(); } inline void swap( pull_coroutine & other) noexcept { std::swap( impl_, other.impl_); } inline pull_coroutine & operator()() { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1658, __extension__ __PRETTY_FUNCTION__)); impl_->pull(); return * this; } struct iterator; struct const_iterator; }; # 1827 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename Arg > template< typename Fn > push_coroutine< Arg >::push_coroutine( Fn && fn, attributes const& attrs) : impl_( 0) { stack_context stack_ctx; stack_allocator stack_alloc; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1838, __extension__ __PRETTY_FUNCTION__)); typedef detail::push_coroutine_object< pull_coroutine< Arg >, Arg, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1845, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1847, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1851, __extension__ __PRETTY_FUNCTION__)); } template< typename Arg > template< typename Fn, typename StackAllocator > push_coroutine< Arg >::push_coroutine( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1865, __extension__ __PRETTY_FUNCTION__)); typedef detail::push_coroutine_object< pull_coroutine< Arg >, Arg, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1872, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1874, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1878, __extension__ __PRETTY_FUNCTION__)); } template< typename Arg > template< typename Fn > push_coroutine< Arg & >::push_coroutine( Fn && fn, attributes const& attrs) : impl_( 0) { stack_context stack_ctx; stack_allocator stack_alloc; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1892, __extension__ __PRETTY_FUNCTION__)); typedef detail::push_coroutine_object< pull_coroutine< Arg & >, Arg &, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1899, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1901, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1905, __extension__ __PRETTY_FUNCTION__)); } template< typename Arg > template< typename Fn, typename StackAllocator > push_coroutine< Arg & >::push_coroutine( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1919, __extension__ __PRETTY_FUNCTION__)); typedef detail::push_coroutine_object< pull_coroutine< Arg & >, Arg &, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1926, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1928, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1932, __extension__ __PRETTY_FUNCTION__)); } template< typename Fn > push_coroutine< void >::push_coroutine( Fn && fn, attributes const& attrs) : impl_( 0) { stack_context stack_ctx; stack_allocator stack_alloc; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1945, __extension__ __PRETTY_FUNCTION__)); typedef detail::push_coroutine_object< pull_coroutine< void >, void, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1952, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1954, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1958, __extension__ __PRETTY_FUNCTION__)); } template< typename Fn, typename StackAllocator > push_coroutine< void >::push_coroutine( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1971, __extension__ __PRETTY_FUNCTION__)); typedef detail::push_coroutine_object< pull_coroutine< void >, void, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1978, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1980, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, detail::preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp", 1984, __extension__ __PRETTY_FUNCTION__)); } # 2308 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/asymmetric_coroutine.hpp" 3 4 template< typename R > void swap( pull_coroutine< R > & l, pull_coroutine< R > & r) noexcept { l.swap( r); } template< typename Arg > void swap( push_coroutine< Arg > & l, push_coroutine< Arg > & r) noexcept { l.swap( r); } template< typename R > typename pull_coroutine< R >::iterator range_begin( pull_coroutine< R > & c) { return typename pull_coroutine< R >::iterator( & c); } template< typename R > typename pull_coroutine< R >::const_iterator range_begin( pull_coroutine< R > const& c) { return typename pull_coroutine< R >::const_iterator( & c); } template< typename R > typename pull_coroutine< R >::iterator range_end( pull_coroutine< R > &) { return typename pull_coroutine< R >::iterator(); } template< typename R > typename pull_coroutine< R >::const_iterator range_end( pull_coroutine< R > const&) { return typename pull_coroutine< R >::const_iterator(); } template< typename Arg > typename push_coroutine< Arg >::iterator range_begin( push_coroutine< Arg > & c) { return typename push_coroutine< Arg >::iterator( & c); } template< typename Arg > typename push_coroutine< Arg >::iterator range_end( push_coroutine< Arg > &) { return typename push_coroutine< Arg >::iterator(); } template< typename T > struct asymmetric_coroutine { typedef push_coroutine< T > push_type; typedef pull_coroutine< T > pull_type; }; template< typename T > struct coroutine { typedef push_coroutine< T > push_type; typedef pull_coroutine< T > pull_type; }; template< typename R > typename pull_coroutine< R >::iterator begin( pull_coroutine< R > & c) { return coroutines::range_begin( c); } template< typename R > typename pull_coroutine< R >::const_iterator begin( pull_coroutine< R > const& c) { return coroutines::range_begin( c); } template< typename R > typename pull_coroutine< R >::iterator end( pull_coroutine< R > & c) { return coroutines::range_end( c); } template< typename R > typename pull_coroutine< R >::const_iterator end( pull_coroutine< R > const& c) { return coroutines::range_end( c); } template< typename R > typename push_coroutine< R >::iterator begin( push_coroutine< R > & c) { return coroutines::range_begin( c); } template< typename R > typename push_coroutine< R >::iterator end( push_coroutine< R > & c) { return coroutines::range_end( c); } } template<typename C, typename Enabler> struct range_mutable_iterator; template<typename C, typename Enabler> struct range_const_iterator; template< typename Arg > struct range_mutable_iterator< coroutines::push_coroutine< Arg >, void > { typedef typename coroutines::push_coroutine< Arg >::iterator type; }; template< typename R > struct range_mutable_iterator< coroutines::pull_coroutine< R >, void > { typedef typename coroutines::pull_coroutine< R >::iterator type; }; } # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/coroutine.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/symmetric_coroutine.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/symmetric_coroutine.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/cstdint.hpp" 1 3 4 # 14 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp" 2 3 4 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename Coro > void trampoline( context::detail::transfer_t t) { typedef typename Coro::param_type param_type; data_t * data = static_cast< data_t * >( t.data); data->from->ctx_ = t.fctx; param_type * param( static_cast< param_type * >( data->data) ); (static_cast <bool> (0 != param) ? void (0) : __assert_fail ("0 != param", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp", 35, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (0 != param->data) ? void (0) : __assert_fail ("0 != param->data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp", 36, __extension__ __PRETTY_FUNCTION__)); Coro * coro( static_cast< Coro * >( param->coro) ); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp", 40, __extension__ __PRETTY_FUNCTION__)); coro->run( param->data); } template< typename Coro > void trampoline_void( context::detail::transfer_t t) { typedef typename Coro::param_type param_type; data_t * data = static_cast< data_t * >( t.data); data->from->ctx_ = t.fctx; param_type * param( static_cast< param_type * >( data->data) ); (static_cast <bool> (0 != param) ? void (0) : __assert_fail ("0 != param", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp", 54, __extension__ __PRETTY_FUNCTION__)); Coro * coro( static_cast< Coro * >( param->coro) ); (static_cast <bool> (0 != coro) ? void (0) : __assert_fail ("0 != coro", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/trampoline.hpp", 58, __extension__ __PRETTY_FUNCTION__)); coro->run(); } }}} # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp" 2 3 4 namespace boost { namespace coroutines { namespace detail { template< typename R > class symmetric_coroutine_impl : private noncopyable { public: typedef parameters< R > param_type; symmetric_coroutine_impl( preallocated const& palloc, bool unwind) noexcept : flags_( 0), caller_(), callee_( trampoline< symmetric_coroutine_impl< R > >, palloc) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~symmetric_coroutine_impl() {} bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; flags_ |= flag_running; param_type to( unwind_t::force_unwind); caller_.jump( callee_, & to); flags_ &= ~flag_running; flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 77, __extension__ __PRETTY_FUNCTION__)); } } void resume( R r) noexcept { param_type to( const_cast< R * >( & r), this); resume_( & to); } R * yield() { (static_cast <bool> (is_running()) ? void (0) : __assert_fail ("is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 89, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 90, __extension__ __PRETTY_FUNCTION__)); flags_ &= ~flag_running; param_type to; param_type * from( static_cast< param_type * >( callee_.jump( caller_, & to) ) ); flags_ |= flag_running; if ( from->do_unwind) throw forced_unwind(); (static_cast <bool> (from->data) ? void (0) : __assert_fail ("from->data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 101, __extension__ __PRETTY_FUNCTION__)); return from->data; } template< typename X > R * yield_to( symmetric_coroutine_impl< X > * other, X x) { typename symmetric_coroutine_impl< X >::param_type to( & x, other); return yield_to_( other, & to); } template< typename X > R * yield_to( symmetric_coroutine_impl< X & > * other, X & x) { typename symmetric_coroutine_impl< X & >::param_type to( & x, other); return yield_to_( other, & to); } template< typename X > R * yield_to( symmetric_coroutine_impl< X > * other) { typename symmetric_coroutine_impl< X >::param_type to( other); return yield_to_( other, & to); } virtual void run( R *) noexcept = 0; virtual void destroy() = 0; protected: template< typename X > friend class symmetric_coroutine_impl; int flags_; coroutine_context caller_; coroutine_context callee_; void resume_( param_type * to) noexcept { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 140, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 141, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; caller_.jump( callee_, to); flags_ &= ~flag_running; } template< typename Other > R * yield_to_( Other * other, typename Other::param_type * to) { (static_cast <bool> (is_running()) ? void (0) : __assert_fail ("is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 153, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 154, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! other->is_running()) ? void (0) : __assert_fail ("! other->is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 155, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! other->is_complete()) ? void (0) : __assert_fail ("! other->is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 156, __extension__ __PRETTY_FUNCTION__)); other->caller_ = caller_; flags_ &= ~flag_running; param_type * from( static_cast< param_type * >( callee_.jump( other->callee_, to) ) ); flags_ |= flag_running; if ( from->do_unwind) throw forced_unwind(); (static_cast <bool> (from->data) ? void (0) : __assert_fail ("from->data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 167, __extension__ __PRETTY_FUNCTION__)); return from->data; } }; template< typename R > class symmetric_coroutine_impl< R & > : private noncopyable { public: typedef parameters< R & > param_type; symmetric_coroutine_impl( preallocated const& palloc, bool unwind) noexcept : flags_( 0), caller_(), callee_( trampoline< symmetric_coroutine_impl< R > >, palloc) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~symmetric_coroutine_impl() {} bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; flags_ |= flag_running; param_type to( unwind_t::force_unwind); caller_.jump( callee_, & to); flags_ &= ~flag_running; flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 217, __extension__ __PRETTY_FUNCTION__)); } } void resume( R & arg) noexcept { param_type to( & arg, this); resume_( & to); } R * yield() { (static_cast <bool> (is_running()) ? void (0) : __assert_fail ("is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 229, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 230, __extension__ __PRETTY_FUNCTION__)); flags_ &= ~flag_running; param_type to; param_type * from( static_cast< param_type * >( callee_.jump( caller_, & to) ) ); flags_ |= flag_running; if ( from->do_unwind) throw forced_unwind(); (static_cast <bool> (from->data) ? void (0) : __assert_fail ("from->data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 241, __extension__ __PRETTY_FUNCTION__)); return from->data; } template< typename X > R * yield_to( symmetric_coroutine_impl< X > * other, X x) { typename symmetric_coroutine_impl< X >::param_type to( & x, other); return yield_to_( other, & to); } template< typename X > R * yield_to( symmetric_coroutine_impl< X & > * other, X & x) { typename symmetric_coroutine_impl< X & >::param_type to( & x, other); return yield_to_( other, & to); } template< typename X > R * yield_to( symmetric_coroutine_impl< X > * other) { typename symmetric_coroutine_impl< X >::param_type to( other); return yield_to_( other, & to); } virtual void run( R *) noexcept = 0; virtual void destroy() = 0; protected: template< typename X > friend class symmetric_coroutine_impl; int flags_; coroutine_context caller_; coroutine_context callee_; void resume_( param_type * to) noexcept { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 280, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 281, __extension__ __PRETTY_FUNCTION__)); flags_ |= flag_running; caller_.jump( callee_, to); flags_ &= ~flag_running; } template< typename Other > R * yield_to_( Other * other, typename Other::param_type * to) { (static_cast <bool> (is_running()) ? void (0) : __assert_fail ("is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 293, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 294, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! other->is_running()) ? void (0) : __assert_fail ("! other->is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 295, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! other->is_complete()) ? void (0) : __assert_fail ("! other->is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 296, __extension__ __PRETTY_FUNCTION__)); other->caller_ = caller_; flags_ &= ~flag_running; param_type * from( static_cast< param_type * >( callee_.jump( other->callee_, to) ) ); flags_ |= flag_running; if ( from->do_unwind) throw forced_unwind(); (static_cast <bool> (from->data) ? void (0) : __assert_fail ("from->data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 307, __extension__ __PRETTY_FUNCTION__)); return from->data; } }; template<> class symmetric_coroutine_impl< void > : private noncopyable { public: typedef parameters< void > param_type; symmetric_coroutine_impl( preallocated const& palloc, bool unwind) noexcept : flags_( 0), caller_(), callee_( trampoline_void< symmetric_coroutine_impl< void > >, palloc) { if ( unwind) flags_ |= flag_force_unwind; } virtual ~symmetric_coroutine_impl() {} inline bool force_unwind() const noexcept { return 0 != ( flags_ & flag_force_unwind); } inline bool unwind_requested() const noexcept { return 0 != ( flags_ & flag_unwind_stack); } inline bool is_started() const noexcept { return 0 != ( flags_ & flag_started); } inline bool is_running() const noexcept { return 0 != ( flags_ & flag_running); } inline bool is_complete() const noexcept { return 0 != ( flags_ & flag_complete); } inline void unwind_stack() noexcept { if ( is_started() && ! is_complete() && force_unwind() ) { flags_ |= flag_unwind_stack; flags_ |= flag_running; param_type to( unwind_t::force_unwind); caller_.jump( callee_, & to); flags_ &= ~flag_running; flags_ &= ~flag_unwind_stack; (static_cast <bool> (is_complete()) ? void (0) : __assert_fail ("is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 357, __extension__ __PRETTY_FUNCTION__)); } } inline void resume() noexcept { (static_cast <bool> (! is_running()) ? void (0) : __assert_fail ("! is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 363, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 364, __extension__ __PRETTY_FUNCTION__)); param_type to( this); flags_ |= flag_running; caller_.jump( callee_, & to); flags_ &= ~flag_running; } inline void yield() { (static_cast <bool> (is_running()) ? void (0) : __assert_fail ("is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 376, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 377, __extension__ __PRETTY_FUNCTION__)); flags_ &= ~flag_running; param_type to; param_type * from( static_cast< param_type * >( callee_.jump( caller_, & to) ) ); flags_ |= flag_running; if ( from->do_unwind) throw forced_unwind(); } template< typename X > void yield_to( symmetric_coroutine_impl< X > * other, X x) { typename symmetric_coroutine_impl< X >::param_type to( & x, other); yield_to_( other, & to); } template< typename X > void yield_to( symmetric_coroutine_impl< X & > * other, X & x) { typename symmetric_coroutine_impl< X & >::param_type to( & x, other); yield_to_( other, & to); } template< typename X > void yield_to( symmetric_coroutine_impl< X > * other) { typename symmetric_coroutine_impl< X >::param_type to( other); yield_to_( other, & to); } virtual void run() noexcept = 0; virtual void destroy() = 0; protected: template< typename X > friend class symmetric_coroutine_impl; int flags_; coroutine_context caller_; coroutine_context callee_; template< typename Other > void yield_to_( Other * other, typename Other::param_type * to) { (static_cast <bool> (is_running()) ? void (0) : __assert_fail ("is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 426, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! is_complete()) ? void (0) : __assert_fail ("! is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 427, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! other->is_running()) ? void (0) : __assert_fail ("! other->is_running()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 428, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (! other->is_complete()) ? void (0) : __assert_fail ("! other->is_complete()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_impl.hpp", 429, __extension__ __PRETTY_FUNCTION__)); other->caller_ = caller_; flags_ &= ~flag_running; param_type * from( static_cast< param_type * >( callee_.jump( other->callee_, to) ) ); flags_ |= flag_running; if ( from->do_unwind) throw forced_unwind(); } }; }}} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp" 2 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename R > class symmetric_coroutine_yield { private: template< typename X, typename Y, typename Z > friend class symmetric_coroutine_object; typedef symmetric_coroutine_impl< R > impl_type; struct dummy {}; public: symmetric_coroutine_yield(symmetric_coroutine_yield const &) = delete; symmetric_coroutine_yield& operator=(symmetric_coroutine_yield const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: impl_type * impl_; R * result_; symmetric_coroutine_yield( impl_type * impl, R * result) noexcept : impl_( impl), result_( result) { (static_cast <bool> (0 != impl_) ? void (0) : __assert_fail ("0 != impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 51, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (0 != result_) ? void (0) : __assert_fail ("0 != result_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 52, __extension__ __PRETTY_FUNCTION__)); } public: symmetric_coroutine_yield() noexcept : impl_( 0), result_( 0) {} symmetric_coroutine_yield( symmetric_coroutine_yield && other) noexcept : impl_( 0), result_( 0) { swap( other); } symmetric_coroutine_yield & operator=( symmetric_coroutine_yield && other) noexcept { symmetric_coroutine_yield tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_; } void swap( symmetric_coroutine_yield & other) noexcept { std::swap( impl_, other.impl_); std::swap( result_, other.result_); } symmetric_coroutine_yield & operator()() { result_ = impl_->yield(); return * this; } template< typename Coro > symmetric_coroutine_yield & operator()( Coro & other, typename Coro::value_type x, typename disable_if< is_same< typename Coro::value_type, void >, dummy* >::type = 0) { (static_cast <bool> (other) ? void (0) : __assert_fail ("other", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 97, __extension__ __PRETTY_FUNCTION__)); result_ = impl_->yield_to( other.impl_, x); return * this; } template< typename Coro > symmetric_coroutine_yield & operator()( Coro & other, typename enable_if< is_same< typename Coro::value_type, void >, dummy* >::type = 0) { (static_cast <bool> (other) ? void (0) : __assert_fail ("other", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 110, __extension__ __PRETTY_FUNCTION__)); result_ = impl_->yield_to( other.impl_); return * this; } R get() const { if ( 0 == result_) boost::throw_exception( invalid_result() ); return * result_; } }; template< typename R > class symmetric_coroutine_yield< R & > { private: template< typename X, typename Y, typename Z > friend class symmetric_coroutine_object; typedef symmetric_coroutine_impl< R & > impl_type; struct dummy {}; public: symmetric_coroutine_yield(symmetric_coroutine_yield const &) = delete; symmetric_coroutine_yield& operator=(symmetric_coroutine_yield const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: impl_type * impl_; R * result_; symmetric_coroutine_yield( impl_type * impl, R * result) noexcept : impl_( impl), result_( result) { (static_cast <bool> (0 != impl_) ? void (0) : __assert_fail ("0 != impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 146, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (0 != result_) ? void (0) : __assert_fail ("0 != result_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 147, __extension__ __PRETTY_FUNCTION__)); } public: symmetric_coroutine_yield() noexcept : impl_( 0), result_( 0) {} symmetric_coroutine_yield( symmetric_coroutine_yield && other) noexcept : impl_( 0), result_( 0) { swap( other); } symmetric_coroutine_yield & operator=( symmetric_coroutine_yield && other) noexcept { symmetric_coroutine_yield tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_; } void swap( symmetric_coroutine_yield & other) noexcept { std::swap( impl_, other.impl_); std::swap( result_, other.result_); } symmetric_coroutine_yield & operator()() { result_ = impl_->yield(); return * this; } template< typename Coro > symmetric_coroutine_yield & operator()( Coro & other, typename Coro::value_type & x, typename disable_if< is_same< typename Coro::value_type, void >, dummy* >::type = 0) { (static_cast <bool> (other) ? void (0) : __assert_fail ("other", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 192, __extension__ __PRETTY_FUNCTION__)); result_ = impl_->yield_to( other.impl_, x); return * this; } template< typename Coro > symmetric_coroutine_yield & operator()( Coro & other, typename enable_if< is_same< typename Coro::value_type, void >, dummy* >::type = 0) { (static_cast <bool> (other) ? void (0) : __assert_fail ("other", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 205, __extension__ __PRETTY_FUNCTION__)); result_ = impl_->yield_to( other.impl_); return * this; } R & get() const { if ( 0 == result_) boost::throw_exception( invalid_result() ); return * result_; } }; template<> class symmetric_coroutine_yield< void > { private: template< typename X, typename Y, typename Z > friend class symmetric_coroutine_object; typedef symmetric_coroutine_impl< void > impl_type; struct dummy {}; public: symmetric_coroutine_yield(symmetric_coroutine_yield const &) = delete; symmetric_coroutine_yield& operator=(symmetric_coroutine_yield const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: impl_type * impl_; symmetric_coroutine_yield( impl_type * impl) noexcept : impl_( impl) { (static_cast <bool> (0 != impl_) ? void (0) : __assert_fail ("0 != impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 238, __extension__ __PRETTY_FUNCTION__)); } public: symmetric_coroutine_yield() noexcept : impl_( 0) {} symmetric_coroutine_yield( symmetric_coroutine_yield && other) noexcept : impl_( 0) { swap( other); } symmetric_coroutine_yield & operator=( symmetric_coroutine_yield && other) noexcept { symmetric_coroutine_yield tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; inline bool operator!() const noexcept { return 0 == impl_; } inline void swap( symmetric_coroutine_yield & other) noexcept { std::swap( impl_, other.impl_); } inline symmetric_coroutine_yield & operator()() { impl_->yield(); return * this; } template< typename Coro > symmetric_coroutine_yield & operator()( Coro & other, typename Coro::value_type & x, typename disable_if< is_same< typename Coro::value_type, void >, dummy* >::type = 0) { (static_cast <bool> (other) ? void (0) : __assert_fail ("other", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 277, __extension__ __PRETTY_FUNCTION__)); impl_->yield_to( other.impl_, x); return * this; } template< typename Coro > symmetric_coroutine_yield & operator()( Coro & other, typename enable_if< is_same< typename Coro::value_type, void >, dummy* >::type = 0) { (static_cast <bool> (other) ? void (0) : __assert_fail ("other", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_yield.hpp", 290, __extension__ __PRETTY_FUNCTION__)); impl_->yield_to( other.impl_); return * this; } }; template< typename R > void swap( symmetric_coroutine_yield< R > & l, symmetric_coroutine_yield< R > & r) { l.swap( r); } }}} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 2 3 4 namespace boost { namespace coroutines { struct stack_context; namespace detail { template< typename R, typename Fn, typename StackAllocator > class symmetric_coroutine_object : public symmetric_coroutine_impl< R > { private: typedef symmetric_coroutine_impl< R > impl_t; typedef symmetric_coroutine_object< R, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 3 4 symmetric_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : impl_t( palloc, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run( R * r) noexcept { (static_cast <bool> (! impl_t::unwind_requested()) ? void (0) : __assert_fail ("! impl_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp", 82, __extension__ __PRETTY_FUNCTION__)); impl_t::flags_ |= flag_started; impl_t::flags_ |= flag_running; try { symmetric_coroutine_yield< R > yc( this, r); fn_( yc); } catch ( forced_unwind const&) {} catch (...) { std::terminate(); } impl_t::flags_ |= flag_complete; impl_t::flags_ &= ~flag_running; typename impl_t::param_type to; impl_t::callee_.jump( impl_t::caller_, & to); (static_cast <bool> ((false)&&("coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp", 102, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; template< typename R, typename Fn, typename StackAllocator > class symmetric_coroutine_object< R &, Fn, StackAllocator > : public symmetric_coroutine_impl< R & > { private: typedef symmetric_coroutine_impl< R & > impl_t; typedef symmetric_coroutine_object< R &, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 142 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 3 4 symmetric_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : impl_t( palloc, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run( R * r) noexcept { (static_cast <bool> (! impl_t::unwind_requested()) ? void (0) : __assert_fail ("! impl_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp", 158, __extension__ __PRETTY_FUNCTION__)); impl_t::flags_ |= flag_started; impl_t::flags_ |= flag_running; try { symmetric_coroutine_yield< R & > yc( this, r); fn_( yc); } catch ( forced_unwind const&) {} catch (...) { std::terminate(); } impl_t::flags_ |= flag_complete; impl_t::flags_ &= ~flag_running; typename impl_t::param_type to; impl_t::callee_.jump( impl_t::caller_, & to); (static_cast <bool> ((false)&&("coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp", 178, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; template< typename Fn, typename StackAllocator > class symmetric_coroutine_object< void, Fn, StackAllocator > : public symmetric_coroutine_impl< void > { private: typedef symmetric_coroutine_impl< void > impl_t; typedef symmetric_coroutine_object< void, Fn, StackAllocator > obj_t; Fn fn_; stack_context stack_ctx_; StackAllocator stack_alloc_; static void deallocate_( obj_t * obj) { stack_context stack_ctx( obj->stack_ctx_); StackAllocator stack_alloc( obj->stack_alloc_); obj->unwind_stack(); obj->~obj_t(); stack_alloc.deallocate( stack_ctx); } public: # 218 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp" 3 4 symmetric_coroutine_object( Fn && fn, attributes const& attrs, preallocated const& palloc, StackAllocator const& stack_alloc) noexcept : impl_t( palloc, stack_unwind == attrs.do_unwind), fn_( boost::forward< Fn >( fn) ), stack_ctx_( palloc.sctx), stack_alloc_( stack_alloc) {} void run() noexcept { (static_cast <bool> (! impl_t::unwind_requested()) ? void (0) : __assert_fail ("! impl_t::unwind_requested()", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp", 234, __extension__ __PRETTY_FUNCTION__)); impl_t::flags_ |= flag_started; impl_t::flags_ |= flag_running; try { symmetric_coroutine_yield< void > yc( this); fn_( yc); } catch ( forced_unwind const&) {} catch (...) { std::terminate(); } impl_t::flags_ |= flag_complete; impl_t::flags_ &= ~flag_running; typename impl_t::param_type to; impl_t::callee_.jump( impl_t::caller_, & to); (static_cast <bool> ((false)&&("coroutine is complete")) ? void (0) : __assert_fail ("(false)&&(\"coroutine is complete\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_object.hpp", 254, __extension__ __PRETTY_FUNCTION__)); } void destroy() { deallocate_( this); } }; }}} # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 2 3 4 # 28 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 namespace boost { namespace coroutines { namespace detail { template< typename Arg > class symmetric_coroutine_call { private: template< typename X > friend class symmetric_coroutine_yield; typedef symmetric_coroutine_impl< Arg > impl_type; public: symmetric_coroutine_call(symmetric_coroutine_call const &) = delete; symmetric_coroutine_call& operator=(symmetric_coroutine_call const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: struct dummy {}; impl_type * impl_; public: typedef Arg value_type; typedef symmetric_coroutine_yield< Arg > yield_type; symmetric_coroutine_call() noexcept : impl_( 0) {} # 106 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 template< typename Fn > explicit symmetric_coroutine_call( Fn && fn, attributes const& attrs = attributes(), stack_allocator stack_alloc = stack_allocator() ) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 116, __extension__ __PRETTY_FUNCTION__)); typedef symmetric_coroutine_object< Arg, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 121, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 123, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 127, __extension__ __PRETTY_FUNCTION__)); } template< typename Fn, typename StackAllocator > explicit symmetric_coroutine_call( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 140, __extension__ __PRETTY_FUNCTION__)); typedef symmetric_coroutine_object< Arg, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 145, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 147, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 151, __extension__ __PRETTY_FUNCTION__)); } # 251 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 ~symmetric_coroutine_call() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } symmetric_coroutine_call( symmetric_coroutine_call && other) noexcept : impl_( 0) { swap( other); } symmetric_coroutine_call & operator=( symmetric_coroutine_call && other) noexcept { symmetric_coroutine_call tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete() || impl_->is_running(); } void swap( symmetric_coroutine_call & other) noexcept { std::swap( impl_, other.impl_); } symmetric_coroutine_call & operator()( Arg arg) noexcept { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 281, __extension__ __PRETTY_FUNCTION__)); impl_->resume( arg); return * this; } }; template< typename Arg > class symmetric_coroutine_call< Arg & > { private: template< typename X > friend class symmetric_coroutine_yield; typedef symmetric_coroutine_impl< Arg & > impl_type; public: symmetric_coroutine_call(symmetric_coroutine_call const &) = delete; symmetric_coroutine_call& operator=(symmetric_coroutine_call const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: struct dummy {}; impl_type * impl_; public: typedef Arg value_type; typedef symmetric_coroutine_yield< Arg & > yield_type; symmetric_coroutine_call() noexcept : impl_( 0) {} # 362 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 template< typename Fn > explicit symmetric_coroutine_call( Fn && fn, attributes const& attrs = attributes(), stack_allocator stack_alloc = stack_allocator() ) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 372, __extension__ __PRETTY_FUNCTION__)); typedef symmetric_coroutine_object< Arg &, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 377, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 379, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 383, __extension__ __PRETTY_FUNCTION__)); } template< typename Fn, typename StackAllocator > explicit symmetric_coroutine_call( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 396, __extension__ __PRETTY_FUNCTION__)); typedef symmetric_coroutine_object< Arg &, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 401, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 403, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 407, __extension__ __PRETTY_FUNCTION__)); } # 507 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 ~symmetric_coroutine_call() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } symmetric_coroutine_call( symmetric_coroutine_call && other) noexcept : impl_( 0) { swap( other); } symmetric_coroutine_call & operator=( symmetric_coroutine_call && other) noexcept { symmetric_coroutine_call tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete() || impl_->is_running(); } void swap( symmetric_coroutine_call & other) noexcept { std::swap( impl_, other.impl_); } symmetric_coroutine_call & operator()( Arg & arg) noexcept { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 537, __extension__ __PRETTY_FUNCTION__)); impl_->resume( arg); return * this; } }; template<> class symmetric_coroutine_call< void > { private: template< typename X > friend class symmetric_coroutine_yield; typedef symmetric_coroutine_impl< void > impl_type; public: symmetric_coroutine_call(symmetric_coroutine_call const &) = delete; symmetric_coroutine_call& operator=(symmetric_coroutine_call const &) = delete; public: typedef int boost_move_no_copy_constructor_or_assign; private: public: typedef int boost_move_emulation_t; private: struct dummy {}; impl_type * impl_; public: typedef void value_type; typedef symmetric_coroutine_yield< void > yield_type; symmetric_coroutine_call() noexcept : impl_( 0) {} # 618 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 template< typename Fn > explicit symmetric_coroutine_call( Fn && fn, attributes const& attrs = attributes(), stack_allocator stack_alloc = stack_allocator() ) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 628, __extension__ __PRETTY_FUNCTION__)); typedef symmetric_coroutine_object< void, Fn, stack_allocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 633, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 635, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 639, __extension__ __PRETTY_FUNCTION__)); } template< typename Fn, typename StackAllocator > explicit symmetric_coroutine_call( Fn && fn, attributes const& attrs, StackAllocator stack_alloc) : impl_( 0) { stack_context stack_ctx; stack_alloc.allocate( stack_ctx, attrs.size); (static_cast <bool> (0 != stack_ctx.sp) ? void (0) : __assert_fail ("0 != stack_ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 652, __extension__ __PRETTY_FUNCTION__)); typedef symmetric_coroutine_object< void, Fn, StackAllocator > object_t; std::size_t size = stack_ctx.size - sizeof( object_t); (static_cast <bool> (0 != size) ? void (0) : __assert_fail ("0 != size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 657, __extension__ __PRETTY_FUNCTION__)); void * sp = static_cast< char * >( stack_ctx.sp) - sizeof( object_t); (static_cast <bool> (0 != sp) ? void (0) : __assert_fail ("0 != sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 659, __extension__ __PRETTY_FUNCTION__)); impl_ = new ( sp) object_t( boost::forward< Fn >( fn), attrs, preallocated( sp, size, stack_ctx), stack_alloc); (static_cast <bool> (impl_) ? void (0) : __assert_fail ("impl_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 663, __extension__ __PRETTY_FUNCTION__)); } # 763 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp" 3 4 ~symmetric_coroutine_call() { if ( 0 != impl_) { impl_->destroy(); impl_ = 0; } } inline symmetric_coroutine_call( symmetric_coroutine_call && other) noexcept : impl_( 0) { swap( other); } inline symmetric_coroutine_call & operator=( symmetric_coroutine_call && other) noexcept { symmetric_coroutine_call tmp( boost::move( other) ); swap( tmp); return * this; } inline __attribute__ ((__always_inline__)) explicit operator bool () const { return !this->operator! (); }; inline bool operator!() const noexcept { return 0 == impl_ || impl_->is_complete() || impl_->is_running(); } inline void swap( symmetric_coroutine_call & other) noexcept { std::swap( impl_, other.impl_); } inline symmetric_coroutine_call & operator()() noexcept { (static_cast <bool> (* this) ? void (0) : __assert_fail ("* this", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/detail/symmetric_coroutine_call.hpp", 793, __extension__ __PRETTY_FUNCTION__)); impl_->resume(); return * this; } }; template< typename Arg > void swap( symmetric_coroutine_call< Arg > & l, symmetric_coroutine_call< Arg > & r) { l.swap( r); } }}} # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/symmetric_coroutine.hpp" 2 3 4 namespace boost { namespace coroutines { template< typename T > struct symmetric_coroutine { typedef detail::symmetric_coroutine_call< T > call_type; typedef detail::symmetric_coroutine_yield< T > yield_type; }; }} # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/coroutine.hpp" 2 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/all.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/protected_stack_allocator.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/protected_stack_allocator.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp" 3 4 extern "C" { # 1 "/usr/include/x86_64-linux-gnu/sys/mman.h" 1 3 4 # 25 "/usr/include/x86_64-linux-gnu/sys/mman.h" 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/stddef.h" 1 3 4 # 26 "/usr/include/x86_64-linux-gnu/sys/mman.h" 2 3 4 # 41 "/usr/include/x86_64-linux-gnu/sys/mman.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mman.h" 1 3 4 # 31 "/usr/include/x86_64-linux-gnu/bits/mman.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mman-map-flags-generic.h" 1 3 4 # 32 "/usr/include/x86_64-linux-gnu/bits/mman.h" 2 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mman-linux.h" 1 3 4 # 117 "/usr/include/x86_64-linux-gnu/bits/mman-linux.h" 3 4 # 1 "/usr/include/x86_64-linux-gnu/bits/mman-shared.h" 1 3 4 # 47 "/usr/include/x86_64-linux-gnu/bits/mman-shared.h" 3 4 extern "C" { int memfd_create (const char *__name, unsigned int __flags) noexcept (true); int mlock2 (const void *__addr, size_t __length, unsigned int __flags) noexcept (true); int pkey_alloc (unsigned int __flags, unsigned int __access_rights) noexcept (true); int pkey_set (int __key, unsigned int __access_rights) noexcept (true); int pkey_get (int __key) noexcept (true); int pkey_free (int __key) noexcept (true); int pkey_mprotect (void *__addr, size_t __len, int __prot, int __pkey) noexcept (true); } # 118 "/usr/include/x86_64-linux-gnu/bits/mman-linux.h" 2 3 4 # 35 "/usr/include/x86_64-linux-gnu/bits/mman.h" 2 3 4 # 42 "/usr/include/x86_64-linux-gnu/sys/mman.h" 2 3 4 extern "C" { # 57 "/usr/include/x86_64-linux-gnu/sys/mman.h" 3 4 extern void *mmap (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off_t __offset) noexcept (true); # 70 "/usr/include/x86_64-linux-gnu/sys/mman.h" 3 4 extern void *mmap64 (void *__addr, size_t __len, int __prot, int __flags, int __fd, __off64_t __offset) noexcept (true); extern int munmap (void *__addr, size_t __len) noexcept (true); extern int mprotect (void *__addr, size_t __len, int __prot) noexcept (true); extern int msync (void *__addr, size_t __len, int __flags); extern int madvise (void *__addr, size_t __len, int __advice) noexcept (true); extern int posix_madvise (void *__addr, size_t __len, int __advice) noexcept (true); extern int mlock (const void *__addr, size_t __len) noexcept (true); extern int munlock (const void *__addr, size_t __len) noexcept (true); extern int mlockall (int __flags) noexcept (true); extern int munlockall (void) noexcept (true); extern int mincore (void *__start, size_t __len, unsigned char *__vec) noexcept (true); # 133 "/usr/include/x86_64-linux-gnu/sys/mman.h" 3 4 extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, int __flags, ...) noexcept (true); extern int remap_file_pages (void *__start, size_t __size, int __prot, size_t __pgoff, int __flags) noexcept (true); extern int shm_open (const char *__name, int __oflag, mode_t __mode); extern int shm_unlink (const char *__name); } # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp" 2 3 4 } # 1 "/usr/include/c++/13/cmath" 1 3 4 # 39 "/usr/include/c++/13/cmath" 3 4 # 40 "/usr/include/c++/13/cmath" 3 # 22 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp" 2 3 4 # 36 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp" 3 4 namespace boost { namespace coroutines { template< typename traitsT > struct basic_protected_stack_allocator { typedef traitsT traits_type; void allocate( stack_context & ctx, std::size_t size = traits_type::minimum_size() ) { (static_cast <bool> (traits_type::minimum_size() <= size) ? void (0) : __assert_fail ("traits_type::minimum_size() <= size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 46, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (traits_type::is_unbounded() || ( traits_type::maximum_size() >= size)) ? void (0) : __assert_fail ("traits_type::is_unbounded() || ( traits_type::maximum_size() >= size)", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 47, __extension__ __PRETTY_FUNCTION__)); const std::size_t pages( static_cast< std::size_t >( std::floor( static_cast< float >( size) / traits_type::page_size() ) ) ); (static_cast <bool> ((2 <= pages)&&("at least two pages must fit into stack (one page is guard-page)")) ? void (0) : __assert_fail ("(2 <= pages)&&(\"at least two pages must fit into stack (one page is guard-page)\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 54, __extension__ __PRETTY_FUNCTION__)); const std::size_t size_( pages * traits_type::page_size() ); (static_cast <bool> (0 != size && 0 != size_) ? void (0) : __assert_fail ("0 != size && 0 != size_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 56, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (size_ <= size) ? void (0) : __assert_fail ("size_ <= size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 57, __extension__ __PRETTY_FUNCTION__)); void * limit = ::mmap( 0, size_, 0x1 | 0x2, 0x02 | 0x20, -1, 0); if ( ((void *) -1) == limit) throw std::bad_alloc(); const int result( ::mprotect( limit, traits_type::page_size(), 0x0) ); (static_cast <bool> (0 == result) ? void (0) : __assert_fail ("0 == result", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 72, __extension__ __PRETTY_FUNCTION__)); ctx.size = size_; ctx.sp = static_cast< char * >( limit) + ctx.size; } void deallocate( stack_context & ctx) { (static_cast <bool> (ctx.sp) ? void (0) : __assert_fail ("ctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 84, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (traits_type::minimum_size() <= ctx.size) ? void (0) : __assert_fail ("traits_type::minimum_size() <= ctx.size", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 85, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (traits_type::is_unbounded() || ( traits_type::maximum_size() >= ctx.size)) ? void (0) : __assert_fail ("traits_type::is_unbounded() || ( traits_type::maximum_size() >= ctx.size)", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/posix/protected_stack_allocator.hpp", 86, __extension__ __PRETTY_FUNCTION__)); void * limit = static_cast< char * >( ctx.sp) - ctx.size; ::munmap( limit, ctx.size); } }; typedef basic_protected_stack_allocator< stack_traits > protected_stack_allocator; }} # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/protected_stack_allocator.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/all.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/segmented_stack_allocator.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/coroutine/all.hpp" 2 3 4 # 31 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { class spawned_thread_base { public: spawned_thread_base() : owner_(0), has_context_switched_(false), throw_if_cancelled_(false), terminal_(false) { } virtual ~spawned_thread_base() {} virtual void resume() = 0; virtual void suspend_with(void (*fn)(void*), void* arg) = 0; virtual void destroy() = 0; void attach(spawned_thread_base** owner) { owner_ = owner; *owner_ = this; } void detach() { if (owner_) *owner_ = 0; owner_ = 0; } void suspend() { suspend_with(0, 0); } template <typename F> void suspend_with(F f) { suspend_with(&spawned_thread_base::call<F>, &f); } cancellation_slot get_cancellation_slot() const noexcept { return cancellation_state_.slot(); } cancellation_state get_cancellation_state() const noexcept { return cancellation_state_; } void reset_cancellation_state() { cancellation_state_ = cancellation_state(parent_cancellation_slot_); } template <typename Filter> void reset_cancellation_state(Filter filter) { cancellation_state_ = cancellation_state( parent_cancellation_slot_, filter, filter); } template <typename InFilter, typename OutFilter> void reset_cancellation_state(InFilter in_filter, OutFilter out_filter) { cancellation_state_ = cancellation_state( parent_cancellation_slot_, in_filter, out_filter); } cancellation_type_t cancelled() const noexcept { return cancellation_state_.cancelled(); } bool has_context_switched() const noexcept { return has_context_switched_; } bool throw_if_cancelled() const noexcept { return throw_if_cancelled_; } void throw_if_cancelled(bool value) noexcept { throw_if_cancelled_ = value; } protected: spawned_thread_base** owner_; boost::asio::cancellation_slot parent_cancellation_slot_; boost::asio::cancellation_state cancellation_state_; bool has_context_switched_; bool throw_if_cancelled_; bool terminal_; private: spawned_thread_base(const spawned_thread_base&) = delete; spawned_thread_base& operator=(const spawned_thread_base&) = delete; template <typename F> static void call(void* f) { (*static_cast<F*>(f))(); } }; template <typename T> struct spawn_signature { typedef void type(exception_ptr, T); }; template <> struct spawn_signature<void> { typedef void type(exception_ptr); }; template <typename Executor> class initiate_spawn; } # 186 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Executor> class basic_yield_context { public: typedef Executor executor_type; typedef cancellation_slot cancellation_slot_type; template <typename OtherExecutor> basic_yield_context(const basic_yield_context<OtherExecutor>& other, typename constraint< is_convertible<OtherExecutor, Executor>::value >::type = 0) : spawned_thread_(other.spawned_thread_), executor_(other.executor_), ec_(other.ec_) { } executor_type get_executor() const noexcept { return executor_; } cancellation_slot_type get_cancellation_slot() const noexcept { return spawned_thread_->get_cancellation_slot(); } cancellation_state get_cancellation_state() const noexcept { return spawned_thread_->get_cancellation_state(); } # 236 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 void reset_cancellation_state() const { spawned_thread_->reset_cancellation_state(); } # 249 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Filter> void reset_cancellation_state(Filter&& filter) const { spawned_thread_->reset_cancellation_state( static_cast<Filter&&>(filter)); } # 265 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename InFilter, typename OutFilter> void reset_cancellation_state(InFilter&& in_filter, OutFilter&& out_filter) const { spawned_thread_->reset_cancellation_state( static_cast<InFilter&&>(in_filter), static_cast<OutFilter&&>(out_filter)); } cancellation_type_t cancelled() const noexcept { return spawned_thread_->cancelled(); } bool throw_if_cancelled() const noexcept { return spawned_thread_->throw_if_cancelled(); } void throw_if_cancelled(bool value) const noexcept { spawned_thread_->throw_if_cancelled(value); } # 313 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 basic_yield_context operator[](boost::system::error_code& ec) const { basic_yield_context tmp(*this); tmp.ec_ = &ec; return tmp; } basic_yield_context(detail::spawned_thread_base* spawned_thread, const Executor& ex) : spawned_thread_(spawned_thread), executor_(ex), ec_(0) { } detail::spawned_thread_base* spawned_thread_; Executor executor_; boost::system::error_code* ec_; }; typedef basic_yield_context<any_io_executor> yield_context; # 404 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Executor, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> auto spawn(const Executor& ex, F&& function, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< !is_same< typename decay<CompletionToken>::type, boost::coroutines::attributes >::value >::type = 0, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) ; # 461 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename ExecutionContext, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context< typename ExecutionContext::executor_type>)>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > auto spawn(ExecutionContext& ctx, F&& function, CompletionToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint< !is_same< typename decay<CompletionToken>::type, boost::coroutines::attributes >::value >::type = 0, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) ; # 526 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Executor, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> auto spawn(const basic_yield_context<Executor>& ctx, F&& function, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< !is_same< typename decay<CompletionToken>::type, boost::coroutines::attributes >::value >::type = 0, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) ; # 591 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Executor, typename StackAllocator, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> auto spawn(const Executor& ex, allocator_arg_t, StackAllocator&& stack_allocator, F&& function, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) ; # 648 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename ExecutionContext, typename StackAllocator, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context< typename ExecutionContext::executor_type>)>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type > auto spawn(ExecutionContext& ctx, allocator_arg_t, StackAllocator&& stack_allocator, F&& function, CompletionToken&& token = typename ::boost::asio::default_completion_token<typename ExecutionContext::executor_type>::type() , typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type = 0) # 676 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 ; # 715 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Executor, typename StackAllocator, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken = typename ::boost::asio::default_completion_token<Executor>::type> auto spawn(const basic_yield_context<Executor>& ctx, allocator_arg_t, StackAllocator&& stack_allocator, F&& function, CompletionToken&& token = typename ::boost::asio::default_completion_token<Executor>::type(), typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0) ; # 756 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Function> void spawn(Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes()); # 777 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Handler, typename Function> void spawn(Handler&& handler, Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes(), typename constraint< !is_executor<typename decay<Handler>::type>::value && !execution::is_executor<typename decay<Handler>::type>::value && !is_convertible<Handler&, execution_context&>::value>::type = 0); # 803 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Executor, typename Function> void spawn(basic_yield_context<Executor> ctx, Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes()); # 823 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Function, typename Executor> void spawn(const Executor& ex, Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes(), typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type = 0); # 844 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Function, typename Executor> void spawn(const strand<Executor>& ex, Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes()); # 866 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Function> void spawn(const boost::asio::io_context::strand& s, Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes()); # 888 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 3 4 template <typename Function, typename ExecutionContext> void spawn(ExecutionContext& ctx, Function&& function, const boost::coroutines::attributes& attributes = boost::coroutines::attributes(), typename constraint<is_convertible< ExecutionContext&, execution_context&>::value>::type = 0); } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 905 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 1 3 4 # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 1 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/intrusive_ptr.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/intrusive_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 21 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/config/no_tr1/functional.hpp" 1 3 4 # 27 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 2 3 4 # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 3 4 namespace boost { # 55 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 3 4 template<class T> class intrusive_ptr { private: typedef intrusive_ptr this_type; public: typedef T element_type; constexpr intrusive_ptr() noexcept : px( 0 ) { } intrusive_ptr( T * p, bool add_ref = true ): px( p ) { if( px != 0 && add_ref ) intrusive_ptr_add_ref( px ); } template<class U> intrusive_ptr( intrusive_ptr<U> const & rhs, typename boost::detail::sp_enable_if_convertible<U,T>::type = boost::detail::sp_empty() ) : px( rhs.get() ) { if( px != 0 ) intrusive_ptr_add_ref( px ); } intrusive_ptr(intrusive_ptr const & rhs): px( rhs.px ) { if( px != 0 ) intrusive_ptr_add_ref( px ); } ~intrusive_ptr() { if( px != 0 ) intrusive_ptr_release( px ); } template<class U> intrusive_ptr & operator=(intrusive_ptr<U> const & rhs) { this_type(rhs).swap(*this); return *this; } intrusive_ptr(intrusive_ptr && rhs) noexcept : px( rhs.px ) { rhs.px = 0; } intrusive_ptr & operator=(intrusive_ptr && rhs) noexcept { this_type( static_cast< intrusive_ptr && >( rhs ) ).swap(*this); return *this; } template<class U> friend class intrusive_ptr; template<class U> intrusive_ptr(intrusive_ptr<U> && rhs, typename boost::detail::sp_enable_if_convertible<U,T>::type = boost::detail::sp_empty()) : px( rhs.px ) { rhs.px = 0; } template<class U> intrusive_ptr & operator=(intrusive_ptr<U> && rhs) noexcept { this_type( static_cast< intrusive_ptr<U> && >( rhs ) ).swap(*this); return *this; } intrusive_ptr & operator=(intrusive_ptr const & rhs) { this_type(rhs).swap(*this); return *this; } intrusive_ptr & operator=(T * rhs) { this_type(rhs).swap(*this); return *this; } void reset() { this_type().swap( *this ); } void reset( T * rhs ) { this_type( rhs ).swap( *this ); } void reset( T * rhs, bool add_ref ) { this_type( rhs, add_ref ).swap( *this ); } T * get() const noexcept { return px; } T * detach() noexcept { T * ret = px; px = 0; return ret; } T & operator*() const noexcept { (static_cast <bool> (px != 0) ? void (0) : __assert_fail ("px != 0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp", 195, __extension__ __PRETTY_FUNCTION__)); return *px; } T * operator->() const noexcept { (static_cast <bool> (px != 0) ? void (0) : __assert_fail ("px != 0", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp", 201, __extension__ __PRETTY_FUNCTION__)); return px; } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/operator_bool.hpp" 1 3 4 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 explicit operator bool () const noexcept { return px != 0; } # 61 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/detail/operator_bool.hpp" 3 4 bool operator! () const noexcept { return px == 0; } # 207 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 2 3 4 void swap(intrusive_ptr & rhs) noexcept { T * tmp = px; px = rhs.px; rhs.px = tmp; } private: T * px; }; template<class T, class U> inline bool operator==(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b) noexcept { return a.get() == b.get(); } template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, intrusive_ptr<U> const & b) noexcept { return a.get() != b.get(); } template<class T, class U> inline bool operator==(intrusive_ptr<T> const & a, U * b) noexcept { return a.get() == b; } template<class T, class U> inline bool operator!=(intrusive_ptr<T> const & a, U * b) noexcept { return a.get() != b; } template<class T, class U> inline bool operator==(T * a, intrusive_ptr<U> const & b) noexcept { return a == b.get(); } template<class T, class U> inline bool operator!=(T * a, intrusive_ptr<U> const & b) noexcept { return a != b.get(); } # 263 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 3 4 template<class T> inline bool operator==( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) noexcept { return p.get() == 0; } template<class T> inline bool operator==( boost::detail::sp_nullptr_t, intrusive_ptr<T> const & p ) noexcept { return p.get() == 0; } template<class T> inline bool operator!=( intrusive_ptr<T> const & p, boost::detail::sp_nullptr_t ) noexcept { return p.get() != 0; } template<class T> inline bool operator!=( boost::detail::sp_nullptr_t, intrusive_ptr<T> const & p ) noexcept { return p.get() != 0; } template<class T> inline bool operator<(intrusive_ptr<T> const & a, intrusive_ptr<T> const & b) noexcept { return std::less<T *>()(a.get(), b.get()); } template<class T> void swap(intrusive_ptr<T> & lhs, intrusive_ptr<T> & rhs) noexcept { lhs.swap(rhs); } template<class T> T * get_pointer(intrusive_ptr<T> const & p) noexcept { return p.get(); } template<class T, class U> intrusive_ptr<T> static_pointer_cast(intrusive_ptr<U> const & p) { return static_cast<T *>(p.get()); } template<class T, class U> intrusive_ptr<T> const_pointer_cast(intrusive_ptr<U> const & p) { return const_cast<T *>(p.get()); } template<class T, class U> intrusive_ptr<T> dynamic_pointer_cast(intrusive_ptr<U> const & p) { return dynamic_cast<T *>(p.get()); } template<class T, class U> intrusive_ptr<T> static_pointer_cast( intrusive_ptr<U> && p ) noexcept { return intrusive_ptr<T>( static_cast<T*>( p.detach() ), false ); } template<class T, class U> intrusive_ptr<T> const_pointer_cast( intrusive_ptr<U> && p ) noexcept { return intrusive_ptr<T>( const_cast<T*>( p.detach() ), false ); } template<class T, class U> intrusive_ptr<T> dynamic_pointer_cast( intrusive_ptr<U> && p ) noexcept { T * p2 = dynamic_cast<T*>( p.get() ); intrusive_ptr<T> r( p2, false ); if( p2 ) p.detach(); return r; } # 366 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 3 4 template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::basic_ostream<E, T> & os, intrusive_ptr<Y> const & p) { os << p.get(); return os; } # 381 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/smart_ptr/intrusive_ptr.hpp" 3 4 template< class T > struct hash; template< class T > std::size_t hash_value( boost::intrusive_ptr<T> const & p ) noexcept { return boost::hash< T* >()( p.get() ); } } namespace std { template<class T> struct hash< ::boost::intrusive_ptr<T> > { std::size_t operator()( ::boost::intrusive_ptr<T> const & p ) const noexcept { return std::hash< T* >()( p.get() ); } }; } # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/intrusive_ptr.hpp" 2 3 4 # 26 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/disable_overload.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/disable_overload.hpp" 3 4 namespace boost { namespace context { namespace detail { template< typename X, typename Y > using disable_overload = typename std::enable_if< ! std::is_base_of< X, typename std::decay< Y >::type >::value >::type; }}} # 34 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/exception.hpp" 1 3 4 # 10 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/exception.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/exception.hpp" 2 3 4 # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/exception.hpp" 3 4 namespace boost { namespace context { namespace detail { struct forced_unwind { fcontext_t fctx{ nullptr }; forced_unwind() = default; forced_unwind( fcontext_t fctx_) : fctx( fctx_) { } }; }}} # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/tuple.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/tuple.hpp" 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/index_sequence.hpp" 1 3 4 # 24 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/index_sequence.hpp" 3 4 namespace boost { namespace context { namespace detail { template< std::size_t ... I > using index_sequence = std::index_sequence< I ... >; template< std::size_t I > using make_index_sequence = std::make_index_sequence< I >; template< typename ... T > using index_sequence_for = std::index_sequence_for< T ... >; # 44 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/index_sequence.hpp" 3 4 }}} # 17 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/detail/tuple.hpp" 2 3 4 namespace boost { namespace context { namespace detail { template< typename ... S, typename ... T, std::size_t ... I > void head_impl( std::tuple< S ... > & s, std::tuple< T ... > & t, index_sequence< I ... >) { t = std::tuple< T ... >{ std::get< I >( s) ... }; } template< typename ... S, typename ... T, std::size_t ... I > void head_impl( std::tuple< S ... > && s, std::tuple< T ... > & t, index_sequence< I ... >) { t = std::tuple< T ... >{ std::get< I >( std::move( s) ) ... }; } template< typename ... S, std::size_t ... I1, typename ... T, std::size_t ... I2 > void tail_impl( std::tuple< S ... > & s, index_sequence< I1 ... >, std::tuple< T ... > & t, index_sequence< I2 ... >) { constexpr std::size_t Idx = (sizeof...(I1)) - (sizeof...(I2)); t = std::tuple< T ... >{ std::get< (Idx + I2) >( s) ... }; } template< typename ... S, std::size_t ... I1, typename ... T, std::size_t ... I2 > void tail_impl( std::tuple< S ... > && s, index_sequence< I1 ... >, std::tuple< T ... > & t, index_sequence< I2 ... >) { constexpr std::size_t Idx = (sizeof...(I1)) - (sizeof...(I2)); t = std::tuple< T ... >{ std::get< (Idx + I2) >( std::move( s) ) ... }; } template< typename ... T > class tuple_head; template< typename ... T > class tuple_head< std::tuple< T ... > > { private: std::tuple< T ... > & t_; public: tuple_head( std::tuple< T ... > & t) noexcept : t_( t) { } template< typename ... S > void operator=( std::tuple< S ... > & s) { static_assert((sizeof...(T)) <= (sizeof...(S)), "invalid tuple size"); head_impl( s, t_, index_sequence_for< T ... >{} ); } template< typename ... S > void operator=( std::tuple< S ... > && s) { static_assert((sizeof...(T)) <= (sizeof...(S)), "invalid tuple size"); head_impl( std::move( s), t_, index_sequence_for< T ... >{} ); } }; template< typename ... T > class tuple_tail; template< typename ... T > class tuple_tail< std::tuple< T ... > > { private: std::tuple< T ... > & t_; public: tuple_tail( std::tuple< T ... > & t) noexcept : t_( t) { } template< typename ... S > void operator=( std::tuple< S ... > & s) { static_assert((sizeof...(T)) <= (sizeof...(S)), "invalid tuple size"); tail_impl( s, index_sequence_for< S ... >{}, t_, index_sequence_for< T ... >{} ); } template< typename ... S > void operator=( std::tuple< S ... > && s) { static_assert((sizeof...(T)) <= (sizeof...(S)), "invalid tuple size"); tail_impl( std::move( s), index_sequence_for< S ... >{}, t_, index_sequence_for< T ... >{} ); } }; template< typename ... T > detail::tuple_head< std::tuple< T ... > > head( std::tuple< T ... > & tpl) { return tuple_head< std::tuple< T ... > >{ tpl }; } template< typename ... T > detail::tuple_tail< std::tuple< T ... > > tail( std::tuple< T ... > & tpl) { return tuple_tail< std::tuple< T ... > >{ tpl }; } }}} # 37 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 1 3 4 # 11 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 3 4 # 1 "/usr/include/c++/13/cstdlib" 1 3 4 # 39 "/usr/include/c++/13/cstdlib" 3 4 # 40 "/usr/include/c++/13/cstdlib" 3 # 12 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 1 3 4 # 58 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 3 4 # 1 "/usr/include/assert.h" 1 3 4 # 59 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/assert.hpp" 2 3 4 # 15 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/stack_context.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/stack_context.hpp" 3 4 namespace boost { namespace context { struct stack_context { std::size_t size{ 0 }; void * sp{ nullptr }; }; # 66 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/stack_context.hpp" 3 4 }} # 19 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/stack_traits.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/stack_traits.hpp" 3 4 namespace boost { namespace context { struct stack_traits { static bool is_unbounded() noexcept; static std::size_t page_size() noexcept; static std::size_t default_size() noexcept; static std::size_t minimum_size() noexcept; static std::size_t maximum_size() noexcept; }; }} # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 2 3 4 # 35 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp" 3 4 namespace boost { namespace context { template< typename traitsT > class basic_fixedsize_stack { private: std::size_t size_; public: typedef traitsT traits_type; basic_fixedsize_stack( std::size_t size = traits_type::default_size() ) noexcept : size_( size) { } stack_context allocate() { void * vp = std::malloc( size_); if ( ! vp) { throw std::bad_alloc(); } stack_context sctx; sctx.size = size_; sctx.sp = static_cast< char * >( vp) + sctx.size; return sctx; } void deallocate( stack_context & sctx) noexcept { (static_cast <bool> (sctx.sp) ? void (0) : __assert_fail ("sctx.sp", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fixedsize_stack.hpp", 72, __extension__ __PRETTY_FUNCTION__)); void * vp = static_cast< char * >( sctx.sp) - sctx.size; std::free( vp); } }; typedef basic_fixedsize_stack< stack_traits > fixedsize_stack; typedef fixedsize_stack default_stack; }} # 38 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/flags.hpp" 1 3 4 # 16 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/flags.hpp" 3 4 namespace boost { namespace context { struct exec_ontop_arg_t {}; const exec_ontop_arg_t exec_ontop_arg{}; }} # 39 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/preallocated.hpp" 1 3 4 # 20 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/preallocated.hpp" 3 4 namespace boost { namespace context { struct preallocated { void * sp; std::size_t size; stack_context sctx; preallocated( void * sp_, std::size_t size_, stack_context sctx_) noexcept : sp( sp_), size( size_), sctx( sctx_) { } }; }} # 40 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/segmented_stack.hpp" 1 3 4 # 41 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 1 "/usr/lib/gcc/x86_64-linux-gnu/13/include/cet.h" 1 3 4 # 49 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 2 3 4 # 63 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 namespace boost { namespace context { namespace detail { inline transfer_t fiber_unwind( transfer_t t) { throw forced_unwind( t.fctx); return { nullptr, nullptr }; } template< typename Rec > transfer_t fiber_exit( transfer_t t) noexcept { Rec * rec = static_cast< Rec * >( t.data); rec->deallocate(); return { nullptr, nullptr }; } template< typename Rec > void fiber_entry( transfer_t t) noexcept { Rec * rec = static_cast< Rec * >( t.data); (static_cast <bool> (nullptr != t.fctx) ? void (0) : __assert_fail ("nullptr != t.fctx", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 91, __extension__ __PRETTY_FUNCTION__)); (static_cast <bool> (nullptr != rec) ? void (0) : __assert_fail ("nullptr != rec", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 92, __extension__ __PRETTY_FUNCTION__)); try { t = jump_fcontext( t.fctx, nullptr); t.fctx = rec->run( t.fctx); } catch ( forced_unwind const& ex) { t = { ex.fctx, nullptr }; } (static_cast <bool> (nullptr != t.fctx) ? void (0) : __assert_fail ("nullptr != t.fctx", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 101, __extension__ __PRETTY_FUNCTION__)); ontop_fcontext( t.fctx, rec, fiber_exit< Rec >); (static_cast <bool> ((false)&&("context already terminated")) ? void (0) : __assert_fail ("(false)&&(\"context already terminated\")", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 104, __extension__ __PRETTY_FUNCTION__)); } template< typename Ctx, typename Fn > transfer_t fiber_ontop( transfer_t t) { (static_cast <bool> (nullptr != t.data) ? void (0) : __assert_fail ("nullptr != t.data", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 109, __extension__ __PRETTY_FUNCTION__)); auto p = *static_cast< Fn * >( t.data); t.data = nullptr; Ctx c = p( Ctx{ t.fctx } ); return { std::exchange( c.fctx_, nullptr), nullptr }; } template< typename Ctx, typename StackAlloc, typename Fn > class fiber_record { private: stack_context sctx_; typename std::decay< StackAlloc >::type salloc_; typename std::decay< Fn >::type fn_; static void destroy( fiber_record * p) noexcept { typename std::decay< StackAlloc >::type salloc = std::move( p->salloc_); stack_context sctx = p->sctx_; p->~fiber_record(); salloc.deallocate( sctx); } public: fiber_record( stack_context sctx, StackAlloc && salloc, Fn && fn) noexcept : sctx_( sctx), salloc_( std::forward< StackAlloc >( salloc)), fn_( std::forward< Fn >( fn) ) { } fiber_record( fiber_record const&) = delete; fiber_record & operator=( fiber_record const&) = delete; void deallocate() noexcept { destroy( this); } fcontext_t run( fcontext_t fctx) { Ctx c = std::invoke( fn_, Ctx{ fctx } ); return std::exchange( c.fctx_, nullptr); } }; template< typename Record, typename StackAlloc, typename Fn > fcontext_t create_fiber1( StackAlloc && salloc, Fn && fn) { auto sctx = salloc.allocate(); void * storage = reinterpret_cast< void * >( ( reinterpret_cast< uintptr_t >( sctx.sp) - static_cast< uintptr_t >( sizeof( Record) ) ) & ~static_cast< uintptr_t >( 0xff) ); Record * record = new ( storage) Record{ sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; void * stack_top = reinterpret_cast< void * >( reinterpret_cast< uintptr_t >( storage) - static_cast< uintptr_t >( 64) ); void * stack_bottom = reinterpret_cast< void * >( reinterpret_cast< uintptr_t >( sctx.sp) - static_cast< uintptr_t >( sctx.size) ); const std::size_t size = reinterpret_cast< uintptr_t >( stack_top) - reinterpret_cast< uintptr_t >( stack_bottom); # 204 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 const fcontext_t fctx = make_fcontext( stack_top, size, & fiber_entry< Record >); (static_cast <bool> (nullptr != fctx) ? void (0) : __assert_fail ("nullptr != fctx", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 205, __extension__ __PRETTY_FUNCTION__)); return jump_fcontext( fctx, record).fctx; } template< typename Record, typename StackAlloc, typename Fn > fcontext_t create_fiber2( preallocated palloc, StackAlloc && salloc, Fn && fn) { void * storage = reinterpret_cast< void * >( ( reinterpret_cast< uintptr_t >( palloc.sp) - static_cast< uintptr_t >( sizeof( Record) ) ) & ~ static_cast< uintptr_t >( 0xff) ); Record * record = new ( storage) Record{ palloc.sctx, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) }; void * stack_top = reinterpret_cast< void * >( reinterpret_cast< uintptr_t >( storage) - static_cast< uintptr_t >( 64) ); void * stack_bottom = reinterpret_cast< void * >( reinterpret_cast< uintptr_t >( palloc.sctx.sp) - static_cast< uintptr_t >( palloc.sctx.size) ); const std::size_t size = reinterpret_cast< uintptr_t >( stack_top) - reinterpret_cast< uintptr_t >( stack_bottom); # 245 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 const fcontext_t fctx = make_fcontext( stack_top, size, & fiber_entry< Record >); (static_cast <bool> (nullptr != fctx) ? void (0) : __assert_fail ("nullptr != fctx", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 246, __extension__ __PRETTY_FUNCTION__)); return jump_fcontext( fctx, record).fctx; } } class fiber { private: template< typename Ctx, typename StackAlloc, typename Fn > friend class detail::fiber_record; template< typename Ctx, typename Fn > friend detail::transfer_t detail::fiber_ontop( detail::transfer_t); detail::fcontext_t fctx_{ nullptr }; fiber( detail::fcontext_t fctx) noexcept : fctx_{ fctx } { } public: fiber() noexcept = default; template< typename Fn, typename = detail::disable_overload< fiber, Fn > > fiber( Fn && fn) : fiber{ std::allocator_arg, fixedsize_stack(), std::forward< Fn >( fn) } { } template< typename StackAlloc, typename Fn > fiber( std::allocator_arg_t, StackAlloc && salloc, Fn && fn) : fctx_{ detail::create_fiber1< detail::fiber_record< fiber, StackAlloc, Fn > >( std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) ) } { } template< typename StackAlloc, typename Fn > fiber( std::allocator_arg_t, preallocated palloc, StackAlloc && salloc, Fn && fn) : fctx_{ detail::create_fiber2< detail::fiber_record< fiber, StackAlloc, Fn > >( palloc, std::forward< StackAlloc >( salloc), std::forward< Fn >( fn) ) } { } # 296 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 ~fiber() { if ( __builtin_expect(nullptr != fctx_, 0) ) { detail::ontop_fcontext( std::exchange( fctx_, nullptr), nullptr, detail::fiber_unwind); } } fiber( fiber && other) noexcept { swap( other); } fiber & operator=( fiber && other) noexcept { if ( __builtin_expect(this != & other, 1) ) { fiber tmp = std::move( other); swap( tmp); } return * this; } fiber( fiber const& other) noexcept = delete; fiber & operator=( fiber const& other) noexcept = delete; fiber resume() && { (static_cast <bool> (nullptr != fctx_) ? void (0) : __assert_fail ("nullptr != fctx_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 325, __extension__ __PRETTY_FUNCTION__)); return { detail::jump_fcontext( std::exchange( fctx_, nullptr), nullptr).fctx }; } template< typename Fn > fiber resume_with( Fn && fn) && { (static_cast <bool> (nullptr != fctx_) ? void (0) : __assert_fail ("nullptr != fctx_", "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp", 337, __extension__ __PRETTY_FUNCTION__)); auto p = std::forward< Fn >( fn); return { detail::ontop_fcontext( std::exchange( fctx_, nullptr), & p, detail::fiber_ontop< fiber, decltype(p) >).fctx }; } explicit operator bool() const noexcept { return nullptr != fctx_; } bool operator!() const noexcept { return nullptr == fctx_; } bool operator<( fiber const& other) const noexcept { return fctx_ < other.fctx_; } template< typename charT, class traitsT > friend std::basic_ostream< charT, traitsT > & operator<<( std::basic_ostream< charT, traitsT > & os, fiber const& other) { if ( nullptr != other.fctx_) { return os << other.fctx_; } else { return os << "{not-a-context}"; } } # 381 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 void swap( fiber & other) noexcept { std::swap( fctx_, other.fctx_); } }; # 400 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber_fcontext.hpp" 3 4 inline void swap( fiber & l, fiber & r) noexcept { l.swap( r); } typedef fiber fiber_context; }} # 13 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/context/fiber.hpp" 2 3 4 # 42 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 2 3 4 # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 1 3 4 # 100 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/push_options.hpp" 3 4 #pragma GCC visibility push (default) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" #pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant" #pragma GCC diagnostic ignored "-Wimplicit-fallthrough" # 45 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 2 3 4 namespace boost { namespace asio { namespace detail { inline void spawned_thread_rethrow(void* ex) { if (*static_cast<exception_ptr*>(ex)) rethrow_exception(*static_cast<exception_ptr*>(ex)); } class spawned_coroutine_thread : public spawned_thread_base { public: typedef boost::coroutines::pull_coroutine<void> callee_type; typedef boost::coroutines::push_coroutine<void> caller_type; spawned_coroutine_thread(caller_type& caller) : caller_(caller), on_suspend_fn_(0), on_suspend_arg_(0) { } template <typename F> static spawned_thread_base* spawn(F&& f, const boost::coroutines::attributes& attributes, cancellation_slot parent_cancel_slot = cancellation_slot(), cancellation_state cancel_state = cancellation_state()) { spawned_coroutine_thread* spawned_thread = 0; callee_type callee(entry_point<typename decay<F>::type>( static_cast<F&&>(f), &spawned_thread), attributes); spawned_thread->callee_.swap(callee); spawned_thread->parent_cancellation_slot_ = parent_cancel_slot; spawned_thread->cancellation_state_ = cancel_state; return spawned_thread; } template <typename F> static spawned_thread_base* spawn(F&& f, cancellation_slot parent_cancel_slot = cancellation_slot(), cancellation_state cancel_state = cancellation_state()) { return spawn(static_cast<F&&>(f), boost::coroutines::attributes(), parent_cancel_slot, cancel_state); } void resume() { callee_(); if (on_suspend_fn_) { void (*fn)(void*) = on_suspend_fn_; void* arg = on_suspend_arg_; on_suspend_fn_ = 0; fn(arg); } } void suspend_with(void (*fn)(void*), void* arg) { if (throw_if_cancelled_) if (!!cancellation_state_.cancelled()) throw_error(boost::asio::error::operation_aborted, "yield"); has_context_switched_ = true; on_suspend_fn_ = fn; on_suspend_arg_ = arg; caller_(); } void destroy() { callee_type callee; callee.swap(callee_); if (terminal_) callee(); } private: template <typename Function> class entry_point { public: template <typename F> entry_point(F&& f, spawned_coroutine_thread** spawned_thread_out) : function_(static_cast<F&&>(f)), spawned_thread_out_(spawned_thread_out) { } void operator()(caller_type& caller) { Function function(static_cast<Function&&>(function_)); spawned_coroutine_thread spawned_thread(caller); *spawned_thread_out_ = &spawned_thread; spawned_thread_out_ = 0; spawned_thread.suspend(); try { function(&spawned_thread); spawned_thread.terminal_ = true; spawned_thread.suspend(); } catch (const boost::coroutines::detail::forced_unwind&) { throw; } catch (...) { exception_ptr ex = current_exception(); spawned_thread.terminal_ = true; spawned_thread.suspend_with(spawned_thread_rethrow, &ex); } } private: Function function_; spawned_coroutine_thread** spawned_thread_out_; }; caller_type& caller_; callee_type callee_; void (*on_suspend_fn_)(void*); void* on_suspend_arg_; }; class spawned_fiber_thread : public spawned_thread_base { public: typedef boost::context::fiber fiber_type; spawned_fiber_thread(fiber_type&& caller) : caller_(static_cast<fiber_type&&>(caller)), on_suspend_fn_(0), on_suspend_arg_(0) { } template <typename StackAllocator, typename F> static spawned_thread_base* spawn(allocator_arg_t, StackAllocator&& stack_allocator, F&& f, cancellation_slot parent_cancel_slot = cancellation_slot(), cancellation_state cancel_state = cancellation_state()) { spawned_fiber_thread* spawned_thread = 0; fiber_type callee(allocator_arg_t(), static_cast<StackAllocator&&>(stack_allocator), entry_point<typename decay<F>::type>( static_cast<F&&>(f), &spawned_thread)); callee = fiber_type(static_cast<fiber_type&&>(callee)).resume(); spawned_thread->callee_ = static_cast<fiber_type&&>(callee); spawned_thread->parent_cancellation_slot_ = parent_cancel_slot; spawned_thread->cancellation_state_ = cancel_state; return spawned_thread; } template <typename F> static spawned_thread_base* spawn(F&& f, cancellation_slot parent_cancel_slot = cancellation_slot(), cancellation_state cancel_state = cancellation_state()) { return spawn(allocator_arg_t(), boost::context::fixedsize_stack(), static_cast<F&&>(f), parent_cancel_slot, cancel_state); } void resume() { callee_ = fiber_type(static_cast<fiber_type&&>(callee_)).resume(); if (on_suspend_fn_) { void (*fn)(void*) = on_suspend_fn_; void* arg = on_suspend_arg_; on_suspend_fn_ = 0; fn(arg); } } void suspend_with(void (*fn)(void*), void* arg) { if (throw_if_cancelled_) if (!!cancellation_state_.cancelled()) throw_error(boost::asio::error::operation_aborted, "yield"); has_context_switched_ = true; on_suspend_fn_ = fn; on_suspend_arg_ = arg; caller_ = fiber_type(static_cast<fiber_type&&>(caller_)).resume(); } void destroy() { fiber_type callee = static_cast<fiber_type&&>(callee_); if (terminal_) fiber_type(static_cast<fiber_type&&>(callee)).resume(); } private: template <typename Function> class entry_point { public: template <typename F> entry_point(F&& f, spawned_fiber_thread** spawned_thread_out) : function_(static_cast<F&&>(f)), spawned_thread_out_(spawned_thread_out) { } fiber_type operator()(fiber_type&& caller) { Function function(static_cast<Function&&>(function_)); spawned_fiber_thread spawned_thread( static_cast<fiber_type&&>(caller)); *spawned_thread_out_ = &spawned_thread; spawned_thread_out_ = 0; spawned_thread.suspend(); try { function(&spawned_thread); spawned_thread.terminal_ = true; spawned_thread.suspend(); } catch (const boost::context::detail::forced_unwind&) { throw; } catch (...) { exception_ptr ex = current_exception(); spawned_thread.terminal_ = true; spawned_thread.suspend_with(spawned_thread_rethrow, &ex); } return static_cast<fiber_type&&>(spawned_thread.caller_); } private: Function function_; spawned_fiber_thread** spawned_thread_out_; }; fiber_type caller_; fiber_type callee_; void (*on_suspend_fn_)(void*); void* on_suspend_arg_; }; typedef spawned_fiber_thread default_spawned_thread_type; class spawned_thread_resumer { public: explicit spawned_thread_resumer(spawned_thread_base* spawned_thread) : spawned_thread_(spawned_thread) { } spawned_thread_resumer(spawned_thread_resumer&& other) noexcept : spawned_thread_(other.spawned_thread_) { other.spawned_thread_ = 0; } # 360 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 3 4 ~spawned_thread_resumer() { if (spawned_thread_) spawned_thread_->destroy(); } void operator()() { spawned_thread_->attach(&spawned_thread_); spawned_thread_->resume(); } private: spawned_thread_base* spawned_thread_; }; class spawned_thread_destroyer { public: explicit spawned_thread_destroyer(spawned_thread_base* spawned_thread) : spawned_thread_(spawned_thread) { spawned_thread->detach(); } spawned_thread_destroyer(spawned_thread_destroyer&& other) noexcept : spawned_thread_(other.spawned_thread_) { other.spawned_thread_ = 0; } # 411 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 3 4 ~spawned_thread_destroyer() { if (spawned_thread_) spawned_thread_->destroy(); } void operator()() { if (spawned_thread_) { spawned_thread_->destroy(); spawned_thread_ = 0; } } private: spawned_thread_base* spawned_thread_; }; template <typename Executor> class spawn_handler_base { public: typedef Executor executor_type; typedef cancellation_slot cancellation_slot_type; spawn_handler_base(const basic_yield_context<Executor>& yield) : yield_(yield), spawned_thread_(yield.spawned_thread_) { spawned_thread_->detach(); } spawn_handler_base(spawn_handler_base&& other) noexcept : yield_(other.yield_), spawned_thread_(other.spawned_thread_) { other.spawned_thread_ = 0; } # 470 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 3 4 ~spawn_handler_base() { if (spawned_thread_) (post)(yield_.executor_, spawned_thread_destroyer(spawned_thread_)); } executor_type get_executor() const noexcept { return yield_.executor_; } cancellation_slot_type get_cancellation_slot() const noexcept { return spawned_thread_->get_cancellation_slot(); } void resume() { spawned_thread_resumer resumer(spawned_thread_); spawned_thread_ = 0; resumer(); } protected: const basic_yield_context<Executor>& yield_; spawned_thread_base* spawned_thread_; }; template <typename Executor, typename Signature> class spawn_handler; template <typename Executor, typename R> class spawn_handler<Executor, R()> : public spawn_handler_base<Executor> { public: typedef void return_type; struct result_type {}; spawn_handler(const basic_yield_context<Executor>& yield, result_type&) : spawn_handler_base<Executor>(yield) { } void operator()() { this->resume(); } static return_type on_resume(result_type&) { } }; template <typename Executor, typename R> class spawn_handler<Executor, R(boost::system::error_code)> : public spawn_handler_base<Executor> { public: typedef void return_type; typedef boost::system::error_code* result_type; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } void operator()(boost::system::error_code ec) { if (this->yield_.ec_) { *this->yield_.ec_ = ec; result_ = 0; } else result_ = &ec; this->resume(); } static return_type on_resume(result_type& result) { if (result) throw_error(*result); } private: result_type& result_; }; template <typename Executor, typename R> class spawn_handler<Executor, R(exception_ptr)> : public spawn_handler_base<Executor> { public: typedef void return_type; typedef exception_ptr* result_type; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } void operator()(exception_ptr ex) { result_ = &ex; this->resume(); } static return_type on_resume(result_type& result) { if (result) rethrow_exception(*result); } private: result_type& result_; }; template <typename Executor, typename R, typename T> class spawn_handler<Executor, R(T)> : public spawn_handler_base<Executor> { public: typedef T return_type; typedef return_type* result_type; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } void operator()(T value) { result_ = &value; this->resume(); } static return_type on_resume(result_type& result) { return static_cast<return_type&&>(*result); } private: result_type& result_; }; template <typename Executor, typename R, typename T> class spawn_handler<Executor, R(boost::system::error_code, T)> : public spawn_handler_base<Executor> { public: typedef T return_type; struct result_type { boost::system::error_code* ec_; return_type* value_; }; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } void operator()(boost::system::error_code ec, T value) { if (this->yield_.ec_) { *this->yield_.ec_ = ec; result_.ec_ = 0; } else result_.ec_ = &ec; result_.value_ = &value; this->resume(); } static return_type on_resume(result_type& result) { if (result.ec_) throw_error(*result.ec_); return static_cast<return_type&&>(*result.value_); } private: result_type& result_; }; template <typename Executor, typename R, typename T> class spawn_handler<Executor, R(exception_ptr, T)> : public spawn_handler_base<Executor> { public: typedef T return_type; struct result_type { exception_ptr* ex_; return_type* value_; }; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } void operator()(exception_ptr ex, T value) { result_.ex_ = &ex; result_.value_ = &value; this->resume(); } static return_type on_resume(result_type& result) { if (result.ex_) rethrow_exception(*result.ex_); return static_cast<return_type&&>(*result.value_); } private: result_type& result_; }; template <typename Executor, typename R, typename... Ts> class spawn_handler<Executor, R(Ts...)> : public spawn_handler_base<Executor> { public: typedef std::tuple<Ts...> return_type; typedef return_type* result_type; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } template <typename... Args> void operator()(Args&&... args) { return_type value(static_cast<Args&&>(args)...); result_ = &value; this->resume(); } static return_type on_resume(result_type& result) { return static_cast<return_type&&>(*result); } private: result_type& result_; }; template <typename Executor, typename R, typename... Ts> class spawn_handler<Executor, R(boost::system::error_code, Ts...)> : public spawn_handler_base<Executor> { public: typedef std::tuple<Ts...> return_type; struct result_type { boost::system::error_code* ec_; return_type* value_; }; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } template <typename... Args> void operator()(boost::system::error_code ec, Args&&... args) { return_type value(static_cast<Args&&>(args)...); if (this->yield_.ec_) { *this->yield_.ec_ = ec; result_.ec_ = 0; } else result_.ec_ = &ec; result_.value_ = &value; this->resume(); } static return_type on_resume(result_type& result) { if (result.ec_) throw_error(*result.ec_); return static_cast<return_type&&>(*result.value_); } private: result_type& result_; }; template <typename Executor, typename R, typename... Ts> class spawn_handler<Executor, R(exception_ptr, Ts...)> : public spawn_handler_base<Executor> { public: typedef std::tuple<Ts...> return_type; struct result_type { exception_ptr* ex_; return_type* value_; }; spawn_handler(const basic_yield_context<Executor>& yield, result_type& result) : spawn_handler_base<Executor>(yield), result_(result) { } template <typename... Args> void operator()(exception_ptr ex, Args&&... args) { return_type value(static_cast<Args&&>(args)...); result_.ex_ = &ex; result_.value_ = &value; this->resume(); } static return_type on_resume(result_type& result) { if (result.ex_) rethrow_exception(*result.ex_); return static_cast<return_type&&>(*result.value_); } private: result_type& result_; }; template <typename Executor, typename Signature> inline bool asio_handler_is_continuation(spawn_handler<Executor, Signature>*) { return true; } } template <typename Executor, typename Signature> class async_result<basic_yield_context<Executor>, Signature> { public: typedef typename detail::spawn_handler<Executor, Signature> handler_type; typedef typename handler_type::return_type return_type; template <typename Initiation, typename... InitArgs> static return_type initiate(Initiation&& init, const basic_yield_context<Executor>& yield, InitArgs&&... init_args) { typename handler_type::result_type result = typename handler_type::result_type(); yield.spawned_thread_->suspend_with( [&]() { static_cast<Initiation&&>(init)( handler_type(yield, result), static_cast<InitArgs&&>(init_args)...); }); return handler_type::on_resume(result); } # 1001 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 3 4 }; namespace detail { template <typename Executor, typename Function, typename Handler> class spawn_entry_point { public: template <typename F, typename H> spawn_entry_point(const Executor& ex, F&& f, H&& h) : executor_(ex), function_(static_cast<F&&>(f)), handler_(static_cast<H&&>(h)), work_(handler_, executor_) { } void operator()(spawned_thread_base* spawned_thread) { const basic_yield_context<Executor> yield(spawned_thread, executor_); this->call(yield, void_type<typename result_of<Function( basic_yield_context<Executor>)>::type>()); } private: void call(const basic_yield_context<Executor>& yield, void_type<void>) { try { function_(yield); if (!yield.spawned_thread_->has_context_switched()) (post)(yield); detail::binder1<Handler, exception_ptr> handler(handler_, exception_ptr()); work_.complete(handler, handler.handler_); } catch (const boost::context::detail::forced_unwind&) { throw; } catch (const boost::coroutines::detail::forced_unwind&) { throw; } catch (...) { exception_ptr ex = current_exception(); if (!yield.spawned_thread_->has_context_switched()) (post)(yield); detail::binder1<Handler, exception_ptr> handler(handler_, ex); work_.complete(handler, handler.handler_); } } template <typename T> void call(const basic_yield_context<Executor>& yield, void_type<T>) { try { T result(function_(yield)); if (!yield.spawned_thread_->has_context_switched()) (post)(yield); detail::binder2<Handler, exception_ptr, T> handler(handler_, exception_ptr(), static_cast<T&&>(result)); work_.complete(handler, handler.handler_); } catch (const boost::context::detail::forced_unwind&) { throw; } catch (const boost::coroutines::detail::forced_unwind&) { throw; } catch (...) { exception_ptr ex = current_exception(); if (!yield.spawned_thread_->has_context_switched()) (post)(yield); detail::binder2<Handler, exception_ptr, T> handler(handler_, ex, T()); work_.complete(handler, handler.handler_); } } Executor executor_; Function function_; Handler handler_; handler_work<Handler, Executor> work_; }; struct spawn_cancellation_signal_emitter { cancellation_signal* signal_; cancellation_type_t type_; void operator()() { signal_->emit(type_); } }; template <typename Handler, typename Executor, typename = void> class spawn_cancellation_handler { public: spawn_cancellation_handler(const Handler&, const Executor& ex) : ex_(ex) { } cancellation_slot slot() { return signal_.slot(); } void operator()(cancellation_type_t type) { spawn_cancellation_signal_emitter emitter = { &signal_, type }; (dispatch)(ex_, emitter); } private: cancellation_signal signal_; Executor ex_; }; template <typename Handler, typename Executor> class spawn_cancellation_handler<Handler, Executor, typename enable_if< is_same< typename associated_executor<Handler, Executor>::asio_associated_executor_is_unspecialised, void >::value >::type> { public: spawn_cancellation_handler(const Handler&, const Executor&) { } cancellation_slot slot() { return signal_.slot(); } void operator()(cancellation_type_t type) { signal_.emit(type); } private: cancellation_signal signal_; }; template <typename Executor> class initiate_spawn { public: typedef Executor executor_type; explicit initiate_spawn(const executor_type& ex) : executor_(ex) { } executor_type get_executor() const noexcept { return executor_; } template <typename Handler, typename F> void operator()(Handler&& handler, F&& f) const { typedef typename decay<Handler>::type handler_type; typedef typename decay<F>::type function_type; typedef spawn_cancellation_handler< handler_type, Executor> cancel_handler_type; typename associated_cancellation_slot<handler_type>::type slot = boost::asio::get_associated_cancellation_slot(handler); cancel_handler_type* cancel_handler = slot.is_connected() ? &slot.template emplace<cancel_handler_type>(handler, executor_) : 0; cancellation_slot proxy_slot( cancel_handler ? cancel_handler->slot() : cancellation_slot()); cancellation_state cancel_state(proxy_slot); (dispatch)(executor_, spawned_thread_resumer( default_spawned_thread_type::spawn( spawn_entry_point<Executor, function_type, handler_type>( executor_, static_cast<F&&>(f), static_cast<Handler&&>(handler)), proxy_slot, cancel_state))); } template <typename Handler, typename StackAllocator, typename F> void operator()(Handler&& handler, allocator_arg_t, StackAllocator&& stack_allocator, F&& f) const { typedef typename decay<Handler>::type handler_type; typedef typename decay<F>::type function_type; typedef spawn_cancellation_handler< handler_type, Executor> cancel_handler_type; typename associated_cancellation_slot<handler_type>::type slot = boost::asio::get_associated_cancellation_slot(handler); cancel_handler_type* cancel_handler = slot.is_connected() ? &slot.template emplace<cancel_handler_type>(handler, executor_) : 0; cancellation_slot proxy_slot( cancel_handler ? cancel_handler->slot() : cancellation_slot()); cancellation_state cancel_state(proxy_slot); (dispatch)(executor_, spawned_thread_resumer( spawned_fiber_thread::spawn(allocator_arg_t(), static_cast<StackAllocator&&>(stack_allocator), spawn_entry_point<Executor, function_type, handler_type>( executor_, static_cast<F&&>(f), static_cast<Handler&&>(handler)), proxy_slot, cancel_state))); } private: executor_type executor_; }; } template <typename Executor, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken> inline auto spawn(const Executor& ex, F&& function, CompletionToken&& token, typename constraint< !is_same< typename decay<CompletionToken>::type, boost::coroutines::attributes >::value >::type, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type) { return async_initiate<CompletionToken, typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type>( detail::initiate_spawn<Executor>(ex), token, static_cast<F&&>(function)); } template <typename ExecutionContext, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context< typename ExecutionContext::executor_type>)>::type>::type> CompletionToken> inline auto spawn(ExecutionContext& ctx, F&& function, CompletionToken&& token, typename constraint< !is_same< typename decay<CompletionToken>::type, boost::coroutines::attributes >::value >::type, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type) { return (spawn)(ctx.get_executor(), static_cast<F&&>(function), static_cast<CompletionToken&&>(token)); } template <typename Executor, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken> inline auto spawn(const basic_yield_context<Executor>& ctx, F&& function, CompletionToken&& token, typename constraint< !is_same< typename decay<CompletionToken>::type, boost::coroutines::attributes >::value >::type, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type) { return (spawn)(ctx.get_executor(), static_cast<F&&>(function), static_cast<CompletionToken&&>(token)); } template <typename Executor, typename StackAllocator, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken> inline auto spawn(const Executor& ex, allocator_arg_t, StackAllocator&& stack_allocator, F&& function, CompletionToken&& token, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type) { return async_initiate<CompletionToken, typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type>( detail::initiate_spawn<Executor>(ex), token, allocator_arg_t(), static_cast<StackAllocator&&>(stack_allocator), static_cast<F&&>(function)); } template <typename ExecutionContext, typename StackAllocator, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context< typename ExecutionContext::executor_type>)>::type>::type> CompletionToken> inline auto spawn(ExecutionContext& ctx, allocator_arg_t, StackAllocator&& stack_allocator, F&& function, CompletionToken&& token, typename constraint< is_convertible<ExecutionContext&, execution_context&>::value >::type) # 1427 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 3 4 { return (spawn)(ctx.get_executor(), allocator_arg_t(), static_cast<StackAllocator&&>(stack_allocator), static_cast<F&&>(function), static_cast<CompletionToken&&>(token)); } template <typename Executor, typename StackAllocator, typename F, ::boost::asio::completion_token_for<typename detail::spawn_signature< typename result_of<F(basic_yield_context<Executor>)>::type>::type> CompletionToken> inline auto spawn(const basic_yield_context<Executor>& ctx, allocator_arg_t, StackAllocator&& stack_allocator, F&& function, CompletionToken&& token, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type) { return (spawn)(ctx.get_executor(), allocator_arg_t(), static_cast<StackAllocator&&>(stack_allocator), static_cast<F&&>(function), static_cast<CompletionToken&&>(token)); } namespace detail { template <typename Executor, typename Function, typename Handler> class old_spawn_entry_point { public: template <typename F, typename H> old_spawn_entry_point(const Executor& ex, F&& f, H&& h) : executor_(ex), function_(static_cast<F&&>(f)), handler_(static_cast<H&&>(h)) { } void operator()(spawned_thread_base* spawned_thread) { const basic_yield_context<Executor> yield(spawned_thread, executor_); this->call(yield, void_type<typename result_of<Function( basic_yield_context<Executor>)>::type>()); } private: void call(const basic_yield_context<Executor>& yield, void_type<void>) { function_(yield); static_cast<Handler&&>(handler_)(); } template <typename T> void call(const basic_yield_context<Executor>& yield, void_type<T>) { static_cast<Handler&&>(handler_)(function_(yield)); } Executor executor_; Function function_; Handler handler_; }; inline void default_spawn_handler() {} } template <typename Function> inline void spawn(Function&& function, const boost::coroutines::attributes& attributes) { typedef typename decay<Function>::type function_type; typename associated_executor<function_type>::type ex( (get_associated_executor)(function)); boost::asio::spawn(ex, static_cast<Function&&>(function), attributes); } template <typename Handler, typename Function> void spawn(Handler&& handler, Function&& function, const boost::coroutines::attributes& attributes, typename constraint< !is_executor<typename decay<Handler>::type>::value && !execution::is_executor<typename decay<Handler>::type>::value && !is_convertible<Handler&, execution_context&>::value>::type) { typedef typename decay<Handler>::type handler_type; typedef typename decay<Function>::type function_type; typedef typename associated_executor<handler_type>::type executor_type; executor_type ex((get_associated_executor)(handler)); (dispatch)(ex, detail::spawned_thread_resumer( detail::spawned_coroutine_thread::spawn( detail::old_spawn_entry_point<executor_type, function_type, void (*)()>( ex, static_cast<Function&&>(function), &detail::default_spawn_handler), attributes))); } template <typename Executor, typename Function> void spawn(basic_yield_context<Executor> ctx, Function&& function, const boost::coroutines::attributes& attributes) { typedef typename decay<Function>::type function_type; (dispatch)(ctx.get_executor(), detail::spawned_thread_resumer( detail::spawned_coroutine_thread::spawn( detail::old_spawn_entry_point<Executor, function_type, void (*)()>(ctx.get_executor(), static_cast<Function&&>(function), &detail::default_spawn_handler), attributes))); } template <typename Function, typename Executor> inline void spawn(const Executor& ex, Function&& function, const boost::coroutines::attributes& attributes, typename constraint< is_executor<Executor>::value || execution::is_executor<Executor>::value >::type) { boost::asio::spawn(boost::asio::strand<Executor>(ex), static_cast<Function&&>(function), attributes); } template <typename Function, typename Executor> inline void spawn(const strand<Executor>& ex, Function&& function, const boost::coroutines::attributes& attributes) { boost::asio::spawn(boost::asio::bind_executor( ex, &detail::default_spawn_handler), static_cast<Function&&>(function), attributes); } template <typename Function> inline void spawn(const boost::asio::io_context::strand& s, Function&& function, const boost::coroutines::attributes& attributes) { boost::asio::spawn(boost::asio::bind_executor( s, &detail::default_spawn_handler), static_cast<Function&&>(function), attributes); } template <typename Function, typename ExecutionContext> inline void spawn(ExecutionContext& ctx, Function&& function, const boost::coroutines::attributes& attributes, typename constraint<is_convertible< ExecutionContext&, execution_context&>::value>::type) { boost::asio::spawn(ctx.get_executor(), static_cast<Function&&>(function), attributes); } } } # 1 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 1 3 4 # 82 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/detail/pop_options.hpp" 3 4 #pragma GCC visibility pop #pragma GCC diagnostic pop # 1617 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/impl/spawn.hpp" 2 3 4 # 907 "/home/lpresearch/.conan/data/boost/1.83.0/_/_/package/8cc3305c27e5ff838d1c7590662e309638310dfc/include/boost/asio/spawn.hpp" 2 3 4 # 251 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 1 3 4 # 133 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 namespace nonstd { using std::in_place; using std::in_place_type; using std::in_place_index; using std::in_place_t; using std::in_place_type_t; using std::in_place_index_t; # 150 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 } # 224 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 # 1 "/usr/include/c++/13/cassert" 1 3 4 # 41 "/usr/include/c++/13/cassert" 3 4 # 42 "/usr/include/c++/13/cassert" 3 # 1 "/usr/include/assert.h" 1 3 4 # 45 "/usr/include/c++/13/cassert" 2 3 # 225 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 2 3 4 # 334 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 #pragma GCC diagnostic push # 357 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 namespace nonstd { namespace expected_lite { namespace std17 { using std::conjunction; using std::is_swappable; using std::is_nothrow_swappable; # 426 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 } namespace std20 { using std::remove_cvref; # 446 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 } template< typename T, typename E > class expected; namespace detail { template< typename T, typename E > class storage_t_impl { template< typename, typename > friend class nonstd::expected_lite::expected; public: using value_type = T; using error_type = E; storage_t_impl() {} ~storage_t_impl() {} explicit storage_t_impl( bool has_value ) : m_has_value( has_value ) {} void construct_value( value_type const & e ) { new( &m_value ) value_type( e ); } void construct_value( value_type && e ) { new( &m_value ) value_type( std::move( e ) ); } template< class... Args > void emplace_value( Args&&... args ) { new( &m_value ) value_type( std::forward<Args>(args)...); } template< class U, class... Args > void emplace_value( std::initializer_list<U> il, Args&&... args ) { new( &m_value ) value_type( il, std::forward<Args>(args)... ); } void destruct_value() { m_value.~value_type(); } void construct_error( error_type const & e ) { new( &m_error ) error_type( e ); } void construct_error( error_type && e ) { new( &m_error ) error_type( std::move( e ) ); } template< class... Args > void emplace_error( Args&&... args ) { new( &m_error ) error_type( std::forward<Args>(args)...); } template< class U, class... Args > void emplace_error( std::initializer_list<U> il, Args&&... args ) { new( &m_error ) error_type( il, std::forward<Args>(args)... ); } void destruct_error() { m_error.~error_type(); } constexpr value_type const & value() const & { return m_value; } value_type & value() & { return m_value; } constexpr value_type const && value() const && { return std::move( m_value ); } constexpr value_type && value() && { return std::move( m_value ); } value_type const * value_ptr() const { return &m_value; } value_type * value_ptr() { return &m_value; } error_type const & error() const & { return m_error; } error_type & error() & { return m_error; } constexpr error_type const && error() const && { return std::move( m_error ); } constexpr error_type && error() && { return std::move( m_error ); } bool has_value() const { return m_has_value; } void set_has_value( bool v ) { m_has_value = v; } private: union { value_type m_value; error_type m_error; }; bool m_has_value = false; }; template< typename E > struct storage_t_impl<void, E> { template< typename, typename > friend class nonstd::expected_lite::expected; public: using value_type = void; using error_type = E; storage_t_impl() {} ~storage_t_impl() {} explicit storage_t_impl( bool has_value ) : m_has_value( has_value ) {} void construct_error( error_type const & e ) { new( &m_error ) error_type( e ); } void construct_error( error_type && e ) { new( &m_error ) error_type( std::move( e ) ); } template< class... Args > void emplace_error( Args&&... args ) { new( &m_error ) error_type( std::forward<Args>(args)...); } template< class U, class... Args > void emplace_error( std::initializer_list<U> il, Args&&... args ) { new( &m_error ) error_type( il, std::forward<Args>(args)... ); } void destruct_error() { m_error.~error_type(); } error_type const & error() const & { return m_error; } error_type & error() & { return m_error; } constexpr error_type const && error() const && { return std::move( m_error ); } constexpr error_type && error() && { return std::move( m_error ); } bool has_value() const { return m_has_value; } void set_has_value( bool v ) { m_has_value = v; } private: union { char m_dummy; error_type m_error; }; bool m_has_value = false; }; template< typename T, typename E, bool isConstructable, bool isMoveable > class storage_t { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<T, E>( has_value ) {} storage_t( storage_t const & other ) = delete; storage_t( storage_t && other ) = delete; }; template< typename T, typename E > class storage_t<T, E, true, true> : public storage_t_impl<T, E> { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<T, E>( has_value ) {} storage_t( storage_t const & other ) : storage_t_impl<T, E>( other.has_value() ) { if ( this->has_value() ) this->construct_value( other.value() ); else this->construct_error( other.error() ); } storage_t(storage_t && other ) : storage_t_impl<T, E>( other.has_value() ) { if ( this->has_value() ) this->construct_value( std::move( other.value() ) ); else this->construct_error( std::move( other.error() ) ); } }; template< typename E > class storage_t<void, E, true, true> : public storage_t_impl<void, E> { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<void, E>( has_value ) {} storage_t( storage_t const & other ) : storage_t_impl<void, E>( other.has_value() ) { if ( this->has_value() ) ; else this->construct_error( other.error() ); } storage_t(storage_t && other ) : storage_t_impl<void, E>( other.has_value() ) { if ( this->has_value() ) ; else this->construct_error( std::move( other.error() ) ); } }; template< typename T, typename E > class storage_t<T, E, true, false> : public storage_t_impl<T, E> { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<T, E>( has_value ) {} storage_t( storage_t const & other ) : storage_t_impl<T, E>(other.has_value()) { if ( this->has_value() ) this->construct_value( other.value() ); else this->construct_error( other.error() ); } storage_t( storage_t && other ) = delete; }; template< typename E > class storage_t<void, E, true, false> : public storage_t_impl<void, E> { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<void, E>( has_value ) {} storage_t( storage_t const & other ) : storage_t_impl<void, E>(other.has_value()) { if ( this->has_value() ) ; else this->construct_error( other.error() ); } storage_t( storage_t && other ) = delete; }; template< typename T, typename E > class storage_t<T, E, false, true> : public storage_t_impl<T, E> { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<T, E>( has_value ) {} storage_t( storage_t const & other ) = delete; storage_t( storage_t && other ) : storage_t_impl<T, E>( other.has_value() ) { if ( this->has_value() ) this->construct_value( std::move( other.value() ) ); else this->construct_error( std::move( other.error() ) ); } }; template< typename E > class storage_t<void, E, false, true> : public storage_t_impl<void, E> { public: storage_t() = default; ~storage_t() = default; explicit storage_t( bool has_value ) : storage_t_impl<void, E>( has_value ) {} storage_t( storage_t const & other ) = delete; storage_t( storage_t && other ) : storage_t_impl<void, E>( other.has_value() ) { if ( this->has_value() ) ; else this->construct_error( std::move( other.error() ) ); } }; } template< typename E > class unexpected_type { public: using error_type = E; constexpr unexpected_type( unexpected_type const & ) = default; constexpr unexpected_type( unexpected_type && ) = default; template< typename... Args , typename std::enable_if< (std::is_constructible<E, Args&&...>::value), int >::type = 0 > constexpr explicit unexpected_type( std::in_place_t, Args &&... args ) : m_error( std::forward<Args>( args )...) {} template< typename U, typename... Args , typename std::enable_if< (std::is_constructible<E, std::initializer_list<U>, Args&&...>::value), int >::type = 0 > constexpr explicit unexpected_type( std::in_place_t, std::initializer_list<U> il, Args &&... args ) : m_error( il, std::forward<Args>( args )...) {} template< typename E2 , typename std::enable_if< (std::is_constructible<E,E2>::value && !std::is_same< typename std20::remove_cvref<E2>::type, std::in_place_t >::value && !std::is_same< typename std20::remove_cvref<E2>::type, unexpected_type >::value), int >::type = 0 > constexpr explicit unexpected_type( E2 && error ) : m_error( std::forward<E2>( error ) ) {} template< typename E2 , typename std::enable_if< (std::is_constructible< E, E2>::value && !std::is_constructible<E, unexpected_type<E2> & >::value && !std::is_constructible<E, unexpected_type<E2> >::value && !std::is_constructible<E, unexpected_type<E2> const & >::value && !std::is_constructible<E, unexpected_type<E2> const >::value && !std::is_convertible< unexpected_type<E2> &, E>::value && !std::is_convertible< unexpected_type<E2> , E>::value && !std::is_convertible< unexpected_type<E2> const &, E>::value && !std::is_convertible< unexpected_type<E2> const , E>::value && !std::is_convertible< E2 const &, E>::value), int >::type = 0 # 899 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr explicit unexpected_type( unexpected_type<E2> const & error ) : m_error( E{ error.value() } ) {} template< typename E2 , typename std::enable_if< (std::is_constructible< E, E2>::value && !std::is_constructible<E, unexpected_type<E2> & >::value && !std::is_constructible<E, unexpected_type<E2> >::value && !std::is_constructible<E, unexpected_type<E2> const & >::value && !std::is_constructible<E, unexpected_type<E2> const >::value && !std::is_convertible< unexpected_type<E2> &, E>::value && !std::is_convertible< unexpected_type<E2> , E>::value && !std::is_convertible< unexpected_type<E2> const &, E>::value && !std::is_convertible< unexpected_type<E2> const , E>::value && std::is_convertible< E2 const &, E>::value), int >::type = 0 # 917 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr unexpected_type( unexpected_type<E2> const & error ) : m_error( error.value() ) {} template< typename E2 , typename std::enable_if< (std::is_constructible< E, E2>::value && !std::is_constructible<E, unexpected_type<E2> & >::value && !std::is_constructible<E, unexpected_type<E2> >::value && !std::is_constructible<E, unexpected_type<E2> const & >::value && !std::is_constructible<E, unexpected_type<E2> const >::value && !std::is_convertible< unexpected_type<E2> &, E>::value && !std::is_convertible< unexpected_type<E2> , E>::value && !std::is_convertible< unexpected_type<E2> const &, E>::value && !std::is_convertible< unexpected_type<E2> const , E>::value && !std::is_convertible< E2 const &, E>::value), int >::type = 0 # 935 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr explicit unexpected_type( unexpected_type<E2> && error ) : m_error( E{ std::move( error.value() ) } ) {} template< typename E2 , typename std::enable_if< (std::is_constructible< E, E2>::value && !std::is_constructible<E, unexpected_type<E2> & >::value && !std::is_constructible<E, unexpected_type<E2> >::value && !std::is_constructible<E, unexpected_type<E2> const & >::value && !std::is_constructible<E, unexpected_type<E2> const >::value && !std::is_convertible< unexpected_type<E2> &, E>::value && !std::is_convertible< unexpected_type<E2> , E>::value && !std::is_convertible< unexpected_type<E2> const &, E>::value && !std::is_convertible< unexpected_type<E2> const , E>::value && std::is_convertible< E2 const &, E>::value), int >::type = 0 # 953 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr unexpected_type( unexpected_type<E2> && error ) : m_error( std::move( error.value() ) ) {} constexpr unexpected_type& operator=( unexpected_type const & ) = default; constexpr unexpected_type& operator=( unexpected_type && ) = default; template< typename E2 = E > constexpr unexpected_type & operator=( unexpected_type<E2> const & other ) { unexpected_type{ other.value() }.swap( *this ); return *this; } template< typename E2 = E > constexpr unexpected_type & operator=( unexpected_type<E2> && other ) { unexpected_type{ std::move( other.value() ) }.swap( *this ); return *this; } constexpr E & value() & noexcept { return m_error; } constexpr E const & value() const & noexcept { return m_error; } constexpr E && value() && noexcept { return std::move( m_error ); } constexpr E const && value() const && noexcept { return std::move( m_error ); } template< typename U=E > typename std::enable_if< (std17::is_swappable<U>::value), void>::type swap( unexpected_type & other ) noexcept ( std17::is_nothrow_swappable<U>::value ) { using std::swap; swap( m_error, other.m_error ); } private: error_type m_error; }; template< typename E > unexpected_type( E ) -> unexpected_type< E >; # 1081 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename E1, typename E2 > constexpr bool operator==( unexpected_type<E1> const & x, unexpected_type<E2> const & y ) { return x.value() == y.value(); } template< typename E1, typename E2 > constexpr bool operator!=( unexpected_type<E1> const & x, unexpected_type<E2> const & y ) { return ! ( x == y ); } # 1123 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename E , typename std::enable_if< (std17::is_swappable<E>::value), int >::type = 0 > void swap( unexpected_type<E> & x, unexpected_type<E> & y) noexcept ( noexcept ( x.swap(y) ) ) { x.swap( y ); } # 1175 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename E> constexpr auto make_unexpected( E && value ) -> unexpected_type< typename std::decay<E>::type > { return unexpected_type< typename std::decay<E>::type >( std::forward<E>(value) ); } # 1194 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename E > class bad_expected_access; template <> class bad_expected_access< void > : public std::exception { public: explicit bad_expected_access() : std::exception() {} }; template< typename E > class bad_expected_access : public bad_expected_access< void > { public: using error_type = E; explicit bad_expected_access( error_type error ) : m_error( error ) {} virtual char const * what() const noexcept override { return "bad_expected_access"; } constexpr error_type & error() & { return m_error; } constexpr error_type const & error() const & { return m_error; } constexpr error_type && error() && { return std::move( m_error ); } constexpr error_type const && error() const && { return std::move( m_error ); } private: error_type m_error; }; struct unexpect_t{}; using in_place_unexpected_t = unexpect_t; inline constexpr unexpect_t unexpect{}; inline constexpr unexpect_t in_place_unexpected{}; # 1314 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename Error > struct error_traits { static void rethrow( Error const & e ) { throw bad_expected_access<Error>{ e }; } }; template<> struct error_traits< std::exception_ptr > { static void rethrow( std::exception_ptr const & e ) { std::rethrow_exception( e ); } }; template<> struct error_traits< std::error_code > { static void rethrow( std::error_code const & e ) { throw std::system_error( e ); } }; } using expected_lite::unexpected_type; namespace expected_lite { template< typename T, typename E > class expected { private: template< typename, typename > friend class expected; public: using value_type = T; using error_type = E; using unexpected_type = nonstd::unexpected_type<E>; template< typename U > struct rebind { using type = expected<U, error_type>; }; template< bool B = (std::is_default_constructible<T>::value), typename std::enable_if<B, int>::type = 0 > constexpr expected() : contained( true ) { contained.construct_value( value_type() ); } constexpr expected( expected const & ) = default; constexpr expected( expected && ) = default; template< typename U, typename G , typename std::enable_if< (std::is_constructible< T, U const &>::value && std::is_constructible<E, G const &>::value && !std::is_constructible<T, expected<U, G> & >::value && !std::is_constructible<T, expected<U, G> && >::value && !std::is_constructible<T, expected<U, G> const & >::value && !std::is_constructible<T, expected<U, G> const && >::value && !std::is_convertible< expected<U, G> & , T>::value && !std::is_convertible< expected<U, G> &&, T>::value && !std::is_convertible< expected<U, G> const & , T>::value && !std::is_convertible< expected<U, G> const &&, T>::value && (!std::is_convertible<U const &, T>::value || !std::is_convertible<G const &, E>::value )), int >::type = 0 # 1403 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr explicit expected( expected<U, G> const & other ) : contained( other.has_value() ) { if ( has_value() ) contained.construct_value( T{ other.contained.value() } ); else contained.construct_error( E{ other.contained.error() } ); } template< typename U, typename G , typename std::enable_if< (std::is_constructible< T, U const &>::value && std::is_constructible<E, G const &>::value && !std::is_constructible<T, expected<U, G> & >::value && !std::is_constructible<T, expected<U, G> && >::value && !std::is_constructible<T, expected<U, G> const & >::value && !std::is_constructible<T, expected<U, G> const && >::value && !std::is_convertible< expected<U, G> & , T>::value && !std::is_convertible< expected<U, G> &&, T>::value && !std::is_convertible< expected<U, G> const &, T>::value && !std::is_convertible< expected<U, G> const &&, T>::value && !(!std::is_convertible<U const &, T>::value || !std::is_convertible<G const &, E>::value )), int >::type = 0 # 1425 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr expected( expected<U, G> const & other ) : contained( other.has_value() ) { if ( has_value() ) contained.construct_value( other.contained.value() ); else contained.construct_error( other.contained.error() ); } template< typename U, typename G , typename std::enable_if< (std::is_constructible< T, U>::value && std::is_constructible<E, G>::value && !std::is_constructible<T, expected<U, G> & >::value && !std::is_constructible<T, expected<U, G> && >::value && !std::is_constructible<T, expected<U, G> const & >::value && !std::is_constructible<T, expected<U, G> const && >::value && !std::is_convertible< expected<U, G> & , T>::value && !std::is_convertible< expected<U, G> &&, T>::value && !std::is_convertible< expected<U, G> const & , T>::value && !std::is_convertible< expected<U, G> const &&, T>::value && (!std::is_convertible<U, T>::value || !std::is_convertible<G, E>::value )), int >::type = 0 # 1447 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr explicit expected( expected<U, G> && other ) : contained( other.has_value() ) { if ( has_value() ) contained.construct_value( T{ std::move( other.contained.value() ) } ); else contained.construct_error( E{ std::move( other.contained.error() ) } ); } template< typename U, typename G , typename std::enable_if< (std::is_constructible< T, U>::value && std::is_constructible<E, G>::value && !std::is_constructible<T, expected<U, G> & >::value && !std::is_constructible<T, expected<U, G> && >::value && !std::is_constructible<T, expected<U, G> const & >::value && !std::is_constructible<T, expected<U, G> const && >::value && !std::is_convertible< expected<U, G> & , T>::value && !std::is_convertible< expected<U, G> &&, T>::value && !std::is_convertible< expected<U, G> const & , T>::value && !std::is_convertible< expected<U, G> const &&, T>::value && !(!std::is_convertible<U, T>::value || !std::is_convertible<G, E>::value )), int >::type = 0 # 1469 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 > constexpr expected( expected<U, G> && other ) : contained( other.has_value() ) { if ( has_value() ) contained.construct_value( std::move( other.contained.value() ) ); else contained.construct_error( std::move( other.contained.error() ) ); } template< typename U = T , typename std::enable_if< (std::is_copy_constructible<U>::value), int >::type = 0 > constexpr expected( value_type const & value ) : contained( true ) { contained.construct_value( value ); } template< typename U = T , typename std::enable_if< (std::is_constructible<T,U&&>::value && !std::is_same<typename std20::remove_cvref<U>::type, std::in_place_t>::value && !std::is_same< expected<T,E> , typename std20::remove_cvref<U>::type>::value && !std::is_same<nonstd::unexpected_type<E>, typename std20::remove_cvref<U>::type>::value && !std::is_convertible<U&&,T>::value), int >::type = 0 > constexpr explicit expected( U && value ) noexcept ( std::is_nothrow_move_constructible<U>::value && std::is_nothrow_move_constructible<E>::value ) : contained( true ) { contained.construct_value( T{ std::forward<U>( value ) } ); } template< typename U = T , typename std::enable_if< (std::is_constructible<T,U&&>::value && !std::is_same<typename std20::remove_cvref<U>::type, std::in_place_t>::value && !std::is_same< expected<T,E> , typename std20::remove_cvref<U>::type>::value && !std::is_same<nonstd::unexpected_type<E>, typename std20::remove_cvref<U>::type>::value && std::is_convertible<U&&,T>::value), int >::type = 0 > constexpr expected( U && value ) noexcept ( std::is_nothrow_move_constructible<U>::value && std::is_nothrow_move_constructible<E>::value ) : contained( true ) { contained.construct_value( std::forward<U>( value ) ); } template< typename G = E , typename std::enable_if< (std::is_constructible<E, G const & >::value && !std::is_convertible< G const &, E>::value), int >::type = 0 > constexpr explicit expected( nonstd::unexpected_type<G> const & error ) : contained( false ) { contained.construct_error( E{ error.value() } ); } template< typename G = E , typename std::enable_if< (std::is_constructible<E, G const & >::value && std::is_convertible< G const &, E>::value), int >::type = 0 > constexpr expected( nonstd::unexpected_type<G> const & error ) : contained( false ) { contained.construct_error( error.value() ); } template< typename G = E , typename std::enable_if< (std::is_constructible<E, G&& >::value && !std::is_convertible< G&&, E>::value), int >::type = 0 > constexpr explicit expected( nonstd::unexpected_type<G> && error ) : contained( false ) { contained.construct_error( E{ std::move( error.value() ) } ); } template< typename G = E , typename std::enable_if< (std::is_constructible<E, G&& >::value && std::is_convertible< G&&, E>::value), int >::type = 0 > constexpr expected( nonstd::unexpected_type<G> && error ) : contained( false ) { contained.construct_error( std::move( error.value() ) ); } template< typename... Args , typename std::enable_if< (std::is_constructible<T, Args&&...>::value), int >::type = 0 > constexpr explicit expected( std::in_place_t, Args&&... args ) : contained( true ) { contained.emplace_value( std::forward<Args>( args )... ); } template< typename U, typename... Args , typename std::enable_if< (std::is_constructible<T, std::initializer_list<U>, Args&&...>::value), int >::type = 0 > constexpr explicit expected( std::in_place_t, std::initializer_list<U> il, Args&&... args ) : contained( true ) { contained.emplace_value( il, std::forward<Args>( args )... ); } template< typename... Args , typename std::enable_if< (std::is_constructible<E, Args&&...>::value), int >::type = 0 > constexpr explicit expected( unexpect_t, Args&&... args ) : contained( false ) { contained.emplace_error( std::forward<Args>( args )... ); } template< typename U, typename... Args , typename std::enable_if< (std::is_constructible<E, std::initializer_list<U>, Args&&...>::value), int >::type = 0 > constexpr explicit expected( unexpect_t, std::initializer_list<U> il, Args&&... args ) : contained( false ) { contained.emplace_error( il, std::forward<Args>( args )... ); } ~expected() { if ( has_value() ) contained.destruct_value(); else contained.destruct_error(); } expected & operator=( expected const & other ) { expected( other ).swap( *this ); return *this; } expected & operator=( expected && other ) noexcept ( std::is_nothrow_move_constructible< T>::value && std::is_nothrow_move_assignable< T>::value && std::is_nothrow_move_constructible<E>::value && std::is_nothrow_move_assignable< E>::value ) { expected( std::move( other ) ).swap( *this ); return *this; } template< typename U , typename std::enable_if< (!std::is_same<expected<T,E>, typename std20::remove_cvref<U>::type>::value && std17::conjunction<std::is_scalar<T>, std::is_same<T, std::decay<U>> >::value && std::is_constructible<T ,U>::value && std::is_assignable< T&,U>::value && std::is_nothrow_move_constructible<E>::value), int >::type = 0 > expected & operator=( U && value ) { expected( std::forward<U>( value ) ).swap( *this ); return *this; } template< typename G = E , typename std::enable_if< (std::is_constructible<E, G const&>::value && std::is_copy_constructible<G>::value && std::is_copy_assignable<G>::value), int >::type = 0 > expected & operator=( nonstd::unexpected_type<G> const & error ) { expected( unexpect, error.value() ).swap( *this ); return *this; } template< typename G = E , typename std::enable_if< (std::is_constructible<E, G&&>::value && std::is_move_constructible<G>::value && std::is_move_assignable<G>::value), int >::type = 0 > expected & operator=( nonstd::unexpected_type<G> && error ) { expected( unexpect, std::move( error.value() ) ).swap( *this ); return *this; } template< typename... Args , typename std::enable_if< (std::is_nothrow_constructible<T, Args&&...>::value), int >::type = 0 > value_type & emplace( Args &&... args ) { expected( std::in_place_t{}, std::forward<Args>(args)... ).swap( *this ); return value(); } template< typename U, typename... Args , typename std::enable_if< (std::is_nothrow_constructible<T, std::initializer_list<U>&, Args&&...>::value), int >::type = 0 > value_type & emplace( std::initializer_list<U> il, Args &&... args ) { expected( std::in_place_t{}, il, std::forward<Args>(args)... ).swap( *this ); return value(); } template< typename U=T, typename G=E > typename std::enable_if< (std17::is_swappable< U>::value && std17::is_swappable<G>::value && ( std::is_move_constructible<U>::value || std::is_move_constructible<G>::value )), void>::type swap( expected & other ) noexcept ( std::is_nothrow_move_constructible<T>::value && std17::is_nothrow_swappable<T&>::value && std::is_nothrow_move_constructible<E>::value && std17::is_nothrow_swappable<E&>::value ) { using std::swap; if ( bool(*this) && bool(other) ) { swap( contained.value(), other.contained.value() ); } else if ( ! bool(*this) && ! bool(other) ) { swap( contained.error(), other.contained.error() ); } else if ( bool(*this) && ! bool(other) ) { error_type t( std::move( other.error() ) ); other.contained.destruct_error(); other.contained.construct_value( std::move( contained.value() ) ); contained.destruct_value(); contained.construct_error( std::move( t ) ); bool has_value = contained.has_value(); bool other_has_value = other.has_value(); other.contained.set_has_value(has_value); contained.set_has_value(other_has_value); } else if ( ! bool(*this) && bool(other) ) { other.swap( *this ); } } constexpr value_type const * operator ->() const { return (static_cast <bool> (has_value()) ? void (0) : __assert_fail ("has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1752, __extension__ __PRETTY_FUNCTION__)), contained.value_ptr(); } value_type * operator ->() { return (static_cast <bool> (has_value()) ? void (0) : __assert_fail ("has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1757, __extension__ __PRETTY_FUNCTION__)), contained.value_ptr(); } constexpr value_type const & operator *() const & { return (static_cast <bool> (has_value()) ? void (0) : __assert_fail ("has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1762, __extension__ __PRETTY_FUNCTION__)), contained.value(); } value_type & operator *() & { return (static_cast <bool> (has_value()) ? void (0) : __assert_fail ("has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1767, __extension__ __PRETTY_FUNCTION__)), contained.value(); } constexpr value_type const && operator *() const && { return std::move( ( (static_cast <bool> (has_value()) ? void (0) : __assert_fail ("has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1774, __extension__ __PRETTY_FUNCTION__)), contained.value() ) ); } constexpr value_type && operator *() && { return std::move( ( (static_cast <bool> (has_value()) ? void (0) : __assert_fail ("has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1779, __extension__ __PRETTY_FUNCTION__)), contained.value() ) ); } constexpr explicit operator bool() const noexcept { return has_value(); } constexpr bool has_value() const noexcept { return contained.has_value(); } constexpr value_type const & value() const & { return has_value() ? ( contained.value() ) : ( error_traits<error_type>::rethrow( contained.error() ), contained.value() ); } value_type & value() & { return has_value() ? ( contained.value() ) : ( error_traits<error_type>::rethrow( contained.error() ), contained.value() ); } constexpr value_type const && value() const && { return std::move( has_value() ? ( contained.value() ) : ( error_traits<error_type>::rethrow( contained.error() ), contained.value() ) ); } constexpr value_type && value() && { return std::move( has_value() ? ( contained.value() ) : ( error_traits<error_type>::rethrow( contained.error() ), contained.value() ) ); } constexpr error_type const & error() const & { return (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1828, __extension__ __PRETTY_FUNCTION__)), contained.error(); } error_type & error() & { return (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1833, __extension__ __PRETTY_FUNCTION__)), contained.error(); } constexpr error_type const && error() const && { return std::move( ( (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1840, __extension__ __PRETTY_FUNCTION__)), contained.error() ) ); } error_type && error() && { return std::move( ( (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 1845, __extension__ __PRETTY_FUNCTION__)), contained.error() ) ); } constexpr unexpected_type get_unexpected() const { return make_unexpected( contained.error() ); } template< typename Ex > bool has_exception() const { using ContainedEx = typename std::remove_reference< decltype( get_unexpected().value() ) >::type; return ! has_value() && std::is_base_of< Ex, ContainedEx>::value; } template< typename U , typename std::enable_if< (std::is_copy_constructible< T>::value && std::is_convertible<U&&, T>::value), int >::type = 0 > value_type value_or( U && v ) const & { return has_value() ? contained.value() : static_cast<T>( std::forward<U>( v ) ); } template< typename U , typename std::enable_if< (std::is_move_constructible< T>::value && std::is_convertible<U&&, T>::value), int >::type = 0 > value_type value_or( U && v ) && { return has_value() ? std::move( contained.value() ) : static_cast<T>( std::forward<U>( v ) ); } # 1919 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 private: detail::storage_t < T ,E , std::is_copy_constructible<T>::value && std::is_copy_constructible<E>::value , std::is_move_constructible<T>::value && std::is_move_constructible<E>::value > contained; }; template< typename E > class expected<void, E> { private: template< typename, typename > friend class expected; public: using value_type = void; using error_type = E; using unexpected_type = nonstd::unexpected_type<E>; constexpr expected() noexcept : contained( true ) {} constexpr expected( expected const & other ) = default; constexpr expected( expected && other ) = default; constexpr explicit expected( std::in_place_t ) : contained( true ) {} template< typename G = E , typename std::enable_if< (!std::is_convertible<G const &, E>::value), int >::type = 0 > constexpr explicit expected( nonstd::unexpected_type<G> const & error ) : contained( false ) { contained.construct_error( E{ error.value() } ); } template< typename G = E , typename std::enable_if< (std::is_convertible<G const &, E>::value), int >::type = 0 > constexpr expected( nonstd::unexpected_type<G> const & error ) : contained( false ) { contained.construct_error( error.value() ); } template< typename G = E , typename std::enable_if< (!std::is_convertible<G&&, E>::value), int >::type = 0 > constexpr explicit expected( nonstd::unexpected_type<G> && error ) : contained( false ) { contained.construct_error( E{ std::move( error.value() ) } ); } template< typename G = E , typename std::enable_if< (std::is_convertible<G&&, E>::value), int >::type = 0 > constexpr expected( nonstd::unexpected_type<G> && error ) : contained( false ) { contained.construct_error( std::move( error.value() ) ); } template< typename... Args , typename std::enable_if< (std::is_constructible<E, Args&&...>::value), int >::type = 0 > constexpr explicit expected( unexpect_t, Args&&... args ) : contained( false ) { contained.emplace_error( std::forward<Args>( args )... ); } template< typename U, typename... Args , typename std::enable_if< (std::is_constructible<E, std::initializer_list<U>, Args&&...>::value), int >::type = 0 > constexpr explicit expected( unexpect_t, std::initializer_list<U> il, Args&&... args ) : contained( false ) { contained.emplace_error( il, std::forward<Args>( args )... ); } ~expected() { if ( ! has_value() ) { contained.destruct_error(); } } expected & operator=( expected const & other ) { expected( other ).swap( *this ); return *this; } expected & operator=( expected && other ) noexcept ( std::is_nothrow_move_assignable<E>::value && std::is_nothrow_move_constructible<E>::value ) { expected( std::move( other ) ).swap( *this ); return *this; } void emplace() { expected().swap( *this ); } template< typename G = E > typename std::enable_if< (std17::is_swappable<G>::value && std::is_move_constructible<G>::value), void>::type swap( expected & other ) noexcept ( std::is_nothrow_move_constructible<E>::value && std17::is_nothrow_swappable<E&>::value ) { using std::swap; if ( ! bool(*this) && ! bool(other) ) { swap( contained.error(), other.contained.error() ); } else if ( bool(*this) && ! bool(other) ) { contained.construct_error( std::move( other.error() ) ); bool has_value = contained.has_value(); bool other_has_value = other.has_value(); other.contained.set_has_value(has_value); contained.set_has_value(other_has_value); } else if ( ! bool(*this) && bool(other) ) { other.swap( *this ); } } constexpr explicit operator bool() const noexcept { return has_value(); } constexpr bool has_value() const noexcept { return contained.has_value(); } void value() const { if ( ! has_value() ) { error_traits<error_type>::rethrow( contained.error() ); } } constexpr error_type const & error() const & { return (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 2100, __extension__ __PRETTY_FUNCTION__)), contained.error(); } error_type & error() & { return (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 2105, __extension__ __PRETTY_FUNCTION__)), contained.error(); } constexpr error_type const && error() const && { return std::move( ( (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 2112, __extension__ __PRETTY_FUNCTION__)), contained.error() ) ); } error_type && error() && { return std::move( ( (static_cast <bool> (! has_value()) ? void (0) : __assert_fail ("! has_value()", "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp", 2117, __extension__ __PRETTY_FUNCTION__)), contained.error() ) ); } constexpr unexpected_type get_unexpected() const { return make_unexpected( contained.error() ); } template< typename Ex > bool has_exception() const { using ContainedEx = typename std::remove_reference< decltype( get_unexpected().value() ) >::type; return ! has_value() && std::is_base_of< Ex, ContainedEx>::value; } # 2155 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 private: detail::storage_t < void , E , std::is_copy_constructible<E>::value , std::is_move_constructible<E>::value > contained; }; template< typename T1, typename E1, typename T2, typename E2 , typename std::enable_if< (!std::is_void<T1>::value && !std::is_void<T2>::value), int >::type = 0 > constexpr bool operator==( expected<T1,E1> const & x, expected<T2,E2> const & y ) { return bool(x) != bool(y) ? false : bool(x) ? *x == *y : x.error() == y.error(); } template< typename T1, typename E1, typename T2, typename E2 , typename std::enable_if< (std::is_void<T1>::value && std::is_void<T2>::value), int >::type = 0 > constexpr bool operator==( expected<T1,E1> const & x, expected<T2,E2> const & y ) { return bool(x) != bool(y) ? false : bool(x) || static_cast<bool>( x.error() == y.error() ); } template< typename T1, typename E1, typename T2, typename E2 > constexpr bool operator!=( expected<T1,E1> const & x, expected<T2,E2> const & y ) { return !(x == y); } # 2224 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename T1, typename E1, typename T2 , typename std::enable_if< (!std::is_void<T1>::value), int >::type = 0 > constexpr bool operator==( expected<T1,E1> const & x, T2 const & v ) { return bool(x) ? *x == v : false; } template< typename T1, typename E1, typename T2 , typename std::enable_if< (!std::is_void<T1>::value), int >::type = 0 > constexpr bool operator==(T2 const & v, expected<T1,E1> const & x ) { return bool(x) ? v == *x : false; } template< typename T1, typename E1, typename T2 > constexpr bool operator!=( expected<T1,E1> const & x, T2 const & v ) { return bool(x) ? *x != v : true; } template< typename T1, typename E1, typename T2 > constexpr bool operator!=( T2 const & v, expected<T1,E1> const & x ) { return bool(x) ? v != *x : true; } # 2310 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename T1, typename E1 , typename E2 > constexpr bool operator==( expected<T1,E1> const & x, unexpected_type<E2> const & u ) { return (!x) ? x.get_unexpected() == u : false; } template< typename T1, typename E1 , typename E2 > constexpr bool operator==( unexpected_type<E2> const & u, expected<T1,E1> const & x ) { return ( x == u ); } template< typename T1, typename E1 , typename E2 > constexpr bool operator!=( expected<T1,E1> const & x, unexpected_type<E2> const & u ) { return ! ( x == u ); } template< typename T1, typename E1 , typename E2 > constexpr bool operator!=( unexpected_type<E2> const & u, expected<T1,E1> const & x ) { return ! ( x == u ); } # 2388 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 template< typename T, typename E , typename std::enable_if< (( std::is_void<T>::value || std::is_move_constructible<T>::value ) && std::is_move_constructible<E>::value && std17::is_swappable<T>::value && std17::is_swappable<E>::value), int >::type = 0 > void swap( expected<T,E> & x, expected<T,E> & y ) noexcept ( noexcept ( x.swap(y) ) ) { x.swap( y ); } # 2468 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 } using namespace expected_lite; } namespace std { template< typename T, typename E > struct hash< nonstd::expected<T,E> > { using result_type = std::size_t; using argument_type = nonstd::expected<T,E>; constexpr result_type operator()(argument_type const & arg) const { return arg ? std::hash<T>{}(*arg) : result_type{}; } }; template< typename T, typename E > struct hash< nonstd::expected<T&,E> > { using result_type = std::size_t; using argument_type = nonstd::expected<T&,E>; constexpr result_type operator()(argument_type const & arg) const { return arg ? std::hash<T>{}(*arg) : result_type{}; } }; template< typename E > struct hash< nonstd::expected<void,E> > { }; } namespace nonstd { template< typename E > using unexpected = unexpected_type<E>; } # 2533 "/home/lpresearch/.conan/data/expected-lite/0.6.3/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/nonstd/expected.hpp" 3 4 #pragma GCC diagnostic pop # 252 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParser.hpp" 1 # 255 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 # 1 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" 1 # 39 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" # 39 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" namespace DTrackSDK_Parse { # 48 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_nextline(char* str, char* start, int len); # 57 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_i(char* str, int* i); # 66 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_ui(char* str, unsigned int* ui); # 75 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_d(char* str, double* d); # 84 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_f(char* str, float* f); # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_block(char* str, const char* fmt, int* idat = # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" 3 4 __null # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" , float* fdat = # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" 3 4 __null # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" , double *ddat = # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" 3 4 __null # 96 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" ); # 105 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_word(char* str, std::string& w); # 114 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_get_quoted_text(char* str, std::string& qt); # 123 "/home/lpresearch/LPResearch/lpopenvr_lpviz/00_3rdparty/00_tracking_systems/DTrackSDK_v2.8.0/include/DTrackParse.hpp" char* string_cmp_parameter(char* str, const char* p); } # 256 "/home/lpresearch/LPResearch/lpopenvr_lpviz/calibration_tools/ArtTools.cpp" 2 namespace { using namespace LP; using namespace std::literals; struct Address { u_long addr; u_long mask; }; struct Interface { std::string name; std::vector<Address> vAddresses; }; using Callback = std::function<void(std::optional<ArtController>)>; static ArtController::Access getAccess( const boost::asio::ip::udp::endpoint& remoteEndpoint, const boost::asio::yield_context yield); static ArtController::Access getAccessSynch(std::string hostName); class ControllerCommunication : public std::enable_shared_from_this<ControllerCommunication> { Callback callback; std::string hostName; ArtController::Access access{ ArtController::Access::Unknown }; std::string version; boost::asio::ip::udp::endpoint remote_endpoint; static constexpr short ARTport = 50105; std::chrono::system_clock::time_point expiry; std::optional<ArtController> workerCoroutine(boost::asio::yield_context yield); public: static void start( boost::asio::any_io_executor exec_, Callback callback_, boost::asio::ip::udp::endpoint remote_endpoint_, std::chrono::system_clock::time_point expiry_, std::string hostName_) { } static std::optional<ArtController> runCoroutine( boost::asio::ip::udp::endpoint remote_endpoint_, std::chrono::system_clock::time_point expiry_, std::string hostName_, auto& yield); private: ControllerCommunication( boost::asio::ip::udp::endpoint remote_endpoint_, std::chrono::system_clock::time_point expiry_, std::string hostName_) : hostName(hostName_) , remote_endpoint(remote_endpoint_) , expiry(expiry_) { } }; class InitialCommunication : public std::enable_shared_from_this<InitialCommunication> { public: static auto start( boost::asio::any_io_executor executor, std::vector<ArtController>& vControllers_, Address subnet_, auto handler = [](std::exception_ptr e) { if (e) std::rethrow_exception(e); }) { } private: void workerCoroutine(boost::asio::yield_context& yield) { } }; } class LP::DTrackDebugDataListener::Impl { std::shared_ptr<boost::asio::ip::tcp::socket> commandSocket; boost::asio::ip::udp::socket listenSocket; Impl(std::shared_ptr<boost::asio::ip::tcp::socket> commandSocket_, boost::asio::ip::udp::socket listenSocket_) : commandSocket(commandSocket_) , listenSocket(std::move(listenSocket_)) { } struct sendCommandImplementation { }; template <typename CompletionToken> auto sendCommand(std::string command, CompletionToken&& token); auto sendCommands(std::vector<std::string> vCommands) -> boost::asio::awaitable<void>; public: boost::asio::awaitable<std::optional<const DTrackBufferParser>> listen(); static boost::asio::awaitable<std::unique_ptr<DTrackDebugDataListener::Impl>> start( const ArtController& controller) { try { const auto& executor = co_await boost::asio::this_coro::executor; auto listenSocket = boost::asio::ip::udp::socket(executor, boost::asio::ip::udp::v4()); auto commandSocket = std::make_shared<boost::asio::ip::tcp::socket>(executor, boost::asio::ip::tcp::v4()); auto impl = std::unique_ptr<Impl>( new Impl(commandSocket, std::move(listenSocket))); co_await impl->sendCommands({ fmt::format("{}", 1) /////// THIS LINE TRIGGERS THE ICE }); co_return impl; } catch (std::exception& e) { co_return nullptr; } } };
Become a Patron
Sponsor on GitHub
Donate via PayPal
Source on GitHub
Mailing list
Installed libraries
Wiki
Report an issue
How it works
Contact the author
CE on Mastodon
About the author
Statistics
Changelog
Version tree