pybind11/include/pybind11
Ralf W. Grosse-Kunstleve 0e49463169
Split out (almost) pure refactoring from https://github.com/pybind/pybind11/pull/5332 (#5334)
PREPARATION for:

PR #5332 — Fix handling of const unique_ptr<T, D> & (do not disown).

Splitting out so that the functional changes under PR #5332 will be more obvious.

The only functional change under this PR is that

```
            assert(custom_deleter_ptr != nullptr);
```

is replaced with:

```
            if (custom_deleter_ptr == nullptr) {
                throw std::runtime_error(
                    std::string("smart_holder::extract_deleter() precondition failure (") + context
                    + ").");
            }
```
2024-08-25 08:56:22 -07:00
..
detail Split out (almost) pure refactoring from https://github.com/pybind/pybind11/pull/5332 (#5334) 2024-08-25 08:56:22 -07:00
eigen fix: never use .. in a header include (#5321) 2024-08-21 13:16:49 -04:00
stl fix: never use .. in a header include (#5321) 2024-08-21 13:16:49 -04:00
attr.h find . -name '*.h' -o -name '*.cpp' -o -name '*.py' | xargs -n 1 -- sed -i 's/PYBIND11_HAVE_/PYBIND11_HAS_/g' (#5286) 2024-08-04 09:16:44 -07:00
buffer_info.h chore(deps): update pre-commit hooks (#5084) 2024-04-02 11:14:08 -04:00
cast.h Split out non-functional changes from https://github.com/pybind/pybind11/pull/5332 (#5333) 2024-08-25 08:41:16 -07:00
chrono.h chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
eigen.h First draft of Eigen::Tensor support (#4201) 2022-10-18 16:54:16 -07:00
embed.h feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
eval.h feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
functional.h Add type_caster_std_function_specializations feature. (#4597) 2024-08-09 13:28:12 -07:00
gil_safe_call_once.h fix: make gil_safe_call_once thread-safe in free-threaded CPython (#5246) 2024-07-16 11:06:54 -07:00
gil.h feat: remove Python 3.7 support (#5191) 2024-07-30 09:18:35 -07:00
iostream.h chore: add err guard to capsule destructor and add a move to iostream (#3958) 2022-05-27 14:32:57 -04:00
numpy.h clang-tidy upgrade (to version 18) (#5272) 2024-07-29 11:10:03 -07:00
operators.h Reproducer and fix for issue encountered in smart_holder update. (#4228) 2022-10-09 21:50:35 -07:00
options.h Add option for enable/disable enum members in docstring. (#2768) 2022-12-08 23:10:10 -08:00
pybind11.h Add instance::is_alias and migrate from using smart_holder::pointee_depends_on_holder_owner to that. (#5318) 2024-08-18 13:07:29 -07:00
pytypes.h fix: <ranges> support for py::tuple and py::list (#5314) 2024-08-21 15:33:06 -04:00
smart_holder.h [smart_holder] Bake smart_holder functionality into class_ and type_caster_base (#5257) 2024-07-31 06:17:31 -07:00
stl_bind.h Merge branch 'master' into sh_merge_master 2024-07-29 11:18:11 -07:00
stl.h Backport of https://github.com/google/pywrapcc/pull/30034 (#5305) 2024-08-14 22:30:29 -07:00
trampoline_self_life_support.h find . -name '*.h' -o -name '*.cpp' -o -name '*.py' | xargs -n 1 -- sed -i 's/PYBIND11_HAVE_/PYBIND11_HAS_/g' (#5286) 2024-08-04 09:16:44 -07:00
type_caster_pyobject_ptr.h Revert "Add handling of return_value_policy::_clif_automatic in type_caster_pyobject_ptr.h (backported from https://github.com/google/pywrapcc/pull/30021)" 2024-06-11 14:12:14 -07:00
typing.h Fixed a compilation error with gcc 14 (#5208) 2024-06-28 07:12:32 -07:00