summaryrefslogtreecommitdiff
path: root/Cython/Includes/libcpp
Commit message (Collapse)AuthorAgeFilesLines
* Add missing load_factor() method on libcpp/unordered_multimap (GH-5157)Dobatymo2022-11-301-0/+1
|
* Add missing C++17/20 STL functions and methods (#5101)Jonathan Helgert2022-10-296-0/+31
| | | | | | | * Add .contains() method for associated containers * Add string::starts_with and ends_with methods * Add missing C++17/20 numeric functions
* Add declarations for C++20's Bit manipulation functions (GH-4962)Jonathan Helgert2022-08-091-0/+31
|
* Add distributions to `libcpp.random`. (#4762)Till Hoffmann2022-06-071-2/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `uniform_int_distribution` to `libcpp`. * Add `uniform_real_distribution` to `libcpp`. * Add `bernoulli_distribution` to `libcpp`. * Add `binomial_distribution` to `libcpp`. * Add `geometric_distribution` to `libcpp`. * Add range tests for distributions. * Add `negative_binomial_distribution` to `libcpp`. * Add `poisson_distribution` to `libcpp`. * Add `exponential_distribution` to `libcpp`. * Add `gamma_distribution` to `libcpp`. * Add `weibull_distribution` to `libcpp`. * Add `extreme_value_distribution` to `libcpp`. * Add `normal_distribution` to `libcpp`. * Add `lognormal_distribution` to `libcpp`. * Add `chi_squared_distribution` to `libcpp`. * Add `cauchy_distribution` to `libcpp`. * Add `fisher_f_distribution` to `libcpp`. * Increase `dof` for `fisher_f_distribution_test`. * Add `student_t_distribution` to `libcpp`. * Add docstring to `sample_or_range` helper function. * Fix distribution range tests for different OSs. * Show sample values and proba. of test passing. * Test distribution call without checking values.
* Add "mt19973_64" declarations to "libcpp.random" (GH-4818)Wenjun Si2022-05-311-1/+13
|
* Add C++ STL `sample` for sampling without replacement. (GH-4751)Till Hoffmann2022-04-211-2/+2
|
* Add mt19937 random number generator to libcpp. (GH-4746)Till Hoffmann2022-04-201-0/+14
|
* Add missing C++ STL iterator declarations and correct their const/non-const ↵Max Bachmann2022-04-199-154/+659
| | | | | | | | | | | | | | | | behaviour. (GH-4528) The current implementation of iterators had the following bugs: - it was possible to assign `const_iterator` to `iterator` - it was not possible to assign `iterator` to `const_iterator` - operator* did not always return `value_type` e.g. for `const_iterator` this often returned `T&` instead of `const value_type&` - increment operators always returned `iterators`. This caused e.g. `const_iterator + 1` to result in a `iterator` instead of a `const_iterator` - comparision operators could not be used to compare `iterators` and `const_iterators` (`const_iterator == iterator`)
* Add cbegin/cend/crbegin/crend to C++ STL container declarations (GH-4530)Max Bachmann2022-04-158-2/+42
|
* Add exception handling for libcpp::stack::pushJulien Jerphanion2022-04-011-1/+1
|
* Fix some C++ template definitions in libcpp (GH-4531)Max Bachmann2021-12-282-6/+6
|
* Add emplace_back to C++ vector declarations (GH-4527)Max Bachmann2021-12-251-0/+2
| | | | | This definition could be improved when variadic templates are supported at some point, but since the types are not really relevant for Cython it should be fine to use C variadics here (especially since I do not expect that variadic templates will be supported anytime soon). Closes https://github.com/cython/cython/issues/2171
* Add std::optional declarations for C++17 (GH-3294)Evgeny Yakimov2021-12-171-0/+34
| | | Closes https://github.com/cython/cython/issues/3293
* Add merge and set operations of the C++ algorithm library (GH-4462)Jonathan Helgert2021-11-181-0/+37
| | | Disable on macOS due to bug in Apple clang++. See https://github.com/cython/cython/pull/4448#issuecomment-964405071
* Add missing min/max, comparison and permutation operations of C++ algorithm ↵Jonathan Helgert2021-11-111-0/+29
| | | | | library (GH-4448) Tests are disabled on macOS+clang (failing with Apple clang++ 12) but appear to work fine on gcc-11.
* Add most of the C++17 numeric functions to libcpp.numeric (GH-4423)Jonathan Helgert2021-11-021-0/+101
| | | | Some overloaded methods are commented out as they currently result in incorrect C++ code. See https://github.com/cython/cython/pull/4423#issuecomment-953685310
* Fix libcpp map/set/multiset/unordered type issues (GH-4410)Dobatymo2021-10-224-150/+162
| | | | Fix insert return types, constness and input iterator templates. Fix typing in iterators and add constructor to allow explicit conversion from iterator to const_iterator.
* Add C++ multimap/unordered_multimap (GH-4419)Dobatymo2021-10-222-0/+140
|
* Add some missing functions to libcpp maps and string (GH-4395)account-login2021-10-203-0/+4
| | | | * add swap() to libcpp.string * add load_factor() to libcpp.unordered_map and libcpp.unordered_set
* Fix wrong type in unordered_multiset::swap() (GH-4408)Dobatymo2021-10-151-1/+1
|
* Add missing multiset class to the standard library bindings (GH-4273)da-woods2021-07-192-10/+119
|
* Add missing "max_element()" in libcpp.algorithms (GH-4271)da-woods2021-07-181-0/+2
|
* Merge branch '0.29.x'Stefan Behnel2021-07-131-5/+10
|\
| * Fix "std::string::npos" in 'libcpp.string' and add missing C++ string ↵Janek Bevendorff2021-07-131-77/+146
| | | | | | | | | | | | methods (GH-4276) Closes https://github.com/cython/cython/issues/4268
| * Add missing unordered_map template defaults (GH-3686)will2020-07-071-1/+1
| |
| * Add std::move wrapper to utility libraryOmer Ozarslan2020-04-071-0/+14
| |
* | Fix "std::string::npos" in 'libcpp.string' and add missing C++ string ↵Janek Bevendorff2021-07-131-80/+116
| | | | | | | | | | methods (GH-4276) Closes https://github.com/cython/cython/issues/4268
* | Add support for C++17 execution policy parameter (GH-3790)Ashwin Srinath2021-05-252-0/+112
| | | | | | | | | | * Add execution policy overloads to all algorithms * Add update_cpp17_extension for cpp17 tests * Fix type deduction logic for forwarding reference argument
* | Add operator= to shared_ptr for assignments to base classes (GH-4185)Søren Fuglede Jørgensen2021-05-241-0/+1
| |
* | Enable usage of std::move() only in the supported versions of MSVC (GH-4191)Max Bachmann2021-05-231-1/+2
| |
* | Add C++ "to_string()" function to declarations.Stefan Behnel2021-05-071-0/+11
| |
* | Add some overloaded C++ string methods that we missing (actually using ↵Stefan Behnel2021-04-301-19/+30
| | | | | | | | optional arguments).
* | Catch more exceptions from C++ standard containers (GH-4079)Max Bachmann2021-04-264-39/+39
| |
* | Add missing unordered_map template defaults (GH-3686)will2020-07-071-1/+1
| |
* | Add partitioning and sorting operations to libcpp.algorithm (GH-3202)Matthew Edwards2020-04-112-41/+72
| | | | | | | | | | | | | | | | | | | | * Add is_partitioned and partition to libcpp.algorithm * Add is_sorted and is_sorted_until to libcpp.algorithm * Add partition_copy, stable_partition, and partition_point to libcpp.algorithm * Move tests for sort and partial_sort into cpp_stl_algo_sorting_ops, add greater to libcpp.functional * Add partial_sort_copy to libcpp.algorithm * Add stable_sort to libcpp.algorithm * Add nth_element to libcpp.algorithm * Add missing except specifiers in libcpp.algorithm
* | Cython header file for C++ `std::atomic` type (GH-3469)da-woods2020-03-311-0/+60
| |
* | Add std::move wrapper to utility libraryOmer Ozarslan2020-02-151-0/+14
| |
* | Add skeleton, functions of <numeric> library (#3332)Chris Gyurgyik2020-02-101-0/+23
| |
* | Add most modifying sequence operations to libcpp.algorithm (GH-3188)Matthew Edwards2019-10-212-2/+53
| | | | | | | | Also fix tests in libcpp_algo (how did this ever work?)
* | Add most non-modifying sequence operations to libcpp.algorithm (GH-3179)Matthew Edwards2019-10-163-33/+79
|/ | | | | | | | | | | | | | | * Rearrange libcpp.algorithm to match cppreference and reformat * Add all_of, any_of and none_of to libcpp.algorithm * Add count and count_if to libcpp.algorithm * Add string(first, last) constructor to libcpp.string * Add the simplest overload of mismatch to libcpp.algorithm * Add find, find_if, and find_if_not to libcpp.algorithm * Add find_end to libcpp.algorithm and distance to libcpp.iterator * Add find_first_of to libcpp.algorithm * Add adjacent_find to libcpp.algorithm * Add search to libcpp.algorithm * Add search_n to libcpp.algorithm * Add exception specifiers in libcpp.algorithm * Add predicated overload of find_end, search and search_n to libcpp.algorithm
* Merge pull request #2207 from vallsv/improve-cpp11-containersscoder2018-08-117-16/+35
|\ | | | | Improve C++11 containers
| * Fix const_iteratorValentin Valls2018-04-202-8/+4
| | | | | | | | | | - The declaration have to be the reverse of C++ as the iterator class matches both iterator and const_iterator classes
| * Add const_at to unordered mapValentin Valls2018-04-201-1/+2
| |
| * Add erase/insert using double iterator to setValentin Valls2018-04-201-3/+3
| |
| * Update unordered_map to match C++11Valentin Valls2018-04-201-2/+6
| | | | | | | | | | | | - bucket API - load_factor API - erase and insert with begin/end iterators
| * Update unordered_set to match C++11Valentin Valls2018-04-201-4/+12
| | | | | | | | | | | | - bucket API - load_factor API - erase and insert with begin/end iterators
| * Add shrink_to_fit to dequeValentin Valls2018-04-201-0/+3
| |
| * Add const at to mapValentin Valls2018-04-201-0/+1
| |
| * Add swap to queuesValentin Valls2018-04-201-0/+5
| |
| * Add const data to vectorValentin Valls2018-04-201-0/+1
| |