tvector_iterator.nim 277 B

1234567891011121314151617181920
  1. discard """
  2. targets: "cpp"
  3. """
  4. {.emit: """/*TYPESECTION*/
  5. template <class T>
  6. struct Vector {
  7. struct Iterator {};
  8. };
  9. """.}
  10. type
  11. Vector[T] {.importcpp: "Vector".} = object
  12. VectorIterator[T] {.importcpp: "Vector<'0>::Iterator".} = object
  13. var x: VectorIterator[void]