Function cpp_iter

Source
pub unsafe fn cpp_iter<T1, T2>(
    begin: CppBox<T1>,
    end: CppBox<T2>,
) -> CppIterator<T1, T2> 
where T1: CppDeletable, T2: CppDeletable,
Expand description

Constructs a Rust-style iterator from C++ iterators pointing to begin and end of the collection.

§Safety

begin and end must be valid. It’s not possible to make any guarantees about safety, since CppIterator will call arbitrary C++ library code when used.