Cython 3.2.0__cp39-abi3-win32.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- Cython/Build/BuildExecutable.py +169 -0
- Cython/Build/Cache.py +199 -0
- Cython/Build/Cythonize.py +350 -0
- Cython/Build/Dependencies.py +1314 -0
- Cython/Build/Distutils.py +1 -0
- Cython/Build/Inline.py +463 -0
- Cython/Build/IpythonMagic.py +560 -0
- Cython/Build/SharedModule.py +94 -0
- Cython/Build/Tests/TestCyCache.py +194 -0
- Cython/Build/Tests/TestCythonizeArgsParser.py +481 -0
- Cython/Build/Tests/TestDependencies.py +133 -0
- Cython/Build/Tests/TestInline.py +177 -0
- Cython/Build/Tests/TestIpythonMagic.py +287 -0
- Cython/Build/Tests/TestRecythonize.py +212 -0
- Cython/Build/Tests/TestStripLiterals.py +155 -0
- Cython/Build/Tests/__init__.py +1 -0
- Cython/Build/__init__.py +11 -0
- Cython/CodeWriter.py +815 -0
- Cython/Compiler/AnalysedTreeTransforms.py +97 -0
- Cython/Compiler/Annotate.py +328 -0
- Cython/Compiler/AutoDocTransforms.py +320 -0
- Cython/Compiler/Buffer.py +680 -0
- Cython/Compiler/Builtin.py +984 -0
- Cython/Compiler/CmdLine.py +263 -0
- Cython/Compiler/Code.pxd +149 -0
- Cython/Compiler/Code.py +3746 -0
- Cython/Compiler/Code.pyd +0 -0
- Cython/Compiler/CodeGeneration.py +33 -0
- Cython/Compiler/CythonScope.py +191 -0
- Cython/Compiler/Dataclass.py +864 -0
- Cython/Compiler/DebugFlags.py +24 -0
- Cython/Compiler/Errors.py +297 -0
- Cython/Compiler/ExprNodes.py +15562 -0
- Cython/Compiler/FlowControl.pxd +97 -0
- Cython/Compiler/FlowControl.py +1451 -0
- Cython/Compiler/FlowControl.pyd +0 -0
- Cython/Compiler/FusedNode.py +971 -0
- Cython/Compiler/FusedNode.pyd +0 -0
- Cython/Compiler/Future.py +16 -0
- Cython/Compiler/Interpreter.py +57 -0
- Cython/Compiler/Lexicon.py +421 -0
- Cython/Compiler/LineTable.py +114 -0
- Cython/Compiler/LineTable.pyd +0 -0
- Cython/Compiler/Main.py +857 -0
- Cython/Compiler/MatchCaseNodes.py +259 -0
- Cython/Compiler/MemoryView.py +905 -0
- Cython/Compiler/ModuleNode.py +4235 -0
- Cython/Compiler/Naming.py +363 -0
- Cython/Compiler/Nodes.py +10831 -0
- Cython/Compiler/Optimize.py +5288 -0
- Cython/Compiler/Options.py +843 -0
- Cython/Compiler/ParseTreeTransforms.pxd +78 -0
- Cython/Compiler/ParseTreeTransforms.py +4638 -0
- Cython/Compiler/Parsing.pxd +9 -0
- Cython/Compiler/Parsing.py +4775 -0
- Cython/Compiler/Parsing.pyd +0 -0
- Cython/Compiler/Pipeline.py +439 -0
- Cython/Compiler/PyrexTypes.py +5870 -0
- Cython/Compiler/Pythran.py +232 -0
- Cython/Compiler/Scanning.pxd +48 -0
- Cython/Compiler/Scanning.py +701 -0
- Cython/Compiler/Scanning.pyd +0 -0
- Cython/Compiler/StringEncoding.py +298 -0
- Cython/Compiler/Symtab.py +3073 -0
- Cython/Compiler/Tests/TestBuffer.py +105 -0
- Cython/Compiler/Tests/TestBuiltin.py +72 -0
- Cython/Compiler/Tests/TestCmdLine.py +586 -0
- Cython/Compiler/Tests/TestCode.py +144 -0
- Cython/Compiler/Tests/TestFlowControl.py +65 -0
- Cython/Compiler/Tests/TestGrammar.py +202 -0
- Cython/Compiler/Tests/TestMemView.py +71 -0
- Cython/Compiler/Tests/TestParseTreeTransforms.py +285 -0
- Cython/Compiler/Tests/TestScanning.py +134 -0
- Cython/Compiler/Tests/TestSignatureMatching.py +73 -0
- Cython/Compiler/Tests/TestStringEncoding.py +21 -0
- Cython/Compiler/Tests/TestTreeFragment.py +63 -0
- Cython/Compiler/Tests/TestTreePath.py +103 -0
- Cython/Compiler/Tests/TestTypes.py +75 -0
- Cython/Compiler/Tests/TestUtilityLoad.py +112 -0
- Cython/Compiler/Tests/TestVisitor.py +61 -0
- Cython/Compiler/Tests/Utils.py +36 -0
- Cython/Compiler/Tests/__init__.py +1 -0
- Cython/Compiler/TreeFragment.py +278 -0
- Cython/Compiler/TreePath.py +303 -0
- Cython/Compiler/TypeInference.py +591 -0
- Cython/Compiler/TypeSlots.py +1174 -0
- Cython/Compiler/UFuncs.py +311 -0
- Cython/Compiler/UtilNodes.py +389 -0
- Cython/Compiler/UtilityCode.py +344 -0
- Cython/Compiler/Version.py +8 -0
- Cython/Compiler/Visitor.pxd +53 -0
- Cython/Compiler/Visitor.py +861 -0
- Cython/Compiler/Visitor.pyd +0 -0
- Cython/Compiler/__init__.py +1 -0
- Cython/Coverage.py +448 -0
- Cython/Debugger/Cygdb.py +177 -0
- Cython/Debugger/DebugWriter.py +82 -0
- Cython/Debugger/Tests/TestLibCython.py +275 -0
- Cython/Debugger/Tests/__init__.py +1 -0
- Cython/Debugger/Tests/cfuncs.c +8 -0
- Cython/Debugger/Tests/codefile +49 -0
- Cython/Debugger/Tests/test_libcython_in_gdb.py +578 -0
- Cython/Debugger/Tests/test_libpython_in_gdb.py +90 -0
- Cython/Debugger/__init__.py +1 -0
- Cython/Debugger/libcython.py +1548 -0
- Cython/Debugger/libpython.py +2821 -0
- Cython/Debugging.py +20 -0
- Cython/Distutils/__init__.py +2 -0
- Cython/Distutils/build_ext.py +139 -0
- Cython/Distutils/extension.py +96 -0
- Cython/Distutils/old_build_ext.py +351 -0
- Cython/Includes/cpython/__init__.pxd +173 -0
- Cython/Includes/cpython/array.pxd +178 -0
- Cython/Includes/cpython/bool.pxd +37 -0
- Cython/Includes/cpython/buffer.pxd +112 -0
- Cython/Includes/cpython/bytearray.pxd +33 -0
- Cython/Includes/cpython/bytes.pxd +200 -0
- Cython/Includes/cpython/cellobject.pxd +35 -0
- Cython/Includes/cpython/ceval.pxd +8 -0
- Cython/Includes/cpython/codecs.pxd +121 -0
- Cython/Includes/cpython/complex.pxd +60 -0
- Cython/Includes/cpython/contextvars.pxd +145 -0
- Cython/Includes/cpython/conversion.pxd +36 -0
- Cython/Includes/cpython/datetime.pxd +395 -0
- Cython/Includes/cpython/descr.pxd +26 -0
- Cython/Includes/cpython/dict.pxd +187 -0
- Cython/Includes/cpython/exc.pxd +263 -0
- Cython/Includes/cpython/fileobject.pxd +57 -0
- Cython/Includes/cpython/float.pxd +47 -0
- Cython/Includes/cpython/function.pxd +65 -0
- Cython/Includes/cpython/genobject.pxd +25 -0
- Cython/Includes/cpython/getargs.pxd +12 -0
- Cython/Includes/cpython/instance.pxd +25 -0
- Cython/Includes/cpython/iterator.pxd +36 -0
- Cython/Includes/cpython/iterobject.pxd +24 -0
- Cython/Includes/cpython/list.pxd +92 -0
- Cython/Includes/cpython/long.pxd +149 -0
- Cython/Includes/cpython/longintrepr.pxd +14 -0
- Cython/Includes/cpython/mapping.pxd +63 -0
- Cython/Includes/cpython/marshal.pxd +66 -0
- Cython/Includes/cpython/mem.pxd +120 -0
- Cython/Includes/cpython/memoryview.pxd +50 -0
- Cython/Includes/cpython/method.pxd +49 -0
- Cython/Includes/cpython/module.pxd +208 -0
- Cython/Includes/cpython/number.pxd +258 -0
- Cython/Includes/cpython/object.pxd +433 -0
- Cython/Includes/cpython/pycapsule.pxd +143 -0
- Cython/Includes/cpython/pylifecycle.pxd +68 -0
- Cython/Includes/cpython/pyport.pxd +8 -0
- Cython/Includes/cpython/pystate.pxd +95 -0
- Cython/Includes/cpython/pythread.pxd +53 -0
- Cython/Includes/cpython/ref.pxd +141 -0
- Cython/Includes/cpython/sequence.pxd +134 -0
- Cython/Includes/cpython/set.pxd +119 -0
- Cython/Includes/cpython/slice.pxd +70 -0
- Cython/Includes/cpython/time.pxd +129 -0
- Cython/Includes/cpython/tuple.pxd +72 -0
- Cython/Includes/cpython/type.pxd +53 -0
- Cython/Includes/cpython/unicode.pxd +639 -0
- Cython/Includes/cpython/version.pxd +32 -0
- Cython/Includes/cpython/weakref.pxd +78 -0
- Cython/Includes/libc/__init__.pxd +1 -0
- Cython/Includes/libc/complex.pxd +35 -0
- Cython/Includes/libc/errno.pxd +127 -0
- Cython/Includes/libc/float.pxd +43 -0
- Cython/Includes/libc/limits.pxd +28 -0
- Cython/Includes/libc/locale.pxd +46 -0
- Cython/Includes/libc/math.pxd +209 -0
- Cython/Includes/libc/setjmp.pxd +10 -0
- Cython/Includes/libc/signal.pxd +64 -0
- Cython/Includes/libc/stddef.pxd +9 -0
- Cython/Includes/libc/stdint.pxd +105 -0
- Cython/Includes/libc/stdio.pxd +80 -0
- Cython/Includes/libc/stdlib.pxd +72 -0
- Cython/Includes/libc/string.pxd +50 -0
- Cython/Includes/libc/threads.pxd +234 -0
- Cython/Includes/libc/time.pxd +52 -0
- Cython/Includes/libcpp/__init__.pxd +4 -0
- Cython/Includes/libcpp/algorithm.pxd +320 -0
- Cython/Includes/libcpp/any.pxd +16 -0
- Cython/Includes/libcpp/atomic.pxd +59 -0
- Cython/Includes/libcpp/barrier.pxd +22 -0
- Cython/Includes/libcpp/bit.pxd +29 -0
- Cython/Includes/libcpp/cast.pxd +12 -0
- Cython/Includes/libcpp/cmath.pxd +518 -0
- Cython/Includes/libcpp/complex.pxd +106 -0
- Cython/Includes/libcpp/condition_variable.pxd +322 -0
- Cython/Includes/libcpp/deque.pxd +165 -0
- Cython/Includes/libcpp/exception.pxd +86 -0
- Cython/Includes/libcpp/execution.pxd +15 -0
- Cython/Includes/libcpp/forward_list.pxd +63 -0
- Cython/Includes/libcpp/functional.pxd +26 -0
- Cython/Includes/libcpp/future.pxd +103 -0
- Cython/Includes/libcpp/iterator.pxd +34 -0
- Cython/Includes/libcpp/latch.pxd +17 -0
- Cython/Includes/libcpp/limits.pxd +61 -0
- Cython/Includes/libcpp/list.pxd +117 -0
- Cython/Includes/libcpp/map.pxd +252 -0
- Cython/Includes/libcpp/memory.pxd +115 -0
- Cython/Includes/libcpp/mutex.pxd +387 -0
- Cython/Includes/libcpp/numbers.pxd +15 -0
- Cython/Includes/libcpp/numeric.pxd +131 -0
- Cython/Includes/libcpp/optional.pxd +34 -0
- Cython/Includes/libcpp/pair.pxd +1 -0
- Cython/Includes/libcpp/queue.pxd +25 -0
- Cython/Includes/libcpp/random.pxd +166 -0
- Cython/Includes/libcpp/semaphore.pxd +43 -0
- Cython/Includes/libcpp/set.pxd +228 -0
- Cython/Includes/libcpp/shared_mutex.pxd +96 -0
- Cython/Includes/libcpp/span.pxd +87 -0
- Cython/Includes/libcpp/stack.pxd +11 -0
- Cython/Includes/libcpp/stop_token.pxd +117 -0
- Cython/Includes/libcpp/string.pxd +355 -0
- Cython/Includes/libcpp/string_view.pxd +183 -0
- Cython/Includes/libcpp/typeindex.pxd +15 -0
- Cython/Includes/libcpp/typeinfo.pxd +10 -0
- Cython/Includes/libcpp/unordered_map.pxd +193 -0
- Cython/Includes/libcpp/unordered_set.pxd +152 -0
- Cython/Includes/libcpp/utility.pxd +30 -0
- Cython/Includes/libcpp/vector.pxd +186 -0
- Cython/Includes/numpy/math.pxd +150 -0
- Cython/Includes/openmp.pxd +50 -0
- Cython/Includes/posix/__init__.pxd +1 -0
- Cython/Includes/posix/dlfcn.pxd +14 -0
- Cython/Includes/posix/fcntl.pxd +86 -0
- Cython/Includes/posix/ioctl.pxd +4 -0
- Cython/Includes/posix/mman.pxd +101 -0
- Cython/Includes/posix/resource.pxd +57 -0
- Cython/Includes/posix/select.pxd +21 -0
- Cython/Includes/posix/signal.pxd +73 -0
- Cython/Includes/posix/stat.pxd +98 -0
- Cython/Includes/posix/stdio.pxd +37 -0
- Cython/Includes/posix/stdlib.pxd +29 -0
- Cython/Includes/posix/strings.pxd +9 -0
- Cython/Includes/posix/time.pxd +71 -0
- Cython/Includes/posix/types.pxd +30 -0
- Cython/Includes/posix/uio.pxd +26 -0
- Cython/Includes/posix/unistd.pxd +271 -0
- Cython/Includes/posix/wait.pxd +38 -0
- Cython/Plex/Actions.pxd +24 -0
- Cython/Plex/Actions.py +119 -0
- Cython/Plex/Actions.pyd +0 -0
- Cython/Plex/DFA.pxd +14 -0
- Cython/Plex/DFA.py +164 -0
- Cython/Plex/DFA.pyd +0 -0
- Cython/Plex/Errors.py +48 -0
- Cython/Plex/Lexicons.py +178 -0
- Cython/Plex/Machines.pxd +36 -0
- Cython/Plex/Machines.py +238 -0
- Cython/Plex/Machines.pyd +0 -0
- Cython/Plex/Regexps.py +535 -0
- Cython/Plex/Scanners.pxd +45 -0
- Cython/Plex/Scanners.py +328 -0
- Cython/Plex/Scanners.pyd +0 -0
- Cython/Plex/Transitions.pxd +14 -0
- Cython/Plex/Transitions.py +239 -0
- Cython/Plex/Transitions.pyd +0 -0
- Cython/Plex/__init__.py +34 -0
- Cython/Runtime/__init__.py +1 -0
- Cython/Runtime/refnanny.pyd +0 -0
- Cython/Runtime/refnanny.pyx +237 -0
- Cython/Shadow.py +690 -0
- Cython/Shadow.pyi +521 -0
- Cython/StringIOTree.py +170 -0
- Cython/StringIOTree.pyd +0 -0
- Cython/Tempita/__init__.py +4 -0
- Cython/Tempita/_looper.py +154 -0
- Cython/Tempita/_tempita.py +1091 -0
- Cython/Tempita/_tempita.pyd +0 -0
- Cython/TestUtils.py +422 -0
- Cython/Tests/TestCodeWriter.py +128 -0
- Cython/Tests/TestCythonUtils.py +202 -0
- Cython/Tests/TestJediTyper.py +223 -0
- Cython/Tests/TestShadow.py +114 -0
- Cython/Tests/TestStringIOTree.py +67 -0
- Cython/Tests/TestTestUtils.py +90 -0
- Cython/Tests/__init__.py +1 -0
- Cython/Tests/xmlrunner.py +390 -0
- Cython/Utility/AsyncGen.c +1031 -0
- Cython/Utility/Buffer.c +865 -0
- Cython/Utility/BufferFormatFromTypeInfo.pxd +2 -0
- Cython/Utility/Builtins.c +810 -0
- Cython/Utility/CConvert.pyx +134 -0
- Cython/Utility/CMath.c +104 -0
- Cython/Utility/CommonStructures.c +226 -0
- Cython/Utility/Complex.c +378 -0
- Cython/Utility/Coroutine.c +2300 -0
- Cython/Utility/CpdefEnums.pyx +103 -0
- Cython/Utility/CppConvert.pyx +282 -0
- Cython/Utility/CppSupport.cpp +151 -0
- Cython/Utility/CythonFunction.c +1832 -0
- Cython/Utility/Dataclasses.c +101 -0
- Cython/Utility/Embed.c +121 -0
- Cython/Utility/Exceptions.c +1016 -0
- Cython/Utility/ExtensionTypes.c +996 -0
- Cython/Utility/FunctionArguments.c +1043 -0
- Cython/Utility/FusedFunction.pyx +44 -0
- Cython/Utility/ImportExport.c +907 -0
- Cython/Utility/MemoryView.pxd +188 -0
- Cython/Utility/MemoryView.pyx +1482 -0
- Cython/Utility/MemoryView_C.c +927 -0
- Cython/Utility/ModuleSetupCode.c +3203 -0
- Cython/Utility/NumpyImportArray.c +46 -0
- Cython/Utility/ObjectHandling.c +3273 -0
- Cython/Utility/Optimize.c +1603 -0
- Cython/Utility/Overflow.c +384 -0
- Cython/Utility/Printing.c +86 -0
- Cython/Utility/Profile.c +732 -0
- Cython/Utility/StringTools.c +1379 -0
- Cython/Utility/Synchronization.c +399 -0
- Cython/Utility/TString.c +356 -0
- Cython/Utility/TestCyUtilityLoader.pyx +8 -0
- Cython/Utility/TestCythonScope.pyx +75 -0
- Cython/Utility/TestUtilityLoader.c +12 -0
- Cython/Utility/TypeConversion.c +1385 -0
- Cython/Utility/UFuncs.pyx +50 -0
- Cython/Utility/UFuncs_C.c +89 -0
- Cython/Utility/__init__.py +28 -0
- Cython/Utility/arrayarray.h +167 -0
- Cython/Utils.py +687 -0
- Cython/Utils.pyd +0 -0
- Cython/__init__.py +10 -0
- Cython/__init__.pyi +7 -0
- Cython/py.typed +0 -0
- cython-3.2.0.dist-info/METADATA +85 -0
- cython-3.2.0.dist-info/RECORD +333 -0
- cython-3.2.0.dist-info/WHEEL +5 -0
- cython-3.2.0.dist-info/entry_points.txt +4 -0
- cython-3.2.0.dist-info/top_level.txt +3 -0
- cython.py +29 -0
- pyximport/__init__.py +4 -0
- pyximport/pyxbuild.py +160 -0
- pyximport/pyximport.py +482 -0
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
from libcpp cimport bool
|
|
2
|
+
from libcpp.utility cimport pair
|
|
3
|
+
from libc.stddef import ptrdiff_t
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
cdef extern from "<algorithm>" namespace "std" nogil:
|
|
7
|
+
# Non-modifying sequence operations
|
|
8
|
+
bool all_of[Iter, Pred](Iter first, Iter last, Pred pred) except +
|
|
9
|
+
bool all_of[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred pred) except +
|
|
10
|
+
bool any_of[Iter, Pred](Iter first, Iter last, Pred pred) except +
|
|
11
|
+
bool any_of[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred pred) except +
|
|
12
|
+
bool none_of[Iter, Pred](Iter first, Iter last, Pred pred) except +
|
|
13
|
+
bool none_of[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred pred) except +
|
|
14
|
+
|
|
15
|
+
void for_each[Iter, UnaryFunction](Iter first, Iter last, UnaryFunction f) except + # actually returns f
|
|
16
|
+
void for_each[ExecutionPolicy, Iter, UnaryFunction](ExecutionPolicy&& policy, Iter first, Iter last, UnaryFunction f) except + # actually returns f
|
|
17
|
+
|
|
18
|
+
ptrdiff_t count[Iter, T](Iter first, Iter last, const T& value) except +
|
|
19
|
+
ptrdiff_t count[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
20
|
+
ptrdiff_t count_if[Iter, Pred](Iter first, Iter last, Pred pred) except +
|
|
21
|
+
ptrdiff_t count_if[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred pred) except +
|
|
22
|
+
|
|
23
|
+
pair[Iter1, Iter2] mismatch[Iter1, Iter2](
|
|
24
|
+
Iter1 first1, Iter1 last1, Iter2 first2) except + # other overloads are tricky
|
|
25
|
+
pair[Iter1, Iter2] mismatch[ExecutionPolicy, Iter1, Iter2](
|
|
26
|
+
ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2) except +
|
|
27
|
+
|
|
28
|
+
Iter find[Iter, T](Iter first, Iter last, const T& value) except +
|
|
29
|
+
Iter find[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
30
|
+
|
|
31
|
+
Iter find_if[Iter, Pred](Iter first, Iter last, Pred pred) except +
|
|
32
|
+
Iter find_if[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred pred) except +
|
|
33
|
+
Iter find_if_not[Iter, Pred](Iter first, Iter last, Pred pred) except +
|
|
34
|
+
Iter find_if_not[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred pred) except +
|
|
35
|
+
|
|
36
|
+
Iter1 find_end[Iter1, Iter2](Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2) except +
|
|
37
|
+
Iter1 find_end[ExecutionPolicy, Iter1, Iter2](ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2) except +
|
|
38
|
+
Iter1 find_end[Iter1, Iter2, BinaryPred](
|
|
39
|
+
Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, BinaryPred pred) except +
|
|
40
|
+
Iter1 find_end[ExecutionPolicy, Iter1, Iter2, BinaryPred](
|
|
41
|
+
ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, BinaryPred pred) except +
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
Iter1 find_first_of[Iter1, Iter2](Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2) except +
|
|
45
|
+
Iter1 find_first_of[Iter1, Iter2, BinaryPred](
|
|
46
|
+
Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, BinaryPred pred) except +
|
|
47
|
+
Iter1 find_first_of[ExecutionPolicy, Iter1, Iter2](ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2) except +
|
|
48
|
+
Iter1 find_first_of[ExecutionPolicy, Iter1, Iter2, BinaryPred](
|
|
49
|
+
ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, BinaryPred pred) except +
|
|
50
|
+
|
|
51
|
+
Iter adjacent_find[Iter](Iter first, Iter last) except +
|
|
52
|
+
Iter adjacent_find[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
53
|
+
Iter adjacent_find[Iter, BinaryPred](Iter first, Iter last, BinaryPred pred) except +
|
|
54
|
+
Iter adjacent_find[ExecutionPolicy, Iter, BinaryPred](ExecutionPolicy&& policy, Iter first, Iter last, BinaryPred pred) except +
|
|
55
|
+
|
|
56
|
+
Iter1 search[Iter1, Iter2](Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2) except +
|
|
57
|
+
Iter1 search[ExecutionPolicy, Iter1, Iter2](ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2) except +
|
|
58
|
+
Iter1 search[Iter1, Iter2, BinaryPred](
|
|
59
|
+
Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, BinaryPred pred) except +
|
|
60
|
+
Iter1 search[ExecutionPolicy, Iter1, Iter2, BinaryPred](
|
|
61
|
+
ExecutionPolicy&& policy, Iter1 first1, Iter1 last1, Iter2 first2, Iter2 last2, BinaryPred pred) except +
|
|
62
|
+
Iter search_n[Iter, Size, T](Iter first1, Iter last1, Size count, const T& value) except +
|
|
63
|
+
Iter search_n[ExecutionPolicy, Iter, Size, T](ExecutionPolicy&& policy, Iter first1, Iter last1, Size count, const T& value) except +
|
|
64
|
+
Iter search_n[Iter, Size, T, BinaryPred](
|
|
65
|
+
Iter first1, Iter last1, Size count, const T& value, BinaryPred pred) except +
|
|
66
|
+
Iter search_n[ExecutionPolicy, Iter, Size, T, BinaryPred](
|
|
67
|
+
ExecutionPolicy&& policy, Iter first1, Iter last1, Size count, const T& value, BinaryPred pred) except +
|
|
68
|
+
|
|
69
|
+
# Modifying sequence operations
|
|
70
|
+
OutputIt copy[InputIt, OutputIt](InputIt first, InputIt last, OutputIt d_first) except +
|
|
71
|
+
OutputIt copy[ExecutionPolicy, InputIt, OutputIt](ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first) except +
|
|
72
|
+
OutputIt copy_if[InputIt, OutputIt, Pred](InputIt first, InputIt last, OutputIt d_first, Pred pred) except +
|
|
73
|
+
OutputIt copy_if[ExecutionPolicy, InputIt, OutputIt, Pred](ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, Pred pred) except +
|
|
74
|
+
OutputIt copy_n[InputIt, Size, OutputIt](InputIt first, Size count, OutputIt result) except +
|
|
75
|
+
OutputIt copy_n[ExecutionPolicy, InputIt, Size, OutputIt](ExecutionPolicy&& policy, InputIt first, Size count, OutputIt result) except +
|
|
76
|
+
Iter2 copy_backward[Iter1, Iter2](Iter1 first, Iter1 last, Iter2 d_last) except +
|
|
77
|
+
Iter2 copy_backward[ExecutionPolicy, Iter1, Iter2](ExecutionPolicy&& policy, Iter1 first, Iter1 last, Iter2 d_last) except +
|
|
78
|
+
|
|
79
|
+
OutputIt move[InputIt, OutputIt](InputIt first, InputIt last, OutputIt d_first) except +
|
|
80
|
+
OutputIt move[ExecutionPolicy, InputIt, OutputIt](ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first) except +
|
|
81
|
+
Iter2 move_backward[Iter1, Iter2](Iter1 first, Iter1 last, Iter2 d_last) except +
|
|
82
|
+
Iter2 move_backward[ExecutionPolicy, Iter1, Iter2](ExecutionPolicy&& policy, Iter1 first, Iter1 last, Iter2 d_last) except +
|
|
83
|
+
|
|
84
|
+
void fill[Iter, T](Iter first, Iter last, const T& value) except +
|
|
85
|
+
void fill[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
86
|
+
Iter fill_n[Iter, Size, T](Iter first, Size count, const T& value) except +
|
|
87
|
+
Iter fill_n[ExecutionPolicy, Iter, Size, T](ExecutionPolicy&& policy, Iter first, Size count, const T& value) except +
|
|
88
|
+
|
|
89
|
+
OutputIt transform[InputIt, OutputIt, UnaryOp](
|
|
90
|
+
InputIt first1, InputIt last1, OutputIt d_first, UnaryOp unary_op) except +
|
|
91
|
+
|
|
92
|
+
# This overload is ambiguous with the next one. We just let C++ disambiguate from the arguments
|
|
93
|
+
# OutputIt transform[ExecutionPolicy, InputIt, OutputIt, UnaryOp](
|
|
94
|
+
# ExecutionPolicy&& policy, InputIt first1, InputIt last1, OutputIt d_first, UnaryOp unary_op) except +
|
|
95
|
+
|
|
96
|
+
OutputIt transform[InputIt1, InputIt2, OutputIt, BinaryOp](
|
|
97
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, OutputIt d_first, BinaryOp binary_op) except +
|
|
98
|
+
|
|
99
|
+
OutputIt transform[ExecutionPolicy, InputIt1, InputIt2, OutputIt, BinaryOp](
|
|
100
|
+
ExecutionPolicy&& policy, InputIt1 first1, InputIt1 last1, InputIt2 first2, OutputIt d_first, BinaryOp binary_op) except +
|
|
101
|
+
|
|
102
|
+
void generate[Iter, Generator](Iter first, Iter last, Generator g) except +
|
|
103
|
+
void generate[ExecutionPolicy, Iter, Generator](ExecutionPolicy&& policy, Iter first, Iter last, Generator g) except +
|
|
104
|
+
void generate_n[Iter, Size, Generator](Iter first, Size count, Generator g) except +
|
|
105
|
+
void generate_n[ExecutionPolicy, Iter, Size, Generator](ExecutionPolicy&& policy, Iter first, Size count, Generator g) except +
|
|
106
|
+
|
|
107
|
+
Iter remove[Iter, T](Iter first, Iter last, const T& value) except +
|
|
108
|
+
Iter remove[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
109
|
+
Iter remove_if[Iter, UnaryPred](Iter first, Iter last, UnaryPred pred) except +
|
|
110
|
+
Iter remove_if[ExecutionPolicy, Iter, UnaryPred](ExecutionPolicy&& policy, Iter first, Iter last, UnaryPred pred) except +
|
|
111
|
+
OutputIt remove_copy[InputIt, OutputIt, T](InputIt first, InputIt last, OutputIt d_first, const T& value) except +
|
|
112
|
+
OutputIt remove_copy[ExecutionPolicy, InputIt, OutputIt, T](ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, const T& value) except +
|
|
113
|
+
OutputIt remove_copy_if[InputIt, OutputIt, UnaryPred](
|
|
114
|
+
InputIt first, InputIt last, OutputIt d_first, UnaryPred pred) except +
|
|
115
|
+
OutputIt remove_copy_if[ExecutionPolicy, InputIt, OutputIt, UnaryPred](
|
|
116
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, UnaryPred pred) except +
|
|
117
|
+
|
|
118
|
+
void replace[Iter, T](Iter first, Iter last, const T& old_value, const T& new_value) except +
|
|
119
|
+
void replace[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& old_value, const T& new_value) except +
|
|
120
|
+
void replace_if[Iter, UnaryPred, T](Iter first, Iter last, UnaryPred pred, const T& new_value) except +
|
|
121
|
+
OutputIt replace_copy[InputIt, OutputIt, T](
|
|
122
|
+
InputIt first, InputIt last, OutputIt d_first, const T& old_value, const T& new_value) except +
|
|
123
|
+
void replace_if[ExecutionPolicy, Iter, UnaryPred, T](ExecutionPolicy&& policy, Iter first, Iter last, UnaryPred pred, const T& new_value) except +
|
|
124
|
+
|
|
125
|
+
OutputIt replace_copy[ExecutionPolicy, InputIt, OutputIt, T](
|
|
126
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, const T& old_value, const T& new_value) except +
|
|
127
|
+
OutputIt replace_copy_if[InputIt, OutputIt, UnaryPred, T](
|
|
128
|
+
InputIt first, InputIt last, OutputIt d_first, UnaryPred pred, const T& new_value) except +
|
|
129
|
+
OutputIt replace_copy_if[ExecutionPolicy, InputIt, OutputIt, UnaryPred, T](
|
|
130
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, UnaryPred pred, const T& new_value) except +
|
|
131
|
+
|
|
132
|
+
void swap[T](T& a, T& b) except + # array overload also works
|
|
133
|
+
Iter2 swap_ranges[Iter1, Iter2](Iter1 first1, Iter1 last1, Iter2 first2) except +
|
|
134
|
+
void iter_swap[Iter](Iter a, Iter b) except +
|
|
135
|
+
|
|
136
|
+
void reverse[Iter](Iter first, Iter last) except +
|
|
137
|
+
void reverse[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
138
|
+
OutputIt reverse_copy[InputIt, OutputIt](InputIt first, InputIt last, OutputIt d_first) except +
|
|
139
|
+
OutputIt reverse_copy[ExecutionPolicy, InputIt, OutputIt](ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first) except +
|
|
140
|
+
|
|
141
|
+
Iter rotate[Iter](Iter first, Iter n_first, Iter last) except +
|
|
142
|
+
Iter rotate[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter n_first, Iter last) except +
|
|
143
|
+
OutputIt rotate_copy[InputIt, OutputIt](InputIt first, InputIt n_first, InputIt last, OutputIt d_first) except +
|
|
144
|
+
OutputIt rotate_copy[ExecutionPolicy, InputIt, OutputIt](ExecutionPolicy&& policy, InputIt first, InputIt n_first, InputIt last, OutputIt d_first) except +
|
|
145
|
+
|
|
146
|
+
Iter unique[Iter](Iter first, Iter last) except +
|
|
147
|
+
Iter unique[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
148
|
+
Iter unique[Iter, BinaryPred](Iter first, Iter last, BinaryPred p) except +
|
|
149
|
+
Iter unique[ExecutionPolicy, Iter, BinaryPred](ExecutionPolicy&& policy, Iter first, Iter last, BinaryPred p) except +
|
|
150
|
+
OutputIt unique_copy[InputIt, OutputIt](InputIt first, InputIt last, OutputIt d_first) except +
|
|
151
|
+
OutputIt unique_copy[ExecutionPolicy, InputIt, OutputIt](ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first) except +
|
|
152
|
+
OutputIt unique_copy[InputIt, OutputIt, BinaryPred](
|
|
153
|
+
InputIt first, InputIt last, OutputIt d_first, BinaryPred pred) except +
|
|
154
|
+
OutputIt unique_copy[ExecutionPolicy, InputIt, OutputIt, BinaryPred](
|
|
155
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, BinaryPred pred) except +
|
|
156
|
+
|
|
157
|
+
SampleIt sample[PopulationIt, SampleIt, Distance, URBG](PopulationIt first, PopulationIt last, SampleIt out, Distance n, URBG&& g) except +
|
|
158
|
+
|
|
159
|
+
# Partitioning operations
|
|
160
|
+
bool is_partitioned[Iter, Pred](Iter first, Iter last, Pred p) except +
|
|
161
|
+
bool is_partitioned[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred p) except +
|
|
162
|
+
Iter partition[Iter, Pred](Iter first, Iter last, Pred p) except +
|
|
163
|
+
Iter partition[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred p) except +
|
|
164
|
+
pair[OutputIt1, OutputIt2] partition_copy[InputIt, OutputIt1, OutputIt2, Pred](
|
|
165
|
+
InputIt first, InputIt last, OutputIt1 d_first_true, OutputIt2 d_first_false, Pred p) except +
|
|
166
|
+
pair[OutputIt1, OutputIt2] partition_copy[ExecutionPolicy, InputIt, OutputIt1, OutputIt2, Pred](
|
|
167
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt1 d_first_true, OutputIt2 d_first_false, Pred p) except +
|
|
168
|
+
|
|
169
|
+
Iter stable_partition[Iter, Pred](Iter first, Iter last, Pred p) except +
|
|
170
|
+
Iter stable_partition[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred p) except +
|
|
171
|
+
Iter partition_point[Iter, Pred](Iter first, Iter last, Pred p) except +
|
|
172
|
+
Iter partition_point[ExecutionPolicy, Iter, Pred](ExecutionPolicy&& policy, Iter first, Iter last, Pred p) except +
|
|
173
|
+
|
|
174
|
+
# Sorting operations
|
|
175
|
+
bool is_sorted[Iter](Iter first, Iter last) except +
|
|
176
|
+
bool is_sorted[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
177
|
+
bool is_sorted[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
178
|
+
bool is_sorted[ExecutionPolicy, Iter, Compare](ExecutionPolicy&& policy, Iter first, Iter last, Compare comp) except +
|
|
179
|
+
|
|
180
|
+
Iter is_sorted_until[Iter](Iter first, Iter last) except +
|
|
181
|
+
Iter is_sorted_until[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
182
|
+
Iter is_sorted_until[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
183
|
+
Iter is_sorted_until[ExecutionPolicy, Iter, Compare](ExecutionPolicy&& policy, Iter first, Iter last, Compare comp) except +
|
|
184
|
+
|
|
185
|
+
void sort[Iter](Iter first, Iter last) except +
|
|
186
|
+
void sort[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
187
|
+
void sort[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
188
|
+
void sort[ExecutionPolicy, Iter, Compare](ExecutionPolicy&& policy, Iter first, Iter last, Compare comp) except +
|
|
189
|
+
|
|
190
|
+
void partial_sort[Iter](Iter first, Iter middle, Iter last) except +
|
|
191
|
+
void partial_sort[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter middle, Iter last) except +
|
|
192
|
+
void partial_sort[Iter, Compare](Iter first, Iter middle, Iter last, Compare comp) except +
|
|
193
|
+
void partial_sort[ExecutionPolicy, Iter, Compare](ExecutionPolicy&& policy, Iter first, Iter middle, Iter last, Compare comp) except +
|
|
194
|
+
|
|
195
|
+
OutputIt partial_sort_copy[InputIt, OutputIt](
|
|
196
|
+
InputIt first, InputIt last, OutputIt d_first, OutputIt d_last) except +
|
|
197
|
+
OutputIt partial_sort_copy[ExecutionPolicy, InputIt, OutputIt](
|
|
198
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, OutputIt d_last) except +
|
|
199
|
+
OutputIt partial_sort_copy[InputIt, OutputIt, Compare](
|
|
200
|
+
InputIt first, InputIt last, OutputIt d_first, OutputIt d_last, Compare comp) except +
|
|
201
|
+
OutputIt partial_sort_copy[ExecutionPolicy, InputIt, OutputIt, Compare](
|
|
202
|
+
ExecutionPolicy&& policy, InputIt first, InputIt last, OutputIt d_first, OutputIt d_last, Compare comp) except +
|
|
203
|
+
|
|
204
|
+
void stable_sort[Iter](Iter first, Iter last) except +
|
|
205
|
+
void stable_sort[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
206
|
+
void stable_sort[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
207
|
+
void stable_sort[ExecutionPolicy, Iter, Compare](ExecutionPolicy&& policy, Iter first, Iter last, Compare comp) except +
|
|
208
|
+
|
|
209
|
+
void nth_element[Iter](Iter first, Iter nth, Iter last) except +
|
|
210
|
+
void nth_element[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter nth, Iter last) except +
|
|
211
|
+
void nth_element[Iter, Compare](Iter first, Iter nth, Iter last, Compare comp) except +
|
|
212
|
+
void nth_element[ExecutionPolicy, Iter, Compare](ExecutionPolicy&& policy, Iter first, Iter nth, Iter last, Compare comp) except +
|
|
213
|
+
|
|
214
|
+
# Binary search operations (on sorted ranges)
|
|
215
|
+
Iter lower_bound[Iter, T](Iter first, Iter last, const T& value) except +
|
|
216
|
+
Iter lower_bound[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
217
|
+
Iter lower_bound[Iter, T, Compare](Iter first, Iter last, const T& value, Compare comp) except +
|
|
218
|
+
Iter lower_bound[ExecutionPolicy, Iter, T, Compare](ExecutionPolicy&& policy, Iter first, Iter last, const T& value, Compare comp) except +
|
|
219
|
+
|
|
220
|
+
Iter upper_bound[Iter, T](Iter first, Iter last, const T& value) except +
|
|
221
|
+
Iter upper_bound[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
222
|
+
Iter upper_bound[Iter, T, Compare](Iter first, Iter last, const T& value, Compare comp) except +
|
|
223
|
+
Iter upper_bound[ExecutionPolicy, Iter, T, Compare](ExecutionPolicy&& policy, Iter first, Iter last, const T& value, Compare comp) except +
|
|
224
|
+
|
|
225
|
+
bool binary_search[Iter, T](Iter first, Iter last, const T& value) except +
|
|
226
|
+
bool binary_search[ExecutionPolicy, Iter, T](ExecutionPolicy&& policy, Iter first, Iter last, const T& value) except +
|
|
227
|
+
bool binary_search[Iter, T, Compare](Iter first, Iter last, const T& value, Compare comp) except +
|
|
228
|
+
bool binary_search[ExecutionPolicy, Iter, T, Compare](ExecutionPolicy&& policy, Iter first, Iter last, const T& value, Compare comp) except +
|
|
229
|
+
|
|
230
|
+
# Other operations on sorted ranges
|
|
231
|
+
OutputIt merge[InputIt1, InputIt2, OutputIt](
|
|
232
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out) except +
|
|
233
|
+
OutputIt merge[InputIt1, InputIt2, OutputIt, Compare](
|
|
234
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out, Compare comp) except +
|
|
235
|
+
|
|
236
|
+
void inplace_merge[BidirIt](BidirIt first, BidirIt middle, BidirIt last) except +
|
|
237
|
+
void inplace_merge[BidirIt, Compare](BidirIt first, BidirIt middle, BidirIt last, Compare comp) except +
|
|
238
|
+
|
|
239
|
+
# Set operations (on sorted ranges)
|
|
240
|
+
bool includes[InputIt1, InputIt2](
|
|
241
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2) except +
|
|
242
|
+
|
|
243
|
+
bool includes[InputIt1, InputIt2, Compare](
|
|
244
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, Compare comp) except +
|
|
245
|
+
|
|
246
|
+
OutputIt set_difference[InputIt1, InputIt2, OutputIt](
|
|
247
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out) except +
|
|
248
|
+
|
|
249
|
+
OutputIt set_difference[InputIt1, InputIt2, OutputIt, Compare](
|
|
250
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2,
|
|
251
|
+
OutputIt out, Compare comp) except +
|
|
252
|
+
|
|
253
|
+
OutputIt set_intersection[InputIt1, InputIt2, OutputIt](
|
|
254
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out) except +
|
|
255
|
+
|
|
256
|
+
OutputIt set_intersection[InputIt1, InputIt2, OutputIt, Compare](
|
|
257
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out, Compare comp) except +
|
|
258
|
+
|
|
259
|
+
OutputIt set_symmetric_difference[InputIt1, InputIt2, OutputIt](
|
|
260
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out) except +
|
|
261
|
+
|
|
262
|
+
OutputIt set_symmetric_difference[InputIt1, InputIt2, OutputIt, Compare](
|
|
263
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out, Compare comp) except +
|
|
264
|
+
|
|
265
|
+
OutputIt set_union[InputIt1, InputIt2, OutputIt](
|
|
266
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out) except +
|
|
267
|
+
|
|
268
|
+
OutputIt set_union[InputIt1, InputIt2, OutputIt, Compare](
|
|
269
|
+
InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt out, Compare comp) except +
|
|
270
|
+
|
|
271
|
+
# Heap operations
|
|
272
|
+
void make_heap[Iter](Iter first, Iter last) except +
|
|
273
|
+
void make_heap[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
274
|
+
|
|
275
|
+
void push_heap[Iter](Iter first, Iter last) except +
|
|
276
|
+
void push_heap[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
277
|
+
|
|
278
|
+
void pop_heap[Iter](Iter first, Iter last) except +
|
|
279
|
+
void pop_heap[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
280
|
+
|
|
281
|
+
void sort_heap[Iter](Iter first, Iter last) except +
|
|
282
|
+
void sort_heap[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
283
|
+
|
|
284
|
+
# Minimum/maximum operations
|
|
285
|
+
Iter min_element[Iter](Iter first, Iter last) except +
|
|
286
|
+
Iter min_element[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
287
|
+
Iter min_element[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
288
|
+
Iter max_element[Iter](Iter first, Iter last) except +
|
|
289
|
+
Iter max_element[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
290
|
+
Iter max_element[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
291
|
+
pair[T, T] minmax[T](const T& a, const T& b) except +
|
|
292
|
+
pair[T, T] minmax[T, Compare](const T& a, const T& b, Compare comp) except +
|
|
293
|
+
pair[Iter, Iter] minmax_element[Iter](Iter first, Iter last) except +
|
|
294
|
+
pair[Iter, Iter] minmax_element[Iter, Compare](Iter first, Iter last, Compare comp) except +
|
|
295
|
+
pair[Iter, Iter] minmax_element[ExecutionPolicy, Iter](ExecutionPolicy&& policy, Iter first, Iter last) except +
|
|
296
|
+
const T& clamp[T](const T& v, const T& lo, const T& hi) except +
|
|
297
|
+
const T& clamp[T, Compare](const T& v, const T& lo, const T& hi, Compare comp) except +
|
|
298
|
+
|
|
299
|
+
# Comparison operations
|
|
300
|
+
bool equal[InputIt1, InputIt2](InputIt1 first1, InputIt1 last1, InputIt2 first2) except +
|
|
301
|
+
bool equal[InputIt1, InputIt2, BinPred](InputIt1 first1, InputIt1 last1, InputIt2 first2, BinPred pred) except +
|
|
302
|
+
# ambiguous with previous overload
|
|
303
|
+
#bool equal[InputIt1, InputIt2](InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2) except +
|
|
304
|
+
bool equal[InputIt1, InputIt2, BinPred](InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, BinPred pred) except +
|
|
305
|
+
|
|
306
|
+
bool lexicographical_compare[InputIt1, InputIt2](InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2) except +
|
|
307
|
+
# ambiguous with next overload
|
|
308
|
+
#bool lexicographical_compare[InputIt1, InputIt2, ExecutionPolicy](ExecutionPolicy&& policy, InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2) except +
|
|
309
|
+
bool lexicographical_compare[InputIt1, InputIt2, Compare](InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, Compare comp) except +
|
|
310
|
+
|
|
311
|
+
# Permutation operations
|
|
312
|
+
bool is_permutation[ForwardIt1, ForwardIt2](ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2) except +
|
|
313
|
+
bool is_permutation[ForwardIt1, ForwardIt2, BinaryPred](ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, BinaryPred p) except +
|
|
314
|
+
# ambiguous with previous overload
|
|
315
|
+
#bool is_permutation[ForwardIt1, ForwardIt2](ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, ForwardIt2 last2) except +
|
|
316
|
+
bool is_permutation[ForwardIt1, ForwardIt2, BinaryPred](ForwardIt1 first1, ForwardIt1 last1, ForwardIt2 first2, ForwardIt2 last2, BinaryPred p) except +
|
|
317
|
+
bool next_permutation[BidirIt](BidirIt first, BidirIt last) except +
|
|
318
|
+
bool next_permutation[BidirIt, Compare](BidirIt first, BidirIt last, Compare comp) except +
|
|
319
|
+
bool prev_permutation[BidirIt](BidirIt first, BidirIt last) except +
|
|
320
|
+
bool prev_permutation[BidirIt, Compare](BidirIt first, BidirIt last, Compare comp) except +
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from libcpp cimport bool
|
|
2
|
+
from libcpp.typeinfo cimport type_info
|
|
3
|
+
|
|
4
|
+
cdef extern from "<any>" namespace "std" nogil:
|
|
5
|
+
cdef cppclass any:
|
|
6
|
+
any()
|
|
7
|
+
any(any&) except +
|
|
8
|
+
void reset()
|
|
9
|
+
bool has_value()
|
|
10
|
+
type_info& type()
|
|
11
|
+
T& emplace[T](...) except +
|
|
12
|
+
void swap(any&)
|
|
13
|
+
any& operator=(any&) except +
|
|
14
|
+
any& operator=[U](U&) except +
|
|
15
|
+
|
|
16
|
+
cdef T any_cast[T](any&) except +
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
|
|
2
|
+
cdef extern from "<atomic>" namespace "std" nogil:
|
|
3
|
+
|
|
4
|
+
cdef enum memory_order:
|
|
5
|
+
memory_order_relaxed
|
|
6
|
+
memory_order_consume
|
|
7
|
+
memory_order_acquire
|
|
8
|
+
memory_order_release
|
|
9
|
+
memory_order_acq_rel
|
|
10
|
+
memory_order_seq_cst
|
|
11
|
+
|
|
12
|
+
cdef cppclass atomic[T]:
|
|
13
|
+
atomic()
|
|
14
|
+
atomic(T)
|
|
15
|
+
|
|
16
|
+
bint is_lock_free()
|
|
17
|
+
void store(T)
|
|
18
|
+
void store(T, memory_order)
|
|
19
|
+
T load()
|
|
20
|
+
T load(memory_order)
|
|
21
|
+
T exchange(T)
|
|
22
|
+
T exchange(T, memory_order)
|
|
23
|
+
|
|
24
|
+
bint compare_exchange_weak(T&, T, memory_order, memory_order)
|
|
25
|
+
bint compare_exchange_weak(T&, T, memory_order)
|
|
26
|
+
bint compare_exchange_weak(T&, T)
|
|
27
|
+
bint compare_exchange_strong(T&, T, memory_order, memory_order)
|
|
28
|
+
bint compare_exchange_strong(T&, T, memory_order)
|
|
29
|
+
bint compare_exchange_strong(T&, T)
|
|
30
|
+
|
|
31
|
+
T fetch_add(T, memory_order)
|
|
32
|
+
T fetch_add(T)
|
|
33
|
+
T fetch_sub(T, memory_order)
|
|
34
|
+
T fetch_sub(T)
|
|
35
|
+
T fetch_and(T, memory_order)
|
|
36
|
+
T fetch_and(T)
|
|
37
|
+
T fetch_or(T, memory_order)
|
|
38
|
+
T fetch_or(T)
|
|
39
|
+
T fetch_xor(T, memory_order)
|
|
40
|
+
T fetch_xor(T)
|
|
41
|
+
|
|
42
|
+
T operator++()
|
|
43
|
+
T operator++(int)
|
|
44
|
+
T operator--()
|
|
45
|
+
T operator--(int)
|
|
46
|
+
|
|
47
|
+
# modify-in-place operators not yet supported by Cython:
|
|
48
|
+
# T operator+=(T)
|
|
49
|
+
# T operator-=(T)
|
|
50
|
+
# T operator&=(T)
|
|
51
|
+
# T operator|=(T)
|
|
52
|
+
# T operator^=(T)
|
|
53
|
+
|
|
54
|
+
bint operator==(atomic[T]&, atomic[T]&)
|
|
55
|
+
bint operator==(atomic[T]&, T&)
|
|
56
|
+
bint operator==(T&, atomic[T]&)
|
|
57
|
+
bint operator!=(atomic[T]&, atomic[T]&)
|
|
58
|
+
bint operator!=(atomic[T]&, T&)
|
|
59
|
+
bint operator!=(T&, atomic[T]&)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
cdef extern from "<barrier>" namespace "std" nogil:
|
|
2
|
+
# Note on thread safety:
|
|
3
|
+
# For any of the blocking functions here you should be very
|
|
4
|
+
# careful to ensure that you are not deadlocked on the GIL.
|
|
5
|
+
cdef cppclass barrier[CompletionFunction = *]:
|
|
6
|
+
cppclass arrival_token:
|
|
7
|
+
pass
|
|
8
|
+
|
|
9
|
+
barrier(ptrdiff_t expected) except+
|
|
10
|
+
# We *really* advise that CompletionFunction is nogil (but because it's a template, can't enforce it)
|
|
11
|
+
barrier(ptrdiff_t expected, CompletionFunction f) except+
|
|
12
|
+
|
|
13
|
+
arrival_token arrive() except+
|
|
14
|
+
arrival_token arrive(ptrdiff_t n) except+
|
|
15
|
+
|
|
16
|
+
void wait(arrival_token t) except+
|
|
17
|
+
|
|
18
|
+
void arrive_and_wait() except+
|
|
19
|
+
|
|
20
|
+
void arrive_and_drop() except+
|
|
21
|
+
|
|
22
|
+
ptrdiff_t max()
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
cdef extern from "<bit>" namespace "std" nogil:
|
|
2
|
+
# bit_cast (gcc >= 11.0, clang >= 14.0)
|
|
3
|
+
cdef To bit_cast[To, From](From&)
|
|
4
|
+
|
|
5
|
+
# byteswap (C++23)
|
|
6
|
+
#cdef T byteswap[T](T)
|
|
7
|
+
|
|
8
|
+
# integral powers of 2 (gcc >= 10.0, clang >= 12.0)
|
|
9
|
+
cdef bint has_single_bit[T](T)
|
|
10
|
+
cdef T bit_ceil[T](T)
|
|
11
|
+
cdef T bit_floor[T](T)
|
|
12
|
+
cdef int bit_width[T](T)
|
|
13
|
+
|
|
14
|
+
# rotating (gcc >= 9.0, clang >= 9.0)
|
|
15
|
+
cdef T rotl[T](T, int shift)
|
|
16
|
+
cdef T rotr[T](T, int shift)
|
|
17
|
+
|
|
18
|
+
# counting (gcc >= 9.0, clang >= 9.0)
|
|
19
|
+
cdef int countl_zero[T](T)
|
|
20
|
+
cdef int countl_one[T](T)
|
|
21
|
+
cdef int countr_zero[T](T)
|
|
22
|
+
cdef int countr_one[T](T)
|
|
23
|
+
cdef int popcount[T](T)
|
|
24
|
+
|
|
25
|
+
# endian
|
|
26
|
+
cpdef enum class endian(int):
|
|
27
|
+
little,
|
|
28
|
+
big,
|
|
29
|
+
native
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Defines the standard C++ cast operators.
|
|
2
|
+
#
|
|
3
|
+
# Due to type restrictions, these are only defined for pointer parameters,
|
|
4
|
+
# however that is the only case where they are significantly more interesting
|
|
5
|
+
# than the standard C cast operator which can be written "<T>(expression)" in
|
|
6
|
+
# Cython.
|
|
7
|
+
|
|
8
|
+
cdef extern from * nogil:
|
|
9
|
+
cdef T dynamic_cast[T](void *) except + # nullptr may also indicate failure
|
|
10
|
+
cdef T static_cast[T](void *)
|
|
11
|
+
cdef T reinterpret_cast[T](void *)
|
|
12
|
+
cdef T const_cast[T](void *)
|