| 148 | //! Enables range-for |
| 149 | template<typename Type, template<typename> typename BaseDeleter> |
| 150 | inline auto begin(const Ptr<Type, BaseDeleter> &p) |
| 151 | { |
| 152 | using traits_type = detail::ExtendedTraits<Type>; |
| 153 | auto ptr = p.get(); |
| 154 | return ptr ? traits_type::begin(ptr) : nullptr; |
| 155 | } |
| 156 | |
| 157 | //! Enables range-for |
| 158 | template<typename Type, template<typename> typename BaseDeleter> |