tvector_iterator.nim 279 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 {.importcpp: "Vector".} [T] = object
  12. VectorIterator {.importcpp: "Vector<'0>::Iterator".} [T] = object
  13. var x: VectorIterator[void]