[][src]Function cpp_core::cpp_iter

Important traits for CppIterator<T1, T2>
pub unsafe fn cpp_iter<T1, T2>(
    begin: CppBox<T1>,
    end: CppBox<T2>
) -> CppIterator<T1, T2> where
    T1: CppDeletable,
    T2: CppDeletable

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


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.