github dtolnay/cxx 1.0.5

latest releases: 1.0.128, 1.0.127, 1.0.126...
3 years ago
  • Add mutable iterators for rust::Vec<T> in C++ (#509)

      class Vec<T> {
    +   class iterator;
    +   iterator begin() noexcept;
    +   iterator end() noexcept;
    
        class const_iterator;
        const_iterator begin() const noexcept;
        const_iterator end() const noexcept;
    +   const_iterator cbegin() const noexcept;
    +   const_iterator cend() const noexcept;
      };
  • Support slices with arbitrary element type (previously restricted to u8) (#514)

  • Add c_char type which refers to std::os::raw::c_char in Rust and char in C++ (#515)

  • Add iterator for rust::Slice<T> and rust::Slice<const T> (#516)

      class Slice<T> {
    +   class iterator;
    +   iterator begin() const noexcept;
    +   iterator end() const noexcept;
      };
  • Add iterators for rust::String and rust::Str (#517)

      class String {
    +   using iterator = char *;
    +   iterator begin() noexcept;
    +   iterator end() noexcept;
    
    +   using const_iterator = const char *;
    +   const_iterator begin() const noexcept;
    +   const_iterator end() const noexcept;
    +   const_iterator cbegin() const noexcept;
    +   const_iterator cend() const noexcept;
      };
    
      class Str {
    +   using iterator = const char *;
    +   using const_iterator = const char *;
    +   const_iterator begin() const noexcept;
    +   const_iterator end() const noexcept;
    +   const_iterator cbegin() const noexcept;
    +   const_iterator cend() const noexcept;
      };

Don't miss a new cxx release

NewReleases is sending notifications on new releases.