mirror of
https://github.com/pybind/pybind11.git
synced 2026-05-24 06:45:03 +00:00
Update breathe to 4.26.1, add make_tuple, make_iterator, and make_key_iterator (#2828)
This commit is contained in:
@@ -1890,7 +1890,9 @@ PYBIND11_NAMESPACE_END(detail)
|
||||
template <return_value_policy Policy = return_value_policy::reference_internal,
|
||||
typename Iterator,
|
||||
typename Sentinel,
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Issue in breathe 4.26.1
|
||||
typename ValueType = decltype(*std::declval<Iterator>()),
|
||||
#endif
|
||||
typename... Extra>
|
||||
iterator make_iterator(Iterator first, Sentinel last, Extra &&... extra) {
|
||||
using state = detail::iterator_state<Iterator, Sentinel, false, Policy>;
|
||||
@@ -1919,7 +1921,9 @@ iterator make_iterator(Iterator first, Sentinel last, Extra &&... extra) {
|
||||
template <return_value_policy Policy = return_value_policy::reference_internal,
|
||||
typename Iterator,
|
||||
typename Sentinel,
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Issue in breathe 4.26.1
|
||||
typename KeyType = decltype((*std::declval<Iterator>()).first),
|
||||
#endif
|
||||
typename... Extra>
|
||||
iterator make_key_iterator(Iterator first, Sentinel last, Extra &&... extra) {
|
||||
using state = detail::iterator_state<Iterator, Sentinel, true, Policy>;
|
||||
|
||||
@@ -279,8 +279,10 @@ protected:
|
||||
struct borrowed_t { };
|
||||
struct stolen_t { };
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_SKIP_THIS // Issue in breathe 4.26.1
|
||||
template <typename T> friend T reinterpret_borrow(handle);
|
||||
template <typename T> friend T reinterpret_steal(handle);
|
||||
#endif
|
||||
|
||||
public:
|
||||
// Only accessible from derived classes and the reinterpret_* functions
|
||||
|
||||
Reference in New Issue
Block a user